Documentation

LeanPool.NandakumarRamanaRao.NRR.PrimePolyhedron.FoxNeuwirth.MaximalFlagBridge

The maximal-flag code-to-simplex bridge #

This file completes the explicit bridge left open by MaximalFlagCode.

For a code z = (bottom, removal, top) and a stage j, the retained bars are those whose removal time is at least j. They determine an ordered block number for every label. The rank inside the stage cell is the ordinal rank of the lexicographic key

(stage block, final top rank).

Thus stage zero has the bottom singleton order, the final stage has the top order, and every intermediate stage orders its blocks from left to right while using the final top permutation inside each current block. This is the finite construction used by the exact regression checker.

The two internal pairings act transparently on this model:

Consequently the paired maximal flags have literally equal deleted faces.

Bars already removed before stage j.

Equations
Instances For
    @[simp]

    Zero-based block number at one stage, computed in the bottom singleton order.

    Equations
    Instances For

      Lexicographic key used to order labels at a stage.

      Equations
      Instances For

        The stage key is injective because its second coordinate is a permutation rank.

        Ordinal rank of a key in a finite linear order.

        Equations
        Instances For

          An ordinal rank is strictly smaller than the size of the finite type.

          theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.ordinalRankFin_lt_of_lt {p : ℕ} {key : Fin p → Lex (ℕ × ℕ)} {x y : Fin p} (hxy : key x < key y) :

          Strictly ordered keys have strictly ordered ordinal ranks.

          For injective keys, ordinal rank is injective.

          The ordinal-rank permutation associated with a code stage.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageRank_lt_iff {p : ℕ} (z : Code p) (j x y : Fin p) :
            ↑((stageRank z j) x) < ↑((stageRank z j) y) ↔ stageKey z j x < stageKey z j y

            Ordinal rank reflects the lexicographic key order.

            Prefix of bottom positions ending at a cut.

            Equations
            Instances For

              A bottom prefix has the expected cardinality.

              theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageBlock_lt_of_bottom_le_cut_lt {p : ℕ} (z : Code p) (j : Fin p) (r : Fin (p - 1)) (hr : r ∈ retainedBars z j) (x y : Fin p) (hx : ↑(z.bottom x) ≤ ↑r) (hy : ↑r < ↑(z.bottom y)) :
              stageBlock z j x < stageBlock z j y

              A retained cut separates stage block numbers strictly.

              theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.retainedCut_lt_stageRank_iff {p : ℕ} (z : Code p) (j : Fin p) (r : Fin (p - 1)) (hr : r ∈ retainedBars z j) (x : Fin p) :
              ↑r < ↑((stageRank z j) x) ↔ ↑r < ↑(z.bottom x)

              A retained cut occurs before a stage rank exactly when it occurs before the bottom rank.

              The stage cell represented by a maximal-flag code.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                The stage-cell block index is the block number used in its construction.

                Retained bars decrease with the stage.

                theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageBlock_mono {p : ℕ} (z : Code p) (j : Fin p) {x y : Fin p} (hxy : ↑(z.bottom x) ≤ ↑(z.bottom y)) :

                Stage blocks are monotone in the bottom position.

                theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageBlock_eq_of_le_of_eq {p : ℕ} (z : Code p) {i j : Fin p} (hij : i ≤ j) {x y : Fin p} (hxy : stageBlock z i x = stageBlock z i y) :
                stageBlock z j x = stageBlock z j y

                Equality of blocks persists after further bar removals.

                theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageBlock_order_preserved {p : ℕ} (z : Code p) {i j : Fin p} (hij : i ≤ j) {x y : Fin p} (hxy : stageBlock z i x ≤ stageBlock z i y) :

                Ordered blocks at an earlier stage remain ordered after further removals.

                A genuinely later stage has strictly fewer retained bars.

                Consecutive code stages form a strict Fox--Neuwirth face chain.

                Cast a maximal-simplex vertex index to the stage index Fin p.

                Equations
                Instances For
                  noncomputable def NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.toSimplex {p : ℕ} (hp : Nat.Prime p) (z : Code p) :
                  Simplex p (p - 1)

                  Explicit strict flag associated with a maximal-flag code.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    @[simp]
                    theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.toSimplex_apply {p : ℕ} (hp : Nat.Prime p) (z : Code p) (i : Fin (p - 1 + 1)) :
                    ↑(toSimplex hp z) i = stageCell z (stageIndex hp i)
                    theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageCell_ext {p : ℕ} {z w : Code p} {i j : Fin p} (hbars : retainedBars z i = retainedBars w j) (hblock : ∀ (x : Fin p), stageBlock z i x = stageBlock w j x) (htop : z.top = w.top) :

                    A stage cell is determined by its retained bars, block numbers, and final permutation.

                    The first removed bar is absent from every positive stage.

                    theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageBlock_bottomPartner {p : ℕ} (hp : Nat.Prime p) (z : Code p) {j : Fin p} (hj : 0 < ↑j) (x : Fin p) :

                    Swapping the two labels around the first removed cut preserves all positive-stage blocks.

                    The bottom partner gives the same cell at every positive stage.

                    theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.retainedBars_removalPartner {p : ℕ} (hp : Nat.Prime p) (i : Fin (p - 2)) (z : Code p) (j : Fin p) (hj : ↑j ≠ ↑i + 1) :

                    Swapping adjacent removal times preserves every prefix except the intermediate one.

                    theorem NRR.FoxNeuwirthOrderComplex.MaximalFlagCode.stageCell_removalPartner {p : ℕ} (hp : Nat.Prime p) (i : Fin (p - 2)) (z : Code p) (j : Fin p) (hj : ↑j ≠ ↑i + 1) :

                    The removal partner gives the same cell away from its one changed intermediate stage.