Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.TowerPlan.Moves

The tower plan: its moves #

The moves of the tower plan of [Ant26] (proof of Theorem H.2; module Nc.Tow.Net) are the relays of the plan (Move.relay) and, for every vertex of the next level at every stage and every kind of law, a law move at the chambers of that vertex (Move.vertex). They are put in an order in which their times do not decrease (moveOrder), and with a placement of the nodes of the tree among the parties (Placement) they are the moves of a play (moves).

Main definitions #

Main results #

References #

A law move of the plan: a law of the kind kind is applied at the chambers of the vertex vertex of the level stage + 1.

  • stage : Fin J

    The stage of the move: the vertex is in the next level.

  • type : Fin h

    The type of the vertex.

  • vertex : T.V (↑self.stage + 1) self.type

    The vertex.

  • kind : FL.Kind

    The kind of the law.

Instances For
    @[instance_reducible]
    @[instance_reducible]
    theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.VertexMove.sum_eq {F : Type u_1} [CommSemiring F] {h b D J r : ℕ} {T : CoveringTower.Tower h b D J r} {FL : VertexLaws F T} {M : Type u_2} [AddCommMonoid M] (g : VertexMove FL → M) :
    ∑ l : VertexMove FL, g l = ∑ j : Fin J, ∑ i : Fin h, ∑ ω : T.V (↑j + 1) i, ∑ d : FL.Kind, g { stage := j, type := i, vertex := ω, kind := d }

    A sum over the law moves, by their stages, types, vertices and kinds.

    The same vertex with another kind of law.

    inductive Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move {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) :

    The moves of the tower plan.

    Instances For
      @[instance_reducible]
      instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instDecidableEqMove {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) :
      DecidableEq (Move R ch FL)
      @[instance_reducible]
      instance Cslib.Circuits.Arithmetic.Separation.TowerPlan.instFintypeMove {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) :
      Fintype (Move R ch FL)
      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.sum_eq {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} {M : Type u_2} [AddCommMonoid M] (g : Move R ch FL → M) :
      ∑ mv : Move R ch FL, g mv = (∑ x : Relay T m A, if hx : Relay.Occurs R ch x then g (relay x hx) else 0) + ∑ l : VertexMove FL, g (vertex l)

      A sum over the moves: the relays of the plan and the law moves.

      def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.isVertex {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} :
      Move R ch FL → Bool

      The move is a law move at a vertex.

      def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.law {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} :
      Move R ch FL → Cut.Law F

      The law of a move.

      noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.party {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} (mv : Move R ch FL) :
      mv.law.Role → T.Node

      The nodes at the roles of a move.

      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.party_injective {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} (mv : Move R ch FL) :

      The nodes at the roles of a move are different.

      def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.time {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} :
      Move R ch FL → ℕ

      The time of a move: the law moves of a stage come after its relays.

      noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.target {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} (mv : Move R ch FL) :
      mv.law.Channel → Target T m A

      The targets of the channels of a move: the channels of a law move are the edges of the next level at its vertex.

      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.time_lt_endTime {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} (mv : Move R ch FL) :
      mv.time < endTime J m
      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.Move.time_lt_time_target {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} (mv : Move R ch FL) (ν : mv.law.Channel) :
      mv.time < (mv.target ν).time

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

      structure Cslib.Circuits.Arithmetic.Separation.TowerPlan.Placement {h b D J r A : ℕ} (T : CoveringTower.Tower h b D J r) (ch : Fin A ↪ T.X 0) (A' : ℕ) :

      Where the nodes of the tree are among the parties: the chambers of the base parties are at the base parties.

      noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.moveOrder {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) :
      Fin (Fintype.card (Move R ch FL)) ≃ Move R ch FL

      The order of the moves: their times do not decrease.

      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.lt_of_time_moveOrder_lt {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} {x y : Fin (Fintype.card (Move R ch FL))} (hxy : ((moveOrder R ch FL) x).time < ((moveOrder R ch FL) y).time) :
      x < y

      A move with a smaller time comes earlier in the order.

      @[reducible, inline]
      abbrev Cslib.Circuits.Arithmetic.Separation.TowerPlan.MoveChannel {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) :

      The channels of the moves, by their moves.

      @[reducible, inline]
      abbrev Cslib.Circuits.Arithmetic.Separation.TowerPlan.MoveSlot {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) :

      The slots of the moves, by their moves.

      noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.moves {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') :
      Cut.Moves F (A + A') (Fintype.card (Move R ch FL))

      The moves of the tower plan, in their order, with the parties of the nodes at their roles.

      noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.moveChannelEquiv {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') :
      (moves R FL Pl).Channel ≃ MoveChannel R ch FL

      The channels of the moves of the play are the channels of the moves of the plan.

      noncomputable def Cslib.Circuits.Arithmetic.Separation.TowerPlan.moveSlotEquiv {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') :
      (moves R FL Pl).Slot ≃ MoveSlot R ch FL

      The slots of the moves of the play are the slots of the moves of the plan.

      @[simp]
      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.fst_moveChannelEquiv {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'} (ν : (moves R FL Pl).Channel) :
      ((moveChannelEquiv R FL Pl) ν).fst = (moveOrder R ch FL) ν.fst
      @[simp]
      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.fst_moveSlotEquiv {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'} (z : (moves R FL Pl).Slot) :
      ((moveSlotEquiv R FL Pl) z).fst = (moveOrder R ch FL) z.fst
      theorem Cslib.Circuits.Arithmetic.Separation.TowerPlan.slotParty_moves {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'} (z : (moves R FL Pl).Slot) (d : Bool) :
      (moves R FL Pl).slotParty z d = Pl.party (((moveSlotEquiv R FL Pl) z).fst.party (((moveSlotEquiv R FL Pl) z).fst.law.slotEnd ((moveSlotEquiv R FL Pl) z).snd d))

      The parties at the ends of a slot are the parties of the nodes of its move.