Semantic realization of the first-order tableau formulas on Fin B #
This file proves the semantic realization lemmas on Fin B for the first-order formulas defined in
CslibFrontier.Computability.Complexity.Fagin.Tableau.Defs, relating relation interpretations via
FO.TableauRels.AgreesAt to configuration features of tm : MultiTapeTM m Bool State.
Main definitions #
Cslib.Logic.FO.TableauRels.EncodesInput: the input relations ofronFin Bdescribe an inputufollowed by a certificatew.Cslib.Logic.FO.TableauRels.AgreesAt: agreement at timet : Fin Bbetween the relation symbols ofr : TableauRels L' m Stateand a configurationcfg : Cfg m Bool State input.
Main results #
Cslib.Logic.FO.exists_of_realize_endPosSentence,Cslib.Logic.FO.realize_endPosSentence_of_canonical: soundness and completeness ofendPosSentence.Cslib.Logic.FO.realize_inputAtFormula,Cslib.Logic.FO.realize_sitFormula: semantic characterization of the input-tape and situation formulas.Cslib.Logic.FO.realize_stateStepRHS,Cslib.Logic.FO.realize_outStepRHS,Cslib.Logic.FO.realize_inPosStepRHS,Cslib.Logic.FO.realize_headPosStepRHS,Cslib.Logic.FO.realize_headNegStepRHS,Cslib.Logic.FO.realize_cellStepRHS: semantic characterization of the step right-hand-side formulas.Cslib.Logic.FO.realize_initSentence: semantic characterization ofinitSentence.
References #
The input relations of r on Fin B describe the tape contents u ++ w, an input u
followed by a certificate w, with room for both and an end marker below B: uLen holds
exactly at u.length, endPos exactly at u.length + w.length, uBit at the positions
p < u.length where u has a true, and certBit at the positions j with
u.length < j ≤ u.length + w.length where w has a true at j - 1 - u.length.
Both words and the end marker fit below
B.uLenmarks the length of the input.- uBit_iff (p : Fin B) : ↑p < u.length → (FirstOrder.Language.Structure.RelMap r.uBit ![p] ↔ u[↑p]? = some true)
uBitmarks thetruebits of the input. - endPos_iff (z : Fin B) : FirstOrder.Language.Structure.RelMap r.endPos ![z] ↔ ↑z = u.length + w.length
endPosmarks the end of the certificate. - certBit_iff (j : Fin B) : u.length < ↑j → ↑j ≤ u.length + w.length → (FirstOrder.Language.Structure.RelMap r.certBit ![j] ↔ w[↑j - 1 - u.length]? = some true)
certBitmarks thetruebits of the certificate, which starts after positionu.length.
Soundness of endPosSentence: extracts the unique certificate end position e : Fin B with
u.length ≤ e and e + 1 < B.
Completeness of endPosSentence.
Semantic characterization of inputAtFormula.
Predicate stating that the relation symbols of r at time t : Fin B agree with a
configuration cfg : Cfg m Bool State input.
- state (q : Option State) : FirstOrder.Language.Structure.RelMap (r.state q) ![t] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.state q)
- out (o : Turing.OutView) : FirstOrder.Language.Structure.RelMap (r.out o) ![t] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.out o)
- inPos (j : Fin B) : FirstOrder.Language.Structure.RelMap r.inPos ![t, j] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.inPos ↑j)
- headPos (i : Fin m) (a : Fin B) : FirstOrder.Language.Structure.RelMap (r.headPos i) ![t, a] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.head i ↑↑a)
- headNeg (i : Fin m) (a : Fin B) : FirstOrder.Language.Structure.RelMap (r.headNeg i) ![t, a] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.head i (-↑↑a))
- cellPos (i : Fin m) (s : Option Bool) (a : Fin B) : FirstOrder.Language.Structure.RelMap (r.cellPos i s) ![t, a] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.cell i (↑↑a) s)
- cellNeg (i : Fin m) (s : Option Bool) (a : Fin B) : FirstOrder.Language.Structure.RelMap (r.cellNeg i s) ![t, a] ↔ Turing.MultiTapeTM.Feature.Holds cfg (Turing.MultiTapeTM.Feature.cell i (-↑↑a) s)
Semantic characterization of sitFormula under AgreesAt.
Semantic characterization of stateStepRHS under AgreesAt.
Semantic characterization of outStepRHS under AgreesAt.
Semantic characterization of inPosStepRHS under AgreesAt.
Semantic characterization of headStepRHS (positive orientation) under AgreesAt.
Semantic characterization of headStepRHS (negative orientation) under AgreesAt.
Semantic characterization of cellStepRHS under AgreesAt.
Semantic characterization of initSentence: it holds iff AgreesAt holds at t = 0.