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 | /-! # Transfer -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Transfer |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: constructing divided powers through separating ring maps |
| 11 | |
| 12 | This construction is used for the divided-power envelope. A family of |
| 13 | ring maps separates elements, and the desired divided powers are explicitly |
| 14 | shown to lie in their common image. The divided-power identities then |
| 15 | follow from the identities in the target rings. |
| 16 | -/ |
| 17 | |
| 18 | section |
| 19 | |
| 20 | universe u v w |
| 21 | |
| 22 | variable {A : Type u} [CommRing A] (I : Ideal A) |
| 23 | variable {ι : Type v} {B : ι → Type w} [∀ i, CommRing (B i)] |
| 24 | variable (J : ∀ i, Ideal (B i)) (δ : ∀ i, DividedPowers (J i)) |
| 25 | variable (f : ∀ i, A →+* B i) |
| 26 | variable (hinj : ∀ x y : A, (∀ i, f i x = f i y) → x = y) |
| 27 | variable (hI : ∀ i, I ≤ (J i).comap (f i)) |
| 28 | variable (hmem : ∀ (n : ℕ) {x : A}, x ∈ I → |
| 29 | ∃ y : A, (n ≠ 0 → y ∈ I) ∧ ∀ i, f i y = (δ i).dpow n (f i x)) |
| 30 | |
| 31 | private def operation (n : ℕ) (x : A) : A := by |
| 32 | classical |
| 33 | exact if hx : x ∈ I then (hmem n hx).choose else 0 |
| 34 | |
| 35 | private lemma operation_map (n : ℕ) {x : A} (hx : x ∈ I) (i : ι) : |
| 36 | f i (operation I J δ f hmem n x) = (δ i).dpow n (f i x) := by |
| 37 | rw [operation, dite_eq_left hx] |
| 38 | exact (hmem n hx).choose_spec.2 i |
| 39 | |
| 40 | private lemma operation_mem (n : ℕ) (hn : n ≠ 0) {x : A} (hx : x ∈ I) : |
| 41 | operation I J δ f hmem n x ∈ I := by |
| 42 | rw [operation, dite_eq_left hx] |
| 43 | exact (hmem n hx).choose_spec.1 hn |
| 44 | |
| 45 | /-- Construct divided powers by verifying them in a separating family of |
| 46 | actual divided-power rings. -/ |
| 47 | def dividedPowers : DividedPowers I where |
| 48 | dpow := operation I J δ f hmem |
| 49 | dpow_null hx := by rw [operation, dite_eq_right hx] |
| 50 | dpow_zero hx := by |
| 51 | apply hinj |
| 52 | intro i |
| 53 | rw [operation_map I J δ f hmem _ hx, (δ i).dpow_zero (hI i hx), map_one] |
| 54 | dpow_one hx := by |
| 55 | apply hinj |
| 56 | intro i |
| 57 | rw [operation_map I J δ f hmem _ hx, (δ i).dpow_one (hI i hx)] |
| 58 | dpow_mem hn hx := operation_mem I J δ f hmem _ hn hx |
| 59 | dpow_add hx hy := by |
| 60 | apply hinj |
| 61 | intro i |
| 62 | rw [operation_map I J δ f hmem _ (I.add_mem hx hy), map_add, |
| 63 | (δ i).dpow_add (hI i hx) (hI i hy), map_sum] |
| 64 | apply Finset.sum_congr rfl |
| 65 | intro n _ |
| 66 | rw [map_mul, operation_map I J δ f hmem _ hx, operation_map I J δ f hmem _ hy] |
| 67 | dpow_mul hx := by |
| 68 | apply hinj |
| 69 | intro i |
| 70 | rw [operation_map I J δ f hmem _ (I.mul_mem_left _ hx), map_mul, |
| 71 | (δ i).dpow_mul (hI i hx), map_mul, map_pow, operation_map I J δ f hmem _ hx] |
| 72 | mul_dpow hx := by |
| 73 | apply hinj |
| 74 | intro i |
| 75 | rw [map_mul, operation_map I J δ f hmem _ hx, operation_map I J δ f hmem _ hx, |
| 76 | (δ i).mul_dpow (hI i hx), map_mul, map_natCast, operation_map I J δ f hmem _ hx] |
| 77 | dpow_comp hn hx := by |
| 78 | apply hinj |
| 79 | intro i |
| 80 | rw [operation_map I J δ f hmem _ (operation_mem I J δ f hmem _ hn hx), |
| 81 | operation_map I J δ f hmem _ hx, (δ i).dpow_comp hn (hI i hx), |
| 82 | map_mul, map_natCast, operation_map I J δ f hmem _ hx] |
| 83 | |
| 84 | lemma dividedPowers_map (n : ℕ) {x : A} (hx : x ∈ I) (i : ι) : |
| 85 | f i ((dividedPowers I J δ f hinj hI hmem).dpow n x) = (δ i).dpow n (f i x) := |
| 86 | operation_map I J δ f hmem n hx i |
| 87 | |
| 88 | end |
| 89 | |
| 90 | variable {A B : Type*} [CommRing A] [CommRing B] {I : Ideal A} |
| 91 | |
| 92 | /-- A ring map killing the divided-power ideal is a morphism to the zero |
| 93 | divided-power ideal. -/ |
| 94 | def mapToBot (δ : DividedPowers I) (f : A →+* B) (hf : I ≤ RingHom.ker f) : |
| 95 | DividedPowers.DPMorphism δ (dividedPowersBot B) where |
| 96 | toRingHom := f |
| 97 | ideal_comp := Ideal.map_le_iff_le_comap.mpr hf |
| 98 | dpow_comp x hx := by |
| 99 | have hx0 : f x = 0 := hf hx |
| 100 | rw [hx0] |
| 101 | rename_i n |
| 102 | by_cases hn : n = 0 |
| 103 | · subst n |
| 104 | rw [(dividedPowersBot B).dpow_zero (Ideal.zero_mem _), δ.dpow_zero hx, map_one] |
| 105 | · rw [(dividedPowersBot B).dpow_eval_zero hn] |
| 106 | exact (hf (δ.dpow_mem hn hx)).symm |
| 107 | |
| 108 | def botMap (f : A →+* B) : DividedPowers.DPMorphism (dividedPowersBot A) (dividedPowersBot B) := |
| 109 | mapToBot (dividedPowersBot A) f (by |
| 110 | intro x hx |
| 111 | rw [Ideal.mem_bot.mp hx] |
| 112 | exact map_zero f) |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Transfer |