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.RingHoms |
| 2 | import Mathlib.Algebra.Module.LinearMap.Defs |
| 3 | |
| 4 | /-! # Additive Linearity -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AdditiveLinearity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An additive map from a p-adic integer module to p-adic integers is |
| 11 | automatically linear, by its values modulo every prime power. -/ |
| 12 | |
| 13 | variable (ℓ : ℕ) [Fact ℓ.Prime] {M : Type*} [AddCommGroup M] [Module ℤ_[ℓ] M] |
| 14 | |
| 15 | theorem map_smul (f : M →+ ℤ_[ℓ]) (a : ℤ_[ℓ]) (x : M) : f (a • x) = a * f x := by |
| 16 | apply PadicInt.ext_of_toZModPow.mp |
| 17 | intro n |
| 18 | let m := (PadicInt.toZModPow n a).val |
| 19 | have hm : (m : ZMod (ℓ ^ n)) = PadicInt.toZModPow n a := ZMod.natCast_zmod_val _ |
| 20 | have hdvd : (ℓ : ℤ_[ℓ]) ^ n ∣ a - (m : ℤ_[ℓ]) := by |
| 21 | apply Ideal.mem_span_singleton.mp |
| 22 | rw [← PadicInt.ker_toZModPow, RingHom.mem_ker, map_sub, map_natCast, hm, sub_self] |
| 23 | obtain ⟨b, hb⟩ := hdvd |
| 24 | have ha : a = (m : ℤ_[ℓ]) + (ℓ : ℤ_[ℓ]) ^ n * b := by rw [← hb]; abel |
| 25 | have hp (y : M) : PadicInt.toZModPow n (f ((ℓ : ℤ_[ℓ]) ^ n • y)) = 0 := by |
| 26 | rw [← Nat.cast_pow, Nat.cast_smul_eq_nsmul, map_nsmul, map_nsmul, nsmul_eq_mul, |
| 27 | ZMod.natCast_self, zero_mul] |
| 28 | calc |
| 29 | PadicInt.toZModPow n (f (a • x)) = (m : ZMod (ℓ ^ n)) * PadicInt.toZModPow n (f x) := by |
| 30 | rw [ha, add_smul, map_add, map_add, mul_smul, hp, add_zero, |
| 31 | Nat.cast_smul_eq_nsmul, map_nsmul, map_nsmul, nsmul_eq_mul] |
| 32 | _ = PadicInt.toZModPow n (a * f x) := by rw [hm, map_mul] |
| 33 | |
| 34 | def linearMap (f : M →+ ℤ_[ℓ]) : M →ₗ[ℤ_[ℓ]] ℤ_[ℓ] := |
| 35 | { f with map_smul' := map_smul ℓ f } |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AdditiveLinearity |