Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Dealing.ProgramTime

The time of the dealing program #

At an argument z of size at most s, the dealing program of [Ant26] (Codes.dealProgram) makes one list of filled templates for every state after its steps, as the dealing theorem says (dealFormula_does), within dealTime Lc X K mm ub bd s steps (dealProgram_does). The bound counts 60 * Lc + 100 steps for every letter of the word of z and every part, stepBound Lc X + 30 for each of the at most 4 * X ^ 2 + 7 * X steps up to the checks, 90 * Lc + 230 for the guess of the contents of every unit, (ub + 1) * (60 * Lc + 100) more for each of at most bd cut units, and pieceBound Lc X + 60 for each of the mm templates. Here X and Lc bound the numbers and the lengths of the codes of the dealing program (Codes.SizeBounds).

Main definitions #

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3: the program G in the proof of Theorem J.3 (p. 54: G takes sΛ steps for the word, (MN)^C_tree Λ steps for the plan and kΛ · τΛ/v^300 steps for the cut packets). Ported from the source module Nc.Dl.Does.

The bound for the time of the dealing program at an argument of size at most s, with K parts, mm templates, units of ub bits and at most bd cut units, for codes of length at most Lc and numbers at most X.

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.dealProgram_does {F : Type} [CommRing F] {Γ S Q : Type} [Fintype S] [Fintype Q] {K A' E U0 U1 D nI pS mm c : ℕ} {M : Cut.Moves F (K + K + A') E} {P : Cut.Plan M U0 U1} {grp : PlanInput M U0 U1 → Fin (K + K + A') → Fin mm} {C : Codes S M U0 U1 D pS} {qn : Q → ℕ} {tg : M.Role → ℕ} {X Lc : ℕ} (tab : SlpTab P grp D nI pS) (H : C.SizeBounds qn tg X Lc) (hK : 0 < K) {θ : List Bool → F} {nl nub bT bub : List Bool} {ℓ ub : ℕ} (hnl : BitString.lsbValue nl = ℓ) (hnub : BitString.lsbValue nub = ub) (hlnl : nl.length ≤ Lc) (hlnub : nub.length ≤ Lc) {hD : 1 < D} {hmm : mm ≤ D} {gp : Interpreter.Tree} {cb : Option Γ → Fin c → Bool} {bt : Bool → Γ} {i e : Q} {hU0 : U0 < D} {hU1 : U1 ≤ D} {bd : ℕ} (hbd : ∀ (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1), tab.Valid n → (∀ (x : Fin E), P.Good n o x) → (Play.cutUnits (Cut.UnitId.holder M.channelParty) (grp { counts := n, outcomes := o }) (P.cur n o E)).card ≤ bd) {s : ℕ} (z : Interpreter.Tree) (hz : z.size ≤ s) :
∃ (Qs : List (F × Interpreter.Tree)), Interpreter.Does θ (C.dealProgram tab qn tg bT bub nl nub hD hmm gp cb bt i e hU0 hU1) z Qs (dealTime Lc X K mm ub bd s) ∧ (∀ q ∈ Qs, ∃ σ ∈ Interpreter.execAll ub (C.dealSteps tab qn i e hU0 hU1 ++ C.contentSteps) (Function.extend C.name (initialState (partTree cb (Cut.parts ℓ (List.map bt (Interpreter.tbits z))))) fun (x : List Bool) => Interpreter.Tree.nil), q.2 = Interpreter.listT (List.map (fun (t : Interpreter.Tm) => Interpreter.Tm.expand σ t) (List.map (C.pieceTm tab tg bT bub hD hmm gp) (List.finRange mm)))) ∧ Interpreter.wsum Qs (Cut.pvProd θ) = (List.map (fun (σ : List Bool → Interpreter.Tree) => (List.map (fun (t : Interpreter.Tm) => Interpreter.pv θ (Interpreter.Tm.expand σ t)) (List.map (C.pieceTm tab tg bT bub hD hmm gp) (List.finRange mm))).prod) (Interpreter.execAll ub (C.dealSteps tab qn i e hU0 hU1 ++ C.contentSteps) (Function.extend C.name (initialState (partTree cb (Cut.parts ℓ (List.map bt (Interpreter.tbits z))))) fun (x : List Bool) => Interpreter.Tree.nil))).sum

The time of the dealing program. If X and Lc bound the numbers and the lengths of the codes of the dealing program, the bits nl and nub of the length ℓ of a part and of the number ub of bits of a unit have at most Lc digits, and every choice that passes the checks cuts at most bd units, then at an argument z of size at most s the dealing program makes, within dealTime Lc X K mm ub bd s steps, the lists of the filled templates at the states after all its steps, and the weighted sum of the products of their plain sums is the sum over these states.