Skip to content

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

Python

refactor(Lib/General/Geometry): weaken the hypothesis for Galois actions on affine pullbacks

alkor2000abf110ae4ac0
diff --git a/src/Lib/General/Geometry/GaloisCovers.lean b/src/Lib/General/Geometry/GaloisCovers.lean
index a6f2c74154a..8abeaf19827 100644
--- a/src/Lib/General/Geometry/GaloisCovers.lean
+++ b/src/Lib/General/Geometry/GaloisCovers.lean
@@ -505,16 +505,16 @@ lemma exists_algHom_specMap_comp_eq {W Z : Scheme} {c : W ⟶ Z} {A B : Type} [C
exact ⟨χ, by rw [h_left, hp.lift_fst]⟩
/-- Let `c : W ⟶ Z` be a Galois covering with group `Δ` acting through `s`, and let `Spec B` be its
-pull-back along `u : Spec A ⟶ Z`, where the field-valued points of `A` have characteristic zero and
-the projection `p : Spec B ⟶ W` is a monomorphism. Then `Δ` acts on the `A`-algebra `B` from the
-right, compatibly with `s` and simply transitively on the field-valued points of `B` over `A`.
+pull-back along `u : Spec A ⟶ Z`, where the field-valued points of `A` have characteristic zero.
+Then `Δ` acts on the `A`-algebra `B` from the right, compatibly with `s` and simply transitively
+on the field-valued points of `B` over `A`.
(Galois covering: `c` is surjective and `Δ` is simply transitive on its fibres of points in fields
of characteristic zero; `specMap φ` is the morphism of spectra induced by `φ`.) -/
lemma IsGaloisCovering.exists_simply_transitive_action {R : CommRingCat} {W Z : Over (Spec R)}
{c : W ⟶ Z} {Δ : FiniteGrp} {s : Δ →* CategoryTheory.End W} (hG : IsGaloisCovering c s)
{A B : Type} [CommRing A] [CommRing B] [Algebra A B]
(h_char : ∀ (K : Type) [Field K], (Spec (of K) ⟶ Spec (of A)) → CharZero K)
- {p : Spec (of B) ⟶ W.left} {u : Spec (of A) ⟶ Z.left} [Mono p]
+ {p : Spec (of B) ⟶ W.left} {u : Spec (of A) ⟶ Z.left}
(hp : IsPullback p (specMap (algebraMap A B)) c.left u) :
∃ σ : Δ →* (B →ₐ[A] B)ᵐᵒᵖ,
(∀ g : Δ, specMap (σ g).unop ≫ p = p ≫ (s g).asHom.left) ∧
@@ -524,10 +524,15 @@ lemma IsGaloisCovering.exists_simply_transitive_action {R : CommRingCat} {W Z :
exists_algHom_specMap_comp_eq hp B (p ≫ (s g).asHom.left)
(by simp [← comp_left, hG.comp_eq, hp.w])
choose act h_act using h_exists
- -- As `p` is mono, identities between points of `W` are identities between ring maps.
+ -- Both points have the same projection to `Spec A`, so the pullback makes `p` detect equality.
+ have h_base {K : Type} [CommRing K] [Algebra A K] (x : B →ₐ[A] K) :
+ specMap (x : B →+* K) ≫ specMap (algebraMap A B) = specMap (algebraMap A K) := by
+ simp [← Spec.map_comp, ← ofHom_comp]
have h_cancel {K : Type} [CommRing K] [Algebra A K] (x y : B →ₐ[A] K) :
specMap (x : B →+* K) ≫ p = specMap (y : B →+* K) ≫ p ↔ x = y := by
- simp [cancel_mono, Spec.map_inj, ConcreteCategory.hom_ext_iff, AlgHom.ext_iff]
+ refine ⟨fun h ↦ ?_, fun h ↦ by rw [h]⟩
+ have h_spec := hp.hom_ext h ((h_base x).trans (h_base y).symm)
+ simpa [Spec.map_inj, ConcreteCategory.hom_ext_iff, AlgHom.ext_iff] using h_spec
have h_comp {K : Type} [CommRing K] [Algebra A K] (x : B →ₐ[A] K) (g : Δ) :
specMap (x.comp (act g) : B →+* K) ≫ p = (specMap (x : B →+* K) ≫ p) ≫ (s g).asHom.left := by
rw [Category.assoc, ← h_act, ← Spec.map_comp_assoc]