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.AlgebraicGeometry.ComplexPoint.AffineScheme |
| 20 | import Mathlib.RingTheory.Etale.StandardEtale |
| 21 | |
| 22 | import Mathlib.Logic.Equiv.PartialEquiv |
| 23 | import Mathlib.Topology.Algebra.MvPolynomial |
| 24 | |
| 25 | namespace OAI.AlgebraicGeometry.ComplexPoint.StandardEtale |
| 26 | |
| 27 | /-! |
| 28 | # Complex points of standard étale algebras |
| 29 | |
| 30 | A complex point of a standard étale algebra over a polynomial ring is a base point together with |
| 31 | a root of the defining polynomial at which the localization polynomial does not vanish. This file |
| 32 | constructs that correspondence as a homeomorphism. The inverse continuity proof evaluates an |
| 33 | arbitrary representative in the explicit bivariate-polynomial quotient presentation. |
| 34 | |
| 35 | Like `ComplexPoint.Localization`, this works throughout with `ℂ`-algebra homomorphisms rather |
| 36 | than with complex points of schemes, so it lives in namespace `AlgebraicGeometry.ComplexAlgHom`. |
| 37 | -/ |
| 38 | |
| 39 | section |
| 40 | |
| 41 | open scoped _root_.Polynomial |
| 42 | |
| 43 | open _root_.CategoryTheory _root_.Topology |
| 44 | |
| 45 | section |
| 46 | namespace ComplexAlgHom |
| 47 | |
| 48 | open ComplexPoint _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.Point |
| 49 | |
| 50 | noncomputable section |
| 51 | |
| 52 | /-- The polynomial coordinate ring of complex affine `n`-space. -/ |
| 53 | abbrev complexPolynomialRing (n : ℕ) := MvPolynomial (Fin n) ℂ |
| 54 | |
| 55 | /-- A complex algebra homomorphism out of a polynomial ring is determined by the images of its |
| 56 | variables. -/ |
| 57 | def mvPolynomialAlgHomEquiv (n : ℕ) : |
| 58 | (complexPolynomialRing n →ₐ[ℂ] ℂ) ≃ (Fin n → ℂ) where |
| 59 | toFun φ i := φ (MvPolynomial.X i) |
| 60 | invFun v := MvPolynomial.aeval v |
| 61 | left_inv φ := MvPolynomial.algHom_ext fun i ↦ by simp |
| 62 | right_inv v := funext fun i ↦ by simp |
| 63 | |
| 64 | lemma continuous_mvPolynomialAlgHomEquiv (n : ℕ) : |
| 65 | Continuous (mvPolynomialAlgHomEquiv n) := |
| 66 | continuous_pi fun i ↦ |
| 67 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply (complexPolynomialRing n) (MvPolynomial.X i) |
| 68 | |
| 69 | lemma continuous_mvPolynomialAlgHomEquiv_symm (n : ℕ) : |
| 70 | Continuous (mvPolynomialAlgHomEquiv n).symm := by |
| 71 | rw [continuous_induced_rng] |
| 72 | refine continuous_pi fun p ↦ ?_ |
| 73 | simpa [mvPolynomialAlgHomEquiv] using p.continuous_eval |
| 74 | |
| 75 | /-- Pointwise convergence on complex algebra homomorphisms out of a polynomial ring is the usual |
| 76 | Euclidean topology on the tuple of variable values. -/ |
| 77 | def mvPolynomialAlgHomHomeomorph (n : ℕ) : |
| 78 | (complexPolynomialRing n →ₐ[ℂ] ℂ) ≃ₜ (Fin n → ℂ) where |
| 79 | toEquiv := mvPolynomialAlgHomEquiv n |
| 80 | continuous_toFun := continuous_mvPolynomialAlgHomEquiv n |
| 81 | continuous_invFun := continuous_mvPolynomialAlgHomEquiv_symm n |
| 82 | |
| 83 | variable {n : ℕ} (P : StandardEtalePair (complexPolynomialRing n)) |
| 84 | |
| 85 | /-- The complex algebra structure on a standard étale algebra over a complex polynomial ring. -/ |
| 86 | noncomputable instance standardEtaleRingAlgebra : Algebra ℂ P.Ring := |
| 87 | ((algebraMap (complexPolynomialRing n) P.Ring).comp |
| 88 | (algebraMap ℂ (complexPolynomialRing n))).toAlgebra |
| 89 | |
| 90 | noncomputable instance standardEtaleRingIsScalarTower : |
| 91 | IsScalarTower ℂ (complexPolynomialRing n) P.Ring := |
| 92 | IsScalarTower.of_algebraMap_eq fun _ ↦ rfl |
| 93 | |
| 94 | /-- A base point and a root satisfying the equations represented by a standard étale pair. -/ |
| 95 | abbrev standardEtalePointSpace := |
| 96 | { vx : ((complexPolynomialRing n →ₐ[ℂ] ℂ) × ℂ) // |
| 97 | Polynomial.eval₂ vx.1 vx.2 P.f = 0 ∧ Polynomial.eval₂ vx.1 vx.2 P.g ≠ 0 } |
| 98 | |
| 99 | /-- Construct a complex algebra homomorphism from the root data of a standard étale point. -/ |
| 100 | def standardEtalePointToAlgHom (z : standardEtalePointSpace P) : P.Ring →ₐ[ℂ] ℂ := |
| 101 | letI : Algebra (complexPolynomialRing n) ℂ := z.1.1.toRingHom.toAlgebra |
| 102 | letI : IsScalarTower ℂ (complexPolynomialRing n) ℂ := |
| 103 | IsScalarTower.of_algebraMap_eq fun c ↦ (z.1.1.commutes c).symm |
| 104 | have hz : P.HasMap z.1.2 := by |
| 105 | rw [StandardEtalePair.HasMap] |
| 106 | constructor |
| 107 | · simpa [Polynomial.aeval_def, RingHom.algebraMap_toAlgebra] using z.2.1 |
| 108 | · simpa [Polynomial.aeval_def, RingHom.algebraMap_toAlgebra, isUnit_iff_ne_zero] using z.2.2 |
| 109 | (P.lift z.1.2 hz).restrictScalars ℂ |
| 110 | |
| 111 | /-- Read the base point and distinguished root from a complex point of a standard étale algebra. -/ |
| 112 | def algHomToStandardEtalePoint (φ : P.Ring →ₐ[ℂ] ℂ) : standardEtalePointSpace P := |
| 113 | let v : complexPolynomialRing n →ₐ[ℂ] ℂ := |
| 114 | φ.comp (IsScalarTower.toAlgHom ℂ (complexPolynomialRing n) P.Ring) |
| 115 | let x := φ P.X |
| 116 | ⟨(v, x), by |
| 117 | let : Algebra (complexPolynomialRing n) ℂ := v.toRingHom.toAlgebra |
| 118 | let φB : P.Ring →ₐ[complexPolynomialRing n] ℂ := |
| 119 | { toRingHom := φ.toRingHom |
| 120 | commutes' b := rfl } |
| 121 | have h := P.hasMap_X.map φB |
| 122 | constructor |
| 123 | · simpa [v, x, φB, StandardEtalePair.HasMap, Polynomial.aeval_def, |
| 124 | RingHom.algebraMap_toAlgebra] using h.1 |
| 125 | · simpa [v, x, φB, StandardEtalePair.HasMap, Polynomial.aeval_def, |
| 126 | RingHom.algebraMap_toAlgebra, isUnit_iff_ne_zero] using h.2⟩ |
| 127 | |
| 128 | /-- Complex algebra homomorphisms out of a standard étale algebra are equivalent to its root |
| 129 | data. -/ |
| 130 | def standardEtalePointEquiv : |
| 131 | (P.Ring →ₐ[ℂ] ℂ) ≃ standardEtalePointSpace P where |
| 132 | toFun := algHomToStandardEtalePoint P |
| 133 | invFun := standardEtalePointToAlgHom P |
| 134 | left_inv φ := by |
| 135 | let v : complexPolynomialRing n →ₐ[ℂ] ℂ := |
| 136 | φ.comp (IsScalarTower.toAlgHom ℂ (complexPolynomialRing n) P.Ring) |
| 137 | let : Algebra (complexPolynomialRing n) ℂ := v.toRingHom.toAlgebra |
| 138 | let hscalar : IsScalarTower ℂ (complexPolynomialRing n) ℂ := |
| 139 | IsScalarTower.of_algebraMap_eq fun c ↦ (v.commutes c).symm |
| 140 | let := hscalar |
| 141 | let φB : P.Ring →ₐ[complexPolynomialRing n] ℂ := |
| 142 | { toRingHom := φ.toRingHom |
| 143 | commutes' b := rfl } |
| 144 | have heq : P.lift (φ P.X) (P.hasMap_X.map φB) = φB := |
| 145 | P.hom_ext (by simp [φB]) |
| 146 | have hres := congrArg |
| 147 | (fun q : P.Ring →ₐ[complexPolynomialRing n] ℂ ↦ q.restrictScalars ℂ) heq |
| 148 | have hφ : φB.restrictScalars ℂ = φ := AlgHom.ext fun _ ↦ rfl |
| 149 | change (P.lift (φ P.X) (P.hasMap_X.map φB)).restrictScalars ℂ = φ |
| 150 | exact hres.trans hφ |
| 151 | right_inv z := by |
| 152 | let : Algebra (complexPolynomialRing n) ℂ := z.1.1.toRingHom.toAlgebra |
| 153 | let hscalar : IsScalarTower ℂ (complexPolynomialRing n) ℂ := |
| 154 | IsScalarTower.of_algebraMap_eq fun c ↦ (z.1.1.commutes c).symm |
| 155 | let := hscalar |
| 156 | have hz : P.HasMap z.1.2 := by |
| 157 | rw [StandardEtalePair.HasMap] |
| 158 | constructor |
| 159 | · simpa [Polynomial.aeval_def, RingHom.algebraMap_toAlgebra] using z.2.1 |
| 160 | · simpa [Polynomial.aeval_def, RingHom.algebraMap_toAlgebra, isUnit_iff_ne_zero] using z.2.2 |
| 161 | apply Subtype.ext |
| 162 | apply Prod.ext |
| 163 | · refine AlgHom.ext fun b ↦ ?_ |
| 164 | change P.lift z.1.2 hz (algebraMap (complexPolynomialRing n) P.Ring b) = z.1.1 b |
| 165 | exact (P.lift z.1.2 hz).commutes b |
| 166 | · change P.lift z.1.2 hz P.X = z.1.2 |
| 167 | exact P.lift_X _ _ |
| 168 | |
| 169 | lemma continuous_algHomToStandardEtalePoint : |
| 170 | Continuous (algHomToStandardEtalePoint P) := by |
| 171 | rw [continuous_induced_rng] |
| 172 | apply Continuous.prodMk |
| 173 | · rw [continuous_induced_rng] |
| 174 | refine continuous_pi fun b ↦ ?_ |
| 175 | simpa [algHomToStandardEtalePoint] using |
| 176 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply P.Ring |
| 177 | (algebraMap (complexPolynomialRing n) P.Ring b) |
| 178 | · simpa [algHomToStandardEtalePoint] using |
| 179 | _root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply P.Ring P.X |
| 180 | |
| 181 | /-- Polynomial evaluation is continuous when both the coefficient homomorphism and the argument |
| 182 | vary. -/ |
| 183 | lemma continuous_eval₂_varying (p : (complexPolynomialRing n)[X]) : |
| 184 | Continuous (fun vx : (complexPolynomialRing n →ₐ[ℂ] ℂ) × ℂ ↦ |
| 185 | Polynomial.eval₂ vx.1 vx.2 p) := by |
| 186 | induction p using Polynomial.induction_on' with |
| 187 | | add p q hp hq => |
| 188 | rw [show (fun vx : (complexPolynomialRing n →ₐ[ℂ] ℂ) × ℂ ↦ |
| 189 | Polynomial.eval₂ vx.1 vx.2 (p + q)) = |
| 190 | (fun vx ↦ Polynomial.eval₂ vx.1 vx.2 p + |
| 191 | Polynomial.eval₂ vx.1 vx.2 q) by |
| 192 | funext vx |
| 193 | simp] |
| 194 | exact hp.add hq |
| 195 | | monomial k a => |
| 196 | rw [show (fun vx : (complexPolynomialRing n →ₐ[ℂ] ℂ) × ℂ ↦ |
| 197 | Polynomial.eval₂ vx.1 vx.2 (Polynomial.monomial k a)) = |
| 198 | (fun vx ↦ vx.1 a * vx.2 ^ k) by |
| 199 | funext vx |
| 200 | simp] |
| 201 | exact |
| 202 | ((_root_.OAI.AlgebraicGeometry.ComplexPoint.Basic.ComplexSchemePoint.continuous_affineAlgebraHom_apply (complexPolynomialRing n) a).comp continuous_fst).mul |
| 203 | (continuous_snd.pow k) |
| 204 | |
| 205 | /-- Evaluation of a quotient representative under the standard étale point map. -/ |
| 206 | lemma standardEtalePointToAlgHom_mk (z : standardEtalePointSpace P) |
| 207 | (q : (complexPolynomialRing n)[X][X]) : |
| 208 | standardEtalePointToAlgHom P z (Ideal.Quotient.mk _ q) = |
| 209 | Polynomial.eval₂ |
| 210 | (Polynomial.eval₂RingHom z.1.1 z.1.2) |
| 211 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ q := by |
| 212 | let : Algebra (complexPolynomialRing n) ℂ := z.1.1.toRingHom.toAlgebra |
| 213 | let hscalar : IsScalarTower ℂ (complexPolynomialRing n) ℂ := |
| 214 | IsScalarTower.of_algebraMap_eq fun c ↦ (z.1.1.commutes c).symm |
| 215 | have hz : P.HasMap z.1.2 := by |
| 216 | rw [StandardEtalePair.HasMap] |
| 217 | constructor |
| 218 | · simpa [Polynomial.aeval_def, RingHom.algebraMap_toAlgebra] using z.2.1 |
| 219 | · simpa [Polynomial.aeval_def, RingHom.algebraMap_toAlgebra, isUnit_iff_ne_zero] using z.2.2 |
| 220 | change P.lift z.1.2 hz (Ideal.Quotient.mk _ q) = _ |
| 221 | change Polynomial.aevalAeval z.1.2 (↑hz.2.unit⁻¹ : ℂ) q = _ |
| 222 | have hinv : (↑hz.2.unit⁻¹ : ℂ) = |
| 223 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ := by |
| 224 | calc |
| 225 | (↑hz.2.unit⁻¹ : ℂ) = (↑hz.2.unit : ℂ)⁻¹ := by simp |
| 226 | _ = (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ := by |
| 227 | congr 1 |
| 228 | rw [hinv] |
| 229 | have heq : |
| 230 | (Polynomial.aevalAeval z.1.2 |
| 231 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹).toRingHom = |
| 232 | Polynomial.eval₂RingHom (Polynomial.eval₂RingHom z.1.1.toRingHom z.1.2) |
| 233 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ := by |
| 234 | ext b <;> simp [Polynomial.aevalAeval, Polynomial.aevalAevalEquiv, |
| 235 | Polynomial.aeval_def, RingHom.algebraMap_toAlgebra] |
| 236 | exact DFunLike.congr_fun heq q |
| 237 | |
| 238 | lemma continuous_standardEtale_bivariate_evaluation |
| 239 | (q : (complexPolynomialRing n)[X][X]) : |
| 240 | Continuous (fun z : standardEtalePointSpace P ↦ |
| 241 | Polynomial.eval₂ |
| 242 | (Polynomial.eval₂RingHom z.1.1 z.1.2) |
| 243 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ q) := by |
| 244 | have hg : Continuous (fun z : standardEtalePointSpace P ↦ |
| 245 | Polynomial.eval₂ z.1.1 z.1.2 P.g) := |
| 246 | (continuous_eval₂_varying P.g).comp continuous_subtype_val |
| 247 | have hginv : Continuous (fun z : standardEtalePointSpace P ↦ |
| 248 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹) := |
| 249 | hg.inv₀ fun z ↦ z.2.2 |
| 250 | induction q using Polynomial.induction_on' with |
| 251 | | add q r hq hr => |
| 252 | rw [show (fun z : standardEtalePointSpace P ↦ |
| 253 | Polynomial.eval₂ (Polynomial.eval₂RingHom z.1.1 z.1.2) |
| 254 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ (q + r)) = |
| 255 | (fun z ↦ |
| 256 | Polynomial.eval₂ (Polynomial.eval₂RingHom z.1.1 z.1.2) |
| 257 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ q + |
| 258 | Polynomial.eval₂ (Polynomial.eval₂RingHom z.1.1 z.1.2) |
| 259 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ r) by |
| 260 | funext z |
| 261 | simp] |
| 262 | exact hq.add hr |
| 263 | | monomial k a => |
| 264 | rw [show (fun z : standardEtalePointSpace P ↦ |
| 265 | Polynomial.eval₂ (Polynomial.eval₂RingHom z.1.1 z.1.2) |
| 266 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ (Polynomial.monomial k a)) = |
| 267 | (fun z ↦ Polynomial.eval₂ z.1.1 z.1.2 a * |
| 268 | (Polynomial.eval₂ z.1.1 z.1.2 P.g)⁻¹ ^ k) by |
| 269 | funext z |
| 270 | simp] |
| 271 | exact ((continuous_eval₂_varying a).comp continuous_subtype_val).mul (hginv.pow k) |
| 272 | |
| 273 | lemma continuous_standardEtalePointToAlgHom : |
| 274 | Continuous (standardEtalePointToAlgHom P) := by |
| 275 | rw [continuous_induced_rng] |
| 276 | refine continuous_pi fun r ↦ ?_ |
| 277 | obtain ⟨q, rfl⟩ := Ideal.Quotient.mk_surjective r |
| 278 | simpa only [Function.comp_apply, standardEtalePointToAlgHom_mk] using |
| 279 | continuous_standardEtale_bivariate_evaluation P q |
| 280 | |
| 281 | /-- The pointwise topology on homomorphisms out of a standard étale algebra is the topology on |
| 282 | its explicit root data. -/ |
| 283 | def standardEtalePointHomeomorph : |
| 284 | (P.Ring →ₐ[ℂ] ℂ) ≃ₜ standardEtalePointSpace P where |
| 285 | toEquiv := standardEtalePointEquiv P |
| 286 | continuous_toFun := continuous_algHomToStandardEtalePoint P |
| 287 | continuous_invFun := continuous_standardEtalePointToAlgHom P |
| 288 | |
| 289 | /-- The standard étale equations written in ordinary complex coordinates. -/ |
| 290 | abbrev standardEtaleCoordinateSpace := |
| 291 | { vx : ((Fin n → ℂ) × ℂ) // |
| 292 | Polynomial.eval₂ (MvPolynomial.aeval (R := ℂ) vx.1).toRingHom vx.2 P.f = 0 ∧ |
| 293 | Polynomial.eval₂ (MvPolynomial.aeval (R := ℂ) vx.1).toRingHom vx.2 P.g ≠ 0 } |
| 294 | |
| 295 | /-- Replace the polynomial-ring homomorphism in standard étale root data by its tuple of variable |
| 296 | values. -/ |
| 297 | def standardEtalePointCoordinateHomeomorph : |
| 298 | standardEtalePointSpace P ≃ₜ standardEtaleCoordinateSpace P := |
| 299 | ((mvPolynomialAlgHomHomeomorph n).prodCongr (Homeomorph.refl ℂ)).subtype fun z ↦ by |
| 300 | have h := (mvPolynomialAlgHomEquiv n).left_inv z.1 |
| 301 | simpa [mvPolynomialAlgHomHomeomorph, mvPolynomialAlgHomEquiv] using |
| 302 | congrArg (fun φ : complexPolynomialRing n →ₐ[ℂ] ℂ ↦ |
| 303 | (Polynomial.eval₂ φ z.2 P.f = 0 ∧ Polynomial.eval₂ φ z.2 P.g ≠ 0)) h.symm |
| 304 | |
| 305 | /-- Complex points of a standard étale algebra as the corresponding equation locus in ordinary |
| 306 | complex coordinates. -/ |
| 307 | def standardEtaleCoordinateHomeomorph : |
| 308 | (P.Ring →ₐ[ℂ] ℂ) ≃ₜ standardEtaleCoordinateSpace P := |
| 309 | (standardEtalePointHomeomorph P).trans (standardEtalePointCoordinateHomeomorph P) |
| 310 | |
| 311 | end |
| 312 | |
| 313 | end ComplexAlgHom |
| 314 | end |
| 315 | |
| 316 | end |
| 317 | |
| 318 | end OAI.AlgebraicGeometry.ComplexPoint.StandardEtale |