Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Trees.TowerTree

The tree of the tower plan #

The networks of Theorem H.2 of [Ant26] (pp. 45–46) are trees: the nodes of the tree of a covering tower (Cslib.CoveringTower.Tower.Node), placed among the parties of the tower plan (TowerPlan.Placement). For the numbers n of initial units and the outcomes o, the parent of a party is the party of the parent of its node for the loads of the plan (treeParent), and the units between a party and its parent are the units between its chamber and the parent chamber (treeUnits, 0 at the root).

For good outcomes, every unit that is current after all moves and is not dead joins a node and its parent, or stays at one party (exists_parent), and the units between a party and its parent are at most treeUnits (card_between_le). The units of a party and its children add up to at most a constant times edgeUnitBound (treeUnits_add_sum_le), and all of them to at most treeUnitBound (sum_treeUnits_le). The numbers of units of the law moves at a party are at most the units that it ever holds (sum_count_le_card_seenAt), and these, with the units that its roles read, are at most a constant times the units of the party and its children, the dead units at it and the initial units of a base party (card_held_add_le).

Main definitions #

Main results #

References #

noncomputable def Cslib.Circuits.Arithmetic.Separation.Trees.treeParent {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} (R : CoveringTower.Routes T m Uu) {ch : Fin A ↪ T.X 0} (FL : TowerPlan.VertexLaws F T) (Pl : TowerPlan.Placement T ch A') (hh : 0 < h) (lhat : ℕ) (n : Fin A → Fin A → Fin (U0 + 1)) (o : (TowerPlan.moves R FL Pl).Channel → Fin U1) (p : Fin (A + A')) :
Fin (A + A')

The parent of a party in the tree of the tower plan: the party of the parent of its node, for the loads of the plan.

noncomputable def Cslib.Circuits.Arithmetic.Separation.Trees.treeUnits {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} (R : CoveringTower.Routes T m Uu) {ch : Fin A ↪ T.X 0} (FL : TowerPlan.VertexLaws F T) (Pl : TowerPlan.Placement T ch A') (lhat : ℕ) (n : Fin A → Fin A → Fin (U0 + 1)) (o : (TowerPlan.moves R FL Pl).Channel → Fin U1) (p : Fin (A + A')) :

The units between a party and its parent in the tree of the tower plan: the units between its chamber and the parent chamber, and 0 at the root.

