The program that guesses a parse tree #
Interpreter.loopF M m guesses a parse tree of the products of the series of the gates. Its
argument is (the loop, (budget, (stack of gates, tree of pairs of letters))). Leaves and inner nodes
name the constants of the linear forms and of the quadratic equations. With these constants, its
value is the sum LowDegree.W of the coefficients (Interpreter.loopF_kv).
From VP ≠ VNP over every field [Ant26], module Nc.Acc.Loop.
Main definitions #
Main results #
A step of the walk. The argument is (tree, path so far, reversed).
The code of a letter.
The gate on top of the stack; the argument is (argument of the loop, anything).
The name of the weight of an input.
The name of the weight of a product gate.
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.loopF_kv {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] {M m : ℕ} {T : Tree} {κ : List Bool → R} {S : Set (List Bool)} {E : ℕ → PowerSeries R} {a : ℕ → R} {k : ℕ → ℕ → ℕ → R} (hE :
∀ (g : ℕ),
E g = PowerSeries.C (a g) + PowerSeries.X * ∑ l ∈ Finset.range (2 ^ M), ∑ r ∈ Finset.range (2 ^ M), PowerSeries.C (k g l r) * (E l * E r)) (hk :
∀ (g l r : List Bool),
g.length = M →
l.length = M →
r.length = M →
κ ([false, false] ++ g ++ l ++ r ++ [false]) = k (BitString.lsbValue g) (BitString.lsbValue l) (BitString.lsbValue r) ∧ [false, false] ++ g ++ l ++ r ++ [false] ∈ S) (ha :
∀ (g : List Bool),
g.length = M →
(List.map (fun (p : List Bool) => κ ([false, true] ++ g ++ p.reverse ++ lc (look p T) ++ [false]))
(allBits m)).sum = a (BitString.lsbValue g)) (hS : ∀ (g p c : List Bool), g.length = M → p.length = m → c.length = 2 → [false, true] ++ g ++ p ++ c ++ [false] ∈ S) (hT :
∀ (p : List Bool), p.length = m → look p T = Tree.nil ∨ ∃ (c : List Bool), c.length = 2 ∧ look p T = Tree.ofBits c) (n b : ℕ) (ws : List (List Bool)) (hn : 2 * b + ws.length ≤ n) (hws : ∀ w ∈ ws, w.length = M) :
The loop computes the sum over the parse trees.