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.ArithmeticGeometry.OrdinaryLocus.Openness.DifferentialRankTower |
| 2 | import Mathlib.RingTheory.Etale.Kaehler |
| 3 | |
| 4 | /-! # Inseparable Degree Bound -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.InseparableDegreeBound.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Quantitative inseparability bounds for the geometric p-torsion argument. -/ |
| 13 | |
| 14 | open KaehlerDifferential _root_.Module IntermediateField |
| 15 | open scoped TensorProduct IntermediateField |
| 16 | |
| 17 | /-- In a finite extension of characteristic p, each independent differential |
| 18 | requires a factor of p in the inseparable degree. -/ |
| 19 | theorem pow_finrank_kaehler_le_finInsepDegree |
| 20 | (K L : Type*) [Field K] [Field L] [Algebra K L] [Module.Finite K L] |
| 21 | (p : ℕ) [Fact p.Prime] [CharP K p] : |
| 22 | p ^ Module.finrank L Ω[L⁄K] ≤ Field.finInsepDegree K L := by |
| 23 | have htop : p ^ Module.finrank (⊤ : IntermediateField K L) Ω[(⊤ : IntermediateField K L)⁄K] ≤ |
| 24 | Field.finInsepDegree K (⊤ : IntermediateField K L) := by |
| 25 | apply induction_on_adjoin |
| 26 | (fun E : IntermediateField K L => |
| 27 | p ^ Module.finrank E Ω[E⁄K] ≤ Field.finInsepDegree K E) |
| 28 | · have : Algebra.FormallyEtale K (⊥ : IntermediateField K L) := |
| 29 | Algebra.FormallyEtale.of_equiv (botEquiv K L).symm |
| 30 | simp only [Module.finrank_zero_of_subsingleton, pow_zero, finInsepDegree_bot, le_refl] |
| 31 | · intro E x hE |
| 32 | let M := E⟮x⟯ |
| 33 | let b : PowerBasis E M := adjoin.powerBasis (IsIntegral.of_finite E x) |
| 34 | have : Module.Finite E M := b.finite |
| 35 | have : CharP E p := charP_of_injective_algebraMap (algebraMap K E).injective p |
| 36 | have hsimple := DifferentialRankTower.Construction.pow_finrank_kaehler_le_finInsepDegree_powerBasis E M b p |
| 37 | have htower := Nat.pow_le_pow_right (Fact.out : p.Prime).pos |
| 38 | (DifferentialRankTower.Construction.finrank_kaehler_le_tower K E M) |
| 39 | rw [pow_add] at htower |
| 40 | exact htower.trans ((Nat.mul_le_mul hE hsimple).trans_eq |
| 41 | (Field.finInsepDegree_mul_finInsepDegree_of_isAlgebraic K E M)) |
| 42 | let E := (⊤ : IntermediateField K L) |
| 43 | let e : E ≃ₐ[E] L := AlgEquiv.ofBijective (Algebra.ofId E L) |
| 44 | ⟨Subtype.val_injective, fun x => ⟨⟨x, by trivial⟩, rfl⟩⟩ |
| 45 | have : Algebra.FormallyEtale E L := Algebra.FormallyEtale.of_equiv e |
| 46 | have hdim : Module.finrank L Ω[L⁄K] = Module.finrank E Ω[E⁄K] := by |
| 47 | rw [← (tensorKaehlerEquivOfFormallyEtale K E L).finrank_eq, Module.finrank_baseChange] |
| 48 | rw [hdim] |
| 49 | exact htop.trans_eq (finInsepDegree_top (F := K) K L) |
| 50 | |
| 51 | /-- If the total degree is p^(2g) and the differential dimension is g, |
| 52 | the separable degree is at most p^g. -/ |
| 53 | theorem finSepDegree_le_pow_of_finrank_kaehler |
| 54 | (K L : Type*) [Field K] [Field L] [Algebra K L] [Module.Finite K L] |
| 55 | (p g : ℕ) [Fact p.Prime] [CharP K p] |
| 56 | (hdegree : Module.finrank K L = p ^ (2 * g)) |
| 57 | (hdiff : Module.finrank L Ω[L⁄K] = g) : |
| 58 | Field.finSepDegree K L ≤ p ^ g := by |
| 59 | have h := pow_finrank_kaehler_le_finInsepDegree K L p |
| 60 | rw [hdiff] at h |
| 61 | have hmul := Nat.mul_le_mul_left (Field.finSepDegree K L) h |
| 62 | rw [Field.finSepDegree_mul_finInsepDegree, hdegree, two_mul, pow_add] at hmul |
| 63 | exact Nat.le_of_mul_le_mul_right hmul (pow_pos (Fact.out : p.Prime).pos g) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | /-! Zero differentials force a large inseparable part of a finite map. -/ |
| 68 | |
| 69 | open KaehlerDifferential |
| 70 | open scoped TensorProduct |
| 71 | |
| 72 | /-- If the differential of K → L over k vanishes, changing the base of |
| 73 | differentials from k to K leaves the differential module unchanged. -/ |
| 74 | def kaehlerEquivOfMapZero |
| 75 | (k K L : Type*) [CommRing k] [CommRing K] [CommRing L] |
| 76 | [Algebra k K] [Algebra K L] [Algebra k L] [IsScalarTower k K L] |
| 77 | (hzero : KaehlerDifferential.map k k K L = 0) : |
| 78 | Ω[L⁄k] ≃ₗ[L] Ω[L⁄K] := by |
| 79 | apply LinearEquiv.ofBijective (KaehlerDifferential.map k K L L) |
| 80 | refine ⟨?_, map_surjective k K L⟩ |
| 81 | rw [← LinearMap.ker_eq_bot, ← range_mapBaseChange k K L] |
| 82 | have hbase : mapBaseChange k K L = 0 := by |
| 83 | apply LinearMap.ext |
| 84 | intro z |
| 85 | induction z with |
| 86 | | tmul r d => simp only [mapBaseChange_tmul, hzero, LinearMap.zero_apply, smul_zero] |
| 87 | | add z w hz hw => simp only [map_add, hz, hw, LinearMap.zero_apply, add_zero] |
| 88 | rw [hbase, LinearMap.range_zero] |
| 89 | |
| 90 | /-- The inseparability estimate in the form used for multiplication by p |
| 91 | on the function field of an abelian variety. -/ |
| 92 | theorem finSepDegree_le_pow_of_zero_differential |
| 93 | (k K L : Type*) [CommRing k] [Field K] [Field L] |
| 94 | [Algebra k K] [Algebra K L] [Algebra k L] [IsScalarTower k K L] |
| 95 | [Module.Finite K L] (p g : ℕ) [Fact p.Prime] [CharP K p] |
| 96 | (hzero : KaehlerDifferential.map k k K L = 0) |
| 97 | (hdegree : Module.finrank K L = p ^ (2 * g)) |
| 98 | (hdiff : Module.finrank L Ω[L⁄k] = g) : |
| 99 | Field.finSepDegree K L ≤ p ^ g := by |
| 100 | apply finSepDegree_le_pow_of_finrank_kaehler K L p g hdegree |
| 101 | exact (kaehlerEquivOfMapZero k K L hzero).finrank_eq.symm.trans hdiff |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.InseparableDegreeBound.Construction |