Sums over executions as sums over choices #
A family of steps in which step i chooses a from a list and writes the names that belong to
i. The states after all steps are then indexed by the functions that make the choices
(Interpreter.funs), and sums over them are sums over all functions (Interpreter.sum_funs).
From VP ≠ VNP over every field [Ant26], module NS1.Picks.
Main definitions #
Main results #
Interpreter.execAll_choices: the states after a family of choices.Interpreter.execAll_det,Interpreter.execAll_checks_pos,Interpreter.execAll_checks_neg: deterministic steps and checks.
def Cslib.Circuits.Arithmetic.Separation.Interpreter.funs {ι : Type} [DecidableEq ι] {α : Type} (opts : ι → List α) (f0 : ι → α) :
All functions on a list of indices, with values from lists.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.funs_eq_of_not_mem {ι : Type} [DecidableEq ι] {α : Type} (opts : ι → List α) {s : List ι} {f0 f : ι → α} (h : f ∈ funs opts f0 s) {i : ι} (hi : i ∉ s) :
f i = f0 i
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.sum_funs {A : Type} [CommRing A] {ι : Type} [DecidableEq ι] {α : Type} [Fintype α] [DecidableEq α] [Fintype ι] (opts : ι → List α) (hopts : ∀ (i : ι), (opts i).Nodup) (s : List ι) (hs : s.Nodup) (f0 : ι → α) (Φ : (ι → α) → A) :
Sums over all functions.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.execAll_choices {A : Type} [CommRing A] {ι : Type} [DecidableEq ι] {α St : Type} {m : ℕ} {L : St → List Bool → Tree} {opts : ι → List α} {step : ι → DStep} {ov : ι → α → St → St} (good : St → Prop) (hst : ∀ (i : ι) (st : St), good st → DStep.exec m (step i) (L st) = List.map (fun (a : α) => L (ov i a st)) (opts i)) (hgood : ∀ (i : ι) (st : St), ∀ a ∈ opts i, good st → good (ov i a st)) {s : List ι} (hs : s.Nodup) {st : St} (hσ : good st) (f0 : ι → α) (Φ : (List Bool → Tree) → A) :
Choices. Step i gives, for every a in opts i, the state ov i a st.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.execAll_det {ι St : Type} {m : ℕ} {L : St → List Bool → Tree} {step : ι → DStep} {ov : ι → St → St} (good : List ι → St → Prop) (hst :
∀ (i : ι) (s : List ι) (st : St), good (i :: s) st → DStep.exec m (step i) (L st) = [L (ov i st)] ∧ good s (ov i st)) {s : List ι} {st : St} (hσ : good s st) :
Deterministic steps.