Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/Shimura/ThetaGroup): place helper above theorem docstring and use section binders
Rohan Arunb2416bcab5fc
diff --git a/src/Lib/Shimura/ThetaGroup.lean b/src/Lib/Shimura/ThetaGroup.leanindex c094da76579..8285a6cad5c 100644--- a/src/Lib/Shimura/ThetaGroup.lean+++ b/src/Lib/Shimura/ThetaGroup.lean@@ -359,24 +359,21 @@ lemma IsTranslationLift.pow (hΦ : IsTranslationLift L z Φ) (k : ℕ) :isSectionLift_pullSections (f := 𝟙 A.left) (RingHom.id R) (by simp) (.refl L)| succ k ih => simpa [succ_nsmul, pow_succ] using ih.mul hΦ-/-- The translation by `z` lifts to `L` if and only if `z ∈ K([L])`, that is, the class-`⟨z, 𝟙 A⟩ = t_z^*[L] - [L]` vanishes in `Pic A`; the terms pulled back from the base are trivial-over the local ring `R`. -//-- Relate existence of a translation lift on `L` along `z` to equality of `L.picClass`with its pullback along `(translation z).left`. -/-private lemma exists_translationLift_iff_picClass_eq_pull- {R : Type} [CommRing R] {ι : Type} {X : Over (Spec (CommRingCat.of R))}- [AddObj X] {L : LineBundle X.left ι}- (z : MonoidalCategoryStruct.tensorUnit (Over (Spec (CommRingCat.of R))) ⟶ X) :+private lemma exists_translationLift_iff_picClass_eq_pull :(∃ Φ : Module.End R ↥(L.H0 R), IsTranslationLift L z Φ) ↔L.picClass = L.picClass.pull (translation z).left :=⟨fun ⟨_, hΦ⟩ ↦ hΦ.picClass_eq, exists_isSectionLift (translation z)⟩+/-- The translation by `z` lifts to `L` if and only if `z ∈ K([L])`, that is, the class+`⟨z, 𝟙 A⟩ = t_z^*[L] - [L]` vanishes in `Pic A`; the terms pulled back from the base are trivial+over the local ring `R`. -/lemma exists_isTranslationLift_iff [IsLocalRing R] :(∃ Φ : Module.End R ↥(L.H0 R), IsTranslationLift L z Φ) ↔L.picClass.pairing (toUnit A ≫ z) (𝟙 A) = 0 := by-- both sides say that the translation by `z` keeps the class of `L`- have h_cls := exists_translationLift_iff_picClass_eq_pull (L := L) z+ have h_cls := exists_translationLift_iff_picClass_eq_pull (L := L) (z := z)-- the pairing is `t_z^*[L] - [L]`: the terms at the section `z` and at `0` vanishhave h_pair : L.picClass.pairing (toUnit A ≫ z) (𝟙 A) =L.picClass.atPoint (translation z) - L.picClass.atPoint (𝟙 A) := by