Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Contracting.Accelerator

Accelerators from small circuits #

Lemma K.3 of [Ant26] (p. 56): there are B₀, C, v₀ such that for v ≥ v₀ and a with (lg v) ^ (C a) ≤ v, a circuit with at most v ^ a nodes for the member G.poly m, m ≥ v ^ B₀, of a family G complete for grid sums gives an accelerator of size v ^ (C (a + 1)) at the scale v (Contracting.exists_hasAcc_of_computedWithin). The paper states it for the permanent, which is complete for grid sums when 2 ≠ 0 (gridComplete_permFamily); its proof notes that it holds for every such family.

The proof follows the paper (p. 57). The value of the universal automaton (Uni.exists_universal_automaton) on words of fewer than n = v ^ (H - 32) + 1 letters is a clause sum Φ of the code of the word (Tape.runVal_eq_domainClauseSum), made one-hot (domainClauseSum_eq_clauseSumWith), restricted to codes (Tape.domainClauseSum_codeLits) and with the input bits as variables (clauseSum_withInputs). As a monomial extension it has degree at most n, and at the indicator assignment of a word it takes the value of that word, since no other code lies below the code of a word (MvPolynomial.eval_indicator_monomialExtension, Tape.eq_wordCode). It has at most 1600 B ^ 9 literals, so it is an affine projection of G.poly m (GridComplete.isAffineProjection_clauseSum, Corollary E.2). The letters other than the two of the words of instances are set to 0 (Tape.letterSubst), and Lemma K.2 (lem_lowdeg) with d = n turns the circuit into the accelerator.

Main results #

References #

theorem Cslib.Circuits.Arithmetic.Separation.Contracting.exists_hasAcc_of_computedWithin {A : Type} [CommRing A] {θ : List Bool → A} (hθ : (Function.support θ).Finite) {H : ℕ} (hH : 32 ≤ H) (κ : ℕ) :
∃ (B₀ : ℕ) (C : ℕ) (v₀ : ℕ), 0 < B₀ ∧ ∀ (F : Type) [inst : Field F] [inst_1 : Algebra A F] (G : PolynomialFamily F), GridComplete G κ → ∀ (v : ℕ), v₀ ≤ v → ∀ (a : ℕ), Interpreter.lg v ^ (C * a) ≤ v → ∀ (m : ℕ), v ^ B₀ ≤ m → ComputedWithin (G.poly m) (v ^ a) → Interpreter.HasAcc θ F H v (v ^ (C * (a + 1)))

Accelerators from small circuits (Lemma K.3 of [Ant26], p. 56). Let θ have finite support and H ≥ 32. For every κ there are B₀ > 0, C and v₀ such that for every field F that is an A-algebra and every family G over F complete for grid sums with blow-up κ: if v ≥ v₀, (lg v) ^ (C a) ≤ v, m ≥ v ^ B₀ and G.poly m is computed within v ^ a nodes, then F has an accelerator of size v ^ (C (a + 1)) at the scale v.