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 Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatMono |
| 3 | |
| 4 | /-! # Open Rational Point Surjectivity -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.OpenRationalPointSurjectivity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For schemes locally of finite type over an algebraically closed |
| 11 | field, an open image containing every rational point is the whole scheme. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 15 | |
| 16 | universe u |
| 17 | variable {K : Type u} [Field K] [IsAlgClosed K] |
| 18 | {X Y : Over (Spec (.of K))} [LocallyOfFiniteType Y.hom] |
| 19 | |
| 20 | theorem surjective_of_open_of_rationalPoints (f : X ⟶ Y) |
| 21 | (hopen : IsOpen (Set.range f.left)) |
| 22 | (hpts : ∀ y : Over.mk (𝟙 (Spec (.of K))) ⟶ Y, |
| 23 | ∃ x : Over.mk (𝟙 (Spec (.of K))) ⟶ X, x ≫ f = y) : Surjective f.left := by |
| 24 | have : JacobsonSpace Y.left := LocallyOfFiniteType.jacobsonSpace Y.hom |
| 25 | have hc : closedPoints Y.left ⊆ Set.range f.left := by |
| 26 | intro y hy |
| 27 | let p : Over.mk (𝟙 (Spec (.of K))) ⟶ Y := |
| 28 | Over.homMk (pointOfClosedPoint Y.hom y hy) (pointOfClosedPoint_comp Y.hom y hy) |
| 29 | obtain ⟨x, hx⟩ := hpts p |
| 30 | refine ⟨x.left (IsLocalRing.closedPoint K), ?_⟩ |
| 31 | have he := congrArg (fun v => v (IsLocalRing.closedPoint K)) (congrArg Over.Hom.left hx) |
| 32 | exact he.trans (pointOfClosedPoint_apply Y.hom y hy _) |
| 33 | constructor |
| 34 | intro y |
| 35 | by_contra hy |
| 36 | obtain ⟨z, hz, hzc⟩ := nonempty_inter_closedPoints |
| 37 | (Z := (Set.range f.left)ᶜ) ⟨y, hy⟩ hopen.isClosed_compl.isLocallyClosed |
| 38 | exact hz (hc hzc) |
| 39 | |
| 40 | theorem isIso_of_flat_mono_of_rationalPoints (f : X ⟶ Y) |
| 41 | [Flat f.left] [LocallyOfFinitePresentation f.left] [QuasiCompact f.left] [Mono f.left] |
| 42 | (hpts : ∀ y : Over.mk (𝟙 (Spec (.of K))) ⟶ Y, |
| 43 | ∃ x : Over.mk (𝟙 (Spec (.of K))) ⟶ X, x ≫ f = y) : IsIso f.left := by |
| 44 | have : Surjective f.left := surjective_of_open_of_rationalPoints f |
| 45 | f.left.isOpenMap.isOpen_range hpts |
| 46 | exact Flat.isIso_of_surjective_of_mono f.left |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.RepresentationTheory.Theta.Geometric.OpenRationalPointSurjectivity |