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.NumberTheory.Padics.PadicIntegers |
| 2 | import Mathlib.Algebra.Module.Torsion.Free |
| 3 | |
| 4 | /-! # Prime Torsion -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.PrimeTorsion.PrimeTorsionCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Over the p-adic integers, absence of p-torsion implies torsion-freeness. -/ |
| 11 | |
| 12 | theorem torsionFree (p : ℕ) [Fact p.Prime] {M : Type*} [AddCommGroup M] [Module ℤ_[p] M] |
| 13 | (hp : ∀ x : M, (p : ℤ_[p]) • x = 0 → x = 0) : Module.IsTorsionFree ℤ_[p] M := by |
| 14 | have hpow : ∀ (n : ℕ) (x : M), (p : ℤ_[p]) ^ n • x = 0 → x = 0 := by |
| 15 | intro n |
| 16 | induction n with |
| 17 | | zero => intro x hx; simpa only [pow_zero, one_smul] using hx |
| 18 | | succ n ih => |
| 19 | intro x hx |
| 20 | apply ih x |
| 21 | apply hp |
| 22 | simpa only [pow_succ', mul_smul] using hx |
| 23 | apply Module.IsTorsionFree.of_smul_eq_zero |
| 24 | intro r x hx |
| 25 | by_cases hr : r = 0 |
| 26 | · exact Or.inl hr |
| 27 | right |
| 28 | rw [PadicInt.unitCoeff_spec hr, mul_smul] at hx |
| 29 | exact hpow r.valuation x ((PadicInt.unitCoeff hr).isUnit.smul_eq_zero.mp hx) |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.NumberTheory.PadicHodge.GeometricComparison.PrimeTorsion.PrimeTorsionCriterion |