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.ComplexPoints.Analytic.SchemePointUnderlying |
| 2 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 4 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 5 | |
| 6 | /-! # Immersion Point Iso -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Open.ImmersionPointIso.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An actual open immersion into a locally finite-type complex scheme |
| 13 | is an isomorphism if its map on genuine complex points is surjective. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | theorem openImmersion_isIso_of_pointSurjective {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 21 | (f : X ⟶ Y) [IsOpenImmersion f.left] [LocallyOfFiniteType Y.hom] |
| 22 | (hf : Function.Surjective (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f)) : IsIso f.left := by |
| 23 | classical |
| 24 | let : JacobsonSpace Y.left := LocallyOfFiniteType.jacobsonSpace Y.hom |
| 25 | apply (isIso_iff_isOpenImmersion_and_surjective f.left).mpr |
| 26 | refine ⟨inferInstance, (surjective_iff f.left).mpr ?_⟩ |
| 27 | intro y |
| 28 | by_contra hy |
| 29 | have hne : ((Set.range f.left)ᶜ : Set Y.left).Nonempty := ⟨y, hy⟩ |
| 30 | obtain ⟨z, hz, hzc⟩ := nonempty_inter_closedPoints hne |
| 31 | f.left.isOpenEmbedding.isOpen_range.isClosed_compl.isLocallyClosed |
| 32 | let p : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y := Over.homMk (pointOfClosedPoint Y.hom z hzc) |
| 33 | (pointOfClosedPoint_comp Y.hom z hzc) |
| 34 | have hp : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying p = z := pointOfClosedPoint_apply Y.hom z hzc _ |
| 35 | obtain ⟨q, hq⟩ := hf p |
| 36 | apply hz |
| 37 | refine ⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q, ?_⟩ |
| 38 | exact (congrArg (fun p : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y => ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying p) hq).trans hp |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.CycleClass.Thom.Open.ImmersionPointIso.Constructions |