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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | This file has been modified. |
| 17 | -/ |
| 18 | |
| 19 | import HodgeConjecture.Lemmas.AlgebraicGeometry.ComplexPoint.Basic |
| 20 | import Mathlib.AlgebraicGeometry.AlgebraicCycle.Basic |
| 21 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 22 | |
| 23 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Smooth.Locus |
| 24 | import HodgeConjecture.Mathlib.CategoryTheory.ConcreteCategory.Notation |
| 25 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 26 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 27 | |
| 28 | namespace OAI.AlgebraicGeometry.Cycle.Support |
| 29 | |
| 30 | open _root_.AlgebraicGeometry |
| 31 | |
| 32 | /-! |
| 33 | # Geometric support of algebraic cycles |
| 34 | |
| 35 | An algebraic cycle in Mathlib is indexed by the generic points of its irreducible components. |
| 36 | This file constructs the reduced integral closed subscheme attached to such a point and the |
| 37 | corresponding closed subset of complex points. It also constructs the geometric support of a |
| 38 | whole cycle as the union of the closures of the generic points with nonzero coefficient. |
| 39 | -/ |
| 40 | |
| 41 | noncomputable section |
| 42 | |
| 43 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 44 | |
| 45 | section |
| 46 | |
| 47 | variable (X : Over (Spec ↧ℂ)) |
| 48 | |
| 49 | /-- Let `X` be a scheme and `x` a point of its underlying topological space. This is the closed |
| 50 | subscheme defined by the vanishing ideal of `closure {x}`. It has that closure as its underlying |
| 51 | space and the reduced scheme structure, so it is integral with generic point `x`. -/ |
| 52 | def cycleComponent (X : Scheme) (x : X) : Scheme := |
| 53 | (Scheme.IdealSheafData.vanishingIdeal |
| 54 | (X := X) ⟨closure {x}, isClosed_closure⟩).subscheme |
| 55 | |
| 56 | /-- Let `X` be a scheme and `x` a scheme point. This is the closed immersion into `X` of the reduced |
| 57 | closed subscheme with underlying space `closure {x}`, defined by its vanishing ideal sheaf. -/ |
| 58 | def cycleComponentι (X : Scheme) (x : X) : cycleComponent X x ⟶ X := |
| 59 | (Scheme.IdealSheafData.vanishingIdeal |
| 60 | (X := X) ⟨closure {x}, isClosed_closure⟩).subschemeι |
| 61 | |
| 62 | instance (X : Scheme) (x : X) : IsClosedImmersion (cycleComponentι X x) := by |
| 63 | change IsClosedImmersion |
| 64 | ((Scheme.IdealSheafData.vanishingIdeal |
| 65 | (X := X) ⟨closure {x}, isClosed_closure⟩).subschemeι) |
| 66 | infer_instance |
| 67 | |
| 68 | instance (X : Scheme) (x : X) : IsReduced (cycleComponent X x) := by |
| 69 | let I := Scheme.IdealSheafData.vanishingIdeal |
| 70 | (X := X) ⟨closure {x}, isClosed_closure⟩ |
| 71 | change IsReduced I.subscheme |
| 72 | rw [IsReduced.iff_of_openCover I.subscheme I.subschemeCover.openCover] |
| 73 | intro U |
| 74 | let U' : X.affineOpens := U |
| 75 | change IsReduced (Spec ↧(Γ(X, U') ⧸ I.ideal U')) |
| 76 | rw [affine_isReduced_iff, ← Ideal.isRadical_iff_quotient_reduced] |
| 77 | change (PrimeSpectrum.vanishingIdeal (U'.2.fromSpec ⁻¹' closure {x})).IsRadical |
| 78 | exact PrimeSpectrum.isRadical_vanishingIdeal _ |
| 79 | |
| 80 | instance (X : Scheme) (x : X) : IrreducibleSpace (cycleComponent X x) := |
| 81 | Subtype.irreducibleSpace isIrreducible_singleton.closure |
| 82 | |
| 83 | instance (X : Scheme) (x : X) : IsIntegral (cycleComponent X x) := |
| 84 | isIntegral_of_irreducibleSpace_of_isReduced _ |
| 85 | |
| 86 | /-- A cycle component of a projective variety is projective over `ℂ`. -/ |
| 87 | instance cycleComponent_projective |
| 88 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 89 | _root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective (cycleComponentι X.left x ≫ X.hom) := by |
| 90 | rcases ‹_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom›.nonempty_presentation with ⟨P⟩ |
| 91 | exact ⟨⟨ |
| 92 | { ambientDimension := P.ambientDimension |
| 93 | immersion := cycleComponentι X.left x ≫ P.immersion |
| 94 | isClosedImmersion := by |
| 95 | let := P.isClosedImmersion |
| 96 | infer_instance |
| 97 | immersion_toBase := by rw [Category.assoc, P.immersion_toBase] } |
| 98 | ⟩⟩ |
| 99 | |
| 100 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 101 | be its reduced closure in `X`. This is the subset `Z(ℂ) ⊆ X(ℂ)`, consisting of complex points |
| 102 | whose underlying scheme point belongs to `closure {x}`. -/ |
| 103 | def cycleComponentSupport |
| 104 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 105 | Set (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) := |
| 106 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.underlying ⁻¹' closure {x} |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.Cycle.Support |