Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.GeometricExt |
| 2 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 3 | |
| 4 | /-! # Point Ext -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Geometric.PointExt.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual morphisms are detected on the closed points of a dense open |
| 11 | subscheme. This is the geometric input for detection on ordinary points. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | variable {k : Type} [Field k] [IsAlgClosed k] |
| 16 | |
| 17 | abbrev pointBase (k : Type) [Field k] : Over (Spec (.of k)) := Over.mk (𝟙 _) |
| 18 | |
| 19 | theorem over_hom_ext_on_dense_open |
| 20 | {X Y : Over (Spec (.of k))} [IsReduced X.left] |
| 21 | [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] [IsSeparated Y.hom] |
| 22 | (f g : X ⟶ Y) (U : X.left.Opens) (hU : Dense (U : Set X.left)) |
| 23 | (h : ∀ p : pointBase k ⟶ X, |
| 24 | p.left (IsLocalRing.closedPoint k) ∈ U → p ≫ f = p ≫ g) : f = g := by |
| 25 | apply Over.OverMorphism.ext |
| 26 | have : LocallyOfFiniteType (f.left ≫ Y.hom) := by rw [f.w]; infer_instance |
| 27 | apply ext_of_apply_eq Y.hom U U.isOpen.isLocallyClosed hU |
| 28 | · intro x hx hclosed |
| 29 | obtain ⟨⟨p, hp⟩, he⟩ := (pointEquivClosedPoint X.hom).surjective ⟨x, hclosed⟩ |
| 30 | have hpx : p (IsLocalRing.closedPoint k) = x := congrArg Subtype.val he |
| 31 | let a : pointBase k ⟶ X := Over.homMk p hp |
| 32 | have ha : a.left (IsLocalRing.closedPoint k) ∈ U := by |
| 33 | change p (IsLocalRing.closedPoint k) ∈ U |
| 34 | rwa [hpx] |
| 35 | have hh := congrArg (fun z : pointBase k ⟶ Y => z.left (IsLocalRing.closedPoint k)) |
| 36 | (h a ha) |
| 37 | change f.left (p (IsLocalRing.closedPoint k)) = |
| 38 | g.left (p (IsLocalRing.closedPoint k)) at hh |
| 39 | rwa [hpx] at hh |
| 40 | · exact f.w.trans g.w.symm |
| 41 | |
| 42 | theorem over_hom_ext_on_points |
| 43 | {X Y : Over (Spec (.of k))} [IsReduced X.left] |
| 44 | [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] [IsSeparated Y.hom] |
| 45 | (f g : X ⟶ Y) (h : ∀ p : pointBase k ⟶ X, p ≫ f = p ≫ g) : f = g := |
| 46 | over_hom_ext_on_dense_open f g ⊤ dense_univ (fun p _ => h p) |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Geometric.PointExt.CM |