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 | import OAI.AlgebraicGeometry.ComplexPoints.OpenIntegralMap |
| 2 | import Mathlib.RingTheory.NoetherNormalization |
| 3 | import Mathlib.RingTheory.Polynomial.UniqueFactorization |
| 4 | import Mathlib.RingTheory.Polynomial.RationalRoot |
| 5 | import Mathlib.Analysis.Analytic.Polynomial |
| 6 | import Mathlib.Analysis.Analytic.Uniqueness |
| 7 | import Mathlib.Algebra.MvPolynomial.Funext |
| 8 | |
| 9 | /-! # Affine Density -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.ComplexPoints.AffineDensity.ClosednessConstruction |
| 12 | |
| 13 | /-! Closedness: analytic density of principal open subsets of affine complex varieties. -/ |
| 14 | |
| 15 | open Set _root_.Polynomial |
| 16 | open scoped _root_.Topology |
| 17 | |
| 18 | /-- A nonzero complex multivariate polynomial has analytically dense nonvanishing locus. -/ |
| 19 | theorem dense_polynomial_nonzero {n : ℕ} (p : MvPolynomial (Fin n) ℂ) (hp : p ≠ 0) : |
| 20 | Dense {x : Fin n → ℂ | MvPolynomial.eval x p ≠ 0} := by |
| 21 | intro x |
| 22 | rw [mem_closure_iff] |
| 23 | intro U hU hx |
| 24 | by_contra hn |
| 25 | have hzero : (fun y => MvPolynomial.eval y p) =ᶠ[𝓝 x] 0 := by |
| 26 | filter_upwards [hU.mem_nhds hx] with y hy |
| 27 | by_contra h |
| 28 | exact hn ⟨y, hy, h⟩ |
| 29 | have ha : AnalyticOnNhd ℂ (fun y : Fin n → ℂ => MvPolynomial.eval y p) univ := |
| 30 | AnalyticOnNhd.eval_continuousLinearMap (ContinuousLinearMap.id ℂ (Fin n → ℂ)) p |
| 31 | have he := ha.eqOn_zero_of_preconnected_of_eventuallyEq_zero |
| 32 | isPreconnected_univ (mem_univ x) hzero |
| 33 | apply hp |
| 34 | apply MvPolynomial.funext |
| 35 | intro y |
| 36 | simpa using he (mem_univ y) |
| 37 | |
| 38 | theorem dense_polynomial_character_nonzero {n : ℕ} |
| 39 | (p : MvPolynomial (Fin n) ℂ) (hp : p ≠ 0) : |
| 40 | Dense {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (MvPolynomial (Fin n) ℂ) | x p ≠ 0} := by |
| 41 | have h := (dense_polynomial_nonzero p hp).preimage |
| 42 | (ComplexPoints.Analytic.PolynomialEvaluation.polynomialPointHomeomorph (Fin n)).isOpenMap |
| 43 | change Dense {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (MvPolynomial (Fin n) ℂ) | |
| 44 | MvPolynomial.eval (ComplexPoints.Analytic.PolynomialEvaluation.polynomialPointEquiv (Fin n) x) p ≠ 0} at h |
| 45 | simpa only [ComplexPoints.Analytic.PolynomialEvaluation.polynomialPointEquiv_eval] using h |
| 46 | |
| 47 | /-- For an integral nonzero element in a domain extension, the constant |
| 48 | coefficient of its minimal polynomial is nonzero. -/ |
| 49 | theorem integral_minpoly_constant_ne_zero |
| 50 | {R B : Type*} [CommRing R] [CommRing B] [IsDomain R] [IsDomain B] |
| 51 | [Algebra R B] (b : B) (hb : IsIntegral R b) (hb0 : b ≠ 0) : |
| 52 | (minpoly R b).coeff 0 ≠ 0 := by |
| 53 | intro h |
| 54 | have hd : minpoly R b ∣ (X : R[X]) := |
| 55 | irreducible_X.dvd_symm (minpoly.irreducible hb) (X_dvd_iff.mpr h) |
| 56 | have he := Polynomial.aeval_eq_zero_of_dvd_aeval_eq_zero hd (minpoly.aeval R b) |
| 57 | exact hb0 (by simpa using he) |
| 58 | |
| 59 | /-- Every nonempty principal open in an integral finite-type complex affine |
| 60 | scheme is dense in the ordinary analytic topology. -/ |
| 61 | theorem dense_affine_principal_open |
| 62 | {B : Type*} [CommRing B] [Algebra ℂ B] [IsDomain B] [Algebra.FiniteType ℂ B] |
| 63 | (b : B) (hb0 : b ≠ 0) : Dense {x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B | x b ≠ 0} := by |
| 64 | obtain ⟨n, f, hinj, hint⟩ := exists_integral_inj_algHom_of_fg ℂ B |
| 65 | let R := MvPolynomial (Fin n) ℂ |
| 66 | let : Algebra R B := f.toAlgebra |
| 67 | let : IsScalarTower ℂ R B := IsScalarTower.of_algHom f |
| 68 | let : Algebra.IsIntegral R B := ⟨hint⟩ |
| 69 | let : Module.IsTorsionFree R B := |
| 70 | (Module.isTorsionFree_iff_algebraMap_injective).mpr hinj |
| 71 | have hb : IsIntegral R b := Algebra.IsIntegral.isIntegral b |
| 72 | let c : R := (minpoly R b).coeff 0 |
| 73 | have hc : c ≠ 0 := integral_minpoly_constant_ne_zero b hb hb0 |
| 74 | have hbase := dense_polynomial_character_nonzero c hc |
| 75 | have hopen : IsOpenMap (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap f) := OpenIntegralMap.ClosednessConstruction.normal_integral_comap_isOpenMap (R := R) (B := B) |
| 76 | apply (hbase.preimage hopen).mono |
| 77 | intro x hx |
| 78 | change Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap f x c ≠ 0 at hx |
| 79 | intro hxb |
| 80 | apply hx |
| 81 | have h := congrArg x.toRingHom (minpoly.aeval R b) |
| 82 | change x.toRingHom ((minpoly R b).eval₂ f.toRingHom b) = x.toRingHom 0 at h |
| 83 | rw [Polynomial.hom_eval₂] at h |
| 84 | change x.toRingHom b = 0 at hxb |
| 85 | rw [hxb, Polynomial.eval₂_at_zero, x.toRingHom.map_zero] at h |
| 86 | exact h |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.ComplexPoints.AffineDensity.ClosednessConstruction |