Assignments and guessed bit lists #
A state is a trie that represents values at paths (Interpreter.RepW). An assignment writes a
list of (path, value) pairs into the state (Interpreter.assignF). Interpreter.bitsF guesses a
bit list of a given length, with all lists of that length (Interpreter.allBits) as its values.
From VP ≠ VNP over every field [Ant26], module NS1.Deal.
Main definitions #
Interpreter.RepW,Interpreter.assignT,Interpreter.assignS,Interpreter.assignF.Interpreter.bitsB,Interpreter.bitsF.
Main results #
Assign: the elements of the list are pairs (path, value).
Assign; o gives the list, w the trie.
Guess a bit list. The argument is (this program, (length in binary, bits so far)).
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.bitsB_does {A : Type} [CommRing A] {θ : List Bool → A} (n : ℕ) (w acc : List Bool) :
BitString.lsbValue w = n →
∃ (Q : List (A × Tree)),
Does θ bitsB (bitsB.code.cons ((Tree.ofBits w).cons (Tree.ofBits acc))) Q ((n + 1) * (60 * w.length + 100)) ∧ (∀ q ∈ Q, ∃ u ∈ allBits n, q.2 = Tree.ofBits (u.reverse ++ acc)) ∧ ∀ (φ : Tree → A),
wsum Q φ = (List.map (fun (u : List Bool) => φ (Tree.ofBits (u.reverse ++ acc))) (allBits n)).sum
Guess a bit list whose length is a fixed binary number.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.bitsF_does {A : Type} [CommRing A] {θ : List Bool → A} (n : List Bool) (x : Tree) :
∃ (Q : List (A × Tree)),
Does θ (bitsF n) x Q ((BitString.lsbValue n + 1) * (60 * n.length + 100) + 5) ∧ (∀ q ∈ Q, ∃ u ∈ allBits (BitString.lsbValue n), q.2 = Tree.ofBits u.reverse) ∧ ∀ (φ : Tree → A),
wsum Q φ = (List.map (fun (u : List Bool) => φ (Tree.ofBits u.reverse)) (allBits (BitString.lsbValue n))).sum