Relation variables and first-order formulas for the ESO tableau sentence #
Given a deterministic multi-tape Turing machine tm : MultiTapeTM m Bool State ([Fintype State] [DecidableEq State]) and a bundle r : FO.TableauRels L' m State of relation symbols over a
first-order language L', this file defines the relation-variable index types and first-order
component formulas of the existential second-order tableau sentence on Fin B.
Main definitions #
Cslib.Logic.FO.UnaryTableauVar,Cslib.Logic.FO.BinaryTableauVar,Cslib.Logic.FO.TableauVar,Cslib.Logic.FO.tableauArity: existential second-order relation variables and their arities.Cslib.Logic.FO.TableauRels: bundle of the 12 relation-symbol families used by the first-order tableau formulas.Cslib.Logic.FO.endPosSentence,Cslib.Logic.FO.initSentence,Cslib.Logic.FO.stepSentence,Cslib.Logic.FO.acceptSentence: the four component sentences of the tableau matrix.
References #
Relation variables of the ESO tableau sentence #
Indices of the unary relation variables of the ESO tableau sentence:
Indices of the binary relation variables of the ESO tableau sentence:
.inl ():inPosat(t, j),.inr (.inl i):head i (+a)at(t, a),.inr (.inr (.inl i)):head i (-a)at(t, a),.inr (.inr (.inr (.inl (i, s)))):cell i (+a) sat(t, a),.inr (.inr (.inr (.inr (i, s)))):cell i (-a) sat(t, a).
Indices of all existential relation variables of the ESO tableau sentence.
Arity assignment for TableauVar m State.
Bundle of the 12 relation-symbol families used by the first-order tableau formulas over L'.
- lt : L'.Relations 2
Strict linear order
<onFin B. - uLen : L'.Relations 1
Unary relation holding of the unique element
z = u.length. - uBit : L'.Relations 1
Unary relation holding of
p < u.lengthwhenu[p] = true. - endPos : L'.Relations 1
Unary relation holding of the unique certificate end position
e = u.length + w.length. - certBit : L'.Relations 1
Unary relation holding of
j ∈ (u.length, e]whenw[j - 1 - u.length] = true. Unary relation family for
(Feature.state q).Holds (cfg t).- out : Turing.OutView → L'.Relations 1
Unary relation family for
(Feature.out o).Holds (cfg t). - inPos : L'.Relations 2
Binary relation for
(Feature.inPos j).Holds (cfg t). Binary relation family for
(Feature.head i (+a)).Holds (cfg t).Binary relation family for
(Feature.head i (-a)).Holds (cfg t).Binary relation family for
(Feature.cell i (+a) s).Holds (cfg t).Binary relation family for
(Feature.cell i (-a) s).Holds (cfg t).
Sentence asserting that r.endPos holds of a unique element e, and that r.uLen ≤ e and e
is not the maximum element (e + 1 < B).
Formula expressing inputAt (u ++ w) j = s at variable vJ : V.
Formula expressing (Feature.inRead s).Holds (cfg t) at time variable vT : V.
Formula expressing (Feature.read i s).Holds (cfg t) at time variable vT : V.
Formula expressing (Feature.sit y).Holds (cfg t) at time variable vT : V.
Formula expressing that the input head moves to vJ from its position at time vT under
direction d.
Formula expressing that a work-tape head moves to signed offset vA from its position at time
vT under effective direction d (where d = .pos means moving away from 0 and d = .neg
means moving toward 0, crossing into headOpp at 1 when vA = 0 and d = .pos).
Right-hand side of the step equation for state q' at time vT.
Right-hand side of the step equation for out o at time vT.
Right-hand side of the step equation for inPos at time vT and position vJ.
Right-hand side of the step equation for a work-tape head at time vT and offset vA, with
orientation sign (1 for +a, -1 for -a).
Right-hand side of the step equation for a work-tape cell at time vT and offset vA.
Sentence fixing all basic features at t = 0.
Sentence imposing the step equations from t to t + 1 for all basic features.
Sentence asking that at the maximum time step B - 1, the machine is halted (state none)
with output [true] (out (.one true)).