The universal machine evaluates all formulas #
The remaining constructs are run, which evaluates two subformulas and then the value of the
first as a program at the value of the second, and theta, which reads the value of its
subformula as a name and multiplies by the constant with this name. The induction on the
evaluation (Interpreter.Ev) then shows that the machine evaluates every code correctly
(Uni.EvalsTo.of_ev); the case of each construct is found from the code by unfolding
Interpreter.Fm.ofTree and splitting on the opcode.
Main results #
Uni.EvalsTo.run,Uni.EvalsTo.theta.Uni.EvalsTo.of_ev: the machine evaluates all formulas.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
Appendix I (the proof of Proposition I.1, "The pointer machine"), module
Nc.Uni.EvThm3
theorem Cslib.Circuits.Arithmetic.Separation.Uni.EvalsTo.run {A : Type} [CommRing A] {θ : List Bool → A} {supp : Finset (List Bool)} {o a x : Interpreter.Tree} (ho : o.len = 6) {la lb : List (Interpreter.Run A)} {L : Interpreter.Run A → Interpreter.Run A → List (Interpreter.Run A)} (iha : EvalsTo θ supp a.hd x la) (ihb : EvalsTo θ supp a.tl x lb) (ihc : ∀ r ∈ la, ∀ s ∈ lb, EvalsTo θ supp r.out s.out (L r s)) :
EvalsTo θ supp (o.cons a) x
(List.flatMap
(fun (r : Interpreter.Run A) =>
List.flatMap
(fun (s : Interpreter.Run A) => List.map (fun (t : Interpreter.Run A) => ((r.seq s).seq t).tick t.out) (L r s))
lb)
la)
theorem Cslib.Circuits.Arithmetic.Separation.Uni.EvalsTo.theta {A : Type} [CommRing A] {θ : List Bool → A} {supp : Finset (List Bool)} {o a x : Interpreter.Tree} (hθ : ∀ q ∉ supp, θ q = 0) (ho : o.len = 9) {l : List (Interpreter.Run A)} (ih : EvalsTo θ supp a x l) :
theorem Cslib.Circuits.Arithmetic.Separation.Uni.EvalsTo.of_ev {A : Type} [CommRing A] {θ : List Bool → A} {supp : Finset (List Bool)} (hθ : ∀ q ∉ supp, θ q = 0) {F : Interpreter.Fm} {x : Interpreter.Tree} {l : List (Interpreter.Run A)} (h : Interpreter.Ev θ F x l) (c : Interpreter.Tree) :
The machine evaluates all formulas.