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.PeriodInvariants.PeriodRing |
| 2 | |
| 3 | /-! # Principal Kernel -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.PrincipalKernel |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Lifting a principal kernel from reduction modulo p |
| 11 | |
| 12 | The completion argument is isolated from the concrete tilt calculation. |
| 13 | Its hypotheses concern only a ring map, a regular image of p, and generation |
| 14 | of its kernel modulo p. |
| 15 | -/ |
| 16 | |
| 17 | section Hausdorff |
| 18 | |
| 19 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 20 | |
| 21 | theorem submodule_isHausdorff (I : Ideal R) (N : Submodule R M) [IsHausdorff I M] : |
| 22 | IsHausdorff I N := by |
| 23 | constructor |
| 24 | intro x hx |
| 25 | apply Subtype.val_injective |
| 26 | apply IsHausdorff.haus' (I := I) |
| 27 | intro n |
| 28 | rw [SModEq.sub_mem, sub_zero] |
| 29 | have hn : x ∈ (I ^ n • ⊤ : Submodule R N) := by |
| 30 | simpa only [SModEq.sub_mem, sub_zero] using hx n |
| 31 | exact Submodule.smul_top_le_comap_smul_top (I ^ n) N.subtype hn |
| 32 | |
| 33 | end Hausdorff |
| 34 | |
| 35 | variable {R S : Type*} [CommRing R] [CommRing S] |
| 36 | variable (f : R →+* S) (ξ : R) (hξ : f ξ = 0) |
| 37 | |
| 38 | def kernelMultiply : R →ₗ[R] RingHom.ker f where |
| 39 | toFun a := ⟨ξ * a, by rw [RingHom.mem_ker, map_mul, hξ, zero_mul]⟩ |
| 40 | map_add' a b := Subtype.ext (mul_add ξ a b) |
| 41 | map_smul' r a := by |
| 42 | apply Subtype.ext |
| 43 | change ξ * (r * a) = r * (ξ * a) |
| 44 | ring |
| 45 | |
| 46 | variable (p : ℕ) [IsPrecomplete (Ideal.span {(p : R)}) R] |
| 47 | [IsHausdorff (Ideal.span {(p : R)}) R] [IsDomain S] |
| 48 | |
| 49 | theorem kernelMultiply_surjective (hp : f (p : R) ≠ 0) |
| 50 | (hmod : ∀ x : RingHom.ker f, ∃ b : R, (p : R) ∣ (x : R) - ξ * b) : |
| 51 | Function.Surjective (kernelMultiply f ξ hξ) := by |
| 52 | let _ : IsHausdorff (Ideal.span {(p : R)}) (RingHom.ker f) := |
| 53 | submodule_isHausdorff (Ideal.span {(p : R)}) (RingHom.ker f) |
| 54 | apply surjective_of_mkQ_comp_surjective (I := Ideal.span {(p : R)}) |
| 55 | intro q |
| 56 | obtain ⟨x, rfl⟩ := Submodule.mkQ_surjective |
| 57 | ((Ideal.span {(p : R)}) • ⊤ : Submodule R (RingHom.ker f)) q |
| 58 | obtain ⟨b, c, hc⟩ := hmod x |
| 59 | have hc0 : f c = 0 := by |
| 60 | have h := congrArg f hc |
| 61 | rw [map_sub, map_mul, map_mul, RingHom.mem_ker.mp x.property, hξ, |
| 62 | zero_mul, sub_zero] at h |
| 63 | exact (mul_eq_zero.mp h.symm).resolve_left hp |
| 64 | have he : x - kernelMultiply f ξ hξ b = (p : R) • (⟨c, hc0⟩ : RingHom.ker f) := |
| 65 | Subtype.ext hc |
| 66 | have hm : x - kernelMultiply f ξ hξ b ∈ |
| 67 | ((Ideal.span {(p : R)}) • ⊤ : Submodule R (RingHom.ker f)) := by |
| 68 | rw [he] |
| 69 | exact Submodule.smul_mem_smul (Ideal.subset_span (Set.mem_singleton _)) Submodule.mem_top |
| 70 | refine ⟨b, ?_⟩ |
| 71 | apply (Submodule.Quotient.eq _).mpr |
| 72 | simpa only [neg_sub] using Submodule.neg_mem |
| 73 | ((Ideal.span {(p : R)}) • ⊤ : Submodule R (RingHom.ker f)) hm |
| 74 | |
| 75 | include hξ |
| 76 | |
| 77 | /-- Generation of a p-saturated kernel modulo p lifts to a principal kernel. -/ |
| 78 | theorem kernel_eq_span (hp : f (p : R) ≠ 0) |
| 79 | (hmod : ∀ x : RingHom.ker f, ∃ b : R, (p : R) ∣ (x : R) - ξ * b) : |
| 80 | RingHom.ker f = Ideal.span {ξ} := by |
| 81 | apply le_antisymm |
| 82 | · intro x hx |
| 83 | obtain ⟨b, hb⟩ := kernelMultiply_surjective f ξ hξ p hp hmod ⟨x, hx⟩ |
| 84 | rw [Ideal.mem_span_singleton] |
| 85 | exact ⟨b, (congrArg Subtype.val hb).symm⟩ |
| 86 | · apply Ideal.span_le.mpr |
| 87 | intro x hx |
| 88 | obtain rfl := Set.mem_singleton_iff.mp hx |
| 89 | exact hξ |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.PrincipalKernel |