Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.Parts

Parts of a list, written into a trie #

Interpreter.partsF cuts a list into parts of a given length (a binary number) and writes them into a trie at given paths (Interpreter.partsT).

From VP ≠ VNP over every field [Ant26], module NS1.Parts.

Main definitions #

Main results #

A step: the argument is (path, (trie, (number, rest))); take elements from the rest and write them, in reversed order, at the path.

Write the parts of a list: names are the paths, n the length of the parts in binary, l gives the list.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.foldl_partFun (m : ℕ) (names : List (List Bool)) (W nT : Tree) (l : List Tree) :
(List.foldl (fun (σ x : Tree) => partFun m x σ) (W.cons (nT.cons (listT l))) (List.map Tree.ofBits names)).hd = partsT m names W l
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.partsF_gives {A : Type} [CommRing A] {θ : List Bool → A} {lf : Fm} {x : Tree} {cl : ℕ} {l : List Tree} (hl : Gives θ lf x (listT l) cl) (names : List (List Bool)) (n : List Bool) (Ln : ℕ) (hn : ∀ p ∈ names, p.length ≤ Ln) :
Gives θ (partsF names n lf) x (partsT (BitString.lsbValue n) names Tree.nil l) (cl + (l.length + names.length) * (60 * n.length + 100) + names.length * (60 * Ln + 130) + 40)