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 #
Interpreter.nthF: the entry at positionkof a list.Interpreter.listF: the list of the values of a list of formulas.Interpreter.pushF: push a constant word on a list.Interpreter.dispF: distinguish the values ofmbits.Interpreter.switchF: distinguish the values of a number.
Main results #
Interpreter.nthF_gives,Interpreter.nthF_gives_ofFn,Interpreter.listF_gives,Interpreter.pushF_gives,Interpreter.dispF_does,Interpreter.switchF_does: the values of these programs.Interpreter.rev_gives_ofBits,Interpreter.appF_gives_ofBits: reversal and concatenation of bit lists.Interpreter.hd_listT,Interpreter.tl_listT,Interpreter.Tree.hd_ofBits,Interpreter.Tree.tl_ofBits: first entries and rests of lists as trees.Interpreter.num_eq_listT_replicate,Interpreter.Tree.num_eq_ofBits_replicate: a number is a list of empty trees, and a word of zeros.
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) :
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) :
Concatenation of bit lists.
The entry at position k of the list that b gives.
The list of the values of the formulas of a list.
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) :