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