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): extract translation lift picClass equivalence
Rohan Arun72001f365380
diff --git a/src/Lib/Shimura/ThetaGroup.lean b/src/Lib/Shimura/ThetaGroup.leanindex 9dc1fa6114a..c094da76579 100644--- a/src/Lib/Shimura/ThetaGroup.lean+++ b/src/Lib/Shimura/ThetaGroup.lean@@ -362,13 +362,21 @@ lemma IsTranslationLift.pow (hΦ : IsTranslationLift L z Φ) (k : ℕ) :/-- 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 trivialover 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) :+ (∃ Φ : 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)⟩+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 : (∃ Φ : 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)⟩+ have h_cls := exists_translationLift_iff_picClass_eq_pull (L := L) 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