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): use Tau Ceti to compare maps on dense points

alkor2000330e8fd22ed4
diff --git a/src/Lib/General/Geometry/DenseComplexPoints.lean b/src/Lib/General/Geometry/DenseComplexPoints.lean
index efe692ddb13..e45536a3789 100644
--- a/src/Lib/General/Geometry/DenseComplexPoints.lean
+++ b/src/Lib/General/Geometry/DenseComplexPoints.lean
@@ -1,6 +1,7 @@
module
import TauCeti.AlgebraicGeometry.IdealSheaf.VanishingIdeal
+import TauCeti.AlgebraicGeometry.Morphisms.Separated
public import Mathlib.AlgebraicGeometry.Noetherian
import Mathlib.Algebra.GroupWithZero.Submonoid.CancelMulZero
import Mathlib.AlgebraicGeometry.Morphisms.Immersion
@@ -165,13 +166,13 @@ lemma hom_ext {Z : Type} {S : Scheme} {η : Z → (Spec (CommRingCat.of ℂ) ⟶
[IsSeparated G.hom] {f g : X ⟶ G} (h_agree : ∀ z : Z, e z ≫ f = e z ≫ g) :
f = g := by
obtain ⟨h_red, h_dense⟩ := he
- -- The equalizer `i` of `f` and `g` is a closed subscheme through which every `e z` factors, so it
- -- is surjective onto `X`; a reduced source and a separated target then give `f = g`.
- let i : (equalizer f g).left ⟶ X.left := (equalizer.ι f g).left
- have : Surjective i := h_dense.surjective i (fun z ↦ (equalizer.lift (e z) (h_agree z)).left)
- fun z ↦ by rw [← Over.comp_left, equalizer.lift_ι]
- exact OverMorphism.ext (ext_of_isDominant_of_isSeparated G.hom (by simp) i
- (by rw [← Over.comp_left, ← Over.comp_left, equalizer.condition]))
+ -- The ranges contain the dense family of images of the closed point of `Spec ℂ`.
+ have h_ranges : Dense (⋃ z, range (e z).left) := by
+ refine Dense.mono (range_subset_iff.2 ?_) h_dense
+ intro z
+ exact mem_iUnion.2 ⟨z, mem_range_self (IsLocalRing.closedPoint ℂ)⟩
+ exact OverMorphism.ext (ext_of_dense_iUnion_range_of_isSeparated G.hom (f.w.trans g.w.symm)
+ (fun z ↦ (e z).left) h_ranges (fun z ↦ congrArg Over.Hom.left (h_agree z)))
/-- Let `e z`, `p z` be complex points of the `S`-schemes `X`, `G` over the same point `η z`, with
`X` reduced and the `e z` dense. If a linear system `W` on `X` and a projective embedding `M` of