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.IntegralComparison.Witt.Crystalline |
| 2 | import Mathlib.RingTheory.Flat.TorsionFree |
| 3 | import Mathlib.RingTheory.Flat.Stability |
| 4 | |
| 5 | /-! # Coefficient Flatness -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.CoefficientFlatness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # IntegralComparison: flatness of the actual lifted Witt coefficients |
| 13 | |
| 14 | Witt vectors over a perfect field have characteristic zero and no |
| 15 | torsion over the integers. Flatness over the integers, and over the |
| 16 | lifted integer ring used at the IntegralComparison coefficient universe, follows. |
| 17 | -/ |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | abbrev Integers := ULift.{u + 1} ℤ |
| 22 | |
| 23 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 24 | |
| 25 | abbrev Coeff := ULift.{u + 1} (WittVector p k) |
| 26 | |
| 27 | theorem witt_flat : Module.Flat ℤ (WittVector p k) := by infer_instance |
| 28 | |
| 29 | instance coefficientAlgebra : Algebra Integers.{u} (Coeff p k) := |
| 30 | ((ULift.ringEquiv : Coeff p k ≃+* WittVector p k).symm.toRingHom.comp |
| 31 | ((Int.castRingHom (WittVector p k)).comp |
| 32 | (ULift.ringEquiv : Integers.{u} ≃+* ℤ).toRingHom)).toAlgebra |
| 33 | |
| 34 | theorem lifted_flat : Module.Flat Integers.{u} (Coeff p k) := by |
| 35 | rw [Module.Flat.ulift_left_iff, Module.Flat.ulift_right_iff] |
| 36 | exact witt_flat p k |
| 37 | |
| 38 | theorem coefficientMap_flat : (algebraMap Integers.{u} (Coeff p k)).Flat := by |
| 39 | have hi : (Int.castRingHom (WittVector p k)).Flat := |
| 40 | RingHom.flat_algebraMap_iff.mpr (witt_flat p k) |
| 41 | exact ((RingHom.Flat.of_bijective (ULift.ringEquiv : Integers.{u} ≃+* ℤ).bijective).comp hi).comp |
| 42 | (RingHom.Flat.of_bijective (ULift.ringEquiv : Coeff p k ≃+* WittVector p k).symm.bijective) |
| 43 | |
| 44 | theorem coefficient_algebra_flat : |
| 45 | letI : Module Integers.{u} (Coeff p k) := (coefficientAlgebra p k).toModule |
| 46 | Module.Flat Integers.{u} (Coeff p k) := by |
| 47 | let : Module Integers.{u} (Coeff p k) := (coefficientAlgebra p k).toModule |
| 48 | exact RingHom.flat_algebraMap_iff.mp (coefficientMap_flat p k) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Witt.CoefficientFlatness |