Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.AccProg

The program of an accelerator #

Interpreter.accF M m d out evaluates the part of degree at most d of a polynomial p with a small circuit, at the point coded by its argument. The constants are the trie Interpreter.accK. Its value is the sum of the first d + 1 coefficients of p along the line through that point (Interpreter.accF_kv), where p is given by Arithmetic.ComputedWithin.

From VP ≠ VNP over every field [Ant26], module Nc.Acc.Prog.

Main definitions #

Main results #

Pair the neighbours of a list. The argument is (this program, list).

Pair the neighbours several times.

The tree of pairs of the letters of the word of the argument.

The one-hot code of a word, with one letter none at the end, as 0/1 values: the tape's Tape.wordCode read in R.

def Cslib.Circuits.Arithmetic.Separation.Interpreter.accK {R : Type} [CommRing R] (M m N : ℕ) (γ : R) (k : ℕ → ℕ → ℕ → R) (lam : ℕ → Fin N × Option Bool → R) :
KT R

The constants of an accelerator.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.nds_accK {R : Type} [CommRing R] {M m N : ℕ} {γ : R} {k : ℕ → ℕ → ℕ → R} {lam : ℕ → Fin N × Option Bool → R} :
(accK M m N γ k lam).nds ≤ 2 ^ (3 * M + 1) + 2 ^ (M + m + 3) + 3
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.ht_accK {R : Type} [CommRing R] {M m N : ℕ} {γ : R} {k : ℕ → ℕ → ℕ → R} {lam : ℕ → Fin N × Option Bool → R} :
(accK M m N γ k lam).ht ≤ 3 * M + m + 4
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.accF_kv {R : Type} [CommRing R] {M m N d s : ℕ} {p : MvPolynomial (Fin N × Option Bool) R} (hp : ComputedWithin p s) (hs : s ≤ 2 ^ M) (hd : 0 < d) (hNm : N ≤ 2 ^ m) :
∃ (K : KT R) (out : List Bool), out.length = M ∧ K.nds ≤ 2 ^ (3 * M + 1) + 2 ^ (M + m + 3) + 3 ∧ K.ht ≤ 3 * M + m + 4 ∧ ∀ (A : Type) [inst : CommRing A] [inst_1 : Algebra A R] (θ : List Bool → A) (z : Tree), z.size < N → KV θ K.lk {q : List Bool | KT.InB 1 K q} (accF M m d out) z (∑ i ∈ Finset.range (d + 1), ((MvPolynomial.line (codeB R N (tbits z))) p).coeff i) (d * (800 * (M + m) + 4000) + (z.size + 2) * (40 * m + 60) + 10 * m + 100)

The program computes the part of degree at most d of a polynomial with a small circuit.