Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Cutting.Pieces

The pieces of thin trees #

Proposition J.2 of [Ant26] (p. 52, and its proof, p. 53) cuts the thin trees of Theorem H.2 (Trees.ThinTrees) into pieces. For the numbers n of initial units and the outcomes o, the tree of the parties is a tree by stages (Cslib.StagedTree), with the weight 1 at the K + K base parties and the units units n o between the parties and their parents. Its pieces for the budgets K + K and Y = lg M ^ C * M * (N + M ^ 2) (Theorem H.2(b)) and the number k > 0 are the pieces of the parties (ThinTrees.piece); there are fewer than pieceCount k = 1 + C + b * (depth * k) of them (Proposition J.2: "at most kΛ pieces"). For good outcomes and at most N units at every base party, a piece has

A straight-line program computes what each table does, the pieces and the check of the numbers of units (ThinTrees.exists_slpTab): the program of the thin trees (Theorem H.2(d)), on the numbers of initial units and the outcomes as inputs, and 2 * depth + 6 stages of Y ^ 12 gates (Pieces.pieces_stage).

Main definitions #

Main results #

References #

The tree and its pieces #

def Cslib.Circuits.Arithmetic.Separation.Trees.ThinTrees.pieceCount {R : Type} [CommSemiring R] {laws : List (Cut.Law R)} {K N ℓ M b G C : ℕ} {γ : ℝ} (TT : ThinTrees laws (K + K) N ℓ M b G C γ) (k : ℕ) :

The bound for the number of pieces of the cut by k: 1 + C + b * (depth * k).

