- 1. Overview
- 2. Etymology
- 3. Cultural Impact
Form of second-order logic
In mathematical logic , monadic secondâorder logic (often abbreviated MSO) is the fragment of second-order logic in which secondâorder quantification is restricted to variables that range over sets of elements rather than over arbitrary relations or functions. This restriction makes MSO strictly weaker than full secondâorder logic but still powerful enough to encode many combinatorial properties. The formal definition can be expressed as a set of formulas built from firstâorder atoms using only monadic setâquantifiersâŻâX,âŻâX, whereâŻXâŻdenotes a subset of the domain. The resulting theory is sometimes called monadic predicate calculus, and it enjoys a number of pleasant modelâtheoretic properties that do not hold for the full secondâorder formalism.
MSO is especially prominent in the study of graphâtheoretic problems. In the logic of graphs , for example, many natural graph propertiesâsuch as being a forest, being chordal, or having a Hamiltonian pathâcan be captured by an MSO formula that quantifies over vertexâsets or edgeâsets and then checks adjacency using the primitive binary edge predicate
E
(x, y)
{\displaystyle E(x,y)}.
Because of this expressive adequacy, MSO sits at the heart of Courcelleâs theoremâŻ[/Courcelle%27s_theorem], which shows that any graph property expressible in MSO can be decided in linear time on any graph class of bounded treewidth . This theorem has become a cornerstone of algorithmic graph theory, providing a bridge between logical definability and efficient computation.
Beyond pure mathematics, MSO also plays a pivotal role in automata theory . The BĂźchiâElgotâTrakhtenbrot theorem establishes a precise correspondence between MSOâdefinable languages over infinite trees and the class of regular languages over finite alphabets. In this setting, the formulas are interpreted over structures such as infinite binary trees, and the theorem yields a decision procedure for the emptiness of MSOâdefinable tree automata.
Variants
Monadic secondâorder logic comes in two distinct variants, each tailored to a different class of structures and with its own technical constraints.
Graphâtheoretic variant â In this setting the formulas may contain arbitrary relational symbols, including the binary edge predicate
E
(x, y){\displaystyle E(x,y)}
that records adjacency between vertices. What remains monadic is the secondâorder quantification: only set variables may be quantified over, while firstâorder variables range over individual nodes or edges. This variant is the one most commonly used in the statement of Courcelleâs theorem and in the analysis of graph algorithms that operate on boundedâtreewidth graphs.
Automataâtheoretic variant â Here the syntactic restriction is stricter: all predicates occurring in the formulaâincluding the equality symbol â=â and any ordering relation â<ââmust be monadic. Consequently, the only allowed secondâorder quantifiers range over finite or infinite sets of elements, and the underlying structures are typically trees, words, or other wellâfounded orders. This variant underlies the BĂźchiâElgotâTrakhtenbrot theorem and is the logical framework employed by many treeâautomata and wordâautomata constructions.
Both variants share the property that the set of monadic predicates is expressively equivalent to the class of subsets of the domain, which is why MSO is sometimes described as âquantification over setsâ. This equivalence is formalised in the notion of a Fragment_(logic) , where MSO is identified as a specific fragment of the full secondâorder language.
Computational complexity of evaluation
The expressiveness of MSO can be stratified in several ways, each leading to a different computational landscape.
Existential fragment
Existential monadic secondâorder logic (often written EMSO) is the subset of MSO in which all secondâorder quantifiers are existential (âX) and no universal secondâorder quantifiers (âX) appear. Firstâorder quantifiers remain unrestricted. The significance of this fragment stems from its close ties to descriptive complexity: by Fagin’s theorem , the class of properties definable by an existential nonâmonadic secondâorder formula coincides exactly with the complexity class NP. When the monadic restriction is imposed, the resulting set of definable properties is called monadic NP (sometimes abbreviated MNP). This restriction yields separations that are invisible in the broader nonâmonadic setting. For instance, the graphâproperty âthe input graph is disconnectedâ belongs to monadic NP because one can write an EMSO formula asserting the existence of a proper subset of vertices that has no incident edges to the remainder. By contrast, the complementary property âthe graph is connectedâ does not belong to monadic NP; proving this nonâmembership is equivalent to establishing that NP â coNP, a longstanding open problem in computational complexity theory.
Enumeration and counting on boundedâtreewidth structures
When the input structure is a tree or, more generally, a graph of bounded treewidth, MSO formulas admit efficient enumeration and counting algorithms. Specifically, for any MSO formulaâŻĎâŻwith free (i.e., nonâquantified) firstâorder variables, there exist enumeration algorithms that preprocess the input in linear time and then output each satisfying assignment with a delay that is linear in the size of that assignmentâa soâcalled constantâdelay enumeration in the typical case where all free variables are firstâorder. Moreover, the number of satisfying assignments can be counted in linear time on such boundedâtreewidth inputs, thanks to a translation of the MSO formula into an equivalent tree automaton . These algorithmic results are encapsulated by Courcelle’s theorem and have been formalised in a series of seminal papersâŻ[/Courcelle%27s_theorem],âŻ[/Tree_(data_structure)],âŻ[/Tree_automaton].
Decidability and complexity of satisfiability
The satisfiability problem for full MSO is undecidable in general because MSO subsumes firstâorder logic, whose satisfiability problem is already undecidable. Nevertheless, several restricted MSO theories are decidable, most notably the MSO theory of the infinite complete binary tree (often denoted S2S). The decidability of S2S yields the decidability of:
- the monadic secondâorder theory of arbitrary trees,
- the monadic secondâorder theory of the natural numbersâŻââŻwith the successor relation (S1S),
- the weak monadic secondâorder logics WS2S and WS1S, which restrict quantification to finite subsets only; in these weak logics addition of natural numbers is still definable.
For each of these decidable fragments the decision problem is nonelementary in the size of the input formulaâŻ[/Nonelementary_problem], meaning that no elementary bound (such as a tower of exponentials) exists for the length of the shortest proof of unsatisfiability. Despite this theoretical limitation, practical decision procedures have been developed using automataâtheoretic techniques and are implemented in tools such as MonaâŻ[/Mona].
The application of MSO satisfiability to formal verification is especially noteworthy. In the verification of linked data structures, shape analysis, and symbolic reasoning for both software and hardware systems, one often translates program properties into MSO formulas over inductive data structures. The resulting decidability results for MSO on trees and words underpin a wide variety of modelâchecking pipelinesâŻ[/Formal_verification],âŻ[/Data_structures],âŻ[/Shape_analysis_(program_analysis)],âŻ[/Symbolic_reasoning],âŻ[/Hardware_verification].
See also
References
⢠^ Courcelle, Bruno ; Engelfriet, Joost (2012-01-01). Graph Structure and Monadic Second-Order Logic: A Language-Theoretic Approach . Cambridge University Press. ISBN âŻâŻ978-0521898331 . Retrieved 2016-09-15.
⢠^
⢠Fagin, Ronald (1975), “Monadic generalized spectra”, Zeitschrift fĂźr Mathematische Logik und Grundlagen der Mathematik , 21 : 89â96, doi :10.1002/malq.19750210112, MR âŻâŻ0371623 .
⢠^
⢠Fagin, R. ; Stockmeyer, L. ; Vardi, M. Y. (1993), “On monadic NP vs. monadic co-NP”, Proceedings of the Eighth Annual Structure in Complexity Theory Conference , Institute of Electrical and Electronics Engineers, doi :10.1109/sct.1993.336544, S2CID âŻâŻ32740047 .
⢠^
⢠Thatcher, J. W.; Wright, J. B. (1968-03-01). “Generalized finite automata theory with an application to a decision problem of second-order logic”. Mathematical Systems Theory . 2 (1): 57â81. doi :10.1007/BF01691346. ISSN âŻâŻ1433-0490. S2CID âŻâŻ31513761.
⢠^ a b
⢠Meyer, Albert R. (1975). Parikh, Rohit (ed.). “Weak monadic second order theory of successor is not elementaryârecursive”. Logic Colloquium . Lecture Notes in Mathematics. Springer Berlin Heidelberg: 132â154. doi :10.1007/bfb0064872. ISBN âŻâŻ9783540374831 .
⢠^
⢠Bagan, Guillaume (2006). Ăsik, ZoltĂĄn (ed.). “MSO Queries on Tree Decomposable Structures Are Computable with Linear Delay”. Computer Science Logic . Lecture Notes in Computer Science. 4207 . Springer Berlin Heidelberg: 167â181. doi :10.1007/11874683_11. ISBN âŻâŻ9783540454595 .
⢠^
⢠Arnborg, Stefan; Lagergren, Jens; Seese, Detlef (1991-06-01). “Easy problems for treeâdecomposable graphs”. Journal of Algorithms . 12 (2): 308â340. doi :10.1016/0196-6774(91)90006-K. ISSN âŻâŻ0196-6774.
⢠^
⢠Rabin, Michael O. (1969). “Decidability of SecondâOrder Theories and Automata on Infinite Trees”. Transactions of the American Mathematical Society . 141 : 1â35. doi :10.2307/1995086. ISSN âŻâŻ0002-9947. JSTOR âŻâŻ1995086.
⢠^
⢠Stockmeyer, Larry; Meyer, Albert R. (2002-11-01). “Cosmological lower bound on the circuit complexity of a small problem in logic”. Journal of the ACM . 49 (6): 753â784. doi :10.1145/602220.602223. ISSN âŻâŻ0004-5411. S2CID âŻâŻ15515064.
⢠^
⢠Henriksen, Jesper G.; Jensen, Jakob; Jørgensen, Michael; Klarlund, Nils; Paige, Robert; Rauhe, Theis; Sandholm, Anders (1995). Brinksma, E.; Cleaveland, W. R.; Larsen, K. G.; Margaria, T. ; Steffen, B. (eds.). “Mona: Monadic secondâorder logic in practice”. Tools and Algorithms for the Construction and Analysis of Systems . Lecture Notes in Computer Science. 1019 . Berlin, Heidelberg: Springer: 89â110. doi :10.1007/3-540-60630-0_5. ISBN âŻâŻ978-3-540-48509-4 .
⢠^
⢠Fiedor, TomĂĄĹĄ; HolĂk, LukĂĄĹĄ; LengĂĄl, OndĹej; Vojnar, TomĂĄĹĄ (2019-04-01). “Nested antichains for WS1S”. Acta Informatica . 56 (3): 205â228. doi :10.1007/s00236-018-0331-z. ISSN âŻâŻ1432-0525. S2CID âŻâŻ57189727.
⢠^
⢠Traytel, Dmitriy; Nipkow, Tobias (2013-09-25). “Verified decision procedures for MSO on words based on derivatives of regular expressions”. ACM SIGPLAN Notices . 48 (9): 3âf12. doi :10.1145/2544174.2500612. hdl :20.500.11850/106053. ISSN âŻâŻ0362-1340.
⢠^
⢠Møller, Anders; Schwartzbach, Michael I. (2001-05-01). “The pointer assertion logic engine”. Proceedings of the ACM SIGPLAN 2001 conference on Programming language design and implementation . PLDI ‘01. Snowbird, Utah, USA: Association for Computing Machinery. pp.âŻ221â231. doi :10.1145/378795.378851. ISBN âŻâŻ978-1-58113-414-8 . S2CID âŻâŻ11476928.
⢠^
⢠Basin, David; Klarlund, Nils (1998-11-01). “Automata based symbolic reasoning in hardware verification”. Formal Methods in System Design . 13 (3): 255â288. doi :10.1023/A:1008644009416. ISSN âŻâŻ0925-9856.
⢠^
â˘
⢠v ⢠t ⢠e
Mathematical logic General
list and
GĂśdel’s completeness theorem and GĂśdel’s incompleteness theorems
Cantor’s theorem, paradox and diagonal argument
- Classical logic
- Logical truth
- Tautology
- Proposition
- Inference
- Logical equivalence
- Consistency
- Equiconsistency
- Argument
- Soundness
- [Validity_(logic)] (/Validity_(logic))
- Syllogism
- Square of opposition
- Venn diagram
- Boolean algebra
- Boolean functions
- Logical connectives
- Propositional calculus
- Propositional formula
- Truth tables
- Many-valued logic
- 3
- finite
- â
- First-order
- list
- Second-order
- Monadic
- Higher-order
- Fixed-point
- Free
- Quantifiers
- Predicate
- Monadic predicate calculus
- Set
- hereditary
- Class
- (Ur- )Element
- Ordinal number
- Extensionality
- Forcing
- Relation
- equivalence
- partition
- Set operations:
- [Set_(mathematics)] (/Set_(mathematics))
- Countable
- Uncountable
- Empty
- Inhabited
- Singleton
- Finite
- Infinite
- Transitive
- Ultrafilter
- Recursive
- Fuzzy
- Universal
- Universe
- constructible
- Grothendieck
- Von Neumann
Maps and cardinality
- Function /Map
- domain
- codomain
- image
- In /Sur /Bi -jection
- SchrĂśderâBernstein theorem
- Isomorphism
- GĂśdel numbering
- Enumeration
- Large cardinal
- inaccessible
- Aleph number
- Operation
- binary
Formal system (list ), language and syntax
- Alphabet
- Arity
- Automata
- Axiom schema
- Expression
- ground
- Extension
- by definition
- conservative
- Relation
- Formation rule
- Grammar
- [Wellâformed_formula]
- atomic
- closed
- ground
- open
- Free/bound variable
- Language
- Metalanguage
- Logical connective
- ÂŹ
- â¨
- â§
- â
- â
- [Logical_equality] (maybe not a link)
- Predicate
- functional
- variable
- propositional variable
- Proof
- Quantifier
- â
- !
- â
- rank
- Sentence
- atomic
- spectrum
- Signature
- String
- Substitution
- Symbol
- function
- logical/constant
- nonâlogical
- variable
- [Term_(logic)]
- Theory
- list
Example axiomatic system (list )
- of true arithmetic :
- of the real numbers
- Tarski’s axiomatization
- of Boolean algebras
- of geometry :
- Formal proof
- Natural deduction
- Logical consequence
- Rule of inference
- Sequent calculus
- Theorem
- Systems
- axiomatic
- deductive
- Hilbert
- list
- Complete theory
- [Independence_(mathematical_logic)] (/Independence_(mathematical_logic)) (from ZFC )
- Proof of impossibility
- Ordinal analysis
- Reverse mathematics
- Selfâverifying theories
- Interpretation
- function
- of models
- Model
- atomic
- equivalence
- finite
- prime
- saturated
- spectrum
- submodel
- Nonâstandard model
- of nonâstandard arithmetic
- Diagram
- elementary
- Categorical theory
- Model complete theory
- Satisfiability
- Semantics of logic
- Strength
- Theories of truth
- semantic
- Tarski’s
- Kripke’s
- Tâschema
- Transfer principle
- Truth predicate
- Truth value
- Type
- Ultraproduct
- Church encoding
- ChurchâTuring thesis
- Computably enumerable
- Computable function
- Computable set
- Decision problem
- decidable
- undecidable
- P
- NP
- P versus NP problem
- Kolmogorov complexity
- Lambda calculus
- Primitive recursive function
- Recursion
- Recursive set
- Turing machine
- Type theory
Related
- Abstract logic
- Algebraic logic
- Automated theorem proving
- Category theory
- Concrete /Abstract category
- Category of sets
- History of logic
- History of mathematical logic
- timeline
- Logicism
- Mathematical object
- Philosophy of mathematics
- Supertask
Article: