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.Etale.Kaehler |
| 2 | import Mathlib.RingTheory.Etale.Field |
| 3 | import Mathlib.RingTheory.Kaehler.Polynomial |
| 4 | import Mathlib.FieldTheory.SeparablyGenerated |
| 5 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 6 | import Mathlib.LinearAlgebra.Dimension.StrongRankCondition |
| 7 | import Mathlib.LinearAlgebra.Dimension.Finite |
| 8 | import OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceEtale |
| 9 | |
| 10 | /-! # Differential Transcendence Degree -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.DifferentialTranscendenceDegree |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! |
| 17 | # Differential dimension and transcendence bases |
| 18 | |
| 19 | This module constructs actual bases of Kähler differential modules by base |
| 20 | change from polynomial rings. The field-theoretic hypotheses are used to |
| 21 | prove formal étaleness, rather than assuming a dimension formula. |
| 22 | -/ |
| 23 | |
| 24 | set_option autoImplicit false |
| 25 | set_option warningAsError true |
| 26 | |
| 27 | open _root_.Module |
| 28 | open scoped TensorProduct |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | section EtalePolynomial |
| 33 | |
| 34 | variable (k K ι : Type u) [Field k] [Field K] [Algebra k K] |
| 35 | variable [Algebra (MvPolynomial ι k) K] [IsScalarTower k (MvPolynomial ι k) K] |
| 36 | variable [Algebra.FormallyEtale (MvPolynomial ι k) K] |
| 37 | |
| 38 | /-- A formally étale algebra over a polynomial ring has the base-changed |
| 39 | coordinate differentials as an actual basis of its differentials over k. -/ |
| 40 | def kaehlerPolynomialEtaleBasis : Basis ι K Ω[K⁄k] := |
| 41 | ((KaehlerDifferential.mvPolynomialBasis k ι).baseChange K).map |
| 42 | (KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale k (MvPolynomial ι k) K) |
| 43 | |
| 44 | /-- The dimension here follows from a constructed basis, not an assumed |
| 45 | geometric dimension or a surrogate differential object. -/ |
| 46 | theorem kaehlerPolynomialEtale_rank : Module.rank K Ω[K⁄k] = Cardinal.mk ι := |
| 47 | (kaehlerPolynomialEtaleBasis k K ι).mk_eq_rank''.symm |
| 48 | |
| 49 | /-- The basis vectors are the actual universal differentials of the images |
| 50 | of the polynomial coordinates. -/ |
| 51 | theorem kaehlerPolynomialEtaleBasis_apply (i : ι) : |
| 52 | kaehlerPolynomialEtaleBasis k K ι i = |
| 53 | KaehlerDifferential.D k K (algebraMap (MvPolynomial ι k) K (MvPolynomial.X i)) := by |
| 54 | simp [kaehlerPolynomialEtaleBasis, |
| 55 | KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale_apply, |
| 56 | KaehlerDifferential.mapBaseChange_tmul, KaehlerDifferential.map_D] |
| 57 | |
| 58 | /-- For an actual transcendence basis, the constructed differential basis |
| 59 | has cardinality equal to the standard transcendence degree. -/ |
| 60 | theorem kaehler_rank_eq_trdeg_of_etale_polynomial {v : ι → K} |
| 61 | (hv : IsTranscendenceBasis k v) : |
| 62 | Module.rank K Ω[K⁄k] = Algebra.trdeg k K := |
| 63 | (kaehlerPolynomialEtale_rank k K ι).trans hv.cardinalMk_eq_trdeg |
| 64 | |
| 65 | end EtalePolynomial |
| 66 | |
| 67 | section FinitelyGeneratedFields |
| 68 | |
| 69 | variable (k K : Type u) [Field k] [Field K] [Algebra k K] |
| 70 | variable [PerfectField k] [Algebra.EssFiniteType k K] |
| 71 | |
| 72 | /-- A finitely generated extension of a perfect field has a finite |
| 73 | transcendence basis whose cardinality also indexes a constructed basis of |
| 74 | its actual Kähler differential module. -/ |
| 75 | theorem exists_transcendenceBasis_kaehlerBasis : |
| 76 | ∃ s : Finset K, IsTranscendenceBasis k ((↑) : s → K) ∧ |
| 77 | Nonempty (Basis s K Ω[K⁄k]) := by |
| 78 | obtain ⟨s, hs, hsep⟩ := exists_isTranscendenceBasis_and_isSeparable_of_perfectField k K |
| 79 | have hset : Set.range ((↑) : s → K) = (s : Set K) := by |
| 80 | ext x |
| 81 | constructor |
| 82 | · rintro ⟨y, rfl⟩ |
| 83 | exact y.property |
| 84 | · intro hx |
| 85 | exact ⟨⟨x, hx⟩, rfl⟩ |
| 86 | let : Algebra.IsSeparable (IntermediateField.adjoin k (Set.range ((↑) : s → K))) K := by |
| 87 | rw [hset] |
| 88 | exact hsep |
| 89 | let : Algebra (MvPolynomial s k) K := TranscendenceEtale.polynomialEvaluationAlgebra k ((↑) : s → K) |
| 90 | let : IsScalarTower k (MvPolynomial s k) K := |
| 91 | TranscendenceEtale.polynomialEvaluation_isScalarTower k ((↑) : s → K) |
| 92 | let : Algebra.FormallyEtale (MvPolynomial s k) K := |
| 93 | TranscendenceEtale.formallyEtale_polynomialEvaluation hs.1 |
| 94 | exact ⟨s, hs, ⟨kaehlerPolynomialEtaleBasis k K s⟩⟩ |
| 95 | |
| 96 | /-- Differential rank equals the standard transcendence degree for a |
| 97 | finitely generated extension of a perfect field. -/ |
| 98 | theorem kaehler_rank_eq_trdeg : Module.rank K Ω[K⁄k] = Algebra.trdeg k K := by |
| 99 | obtain ⟨s, hs, ⟨b⟩⟩ := exists_transcendenceBasis_kaehlerBasis k K |
| 100 | exact b.mk_eq_rank''.symm.trans hs.cardinalMk_eq_trdeg |
| 101 | |
| 102 | /-- The differential module in this theorem is finite-dimensional. -/ |
| 103 | theorem kaehler_finite_of_essFiniteType : Module.Finite K Ω[K⁄k] := by |
| 104 | obtain ⟨s, _, ⟨b⟩⟩ := exists_transcendenceBasis_kaehlerBasis k K |
| 105 | exact Module.Finite.of_basis b |
| 106 | |
| 107 | /-- The same dimension identity in natural-number form. -/ |
| 108 | theorem kaehler_finrank_eq_trdeg : |
| 109 | Module.finrank K Ω[K⁄k] = (Algebra.trdeg k K).toNat := by |
| 110 | exact congrArg Cardinal.toNat (kaehler_rank_eq_trdeg k K) |
| 111 | |
| 112 | end FinitelyGeneratedFields |
| 113 | |
| 114 | variable (k K : Type u) [Field k] [CharZero k] [Field K] [Algebra k K] |
| 115 | variable [Algebra.EssFiniteType k K] |
| 116 | |
| 117 | /-- In characteristic zero, a finitely generated field extension has |
| 118 | differential dimension equal to its transcendence degree, with no separate |
| 119 | separability or dimension assumption. -/ |
| 120 | theorem kaehler_rank_eq_trdeg_charZero : |
| 121 | Module.rank K Ω[K⁄k] = Algebra.trdeg k K := |
| 122 | kaehler_rank_eq_trdeg k K |
| 123 | |
| 124 | /-- Natural-number differential dimension in characteristic zero. -/ |
| 125 | theorem kaehler_finrank_eq_trdeg_charZero : |
| 126 | Module.finrank K Ω[K⁄k] = (Algebra.trdeg k K).toNat := |
| 127 | kaehler_finrank_eq_trdeg k K |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.Foundations.Scheme.DifferentialTranscendenceDegree |