Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
doc(New/Congruences/FirstOrder): add docstrings in KummerMaps
sangxshaf89d82d0a9c
diff --git a/src/New/Congruences/FirstOrder/KummerMaps.lean b/src/New/Congruences/FirstOrder/KummerMaps.leanindex 35b8e47bb1c..3996ec91f80 100644--- a/src/New/Congruences/FirstOrder/KummerMaps.lean+++ b/src/New/Congruences/FirstOrder/KummerMaps.lean@@ -57,6 +57,7 @@ def IsNuSplitPlace (ν : ℕ) (x : FrobeniusDatum E) : Prop :=abbrev primeBelowPlus (w : FinPlace E) : FinPlace (maximalRealSubfield E) :=w.below (maximalRealSubfield E)+/-- The prime of `F` below `star w` is the prime of `F` below `w`. -/lemma primeBelowPlus_star (w : FinPlace E) : primeBelowPlus (star w) = primeBelowPlus w := byext xhave h_star : star (algebraMap _ (𝓞 E) x) = algebraMap _ (𝓞 E) x :=@@ -64,6 +65,8 @@ lemma primeBelowPlus_star (w : FinPlace E) : primeBelowPlus (star w) = primeBelochange algebraMap _ (𝓞 E) x ∈ (star w).asIdeal ↔ algebraMap _ (𝓞 E) x ∈ w.asIdealrw [mem_star_place, h_star]+/-- The prime of `F` below the place of a Frobenius datum `x` has the same norm `q` as that place.+-/lemma q_primeBelowPlus (x : FrobeniusDatum E) : (primeBelowPlus x.place).q = x.place.q :=(x.prime_q.pow_eq_iff.1(Ideal.absNorm_pow_inertiaDeg (primeBelowPlus x.place).asIdeal x.place.asIdeal)).left@@ -138,18 +141,24 @@ lemma exists_toGalPlus_eq_ite (σ : Gal(Ω/maximalRealSubfield E)) :def ofGalPlus (σ : Gal(Ω/maximalRealSubfield E)) : Gal(Ω/E) := (exists_toGalPlus_eq_ite σ).chooseopen Classical in+/-- The image under `toGalPlus` of `ofGalPlus σ` is `σ` if `σ` lies in the range of `toGalPlus`, and+`σ * conjPlus E` otherwise. -/lemma toGalPlus_ofGalPlus (σ : Gal(Ω/maximalRealSubfield E)) :toGalPlus E (ofGalPlus σ) = if σ ∈ (toGalPlus E).range then σ else σ * conjPlus E :=(exists_toGalPlus_eq_ite σ).choose_spec+/-- If `σ` lies in the range of `toGalPlus`, then `toGalPlus` maps `ofGalPlus σ` to `σ`. -/lemma toGalPlus_ofGalPlus_of_mem {σ : Gal(Ω/maximalRealSubfield E)}(hσ : σ ∈ (toGalPlus E).range) : toGalPlus E (ofGalPlus σ) = σ :=(toGalPlus_ofGalPlus σ).trans (ite_eq_left hσ)+/-- If `σ` does not lie in the range of `toGalPlus`, then `toGalPlus` maps `ofGalPlus σ` to `σ *+conjPlus E`. -/lemma toGalPlus_ofGalPlus_of_notMem {σ : Gal(Ω/maximalRealSubfield E)}(hσ : σ ∉ (toGalPlus E).range) : toGalPlus E (ofGalPlus σ) = σ * conjPlus E :=(toGalPlus_ofGalPlus σ).trans (ite_eq_right hσ)+/-- The map `ofGalPlus` is a left inverse of `toGalPlus`. -/@[simp] lemma ofGalPlus_toGalPlus (g : Gal(Ω/E)) : ofGalPlus (toGalPlus E g) = g :=isOpenEmbedding_toGalPlus.injective (toGalPlus_ofGalPlus_of_mem ⟨g, rfl⟩)@@ -234,6 +243,7 @@ def cyclotomicPlus : Gal(Ω/maximalRealSubfield E) →* ℤ_[ℓ]ˣ :=lemma cyclotomicPlus_apply (g : Gal(Ω/maximalRealSubfield E)) :cyclotomicPlus ℓ E g = cyclotomicChar Ω ℓ (ofGalPlus g) := rfl+/-- The character `cyc⁺` of `G_F` is continuous. -/lemma continuous_cyclotomicPlus : Continuous (cyclotomicPlus ℓ E) :=((continuous_cyclotomicChar ℓ).comp continuous_ofGalPlus).congr fun g ↦(cyclotomicPlus_apply g).symm@@ -302,6 +312,7 @@ lemma tateTwistPlus_ρ_eq_one {ν : ℕ} (e : ℕ) {g : Gal(Ω/maximalRealSubfie(hg : cyclotomicPlusMod ℓ E ν g = 1) : (tateTwistPlus ℓ E ν e).ρ g = 1 :=LinearMap.ext fun a ↦ (tateTwistPlus_ρ ν e g a).trans (by simp [hg])+/-- If `cyc⁺` is `1` at `g`, then `cyc⁺` modulo `ℓ ^ ν` is `1` at `g`. -/lemma cyclotomicPlusMod_eq_one (ν : ℕ) {g : Gal(Ω/maximalRealSubfield E)}(hg : cyclotomicPlus ℓ E g = 1) : cyclotomicPlusMod ℓ E ν g = 1 := bysimp [cyclotomicPlusMod, hg]@@ -348,6 +359,8 @@ def familyPrimes [Finite I] (x : I → FrobeniusDatum E) :(Set.toFinite (placesDividing (maximalRealSubfield E) ℓ ∪Set.range fun i : I ↦ primeBelowPlus (x i).place)).toFinset+/-- A prime `u` of `F` lies in `familyPrimes ℓ x` if and only if it contains `ℓ` or is the prime+below the place of some member of `x`. -/lemma mem_familyPrimes [Finite I] {x : I → FrobeniusDatum E}{u : FinPlace (maximalRealSubfield E)} :u ∈ familyPrimes ℓ x ↔@@ -446,6 +459,7 @@ structure HasKummerType (ν e : ℕ) (ψ : Gal(Ω/E) → ZMod (ℓ ^ ν)) : Propnamespace HasKummerType+/-- A function of Kummer type sends `1` to `0`. -/lemma map_one {ν e : ℕ} {ψ : Gal(Ω/E) → ZMod (ℓ ^ ν)} (hψ : HasKummerType ν e ψ) : ψ 1 = 0 := bysimpa using hψ.map_mul (a := 1) (b := 1) (_root_.map_one _) (_root_.map_one _)