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.Nontriviality |
| 2 | |
| 3 | /-! # Additive Completion -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.AdditiveCompletion |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Additive maps between p-adic completions of rings |
| 11 | |
| 12 | An additive map preserves multiplication by integers, so it induces maps on |
| 13 | all p-power quotients and on their inverse limits. No multiplicativity of the |
| 14 | original map is needed. |
| 15 | -/ |
| 16 | |
| 17 | section Quotients |
| 18 | |
| 19 | variable (p : ℕ) {R S : Type*} [CommRing R] [CommRing S] |
| 20 | |
| 21 | /-- An additive map descends through the p-power ideals. -/ |
| 22 | def quotientAddMap (f : R →+ S) (n : ℕ) : |
| 23 | R ⧸ (Ideal.span {(p : R)}) ^ n →+ S ⧸ (Ideal.span {(p : S)}) ^ n := |
| 24 | QuotientAddGroup.lift ((Ideal.span {(p : R)}) ^ n).toAddSubgroup |
| 25 | ((Ideal.Quotient.mk _).toAddMonoidHom.comp f) (by |
| 26 | intro a ha |
| 27 | change Ideal.Quotient.mk ((Ideal.span {(p : S)}) ^ n) (f a) = 0 |
| 28 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 29 | change a ∈ (Ideal.span {(p : R)}) ^ n at ha |
| 30 | rw [Ideal.span_singleton_pow, Ideal.mem_span_singleton] at ha ⊢ |
| 31 | obtain ⟨b, rfl⟩ := ha |
| 32 | refine ⟨f b, ?_⟩ |
| 33 | have h := f.map_nsmul (p ^ n) b |
| 34 | simpa only [nsmul_eq_mul, Nat.cast_pow] using h) |
| 35 | |
| 36 | theorem quotientAddMap_mk (f : R →+ S) (n : ℕ) (a : R) : |
| 37 | quotientAddMap p f n (Ideal.Quotient.mk _ a) = Ideal.Quotient.mk _ (f a) := rfl |
| 38 | |
| 39 | theorem quotientAddMap_factor (f : R →+ S) {m n : ℕ} (h : m ≤ n) |
| 40 | (x : R ⧸ (Ideal.span {(p : R)}) ^ n) : |
| 41 | Ideal.Quotient.factorPow (Ideal.span {(p : S)}) h (quotientAddMap p f n x) = |
| 42 | quotientAddMap p f m (Ideal.Quotient.factorPow (Ideal.span {(p : R)}) h x) := by |
| 43 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 44 | rfl |
| 45 | |
| 46 | end Quotients |
| 47 | |
| 48 | section Lift |
| 49 | |
| 50 | variable {A S : Type*} [AddCommGroup A] [CommRing S] (I : Ideal S) |
| 51 | |
| 52 | /-- Compatible additive maps into the defining quotients give a map to completion. -/ |
| 53 | def liftAddHom (f : (n : ℕ) → A →+ S ⧸ I ^ n) |
| 54 | (hf : ∀ {m n : ℕ} (h : m ≤ n) (x : A), |
| 55 | Ideal.Quotient.factorPow I h (f n x) = f m x) : A →+ AdicCompletion I S where |
| 56 | toFun x := ⟨fun n => Ideal.Quotient.factor (le_of_eq (Ideal.mul_top _).symm) (f n x), |
| 57 | fun hkl => by |
| 58 | dsimp only |
| 59 | rw [← hf hkl x] |
| 60 | generalize f _ x = q |
| 61 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective q |
| 62 | rfl⟩ |
| 63 | map_zero' := by |
| 64 | apply AdicCompletion.ext |
| 65 | intro n |
| 66 | simp only [map_zero] |
| 67 | rfl |
| 68 | map_add' x y := by |
| 69 | apply AdicCompletion.ext |
| 70 | intro n |
| 71 | simp only [map_add] |
| 72 | rfl |
| 73 | |
| 74 | theorem liftAddHom_eval (f : (n : ℕ) → A →+ S ⧸ I ^ n) |
| 75 | (hf : ∀ {m n : ℕ} (h : m ≤ n) (x : A), |
| 76 | Ideal.Quotient.factorPow I h (f n x) = f m x) (n : ℕ) (x : A) : |
| 77 | AdicCompletion.evalₐ I n (liftAddHom I f hf x) = f n x := by |
| 78 | rw [← AdicCompletion.factor_eval_eq_evalₐ I _ (le_of_eq (Ideal.mul_top _))] |
| 79 | have hh : Submodule.factor (le_of_eq (Ideal.mul_top (I ^ n))) |
| 80 | (Ideal.Quotient.factor (le_of_eq (Ideal.mul_top (I ^ n)).symm) (f n x)) = f n x := by |
| 81 | obtain ⟨a, ha⟩ := Ideal.Quotient.mk_surjective (f n x) |
| 82 | rw [← ha] |
| 83 | rfl |
| 84 | exact hh |
| 85 | |
| 86 | end Lift |
| 87 | |
| 88 | variable (p : ℕ) {R S : Type*} [CommRing R] [CommRing S] |
| 89 | |
| 90 | theorem completionAddMap_compatible (f : R →+ S) {m n : ℕ} (h : m ≤ n) |
| 91 | (x : AdicCompletion (Ideal.span {(p : R)}) R) : |
| 92 | Ideal.Quotient.factorPow (Ideal.span {(p : S)}) h |
| 93 | (quotientAddMap p f n (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n x)) = |
| 94 | quotientAddMap p f m (AdicCompletion.evalₐ (Ideal.span {(p : R)}) m x) := by |
| 95 | rw [quotientAddMap_factor, PeriodRing.completionEval_factorPow] |
| 96 | |
| 97 | def completionAddMap (f : R →+ S) : |
| 98 | AdicCompletion (Ideal.span {(p : R)}) R →+ |
| 99 | AdicCompletion (Ideal.span {(p : S)}) S := |
| 100 | liftAddHom (Ideal.span {(p : S)}) |
| 101 | (fun n => (quotientAddMap p f n).comp |
| 102 | (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n).toAddMonoidHom) |
| 103 | (completionAddMap_compatible p f) |
| 104 | |
| 105 | theorem completionAddMap_eval (f : R →+ S) |
| 106 | (x : AdicCompletion (Ideal.span {(p : R)}) R) (n : ℕ) : |
| 107 | AdicCompletion.evalₐ (Ideal.span {(p : S)}) n (completionAddMap p f x) = |
| 108 | quotientAddMap p f n (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n x) := |
| 109 | liftAddHom_eval _ _ (completionAddMap_compatible p f) n x |
| 110 | |
| 111 | theorem completionAddMap_of (f : R →+ S) (a : R) : |
| 112 | completionAddMap p f (AdicCompletion.of (Ideal.span {(p : R)}) R a) = |
| 113 | AdicCompletion.of (Ideal.span {(p : S)}) S (f a) := by |
| 114 | apply AdicCompletion.ext_evalₐ |
| 115 | intro n |
| 116 | rw [completionAddMap_eval, AdicCompletion.evalₐ_of, |
| 117 | quotientAddMap_mk, AdicCompletion.evalₐ_of] |
| 118 | |
| 119 | theorem completionAddMap_scaled_mul (f : R →+ S) (c : ℕ) |
| 120 | (hf : ∀ a b : R, (c : S) * f (a * b) = f a * f b) |
| 121 | (x y : AdicCompletion (Ideal.span {(p : R)}) R) : |
| 122 | (c : AdicCompletion (Ideal.span {(p : S)}) S) * completionAddMap p f (x * y) = |
| 123 | completionAddMap p f x * completionAddMap p f y := by |
| 124 | apply AdicCompletion.ext_evalₐ |
| 125 | intro n |
| 126 | simp only [map_mul, map_natCast, completionAddMap_eval] |
| 127 | obtain ⟨a, ha⟩ := Ideal.Quotient.mk_surjective |
| 128 | (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n x) |
| 129 | obtain ⟨b, hb⟩ := Ideal.Quotient.mk_surjective |
| 130 | (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n y) |
| 131 | rw [← ha, ← hb, ← map_mul, quotientAddMap_mk, quotientAddMap_mk, quotientAddMap_mk] |
| 132 | have h := congrArg (Ideal.Quotient.mk ((Ideal.span {(p : S)}) ^ n)) (hf a b) |
| 133 | simp only [map_mul, map_natCast] at h |
| 134 | exact h |
| 135 | |
| 136 | variable [IsAdicComplete (Ideal.span {(p : S)}) S] |
| 137 | |
| 138 | /-- Extend an additive map into a p-adically complete ring. -/ |
| 139 | def extendAddMap (f : R →+ S) : AdicCompletion (Ideal.span {(p : R)}) R →+ S := |
| 140 | (AdicCompletion.ofAlgEquiv (Ideal.span {(p : S)})).symm.toAddMonoidHom.comp |
| 141 | (completionAddMap p f) |
| 142 | |
| 143 | theorem extendAddMap_of (f : R →+ S) (a : R) : |
| 144 | extendAddMap p f (AdicCompletion.of (Ideal.span {(p : R)}) R a) = f a := by |
| 145 | change (AdicCompletion.ofAlgEquiv _).symm (completionAddMap p f _) = _ |
| 146 | rw [completionAddMap_of, AdicCompletion.ofAlgEquiv_symm_of] |
| 147 | |
| 148 | theorem extendAddMap_eval (f : R →+ S) |
| 149 | (x : AdicCompletion (Ideal.span {(p : R)}) R) (n : ℕ) : |
| 150 | Ideal.Quotient.mk ((Ideal.span {(p : S)}) ^ n) (extendAddMap p f x) = |
| 151 | quotientAddMap p f n (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n x) := by |
| 152 | change Ideal.Quotient.mk _ ((AdicCompletion.ofAlgEquiv _).symm |
| 153 | (completionAddMap p f x)) = _ |
| 154 | rw [AdicCompletion.mk_ofAlgEquiv_symm, completionAddMap_eval] |
| 155 | |
| 156 | theorem extendAddMap_scaled_mul (f : R →+ S) (c : ℕ) |
| 157 | (hf : ∀ a b : R, (c : S) * f (a * b) = f a * f b) |
| 158 | (x y : AdicCompletion (Ideal.span {(p : R)}) R) : |
| 159 | (c : S) * extendAddMap p f (x * y) = extendAddMap p f x * extendAddMap p f y := by |
| 160 | have h := congrArg (AdicCompletion.ofAlgEquiv (Ideal.span {(p : S)})).symm |
| 161 | (completionAddMap_scaled_mul p f c hf x y) |
| 162 | simp only [map_mul, map_natCast] at h |
| 163 | exact h |
| 164 | |
| 165 | theorem extendAddMap_scaled_natural {T : Type*} [CommRing T] |
| 166 | [IsAdicComplete (Ideal.span {(p : T)}) T] |
| 167 | (f : R →+ S) (g : R →+ T) (e : S →+ T) (a b : ℕ) |
| 168 | (he : ∀ r : R, (a : T) * e (f r) = (b : T) * g r) |
| 169 | (x : AdicCompletion (Ideal.span {(p : R)}) R) : |
| 170 | (a : T) * e (extendAddMap p f x) = (b : T) * extendAddMap p g x := by |
| 171 | apply AdicCompletion.of_injective (Ideal.span {(p : T)}) T |
| 172 | apply AdicCompletion.ext_evalₐ |
| 173 | intro n |
| 174 | rw [AdicCompletion.evalₐ_of, AdicCompletion.evalₐ_of] |
| 175 | simp only [map_mul, map_natCast] |
| 176 | rw [← quotientAddMap_mk p e n, extendAddMap_eval, extendAddMap_eval] |
| 177 | obtain ⟨r, hr⟩ := Ideal.Quotient.mk_surjective |
| 178 | (AdicCompletion.evalₐ (Ideal.span {(p : R)}) n x) |
| 179 | rw [← hr, quotientAddMap_mk, quotientAddMap_mk, quotientAddMap_mk] |
| 180 | have h := congrArg (Ideal.Quotient.mk ((Ideal.span {(p : T)}) ^ n)) (he r) |
| 181 | simpa only [map_mul, map_natCast] using h |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.AdditiveCompletion |