「‍」 Lingenic

Monadic Second-Order Logic

(⤓.md ◇.md); γ ≜ [2026-07-17T114236.449, 2026-07-17T121634.146] ∧ |γ| = 3

Monadic Second-Order Logic

Origin. Büchi (1960) for automata theory. Second-order quantification over sets only. Decidable on trees (Rabin). Captures regular languages. Foundation for automata-logic connection.

Models. Quantify over unary predicates (sets). No quantification over relations. MSO on strings = regular languages. MSO on trees = recognizable tree languages.

Formalism.

Syntax: φ ::= x ∈ X | R(x̄) | ¬φ | φ∧ψ | ∃x.φ | ∃X.φ X: set variable, x: element variable.

MSO on strings: Signature: <, Suc, {Pₐ} ∃X(0 ∈ X ∧ ∀x(x ∈ X → Suc(x) ∈ X)) "Successor-closed set containing 0"

Büchi's theorem: MSO on ω-strings ≡ ω-regular languages ≡ Büchi automata.

Rabin's theorem: MSO on infinite binary trees ≡ tree automata. Decidable (but non-elementary).

Weak MSO (WMSO): Quantify only over finite sets. WMSO on ω-strings = ω-regular (same power).

MSO₁ vs MSO₂ (graphs): MSO₁: quantify over vertex sets. MSO₂: quantify over edge sets too. Different on graphs.

Courcelle's theorem: MSO-definable properties decidable in linear time on bounded treewidth graphs.

Symbols.

SymbolUnicodeNameMeaning
X, YSet variablesUnary predicates
U+2208MembershipElement of set
∃XSet quantifierOver sets
MSOMonadic SOFragment

Metatheory. Decidable on trees (Rabin). Regular language equivalence. Non-elementary complexity. Composition theorems. Courcelle's theorem.

Applies to. Automata theory. Verification (trees). Model checking. Graph algorithms. Regular languages.

Limitations. Non-elementary complexity. Only unary predicates. Full SO undecidable. Graphs without structure hard.

© 2026 Lingenic LLC