The certificates of a run as an assignment on a finite domain #
A certificate of a run of a multi-tape automaton (M1's Tape.Good) consists of the letters, the
states, the head places and the tape contents. Here they are one function g : RunAssignment on
the finite domain RunVar: a letter for every step, a state for every time, a place for every
channel and time, and a content for every tape cell. Its one-hot bits, together with the code bits
of the input, are the bits RunBit of a clause sum.
Two families of clauses check a certificate:
- the weighted clauses
RunStep, one per step, letter and pair of states, carry the matrix entry of the step (prod_stepLits); - the forbidding clauses
RunRule, with weight0when they are in force (RunRule.InForce), forbid exactly the assignments that are no certificate (respectsRules_iff_good,prod_ruleLits).
Main definitions #
Tape.RunVar,Tape.RunVar.Dom,Tape.RunAssignment,Tape.RunBit.Tape.RunStep,Tape.RunRule,Tape.stepLits,Tape.ruleLits,Tape.RunRule.InForce.Tape.RespectsRules,Tape.runLits,Tape.runWeights.
Main results #
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
module
Nc.RunSum
The hidden variables of a certificate: a letter for every step, a state for every time, a place for every channel and time, and a content for every tape cell.
- letter {S : Type} {n t M : ℕ} (τ : Fin t) : RunVar S n t M
the letter of step
τ - state {S : Type} {n t M : ℕ} (τ : Fin (t + 1)) : RunVar S n t M
the state at time
τ - place {S : Type} {n t M : ℕ} (z : Ch S (Fin n)) (τ : Fin (t + 1)) : RunVar S n t M
the place of channel
zat timeτ - content {S : Type} {n t M : ℕ} (s : S) (p : Fin M) : RunVar S n t M
the content of cell
pof tapes
Instances For
An assignment of the hidden variables.
The letters.
The states.
The places.
The contents.
The bits of the clause sum: the code bits of the input, and the one-hot bits of the hidden variables.
The weighted clauses: one for every step, letter and pair of states.
- time : Fin t
the step
the letter read and written
- src : Q
the state before the step
- dst : Q
the state after the step
Instances For
The forbidding clauses.
- initState {Γ S : Type} {n t M : ℕ} : RunRule Γ S n t M
the first state is the initial one
- finalState {Γ S : Type} {n t M : ℕ} : RunRule Γ S n t M
the last state is the final one
- startPlace {Γ S : Type} {n t M : ℕ} (z : Ch S (Fin n)) : RunRule Γ S n t M
a starting channel begins at place
0 - move {Γ S : Type} {n t M : ℕ} (z : Ch S (Fin n)) (τ : Fin t) (m : Fin M) (a : Letter S (Fin n) Γ) : RunRule Γ S n t M
the place of
zadvances by what stepτemits onz - nextInput {Γ S : Type} {n t M : ℕ} (j j' : Fin n) (m : Fin M) : RunRule Γ S n t M
input
j'starts one place after the end of inputj - readTape {Γ S : Type} {n t M : ℕ} (s : S) (b : Bool) (τ : Fin t) (γ : Γ) (m : Fin M) : RunRule Γ S n t M
a tape write agrees with the content
- blankTape {Γ S : Type} {n t M : ℕ} (s : S) (b : Bool) (m p : Fin M) : RunRule Γ S n t M
the cells beyond the last place of a tape side are blank
- readInput {Γ S : Type} {n t M : ℕ} (j : Fin n) (τ : Fin t) (γ : Γ) (m : Fin M) : RunRule Γ S n t M
an input read agrees with the code
- endInput {Γ S : Type} {n t M : ℕ} (j : Fin n) (m : Fin M) : RunRule Γ S n t M
an input ends with the separator
Instances For
RunRule as a sum.
The literals of a forbidding clause, for the initial state i and the final state e.
No forbidding clause in force has all its literals true.
The forbidding clauses check certificates: an assignment respects the rules in force
exactly when it is a certificate of a run from i to e on the input with code x.
The weighted clauses carry the matrix entries of the run of the assignment.
The forbidding clauses select the certificates: their product is 1 on a certificate and
0 otherwise.