Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hereditary First-Order Logic

Updated 18 November 2025
  • 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 study 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 ϕ\phi. This notion underpins a sharp complexity classification tied to the quantifier prefix of ϕ\phi, yielding a dichotomy between polynomial-time solvable and coNP-complete cases, subject to strong model-theoretic and complexity-theoretic constraints (Bodirsky et al., 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 τ\tau be a finite relational signature and ϕ\phi a sentence of first-order logic (FO) over τ\tau. For a finite τ\tau-structure AA, write BAB \subseteq A for any induced substructure of AA (that is, BB retains the same universe elements and all ϕ\phi0-facts inherited from ϕ\phi1). A structure ϕ\phi2 hereditarily satisfies ϕ\phi3 if every induced substructure ϕ\phi4 satisfies ϕ\phi5.

ϕ\phi6

The hereditary model checking problem (Her-MC) for a fixed sentence ϕ\phi7 is:

  • Input: Finite structure ϕ\phi8
  • Question: Does ϕ\phi9?

Since model checking τ\tau0 for fixed τ\tau1 is in polynomial time, the hereditary problem lies in coNP: non-membership is witnessed by a counterexample substructure (Bodirsky et al., 2024).

2. Quantifier Prefix Classification and Tractability

Hereditary model checking exhibits a quantifier-prefix-based complexity dichotomy. For any quantifier prefix τ\tau2 and τ\tau3 in prenex normal form τ\tau4:

  • If τ\tau5 is of the form τ\tau6 (universal block followed by existential block) or τ\tau7, then τ\tau8 is decidable in polynomial time (even in τ\tau9) and is FO-definable; hence, ϕ\phi0.
  • Otherwise—precisely, if ϕ\phi1 contains ϕ\phi2 or ϕ\phi3 as a subword—there exists some ϕ\phi4 with this prefix such that ϕ\phi5 is coNP-complete (Bodirsky et al., 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 ϕ\phi6, e.g. ϕ\phi7, a “small-model property” applies: ϕ\phi8 iff every induced ϕ\phi9-element substructure satisfies τ\tau0, reducing to universal first-order checking and thus PTIME.
  • For τ\tau1, the logic may be rewritten via greedy witness assignment or as monadic second-order logic. In both cases, τ\tau2 is in PTIME (Bodirsky et al., 2024).

3. Hardness of Prefixes and Typical coNP-complete Cases

If the quantifier prefix τ\tau3 contains a “forbidden” subword (τ\tau4 or τ\tau5), then τ\tau6 can realize coNP-completeness. For example, with τ\tau7 (binary/ternary relations), formula

τ\tau8

enables reduction from the complement of 3-SAT to τ\tau9. Intuitively, failure to hereditarily satisfy τ\tau0 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., 2024). Similar constructions establish the hardness for any prefix featuring τ\tau1 or τ\tau2.

4. Undecidability of PTIME Membership for Arbitrary Formulas

Although the prefix classification provides a syntactic criterion for tractability, determining whether τ\tau3 is undecidable for arbitrary sentences τ\tau4 unless τ\tau5. 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 τ\tau6, Ackermann τ\tau7). Thus, deciding hereditary tractability for arbitrary τ\tau8 exceeds the known boundaries of algorithmic logic, with a direct equivalence to major open questions in complexity theory (Bodirsky et al., 2024).

5. Relationship to Constraint Satisfaction and Logic Programming

The class HerFO (hereditarily definable by FO) is situated between τ\tau9 and coNP, containing many natural PTIME CSPs (such as forests, 2-SAT, poset embeddability), but not capturing all of coNP unless AA0. This provides a uniform framework encompassing:

  • All Datalog-definable and bounded-treewidth CSPs (those corresponding to the AA1 prefix)
  • Guarded AA2-calculus style CSPs (those with AA3 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 AA4-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., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hereditary First-Order Logic.