The interpreter #
Interpreter.IF at (IF, (f, (x, t))) simulates the formula f at x with the budgets t;
instead of multiplying by a named constant it subtracts 1 from the budget of that name. Its value
is the value of the run and the budgets that are left. Interpreter.simS describes the simulated
runs.
From VP ≠ VNP over every field [Ant26], module NS1.Eval.
Main definitions #
Interpreter.IF,Interpreter.env.Interpreter.SimRun: a simulated run, with the run of the formula (run) and the budgets left after its bill (left);Interpreter.simS t l: the simulated runs oflthat fit intot.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.lett_rel {A : Type} [CommRing A] {θ : List Bool → A} {β : Type u_2} {γ : Type u_3} {e body : Fm} {x : Tree} {le : List (Run A)} (he : Ev θ e x le) {Q : List β} {R : Run A → β → Prop} (hR : List.Forall₂ R le Q) {Q2 : β → List γ} {R2 : Run A → γ → Prop} (h :
∀ s ∈ le,
∀ b ∈ Q,
R s b →
∃ (l2 : List (Run A)),
Ev θ body s.out l2 ∧ List.Forall₂
(fun (t : Run A) (c : γ) =>
R2 { cost := s.cost + t.cost + 2, th := s.th * t.th, bill := s.bill ++ t.bill, out := t.out } c)
l2 (Q2 b)) :
let, for lists that correspond to other lists.
The formula in the environment.
The argument in the environment.
The budgets in the environment.
The arguments of the formula.
First call, with the environment kept.
Second call, with everything kept.
The cases of the interpreter.
The environment of the interpreter.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.rec_ev {A : Type} [CommRing A] {θ : List Bool → A} {b a x s : Fm} {y g z f' x' : Tree} {t t' : Bt} {kb ka kx ks : ℕ} (hb : Dt θ b y (env f' x' t') kb) (ha : Dt θ a y g ka) (hx : Dt θ x y z kx) (hs : Dt θ s y t.enc ks) {l : List (Run A)} (h : Ev θ IF (env g z t) l) :
A recursive call.