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 Mathlib.AlgebraicGeometry.IdealSheaf.Functorial |
| 20 | |
| 21 | import HodgeConjecture.Definitions.AlgebraicGeometry.Cycle.Support |
| 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 | import HodgeConjecture.Lemmas.AlgebraicGeometry.ComplexPoint.Basic |
| 28 | import Mathlib.AlgebraicGeometry.AlgebraicCycle.Basic |
| 29 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 30 | |
| 31 | namespace OAI.AlgebraicGeometry.Cycle.SupportEq |
| 32 | |
| 33 | open _root_.AlgebraicGeometry |
| 34 | |
| 35 | /-! |
| 36 | # Geometric support of algebraic cycles |
| 37 | |
| 38 | Lemmas about the definitions in |
| 39 | `HodgeConjecture.Definitions.AlgebraicGeometry.Cycle.Support`. |
| 40 | -/ |
| 41 | |
| 42 | /-! ### Constructions used only in proofs -/ |
| 43 | |
| 44 | noncomputable section |
| 45 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 46 | section |
| 47 | variable (X : Over (Spec ↧ℂ)) |
| 48 | |
| 49 | @[simp] |
| 50 | lemma range_cycleComponentι (X : Scheme) (x : X) : |
| 51 | Set.range (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X x) = closure {x} := by |
| 52 | change Set.range |
| 53 | ((Scheme.IdealSheafData.vanishingIdeal |
| 54 | (X := X) ⟨closure {x}, isClosed_closure⟩).subschemeι) = closure {x} |
| 55 | rw [Scheme.IdealSheafData.range_subschemeι] |
| 56 | rfl |
| 57 | |
| 58 | end |
| 59 | end |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 64 | |
| 65 | section |
| 66 | |
| 67 | variable (X : Over (Spec ↧ℂ)) |
| 68 | |
| 69 | /-- The kernel of a complex point is the vanishing ideal of the closure of its underlying scheme |
| 70 | point. -/ |
| 71 | private lemma complexPoint_ker_eq_vanishingIdeal_closure |
| 72 | {X : Over (Spec ↧ℂ)} |
| 73 | (z : _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) : |
| 74 | z.left.ker = Scheme.IdealSheafData.vanishingIdeal |
| 75 | ⟨closure {z.underlying}, isClosed_closure⟩ := by |
| 76 | let f : Spec ↧ℂ ⟶ X.left := z.left |
| 77 | have hrange : Set.range f = {z.underlying} := by |
| 78 | ext y |
| 79 | constructor |
| 80 | · rintro ⟨s, rfl⟩ |
| 81 | have hs : s = IsLocalRing.closedPoint ℂ := Subsingleton.elim _ _ |
| 82 | subst s |
| 83 | rfl |
| 84 | · intro hy |
| 85 | rw [Set.mem_singleton_iff] at hy |
| 86 | subst y |
| 87 | exact ⟨IsLocalRing.closedPoint ℂ, rfl⟩ |
| 88 | have h := Scheme.IdealSheafData.map_vanishingIdeal f |
| 89 | (⊤ : TopologicalSpace.Closeds (Spec ↧ℂ)) |
| 90 | rw [Scheme.IdealSheafData.vanishingIdeal_top, Scheme.nilradical_eq_bot, |
| 91 | Scheme.IdealSheafData.map_bot] at h |
| 92 | have himage : f '' (↑(⊤ : TopologicalSpace.Closeds (Spec ↧ℂ)) : |
| 93 | Set (Spec ↧ℂ)) = {z.underlying} := by |
| 94 | simpa only [TopologicalSpace.Closeds.coe_top, Set.image_univ] using hrange |
| 95 | rwa [himage] at h |
| 96 | |
| 97 | set_option backward.defeqAttrib.useBackward true in |
| 98 | set_option backward.isDefEq.respectTransparency false in |
| 99 | /-- A complex point in the support of a component annihilates the defining ideal of that |
| 100 | component. -/ |
| 101 | lemma cycleComponent_vanishingIdeal_le_complexPoint_ker |
| 102 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) |
| 103 | (z : (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (hz : z.underlying ∈ closure {x}) : |
| 104 | (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x).ker ≤ z.left.ker := by |
| 105 | unfold _root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι |
| 106 | rw [Scheme.IdealSheafData.ker_subschemeι] |
| 107 | rw [complexPoint_ker_eq_vanishingIdeal_closure z] |
| 108 | apply Scheme.IdealSheafData.vanishingIdeal_antimono |
| 109 | exact closure_minimal (Set.singleton_subset_iff.mpr hz) isClosed_closure |
| 110 | |
| 111 | /-- The map on complex points induced by the canonical inclusion of a cycle component. -/ |
| 112 | def cycleComponentMap |
| 113 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 114 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (Over.mk (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom)) → (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) := |
| 115 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.map (Over.homMk (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x) rfl) |
| 116 | |
| 117 | /-- Lift a complex point in a component support through the reduced closed component. -/ |
| 118 | def cycleComponentComplexPointLift |
| 119 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) |
| 120 | (z : (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (hz : z ∈ _root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentSupport X x) : |
| 121 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (Over.mk (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom)) := |
| 122 | have hz' : z.underlying ∈ closure {x} := hz |
| 123 | Over.homMk (IsClosedImmersion.lift (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x) z.left |
| 124 | (cycleComponent_vanishingIdeal_le_complexPoint_ker X x z hz')) (by |
| 125 | change _ ≫ (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom) = 𝟙 _ |
| 126 | rw [← Category.assoc, IsClosedImmersion.lift_fac] |
| 127 | exact Over.w z) |
| 128 | |
| 129 | @[simp] |
| 130 | lemma cycleComponentMap_lift |
| 131 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) |
| 132 | (z : (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X)) (hz : z ∈ _root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentSupport X x) : |
| 133 | cycleComponentMap X x (cycleComponentComplexPointLift X x z hz) = z := |
| 134 | Over.OverMorphism.ext (IsClosedImmersion.lift_fac (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x) z.left _) |
| 135 | |
| 136 | /-- The analytic complex points in the smooth locus of a reduced cycle component. -/ |
| 137 | def cycleComponentSmoothAnalyticLocus |
| 138 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 139 | Set (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint (Over.mk (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom))) := |
| 140 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.overOpen |
| 141 | (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom).smoothLocus |
| 142 | |
| 143 | /-- The image in the ambient analytic space of the smooth locus of a cycle component. -/ |
| 144 | def cycleComponentSmoothSupport |
| 145 | [IsIntegral X.left] [Smooth X.hom] |
| 146 | [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : Set (_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint X) := |
| 147 | cycleComponentMap X x '' cycleComponentSmoothAnalyticLocus X x |
| 148 | |
| 149 | end |
| 150 | |
| 151 | end |
| 152 | |
| 153 | noncomputable section |
| 154 | |
| 155 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 156 | |
| 157 | section |
| 158 | |
| 159 | variable (X : Over (Spec ↧ℂ)) |
| 160 | |
| 161 | /-- The reduced closure of a point in a projective complex variety is Noetherian. |
| 162 | |
| 163 | It is a `def` because the component does not determine the structure morphism carrying the |
| 164 | projectivity hypothesis. -/ |
| 165 | theorem cycleComponent_isNoetherian |
| 166 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 167 | IsNoetherian (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponent X.left x) := |
| 168 | @_root_.OAI.AlgebraicGeometry.ComplexPoint.BasicNe.isNoetherian_of_isProjective (Over.mk (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom)) |
| 169 | (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponent_projective X x) |
| 170 | |
| 171 | /-- The smooth locus of an integral cycle component is a smooth complex scheme. -/ |
| 172 | theorem cycleComponent_smoothLocus_smooth |
| 173 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 174 | Smooth |
| 175 | ((_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom).smoothLocus.ι ≫ |
| 176 | (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom)) := |
| 177 | (_root_.OAI.AlgebraicGeometry.Smooth.Locus.Scheme.Hom.smooth_restrict_smoothLocus (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom)) |
| 178 | |
| 179 | /-- The complex points over a Zariski-closed subset form an analytically closed set. -/ |
| 180 | lemma isClosed_complexPoint_underlying_preimage |
| 181 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] |
| 182 | (Z : TopologicalSpace.Closeds X.left) : |
| 183 | IsClosed ((@_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.underlying ℂ _ _ X) ⁻¹' |
| 184 | (Z : Set X.left)) := by |
| 185 | rw [← isOpen_compl_iff] |
| 186 | let U : X.left.Opens := ⟨(Z : Set X.left)ᶜ, |
| 187 | isOpen_compl_iff.mpr Z.2⟩ |
| 188 | exact _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point.isOpen_overOpen (X := X) U |
| 189 | |
| 190 | lemma isClosed_cycleComponentSupport |
| 191 | [IsIntegral X.left] [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] (x : X.left) : |
| 192 | IsClosed (_root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentSupport X x) := |
| 193 | isClosed_complexPoint_underlying_preimage X |
| 194 | ⟨closure {x}, isClosed_closure⟩ |
| 195 | |
| 196 | end |
| 197 | |
| 198 | end |
| 199 | |
| 200 | end OAI.AlgebraicGeometry.Cycle.SupportEq |