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