Documentation

CslibFrontier.Computability.Complexity.Gradel.Tableau

Deterministic polynomial-time tableaux as SO∃-Horn sentences #

Given a deterministic native multi-tape Turing machine tm and first-order formulas inputFormula interpreting the three input-tape symbols over Ordered.language L, this module constructs a single uniform SO∃-Horn sentence acceptanceHornSentence L tm inputFormula over Ordered.language L.

Its definite clauses mirror the positive local rules ImmermanVardi.Tableau.rowStep and initial configuration ImmermanVardi.Tableau.initial, using auxiliary relation variables for positive work-tape reads, running situations, head-elsewhere witnesses, and clamped/signed head predecessor positions. On any finite ordered domain Fin B (2 ≤ B) large enough to hold the input plus both endmarkers (input.length + 1 < B), the .tag relations in the sentence's least model equal the exact run rows row (tm.runFrom (tm.initCfg input) t.val). Goal clauses at the maximum time B - 1 forbid every non-halted control state some s and every output view other than OutView.one true, so the sentence holds on Fin B iff tm has halted with output [true] by step B - 1.

Main definitions #

Main results #

References #

Binary relation variables of the deterministic computation tableau in SO∃-Horn form. All variables have arity 2 ((time, pos)), ignoring the position coordinate on global features such as .read, .state, and .out.

Instances For

    Guards and atoms #

    Clauses #

    Uniform SO∃-Horn sentence over Ordered.language L expressing that tm halts with output [true] by the maximum element of the domain.

    Semantics and least-model characterization #

    Soundness: targetModel is closed under all definite clauses #

    Completeness: targetRow holds in leastModel #

    theorem Cslib.Complexity.Gradel.Tableau.realize_acceptanceHornSentence {L : FirstOrder.Language} {B m : ℕ} {State : Type} [L.Structure (Fin B)] [Fact (2 ≤ B)] [Fintype State] [DecidableEq State] (tm : Turing.MultiTapeTM m Bool State) (inputFormula : Option Bool → (Logic.FO.Ordered.language L).Formula (Fin 1)) (input : List Bool) (hinput : ∀ (s : Option Bool) (a : Fin B), (inputFormula s).Realize ![a] ↔ Turing.inputAt input ↑a = s) (hn : input.length + 1 < B) :

    Horn tableau acceptance. The uniform SO∃-Horn sentence acceptanceHornSentence holds on Fin B (2 ≤ B, input.length + 1 < B) iff tm halts with output [true] by step B - 1.