Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.ParseLoop

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 #

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.gwd_does {A : Type} [CommRing A] {θ : List Bool → A} (M : ℕ) (x : Tree) :
Does θ (gwd M) x (List.map (fun (w : List Bool) => (1, Tree.ofBits w)) (allBits M)) (6 * M + 1)

A step of the walk. The argument is (tree, path so far, reversed).

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.walkF_does {A : Type} [CommRing A] {θ : List Bool → A} (m : ℕ) (T : Tree) (acc : List Bool) :
Does θ (walkF m) (T.cons (Tree.ofBits acc)) (List.map (fun (p : List Bool) => (1, (look p T).cons (Tree.ofBits (p.reverse ++ acc)))) (allBits m)) (12 * m + 1)

The gate on top of the stack; the argument is (argument of the loop, anything).

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) :
KV θ κ S (loopF M m) ((loopF M m).code.cons ((Tree.num b).cons ((listT (List.map Tree.ofBits ws)).cons T))) (LowDegree.W E b (List.map BitString.lsbValue ws)) ((n + 1) * (400 * (M + m) + 2000))

The loop computes the sum over the parse trees.