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 Mathlib.RingTheory.NoetherNormalization |
| 2 | import Mathlib.RingTheory.Spectrum.Maximal.Defs |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 4 | import Mathlib.Algebra.MvPolynomial.Equiv |
| 5 | import Lean.Util.CollectAxioms |
| 6 | |
| 7 | /-! # Countable Algebra -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.CountableAlgebra |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | The algebraic dimension step in descent from a countable parameter set. |
| 15 | Noether normalization and lying over show that a finite-type algebra over |
| 16 | an uncountable field with only countably many maximal ideals is finite |
| 17 | over that field. |
| 18 | -/ |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R A : Type u} [CommRing R] [CommRing A] |
| 23 | |
| 24 | def integralMaximalComap (f : R →+* A) (hf : f.IsIntegral) : |
| 25 | MaximalSpectrum A → MaximalSpectrum R := fun p ↦ |
| 26 | ⟨p.asIdeal.comap f, Ideal.isMaximal_comap_of_isIntegral_of_isMaximal f hf p.asIdeal⟩ |
| 27 | |
| 28 | theorem integralMaximalComap_surjective (f : R →+* A) (hf : f.IsIntegral) |
| 29 | (hinj : Function.Injective f) : Function.Surjective (integralMaximalComap f hf) := by |
| 30 | let : Algebra R A := f.toAlgebra |
| 31 | let : Algebra.IsIntegral R A := ⟨hf⟩ |
| 32 | intro p |
| 33 | obtain ⟨q, hq, hqp⟩ := Ideal.exists_ideal_over_maximal_of_isIntegral (S := A) p.asIdeal (by |
| 34 | change RingHom.ker f ≤ p.asIdeal |
| 35 | rw [(RingHom.injective_iff_ker_eq_bot f).mp hinj] |
| 36 | exact bot_le) |
| 37 | exact ⟨⟨q, hq⟩, MaximalSpectrum.ext hqp⟩ |
| 38 | |
| 39 | variable (k : Type u) [Field k] |
| 40 | |
| 41 | /-- Distinct scalars give distinct maximal ideals in any nontrivial |
| 42 | polynomial variable. -/ |
| 43 | def diagonalMaximalIdeal (n : ℕ) (c : k) : MaximalSpectrum (MvPolynomial (Fin n) k) := |
| 44 | ⟨RingHom.ker (MvPolynomial.aeval (fun _ : Fin n ↦ c)).toRingHom, |
| 45 | Ideal.comap_isMaximal_of_surjective _ (by |
| 46 | intro a |
| 47 | exact ⟨MvPolynomial.C a, by simp⟩)⟩ |
| 48 | |
| 49 | theorem diagonalMaximalIdeal_injective (n : ℕ) (hn : 0 < n) : |
| 50 | Function.Injective (diagonalMaximalIdeal k n) := by |
| 51 | intro c d h |
| 52 | have heq := congrArg MaximalSpectrum.asIdeal h |
| 53 | have hm : MvPolynomial.X (⟨0, hn⟩ : Fin n) - MvPolynomial.C c ∈ |
| 54 | (diagonalMaximalIdeal k n c).asIdeal := by |
| 55 | change (MvPolynomial.aeval (fun _ : Fin n ↦ c)) _ = 0 |
| 56 | simp |
| 57 | rw [heq] at hm |
| 58 | change (MvPolynomial.aeval (fun _ : Fin n ↦ d)) _ = 0 at hm |
| 59 | have hd : d - c = 0 := by simpa using hm |
| 60 | exact (sub_eq_zero.mp hd).symm |
| 61 | |
| 62 | /-- Countably many maximal ideals force dimension zero over an |
| 63 | uncountable field. Finiteness over the base is the actual conclusion. -/ |
| 64 | theorem finite_of_countable_maximalSpectrum |
| 65 | [Uncountable k] (A : Type u) [CommRing A] [Nontrivial A] [Algebra k A] |
| 66 | [Algebra.FiniteType k A] [Countable (MaximalSpectrum A)] : Module.Finite k A := by |
| 67 | obtain ⟨n, f, hinj, hfinite⟩ := exists_finite_inj_algHom_of_fg k A |
| 68 | have hc : Countable (MaximalSpectrum (MvPolynomial (Fin n) k)) := |
| 69 | (integralMaximalComap_surjective f.toRingHom (RingHom.Finite.to_isIntegral hfinite) hinj).countable |
| 70 | have hn : n = 0 := by |
| 71 | by_contra h |
| 72 | exact not_countable (α := k) |
| 73 | (diagonalMaximalIdeal_injective k n (Nat.pos_of_ne_zero h)).countable |
| 74 | subst n |
| 75 | let : Algebra (MvPolynomial (Fin 0) k) A := f.toRingHom.toAlgebra |
| 76 | let : IsScalarTower k (MvPolynomial (Fin 0) k) A := |
| 77 | IsScalarTower.of_algebraMap_eq fun x ↦ (f.commutes x).symm |
| 78 | have : Module.Finite (MvPolynomial (Fin 0) k) A := hfinite |
| 79 | have : Module.Finite k (MvPolynomial (Fin 0) k) := |
| 80 | Module.Finite.of_surjective (MvPolynomial.isEmptyAlgEquiv k (Fin 0)).symm.toLinearMap |
| 81 | (MvPolynomial.isEmptyAlgEquiv k (Fin 0)).symm.surjective |
| 82 | exact Module.Finite.trans (MvPolynomial (Fin 0) k) A |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.CountableAlgebra |