The interpreter is right #
Interpreter.interp: if all runs of the formula coded by f at x stop with the list l, then
for every budget t of height at most H the interpreter IF at env f x t stops with a list
l' that matches the simulated runs simS t l run by run (Interpreter.RelJ, with step counts
scaled by MM H). From VP ≠ VNP over every field [Ant26], module NS1.EvalThm.
Main results #
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.Fm.ofTree_cases (f : Tree) :
f.hd.len = 0 ∧ ofTree f = quote f.tl ∨ f.hd.len = 1 ∧ ofTree f = id ∨ f.hd.len = 2 ∧ ofTree f = (ofTree f.tl).hd ∨ f.hd.len = 3 ∧ ofTree f = (ofTree f.tl).tl ∨ f.hd.len = 4 ∧ ofTree f = (ofTree f.tl.hd).cons (ofTree f.tl.tl) ∨ f.hd.len = 5 ∧ ofTree f = (ofTree f.tl.hd).ite (ofTree f.tl.tl.hd) (ofTree f.tl.tl.tl) ∨ f.hd.len = 6 ∧ ofTree f = (ofTree f.tl.hd).run (ofTree f.tl.tl) ∨ f.hd.len = 7 ∧ ofTree f = guess ∨ (f.hd.len = 8 ∨ 11 ≤ f.hd.len) ∧ ofTree f = fail ∨ f.hd.len = 9 ∧ ofTree f = (ofTree f.tl).theta ∨ f.hd.len = 10 ∧ ofTree f = (ofTree f.tl).mul
structure Cslib.Circuits.Arithmetic.Separation.Interpreter.RelJ {A : Type} (M j : ℕ) (r : Run A) (q : SimRun A) :
What the interpreter does in one run: q is a run of the formula and the budgets that are
left.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.call0 {A : Type} [CommRing A] {θ : List Bool → A} {f x : Tree} {t : Bt} {M : ℕ} {l : List (Run A)} (h : ∃ (l' : List (Run A)), Ev θ IF (env f.tl x t) l' ∧ List.Forall₂ (RelJ M 0) l' (simS t l)) {body : Fm} {Q2 : SimRun A → List (SimRun A)} (hb :
∀ q ∈ simS t l,
∃ (l2 : List (Run A)),
Ev θ body (q.run.out.cons q.left.enc) l2 ∧ List.Forall₂
(fun (s : Run A) (p : SimRun A) =>
s.bill = [] ∧ q.run.th * s.th = p.run.th ∧ s.out = p.run.out.cons p.left.enc ∧ M * q.run.cost + s.cost + 400 ≤ M * p.run.cost)
l2 (Q2 q)) :
A call for a single value: let r = IF(args).