theorem Cslib.Circuits.Arithmetic.Separation.Trees.card_children_le {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} (hh : 0 < h) {p : Fin (A + A')} (hp : p ≠ Pl.party CoveringTower.Tower.Node.root) :
{q : Fin (A + A') | q ≠ Pl.party CoveringTower.Tower.Node.root ∧ treeParent R FL Pl hh lhat n o q = p}.card ≤ b

The children of a party ([Ant26], Theorem H.2(a), p. 45): a party other than the root has at most b children.

theorem Cslib.Circuits.Arithmetic.Separation.Trees.card_children_root_le {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} (hh : 0 < h) :

The root has at most as many children as the last level has chambers.

The units in the end #

theorem Cslib.Circuits.Arithmetic.Separation.Trees.exists_parent {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} (hh : 0 < h) (hn : TowerPlan.InitialBound lhat (TowerPlan.initialCounts n)) (hg : ∀ (x : Fin (Fintype.card (TowerPlan.Move R ch FL))), (TowerPlan.towerPlan R FL Pl lhat U0 U1).Good n o x) {u : TowerPlan.PlanUnit R FL Pl U0 U1} (hu : u ∈ Play.cutUnits (Cut.UnitId.holder (TowerPlan.moves R FL Pl).channelParty) id ((TowerPlan.towerPlan R FL Pl lhat U0 U1).cur n o (Fintype.card (TowerPlan.Move R ch FL)) \ TowerPlan.deadUnits U0 R FL Pl o)) :

The units in the end ([Ant26], Theorem H.2(b), p. 46): for good outcomes and if no base party has too many initial units, every unit that is current after all moves, is not dead and joins two parties joins a party other than the root and its parent.

theorem Cslib.Circuits.Arithmetic.Separation.Trees.card_between_le {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} (hh : 0 < h) (hn : TowerPlan.InitialBound lhat (TowerPlan.initialCounts n)) (hg : ∀ (x : Fin (Fintype.card (TowerPlan.Move R ch FL))), (TowerPlan.towerPlan R FL Pl lhat U0 U1).Good n o x) {p : Fin (A + A')} (hp : p ≠ Pl.party CoveringTower.Tower.Node.root) :

The units between a party and its parent ([Ant26], Theorem H.2(b), (e), p. 46): for good outcomes and if no base party has too many initial units, the units in the end that are not dead and join a party other than the root and its parent are at most treeUnits.

The units between the parties and their parents #

theorem Cslib.Circuits.Arithmetic.Separation.Trees.treeUnits_add_sum_le {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} {ρ : ℝ} (hρ : TowerPlan.StageRate FL ρ) (hh : 0 < h) {c : ℕ} (hb : b ≤ c) (hX : Fintype.card (T.X J) ≤ c) (p : Fin (A + A')) :
treeUnits R FL Pl lhat n o p + ∑ q : Fin (A + A') with q ≠ Pl.party CoveringTower.Tower.Node.root ∧ treeParent R FL Pl hh lhat n o q = p, treeUnits R FL Pl lhat n o q ≤ (c + 1) * TowerPlan.edgeUnitBound FL Uu A lhat ρ

The units of a party and its children ([Ant26], Theorem H.2(e), p. 46): if the bound b of the children and the chambers of the last level are at most c, the units between a party and its parent and between its children and the party are at most c + 1 times edgeUnitBound.

theorem Cslib.Circuits.Arithmetic.Separation.Trees.sum_treeUnits_le {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} {ρ : ℝ} (hρ : TowerPlan.StageRate FL ρ) (hρ1 : ρ < 1) :
∑ p : Fin (A + A'), treeUnits R FL Pl lhat n o p ≤ TowerPlan.treeUnitBound FL Uu A lhat ρ

All units between the parties and their parents ([Ant26], Theorem H.2(e), p. 46): for ρ < 1 they are at most treeUnitBound.

The units at a party #

theorem Cslib.Circuits.Arithmetic.Separation.Trees.sum_count_le_card_seenAt {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} (hg : ∀ (x : Fin (Fintype.card (TowerPlan.Move R ch FL))), (TowerPlan.towerPlan R FL Pl lhat U0 U1).Good n o x) (hnr : ∀ (f : T.Fl), ∃ (ν : T.Nr), T.cN ν = f ∨ T.dN ν = f) (p : Fin (A + A')) :

The layers of the law moves at a party ([Ant26], Theorem H.2(c), p. 46): for good outcomes and if every place is an end of a near pair, the numbers of units of the law moves at a party are at most the units that it ever holds.

theorem Cslib.Circuits.Arithmetic.Separation.Trees.card_held_add_le {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' U0 U1 : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : TowerPlan.VertexLaws F T} {Pl : TowerPlan.Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (TowerPlan.moves R FL Pl).Channel → Fin U1} (hr : 0 < r) (hb : 0 < b) (hh : 0 < h) (hg : ∀ (x : Fin (Fintype.card (TowerPlan.Move R ch FL))), (TowerPlan.towerPlan R FL Pl lhat U0 U1).Good n o x) (hnr : ∀ (f : T.Fl), ∃ (ν : T.Nr), T.cN ν = f ∨ T.dN ν = f) {Sm : ℕ} (hSm : ∀ (d : FL.Kind), Fintype.card (FL.law d).Slot ≤ Sm) {ℓf : ℕ} (hini : ∀ (a : Fin A), ∑ c : Fin A, (↑(n a c) + ↑(n c a)) ≤ ℓf) (p : Fin (A + A')) :
(Finset.filter (Play.Holds (Cut.UnitId.holder (TowerPlan.moves R FL Pl).channelParty) p) (Cut.Plan.seenAt n o (Fintype.card (TowerPlan.Move R ch FL)))).card + ∑ ρ : (TowerPlan.moves R FL Pl).Role with (TowerPlan.moves R FL Pl).roleParty ρ = p, (1 + Fintype.card (((TowerPlan.moves R FL Pl).law ρ.fst).SlotAt ρ.snd)) * (TowerPlan.towerPlan R FL Pl lhat U0 U1).count n o ρ.fst ≤ ((4 + (2 * Fintype.card T.Nr * FL.lengthBound + 1 + Sm) * Fintype.card FL.Kind) * 8 * (treeUnits R FL Pl lhat n o p + ∑ q : Fin (A + A') with q ≠ Pl.party CoveringTower.Tower.Node.root ∧ treeParent R FL Pl hh lhat n o q = p, treeUnits R FL Pl lhat n o q) + if ↑p < A then ℓf + 8 * m * lhat else 0) + 2 * (Finset.filter (Play.Holds (Cut.UnitId.holder (TowerPlan.moves R FL Pl).channelParty) p) (TowerPlan.deadUnits U0 R FL Pl o)).card

The units that a party ever holds and reads ([Ant26], Theorem H.2(e), p. 46, and its proof, "For (e)", p. 48): for good outcomes, if every place is an end of a near pair, every law has at most Sm slots and the base parties have at most ℓf initial units, the units that a party ever holds, and those that its roles read, zeros in slots included, are at most 8 (4 + (2 |Nr| lengthBound + 1 + Sm) |Kind|) times the units between the party and its parent and between its children and the party, ℓf + 8 m lhat more at a base party, and twice the dead units at the party.