Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.GroupProgram.Time

The time of GROUP at the script of a group #

The cost of the program GROUP of [Ant26] at a script is linear in the costs of its instructions and in the binary numbers T and ub times their lengths (groupTime, the time in exists_formula_scriptSem). At the script of a group (groupScript), whose keys have at most Lc bits, this time is bounded by the numbers of cells of the group (cellCount), of the units that its roles read (roleUnitCount), and of the units of its base parties, times the size ub + Lc + 1 of a unit with its key, plus T for every base party and a cube in a bound X of the numbers of tapes, parties, roles, slots and channels (groupTime_le).

Main definitions #

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3: the evaluator described in the proof of Theorem J.3 (the theorem on p. 53, the evaluator on p. 54). Ported from the source module Nc.Grp.GrpTime.

The time of GROUP at the script l with the binary numbers bT and bub: the cost of reading the two numbers and the costs of the instructions, plus one for every instruction.

theorem Cslib.Circuits.Arithmetic.Separation.GroupProgram.putCost_le {ub Lc : ℕ} {kss : List (List (List Bool))} (h : ∀ ks ∈ kss, ∀ k ∈ ks, k.length ≤ Lc) :
putCost ub kss ≤ (List.map List.length kss).sum * (ub + Lc + 1) + kss.length

The cost of writing units at lists of keys, if the keys have at most Lc bits: at most ub + Lc + 1 for every key and 1 for every list.

def Cslib.Circuits.Arithmetic.Separation.GroupProgram.cellCount {F : Type u_1} [CommSemiring F] {A' E K U0 U1 : ℕ} {G : Type u_2} [DecidableEq G] {M : Cut.Moves F (K + K + A') E} (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1) (grp : Fin (K + K + A') → G) (g : G) :

The number of cells of the group g: for every party of the group, the number of units seen in the end that it holds.

def Cslib.Circuits.Arithmetic.Separation.GroupProgram.roleUnitCount {F : Type u_1} [CommSemiring F] {A' E K U0 U1 : ℕ} {G : Type u_2} [DecidableEq G] {M : Cut.Moves F (K + K + A') E} (P : Cut.Plan M U0 U1) (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1) (grp : Fin (K + K + A') → G) (g : G) :

The number of units that the roles of the group g read: for every role, the number of units of its move once, and once more for every slot of the role.

theorem Cslib.Circuits.Arithmetic.Separation.GroupProgram.groupTime_le {F : Type} [CommRing F] {Γ S Q : Type} [Fintype S] {A' E K U0 U1 ub c T Lc X : ℕ} {G : Type} [DecidableEq G] {M : Cut.Moves F (K + K + A') E} {qn : Q → ℕ} {cb : Option Γ → Fin c → Bool} {P : Cut.Plan M U0 U1} {q : Fin (K + 1) → Q} {x : Fin K → List Γ} {ρ : Option S → Fin (K + K) → Cut.RowData (K + K)} {n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)} {o : M.Channel → Fin U1} {grp : Fin (K + K + A') → G} {g : G} {key : Cell M U0 U1 → List Bool} {dkey : Fin (K + K) × Fin U0 → List Bool} {tg : M.Role → ℕ} {cap ι lh ev pd : ℕ} {bT bub : List Bool} (hT : BitString.binaryValue bT = T) (hub : BitString.binaryValue bub = ub) (hlT : bT.length ≤ Lc) (hlub : bub.length ≤ Lc) (hP : P.Ok cap) (hx : ∀ (κ : Fin K), (x κ).length ≤ T) (hk : ∀ (c : Cell M U0 U1), (key c).length ≤ Lc) (hd : ∀ (c : Fin (K + K) × Fin U0), (dkey c).length ≤ Lc) (hS : Fintype.card (Option S) ≤ X) (hA : K + K ≤ X) (hR : Fintype.card M.Role ≤ 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) (hι : (baseParties grp g).length ≤ ι) (hιX : ι ≤ X) (hlh : ∀ (p : Fin (K + K)), grp (Fin.castAdd A' p) = g → ∑ b : Fin (K + K), (↑(n p b) + ↑(n b p)) ≤ lh) (hev : cellCount n o grp g ≤ ev) (hpd : roleUnitCount P n o grp g ≤ pd) (b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub) :
groupTime bT bub (groupScript qn cb P q x ρ n o grp g key dkey tg b) ≤ (Lc + 1) * (T + ub + 2) + ι * T + 3 * (ev + pd + ι * lh) * (ub + Lc + 1) + 10 * X ^ 3

The time of GROUP at the script of a group. If T and ub have binary words bT and bub of at most Lc bits, all keys have at most Lc bits, the group has at most ι base parties, each with at most lh units at the beginning, at most ev cells and at most pd units read by its roles, and X bounds the numbers of tapes, parties, roles and of the slots and the channels of a role, then the time of GROUP at the script is at most (Lc + 1) * (T + ub + 2) + ι * T + 3 * (ev + pd + ι * lh) * (ub + Lc + 1) + 10 * X ^ 3.