Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

doc(Lib/GLn/SchurModule): add docstrings in Basic

sangxsh8e5fe0fbf952
diff --git a/src/Lib/GLn/SchurModule/Basic.lean b/src/Lib/GLn/SchurModule/Basic.lean
index 17d1897a81b..82055c67ae2 100644
--- a/src/Lib/GLn/SchurModule/Basic.lean
+++ b/src/Lib/GLn/SchurModule/Basic.lean
@@ -276,6 +276,7 @@ abbrev GL.evalMatrix (z : ∀ τ : Φ, Matrix (n τ) (n τ) R) :
MvPolynomial.eval (R := R) fun x : Σ τ : Φ, n τ × n τ ↦ z x.fst x.snd.fst x.snd.snd
omit [Fintype Φ] [DecidableEq Φ] [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] in
+/-- Evaluating the entries of the generic matrix at `τ` by `evalMatrix z` gives the matrix `z τ`. -/
@[simp]
lemma GL.genericMatrixAt_map_evalMatrix (z : ∀ τ : Φ, Matrix (n τ) (n τ) R) (τ : Φ) :
(genericMatrixAt R n τ).map (evalMatrix z) = z τ := by
@@ -436,6 +437,7 @@ lemma map_linSubst :
variable {a f} {S : Type _} [Fintype S] [DecidableEq S] (α : Monomials σ a)
+/-- The exponent of a monomial of degree `a` has degree `a`. -/
lemma Monomials.degree_eq : α.val.degree = a := by
simpa [degree_eq_sum] using (mem_finsuppAntidiag.mp α.property).left
@@ -688,6 +690,7 @@ lemma diagramWeight_apply (τ : Φ) (i : ℕ) : diagramWeight N κ (τ, i) = (Io
simp [Finsupp.single_apply, diagramWeight, smul_sum, ite_and]
rw [h_eval, ← sum_filter, show (range (N τ)).filter (fun h ↦ i < h) = Ioo i (N τ) by grind]
+/-- The weight `diagramWeight N κ` is additive in the column multiplicities `κ`. -/
lemma diagramWeight_add : diagramWeight N (κ + κ') = diagramWeight N κ + diagramWeight N κ' := by
simp [diagramWeight, smul_sum, sum_add_distrib]
@@ -703,6 +706,7 @@ lemma map_nablaBasis (i : WeylIndexFamily n κ) :
MvPolynomial.map φ (nablaBasis R n κ i) = nablaBasis S n κ i := by
simp [nablaBasis, tableauPoly, map_minor]
+/-- A ring homomorphism `φ` maps the polynomial `highestPoly R κ N` to `highestPoly S κ N`. -/
@[simp]
lemma map_highestPoly : MvPolynomial.map φ (highestPoly R κ N) = highestPoly S κ N := by
simp [highestPoly, tableauPoly, map_minor]