Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.TowerPlan.Relays

The tower plan: relays and targets #

The tower plan of [Ant26] (proof of Theorem H.2; module Nc.Tow.Net) moves the units of a network along a covering tower until all of them join a node and its parent in the tree of the tower (Cslib.CoveringTower.Tower.Node), whose nodes are the chambers of all levels and a root. The units of two base parties are led by relays along a route between their chambers (Relay.start); at a stage, the units on an edge whose type is not the chosen one are relayed through the host of the edge (Relay.inner), those on an edge of the chosen type are relayed in four steps through the hosts and the images of its ends (Relay.middle), and after the last stage all units are relayed through the root (Relay.final).

Every channel of a move has a target (Target) that says what becomes of its units: they stay between a node and its parent (Target.done), they lie on an edge of a stage (Target.edge), they are given in a relay (Target.relay), or they are end segments on a pair of places of a vertex, to which a law is applied (Target.segment).

Main definitions #

Main results #

References #

The relays of the tower plan.

  • start {h b D J r : ℕ} {T : CoveringTower.Tower h b D J r} {m A : ℕ} (a c : Fin A) (γ : T.X 0) (s : Fin (2 * m)) : Relay T m A

    Step s of the route of the units from the base party a to the base party c that are led through the chamber γ.

  • inner {h b D J r : ℕ} {T : CoveringTower.Tower h b D J r} {m A : ℕ} (j : Fin J) (i : Fin h) (e : T.Ed ↑j) : Relay T m A

    The units on the edge e of the stage j, relayed through the host of type i of its ends.

  • middle {h b D J r : ℕ} {T : CoveringTower.Tower h b D J r} {m A : ℕ} (j : Fin J) (e : T.Ed ↑j) (s : Fin 4) : Relay T m A

    Step s of the way of the units on the edge e of the stage j through the hosts and the images of its ends in the next level.

  • final {h b D J r : ℕ} {T : CoveringTower.Tower h b D J r} {m A : ℕ} (e : T.Ed J) : Relay T m A

    The units on an edge of the last stage, relayed through the root.

Instances For
    @[instance_reducible]
    instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidableEqRelay {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : CoveringTower.Tower h✝ b✝ D✝ J✝ r✝} {m✝ A✝ : ℕ} :
    DecidableEq (Relay T✝ m✝ A✝)
    def Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidableEqRelay.decEq {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : CoveringTower.Tower h✝ b✝ D✝ J✝ r✝} {m✝ A✝ : ℕ} (x✝ x✝¹ : Relay T✝ m✝ A✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instFintypeRelay {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : CoveringTower.Tower h✝ b✝ D✝ J✝ r✝} {m✝ A✝ : ℕ} :
    Fintype (Relay T✝ m✝ A✝)
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.sum_eq {h b D J r m A : ℕ} {T : CoveringTower.Tower h b D J r} {M : Type u_1} [AddCommMonoid M] (g : Relay T m A → M) :
    ∑ x : Relay T m A, g x = ∑ a : Fin A, ∑ c : Fin A, ∑ γ : T.X 0, ∑ s : Fin (2 * m), g (start a c γ s) + (∑ j : Fin J, ∑ i : Fin h, ∑ e : T.Ed ↑j, g (inner j i e) + (∑ j : Fin J, ∑ e : T.Ed ↑j, ∑ s : Fin 4, g (middle j e s) + ∑ e : T.Ed J, g (final e)))

    A sum over the relays, by their kinds.

    The targets: what becomes of the units of a channel.

    Instances For
      def Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidableEqTarget.decEq {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : CoveringTower.Tower h✝ b✝ D✝ J✝ r✝} {m✝ A✝ : ℕ} (x✝ x✝¹ : Target T✝ m✝ A✝) :
      Decidable (x✝ = x✝¹)
      @[instance_reducible]
      instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidableEqTarget {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : CoveringTower.Tower h✝ b✝ D✝ J✝ r✝} {m✝ A✝ : ℕ} :
      DecidableEq (Target T✝ m✝ A✝)
      @[instance_reducible]
      instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instFintypeTarget {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : CoveringTower.Tower h✝ b✝ D✝ J✝ r✝} {m✝ A✝ : ℕ} :
      Fintype (Target T✝ m✝ A✝)
      def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.party {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) :
      Relay T m A → RelayRole → T.Node

      The three parties of a relay: the units between source and sink are led through via.

      def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.Occurs {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) :
      Relay T m A → Prop

      The relay is a move of the plan: its three parties are different. A step of a route is before the first visit of the last chamber, the host of an inner relay is of another type than the edge, and trivial steps of the way of an edge are omitted.

      Instances For
        @[instance_reducible]
        theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.party_injective {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} (hx : Occurs R ch x) :

        The three parties of a relay of the plan are different.

        def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.time {h b D J r : ℕ} (m : ℕ) {A : ℕ} {T : CoveringTower.Tower h b D J r} :
        Relay T m A → ℕ

        The time of a relay: the relays of the routes come first, then those of the stages.

        The end of time: all moves are earlier.

        The time until which all channels with a target have been made.

        def Cslib.Circuits.Arithmetic.Separation.TowerPlan.stepTarget {h b D J r m Uu A : ℕ} {T : CoveringTower.Tower h b D J r} (R : CoveringTower.Routes T m Uu) (c c' γ : T.X 0) (s : ℕ) :
        Target T m A

        The target of the units on step s of the route from c to c' through γ: the edge of the step, if there is one.

        def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.target {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) :
        Relay T m A → Bool → Target T m A

        The targets of the two channels of a relay.

        The target whose units are given in a relay.

        theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.time_lt_time_target {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) (d : Bool) :
        time m x < (target R ch x d).time

        The units of the channels of a relay are given later.

        The units given in a relay are made earlier.

        @[simp]
        theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Relay.input_ne_segment {h b D J r m A : ℕ} {T : CoveringTower.Tower h b D J r} {x : Relay T m A} {j : Fin J} {i : Fin h} {ω : T.V (↑j + 1) i} {q : Sym2 T.Fl} :
        noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.batchChamber {h b D J r A : ℕ} {T : CoveringTower.Tower h b D J r} (ch : Fin A ↪ T.X 0) (a : Fin A) (k : ℕ) :
        T.X 0

        The chamber through which the unit k of the base party a is led: the units of a string are divided into batches, one for every chamber of the level 0.

        noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.initialTarget {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) (a c : Fin A) (k : ℕ) :
        Target T m A

        The target of the unit k of the string from the base party a to the base party c: it is given in the first relay of its route, or it lies on the only edge of the route.