Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.Accel

Accelerators and the cut #

The interface between the interpreter and the cut. Interpreter.pv θ z is the universal plain sum at z = (program, argument), and Interpreter.Plain says that this sum stops within a number of steps. Interpreter.CutHyp is Theorem C of VP ≠ VNP over every field [Ant26] (the cut, at all scales v ^ H) as a hypothesis on the ring and its constants. Interpreter.IsAccT says that a program D is an accelerator for the constants K and their powers.

From VP ≠ VNP over every field [Ant26], module NS1.Accel.

Main definitions #

Main results #

The program z.hd at the argument z.tl: all runs stop, the accepting ones within T steps and without named constants.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.Plain.of_le {A : Type} [CommRing A] {θ : List Bool → A} {T T' : ℕ} {z : Tree} (h : Plain θ T z) (hT : T ≤ T') :
Plain θ T' z
noncomputable def Cslib.Circuits.Arithmetic.Separation.Interpreter.pv {A : Type} [CommRing A] (θ : List Bool → A) (z : Tree) :
A

The universal plain sum: the sum of the weights of all accepting runs of the program z.hd at z.tl.

structure Cslib.Circuits.Arithmetic.Separation.Interpreter.CutProg {A : Type} [CommRing A] (θ : List Bool → A) (H v τ s : ℕ) (G : Tree) :

A program G that cuts plain sums of τ steps on instances of size s into pieces of v ^ H steps. Its values are lists of instances.

The cut at the scale v ^ H, for times up to v ^ (H * α).

Theorem C (the cut, at all scales), as a property of the ring and its constants: the cut at every scale v ≥ v₀ and for every α with lg v ^ (C₀ * α) ≤ v.

structure Cslib.Circuits.Arithmetic.Separation.Interpreter.IsAccT {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] (θ : List Bool → A) (H v t : ℕ) (K : KT R) (B : ℕ) (D : Tree) :

The program D, with the constants K and their powers 2 ^ b, b < B, has the values of all universal plain sums of v ^ H steps on instances of size v ^ (H - 32), in t steps.

structure Cslib.Circuits.Arithmetic.Separation.Interpreter.IsPre {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] (θ : List Bool → A) (H v t : ℕ) (K : KT R) (B : ℕ) (D : Tree) :

The same, where runs have to stop only if the sum is plain.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.IsAccT.pre {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] {θ : List Bool → A} {H v t : ℕ} {K : KT R} {B : ℕ} {D : Tree} (h : IsAccT θ H v t K B D) :
IsPre θ H v t K B D
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.IsPre.mono {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] {θ : List Bool → A} {H v t t' : ℕ} {K : KT R} {B B' : ℕ} {D : Tree} (h : IsPre θ H v t K B D) (ht : t ≤ t') (hB : B ≤ B') :
IsPre θ H v t' K B' D
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.IsAccT.mono {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] {θ : List Bool → A} {H v t t' : ℕ} {K : KT R} {B B' : ℕ} {D : Tree} (h : IsAccT θ H v t K B D) (ht : t ≤ t') (hB : B ≤ B') :
IsAccT θ H v t' K B' D
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.bill_le {A : Type} [CommRing A] {θ : List Bool → A} {F : Fm} {x : Tree} {l : List (Run A)} (h : Ev θ F x l) (r : Run A) :
r ∈ l → r.bill.length ≤ r.cost

A run wants at most one constant a step.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.UF_ev {A : Type} [CommRing A] {θ : List Bool → A} {z : Tree} {l : List (Run A)} (h : Ev θ (Fm.ofTree z.hd) z.tl l) :
Ev θ UF z (List.map (Run.delay 5) l)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.val_plain {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] {κ : List Bool → R} {l : List (Run A)} (h : ∀ r ∈ l, r.bill = []) :
val κ l = (algebraMap A R) (pval l)
theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.UF_pre {A : Type} [CommRing A] {R : Type} [CommRing R] [Algebra A R] (θ : List Bool → A) (H v : ℕ) (K : KT R) (B : ℕ) :
IsPre θ H v (v ^ H + 5) K B UF.code

The universal program is a program for the universal plain sums.

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.zq_plain {A : Type} [CommRing A] {θ : List Bool → A} {p z : Tree} {l : List (Run A)} (h : Ev θ (Fm.ofTree p) z l) {T H τ : ℕ} (hT : ∀ r ∈ l, r.cost ≤ T) {t : Bt} (ht : t.ht ≤ H) (hτ : MM H * T + 40 * t.nds + 40 ≤ τ) :
Plain θ τ (zq p z t) ∧ pv θ (zq p z t) = (List.map (fun (r : Run A) => if ok t r.bill = true then r.th else 0) l).sum ∧ List.map Run.th (evl θ (Fm.ofTree (zq p z t).hd) (zq p z t).tl) = List.map Run.th (List.filter (fun (r : Run A) => ok t r.bill) l)

The instances that arise from budgets are plain, and their sums are those of the runs that use up the budgets.