Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.Deal

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 #

Main results #

The trie W has the values σ.

Assign: the elements of the list are pairs (path, value).

Assign; o gives the list, w the trie.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.assignF_gives {A : Type} [CommRing A] {θ : List Bool → A} {of wf : Fm} {x o W : Tree} {co cw : ℕ} (ho : Gives θ of x o co) (hw : Gives θ wf x W cw) :
Gives θ (assignF of wf) x (assignT W o) (co + cw + (List.map (fun (y : Tree) => 60 * y.hd.len + 80) o.toList).sum + 20)

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