Documentation

LeanPool.MooreBound.DegreeDiameter.CompletionCount

Exact counting of one-step refinements and parity completions #

The interval between subspaces U ⊆ W whose ranks differ by two is equivalent to the projective line of W / U. We then prove that the choices in the k disjoint rank-two intervals of a parity partial flag are genuinely independent by constructing complete flags from arbitrary coordinate tuples. The resulting equivalences give the exact completion multiplicity (|K| + 1)^k; the neighbor-degree argument at the end deliberately remains an injection, since a graph neighbor need not have a unique common odd part.

Lean Pool port of wewantmoore commit d59bd80ea93fabb9faf769e790ab47692645e022. The port adds a namespace and adapts proofs to the current Mathlib APIs and repository style.

structure MooreBound.DegreeDiameter.IntermediateSubspace {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (U W : Submodule K V) :
Type u_2

Subspaces one rank above U and contained in W.

Instances For
    theorem MooreBound.DegreeDiameter.IntermediateSubspace.ext {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {U W : Submodule K V} {L L' : IntermediateSubspace U W} (h : L.space = L'.space) :
    L = L'
    theorem MooreBound.DegreeDiameter.IntermediateSubspace.ext_iff {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {U W : Submodule K V} {L L' : IntermediateSubspace U W} :
    L = L' ↔ L.space = L'.space
    theorem MooreBound.DegreeDiameter.finrank_map_mkQ_add {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] {U L : Submodule K V} (hUL : U ≤ L) :

    Rank-nullity for the image of L in the quotient by a contained U.

    noncomputable def MooreBound.DegreeDiameter.intermediatePoint {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] {U W : Submodule K V} (_hUW : U ≤ W) (_hW : Module.finrank K ↥W = Module.finrank K ↥U + 2) (L : IntermediateSubspace U W) :

    The image of an intermediate subspace in W / U, regarded as a one-dimensional subspace of the two-dimensional image of W.

    Equations
    Instances For
      noncomputable def MooreBound.DegreeDiameter.intermediateSubspaceOfPoint {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] {U W : Submodule K V} (hUW : U ≤ W) (p : Projectivization K ↥(Submodule.map U.mkQ W)) :

      Pull a projective point in W / U back to the unique intermediate subspace of V. This explicit pullback is inverse to intermediatePoint.

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

        The quotient-image construction and pullback construction are inverse: rank-two subspace intervals are exactly projective lines.

        The genuine bijection between a rank-two interval and its projective line.

        Equations
        Instances For
          theorem MooreBound.DegreeDiameter.natCard_intermediate_eq {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] [Finite K] [Finite V] {U W : Submodule K V} (hUW : U ≤ W) (hW : Module.finrank K ↥W = Module.finrank K ↥U + 2) :

          Exactly |K| + 1 subspaces occur in a rank-two interval.

          theorem MooreBound.DegreeDiameter.natCard_intermediate_le {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] [Finite K] [Finite V] {U W : Submodule K V} (hUW : U ≤ W) (hW : Module.finrank K ↥W = Module.finrank K ↥U + 2) :

          There are at most |K| + 1 possible intermediate subspaces.

          def MooreBound.DegreeDiameter.evenLowerRank (k : ℕ) (j : Fin k) :
          Fin (2 * k + 1 + 1)

          Consecutive retained even ranks surrounding the j-th missing odd rank.

          Equations
          Instances For
            def MooreBound.DegreeDiameter.oddMiddleRank (k : ℕ) (j : Fin k) :
            Fin (2 * k + 1 + 1)

            The missing odd rank 2j+1 between consecutive retained even ranks.

            Equations
            Instances For
              def MooreBound.DegreeDiameter.evenUpperRank (k : ℕ) (j : Fin k) :
              Fin (2 * k + 1 + 1)

              The upper even rank 2j+2 surrounding a missing odd rank.

              Equations
              Instances For
                def MooreBound.DegreeDiameter.oddLowerRank (k : ℕ) (j : Fin k) :
                Fin (2 * k + 1 + 1)

                Consecutive retained odd ranks surrounding the j-th missing positive even rank.

                Equations
                Instances For
                  def MooreBound.DegreeDiameter.evenMiddleRank (k : ℕ) (j : Fin k) :
                  Fin (2 * k + 1 + 1)

                  The missing even rank 2j+2 between consecutive retained odd ranks.

                  Equations
                  Instances For
                    def MooreBound.DegreeDiameter.oddUpperRank (k : ℕ) (j : Fin k) :
                    Fin (2 * k + 1 + 1)

                    The upper odd rank 2j+3 surrounding a missing even rank.

                    Equations
                    Instances For
                      @[simp]
                      theorem MooreBound.DegreeDiameter.evenLowerRank_val (k : ℕ) (j : Fin k) :
                      ↑(evenLowerRank k j) = 2 * ↑j
                      @[simp]
                      theorem MooreBound.DegreeDiameter.oddMiddleRank_val (k : ℕ) (j : Fin k) :
                      ↑(oddMiddleRank k j) = 2 * ↑j + 1
                      @[simp]
                      theorem MooreBound.DegreeDiameter.evenUpperRank_val (k : ℕ) (j : Fin k) :
                      ↑(evenUpperRank k j) = 2 * ↑j + 2
                      @[simp]
                      theorem MooreBound.DegreeDiameter.oddLowerRank_val (k : ℕ) (j : Fin k) :
                      ↑(oddLowerRank k j) = 2 * ↑j + 1
                      @[simp]
                      theorem MooreBound.DegreeDiameter.evenMiddleRank_val (k : ℕ) (j : Fin k) :
                      ↑(evenMiddleRank k j) = 2 * ↑j + 2
                      @[simp]
                      theorem MooreBound.DegreeDiameter.oddUpperRank_val (k : ℕ) (j : Fin k) :
                      ↑(oddUpperRank k j) = 2 * ↑j + 3
                      theorem MooreBound.DegreeDiameter.ofComplete_space_eq_of_mod {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {n parity : ℕ} {F : CompleteFlag K V n} {P : PartialFlag parity} (h : PartialFlag.ofComplete parity F = P) (i : Fin (n + 1)) (hi : ↑i % 2 = parity % 2) :
                      F.space i = ↑P i
                      theorem MooreBound.DegreeDiameter.partialFlag_space_eq_bot_of_mod_ne {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {n parity : ℕ} (P : PartialFlag parity) (i : Fin (n + 1)) (hi : ↑i % 2 ≠ parity % 2) :
                      ↑P i = ⊥

                      A represented partial flag is bottom at every erased rank.

                      theorem MooreBound.DegreeDiameter.partialFlag_finrank_space_of_mod {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {n parity : ℕ} (P : PartialFlag parity) (i : Fin (n + 1)) (hi : ↑i % 2 = parity % 2) :
                      Module.finrank K ↥(↑P i) = ↑i

                      At every retained rank a partial flag has the prescribed dimension.

                      theorem MooreBound.DegreeDiameter.finrank_eq_of_partialFlag {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {n parity : ℕ} (P : PartialFlag parity) :

                      The existence of a partial flag already fixes the dimension of the ambient space.

                      def MooreBound.DegreeDiameter.completeFlagOfRankedSpaces {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {n : ℕ} (S : Fin (n + 1) → Submodule K V) (hrank : ∀ (i : Fin (n + 1)), Module.finrank K ↥(S i) = ↑i) (hstep : ∀ (i : Fin n), S i.castSucc ≤ S i.succ) (hzero : S 0 = ⊥) (hlast : S (Fin.last n) = ⊤) :

                      Package a ranked adjacent chain as a complete flag. Strictness follows from adjacent containment together with the one-rank dimension increase.

                      Equations
                      Instances For
                        @[simp]
                        theorem MooreBound.DegreeDiameter.completeFlagOfRankedSpaces_apply {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] {n : ℕ} (S : Fin (n + 1) → Submodule K V) (hrank : ∀ (i : Fin (n + 1)), Module.finrank K ↥(S i) = ↑i) (hstep : ∀ (i : Fin n), S i.castSucc ≤ S i.succ) (hzero : S 0 = ⊥) (hlast : S (Fin.last n) = ⊤) (i : Fin (n + 1)) :
                        (completeFlagOfRankedSpaces S hrank hstep hzero hlast).space i = S i
                        @[reducible, inline]

                        The product of the k projective-line intervals in which an even partial flag can be completed.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          noncomputable def MooreBound.DegreeDiameter.completeOfEvenCompatibility {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) (x : { Q : OddPartialFlag // Compatible P Q }) :
                          CompleteFlag K V (2 * k + 1)

                          The common complete flag selected from a compatible pair. Its uniqueness was proved in compatible_unique; choice is used only to define the counting injection.

                          Equations
                          Instances For

                            Extract each intermediate subspace from a compatible odd partial flag.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              theorem MooreBound.DegreeDiameter.evenBoundary_le {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) (j : Fin k) :
                              ↑P (evenLowerRank k j) ≤ ↑P (evenUpperRank k j)
                              theorem MooreBound.DegreeDiameter.evenBoundary_finrank {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) (j : Fin k) :
                              Module.finrank K ↥(↑P (evenUpperRank k j)) = Module.finrank K ↥(↑P (evenLowerRank k j)) + 2
                              def MooreBound.DegreeDiameter.evenCompletedSpace {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) (c : EvenCompletionCoordinates k P) :
                              Fin (2 * k + 1 + 1) → Submodule K V

                              Interleave arbitrary rank-one choices in the rank-two intervals of an even partial flag; the final odd rank is the ambient top space.

                              Equations
                              Instances For
                                @[simp]
                                theorem MooreBound.DegreeDiameter.evenCompletedSpace_of_even {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) (c : EvenCompletionCoordinates k P) (i : Fin (2 * k + 1 + 1)) (hi : ↑i % 2 = 0) :
                                evenCompletedSpace k P c i = ↑P i
                                noncomputable def MooreBound.DegreeDiameter.completeFlagOfEvenCoordinates {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) (c : EvenCompletionCoordinates k P) :
                                CompleteFlag K V (2 * k + 1)

                                Every coordinate tuple over an even partial flag assembles into a complete flag. This is the formal independence assertion for the missing odd ranks.

                                Equations
                                Instances For

                                  Compatible odd parts are exactly independent products of the k rank-two intervals.

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

                                    An even partial flag has exactly (q+1)^k compatible odd parts.

                                    The upper bound as a direct corollary of the exact completion count.

                                    @[reducible, inline]

                                    Independent intermediate-subspace choices that complete an odd partial flag.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      noncomputable def MooreBound.DegreeDiameter.completeOfOddCompatibility {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (Q : OddPartialFlag) (x : { P : EvenPartialFlag // Compatible P Q }) :
                                      CompleteFlag K V (2 * k + 1)

                                      Choose the complete flag witnessing compatibility with the given odd partial flag.

                                      Equations
                                      Instances For

                                        Extract each intermediate subspace from a compatible even partial flag.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          theorem MooreBound.DegreeDiameter.oddBoundary_le {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (Q : OddPartialFlag) (j : Fin k) :
                                          ↑Q (oddLowerRank k j) ≤ ↑Q (oddUpperRank k j)
                                          theorem MooreBound.DegreeDiameter.oddBoundary_finrank {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (Q : OddPartialFlag) (j : Fin k) :
                                          Module.finrank K ↥(↑Q (oddUpperRank k j)) = Module.finrank K ↥(↑Q (oddLowerRank k j)) + 2
                                          def MooreBound.DegreeDiameter.oddCompletedSpace {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (Q : OddPartialFlag) (c : OddCompletionCoordinates k Q) :
                                          Fin (2 * k + 1 + 1) → Submodule K V

                                          Interleave arbitrary positive-even-rank choices in the rank-two intervals of an odd partial flag; rank zero is the bottom space.

                                          Equations
                                          Instances For
                                            @[simp]
                                            theorem MooreBound.DegreeDiameter.oddCompletedSpace_of_odd {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (Q : OddPartialFlag) (c : OddCompletionCoordinates k Q) (i : Fin (2 * k + 1 + 1)) (hi : ↑i % 2 = 1) :
                                            oddCompletedSpace k Q c i = ↑Q i
                                            noncomputable def MooreBound.DegreeDiameter.completeFlagOfOddCoordinates {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (Q : OddPartialFlag) (c : OddCompletionCoordinates k Q) :
                                            CompleteFlag K V (2 * k + 1)

                                            Every coordinate tuple over an odd partial flag assembles into a complete flag. This is the dual formal independence assertion.

                                            Equations
                                            Instances For

                                              Compatible even parts are exactly independent products of the k rank-two intervals.

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

                                                An odd partial flag has exactly (q+1)^k compatible even parts.

                                                The dual upper bound as a direct corollary of the exact completion count.

                                                @[reducible, inline]
                                                abbrev MooreBound.DegreeDiameter.NeighborEncoding {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) :
                                                Type u_2

                                                A neighbor is encoded by a compatible odd part and then by an even part compatible with that odd part. We deliberately keep all such pairs, rather than assuming that a neighbor has a unique common odd part.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  noncomputable def MooreBound.DegreeDiameter.encodeNeighbor {K : Type u_1} {V : Type u_2} [Field K] [AddCommGroup V] [Module K V] (k : ℕ) (P : EvenPartialFlag) :

                                                  Encode a graph neighbor by a shared odd flag and a distinct compatible even flag.

                                                  Equations
                                                  Instances For

                                                    The paper's neighbor-set cap A(A-1), where A = (q+1)^k. It does not count a neighbor twice or posit uniqueness of its common odd flag: the injection chooses one witness, and its second coordinate excludes the original vertex from the at-most-A compatible even parts.

                                                    The coarser square cap retained as a convenient corollary.