Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Dealing.TemplateCost

The cost of the templates of the dealing program #

At a state with the values of the end (Final), the template of the instance of GROUP at the script of a group (Codes.pieceTm) costs at most pieceBound Lc X to fill (cost_pieceTm_le), where Lc bounds the lengths of the codes of the names and of the digits, and X bounds the numbers of the tapes, the base parties, the units, the roles and the slots and channels of a role, and the units of a string plus one.

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 writes for each piece its script). Ported from the source module Nc.Dl.Bd3.

A bound for the cost of filling the template of a piece, for codes of length at most Lc and at most X tapes, base parties, units, roles, slots and channels of a role, and units of a string plus one.

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.cost_pieceTm_le {F : Type} [CommSemiring F] {K A' E U0 U1 D nI pS mm ub : ℕ} {M : Cut.Moves F (K + K + A') E} {S Q : Type} [Fintype S] {C : Codes S M U0 U1 D pS} {P : Cut.Plan M U0 U1} {grp : PlanInput M U0 U1 → Fin (K + K + A') → Fin mm} {tab : SlpTab P grp D nI pS} {qn : Q → ℕ} {pt : Fin K → Interpreter.Tree} {q : Fin (K + 1) → Q} {ρ : Option S → Fin (K + K) → Cut.RowData (K + K)} {n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)} {o : M.Channel → Fin U1} {b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub} {st : PlanName S M U0 U1 pS → Interpreter.Tree} {Lc X : ℕ} {hD : 1 < D} (hst : Final C tab qn pt q ρ n o b st) (hnm : ∀ (y : PlanName S M U0 U1 pS), (C.name y).length ≤ Lc) (hdc : ∀ (d : Fin D), (C.digit d).length ≤ Lc) (hS : Fintype.card (Option S) ≤ X) (hK2 : K + K ≤ X) (hId : Fintype.card (Cut.UnitId (K + K) U0 M.Channel U1) ≤ X) (hSl : ∀ (r : M.Role), Fintype.card ((M.law r.fst).SlotAt r.snd) ≤ X) (hCn : ∀ (r : M.Role), Fintype.card ((M.law r.fst).ChannelAt r.snd) ≤ X) (hXU0 : U0 + 1 ≤ X) (hR : Fintype.card M.Role ≤ X) (tg : M.Role → ℕ) (bT bub : List Bool) (hmm : mm ≤ D) (gp : Interpreter.Tree) (g : Fin mm) :
Interpreter.Tm.cost (Function.extend C.name st fun (x : List Bool) => Interpreter.Tree.nil) (C.pieceTm tab tg bT bub hD hmm gp g) ≤ pieceBound Lc X

The cost of a piece. At a state with the values of the end, filling the template of the instance of GROUP at the script of a group costs at most pieceBound Lc X, if Lc bounds the lengths of the codes of the names and the digits and X bounds the numbers of the tapes, the base parties, the units, the roles and the slots and channels of a role, and the units of a string plus one.