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