Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.Picks

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 #

def Cslib.Circuits.Arithmetic.Separation.Interpreter.funs {ι : Type} [DecidableEq ι] {α : Type} (opts : ι → List α) (f0 : ι → α) :
List ι → List (ι → α)

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) :
(List.map Φ (funs opts f0 s)).sum = ∑ f : ι → α, if (∀ i ∈ s, f i ∈ opts i) ∧ ∀ i ∉ s, f i = f0 i then Φ f else 0

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) :
(List.map Φ (execAll m (List.map step s) (L st))).sum = (List.map (fun (f : ι → α) => Φ (L (List.foldl (fun (st : St) (i : ι) => ov i (f i) st) st s))) (funs opts f0 s)).sum

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) :
execAll m (List.map step s) (L st) = [L (List.foldl (fun (st : St) (i : ι) => ov i st) st s)]

Deterministic steps.

Checks that are passed.

Checks that are not passed.