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.GeometricComparison.WittFrobenius |
| 2 | import Mathlib.NumberTheory.Padics.RingHoms |
| 3 | |
| 4 | /-! # Residue -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Residue.PadicBase |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatibility of the actual Witt embedding with the p-adic residue map. -/ |
| 11 | |
| 12 | variable (q : ℕ) [Fact q.Prime] |
| 13 | |
| 14 | theorem ringHom_eq_toZMod (f : ℤ_[q] →+* ZMod q) : f = PadicInt.toZMod := by |
| 15 | apply RingHom.ext |
| 16 | intro x |
| 17 | have hx := PadicInt.toZMod_spec x |
| 18 | rw [PadicInt.maximalIdeal_eq_span_p, Ideal.mem_span_singleton] at hx |
| 19 | obtain ⟨a, ha⟩ := hx |
| 20 | have he := congrArg f ha |
| 21 | have hm : f (ZMod.cast (PadicInt.toZMod x) : ℤ_[q]) = PadicInt.toZMod x := by |
| 22 | rw [ZMod.cast_eq_val, map_natCast, ZMod.natCast_zmod_val] |
| 23 | simp only [map_sub, map_mul, map_natCast, ZMod.natCast_self, zero_mul, hm] at he |
| 24 | exact sub_eq_zero.mp he |
| 25 | |
| 26 | theorem residueField_residue : |
| 27 | (PadicInt.residueField (p := q)).toRingHom.comp (IsLocalRing.residue ℤ_[q]) = |
| 28 | PadicInt.toZMod := |
| 29 | ringHom_eq_toZMod q _ |
| 30 | |
| 31 | theorem wittEquiv_residue : |
| 32 | (PadicInt.toZMod : ℤ_[q] →+* ZMod q).comp (WittVector.equiv q).toRingHom = |
| 33 | WittVector.constantCoeff := by |
| 34 | have h := ringHom_eq_toZMod q |
| 35 | ((WittVector.constantCoeff : Crystalline.CoefficientAdapter.Witt q →+* ZMod q).comp |
| 36 | (WittVector.equiv q).symm.toRingHom) |
| 37 | apply RingHom.ext |
| 38 | intro w |
| 39 | have hw := DFunLike.congr_fun h ((WittVector.equiv q) w) |
| 40 | change WittVector.constantCoeff ((WittVector.equiv q).symm ((WittVector.equiv q) w)) = |
| 41 | PadicInt.toZMod ((WittVector.equiv q) w) at hw |
| 42 | rw [RingEquiv.symm_apply_apply] at hw |
| 43 | exact hw.symm |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Residue.PadicBase |