The value of an automaton is a clause sum #
At the code of an input, the clause sum of the run clauses is the value of the automaton
(Tape.runVal_eq_domainClauseSum). The reason is that the certificates of runs correspond to
the pairs of a matched run and a sequence of states from the initial to the final state, with one
certificate for each pair (Tape.existsUnique_good).
Main results #
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
module
Paper.CircuitPhi(lem_circuit_assignment,lem_circuit_value)
theorem Cslib.Circuits.Arithmetic.Separation.Tape.existsUnique_good {Γ S Q : Type} [DecidableEq Γ] [DecidableEq S] {n t M N : ℕ} (i e : Q) (u : Fin n → List Γ) (hM : N + t < M) (hN : (wordOf (List.ofFn u)).length ≤ N) (o : Fin t → Letter S (Fin n) Γ) (q : Fin (t + 1) → Q) :
(Matched (List.ofFn o) u ∧ q 0 = i ∧ q (Fin.last t) = e →
∃! g : RunAssignment Γ S Q n t M, (g.letter = o ∧ g.state = q) ∧ Good i e (code N u) g.letter g.state g.place g.content) ∧ ∀ (g : RunAssignment Γ S Q n t M),
g.letter = o →
g.state = q →
Good i e (code N u) g.letter g.state g.place g.content → Matched (List.ofFn o) u ∧ q 0 = i ∧ q (Fin.last t) = e
The certificates of a matched run. For a matched run o with states q from i to e
there is exactly one certificate with these letters and states, and every certificate comes from
such a run.
theorem Cslib.Circuits.Arithmetic.Separation.Tape.runVal_eq_domainClauseSum {F : Type u_1} [CommRing F] {Γ S Q : Type} [DecidableEq Γ] [DecidableEq S] {n t M N : ℕ} [Fintype Γ] [Fintype S] [Fintype Q] [DecidableEq Q] (mu : Letter S (Fin n) Γ → Matrix Q Q F) (i e : Q) (u : Fin n → List Γ) (hM : N + t < M) (hN : (wordOf (List.ofFn u)).length ≤ N) :
The value of an automaton is a clause sum: at the code of the input u, the clause sum
of the run clauses with the matrix entries of mu as weights is the value of mu on u.