Skip to content

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

Python

Use the general Weyl congruence at both call sites

Aviad Rozenhek36d67645a7bd
diff --git a/src/Lib/DiscreteSeries/Bruhat/BigCell.lean b/src/Lib/DiscreteSeries/Bruhat/BigCell.lean
index d42cd3800b2..849a6a2185e 100644
--- a/src/Lib/DiscreteSeries/Bruhat/BigCell.lean
+++ b/src/Lib/DiscreteSeries/Bruhat/BigCell.lean
@@ -261,12 +261,6 @@ theorem leadingMinor_weylElem_mul_of_last_entry (hσ : σ ∈ floorGroup 𝔰.ϱ
rw [h_diag, leadingMinor, submatrix_diagonal _ _ (castLE_injective l.is_le), det_diagonal]
rfl
-/-- The Weyl element `w_p` on all `ϱ` hyperbolic pairs depends only on the scalars `p a` for
-`a < ϱ`. -/
-lemma weylElem_congr (h_agree : ∀ a : ℕ, a < 𝔰.ϱ → p a = q a) :
- (weylElem 𝔰.ϱ p : T.G) = weylElem 𝔰.ϱ q :=
- weylElem_eq_of_agree h_agree
-
/-- If the Gram matrix of the form is unimodular over the subring `R` (hermitian and in `GL(R)`),
then an isometry whose matrix has its entries in `R` lies in `GL(R)`. -/
lemma mem_intGL_of_isIntMatrix {R : Subring A} [IsStarStable R] (hT : IsUnimodular R T.splitGram)
@@ -619,7 +613,7 @@ theorem big_cell_factors_unique {τ : T.G} (hσ : σ ∈ floorGroup 𝔰.ϱ) (h
obtain rfl : y = 1 := eq_one_of_mem_besselU_of_fix hu h_fix rfl
-- then `w_p = w_q`, and `y' = σ⁻¹ τ` is unipotent and fixes the hyperbolic planes, so `y' = 1`
have h_weyl : (weylElem 𝔰.ϱ p : T.G) = weylElem 𝔰.ϱ q :=
- weylElem_congr fun a ha ↦ (h_col ⟨a, ha⟩).2
+ weylElem_eq_of_agree fun a ha ↦ (h_col ⟨a, ha⟩).2
have h_rest : y' = σ⁻¹ * τ := group_eq_inv_mul_of_one_mul h_weyl h_eq
have h_floor : y' ∈ T.floorGroup 𝔰.ϱ := Set.mem_of_eq_of_mem h_rest (mul_mem (inv_mem hσ) hτ)
obtain rfl : y' = 1 := eq_one_of_mem_floorGroup_inf (l := 𝔰.ϱ)
diff --git a/src/New/Spanning/MainTerm/GlobalToLocal.lean b/src/New/Spanning/MainTerm/GlobalToLocal.lean
index 423da4a2076..6051309f535 100644
--- a/src/New/Spanning/MainTerm/GlobalToLocal.lean
+++ b/src/New/Spanning/MainTerm/GlobalToLocal.lean
@@ -341,7 +341,7 @@ lemma injective_bigCellTerm {σ : S.G E} (hσ : σ ∈ floorGroup 𝔰.ϱ) (t :
by any last entry `t`. -/
lemma weylElem_padTuple (p : ℕ → Eˣ) (t : Eˣ) :
(weylElem 𝔰.ϱ p : S.G E) = weylElem 𝔰.ϱ (padTuple (fun a : Fin 𝔰.ϱ ↦ p a) t) :=
- weylElem_congr fun a ha ↦ by simp [padTuple, ha]
+ weylElem_eq_of_agree fun a ha ↦ by simp [padTuple, ha]
end