Skip to content

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

Python

restore the stated obtain in the conjugate case

sangxsh8d71c6241750
diff --git a/src/Lib/GaloisRep/BaseChange/CommutingHeckeFamilies.lean b/src/Lib/GaloisRep/BaseChange/CommutingHeckeFamilies.lean
index 6669824ef51..2db63ddeeb0 100644
--- a/src/Lib/GaloisRep/BaseChange/CommutingHeckeFamilies.lean
+++ b/src/Lib/GaloisRep/BaseChange/CommutingHeckeFamilies.lean
@@ -598,7 +598,10 @@ lemma exists_remaining_places (H : ∀ w ∈ T, w ∉ S ∧ star w ∉ S)
have h_notMem_S (u : FinPlace E') (hu : u ∈ placesAbove E' T) : u ∉ placesAbove E' S := by
rcases hu with hu | hu
· exact not_or.2 (H _ hu)
- · exact not_or.2 (by simpa [and_comm] using H _ hu)
+ · obtain ⟨h_star_not_S, h_not_S⟩ :
+ star (u.below E) ∉ S ∧ star (star (u.below E)) ∉ S := H _ hu
+ rw [star_star] at h_not_S
+ exact not_or.2 ⟨h_not_S, h_star_not_S⟩
have h_compl : (placesAbove E' S)ᶜ = placesAbove E' T ∪ placesAbove E' Y :=
(union_sdiff_cancel (t := (placesAbove E' S)ᶜ) h_notMem_S).symm.trans
(congrArg (placesAbove E' T ∪ ·) (Set.ext fun u ↦ (h_mem_Y u).symm))