Documentation

CslibFrontier.Foundations.Combinatorics.CoveringTower.Tree

The tree of a tower #

The proof of Theorem H.2 of [Ant26] gathers units in a tree whose nodes (Cslib.CoveringTower.Tower.Node) are the chambers of all levels of a Cslib.CoveringTower.Tower and a root. For loads Lf on the edges of every level, the chosen type of a level is the first type whose edges have the least sum of the squares of their loads (Cslib.CoveringTower.Tower.IsChosenType); the parent of a chamber of the level j is the host of its vertex of the chosen type, a chamber of the level j + 1, and the units between a chamber and its parent are the loads of the edges at the chamber. The hosts of a type are injective below the level J, so a chamber has at most b children: at most one at every place. The chambers of the level J and the root have the root as their parent (Node.parent), and the units between the children of a chamber and the chamber add up the units between each child and its parent (childUnits). With the stage of a node (Node.stage), the level of a chamber and J + 1 at the root, the nodes form a tree by stages.

From VP ≠ VNP over every field [Ant26], modules Nc.Tow.Net, Nc.Tow.Tree, Nc.Tow.Ever1, Nc.Tow.EndB and Paper.Tree.

Main definitions #

Main results #

References #

inductive Cslib.CoveringTower.Tower.Node {h b D J r : ℕ} (T : Tower h b D J r) :

The nodes of the tree: the root, and the chambers of all levels of the tower.

  • root {h b D J r : ℕ} {T : Tower h b D J r} : T.Node

    The root.

  • chamber {h b D J r : ℕ} {T : Tower h b D J r} (j : Fin (J + 1)) (c : T.X ↑j) : T.Node

    A chamber of the level j.

