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.WeakAdmissibility.Cyclotomic |
| 2 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.AdicGeneration |
| 3 | |
| 4 | /-! # Theta Kernel -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.ThetaKernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | The principal kernel of Fontaine theta for the actual completed algebraic |
| 12 | closure. Divisibility in the tilt is proved using compatible integral roots. |
| 13 | -/ |
| 14 | |
| 15 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Logarithm.PeriodRings OAI.NumberTheory.PadicHodge.WeakAdmissibility.Cyclotomic |
| 16 | open scoped NNReal |
| 17 | |
| 18 | variable (p : ℕ) [Fact p.Prime] |
| 19 | |
| 20 | theorem towerCoeff_ne_zero (b : Perfection 𝓞_ℂ_[p] p) |
| 21 | (hb : Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b ≠ 0) (n : ℕ) : |
| 22 | Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b ≠ 0 := by |
| 23 | intro hn |
| 24 | have he := Perfection.coeffMonoidHom_pow_p_pow_self b n |
| 25 | rw [hn, zero_pow (pow_ne_zero n (Fact.out : p.Prime).ne_zero)] at he |
| 26 | exact hb he.symm |
| 27 | |
| 28 | theorem towerCoeff_norm_le (a b : Perfection 𝓞_ℂ_[p] p) |
| 29 | (hab : ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 a : 𝓞_ℂ_[p]) : ℂ_[p])‖ ≤ |
| 30 | ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b : 𝓞_ℂ_[p]) : ℂ_[p])‖) (n : ℕ) : |
| 31 | ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n a : 𝓞_ℂ_[p]) : ℂ_[p])‖ ≤ |
| 32 | ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p])‖ := by |
| 33 | apply (pow_le_pow_iff_left₀ (norm_nonneg _) (norm_nonneg _) |
| 34 | (pow_ne_zero n (Fact.out : p.Prime).ne_zero)).mp |
| 35 | have he (c : Perfection 𝓞_ℂ_[p] p) : |
| 36 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n c : 𝓞_ℂ_[p]) : ℂ_[p]) ^ (p ^ n) = |
| 37 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 c : 𝓞_ℂ_[p]) : ℂ_[p]) := by |
| 38 | exact_mod_cast Perfection.coeffMonoidHom_pow_p_pow_self c n |
| 39 | simpa only [← norm_pow, he a, he b] using hab |
| 40 | |
| 41 | def quotientCoefficient (a b : Perfection 𝓞_ℂ_[p] p) |
| 42 | (hb : Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b ≠ 0) |
| 43 | (hab : ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 a : 𝓞_ℂ_[p]) : ℂ_[p])‖ ≤ |
| 44 | ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b : 𝓞_ℂ_[p]) : ℂ_[p])‖) (n : ℕ) : 𝓞_ℂ_[p] := |
| 45 | ⟨((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n a : 𝓞_ℂ_[p]) : ℂ_[p]) / |
| 46 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p]), by |
| 47 | have hb' : ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p]) ≠ 0 := by |
| 48 | exact_mod_cast towerCoeff_ne_zero p b hb n |
| 49 | have hn : ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n a : 𝓞_ℂ_[p]) : ℂ_[p]) / |
| 50 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p])‖ ≤ 1 := by |
| 51 | rw [norm_div] |
| 52 | exact (div_le_one (norm_pos_iff.mpr hb')).mpr (towerCoeff_norm_le p a b hab n) |
| 53 | change (Valued.v _ : ℝ≥0) ≤ 1 |
| 54 | rw [Logarithm.PeriodRings.valuation_eq_nnnorm] |
| 55 | exact_mod_cast hn⟩ |
| 56 | |
| 57 | theorem quotientCoefficient_pow (a b : Perfection 𝓞_ℂ_[p] p) |
| 58 | (hb : Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b ≠ 0) |
| 59 | (hab : ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 a : 𝓞_ℂ_[p]) : ℂ_[p])‖ ≤ |
| 60 | ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b : 𝓞_ℂ_[p]) : ℂ_[p])‖) (n : ℕ) : |
| 61 | quotientCoefficient p a b hb hab (n + 1) ^ p = quotientCoefficient p a b hb hab n := by |
| 62 | apply Subtype.ext |
| 63 | change (((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p (n + 1) a : 𝓞_ℂ_[p]) : ℂ_[p]) / |
| 64 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p (n + 1) b : 𝓞_ℂ_[p]) : ℂ_[p])) ^ p = _ |
| 65 | have he (c : Perfection 𝓞_ℂ_[p] p) : |
| 66 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p (n + 1) c : 𝓞_ℂ_[p]) : ℂ_[p]) ^ p = |
| 67 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n c : 𝓞_ℂ_[p]) : ℂ_[p]) := by |
| 68 | exact_mod_cast Perfection.coeffMonoidHom_pow_p' c n |
| 69 | rw [div_pow, he a, he b] |
| 70 | rfl |
| 71 | |
| 72 | /-- Division of compatible roots remains integral when their zeroth norms are ordered. -/ |
| 73 | theorem tower_dvd_of_norm_le (a b : Perfection 𝓞_ℂ_[p] p) |
| 74 | (hb : Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b ≠ 0) |
| 75 | (hab : ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 a : 𝓞_ℂ_[p]) : ℂ_[p])‖ ≤ |
| 76 | ‖((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 b : 𝓞_ℂ_[p]) : ℂ_[p])‖) : |
| 77 | b ∣ a := by |
| 78 | refine ⟨⟨quotientCoefficient p a b hb hab, quotientCoefficient_pow p a b hb hab⟩, ?_⟩ |
| 79 | apply Perfection.extMonoid |
| 80 | intro n |
| 81 | apply Subtype.ext |
| 82 | change ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n a : 𝓞_ℂ_[p]) : ℂ_[p]) = |
| 83 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p]) * |
| 84 | (((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n a : 𝓞_ℂ_[p]) : ℂ_[p]) / |
| 85 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p])) |
| 86 | have hb' : ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n b : 𝓞_ℂ_[p]) : ℂ_[p]) ≠ 0 := by |
| 87 | exact_mod_cast towerCoeff_ne_zero p b hb n |
| 88 | simpa only [mul_comm] using (div_mul_cancel₀ |
| 89 | ((Perfection.coeffMonoidHom 𝓞_ℂ_[p] p n a : 𝓞_ℂ_[p]) : ℂ_[p]) hb').symm |
| 90 | |
| 91 | /-- Divisibility in the actual tilt follows from the untilted absolute values. -/ |
| 92 | theorem tilt_dvd_of_untilt_norm_le (a b : PreTilt 𝓞_ℂ_[p] p) (hb : b.untilt ≠ 0) |
| 93 | (hab : ‖(a.untilt : ℂ_[p])‖ ≤ ‖(b.untilt : ℂ_[p])‖) : b ∣ a := by |
| 94 | let e := PeriodInvariants.PeriodRing.tiltMonoidEquiv p |
| 95 | have hcoord (c : PreTilt 𝓞_ℂ_[p] p) : |
| 96 | Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 (e.symm c) = c.untilt := by |
| 97 | have he := PeriodInvariants.PeriodRing.untilt_tiltMonoidEquiv p (e.symm c) |
| 98 | change (e (e.symm c)).untilt = _ at he |
| 99 | rw [e.apply_symm_apply] at he |
| 100 | exact he.symm |
| 101 | obtain ⟨c, hc⟩ := tower_dvd_of_norm_le p (e.symm a) (e.symm b) |
| 102 | (by rwa [hcoord]) (by simpa only [hcoord] using hab) |
| 103 | refine ⟨e c, ?_⟩ |
| 104 | simpa only [map_mul, e.apply_symm_apply] using congrArg e hc |
| 105 | |
| 106 | /-- A compatible sequence p, p^(1/p), p^(1/p²),... in the actual integral closure. -/ |
| 107 | def pTower : Perfection 𝓞_ℂ_[p] p := |
| 108 | ⟨fun n => (Logarithm.PeriodRings.integerRoot p)^[n] (p : 𝓞_ℂ_[p]), fun n => by |
| 109 | change ((Logarithm.PeriodRings.integerRoot p)^[n + 1] (p : 𝓞_ℂ_[p])) ^ p = (Logarithm.PeriodRings.integerRoot p)^[n] (p : 𝓞_ℂ_[p]) |
| 110 | rw [Function.iterate_succ_apply'] |
| 111 | exact Logarithm.PeriodRings.integerRoot_pow p _⟩ |
| 112 | |
| 113 | def pFlat : PreTilt 𝓞_ℂ_[p] p := PeriodInvariants.PeriodRing.tiltMonoidEquiv p (pTower p) |
| 114 | |
| 115 | theorem pFlat_untilt : (pFlat p).untilt = (p : 𝓞_ℂ_[p]) := |
| 116 | PeriodInvariants.PeriodRing.untilt_tiltMonoidEquiv p (pTower p) |
| 117 | |
| 118 | theorem pFlat_untilt_ne_zero : (pFlat p).untilt ≠ 0 := by |
| 119 | rw [pFlat_untilt] |
| 120 | exact_mod_cast (Fact.out : p.Prime).ne_zero |
| 121 | |
| 122 | theorem pFlat_ne_zero : pFlat p ≠ 0 := by |
| 123 | intro h |
| 124 | have hz : (0 : PreTilt 𝓞_ℂ_[p] p).untilt = 0 := Perfection.teichmuller_zero |
| 125 | exact pFlat_untilt_ne_zero p (h ▸ hz) |
| 126 | |
| 127 | /-- The standard primitive theta-kernel element [p^flat]-p. -/ |
| 128 | def thetaGenerator : Logarithm.PeriodRings.AInf p := Cyclotomic.towerToAInf p (pTower p) - p |
| 129 | |
| 130 | theorem thetaGenerator_theta : Logarithm.PeriodRings.theta p (thetaGenerator p) = 0 := by |
| 131 | rw [thetaGenerator, map_sub, map_natCast, Cyclotomic.theta_towerToAInf] |
| 132 | change (p : 𝓞_ℂ_[p]) - p = 0 |
| 133 | exact sub_self _ |
| 134 | |
| 135 | theorem thetaGenerator_coeff_zero : (thetaGenerator p).coeff 0 = pFlat p := by |
| 136 | change WittVector.constantCoeff (thetaGenerator p) = _ |
| 137 | rw [thetaGenerator, map_sub, map_natCast] |
| 138 | change (WittVector.teichmuller p (pFlat p)).coeff 0 - (p : PreTilt 𝓞_ℂ_[p] p) = pFlat p |
| 139 | rw [WittVector.teichmuller_coeff_zero, CharP.cast_eq_zero, sub_zero] |
| 140 | |
| 141 | theorem thetaGenerator_ne_zero : thetaGenerator p ≠ 0 := by |
| 142 | intro h |
| 143 | have he := congrArg (fun x : Logarithm.PeriodRings.AInf p => x.coeff 0) h |
| 144 | rw [thetaGenerator_coeff_zero, WittVector.zero_coeff] at he |
| 145 | exact pFlat_ne_zero p he |
| 146 | |
| 147 | theorem pFlat_dvd_kernel_coeff (x : Logarithm.PeriodRings.AInf p) (hx : Logarithm.PeriodRings.theta p x = 0) : |
| 148 | pFlat p ∣ x.coeff 0 := by |
| 149 | have hmod : PreTilt.coeff 0 (x.coeff 0) = 0 := by |
| 150 | rw [← Logarithm.PeriodRings.thetaModP_eq] |
| 151 | simp only [Logarithm.PeriodRings.thetaModP, RingHom.comp_apply, hx, map_zero] |
| 152 | have hmem : (x.coeff 0).untilt ∈ Ideal.span {(p : 𝓞_ℂ_[p])} := |
| 153 | Ideal.Quotient.eq_zero_iff_mem.mp ((PreTilt.mk_untilt_eq_coeff_zero _).trans hmod) |
| 154 | apply tilt_dvd_of_untilt_norm_le p _ _ (pFlat_untilt_ne_zero p) |
| 155 | rw [pFlat_untilt] |
| 156 | have he := (Logarithm.PeriodRings.mem_p_power_iff p 1 (x.coeff 0).untilt).mp (by simpa only [pow_one] using hmem) |
| 157 | change ‖((x.coeff 0).untilt : ℂ_[p])‖ ≤ ‖(p : ℂ_[p])‖ |
| 158 | simpa only [pow_one] using he |
| 159 | |
| 160 | /-- Every theta-kernel element has a first digit divisible by the concrete generator. -/ |
| 161 | theorem theta_kernel_digit (x : Logarithm.PeriodRings.AInf p) (hx : Logarithm.PeriodRings.theta p x = 0) : |
| 162 | ∃ a : Logarithm.PeriodRings.AInf p, (p : Logarithm.PeriodRings.AInf p) ∣ x - thetaGenerator p * a := by |
| 163 | obtain ⟨a, ha⟩ := pFlat_dvd_kernel_coeff p x hx |
| 164 | refine ⟨WittVector.teichmuller p a, ?_⟩ |
| 165 | rw [← Ideal.mem_span_singleton, WittVector.mem_span_p_iff_coeff_zero_eq_zero] |
| 166 | change WittVector.constantCoeff (x - thetaGenerator p * WittVector.teichmuller p a) = 0 |
| 167 | rw [map_sub, map_mul] |
| 168 | change x.coeff 0 - (thetaGenerator p).coeff 0 * (WittVector.teichmuller p a).coeff 0 = 0 |
| 169 | rw [thetaGenerator_coeff_zero, WittVector.teichmuller_coeff_zero, ha, sub_self] |
| 170 | |
| 171 | /-- Fontaine theta has a proved principal kernel in the actual A_inf. -/ |
| 172 | theorem theta_kernel_eq_span : RingHom.ker (Logarithm.PeriodRings.theta p) = Ideal.span {thetaGenerator p} := by |
| 173 | apply le_antisymm |
| 174 | · apply AdicGeneration.ideal_le_span_of_adic_step (p : Logarithm.PeriodRings.AInf p) (thetaGenerator p) |
| 175 | intro x |
| 176 | have hx : Logarithm.PeriodRings.theta p (x : Logarithm.PeriodRings.AInf p) = 0 := RingHom.mem_ker.mp x.property |
| 177 | obtain ⟨a, b, hb⟩ := theta_kernel_digit p x hx |
| 178 | have hbker : Logarithm.PeriodRings.theta p b = 0 := by |
| 179 | have he := congrArg (Logarithm.PeriodRings.theta p) hb |
| 180 | simp only [map_sub, map_mul, map_natCast, thetaGenerator_theta, hx, zero_mul, sub_zero] at he |
| 181 | exact (mul_eq_zero.mp he.symm).resolve_left (by exact_mod_cast (Fact.out : p.Prime).ne_zero) |
| 182 | refine ⟨a, ⟨b, RingHom.mem_ker.mpr hbker⟩, ?_⟩ |
| 183 | change (x : Logarithm.PeriodRings.AInf p) = thetaGenerator p * a + (p : Logarithm.PeriodRings.AInf p) * b |
| 184 | linear_combination hb |
| 185 | · apply Ideal.span_le.mpr |
| 186 | intro x hx |
| 187 | have he : x = thetaGenerator p := Set.mem_singleton_iff.mp hx |
| 188 | subst x |
| 189 | exact RingHom.mem_ker.mpr (thetaGenerator_theta p) |
| 190 | |
| 191 | end |
| 192 | |
| 193 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.ThetaKernel |