Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Dealing.ScriptSize

The size of the script of a group #

A unit that the dealing program of [Ant26] cuts between two groups lies in a group g with exactly one of its holders (OneIn). The script of the group g (groupScript) is small: its size is at most 200 * X ^ 3 * Lc, where X bounds the numbers of parties, tapes, units, roles, slots, channels, states and units of a move and Lc the lengths of the keys and of the binary numbers, plus the codes of the letters of the input parts of the group and the bits of the units cut with one holder in the group (size_scriptEnc_le).

Main definitions #

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3: the scripts in the proof of Theorem J.3 (p. 54: a script has (s/k + M/k)Λ input symbols, the bits of the cut packets, and v^O(1) names and instructions). Ported from the source modules Nc.Dl.SizeScript and Nc.Plus.Interface (OneIn).

def Cslib.Circuits.Arithmetic.Separation.Dealing.OneIn {U : Type u_1} {A : Type u_2} {G : Type u_3} (h : U → Bool → A) (grp : A → G) (g : G) (u : U) :

Exactly one of the two holders h u false, h u true of the unit u is in the group g.

Instances For
    @[instance_reducible]
    instance Cslib.Circuits.Arithmetic.Separation.Dealing.instDecidableOneInOfDecidableEq {U : Type u_1} {A : Type u_2} {G : Type u_3} [DecidableEq G] (h : U → Bool → A) (grp : A → G) (g : G) (u : U) :
    Decidable (OneIn h grp g u)
    theorem Cslib.Circuits.Arithmetic.Separation.Dealing.oneIn_iff {U : Type u_1} {A : Type u_2} {G : Type u_3} {h : U → Bool → A} {grp : A → G} {g : G} {u : U} :
    OneIn h grp g u ↔ ¬(grp (h u false) = g ↔ grp (h u true) = g)

    Exactly one holder of u is in g if and only if not both or neither of them are.

    theorem Cslib.Circuits.Arithmetic.Separation.Dealing.size_scriptEnc_le {F : Type} [CommRing F] {Γ S Q : Type} [Fintype S] {A' E K U0 U1 ub c X Lc : ℕ} {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 : GroupProgram.Cell M U0 U1 → List Bool} {dkey : Fin (K + K) × Fin U0 → List Bool} {tg : M.Role → ℕ} (hX : 1 ≤ X) (hLc : 1 ≤ Lc) (hK : K + K ≤ X) (hU0 : U0 ≤ X) (hU1 : U1 ≤ X) (hS : Fintype.card (Option S) ≤ X) (hU : Fintype.card (Cut.UnitId (K + K) U0 M.Channel U1) ≤ 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) (hk : ∀ (c : GroupProgram.Cell M U0 U1), (key c).length ≤ Lc) (hd : ∀ (c : Fin (K + K) × Fin U0), (dkey c).length ≤ Lc) (hqn : ∀ (a : Q), qn a ≤ X) (htg : ∀ (r : M.Role), tg r ≤ X) (hcount : ∀ (y : Fin E), P.count n o y ≤ X) {bT bub : List Bool} (hbT : bT.length ≤ Lc) (hbub : bub.length ≤ Lc) (b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub) :
    (GroupProgram.scriptEnc bT bub (GroupProgram.groupScript qn cb P q x ρ n o grp g key dkey tg b)).size ≤ 200 * X ^ 3 * Lc + (∑ κ : Fin K with grp (Fin.castAdd A' (Fin.natAdd K κ)) = g, (x κ).length) * (4 * c + 2) + (Finset.filter (OneIn (Cut.UnitId.holder M.channelParty) grp g) (P.cur n o E)).card * (4 * ub)

    The size of the script of a group. If X bounds the numbers of the base parties, the tapes, the units, the roles and the slots and channels of a role, the units at the beginning and of a channel, the numbers of the states and of the roles of laws, and the units of a move, and Lc bounds the lengths of the keys and of the binary numbers bT, bub, then the script of the group g has size at most 200 * X ^ 3 * Lc, plus 4 * c + 2 for every letter of an input part of the group and 4 * ub for every current unit with exactly one holder in the group.