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