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.Kaehler.Polynomial |
| 2 | import Mathlib.RingTheory.Etale.Field |
| 3 | import Mathlib.FieldTheory.PurelyInseparable.Tower |
| 4 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 5 | import Mathlib.RingTheory.TensorProduct.Free |
| 6 | |
| 7 | /-! # Differential Rank Tower -/ |
| 8 | |
| 9 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.DifferentialRankTower.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Bounds on differential rank in finite field extensions for the Openness |
| 14 | inseparability argument. -/ |
| 15 | |
| 16 | open KaehlerDifferential _root_.Module IntermediateField |
| 17 | open scoped TensorProduct IntermediateField |
| 18 | |
| 19 | /-- Differential ranks are subadditive in a tower of finite extensions. -/ |
| 20 | theorem finrank_kaehler_le_tower |
| 21 | (K E L : Type*) [Field K] [Field E] [Field L] |
| 22 | [Algebra K E] [Algebra E L] [Algebra K L] [IsScalarTower K E L] |
| 23 | [Module.Finite K E] [Module.Finite E L] : |
| 24 | Module.finrank L Ω[L⁄K] ≤ Module.finrank E Ω[E⁄K] + Module.finrank L Ω[L⁄E] := by |
| 25 | have : Module.Finite K L := Module.Finite.trans E L |
| 26 | let f := mapBaseChange K E L |
| 27 | let g := KaehlerDifferential.map K E L L |
| 28 | have hdim := LinearMap.finrank_range_add_finrank_ker g |
| 29 | have hsurj : g.range = ⊤ := LinearMap.range_eq_top.mpr (map_surjective K E L) |
| 30 | have hker : g.ker = f.range := (range_mapBaseChange K E L).symm |
| 31 | rw [hsurj, finrank_top, hker] at hdim |
| 32 | have hle := f.finrank_range_le |
| 33 | rw [Module.finrank_baseChange] at hle |
| 34 | omega |
| 35 | |
| 36 | /-- Differentials of a monogenic field extension are spanned by the |
| 37 | differential of its generator. -/ |
| 38 | theorem span_differential_powerBasis |
| 39 | (K L : Type*) [Field K] [Field L] [Algebra K L] (b : PowerBasis K L) : |
| 40 | Submodule.span L {D K L b.gen} = ⊤ := by |
| 41 | apply top_unique |
| 42 | rw [← span_range_derivation K L, Submodule.span_le] |
| 43 | rintro _ ⟨x, rfl⟩ |
| 44 | obtain ⟨q, rfl⟩ := b.exists_eq_aeval' x |
| 45 | rw [(D K L).map_aeval] |
| 46 | exact Submodule.smul_mem _ _ (Submodule.subset_span (Set.mem_singleton _)) |
| 47 | |
| 48 | /-- A monogenic extension has differential dimension at most one. -/ |
| 49 | theorem finrank_kaehler_powerBasis_le_one |
| 50 | (K L : Type*) [Field K] [Field L] [Algebra K L] (b : PowerBasis K L) : |
| 51 | Module.finrank L Ω[L⁄K] ≤ 1 := by |
| 52 | have h := finrank_span_le_card (R := L) ({D K L b.gen} : Set Ω[L⁄K]) |
| 53 | rw [span_differential_powerBasis K L b, finrank_top] at h |
| 54 | simpa using h |
| 55 | |
| 56 | /-- A nonseparable finite extension in characteristic p has inseparable |
| 57 | degree at least p. -/ |
| 58 | theorem prime_le_finInsepDegree_of_not_isSeparable |
| 59 | (K L : Type*) [Field K] [Field L] [Algebra K L] [Module.Finite K L] |
| 60 | (p : ℕ) [Fact p.Prime] [CharP K p] (h : ¬ Algebra.IsSeparable K L) : |
| 61 | p ≤ Field.finInsepDegree K L := by |
| 62 | obtain ⟨r, hr⟩ := finInsepDegree_eq_pow K L p |
| 63 | have hr0 : r ≠ 0 := by |
| 64 | intro hz |
| 65 | apply h |
| 66 | apply (isSeparable_iff_finInsepDegree_eq_one K L).mpr |
| 67 | simpa [hz] using hr |
| 68 | rw [hr] |
| 69 | exact le_trans (by simp) (Nat.pow_le_pow_right (Fact.out : p.Prime).pos (Nat.one_le_iff_ne_zero.mpr hr0)) |
| 70 | |
| 71 | /-- The differential rank bound for a simple extension, in exponential form. -/ |
| 72 | theorem pow_finrank_kaehler_le_finInsepDegree_powerBasis |
| 73 | (K L : Type*) [Field K] [Field L] [Algebra K L] |
| 74 | (b : PowerBasis K L) (p : ℕ) [Fact p.Prime] [CharP K p] : |
| 75 | p ^ Module.finrank L Ω[L⁄K] ≤ Field.finInsepDegree K L := by |
| 76 | have : Module.Finite K L := b.finite |
| 77 | by_cases hsep : Algebra.IsSeparable K L |
| 78 | · have : Algebra.FormallyEtale K L := Algebra.FormallyEtale.of_isSeparable K L |
| 79 | simp only [Module.finrank_zero_of_subsingleton, pow_zero] |
| 80 | exact Nat.one_le_iff_ne_zero.mpr (NeZero.ne _) |
| 81 | · exact (Nat.pow_le_pow_right (Fact.out : p.Prime).pos |
| 82 | (finrank_kaehler_powerBasis_le_one K L b)).trans |
| 83 | (by simpa using prime_le_finInsepDegree_of_not_isSeparable K L p hsep) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.DifferentialRankTower.Construction |