Rank-five flat flags and dual Chow polynomials
DefinitionCaioloFerroniHosterRankFiveA flag is a descending chain of flats of the specified ranks bounded by a set. The two rank-five characteristic-kernel polynomials sum over all internal rank lists, multiplying each flag count by the appropriate products of signed geometric sums. The dual Chow factor for the gap from the top uses one fewer term than the dual right augmented factor.
/-
MIT License
Copyright (c) 2026 Repository contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-/
import Mathlib.Combinatorics.Matroid.Closure
import Mathlib.Combinatorics.Matroid.Rank.Finite
import Mathlib.Combinatorics.Matroid.Rank.ENat
import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas
import Mathlib.Algebra.Polynomial.Basic
import Mathlib.Data.Real.Basic
namespace CaioloFerroniHoster
open Finset Polynomial
open scoped Classical BigOperators
noncomputable section
/-- Simplicity expressed via independence of every set of at most two points. -/
def IsSimple {P : Type*} (M : Matroid P) : Prop :=
∀ (I : Finset P), I.card ≤ 2 → M.Indep (I : Set P)
section Flags
universe u
variable {F V X : Type u} [Field F] [AddCommGroup V] [Module F V]
/-- A geometric point is a one-dimensional subspace. The right summand is free. -/
abbrev Point (F V X : Type*) [Field F] [AddCommGroup V] [Module F V] := {L : Submodule F V // Module.finrank F L = 1} ⊕ X
abbrev RankedFlat (M : Matroid (Point F V X)) (r : ℕ) :=
{S : Set (Point F V X) // M.IsFlat S ∧ M.eRk S = (r : ℕ∞)}
/-- Rank flags of actual flats, with a specified inclusive upper bound. -/
def FlatFlag (M : Matroid (Point F V X)) (A : Set (Point F V X)) : List ℕ → Type u
| [] => PUnit
| r :: s => Σ B : {B : RankedFlat M r // B.val ⊆ A}, FlatFlag M B.val.val s
end Flags
/-- Every sublist of a rank list, paired with its inclusion–exclusion sign. -/
def signedSublists : List ℕ → List (List ℕ × ℤ)
| [] => [([], 1)]
| r :: tail =>
(signedSublists tail).map (fun (s, sign) => (r :: s, sign)) ++
(signedSublists tail).map (fun (s, sign) => (s, -sign))
/-- All possible internal rank lists between the endpoints of a rank-five lattice. -/
def ranks : List (List ℕ) :=
(signedSublists [4, 3, 2, 1]).map Prod.fst
/-- Factor in the dual right augmented recursion across a positive rank gap. -/
def augmentedFactor {A : Type*} [CommRing A] (x : A) (gap : ℕ) : A :=
-(-1 : A) ^ gap * ∑ j ∈ range (gap + 1), x ^ j
/-- Product of augmented recursion factors down a strict chain. -/
def augmentedWeight {A : Type*} [CommRing A] (x : A) (top : ℕ) : List ℕ → A
| [] => augmentedFactor x top
| r :: tail => augmentedFactor x (top - r) * augmentedWeight x r tail
/-- Prop. 4.7, after expansion of Prop. 4.6 on the intervals below the last step.
Combining the two possible contributions to the last step replaces its length
`gap + 1` geometric sum by the length `gap` sum. -/
def chowWeight {A : Type*} [CommRing A] (x : A) (top : ℕ) : List ℕ → A
| [] => -(-1 : A) ^ top * ∑ j ∈ range top, x ^ j
| r :: tail => (-(-1 : A) ^ (top - r) * ∑ j ∈ range (top - r), x ^ j) *
augmentedWeight x r tail
def dualChow {A : Type*} [CommRing A] (flag : List ℕ → A) (x : A) : A :=
(ranks.map (fun s => flag s * chowWeight x 5 s)).sum
def dualRightAugmented {A : Type*} [CommRing A] (flag : List ℕ → A) (x : A) : A :=
(ranks.map (fun s => flag s * augmentedWeight x 5 s)).sum
variable {F₀ V X : Type} [Field F₀] [AddCommGroup V] [Module F₀ V]
/-- Number of flags with the given internal ranks in the lattice of flats. -/
def matroidFlag (M : Matroid (Point F₀ V X)) (s : List ℕ) : ℝ :=
Nat.card (FlatFlag M M.E s)
/-- The dual Chow polynomial of the characteristic kernel in rank five.
The defining chain factors are the expanded CFH Propositions 4.6–4.7. -/
def matroidDualChow (M : Matroid (Point F₀ V X)) : ℝ[X] :=
dualChow (fun s => C (matroidFlag M s)) Polynomial.X
/-- The dual right augmented Chow polynomial of the characteristic kernel in rank five. -/
def matroidDualAugmented (M : Matroid (Point F₀ V X)) : ℝ[X] :=
dualRightAugmented (fun s => C (matroidFlag M s)) Polynomial.X
end
end CaioloFerroniHosterRead-back
What the Lean code literally says, in plain math · Codex independent agent
For any ambient type and matroid on , the simplicity predicate holds exactly when every finite subset of with at most two elements is independent in , including the empty set and all singletons. For any field , any -module whose additive group is abelian, and any type , with in a common type universe, the point type is the disjoint union of the one-dimensional -subspaces of and . For any matroid on this point type and any natural number , a rank- flat is a flat of whose extended rank equals the finite value . For any subset of the point type and any list of natural numbers, a flag bounded by consists of flats of extended ranks , respectively. The inclusions allow equality, and the empty list has exactly one flag for every . For in the base type universe, the real-valued count is the natural cardinality of the flags bounded by the ground set , viewed as a real number, using for an infinite flag type. The signed sublists of any natural-number list are obtained by independently retaining or omitting each position, preserving relative order, and giving each result sign when positions are omitted. At each recursive step, the sublists retaining the first position precede those omitting it. Distinct choices of positions may give repeated entries, and the empty input gives just the empty list with sign . Let be the list obtained from the signed sublists of by dropping the signs. For any commutative ring with unity, , natural number , and natural-number list , let be the successive differences along , with subtraction truncated at zero. For a natural number , put and , so that and . The augmented weight is , and the Chow weight is . For the empty list, the sole difference is and the product over is . For any function from lists of natural numbers to , the dual Chow and dual right augmented expressions sum times the respective Chow and augmented weights over , both with . The corresponding matroid polynomials take , , and equal to the constant polynomial with value . The matroid polynomial definitions apply to every on the specified point type, with the weights starting at in every case.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.