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.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFiniteness |
| 2 | |
| 3 | /-! # Witt Unramified -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.WittUnramified |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Unramifiedness of the finite Witt integer coefficient rings. -/ |
| 10 | |
| 11 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.WittFinite OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFiniteness IsLocalRing |
| 12 | variable (p : ℕ) [Fact p.Prime] |
| 13 | variable (k : Type*) [Field k] [Fintype k] [CharP k p] |
| 14 | |
| 15 | theorem witt_maximalIdeal : maximalIdeal (WittVector p k) = Ideal.span {(p : WittVector p k)} := |
| 16 | (WittVector.irreducible p).maximalIdeal_eq |
| 17 | |
| 18 | theorem witt_map_maximalIdeal : |
| 19 | (maximalIdeal ℤ_[p]).map (algebraMap ℤ_[p] (WittVector p k)) = maximalIdeal (WittVector p k) := by |
| 20 | rw [PadicInt.maximalIdeal_eq_span_p, Ideal.map_span, Set.image_singleton, map_natCast, witt_maximalIdeal] |
| 21 | |
| 22 | instance wittLocalHom : IsLocalHom (algebraMap ℤ_[p] (WittVector p k)) := |
| 23 | ((local_hom_TFAE (algebraMap ℤ_[p] (WittVector p k))).out 3 1 rfl rfl).mp |
| 24 | (le_of_eq (witt_map_maximalIdeal p k)) |
| 25 | |
| 26 | instance padicResidueFinite : Finite (ResidueField ℤ_[p]) := |
| 27 | Finite.of_injective (PadicInt.residueField (p := p)) (PadicInt.residueField (p := p)).injective |
| 28 | |
| 29 | def wittResidueEquiv : ResidueField (WittVector p k) ≃+* k := |
| 30 | (Ideal.quotEquivOfEq (witt_maximalIdeal p k)).trans WittVector.quotientPEquiv |
| 31 | |
| 32 | instance wittResidueFinite : Finite (ResidueField (WittVector p k)) := |
| 33 | Finite.of_injective (wittResidueEquiv p k) (wittResidueEquiv p k).injective |
| 34 | |
| 35 | instance wittTorsionFree : Module.IsTorsionFree ℤ_[p] (WittVector p k) := |
| 36 | Module.isTorsionFree_iff_algebraMap_injective.mpr (CoefficientFiniteness.padicToWitt_injective p k) |
| 37 | |
| 38 | instance wittFree : Module.Free ℤ_[p] (WittVector p k) := inferInstance |
| 39 | |
| 40 | instance wittFormallyUnramified : Algebra.FormallyUnramified ℤ_[p] (WittVector p k) := |
| 41 | Algebra.FormallyUnramified.of_map_maximalIdeal (witt_map_maximalIdeal p k) |
| 42 | |
| 43 | instance wittEtale : Algebra.Etale ℤ_[p] (WittVector p k) := by |
| 44 | let : Algebra.FinitePresentation ℤ_[p] (WittVector p k) := |
| 45 | Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 46 | exact Algebra.Etale.of_formallyUnramified_of_flat |
| 47 | |
| 48 | theorem wittResidue_finrank : |
| 49 | Module.finrank (ResidueField ℤ_[p]) (ResidueField (WittVector p k)) = |
| 50 | (UnramifiedCoefficients.residueDegree (p := p) (k := k) : ℕ) := by |
| 51 | apply Nat.pow_right_injective (Fact.out : p.Prime).two_le |
| 52 | have h := Module.natCard_eq_pow_finrank (K := ResidueField ℤ_[p]) |
| 53 | (V := ResidueField (WittVector p k)) |
| 54 | have hbase : Nat.card (ResidueField ℤ_[p]) = p := by |
| 55 | rw [Nat.card_congr (PadicInt.residueField (p := p)).toEquiv, Nat.card_eq_fintype_card, ZMod.card] |
| 56 | have htarget : Nat.card (ResidueField (WittVector p k)) = Fintype.card k := by |
| 57 | rw [Nat.card_congr (wittResidueEquiv p k).toEquiv, Nat.card_eq_fintype_card] |
| 58 | rw [hbase, htarget, UnramifiedCoefficients.residueDegree_card] at h |
| 59 | exact h.symm |
| 60 | |
| 61 | theorem witt_finrank : Module.finrank ℤ_[p] (WittVector p k) = |
| 62 | (UnramifiedCoefficients.residueDegree (p := p) (k := k) : ℕ) := by |
| 63 | rw [IsLocalRing.finrank_eq_finrank_residueField, wittResidue_finrank] |
| 64 | |
| 65 | theorem coefficientField_finrank : |
| 66 | Module.finrank ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) = |
| 67 | (UnramifiedCoefficients.residueDegree (p := p) (k := k) : ℕ) := by |
| 68 | rw [IsFractionRing.finrank_eq ℤ_[p] ℚ_[p] (WittVector p k) |
| 69 | (UnramifiedCoefficients.CoefficientField (p := p) (k := k)), witt_finrank] |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.WittUnramified |