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.NumberTheory.NumberField.CMField |
| 2 | import Mathlib.RingTheory.ClassGroup.Basic |
| 3 | import Mathlib.RingTheory.DedekindDomain.AdicValuation |
| 4 | import Mathlib.RingTheory.Ideal.Quotient.Nilpotent |
| 5 | import Mathlib.RingTheory.Ideal.Quotient.HasFiniteQuotients.Basic |
| 6 | import Mathlib.RingTheory.Ideal.Quotient.HasFiniteQuotients.Norm |
| 7 | import OAI.NumberTheory.ClassGroup.Finiteness |
| 8 | |
| 9 | /-! # Norm One Approximation -/ |
| 10 | |
| 11 | namespace OAI.NumberTheory.CMField.NormOneApproximation.Construction |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | Proof of NormOneApproximation, retaining the conditional theorem for existing consumers. |
| 17 | The final entrypoint `exists_norm_one_scalar_unconditional` supplies the |
| 18 | named input `hFiniteness_classGroup_finite` from the proved Finiteness declaration. |
| 19 | This is the first proposition of Statements/Finiteness.lean, specialized to E. Its |
| 20 | fractional-ideal principalization assertion is redundant here. CMPoints, TensorDecomposition, |
| 21 | and ElementaryDivisors are unnecessary for this arithmetic result with the two distinct |
| 22 | conjugate primes already specified. No statement stub is imported. |
| 23 | |
| 24 | As in the specification, multiplicative valuation exp(-m) means additive |
| 25 | order m. The local approximation clause concerns further positive powers. |
| 26 | The manuscript's scalar assertion is in |
| 27 | docs/hodge_cm_claimed_result_labeled.tex, lemma:norm-one-scalar (lines 353-361). |
| 28 | -/ |
| 29 | |
| 30 | open _root_.NumberField IsDedekindDomain |
| 31 | open scoped nonZeroDivisors |
| 32 | |
| 33 | variable {E : Type*} [Field E] [NumberField E] |
| 34 | |
| 35 | lemma principal_prime_power |
| 36 | (hFiniteness_classGroup_finite : Finite (ClassGroup (𝓞 E))) |
| 37 | (w : HeightOneSpectrum (𝓞 E)) : |
| 38 | ∃ (M : ℕ) (a : 𝓞 E), 0 < M ∧ a ≠ 0 ∧ |
| 39 | w.asIdeal ^ M = Ideal.span {a} := by |
| 40 | let := hFiniteness_classGroup_finite |
| 41 | let I : (Ideal (𝓞 E))⁰ := ⟨w.asIdeal, mem_nonZeroDivisors_of_ne_zero w.ne_bot⟩ |
| 42 | obtain ⟨M, hM, heq⟩ := (isOfFinOrder_of_finite (ClassGroup.mk0 I)).exists_pow_eq_one |
| 43 | have hprincipal : (w.asIdeal ^ M).IsPrincipal := by |
| 44 | apply (ClassGroup.mk0_eq_one_iff (pow_mem I.property M)).mp |
| 45 | simpa only [I, ← map_pow, SubmonoidClass.mk_pow] using heq |
| 46 | obtain ⟨a, ha⟩ := hprincipal.principal |
| 47 | refine ⟨M, a, hM, ?_, ha⟩ |
| 48 | intro hzero |
| 49 | have hpow : w.asIdeal ^ M ≠ 0 := pow_ne_zero M w.prime.ne_zero |
| 50 | apply hpow |
| 51 | simpa [hzero] using ha |
| 52 | |
| 53 | lemma valuation_generator_self |
| 54 | (w : HeightOneSpectrum (𝓞 E)) (M : ℕ) (a : 𝓞 E) |
| 55 | (ha : a ≠ 0) (hspan : w.asIdeal ^ M = Ideal.span {a}) : |
| 56 | w.intValuation a = WithZero.exp (-(M : ℤ)) := by |
| 57 | rw [w.intValuation_eq_exp_neg_multiplicity ha, ← hspan, |
| 58 | multiplicity_pow_self_of_prime w.prime] |
| 59 | |
| 60 | lemma valuation_generator_other |
| 61 | (w p : HeightOneSpectrum (𝓞 E)) (M : ℕ) (a : 𝓞 E) |
| 62 | (hspan : w.asIdeal ^ M = Ideal.span {a}) (hp : p ≠ w) : |
| 63 | p.intValuation a = 1 := by |
| 64 | apply p.intValuation_eq_one_iff.mpr |
| 65 | intro hmem |
| 66 | have hdvd : p.asIdeal ∣ w.asIdeal ^ M := by |
| 67 | rw [hspan, Ideal.dvd_span_singleton] |
| 68 | exact hmem |
| 69 | have hle : w.asIdeal ≤ p.asIdeal := |
| 70 | Ideal.dvd_iff_le.mp (p.prime.dvd_of_dvd_pow hdvd) |
| 71 | apply hp |
| 72 | apply HeightOneSpectrum.asIdeal_injective |
| 73 | exact ((w.isMaximal).eq_of_le (p.isPrime.ne_top) hle).symm |
| 74 | |
| 75 | /-- Simultaneous congruences for two integral elements which are units |
| 76 | at every prime in S, using the finite product of residue-unit groups. -/ |
| 77 | lemma simultaneous_power_congruence |
| 78 | (S : Finset (HeightOneSpectrum (𝓞 E))) |
| 79 | (depth : HeightOneSpectrum (𝓞 E) → ℕ) |
| 80 | (a b : 𝓞 E) |
| 81 | (ha : ∀ p ∈ S, a ∉ p.asIdeal) |
| 82 | (hb : ∀ p ∈ S, b ∉ p.asIdeal) : |
| 83 | ∃ N : ℕ, 0 < N ∧ ∀ p ∈ S, |
| 84 | a ^ N - b ^ N ∈ p.asIdeal ^ depth p := by |
| 85 | classical |
| 86 | let Q (p : S) := 𝓞 E ⧸ p.val.asIdeal ^ depth p.val |
| 87 | let (p : S) : Finite (Q p) := |
| 88 | Ring.HasFiniteQuotients.finiteQuotient |
| 89 | (pow_ne_zero _ p.val.prime.ne_zero) |
| 90 | let G := (p : S) → (Q p)ˣ |
| 91 | let ua : G := fun p => |
| 92 | (Ideal.Quotient.isUnit_mk_pow_of_notMem p.val.asIdeal |
| 93 | (ha p.val p.property)).unit |
| 94 | let ub : G := fun p => |
| 95 | (Ideal.Quotient.isUnit_mk_pow_of_notMem p.val.asIdeal |
| 96 | (hb p.val p.property)).unit |
| 97 | have hPow (g : G) (p : S) : g p ^ Nat.card G = 1 := |
| 98 | congrFun (pow_card_eq_one' (x := g)) p |
| 99 | refine ⟨Nat.card G, Nat.card_pos, ?_⟩ |
| 100 | intro p hp |
| 101 | have hea := congrArg Units.val (hPow ua ⟨p, hp⟩) |
| 102 | have heb := congrArg Units.val (hPow ub ⟨p, hp⟩) |
| 103 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 104 | simp only [map_sub, map_pow] |
| 105 | have hea' : Ideal.Quotient.mk (p.asIdeal ^ depth p) a ^ Nat.card G = 1 := by |
| 106 | simpa only [Pi.pow_apply, Units.val_pow_eq_pow_val, Pi.one_apply, |
| 107 | Units.val_one, ua, IsUnit.unit_spec] using hea |
| 108 | have heb' : Ideal.Quotient.mk (p.asIdeal ^ depth p) b ^ Nat.card G = 1 := by |
| 109 | simpa only [Pi.pow_apply, Units.val_pow_eq_pow_val, Pi.one_apply, |
| 110 | Units.val_one, ub, IsUnit.unit_spec] using heb |
| 111 | rw [hea', heb', sub_self] |
| 112 | |
| 113 | /-- The integral congruence becomes a valuation bound on the ratio. -/ |
| 114 | lemma ratio_powers_approximate_one |
| 115 | (S : Finset (HeightOneSpectrum (𝓞 E))) |
| 116 | (depth : HeightOneSpectrum (𝓞 E) → ℕ) |
| 117 | (a b : 𝓞 E) (hb0 : b ≠ 0) |
| 118 | (ha : ∀ p ∈ S, a ∉ p.asIdeal) |
| 119 | (hb : ∀ p ∈ S, b ∉ p.asIdeal) : |
| 120 | ∃ N : ℕ, 0 < N ∧ ∀ p ∈ S, |
| 121 | p.valuation E (((a : E) / (b : E)) ^ N - 1) ≤ |
| 122 | WithZero.exp (-(depth p : ℤ)) := by |
| 123 | obtain ⟨N, hN, hcong⟩ := simultaneous_power_congruence S depth a b ha hb |
| 124 | refine ⟨N, hN, ?_⟩ |
| 125 | intro p hp |
| 126 | have hbE : (b : E) ≠ 0 := by exact_mod_cast hb0 |
| 127 | have hratio : ((a : E) / (b : E)) ^ N - 1 = |
| 128 | ((a ^ N - b ^ N : 𝓞 E) : E) / (b : E) ^ N := by |
| 129 | push_cast |
| 130 | rw [div_pow] |
| 131 | field_simp |
| 132 | have hbval : p.valuation E (b : E) = 1 := |
| 133 | (p.valuation_eq_one_iff_notMem).mpr (hb p hp) |
| 134 | rw [hratio, map_div₀, map_pow, hbval, one_pow, div_one, |
| 135 | p.valuation_of_algebraMap] |
| 136 | exact (p.intValuation_le_pow_iff_mem _ _).mpr (hcong p hp) |
| 137 | |
| 138 | /-- NormOneApproximation, conditional on the finiteness assertion of Finiteness. -/ |
| 139 | theorem exists_norm_one_scalar |
| 140 | [Algebra ℚ E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 141 | (hFiniteness_classGroup_finite : Finite (ClassGroup (𝓞 E))) |
| 142 | (w wbar : HeightOneSpectrum (𝓞 E)) |
| 143 | (hconj : wbar.asIdeal = |
| 144 | Ideal.map |
| 145 | (NumberField.IsCMField.ringOfIntegersComplexConj E).toRingHom |
| 146 | w.asIdeal) |
| 147 | (hsplit : w ≠ wbar) : |
| 148 | ∃ (r : Eˣ) (M : ℕ), |
| 149 | 0 < M ∧ |
| 150 | (r : E) * NumberField.IsCMField.complexConj E (r : E) = 1 ∧ |
| 151 | w.valuation E (r : E) = WithZero.exp (-(M : ℤ)) ∧ |
| 152 | wbar.valuation E (r : E) = WithZero.exp (M : ℤ) ∧ |
| 153 | (∀ p : HeightOneSpectrum (𝓞 E), |
| 154 | p ≠ w → p ≠ wbar → p.valuation E (r : E) = 1) ∧ |
| 155 | (∀ (S : Finset (HeightOneSpectrum (𝓞 E))) |
| 156 | (depth : HeightOneSpectrum (𝓞 E) → ℕ), |
| 157 | w ∉ S → wbar ∉ S → |
| 158 | ∃ N : ℕ, 0 < N ∧ |
| 159 | ∀ p ∈ S, |
| 160 | p.valuation E ((r : E) ^ N - 1) ≤ |
| 161 | WithZero.exp (-(depth p : ℤ))) := by |
| 162 | obtain ⟨M, a, hM, ha, hspan⟩ := principal_prime_power hFiniteness_classGroup_finite w |
| 163 | let b := NumberField.IsCMField.ringOfIntegersComplexConj E a |
| 164 | have hb : b ≠ 0 := by |
| 165 | intro hz |
| 166 | apply ha |
| 167 | apply (NumberField.IsCMField.ringOfIntegersComplexConj E).injective |
| 168 | simpa only [map_zero] using hz |
| 169 | have hspanb : wbar.asIdeal ^ M = Ideal.span {b} := by |
| 170 | rw [hconj, ← Ideal.map_pow, hspan, Ideal.map_span, Set.image_singleton] |
| 171 | rfl |
| 172 | have haE : (a : E) ≠ 0 := by exact_mod_cast ha |
| 173 | have hbE : (b : E) ≠ 0 := by exact_mod_cast hb |
| 174 | let r : Eˣ := Units.mk0 ((a : E) / (b : E)) (div_ne_zero haE hbE) |
| 175 | have hca : NumberField.IsCMField.complexConj E (a : E) = (b : E) := rfl |
| 176 | have hcb : NumberField.IsCMField.complexConj E (b : E) = (a : E) := by |
| 177 | rw [← hca, NumberField.IsCMField.complexConj_apply_apply] |
| 178 | have hwa := valuation_generator_self w M a ha hspan |
| 179 | have hwb := valuation_generator_other wbar w M b hspanb hsplit |
| 180 | have hwbara := valuation_generator_other w wbar M a hspan (Ne.symm hsplit) |
| 181 | have hwbarb := valuation_generator_self wbar M b hb hspanb |
| 182 | refine ⟨r, M, hM, ?_, ?_, ?_, ?_, ?_⟩ |
| 183 | · change (a : E) / (b : E) * |
| 184 | NumberField.IsCMField.complexConj E ((a : E) / (b : E)) = 1 |
| 185 | rw [map_div₀, hca, hcb] |
| 186 | field_simp |
| 187 | · change w.valuation E ((a : E) / (b : E)) = _ |
| 188 | rw [map_div₀, w.valuation_of_algebraMap, w.valuation_of_algebraMap, |
| 189 | hwa, hwb, div_one] |
| 190 | · change wbar.valuation E ((a : E) / (b : E)) = _ |
| 191 | rw [map_div₀, wbar.valuation_of_algebraMap, wbar.valuation_of_algebraMap, |
| 192 | hwbara, hwbarb, one_div, WithZero.exp_neg, inv_inv] |
| 193 | · intro p hpw hpwbar |
| 194 | change p.valuation E ((a : E) / (b : E)) = 1 |
| 195 | rw [map_div₀, p.valuation_of_algebraMap, p.valuation_of_algebraMap, |
| 196 | valuation_generator_other w p M a hspan hpw, |
| 197 | valuation_generator_other wbar p M b hspanb hpwbar, div_one] |
| 198 | · intro S depth hwS hwbarS |
| 199 | apply ratio_powers_approximate_one S depth a b hb |
| 200 | · intro p hp |
| 201 | apply p.intValuation_eq_one_iff.mp |
| 202 | apply valuation_generator_other w p M a hspan |
| 203 | rintro rfl |
| 204 | exact hwS hp |
| 205 | · intro p hp |
| 206 | apply p.intValuation_eq_one_iff.mp |
| 207 | apply valuation_generator_other wbar p M b hspanb |
| 208 | rintro rfl |
| 209 | exact hwbarS hp |
| 210 | |
| 211 | theorem exists_norm_one_scalar_unconditional |
| 212 | [Algebra ℚ E] [NumberField.IsCMField E] [IsGalois ℚ E] |
| 213 | (w wbar : HeightOneSpectrum (𝓞 E)) |
| 214 | (hconj : wbar.asIdeal = |
| 215 | Ideal.map |
| 216 | (NumberField.IsCMField.ringOfIntegersComplexConj E).toRingHom |
| 217 | w.asIdeal) |
| 218 | (hsplit : w ≠ wbar) : |
| 219 | ∃ (r : Eˣ) (M : ℕ), |
| 220 | 0 < M ∧ |
| 221 | (r : E) * NumberField.IsCMField.complexConj E (r : E) = 1 ∧ |
| 222 | w.valuation E (r : E) = WithZero.exp (-(M : ℤ)) ∧ |
| 223 | wbar.valuation E (r : E) = WithZero.exp (M : ℤ) ∧ |
| 224 | (∀ p : HeightOneSpectrum (𝓞 E), |
| 225 | p ≠ w → p ≠ wbar → p.valuation E (r : E) = 1) ∧ |
| 226 | (∀ (S : Finset (HeightOneSpectrum (𝓞 E))) |
| 227 | (depth : HeightOneSpectrum (𝓞 E) → ℕ), |
| 228 | w ∉ S → wbar ∉ S → |
| 229 | ∃ N : ℕ, 0 < N ∧ |
| 230 | ∀ p ∈ S, |
| 231 | p.valuation E ((r : E) ^ N - 1) ≤ |
| 232 | WithZero.exp (-(depth p : ℤ))) := by |
| 233 | exact exists_norm_one_scalar |
| 234 | (OAI.NumberTheory.ClassGroup.Finiteness.classGroup_finite E) w wbar hconj hsplit |
| 235 | |
| 236 | end |
| 237 | |
| 238 | end OAI.NumberTheory.CMField.NormOneApproximation.Construction |