Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Interpreter.Postponed

One scale is all scales: constants are postponed #

Interpreter.lem_postpone, Lemma lem:postpone of VP ≠ VNP over every field [Ant26]. Suppose a program halts on an argument within T < 2 ^ J steps and uses named constants from a trie L. Then its value is a sum over the budgets e ∈ L.budg J: each term is the weight of e times the plain sum of the instance zq p z e. These instances are plain within an explicit number of steps, and their size is bounded.

From VP ≠ VNP over every field [Ant26], module Paper.Postpone.

Main results #

theorem Cslib.Circuits.Arithmetic.Separation.Interpreter.lem_postpone {A : Type} [CommRing A] {θ : List Bool → A} {R : Type} [CommRing R] [Algebra A R] (p z : Tree) {T J : ℕ} (hJ : T < 2 ^ J) (hh : Hl θ (Fm.ofTree p) z) (hc : ∀ r ∈ evl θ (Fm.ofTree p) z, r.cost ≤ T) (L : KT R) (κ : List Bool → R) (hκ : ∀ r ∈ evl θ (Fm.ofTree p) z, ∀ n ∈ r.bill, κ n = L.lookup n) :
val κ (evl θ (Fm.ofTree p) z) = (List.map (fun (e : Bt × R) => e.2 * (algebraMap A R) (pv θ (zq p z e.1))) (KT.budg J L)).sum ∧ ∀ e ∈ KT.budg J L, Plain θ ((1000 + 100 * (L.ht + J + 1)) * T + 40 * (L.nds * (J + 1)) + 40) (zq p z e.1) ∧ (zq p z e.1).size ≤ WF.code.size + p.size + z.size + 4 * (L.nds * (J + 1)) + 3 ∧ pv θ (zq p z e.1) = (List.map (fun (r : Run A) => if ok e.1 r.bill = true then r.th else 0) (evl θ (Fm.ofTree p) z)).sum ∧ List.map Run.th (evl θ (Fm.ofTree (zq p z e.1).hd) (zq p z e.1).tl) = List.map Run.th (List.filter (fun (r : Run A) => ok e.1 r.bill) (evl θ (Fm.ofTree p) z))

Paper: Lemma lem:postpone. "Let all runs of a program p on an argument halt, the accepting ones within T < 2^J steps and with names among the leaves of a binary trie with Q′ nodes and height η; let its leaves stand for powers λ_1, λ_2, … Its value is ∑_e λ^e sum(z_e) over the vectors e with one entry in {0, …, 2^J−1} for every leaf, where the instance z_e accepts exactly the runs of p whose bill uses each name the prescribed number of times. It is plain within O(T(J + η + 1) + Q′J) steps, and its size is that of p and the argument plus O(Q′J)." The trie is L and L.budg J lists the exponent vectors e with their λ^e. "Accepts exactly": the accepting runs of z_e, in their order, are those of p with ok e bill (every counter of e is 0 after the bill), with the same weights; pv(z_e) is therefore the sum of these weights. Here z_e is the plain instance zq p z e of the program WF.