def Cslib.Circuits.Arithmetic.Separation.Trees.ThinTrees.piece {R : Type} [CommSemiring R] {laws : List (Cut.Law R)} {K N ℓ M b G C : ℕ} {γ : ℝ} (TT : ThinTrees laws (K + K) N ℓ M b G C γ) {k : ℕ} (hk : 0 < k) (n : Fin (K + K) → Fin (K + K) → Fin (N + 1)) (o : TT.moves.Channel → Fin TT.U1) (p : Fin (K + K + TT.A')) :

The piece of a party (Proposition J.2, its proof, p. 53) for the numbers n of initial units, the outcomes o and the cut by k > 0: the piece of the party in the tree of the parties by stages, with the weight 1 at the base parties and the weights units n o, the budgets K + K and lg M ^ C * M * (N + M ^ 2) and the number k (Cslib.StagedTree.piece).

The bounds of a piece #

theorem Cslib.Circuits.Arithmetic.Separation.Trees.ThinTrees.card_base_piece_le {R : Type} [CommSemiring R] {laws : List (Cut.Law R)} {K N ℓ M b G C : ℕ} {γ : ℝ} (TT : ThinTrees laws (K + K) N ℓ M b G C γ) {n : Fin (K + K) → Fin (K + K) → Fin (N + 1)} {o : TT.moves.Channel → Fin TT.U1} {k : ℕ} (hk : 0 < k) (hkK : k ≤ 4 * (K + K)) (hM : 0 < M) (g : Fin (TT.pieceCount k)) :
{p : Fin (K + K) | TT.piece hk n o (Fin.castAdd TT.A' p) = g}.card * k ≤ 4 * (K + K)

The base parties of a piece (Proposition J.2: "A piece has at most CK/k blocks and parts"): at most 4 (K + K) / k, if k ≤ 4 (K + K).

theorem Cslib.Circuits.Arithmetic.Separation.Trees.ThinTrees.card_oneIn_piece_le {R : Type} [CommSemiring R] {laws : List (Cut.Law R)} {K N ℓ M b G C : ℕ} {γ : ℝ} (TT : ThinTrees laws (K + K) N ℓ M b G C γ) {n : Fin (K + K) → Fin (K + K) → Fin (N + 1)} {o : TT.moves.Channel → Fin TT.U1} {k : ℕ} (hk : 0 < k) (hn : ∀ (a : Fin (K + K)), ∑ c : Fin (K + K), (↑(n a c) + ↑(n c a)) ≤ N) (hg : ∀ (x : Fin TT.E), TT.plan.Good n o x) {w : ℕ} (hw : ∀ (X : ℕ), ↑X ≤ ↑(Interpreter.lg M ^ C) * ↑M ^ (1 - γ) * (↑N + ↑M ^ 2) → X * w ≤ Interpreter.lg M ^ C * M * (N + M ^ 2)) (g : Fin (TT.pieceCount k)) :
(Finset.filter (Dealing.OneIn (Cut.UnitId.holder TT.moves.channelParty) (TT.piece hk n o) g) (TT.plan.cur n o TT.E)).card * w ≤ Interpreter.lg M ^ C * M * (N + M ^ 2) + M ^ C * w

The cut units of a piece (the proof of Proposition J.2, p. 53: "By part (b) of the theorem a piece has at most ΛM^(1−γ)Nℓ ≤ KTΛ/v^300 bits in cut packets, besides the dead ones"): for a gain w, under which X units at one party with Theorem H.2(b)'s bound Λ M ^ (1 - γ) (N + M ^ 2) give X * w ≤ Y, the units with exactly one holder in a piece times w are at most Y + M ^ C * w, for good outcomes and at most N units at every base party.

theorem Cslib.Circuits.Arithmetic.Separation.Trees.ThinTrees.cellCount_add_roleUnitCount_le {R : Type} [CommSemiring R] {laws : List (Cut.Law R)} {K N ℓ M b G C : ℕ} {γ : ℝ} (TT : ThinTrees laws (K + K) N ℓ M b G C γ) {n : Fin (K + K) → Fin (K + K) → Fin (N + 1)} {o : TT.moves.Channel → Fin TT.U1} {k : ℕ} (hk : 0 < k) (hkK : k ≤ 4 * (K + K)) (hM : 0 < M) (hn : ∀ (a : Fin (K + K)), ∑ c : Fin (K + K), (↑(n a c) + ↑(n c a)) ≤ N) (hg : ∀ (x : Fin TT.E), TT.plan.Good n o x) {w : ℕ} (hkw : k ≤ w) (hw : ∀ (X : ℕ), ↑X ≤ ↑(Interpreter.lg M ^ C) * ↑M ^ (1 - γ) * (↑N + ↑M ^ 2) → X * w ≤ Interpreter.lg M ^ C * M * (N + M ^ 2)) (g : Fin (TT.pieceCount k)) :
(GroupProgram.cellCount n o (TT.piece hk n o) g + GroupProgram.roleUnitCount TT.plan n o (TT.piece hk n o) g) * k ≤ C * (4 * (Interpreter.lg M ^ C * M * (N + M ^ 2))) + 4 * (K + K) * (Interpreter.lg M ^ C * N) + 2 * C * M ^ C * k

All bits of a piece (the proof of Proposition J.2, p. 53: "Packets used up and zeros in slots change this by a constant factor only, apart from ΛN at each given node"): for the gain w ≥ k of card_oneIn_piece_le, k times the units that the parties of a piece ever hold and that its roles read is at most C (4 Y) + 4 (K + K) (Λ N) + 2 C M ^ C k, for good outcomes and at most N units at every base party, if k ≤ 4 (K + K).

The program of the pieces #

theorem Cslib.Circuits.Arithmetic.Separation.Trees.ThinTrees.exists_slpTab {R : Type} [CommSemiring R] {laws : List (Cut.Law R)} {K N ℓ M b G C : ℕ} {γ : ℝ} (TT : ThinTrees laws (K + K) N ℓ M b G C γ) {k : ℕ} (hk : 0 < k) {Y : ℕ} (hY : 6 ≤ Y) (hMN : (M * N) ^ C ≤ Y) (hN : N ≤ Y) (hdepth : TT.depth ≤ Y) (hin : (K + K) * (K + K) + Fintype.card TT.moves.Channel ≤ Y) :
∃ (nI : ℕ) (pS : ℕ) (tab : Dealing.SlpTab TT.plan (fun (x : Dealing.PlanInput TT.moves N TT.U1) => TT.piece hk x.counts x.outcomes) (Y ^ 4) nI pS), pS ≤ Y ^ 15 ∧ ∀ (n : Fin (K + K) → Fin (K + K) → Fin (N + 1)), tab.Valid n ↔ ∀ (p : Fin (K + K)), ∑ a : Fin (K + K), (↑(n p a) + ↑(n a p)) ≤ N

The program of the pieces (Proposition J.2: "The packets, the pieces and what each node tensor consists of are computed from the numbers of packets and the outcomes by v^C binary operations on numbers below v^C"): if Y ≥ 6 bounds (M N) ^ C, N, the depth and the number of the inputs, a program over the numbers below Y ^ 4 with at most Y ^ 15 steps computes what the dealing program needs of the plan of the thin trees, with the pieces of the cut by k as the groups, and checks that every base party has at most N units. It is the program of the thin trees (Theorem H.2(d)) followed by 2 * depth + 6 stages of Y ^ 12 gates.