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.AlgebraicTopology.LocalHomology.ChartFundamentalClass |
| 20 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Cycle.Component.NormalCoordinates |
| 21 | |
| 22 | import HodgeConjecture.Lemmas.AlgebraicGeometry.ComplexPoint.ProjectiveHausdorff |
| 23 | import HodgeConjecture.Lemmas.AlgebraicTopology.LocalHomology.ChartFundamentalClassGenerator |
| 24 | import HodgeConjecture.Lemmas.AlgebraicTopology.LocalHomology.FundamentalClassGenerator |
| 25 | import HodgeConjecture.Lemmas.AlgebraicTopology.LocalHomology.PuncturedEuclidean |
| 26 | |
| 27 | namespace OAI.AlgebraicGeometry.Cycle.ComponentLocalGenerator |
| 28 | |
| 29 | open _root_.AlgebraicGeometry |
| 30 | |
| 31 | /-! |
| 32 | # Local generators from exact cycle-component coordinates |
| 33 | |
| 34 | An exact étale coordinate package on the smooth locus of a cycle component gives an |
| 35 | analytic chart on its chosen affine neighborhood. This file constructs that chart directly from |
| 36 | the retained polynomial-ring homomorphism. It then transports the standard complex local |
| 37 | homology generator through the chart. |
| 38 | |
| 39 | The chart map factors through its open target and the point-neighborhood excision theorem. |
| 40 | Consequently the resulting class generates the full local homology of the affine component |
| 41 | neighborhood. This file does not construct a supported cohomology class or prove purity for the |
| 42 | component inside the ambient variety. |
| 43 | -/ |
| 44 | |
| 45 | noncomputable section |
| 46 | |
| 47 | open _root_.CategoryTheory _root_.Topology |
| 48 | |
| 49 | section |
| 50 | |
| 51 | attribute [local instance] _root_.OAI.AlgebraicGeometry.Over.Basic.overSpecAlgebra |
| 52 | |
| 53 | variable {d n : ℕ} {X : Over (Spec ↧ℂ)} [IsIntegral X.left] |
| 54 | [Smooth X.hom] [_root_.OAI.AlgebraicGeometry.Foundations.ProjectiveSpaceIs.IsProjective X.hom] {x : X.left} |
| 55 | [SmoothOfRelativeDimension d X.hom] |
| 56 | |
| 57 | namespace CycleComponentSeparateLocalCoordinates |
| 58 | |
| 59 | variable (C : _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates X x d n) |
| 60 | |
| 61 | /-- The complex structure map on the selected affine component neighborhood. -/ |
| 62 | abbrev _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.neighborhoodStructureMap : |
| 63 | C.componentNeighborhood.toScheme ⟶ Spec ↧ℂ := |
| 64 | C.componentNeighborhood.ι ≫ (_root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.componentSmoothLocus X x).ι ≫ _root_.OAI.AlgebraicGeometry.Cycle.Support.cycleComponentι X.left x ≫ X.hom |
| 65 | |
| 66 | /-- The retained exact component coordinates, transported to global sections of the affine |
| 67 | neighborhood itself. -/ |
| 68 | def _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.coordinateRingHomOnNeighborhood : |
| 69 | MvPolynomial (Fin n) ℂ →+* Γ(C.componentNeighborhood.toScheme, ⊤) := |
| 70 | C.componentNeighborhood.topIso.inv.hom.comp C.componentCoordinateAlgHom.toRingHom |
| 71 | |
| 72 | /-- The transported coordinate map is compatible with the neighborhood's complex structure |
| 73 | map. -/ |
| 74 | lemma _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.C_comp_coordinateRingHomOnNeighborhood : |
| 75 | CommRingCat.ofHom MvPolynomial.C ≫ |
| 76 | CommRingCat.ofHom C.coordinateRingHomOnNeighborhood = |
| 77 | (Scheme.ΓSpecIso ↧ℂ).inv ≫ C.neighborhoodStructureMap.appTop := by |
| 78 | apply (cancel_mono C.componentNeighborhood.topIso.hom).mp |
| 79 | change (((CommRingCat.ofHom MvPolynomial.C) ≫ |
| 80 | CommRingCat.ofHom C.componentCoordinateAlgHom.toRingHom) ≫ |
| 81 | C.componentNeighborhood.topIso.inv) ≫ |
| 82 | C.componentNeighborhood.topIso.hom = |
| 83 | (((Scheme.ΓSpecIso ↧ℂ).inv ≫ |
| 84 | C.neighborhoodStructureMap.appTop) ≫ |
| 85 | C.componentNeighborhood.topIso.hom) |
| 86 | rw [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 87 | simp only [_root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.neighborhoodStructureMap, Scheme.Hom.comp_appTop, Category.assoc] |
| 88 | rw [_root_.OAI.AlgebraicGeometry.ComplexPoint.SmoothCoordinates.Scheme.Opens.ι_appTop_topIso_hom] |
| 89 | exact congrArg CommRingCat.ofHom C.componentCoordinateAlgHom.comp_algebraMap |
| 90 | |
| 91 | /-- The transported exact coordinate map remains étale. -/ |
| 92 | lemma _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.coordinateRingHomOnNeighborhood_etale : |
| 93 | C.coordinateRingHomOnNeighborhood.Etale := |
| 94 | RingHom.Etale.respectsIso.1 C.componentCoordinateAlgHom.toRingHom |
| 95 | C.componentNeighborhood.topIso.symm.commRingCatIsoToRingEquiv |
| 96 | C.componentCoordinateAlgHom_etale |
| 97 | |
| 98 | /-- Complex affine `n`-space is standard smooth of relative dimension `n`, using its presentation |
| 99 | with `n` variables and no relations. -/ |
| 100 | lemma _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.mvPolynomial_C_isStandardSmoothOfRelativeDimension : |
| 101 | (MvPolynomial.C : ℂ →+* MvPolynomial (Fin n) ℂ).IsStandardSmoothOfRelativeDimension n := by |
| 102 | rw [show (MvPolynomial.C : ℂ →+* MvPolynomial (Fin n) ℂ) = |
| 103 | algebraMap ℂ (MvPolynomial (Fin n) ℂ) from rfl] |
| 104 | rw [RingHom.isStandardSmoothOfRelativeDimension_algebraMap] |
| 105 | let P : Algebra.SubmersivePresentation ℂ (MvPolynomial (Fin n) ℂ) |
| 106 | (Fin n) Empty := |
| 107 | { toPreSubmersivePresentation := |
| 108 | { toPresentation := |
| 109 | { toGenerators := Algebra.Generators.mvPolynomial ℂ (Fin n) |
| 110 | relation := Empty.elim |
| 111 | span_range_relation_eq_ker := by |
| 112 | rw [Algebra.Generators.ker_mvPolynomial] |
| 113 | simp } |
| 114 | map := Empty.elim |
| 115 | map_inj := fun a ↦ a.elim } |
| 116 | jacobian_isUnit := by |
| 117 | rw [Algebra.PreSubmersivePresentation.jacobian_eq_jacobiMatrix_det, |
| 118 | Matrix.det_isEmpty] |
| 119 | simpa only [map_one] using |
| 120 | (isUnit_one : IsUnit (1 : MvPolynomial (Fin n) ℂ)) } |
| 121 | exact P.isStandardSmoothOfRelativeDimension (by |
| 122 | simp [Algebra.Presentation.dimension]) |
| 123 | |
| 124 | /-- The structure map of the exact affine component neighborhood is standard smooth of the |
| 125 | coordinate package's specified dimension on global sections. -/ |
| 126 | lemma _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.neighborhoodStructureMap_appTop_isStandardSmoothOfRelativeDimension : |
| 127 | C.neighborhoodStructureMap.appTop.hom.IsStandardSmoothOfRelativeDimension n := by |
| 128 | have hcoord0 : C.coordinateRingHomOnNeighborhood.IsStandardSmoothOfRelativeDimension 0 := |
| 129 | RingHom.etale_iff_isStandardSmoothOfRelativeDimension_zero.mp |
| 130 | C.coordinateRingHomOnNeighborhood_etale |
| 131 | have hcomposite : |
| 132 | RingHom.IsStandardSmoothOfRelativeDimension n |
| 133 | (C.coordinateRingHomOnNeighborhood.comp MvPolynomial.C) := by |
| 134 | simpa only [zero_add] using |
| 135 | hcoord0.comp (_root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.mvPolynomial_C_isStandardSmoothOfRelativeDimension (n := n)) |
| 136 | have hcat := C.C_comp_coordinateRingHomOnNeighborhood |
| 137 | have hcomp : |
| 138 | RingHom.IsStandardSmoothOfRelativeDimension n |
| 139 | (C.neighborhoodStructureMap.appTop.hom.comp |
| 140 | (Scheme.ΓSpecIso ↧ℂ).inv.hom) := by |
| 141 | have hring := congrArg CommRingCat.Hom.hom hcat |
| 142 | change C.coordinateRingHomOnNeighborhood.comp MvPolynomial.C = |
| 143 | C.neighborhoodStructureMap.appTop.hom.comp |
| 144 | (Scheme.ΓSpecIso ↧ℂ).inv.hom at hring |
| 145 | rw [← hring] |
| 146 | exact hcomposite |
| 147 | have h := hcomp.comp |
| 148 | (RingHom.IsStandardSmoothOfRelativeDimension.equiv |
| 149 | (Scheme.ΓSpecIso ↧ℂ).commRingCatIsoToRingEquiv) |
| 150 | have heq : |
| 151 | (C.neighborhoodStructureMap.appTop.hom.comp |
| 152 | (Scheme.ΓSpecIso ↧ℂ).inv.hom).comp |
| 153 | (Scheme.ΓSpecIso ↧ℂ).hom.hom = |
| 154 | C.neighborhoodStructureMap.appTop.hom := by |
| 155 | ext a |
| 156 | have ha := ConcreteCategory.congr_hom |
| 157 | (Scheme.ΓSpecIso ↧ℂ).hom_inv_id a |
| 158 | exact congrArg C.neighborhoodStructureMap.appTop.hom ha |
| 159 | exact heq ▸ h |
| 160 | |
| 161 | /-- The exact coordinates prove that the selected affine component neighborhood is smooth of the |
| 162 | specified relative dimension. -/ |
| 163 | noncomputable instance _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.neighborhoodSmoothOfRelativeDimension : |
| 164 | SmoothOfRelativeDimension n C.neighborhoodStructureMap where |
| 165 | exists_isStandardSmoothOfRelativeDimension y := by |
| 166 | let : IsAffine C.componentNeighborhood.toScheme := |
| 167 | C.componentNeighborhood_isAffine |
| 168 | refine ⟨⊤, isAffineOpen_top _, C.neighborhoodStructureMap ⁻¹ᵁ ⊤, |
| 169 | ?_, by simp, le_rfl, ?_⟩ |
| 170 | · simpa using (isAffineOpen_top C.componentNeighborhood.toScheme) |
| 171 | · rw [Scheme.Hom.appLE_eq_app] |
| 172 | exact C.neighborhoodStructureMap_appTop_isStandardSmoothOfRelativeDimension |
| 173 | |
| 174 | noncomputable local instance _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.coordinateRingAlgebra : |
| 175 | Algebra (MvPolynomial (Fin n) ℂ) Γ(C.componentNeighborhood.toScheme, ⊤) := |
| 176 | C.coordinateRingHomOnNeighborhood.toAlgebra |
| 177 | |
| 178 | noncomputable local instance _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.coordinateRingComplexAlgebra : |
| 179 | Algebra ℂ Γ(C.componentNeighborhood.toScheme, ⊤) := |
| 180 | (C.coordinateRingHomOnNeighborhood.comp MvPolynomial.C).toAlgebra |
| 181 | |
| 182 | noncomputable local instance _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.coordinateRingScalarTower : |
| 183 | IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) |
| 184 | Γ(C.componentNeighborhood.toScheme, ⊤) := |
| 185 | IsScalarTower.of_algebraMap_eq fun _ ↦ rfl |
| 186 | |
| 187 | noncomputable local instance _root_.OAI.AlgebraicGeometry.Cycle.ComponentNormalCoordinates.CycleComponentSeparateLocalCoordinates.coordinateRingEtale : |
| 188 | Algebra.Etale (MvPolynomial (Fin n) ℂ) |
| 189 | Γ(C.componentNeighborhood.toScheme, ⊤) := |
| 190 | RingHom.etale_algebraMap.mp C.coordinateRingHomOnNeighborhood_etale |
| 191 | |
| 192 | end CycleComponentSeparateLocalCoordinates |
| 193 | end |
| 194 | |
| 195 | namespace AlgebraicTopology |
| 196 | open _root_.AlgebraicTopology |
| 197 | namespace Singular |
| 198 | open _root_.AlgebraicTopology |
| 199 | open _root_.OAI.AlgebraicTopology.Singular |
| 200 | |
| 201 | /-- The oriented standard complex local class generates rational local homology in every complex |
| 202 | dimension. -/ |
| 203 | lemma _root_.OAI.AlgebraicGeometry.Cycle.ComponentLocalGenerator.span_standardComplexLocalClass_eq_top (n : ℕ) : |
| 204 | Submodule.span ℚ {_root_.OAI.AlgebraicTopology.LocalHomology.ComplexClass.Singular.standardComplexLocalClass ℚ n} = ⊤ := by |
| 205 | cases n with |
| 206 | | zero => exact _root_.OAI.AlgebraicTopology.LocalHomology.FundamentalClassGenerator.Singular.span_standardComplexLocalClass_zero_eq_top |
| 207 | | succ n => |
| 208 | rw [_root_.OAI.AlgebraicTopology.LocalHomology.FundamentalClassGenerator.Singular.span_standardComplexLocalClass_eq_top_iff] |
| 209 | have hdeg : (n + 1) * 2 = n * 2 + 2 := by lia |
| 210 | rw [hdeg] |
| 211 | exact _root_.OAI.AlgebraicTopology.LocalHomology.PuncturedEuclidean.Singular.span_standardLocalClass_add_two_eq_top (n * 2) |
| 212 | |
| 213 | end Singular |
| 214 | end AlgebraicTopology |
| 215 | |
| 216 | end |
| 217 | |
| 218 | end OAI.AlgebraicGeometry.Cycle.ComponentLocalGenerator |