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 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicGeometry.ComplexPoint.BasicNe |
| 18 | import Mathlib.AlgebraicGeometry.AlgebraicCycle.Basic |
| 19 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 20 | import OAI.AlgebraicGeometry.Smooth.Locus |
| 21 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 22 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 23 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 24 | |
| 25 | /-! # Support -/ |
| 26 | |
| 27 | namespace OAI.AlgebraicGeometry.Cycle.Support |
| 28 | |
| 29 | noncomputable section |
| 30 | |
| 31 | open _root_.AlgebraicGeometry |
| 32 | |
| 33 | /-! |
| 34 | # Geometric support of algebraic cycles |
| 35 | |
| 36 | An algebraic cycle in Mathlib is indexed by the generic points of its irreducible components. |
| 37 | This file constructs the reduced integral closed subscheme attached to such a point and the |
| 38 | corresponding closed subset of complex points. It also constructs the geometric support of a |
| 39 | whole cycle as the union of the closures of the generic points with nonzero coefficient. |
| 40 | -/ |
| 41 | |
| 42 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 43 | |
| 44 | variable (X : Over (Spec ↧ℂ)) |
| 45 | |
| 46 | /-- Let `X` be a scheme and `x` a point of its underlying topological space. This is the closed |
| 47 | subscheme defined by the vanishing ideal of `closure {x}`. It has that closure as its underlying |
| 48 | space and the reduced scheme structure, so it is integral with generic point `x`. -/ |
| 49 | def cycleComponent (X : Scheme) (x : X) : Scheme := |
| 50 | (Scheme.IdealSheafData.vanishingIdeal |
| 51 | (X := X) ⟨closure {x}, isClosed_closure⟩).subscheme |
| 52 | |
| 53 | /-- Let `X` be a scheme and `x` a scheme point. This is the closed immersion into `X` of the reduced |
| 54 | closed subscheme with underlying space `closure {x}`, defined by its vanishing ideal sheaf. -/ |
| 55 | def cycleComponentι (X : Scheme) (x : X) : cycleComponent X x ⟶ X := |
| 56 | (Scheme.IdealSheafData.vanishingIdeal |
| 57 | (X := X) ⟨closure {x}, isClosed_closure⟩).subschemeι |
| 58 | |
| 59 | instance (X : Scheme) (x : X) : IsClosedImmersion (cycleComponentι X x) := by |
| 60 | change IsClosedImmersion |
| 61 | ((Scheme.IdealSheafData.vanishingIdeal |
| 62 | (X := X) ⟨closure {x}, isClosed_closure⟩).subschemeι) |
| 63 | infer_instance |
| 64 | |
| 65 | instance (X : Scheme) (x : X) : IsReduced (cycleComponent X x) := by |
| 66 | let I := Scheme.IdealSheafData.vanishingIdeal |
| 67 | (X := X) ⟨closure {x}, isClosed_closure⟩ |
| 68 | change IsReduced I.subscheme |
| 69 | rw [IsReduced.iff_of_openCover I.subscheme I.subschemeCover.openCover] |
| 70 | intro U |
| 71 | let U' : X.affineOpens := U |
| 72 | change IsReduced (Spec ↧(Γ(X, U') ⧸ I.ideal U')) |
| 73 | rw [affine_isReduced_iff, ← Ideal.isRadical_iff_quotient_reduced] |
| 74 | change (PrimeSpectrum.vanishingIdeal (U'.2.fromSpec ⁻¹' closure {x})).IsRadical |
| 75 | exact PrimeSpectrum.isRadical_vanishingIdeal _ |
| 76 | |
| 77 | instance (X : Scheme) (x : X) : IrreducibleSpace (cycleComponent X x) := |
| 78 | Subtype.irreducibleSpace isIrreducible_singleton.closure |
| 79 | |
| 80 | instance (X : Scheme) (x : X) : IsIntegral (cycleComponent X x) := |
| 81 | isIntegral_of_irreducibleSpace_of_isReduced _ |
| 82 | |
| 83 | /-- A cycle component of a projective variety is projective over `ℂ`. -/ |
| 84 | instance cycleComponent_projective |
| 85 | [IsIntegral X.left] [Smooth X.hom] [Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 86 | Foundations.ProjectiveSpaceIs.IsProjective (cycleComponentι X.left x ≫ X.hom) := by |
| 87 | rcases ‹Foundations.ProjectiveSpaceIs.IsProjective X.hom›.nonempty_presentation with ⟨P⟩ |
| 88 | exact ⟨⟨ |
| 89 | { ambientDimension := P.ambientDimension |
| 90 | immersion := cycleComponentι X.left x ≫ P.immersion |
| 91 | isClosedImmersion := by |
| 92 | let := P.isClosedImmersion |
| 93 | infer_instance |
| 94 | immersion_toBase := by rw [Category.assoc, P.immersion_toBase] } |
| 95 | ⟩⟩ |
| 96 | |
| 97 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, let `x` be a scheme point, and let `Z` |
| 98 | be its reduced closure in `X`. This is the subset `Z(ℂ) ⊆ X(ℂ)`, consisting of complex points |
| 99 | whose underlying scheme point belongs to `closure {x}`. -/ |
| 100 | def cycleComponentSupport |
| 101 | [IsIntegral X.left] [Smooth X.hom] [Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 102 | Set (ComplexPoint.Basic.ComplexSchemePoint X) := |
| 103 | ComplexPoint.Basic.Point.underlying ⁻¹' closure {x} |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.Cycle.Support |