Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.TowerPlan.Plan

The tower plan #

The tower plan of [Ant26] (proof of Theorem H.2; module Nc.Tow.Plan) as a Cut.Plan for the moves moves. The units given at the slot of a relay that is used are the alive units whose target is the input of the relay. At a vertex, for the kind of law that is used, the alive units on a pair of places are numbered by their rank and divided among the slots on that pair, moveCount units for every slot.

Main definitions #

Main results #

References #

noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.VertexLaws.slotRank {F : Type u_1} [CommSemiring F] {h b D J r : ℕ} {T : CoveringTower.Tower h b D J r} (FL : VertexLaws F T) (d : FL.Kind) (e : (FL.law d).Slot) :

The number of a slot of a law among the slots on the same pair of places.

@[reducible, inline]
abbrev Cslib.Circuits.Arithmetic.Separation.TowerPlan.PlanUnit {F : Type u_1} [CommSemiring F] {h b D J r m Uu A 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) (Pl : Placement T ch A') (U0 U1 : ℕ) :

The units of the play of the tower plan.

def Cslib.Circuits.Arithmetic.Separation.TowerPlan.initialCounts {A U0 : ℕ} (n : Fin A → Fin A → Fin (U0 + 1)) :
Fin A → Fin A → ℕ

The numbers of initial units, as natural numbers.

noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.outcomeOf {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' 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) :
MoveChannel R ch FL → ℕ

The outcomes on the channels of the moves of the plan, as natural numbers.

@[simp]
theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.outcomeOf_moveOrder {F : Type u_1} [CommSemiring F] {h b D J r m Uu A A' 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) (x : Fin (Fintype.card (Move R ch FL))) (ν : ((moveOrder R ch FL) x).law.Channel) :
outcomeOf R FL Pl o ⟨(moveOrder R ch FL) x, ν⟩ = ↑(o ⟨x, ν⟩)

The outcome of a channel of a move of the plan is the outcome of the channel of the play.

noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.unitTarget {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') :
PlanUnit R FL Pl U0 U1 → Target T m A

The target of a unit.

def Cslib.Circuits.Arithmetic.Separation.TowerPlan.slotInput {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) :
MoveSlot R ch FL → Target T m A

The target of the units given at a slot: the input of a relay, and the end segments on the pair of the slot at the vertex of a law move.

def Cslib.Circuits.Arithmetic.Separation.TowerPlan.IsAlive {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) :
PlanUnit R FL Pl U0 U1 → Prop

The unit is alive: an initial unit that there is, if no base party has too many units, and an alive unit of a channel.

Instances For
    @[instance_reducible]
    noncomputable instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidablePredPlanUnitIsAlive {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) :
    DecidablePred (IsAlive R FL Pl lhat n o)
    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.aliveUnits {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) :
    Finset (PlanUnit R FL Pl U0 U1)

    The set of alive units.

    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.unitIndex {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') (u : PlanUnit R FL Pl U0 U1) :

    The enumeration of the units.

    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.unitRank {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) :

    The rank of a unit among the alive units with the same target.

    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.givenUnits {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) :
    MoveSlot R ch FL → Finset (PlanUnit R FL Pl U0 U1)

    The units given at a slot. At the slot of a relay that is used: the alive units whose target is its input. At a slot of the law move that is used at a vertex: the alive end segments on its pair whose rank is in the window of the slot.

    noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.towerPlan {F : Type u_1} [CommSemiring F] {h b D J r m Uu A 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) (Pl : Placement T ch A') (lhat U0 U1 : ℕ) :
    Cut.Plan (moves R FL Pl) U0 U1

    The tower plan.

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.unitIndex_injective {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'} :
    @[simp]
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.mem_aliveUnits {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} :
    u ∈ aliveUnits R FL Pl lhat n o ↔ IsAlive R FL Pl lhat n o u
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.mem_givenUnits_relay {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} {x : Relay T m A} {hx : Relay.Occurs R ch x} {e : Unit} {u : PlanUnit R FL Pl U0 U1} :
    u ∈ givenUnits R FL Pl lhat n o ⟨Move.relay x hx, e⟩ ↔ Relay.Active (load lhat (initialCounts n) (outcomeOf R FL Pl o)) x ∧ IsAlive R FL Pl lhat n o u ∧ unitTarget R FL Pl u = x.input
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.mem_givenUnits_vertex {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} {l : VertexMove FL} {e : (FL.law l.kind).Slot} {u : PlanUnit R FL Pl U0 U1} :
    u ∈ givenUnits R FL Pl lhat n o ⟨Move.vertex l, e⟩ ↔ VertexMove.IsPicked (load lhat (initialCounts n) (outcomeOf R FL Pl o)) l ∧ IsAlive R FL Pl lhat n o u ∧ unitTarget R FL Pl u = Target.segment l.stage l.type l.vertex (FL.slotPair l.kind e) ∧ FL.slotRank l.kind e * moveCount lhat (initialCounts n) (outcomeOf R FL Pl o) (Move.vertex l) ≤ unitRank R FL Pl lhat n o u ∧ unitRank R FL Pl lhat n o u < (FL.slotRank l.kind e + 1) * moveCount lhat (initialCounts n) (outcomeOf R FL Pl o) (Move.vertex l)
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.isAlive_of_mem_givenUnits {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} {z : MoveSlot R ch FL} {u : PlanUnit R FL Pl U0 U1} (hu : u ∈ givenUnits R FL Pl lhat n o z) :
    IsAlive R FL Pl lhat n o u ∧ unitTarget R FL Pl u = slotInput R FL z

    The units given at a slot are alive and have the target of the slot.

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.load_eq_card {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} (τ : Target T m A) :
    load lhat (initialCounts n) (outcomeOf R FL Pl o) τ = {u ∈ aliveUnits R FL Pl lhat n o | unitTarget R FL Pl u = τ}.card

    The load of a target is the number of alive units with that target.

    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.card_givenUnits_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} (z : MoveSlot R ch FL) :
    (givenUnits R FL Pl lhat n o z).card ≤ moveCount lhat (initialCounts n) (outcomeOf R FL Pl o) z.fst

    A slot is given at most as many units as its move uses.