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 |
| 2 | |
| 3 | /-! # Adic Generation -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.AdicGeneration |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | An explicit adic lifting argument for a principal ideal. The digit-step |
| 11 | hypothesis will be discharged for Fontaine theta using the actual tilt. |
| 12 | -/ |
| 13 | |
| 14 | variable {R : Type*} [CommRing R] |
| 15 | |
| 16 | /-- In a q-adically complete ring, generation by c modulo q lifts to exact |
| 17 | generation when the residual digit remains in the ideal. -/ |
| 18 | theorem ideal_le_span_of_adic_step (q c : R) (J : Ideal R) |
| 19 | [IsAdicComplete (Ideal.span {q}) R] |
| 20 | (hstep : ∀ x : J, ∃ a : R, ∃ b : J, (x : R) = c * a + q * (b : R)) : |
| 21 | J ≤ Ideal.span {c} := by |
| 22 | classical |
| 23 | choose a b hstep using hstep |
| 24 | intro x hx |
| 25 | let u : ℕ → J := fun n => b^[n] ⟨x, hx⟩ |
| 26 | let s : ℕ → R := fun n => ∑ i ∈ Finset.range n, q ^ i * a (u i) |
| 27 | let I : Ideal R := Ideal.span {q} |
| 28 | have hu (n : ℕ) : (u n : R) = c * a (u n) + q * (u (n + 1) : R) := by |
| 29 | have hn : u (n + 1) = b (u n) := by |
| 30 | exact Function.iterate_succ_apply' b n ⟨x, hx⟩ |
| 31 | rw [hn] |
| 32 | exact hstep (u n) |
| 33 | have hs (n : ℕ) : s (n + 1) = s n + q ^ n * a (u n) := |
| 34 | Finset.sum_range_succ _ n |
| 35 | have hres (n : ℕ) : x = c * s n + q ^ n * (u n : R) := by |
| 36 | induction n with |
| 37 | | zero => simp [s, u] |
| 38 | | succ n ih => |
| 39 | rw [hs, ih, hu n, pow_succ] |
| 40 | ring |
| 41 | have hterm (m i : ℕ) (hmi : m ≤ i) : q ^ i * a (u i) ∈ I ^ m := by |
| 42 | apply Ideal.pow_le_pow_right hmi |
| 43 | exact Ideal.mul_mem_right _ _ (Ideal.pow_mem_pow (Ideal.subset_span (Set.mem_singleton _)) i) |
| 44 | have hcauchy : ∀ {m n : ℕ}, m ≤ n → |
| 45 | s m ≡ s n [SMOD (I ^ m • ⊤ : Submodule R R)] := by |
| 46 | intro m n hmn |
| 47 | change (Submodule.mkQ _) (s m) = (Submodule.mkQ _) (s n) |
| 48 | dsimp only [s] |
| 49 | rw [map_sum, map_sum] |
| 50 | apply Finset.sum_subset (Finset.range_mono hmn) |
| 51 | intro i _ hi |
| 52 | apply (Submodule.Quotient.mk_eq_zero _).mpr |
| 53 | have hmi : m ≤ i := Nat.le_of_not_gt (by simpa only [Finset.mem_range] using hi) |
| 54 | simpa only [smul_eq_mul, Ideal.mul_top] using hterm m i hmi |
| 55 | obtain ⟨L, hL⟩ := IsPrecomplete.prec (show IsPrecomplete I R from inferInstance) hcauchy |
| 56 | have hzero : x - c * L = 0 := by |
| 57 | apply IsHausdorff.haus (show IsHausdorff I R from inferInstance) |
| 58 | intro n |
| 59 | have hsum : s n - L ∈ I ^ n := by |
| 60 | simpa only [SModEq.sub_mem, smul_eq_mul, Ideal.mul_top] using hL n |
| 61 | have hrem : q ^ n * (u n : R) ∈ I ^ n := |
| 62 | Ideal.mul_mem_right _ _ (Ideal.pow_mem_pow (Ideal.subset_span (Set.mem_singleton _)) n) |
| 63 | have he : x - c * L = c * (s n - L) + q ^ n * (u n : R) := by |
| 64 | rw [hres n] |
| 65 | ring |
| 66 | have hmem : x - c * L ∈ I ^ n := by |
| 67 | rw [he] |
| 68 | exact Ideal.add_mem _ (Ideal.mul_mem_left _ _ hsum) hrem |
| 69 | simpa only [SModEq.sub_mem, sub_zero, smul_eq_mul, Ideal.mul_top] using hmem |
| 70 | exact Ideal.mem_span_singleton.mpr ⟨L, sub_eq_zero.mp hzero⟩ |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.AdicGeneration |