Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.TowerPlan.EndUnits

The tower plan: the units in the end #

After all moves of the tower plan of [Ant26] (proof of Theorem H.2; modules Nc.Tow.EndA, Nc.Tow.EndB, Nc.Tow.EndC), every alive unit whose target is not done has been given at a slot, so the alive current units are done (unitTarget_eq_done_of_mem_cur). A channel of a relay that uses units and whose units are done joins a chamber, the node below the parent on it (Relay.child), and the parent of that chamber in the tree (Cslib.CoveringTower.Tower.Node.parent): channelHolders_of_target_eq_done. The alive units of such channels at a node (assignedUnits) are at most the units between the chamber and its parent (card_assignedUnits_le). The last unit of every channel is never moved again (deadUnits). Possible outcomes are good (towerPlan_good_of_possible), and for good outcomes all units of a channel but the last are alive (alive_eq_of_goodOutcome).

Main definitions #

Main results #

References #

The tree #

def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.child {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} (R : CoveringTower.Routes T m Uu) (ch : Fin A ↪ T.X 0) (x : Relay T m A) (β : Bool) :

The node below the parent on the channel β of a relay: the party at its outer end, the source for false and the sink for true.

def Cslib.Circuits.Arithmetic.Separation.TowerPlan.IsChild {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} (P : T.Node) :
MoveChannel R ch FL → Prop

The channel ν is a child channel of the node P: a channel of a relay whose units are done and whose node below the parent is P.

Instances For
    @[instance_reducible]
    instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidablePredMoveChannelIsChild {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} (P : T.Node) :
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.channelHolders_of_target_eq_done {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {lhat : ℕ} {n : Fin A → Fin A → ℕ} {o : MoveChannel R ch FL → ℕ} (hh : 0 < h) {x : Relay T m A} (hx : Relay.Occurs R ch x) {β : Bool} (hd : Relay.target R ch x β = Target.done) (hne : moveCount lhat n o (Move.relay x hx) ≠ 0) :

    A done channel of a relay joins a chamber and its parent ([Ant26], Theorem H.2(b), p. 46): if a relay of the plan uses units and its channel β is done, the channel joins the node below the parent on it and the parent of that node.

    The current units in the end #

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.unitTarget_eq_done_of_mem_cur {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 : VertexLaws F T} {Pl : Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (moves R FL Pl).Channel → Fin U1} {u : PlanUnit R FL Pl U0 U1} (hu : u ∈ (towerPlan R FL Pl lhat U0 U1).cur n o (Fintype.card (Move R ch FL))) (ha : IsAlive R FL Pl lhat n o u) :

    The current units in the end ([Ant26], Theorem H.2(b), p. 46): an alive unit that is current after all moves is done.

    The units between the nodes and their parents #

    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.assignedUnits {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 : VertexLaws F T) (Pl : Placement T ch A') (lhat : ℕ) (n : Fin A → Fin A → Fin (U0 + 1)) (o : (moves R FL Pl).Channel → Fin U1) (P : T.Node) :
    Finset (PlanUnit R FL Pl U0 U1)

    The alive units between the node P and its parent: the alive units of the child channels of P.

    @[simp]
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.new_mem_assignedUnits {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 : VertexLaws F T} {Pl : Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (moves R FL Pl).Channel → Fin U1} {P : T.Node} {ν : (moves R FL Pl).Channel} {k : Fin U1} :
    Cut.UnitId.new ν k ∈ assignedUnits R FL Pl lhat n o P ↔ ↑k < alive lhat (initialCounts n) (outcomeOf R FL Pl o) ((moveChannelEquiv R FL Pl) ν) ∧ IsChild P ((moveChannelEquiv R FL Pl) ν)

    The new units between the node P and its parent: the alive units of the child channels of P.

    @[simp]
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.init_notMem_assignedUnits {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 : VertexLaws F T} {Pl : Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (moves R FL Pl).Channel → Fin U1} {P : T.Node} {a c : Fin A} {k : Fin U0} :
    Cut.UnitId.init a c k ∉ assignedUnits R FL Pl lhat n o P

    The initial units are not between a node and its parent.

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.card_assignedUnits_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 : VertexLaws F T} {Pl : Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (moves R FL Pl).Channel → Fin U1} (P : T.Node) :

    The units between a node and its parent ([Ant26], Theorem H.2(b), p. 46): the alive units of the child channels of a node are at most the units between the node and its parent.

    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.deadUnits {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 : VertexLaws F T) (Pl : Placement T ch A') (o : (moves R FL Pl).Channel → Fin U1) :
    Finset (PlanUnit R FL Pl U0 U1)

    The dead units: the last unit of every channel, which is never moved again.

    Possible outcomes #

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.towerPlan_good_of_possible {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 : VertexLaws F T} {Pl : Placement T ch A'} {lhat : ℕ} {n : Fin A → Fin A → Fin (U0 + 1)} {o : (moves R FL Pl).Channel → Fin U1} {ub : ℕ} (hub : 0 < ub) {x : Fin (Fintype.card (Move R ch FL))} (hp : (towerPlan R FL Pl lhat U0 U1).Possible n o ub x) :
    (towerPlan R FL Pl lhat U0 U1).Good n o x

    Possible outcomes are good ([Ant26], Section H.2, law moves, p. 45): an outcome of a move of the tower plan that is possible for units of ub > 0 bits is good.

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.alive_eq_of_goodOutcome {F : Type u_1} [CommSemiring F] {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} {R : CoveringTower.Routes T m Uu} {ch : Fin A ↪ T.X 0} {FL : VertexLaws F T} {lhat : ℕ} {n : Fin A → Fin A → ℕ} {o : MoveChannel R ch FL → ℕ} {ν : MoveChannel R ch FL} (hg : GoodOutcome lhat n o ν.fst) :
    alive lhat n o ν = o ν

    For a good outcome, all units of a channel but the last are alive.