Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.ListPrograms

Programs on lists with constantly many entries #

Programs of the tree machine for lists whose length is a constant of the program, with their values (Interpreter.Gives, Interpreter.Does): the entry at a fixed position, the list of the values of fixed formulas, a constant word pushed on a list, and case distinctions by fixed numbers of bits and by a number below a constant.

Main definitions #

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3 (the evaluator in the proof of Theorem J.3); module Nc.Grp.Trans.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.rev_gives_ofBits {A : Type} [CommRing A] {θ : List Bool → A} {s l : Fm} {x : Tree} {cs cl : ℕ} {v w : List Bool} (hs : Gives θ s x (Tree.ofBits v) cs) (hl : Gives θ l x (Tree.ofBits w) cl) :
Gives θ (foldF Fm.id s l) x (Tree.ofBits (w.reverse ++ v)) (cs + cl + w.length * 31 + 20)

Reverse a bit list onto another one.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.appF_gives_ofBits {A : Type} [CommRing A] {θ : List Bool → A} {a b : Fm} {x : Tree} {ca cb : ℕ} {v w : List Bool} (ha : Gives θ a x (Tree.ofBits v) ca) (hb : Gives θ b x (Tree.ofBits w) cb) :
Gives θ (appF a b) x (Tree.ofBits (v ++ w)) (ca + cb + v.length * 62 + 41)

Concatenation of bit lists.

The entry at position k of the list that b gives.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.nthF_gives {A : Type} [CommRing A] {θ : List Bool → A} {b : Fm} {x : Tree} {l : List Tree} {c : ℕ} (k : ℕ) (h : Gives θ b x (listT l) c) :
Gives θ (nthF k b) x (l.getD k Tree.nil) (c + k + 1)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.nthF_gives_ofFn {A : Type} [CommRing A] {θ : List Bool → A} {b : Fm} {x : Tree} {m c : ℕ} {o : Fin m → Tree} (i : Fin m) (h : Gives θ b x (listT (List.ofFn o)) c) :
Gives θ (nthF (↑i) b) x (o i) (c + m)

An entry of a list that is given by its entries.

The list of the values of the formulas of a list.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.listF_gives {A : Type} [CommRing A] {θ : List Bool → A} {m : ℕ} {f : Fin m → Fm} {x : Tree} {o : Fin m → Tree} {c : ℕ} (h : ∀ (i : Fin m), Gives θ (f i) x (o i) c) :
Gives θ (listF (List.ofFn f)) x (listT (List.ofFn o)) (m * (c + 1) + 1)

Push a constant word on the list that b gives.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.pushF_gives {A : Type} [CommRing A] {θ : List Bool → A} {b : Fm} {x : Tree} {l : List Tree} {c : ℕ} (ts : List Tree) (h : Gives θ b x (listT l) c) :
Gives θ (pushF ts b) x (listT (ts ++ l)) (c + 2 * ts.length)

Distinguish the values of the bits that g 0, …, g (m - 1) give: go on with k v at the values v.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.dispF_does {A : Type} [CommRing A] {θ : List Bool → A} {m : ℕ} {g : Fin m → Fm} {k : (Fin m → Bool) → Fm} {x : Tree} {v : Fin m → Bool} {Q : List (A × Tree)} {c d : ℕ} (hg : ∀ (i : Fin m), Gives θ (g i) x (Tree.bit (v i)) c) (hk : Does θ (k v) x Q d) :
Does θ (dispF m g k) x Q (m * (c + 1) + d)

Distinguish the values of the number that t gives: go on with the formula at that position of the list, and reject if there is none.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.switchF_does {A : Type} [CommRing A] {θ : List Bool → A} {t : Fm} {fs : List Fm} {x : Tree} {j c d : ℕ} {Q : List (A × Tree)} (ht : Gives θ t x (Tree.num j) c) {f : Fm} (hf : fs[j]? = some f) (h : Does θ f x Q d) :
Does θ (switchF t fs) x Q ((j + 1) * (c + j + 1) + d)