Skip to content

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

Python

refactor(Lib/Weil/CompactLift/DefiniteThetaLift): use mem_blockDiagAlg_one in isThetaLift_thetaKernel

sangxshd90c7a4311d7
diff --git a/src/Lib/Weil/CompactLift/DefiniteThetaLift.lean b/src/Lib/Weil/CompactLift/DefiniteThetaLift.lean
index bf5912864d0..93e1675e813 100644
--- a/src/Lib/Weil/CompactLift/DefiniteThetaLift.lean
+++ b/src/Lib/Weil/CompactLift/DefiniteThetaLift.lean
@@ -7,6 +7,7 @@ public import Lib.Weil.Lift
import Lib.Adelic.AutomorphicForms.AutomorphicAsAlgebraic
import Lib.Adelic.Reduction.DefiniteClassSums
import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes
+import Lib.DiscreteSeries.Holomorphic.MaximalCompactMinors
import Lib.DiscreteSeries.Theta.FockJointHarmonics
import Lib.GLn.SchurModule.WeylKernel
@@ -370,11 +371,8 @@ lemma isThetaLift_thetaKernel [Nonempty n] [Nonempty n'] [DecidableEq n'] [Decid
obtain ⟨α, hα⟩ := h_edge.exists_lift_eq_realConv
(realPairWeil ea eb (x, 1) (Fock.polyVector _ P))
⟨_, by
- have h_mem {m : Type} [Fintype m] [DecidableEq m] (M : Matrix m m ℂ) :
- M ∈ blockDiagAlg (1 : m → ℤˣ) := by
- simp [blockDiagAlg, Subalgebra.mem_centralizer_iff]
- rw [realPairWeil_polyVector (hx := fun _ ↦ h_mem _) (hy := fun _ ↦ h_mem _),
- ← LinearMap.map_smul]⟩
+ rw [realPairWeil_polyVector (hx := fun _ ↦ mem_blockDiagAlg_one)
+ (hy := fun _ ↦ mem_blockDiagAlg_one), ← LinearMap.map_smul]⟩
let T (u : GInf E (1 : n' → ℤˣ)) : (WeylIndex n' κ → ℂ) →L[ℂ] ℂ :=
.mk ((α u * (β / stdLevelIndex K)) •
gramForm (highestVector κ l') ∘ₗ conjWeylRep κ ea (s := 1) u⁻¹)