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.WittVector.Complete |
| 2 | import Mathlib.Data.ZMod.Basic |
| 3 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius |
| 4 | |
| 5 | /-! # Witt Prime -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.WittPrime.WittPrimeZeroFrobenius |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Every map from prime-field Witt vectors to a ring killed by p has |
| 12 | Frobenius-fixed image, including when the target ring is zero. -/ |
| 13 | |
| 14 | universe u |
| 15 | variable (p : ℕ) [Fact p.Prime] {A : Type u} [CommRing A] |
| 16 | (hp : (p : A) = 0) (f : WittVector p (ZMod p) →+* A) |
| 17 | |
| 18 | include hp in |
| 19 | theorem fixed (w : WittVector p (ZMod p)) : (f w) ^ p = f w := by |
| 20 | have hk : RingHom.ker (WittVector.constantCoeff : WittVector p (ZMod p) →+* ZMod p) ≤ RingHom.ker f := by |
| 21 | rw [WittVector.ker_constantCoeff, Ideal.span_singleton_le_iff_mem] |
| 22 | change f p = 0 |
| 23 | rw [map_natCast, hp] |
| 24 | have hw : w ^ p - w ∈ RingHom.ker |
| 25 | (WittVector.constantCoeff : WittVector p (ZMod p) →+* ZMod p) := by |
| 26 | change WittVector.constantCoeff (w ^ p - w) = 0 |
| 27 | rw [map_sub, map_pow, ZMod.pow_card, sub_self] |
| 28 | have h := hk hw |
| 29 | change f (w ^ p - w) = 0 at h |
| 30 | simpa only [map_sub, map_pow, sub_eq_zero] using h |
| 31 | |
| 32 | theorem comp : (AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.powerRingHom p Fact.out A hp).comp f = f := |
| 33 | RingHom.ext (fixed p hp f) |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.NumberTheory.PadicHodge.GeometricComparison.WittPrime.WittPrimeZeroFrobenius |