Instances For
    @[instance_reducible]
    instance Cslib.CoveringTower.Tower.instDecidableEqNode {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : Tower h✝ b✝ D✝ J✝ r✝} :
    def Cslib.CoveringTower.Tower.instDecidableEqNode.decEq {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : Tower h✝ b✝ D✝ J✝ r✝} (x✝ x✝¹ : T✝.Node) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]
    instance Cslib.CoveringTower.Tower.instFintypeNode {h✝ b✝ D✝ J✝ r✝ : ℕ} {T✝ : Tower h✝ b✝ D✝ J✝ r✝} :
    def Cslib.CoveringTower.Tower.Node.ofChamber {h b D J r : ℕ} {T : Tower h b D J r} {j : ℕ} (hj : j ≤ J) (c : T.X j) :

    The node of a chamber of the level j ≤ J.

    @[simp]
    theorem Cslib.CoveringTower.Tower.Node.ofChamber_inj {h b D J r : ℕ} {T : Tower h b D J r} {j : ℕ} {hj hj' : j ≤ J} {c c' : T.X j} :
    ofChamber hj c = ofChamber hj' c' ↔ c = c'
    theorem Cslib.CoveringTower.Tower.Node.ofChamber_ne_of_ne {h b D J r : ℕ} {T : Tower h b D J r} {j j' : ℕ} (hjj : j ≠ j') {hj : j ≤ J} {hj' : j' ≤ J} {c : T.X j} {c' : T.X j'} :
    ofChamber hj c ≠ ofChamber hj' c'
    @[simp]
    theorem Cslib.CoveringTower.Tower.Node.ofChamber_ne_root {h b D J r : ℕ} {T : Tower h b D J r} {j : ℕ} {hj : j ≤ J} {c : T.X j} :
    def Cslib.CoveringTower.Tower.Node.lift {h b D J r : ℕ} {T : Tower h b D J r} {α : Type u_1} (f : (j : ℕ) → T.X j → α) (a : α) :
    T.Node → α

    A function on the nodes from a function on the chambers of every level and a value at the root.

    @[simp]
    theorem Cslib.CoveringTower.Tower.Node.lift_ofChamber {h b D J r : ℕ} {T : Tower h b D J r} {j : ℕ} {α : Type u_1} (f : (j : ℕ) → T.X j → α) (a : α) (hj : j ≤ J) (c : T.X j) :
    lift f a (ofChamber hj c) = f j c

    The value of Node.lift at a chamber.

    theorem Cslib.CoveringTower.Tower.Node.sum_ofChamber_castSucc {h b D J r : ℕ} {T : Tower h b D J r} {M : Type u_1} [AddCommMonoid M] (g : (j : ℕ) → T.X j → M) (P : T.Node) :
    ((∑ j : Fin J, ∑ c : T.X ↑j, if ofChamber ⋯ c = P then g (↑j) c else 0) + ∑ c : T.X J, if ofChamber ⋯ c = P then g J c else 0) = lift g 0 P

    The values of g at the chambers of the levels below J and of the level J that are the node P.

    theorem Cslib.CoveringTower.Tower.Node.sum_ofChamber_succ {h b D J r : ℕ} {T : Tower h b D J r} {M : Type u_1} [AddCommMonoid M] (g : (j : ℕ) → T.X j → M) (P : T.Node) :
    ((∑ c : T.X 0, if ofChamber ⋯ c = P then g 0 c else 0) + ∑ j : Fin J, ∑ c : T.X (↑j + 1), if ofChamber ⋯ c = P then g (↑j + 1) c else 0) = lift g 0 P

    The values of g at the chambers of the level 0 and of the levels above it that are the node P.

    def Cslib.CoveringTower.Tower.sqLoad {h b D J r : ℕ} (T : Tower h b D J r) {j : ℕ} (l : T.Ed j → ℕ) (i : Fin h) :

    The sum of the squares of the loads l of the edges of the type i of a level.

    def Cslib.CoveringTower.Tower.IsChosenType {h b D J r : ℕ} (T : Tower h b D J r) {j : ℕ} (l : T.Ed j → ℕ) (i : Fin h) :

    The type i is chosen for the loads l of the edges of a level: it is the first type whose edges have the least sum of the squares of their loads.

    Instances For
      @[instance_reducible]
      instance Cslib.CoveringTower.Tower.instDecidableIsChosenType {h b D J r : ℕ} {T : Tower h b D J r} {j : ℕ} (l : T.Ed j → ℕ) (i : Fin h) :
      theorem Cslib.CoveringTower.Tower.IsChosenType.mul_sum_sq_le {h b D J r : ℕ} {T : Tower h b D J r} {j : ℕ} {l : T.Ed j → ℕ} {i : Fin h} (hi : T.IsChosenType l i) :
      ↑h * ∑ e : T.Ed j with T.ty e = i, ↑(l e) ^ 2 ≤ ∑ e : T.Ed j, ↑(l e) ^ 2

      The edges of a chosen type have at most the average of the sums of the squares of the loads of the edges of each type.

      noncomputable def Cslib.CoveringTower.Tower.chosenType {h b D J r : ℕ} (T : Tower h b D J r) (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) (j : ℕ) :
      Fin h

      The chosen type at the level j for the loads Lf on the edges (IsChosenType): the first type whose edges have the least sum of the squares of their loads.

      noncomputable def Cslib.CoveringTower.Tower.parentChamber {h b D J r : ℕ} (T : Tower h b D J r) (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) {j : ℕ} (c : T.X j) :
      T.X (j + 1)

      The parent of a chamber of the level j: the host of its vertex of the chosen type.

      @[reducible, inline]
      abbrev Cslib.CoveringTower.Tower.parentUnits {h b D J r : ℕ} (T : Tower h b D J r) (Lf : (j : ℕ) → T.Ed j → ℕ) (j : ℕ) (c : T.X j) :

      The units between a chamber of the level j and its parent: the loads of the edges at the chamber.

      theorem Cslib.CoveringTower.Tower.isChosenType_chosenType {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) (j : ℕ) :
      T.IsChosenType (Lf j) (T.chosenType hh Lf j)

      The chosen type is chosen.

      theorem Cslib.CoveringTower.Tower.isChosenType_iff {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) {Lf : (j : ℕ) → T.Ed j → ℕ} {j : ℕ} {i : Fin h} :
      T.IsChosenType (Lf j) i ↔ i = T.chosenType hh Lf j

      A type is chosen exactly when it is the chosen type.

      theorem Cslib.CoveringTower.Tower.card_children {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) {j : ℕ} (hj : j < J) (c' : T.X (j + 1)) :
      {c : T.X j | T.parentChamber hh Lf c = c'}.card ≤ b

      A chamber of a level j + 1 ≤ J has at most b children.

      noncomputable def Cslib.CoveringTower.Tower.childUnits {h b D J r : ℕ} (T : Tower h b D J r) (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) (j : ℕ) :
      T.X j → ℕ

      The units between the children of a chamber and the chamber, for the loads Lf on the edges: the units between each chamber of the level below whose parent it is and its parent; 0 at the level 0.

      theorem Cslib.CoveringTower.Tower.sum_ite_childUnits {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) {j : ℕ} (p : T.X (j + 1) → Prop) [DecidablePred p] :
      (∑ c : T.X (j + 1), if p c then T.childUnits hh Lf (j + 1) c else 0) = ∑ c : T.X j, if p (T.parentChamber hh Lf c) then T.parentUnits Lf j c else 0

      The units between the children of the chambers with a property and these chambers are those between the chambers whose parents have the property and their parents.

      noncomputable def Cslib.CoveringTower.Tower.Node.parent {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) :
      T.Node → T.Node

      The parent of a node in the tree for the loads Lf on the edges: the parent chamber of a chamber of a level below J, and the root for a chamber of the level J and for the root.

      def Cslib.CoveringTower.Tower.Node.stage {h b D J r : ℕ} {T : Tower h b D J r} :
      T.Node → ℕ

      The stage of a node: the level of a chamber, and J + 1 at the root.

      theorem Cslib.CoveringTower.Tower.Node.stage_le {h b D J r : ℕ} {T : Tower h b D J r} (P : T.Node) :
      P.stage ≤ J + 1
      theorem Cslib.CoveringTower.Tower.Node.stage_eq_iff {h b D J r : ℕ} {T : Tower h b D J r} {P : T.Node} :
      P.stage = J + 1 ↔ P = root

      Only the root is of the stage J + 1.

      theorem Cslib.CoveringTower.Tower.Node.stage_parent {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) {P : T.Node} (hP : P ≠ root) :
      (parent hh Lf P).stage = P.stage + 1

      The parent of a node other than the root is in the next stage.

      theorem Cslib.CoveringTower.Tower.Node.card_children_le {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) {P : T.Node} (hP : P ≠ root) :
      {Q : T.Node | Q ≠ root ∧ parent hh Lf Q = P}.card ≤ b

      A node other than the root has at most b children.

      theorem Cslib.CoveringTower.Tower.Node.card_children_root_le {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) :
      {Q : T.Node | Q ≠ root ∧ parent hh Lf Q = root}.card ≤ Fintype.card (T.X J)

      The root has a child for every chamber of the level J.

      theorem Cslib.CoveringTower.Tower.Node.lift_childUnits_le {h b D J r : ℕ} {T : Tower h b D J r} (hh : 0 < h) (Lf : (j : ℕ) → T.Ed j → ℕ) (P : T.Node) :
      lift (T.childUnits hh Lf) (∑ c : T.X J, T.parentUnits Lf J c) P ≤ ∑ Q : T.Node with Q ≠ root ∧ parent hh Lf Q = P, lift (T.parentUnits Lf) 0 Q

      The units between the children of a chamber and the chamber, and at the root those between the chambers of the level J and the root, are at most the units between the children of the node and the node.