Hereditary First-Order Logic
- Hereditary First-Order Logic is defined as the study of finite structures that hereditarily satisfy first-order sentences, focusing on induced substructures and logical expressibility.
- It classifies model checking tasks into polynomial-time and coNP-complete cases based on quantifier prefix patterns, highlighting clear boundaries of tractability.
- Its connections to logic programming and constraint satisfaction demonstrate practical implications in Prolog semantics and CSP optimization.
Hereditary First-Order Logic (HerFO) is the paper of properties of finite structures that are stable under taking induced substructures and that are definable by first-order sentences. The associated computational task, hereditary model checking (Her-MC), evaluates whether a finite structure’s every induced substructure satisfies a given first-order sentence . This notion underpins a sharp complexity classification tied to the quantifier prefix of , yielding a dichotomy between polynomial-time solvable and coNP-complete cases, subject to strong model-theoretic and complexity-theoretic constraints (Bodirsky et al., 16 Nov 2024). Additionally, the logic of hereditary Harrop formulas (fohh) extends this perspective to settings foundational in logic programming and computational semantics, as in Prolog (Kwon, 2015).
1. Formal Definition and Foundations
Let be a finite relational signature and a sentence of first-order logic (FO) over . For a finite -structure , write for any induced substructure of (that is, retains the same universe elements and all -facts inherited from ). A structure hereditarily satisfies if every induced substructure satisfies .
The hereditary model checking problem (Her-MC) for a fixed sentence is:
- Input: Finite structure
- Question: Does ?
Since model checking for fixed is in polynomial time, the hereditary problem lies in coNP: non-membership is witnessed by a counterexample substructure (Bodirsky et al., 16 Nov 2024).
2. Quantifier Prefix Classification and Tractability
Hereditary model checking exhibits a quantifier-prefix-based complexity dichotomy. For any quantifier prefix and in prenex normal form :
- If is of the form (universal block followed by existential block) or , then is decidable in polynomial time (even in ) and is FO-definable; hence, .
- Otherwise—precisely, if contains or as a subword—there exists some with this prefix such that is coNP-complete (Bodirsky et al., 16 Nov 2024).
Tractable cases correspond exactly to the absence of the aforementioned existential-universal sandwich patterns, reflecting the preservation of expressibility and decidability.
Sketches of Tractability
- For , e.g. , a “small-model property” applies: iff every induced -element substructure satisfies , reducing to universal first-order checking and thus PTIME.
- For , the logic may be rewritten via greedy witness assignment or as monadic second-order logic. In both cases, is in PTIME (Bodirsky et al., 16 Nov 2024).
3. Hardness of Prefixes and Typical coNP-complete Cases
If the quantifier prefix contains a “forbidden” subword ( or ), then can realize coNP-completeness. For example, with (binary/ternary relations), formula
enables reduction from the complement of 3-SAT to . Intuitively, failure to hereditarily satisfy can be witnessed by an induced substructure coding a certificate of unsatisfiability via cycles and triangles in the structure, mirroring coNP-hardness (Bodirsky et al., 16 Nov 2024). Similar constructions establish the hardness for any prefix featuring or .
4. Undecidability of PTIME Membership for Arbitrary Formulas
Although the prefix classification provides a syntactic criterion for tractability, determining whether is undecidable for arbitrary sentences unless . This follows from the ability to encode arbitrary existential second-order (ESO) problems in first-order logic, as well as the undecidability of FO prefix satisfiability beyond classical fragments (Bernays–Schönfinkel , Ackermann ). Thus, deciding hereditary tractability for arbitrary exceeds the known boundaries of algorithmic logic, with a direct equivalence to major open questions in complexity theory (Bodirsky et al., 16 Nov 2024).
5. Relationship to Constraint Satisfaction and Logic Programming
The class HerFO (hereditarily definable by FO) is situated between and coNP, containing many natural PTIME CSPs (such as forests, 2-SAT, poset embeddability), but not capturing all of coNP unless . This provides a uniform framework encompassing:
- All Datalog-definable and bounded-treewidth CSPs (those corresponding to the prefix)
- Guarded -calculus style CSPs (those with prefixes)
Implications extend to logic programming. For example, first-order hereditary Harrop formulas (fohh) provide a type-theoretic generalization relevant to operational semantics in Prolog, with uniform provability (as in Miller et al.) and an alternative game-semantics execution model (Kwon, 2015). In the latter, universal quantification in goals corresponds to user-driven input (logically sanctioned “read”), yielding an interactive two-player game and connecting with computability logic frameworks.
6. Open Problems and Further Directions
Hereditary first-order logic raises several open research questions:
- Precise characterization of which finite-domain CSPs fall within HerFO.
- The status of CSPs for reducts of finitely bounded -categorical structures with respect to HerFO and extensional SNP.
- Potential for a full constraint dichotomy within HerFO (beyond the current prefix dichotomy).
- Approximate and promise variants of hereditary model checking.
A plausible implication is that the connection between logical expressibility, substructure preservation, and complexity delineates a rich landscape in finite model theory, merging algebraic and algorithmic perspectives. Continued exploration is likely to yield deeper decompositions of the hereditary model-theoretic complexity classes and their interface with practical constraint problems (Bodirsky et al., 16 Nov 2024).