Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Dealing.StepCost

The cost of the steps of the dealing program #

A step of the dealing program of [Ant26] costs at most a bound in the lengths Lc of the codes and in a bound X for the numbers of options (stepBound), as long as the values that steps read are short: the values at the empty name, the row data, the digits of the numbers of units and outcomes, and the steps of the straight-line program. Every step up to the checks keeps these values short, so they cost at most stepBound Lc X along every run (exists_inv_dealSteps). The guesses of the contents of the units cost little for the units that are not cut, and m + 1 times a bound in the number mb of digits of m for the cut units (exists_inv_contentSteps).

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: it computes the plan in (MN)^C_tree Λ steps, and the cut packets in kΛ · τΛ/v^300 steps). Ported from the source modules Nc.Dl.Bd1 and Nc.Dl.Bd2 (the cost of the steps 9).

A bound for the cost of a step up to the checks, for codes of length at most Lc and at most X options of a pick.

Invariants of lists of steps #

Short values #

The steps up to the checks #

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.exists_inv_dealSteps {F : Type} [CommSemiring F] {K A' E U0 U1 D nI pS mm : ℕ} {M : Cut.Moves F (K + K + A') E} {S : Type} [Fintype S] {C : Codes S M U0 U1 D pS} {m mb Lc : ℕ} {P : Cut.Plan M U0 U1} {grp : PlanInput M U0 U1 → Fin (K + K + A') → Fin mm} (tab : SlpTab P grp D nI pS) {Q : Type} [Fintype Q] {X : ℕ} (hnm : ∀ (y : PlanName S M U0 U1 pS), (C.name y).length ≤ Lc) (hdc : ∀ (d : Fin D), (C.digit d).length ≤ Lc) (hrc : ∀ (d : Cut.RowData (K + K)), (C.rowData d).length ≤ Lc) (hXQ : Fintype.card Q + 1 ≤ X) (hXr : Fintype.card (Cut.RowData (K + K)) ≤ X) (hXU0 : U0 + 1 ≤ X) (hXU1 : U1 ≤ X) (pt : Fin K → Interpreter.Tree) (qn : Q → ℕ) (i e : Q) (hU0 : U0 < D) (hU1 : U1 ≤ D) :
∃ (I : List Interpreter.DStep → (List Bool → Interpreter.Tree) → Prop), (∀ (s : Interpreter.DStep) (rest : List Interpreter.DStep) (σ : List Bool → Interpreter.Tree), I (s :: rest) σ → Interpreter.DStep.cost m mb s σ ≤ stepBound Lc X ∧ ∀ σ' ∈ Interpreter.DStep.exec m s σ, I rest σ') ∧ I (C.dealSteps tab qn i e hU0 hU1) (Function.extend C.name (initialState pt) fun (x : List Bool) => Interpreter.Tree.nil)

The cost of the steps up to the checks. If the codes of the names, the digits and the row data have length at most Lc, and X bounds the numbers of options of the picks, then every step of Codes.dealSteps costs at most stepBound Lc X along every run from the state at the beginning.

The guesses of the contents #

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.exists_inv_contentSteps {F : Type} [CommSemiring F] {K A' E U0 U1 D nI pS mm : ℕ} {M : Cut.Moves F (K + K + A') E} {S : Type} [Fintype S] {C : Codes S M U0 U1 D pS} {m mb Lc : ℕ} {P : Cut.Plan M U0 U1} {grp : PlanInput M U0 U1 → Fin (K + K + A') → Fin mm} (tab : SlpTab P grp D nI pS) {Q : Type} [Fintype Q] (hK : 0 < K) (hnm : ∀ (y : PlanName S M U0 U1 pS), (C.name y).length ≤ Lc) {pt : Fin K → Interpreter.Tree} {qn : Q → ℕ} {i e : Q} {hU0 : U0 < D} {hU1 : U1 ≤ D} {σ : List Bool → Interpreter.Tree} (hσ : σ ∈ Interpreter.execAll m (C.dealSteps tab qn i e hU0 hU1) (Function.extend C.name (initialState pt) fun (x : List Bool) => Interpreter.Tree.nil)) :
∃ (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) ∧ ∃ (I : List Interpreter.DStep → (List Bool → Interpreter.Tree) → Prop) (c : Interpreter.DStep → ℕ), (∀ (s : Interpreter.DStep) (rest : List Interpreter.DStep) (σ : List Bool → Interpreter.Tree), I (s :: rest) σ → Interpreter.DStep.cost m mb s σ ≤ c s ∧ ∀ σ' ∈ Interpreter.DStep.exec m s σ, I rest σ') ∧ I C.contentSteps σ ∧ (List.map (fun (s : Interpreter.DStep) => c s + 30) C.contentSteps).sum ≤ Fintype.card (Cut.UnitId (K + K) U0 M.Channel U1) * (90 * Lc + 230) + (Play.cutUnits (Cut.UnitId.holder M.channelParty) (grp { counts := n, outcomes := o }) (P.cur n o E)).card * ((m + 1) * (60 * mb + 100))

The cost of the guesses of the contents. Every state after Codes.dealSteps, from the state at the beginning, comes from valid numbers of units n and good outcomes o, and along every run from it the guesses of the contents cost at most 90 * Lc + 230 for every unit and (m + 1) * (60 * mb + 100) more for every unit cut between two groups.