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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | |
| 8 | import HodgeConjecture.Definitions.AlgebraicGeometry.Stratification.Analytification |
| 9 | |
| 10 | import HodgeConjecture.Mathlib.CategoryTheory.ConcreteCategory.Notation |
| 11 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 12 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 13 | |
| 14 | namespace OAI.AlgebraicGeometry.Stratification.AnalytificationIs |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | /-! |
| 19 | # Complex points of the smooth decomposition |
| 20 | |
| 21 | Lemmas about the definitions in |
| 22 | `HodgeConjecture.Definitions.AlgebraicGeometry.Stratification.Analytification`. |
| 23 | -/ |
| 24 | |
| 25 | /-! ### Constructions used only in proofs -/ |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 30 | |
| 31 | section |
| 32 | namespace ComplexPoint |
| 33 | |
| 34 | variable (X : Over (Spec ↧ℂ)) {Y : Over (Spec ↧ℂ)} |
| 35 | |
| 36 | variable [LocallyOfFiniteType X.hom] [NoetherianSpace X.left] |
| 37 | |
| 38 | /-- The inclusion of a reduced smooth stratum, bundled over the complex base. -/ |
| 39 | def _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.reducedClosedSmoothPieceMap (T : Closeds X.left) : |
| 40 | Over.mk (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSmoothPieceι X.hom T ≫ X.hom) ⟶ X := |
| 41 | Over.homMk (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSmoothPieceι X.hom T) rfl |
| 42 | |
| 43 | instance _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.reducedClosedSmoothPieceMap_isImmersion (T : Closeds X.left) : |
| 44 | IsImmersion (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.reducedClosedSmoothPieceMap X T).left := by |
| 45 | change IsImmersion (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSmoothPieceι X.hom T) |
| 46 | infer_instance |
| 47 | |
| 48 | end ComplexPoint |
| 49 | end |
| 50 | |
| 51 | end |
| 52 | |
| 53 | noncomputable section |
| 54 | |
| 55 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 56 | |
| 57 | section |
| 58 | namespace ComplexPoint |
| 59 | |
| 60 | variable (X : Over (Spec ↧ℂ)) {Y : Over (Spec ↧ℂ)} |
| 61 | |
| 62 | /-- Forgetting a complex point to its underlying Zariski point is continuous for the |
| 63 | analytic topology. -/ |
| 64 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_underlying_to_zariski : |
| 65 | Continuous (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.underlying : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X → X.left) := by |
| 66 | rw [continuous_def] |
| 67 | exact fun S hS => _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.isOpen_overOpen ⟨S, hS⟩ |
| 68 | |
| 69 | /-- The complex points of a locally closed subscheme map onto exactly the complex points |
| 70 | whose underlying scheme point belongs to its range. -/ |
| 71 | theorem _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.range_map_of_isImmersion (i : Y ⟶ X) |
| 72 | [IsImmersion i.left] [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] : |
| 73 | Set.range (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map i) = |
| 74 | (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.underlying : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X → X.left) ⁻¹' Set.range i.left := by |
| 75 | ext z |
| 76 | constructor |
| 77 | · rintro ⟨w, rfl⟩ |
| 78 | exact ⟨w.underlying, rfl⟩ |
| 79 | · rintro ⟨y, hy⟩ |
| 80 | have hyclosed : IsClosed ({y} : Set Y.left) := by |
| 81 | have h := ((pointEquivClosedPoint X.hom) ⟨z.left, z.w⟩).2.preimage i.left.continuous |
| 82 | change IsClosed (i.left ⁻¹' ({z.underlying} : Set X.left)) at h |
| 83 | have he : i.left ⁻¹' ({z.underlying} : Set X.left) = {y} := by |
| 84 | rw [← hy] |
| 85 | ext a |
| 86 | exact i.left.isEmbedding.injective.eq_iff |
| 87 | rwa [he] at h |
| 88 | let p := (pointEquivClosedPoint Y.hom).symm ⟨y, hyclosed⟩ |
| 89 | let w : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint Y := Over.homMk p.1 p.2 |
| 90 | refine ⟨w, ?_⟩ |
| 91 | apply Over.OverMorphism.ext |
| 92 | have heq : |
| 93 | (⟨(_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map i w).left, (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map i w).w⟩ : |
| 94 | {q : Spec ↧ℂ ⟶ X.left // q ≫ X.hom = 𝟙 _}) = ⟨z.left, z.w⟩ := by |
| 95 | apply (pointEquivClosedPoint X.hom).injective |
| 96 | apply Subtype.ext |
| 97 | change i.left w.underlying = z.underlying |
| 98 | have hw : w.underlying = y := |
| 99 | congrArg Subtype.val |
| 100 | ((pointEquivClosedPoint Y.hom).apply_symm_apply ⟨y, hyclosed⟩) |
| 101 | rw [hw] |
| 102 | exact hy |
| 103 | exact congrArg Subtype.val heq |
| 104 | |
| 105 | end ComplexPoint |
| 106 | end |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.Stratification.AnalytificationIs |