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.RepresentationTheory.Hecke.RadialDilation.FiniteNormPadicComparison |
| 2 | import OAI.RepresentationTheory.Hecke.RadialDilation.FiniteCompletionNorm |
| 3 | |
| 4 | /-! # Padic Embedding Mem -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Hecke.RadialDilation.PadicEmbeddingMem.Realization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Valuation bounds on conjugates imply p-adic bounds for the actual rational scalar matrix. -/ |
| 13 | |
| 14 | open scoped Classical _root_.Matrix |
| 15 | open IsDedekindDomain _root_.NumberField |
| 16 | |
| 17 | theorem rational_matrix_power_bound_transfer |
| 18 | (E : Type*) [Field E] [NumberField E] [Algebra ℚ E] (w : HeightOneSpectrum (𝓞 E)) |
| 19 | (p : ℕ) [Fact p.Prime] (hpw : (p : 𝓞 E) ∈ w.asIdeal) |
| 20 | {I : Type*} [Fintype I] [DecidableEq I] (A : Matrix I I ℚ) (R : ℝ) |
| 21 | (hR : ∀ (N : ℕ) i j, ‖(A.map (algebraMap ℚ (w.adicCompletion E)) ^ N) i j‖ ≤ R) : |
| 22 | ∃ T : ℝ, ∀ (N : ℕ) i j, ‖(A.map (algebraMap ℚ ℚ_[p]) ^ N) i j‖ ≤ T := by |
| 23 | obtain ⟨c, hc, he⟩ := FiniteNormPadicComparison.Realization.finite_norm_padic_rpow E w p hpw |
| 24 | refine ⟨R ^ c, ?_⟩ |
| 25 | intro N i j |
| 26 | rw [← Matrix.map_pow, Matrix.map_apply] |
| 27 | change ‖((A ^ N) i j : ℚ_[p])‖ ≤ _ |
| 28 | rw [← he] |
| 29 | have h := hR N i j |
| 30 | rw [← Matrix.map_pow, Matrix.map_apply] at h |
| 31 | exact Real.rpow_le_rpow (norm_nonneg _) h hc.le |
| 32 | |
| 33 | theorem rational_scalar_padic_power_bounds |
| 34 | (E : Type*) [Field E] [NumberField E] [Algebra ℚ E] [IsGalois ℚ E] |
| 35 | (w : HeightOneSpectrum (𝓞 E)) (p : ℕ) [Fact p.Prime] |
| 36 | (hpw : (p : 𝓞 E) ∈ w.asIdeal) {I : Type*} [Fintype I] [DecidableEq I] |
| 37 | (e : (Fin 3 → E) ≃ₗ[ℚ] (I → ℚ)) (r : E) |
| 38 | (hr : ∀ σ : E ≃ₐ[ℚ] E, w.valuation E (σ r) ≤ 1) : |
| 39 | ∃ R : ℝ, ∀ (N : ℕ) i j, |
| 40 | ‖((RationalCoordinates.Realization.rationalScalarMatrix E e r).map (algebraMap ℚ ℚ_[p]) ^ N) i j‖ ≤ R := by |
| 41 | obtain ⟨R, hR⟩ := FiniteCompletionNorm.Realization.rational_scalar_finite_completion_bounds E w e r hr |
| 42 | exact rational_matrix_power_bound_transfer E w p hpw _ R hR |
| 43 | |
| 44 | end |
| 45 | |
| 46 | section |
| 47 | |
| 48 | /-! Pulling back a finite prime transports local integrality of the CM scalar. -/ |
| 49 | |
| 50 | open scoped Classical |
| 51 | open IsDedekindDomain _root_.NumberField |
| 52 | |
| 53 | variable (E : Type*) [Field E] [NumberField E] [Algebra ℚ E] |
| 54 | |
| 55 | def galoisPrimePullback (w : HeightOneSpectrum (𝓞 E)) (σ : E ≃ₐ[ℚ] E) : HeightOneSpectrum (𝓞 E) where |
| 56 | asIdeal := Ideal.comap (RingOfIntegers.mapRingEquiv σ.toRingEquiv).toRingHom w.asIdeal |
| 57 | isPrime := w.isPrime.comap _ |
| 58 | ne_bot := fun h => w.ne_bot (Ideal.eq_bot_of_comap_eq_bot' |
| 59 | (RingOfIntegers.mapRingEquiv σ.toRingEquiv).surjective h) |
| 60 | |
| 61 | omit [NumberField E] in |
| 62 | theorem galoisPrimePullback_nat_mem (w : HeightOneSpectrum (𝓞 E)) (σ : E ≃ₐ[ℚ] E) (p : ℕ) : |
| 63 | (p : 𝓞 E) ∈ (galoisPrimePullback E w σ).asIdeal ↔ (p : 𝓞 E) ∈ w.asIdeal := by |
| 64 | change (RingOfIntegers.mapRingEquiv σ.toRingEquiv) (p : 𝓞 E) ∈ w.asIdeal ↔ _ |
| 65 | rw [map_natCast] |
| 66 | |
| 67 | theorem valuation_conjugate_le_one (w : HeightOneSpectrum (𝓞 E)) (σ : E ≃ₐ[ℚ] E) |
| 68 | (r : E) (hr : (galoisPrimePullback E w σ).valuation E r ≤ 1) : |
| 69 | w.valuation E (σ r) ≤ 1 := by |
| 70 | obtain ⟨n, d, hnd⟩ := (galoisPrimePullback E w σ).exists_primeCompl_mul_eq_of_integer r hr |
| 71 | let σR := RingOfIntegers.mapRingEquiv σ.toRingEquiv |
| 72 | have hd : σR d.val ∉ w.asIdeal := d.property |
| 73 | have hdv : w.valuation E (σ (algebraMap (𝓞 E) E d.val)) = 1 := |
| 74 | (w.valuation_eq_one_iff_notMem).mpr hd |
| 75 | have hn : w.valuation E (σ (algebraMap (𝓞 E) E n)) ≤ 1 := w.valuation_le_one (σR n) |
| 76 | have he := congrArg (w.valuation E) (congrArg σ hnd) |
| 77 | simp only [map_mul] at he |
| 78 | rw [hdv, mul_one] at he |
| 79 | exact he.trans_le hn |
| 80 | |
| 81 | omit [NumberField E] [Algebra ℚ E] in |
| 82 | theorem finite_prime_natPrime_unique (w : HeightOneSpectrum (𝓞 E)) |
| 83 | (p q : ℕ) [Fact p.Prime] [Fact q.Prime] |
| 84 | (hp : (p : 𝓞 E) ∈ w.asIdeal) (hq : (q : 𝓞 E) ∈ w.asIdeal) : p = q := by |
| 85 | by_contra hpq |
| 86 | have hcop : Nat.Coprime p q := (Fact.out : p.Prime).coprime_iff_not_dvd.mpr (by |
| 87 | intro hd |
| 88 | exact hpq (((Nat.dvd_prime (Fact.out : q.Prime)).mp hd).resolve_left (Fact.out : p.Prime).ne_one)) |
| 89 | obtain ⟨a, b, hab⟩ := hcop.cast (R := 𝓞 E) |
| 90 | have h1 := w.asIdeal.add_mem (w.asIdeal.mul_mem_left a hp) (w.asIdeal.mul_mem_left b hq) |
| 91 | rw [hab] at h1 |
| 92 | exact w.isPrime.ne_top (Ideal.eq_top_of_isUnit_mem w.asIdeal h1 isUnit_one) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | section |
| 97 | |
| 98 | /-! Two-prime support gives local integrality of every conjugate away from the supporting rational prime. -/ |
| 99 | |
| 100 | open scoped Classical |
| 101 | open IsDedekindDomain _root_.NumberField |
| 102 | |
| 103 | theorem conjugates_integral_away_support |
| 104 | (E : Type*) [Field E] [NumberField E] [Algebra ℚ E] |
| 105 | (q p : ℕ) [Fact q.Prime] [Fact p.Prime] (hpq : p ≠ q) |
| 106 | (w₀ w₁ w : HeightOneSpectrum (𝓞 E)) |
| 107 | (hq₀ : (q : 𝓞 E) ∈ w₀.asIdeal) (hq₁ : (q : 𝓞 E) ∈ w₁.asIdeal) |
| 108 | (hpw : (p : 𝓞 E) ∈ w.asIdeal) (r : E) |
| 109 | (hr : ∀ v : HeightOneSpectrum (𝓞 E), v ≠ w₀ → v ≠ w₁ → v.valuation E r = 1) : |
| 110 | ∀ σ : E ≃ₐ[ℚ] E, w.valuation E (σ r) ≤ 1 := by |
| 111 | intro σ |
| 112 | apply valuation_conjugate_le_one E w σ r |
| 113 | have hwp : (p : 𝓞 E) ∈ (galoisPrimePullback E w σ).asIdeal := |
| 114 | (galoisPrimePullback_nat_mem E w σ p).mpr hpw |
| 115 | have hne₀ : galoisPrimePullback E w σ ≠ w₀ := by |
| 116 | intro he |
| 117 | rw [he] at hwp |
| 118 | exact hpq (finite_prime_natPrime_unique E w₀ p q hwp hq₀) |
| 119 | have hne₁ : galoisPrimePullback E w σ ≠ w₁ := by |
| 120 | intro he |
| 121 | rw [he] at hwp |
| 122 | exact hpq (finite_prime_natPrime_unique E w₁ p q hwp hq₁) |
| 123 | exact (hr _ hne₀ hne₁).le |
| 124 | |
| 125 | theorem rational_scalar_away_support_power_bounds |
| 126 | (E : Type*) [Field E] [NumberField E] [Algebra ℚ E] [IsGalois ℚ E] |
| 127 | (q p : ℕ) [Fact q.Prime] [Fact p.Prime] (hpq : p ≠ q) |
| 128 | (w₀ w₁ w : HeightOneSpectrum (𝓞 E)) |
| 129 | (hq₀ : (q : 𝓞 E) ∈ w₀.asIdeal) (hq₁ : (q : 𝓞 E) ∈ w₁.asIdeal) |
| 130 | (hpw : (p : 𝓞 E) ∈ w.asIdeal) {I : Type*} [Fintype I] [DecidableEq I] |
| 131 | (e : (Fin 3 → E) ≃ₗ[ℚ] (I → ℚ)) (r : E) |
| 132 | (hr : ∀ v : HeightOneSpectrum (𝓞 E), v ≠ w₀ → v ≠ w₁ → v.valuation E r = 1) : |
| 133 | ∃ R : ℝ, ∀ (N : ℕ) i j, |
| 134 | ‖((RationalCoordinates.Realization.rationalScalarMatrix E e r).map (algebraMap ℚ ℚ_[p]) ^ N) i j‖ ≤ R := |
| 135 | rational_scalar_padic_power_bounds E w p hpw e r |
| 136 | (conjugates_integral_away_support E q p hpq w₀ w₁ w hq₀ hq₁ hpw r hr) |
| 137 | |
| 138 | end |
| 139 | |
| 140 | section |
| 141 | |
| 142 | /-! Every rational prime has a finite prime above it in a number field. -/ |
| 143 | |
| 144 | open scoped Classical |
| 145 | open IsDedekindDomain _root_.NumberField |
| 146 | |
| 147 | theorem exists_finite_prime_above_rational (E : Type*) [Field E] [NumberField E] |
| 148 | (p : ℕ) [Fact p.Prime] : ∃ w : HeightOneSpectrum (𝓞 E), (p : 𝓞 E) ∈ w.asIdeal := by |
| 149 | let P : Ideal ℤ := Ideal.span {(p : ℤ)} |
| 150 | have hp0 : (p : ℤ) ≠ 0 := by exact_mod_cast (Fact.out : p.Prime).ne_zero |
| 151 | let : P.IsPrime := (Ideal.span_singleton_prime hp0).mpr |
| 152 | (Nat.prime_iff_prime_int.mp (Fact.out : p.Prime)) |
| 153 | obtain ⟨Q, hQ, hQP⟩ := Ideal.exists_ideal_over_prime_of_isIntegral_of_isDomain (S := 𝓞 E) P (by |
| 154 | rw [(RingHom.injective_iff_ker_eq_bot _).mp (FaithfulSMul.algebraMap_injective ℤ (𝓞 E))] |
| 155 | exact bot_le) |
| 156 | have hpQ : (p : 𝓞 E) ∈ Q := by |
| 157 | have hpP : (p : ℤ) ∈ P := Ideal.subset_span (Set.mem_singleton _) |
| 158 | rw [← hQP] at hpP |
| 159 | change algebraMap ℤ (𝓞 E) (p : ℤ) ∈ Q at hpP |
| 160 | simpa only [map_natCast] using hpP |
| 161 | have hQ0 : Q ≠ ⊥ := by |
| 162 | intro he |
| 163 | rw [he, Ideal.mem_bot] at hpQ |
| 164 | exact (Nat.cast_ne_zero.mpr (Fact.out : p.Prime).ne_zero) hpQ |
| 165 | exact ⟨⟨Q, hQ, hQ0⟩, hpQ⟩ |
| 166 | |
| 167 | theorem rational_scalar_all_away_power_bounds |
| 168 | (E : Type*) [Field E] [NumberField E] [Algebra ℚ E] [IsGalois ℚ E] |
| 169 | (q : ℕ) [Fact q.Prime] (w₀ w₁ : HeightOneSpectrum (𝓞 E)) |
| 170 | (hq₀ : (q : 𝓞 E) ∈ w₀.asIdeal) (hq₁ : (q : 𝓞 E) ∈ w₁.asIdeal) |
| 171 | {I : Type*} [Fintype I] [DecidableEq I] |
| 172 | (e : (Fin 3 → E) ≃ₗ[ℚ] (I → ℚ)) (r : E) |
| 173 | (hr : ∀ v : HeightOneSpectrum (𝓞 E), v ≠ w₀ → v ≠ w₁ → v.valuation E r = 1) : |
| 174 | ∀ (p : ℕ) [Fact p.Prime], p ≠ q → ∃ R : ℝ, ∀ (N : ℕ) i j, |
| 175 | ‖((RationalCoordinates.Realization.rationalScalarMatrix E e r).map (algebraMap ℚ ℚ_[p]) ^ N) i j‖ ≤ R := by |
| 176 | intro p hp hpq |
| 177 | obtain ⟨w, hpw⟩ := exists_finite_prime_above_rational E p |
| 178 | exact rational_scalar_away_support_power_bounds E q p hpq w₀ w₁ w hq₀ hq₁ hpw e r hr |
| 179 | |
| 180 | end |
| 181 | |
| 182 | section |
| 183 | |
| 184 | /-! A p-adic embedding carries algebraic integers into p-adic integers. -/ |
| 185 | |
| 186 | open scoped Classical |
| 187 | open IsDedekindDomain _root_.NumberField |
| 188 | |
| 189 | variable (q : ℕ) [Fact q.Prime] {E : Type*} [Field E] [Algebra ℚ E] |
| 190 | |
| 191 | theorem padic_embedding_integer_norm (σ : E →ₐ[ℚ] ℚ_[q]) (x : 𝓞 E) : ‖σ (x : E)‖ ≤ 1 := by |
| 192 | have hx : IsIntegral ℤ (σ (x : E)) := map_isIntegral_int σ.toRingHom x.property |
| 193 | have hxq : IsIntegral ℤ_[q] (σ (x : E)) := hx.tower_top |
| 194 | obtain ⟨y, hy⟩ := IsIntegrallyClosed.algebraMap_eq_of_integral hxq |
| 195 | rw [← hy] |
| 196 | exact y.property |
| 197 | |
| 198 | def padicEmbeddingIntegers (σ : E →ₐ[ℚ] ℚ_[q]) : 𝓞 E →+* ℤ_[q] where |
| 199 | toFun x := ⟨σ (x : E), padic_embedding_integer_norm q σ x⟩ |
| 200 | map_zero' := Subtype.ext (map_zero σ) |
| 201 | map_one' := Subtype.ext (map_one σ) |
| 202 | map_add' x y := Subtype.ext (map_add σ (x : E) (y : E)) |
| 203 | map_mul' x y := Subtype.ext (map_mul σ (x : E) (y : E)) |
| 204 | |
| 205 | theorem padicEmbeddingIntegers_mem_maximal (σ : E →ₐ[ℚ] ℚ_[q]) (x : 𝓞 E) : |
| 206 | padicEmbeddingIntegers q σ x ∈ IsLocalRing.maximalIdeal ℤ_[q] ↔ ‖σ (x : E)‖ < 1 := by |
| 207 | rw [IsLocalRing.mem_maximalIdeal] |
| 208 | change ¬IsUnit (padicEmbeddingIntegers q σ x) ↔ _ |
| 209 | rw [PadicInt.isUnit_iff] |
| 210 | change ¬‖σ (x : E)‖ = 1 ↔ ‖σ (x : E)‖ < 1 |
| 211 | exact ((lt_iff_le_and_ne).trans (and_iff_right (padic_embedding_integer_norm q σ x))).symm |
| 212 | |
| 213 | end |
| 214 | |
| 215 | section |
| 216 | |
| 217 | /-! The finite prime induced by an embedding into the p-adic field. -/ |
| 218 | |
| 219 | open scoped Classical |
| 220 | open IsDedekindDomain _root_.NumberField |
| 221 | |
| 222 | variable (q : ℕ) [Fact q.Prime] {E : Type*} [Field E] [Algebra ℚ E] |
| 223 | |
| 224 | def padicEmbeddingIdeal (σ : E →ₐ[ℚ] ℚ_[q]) : Ideal (𝓞 E) := |
| 225 | Ideal.comap (padicEmbeddingIntegers q σ) (IsLocalRing.maximalIdeal ℤ_[q]) |
| 226 | |
| 227 | theorem padicEmbeddingIdeal_mem (σ : E →ₐ[ℚ] ℚ_[q]) (x : 𝓞 E) : |
| 228 | x ∈ padicEmbeddingIdeal q σ ↔ ‖σ (x : E)‖ < 1 := |
| 229 | padicEmbeddingIntegers_mem_maximal q σ x |
| 230 | |
| 231 | theorem padicEmbeddingIdeal_contains_prime (σ : E →ₐ[ℚ] ℚ_[q]) : |
| 232 | (q : 𝓞 E) ∈ padicEmbeddingIdeal q σ := by |
| 233 | rw [padicEmbeddingIdeal_mem] |
| 234 | have h := Padic.norm_p_lt_one (p := q) |
| 235 | simpa only [map_natCast] using h |
| 236 | |
| 237 | def padicEmbeddingPrime (σ : E →ₐ[ℚ] ℚ_[q]) : HeightOneSpectrum (𝓞 E) where |
| 238 | asIdeal := padicEmbeddingIdeal q σ |
| 239 | isPrime := (inferInstance : (IsLocalRing.maximalIdeal ℤ_[q]).IsPrime).comap _ |
| 240 | ne_bot := by |
| 241 | intro he |
| 242 | have h := padicEmbeddingIdeal_contains_prime q σ |
| 243 | rw [he, Ideal.mem_bot] at h |
| 244 | have hq := congrArg (fun z : 𝓞 E => σ (z : E)) h |
| 245 | change σ (q : E) = σ 0 at hq |
| 246 | rw [map_natCast, map_zero] at hq |
| 247 | exact (Nat.cast_ne_zero.mpr (Fact.out : q.Prime).ne_zero) hq |
| 248 | |
| 249 | theorem padicEmbeddingPrime_contains_prime (σ : E →ₐ[ℚ] ℚ_[q]) : |
| 250 | (q : 𝓞 E) ∈ (padicEmbeddingPrime q σ).asIdeal := |
| 251 | padicEmbeddingIdeal_contains_prime q σ |
| 252 | |
| 253 | theorem padicEmbeddingPrime_mem (σ : E →ₐ[ℚ] ℚ_[q]) (x : 𝓞 E) : |
| 254 | x ∈ (padicEmbeddingPrime q σ).asIdeal ↔ ‖σ (x : E)‖ < 1 := |
| 255 | padicEmbeddingIdeal_mem q σ x |
| 256 | |
| 257 | theorem padicEmbeddingPrime_notMem (σ : E →ₐ[ℚ] ℚ_[q]) (x : 𝓞 E) : |
| 258 | x ∉ (padicEmbeddingPrime q σ).asIdeal ↔ ‖σ (x : E)‖ = 1 := by |
| 259 | rw [padicEmbeddingPrime_mem, not_lt] |
| 260 | exact ⟨fun h => le_antisymm (padic_embedding_integer_norm q σ x) h, fun h => h.ge⟩ |
| 261 | |
| 262 | end |
| 263 | |
| 264 | /-! The induced finite prime detects integrality under the p-adic embedding. -/ |
| 265 | |
| 266 | open scoped Classical |
| 267 | open IsDedekindDomain _root_.NumberField |
| 268 | |
| 269 | theorem valuation_le_one_of_prime_denominator |
| 270 | (E : Type*) [Field E] [NumberField E] (w : HeightOneSpectrum (𝓞 E)) |
| 271 | (r : E) (n d : 𝓞 E) (hd : d ∉ w.asIdeal) |
| 272 | (he : r * algebraMap (𝓞 E) E d = algebraMap (𝓞 E) E n) : w.valuation E r ≤ 1 := by |
| 273 | have h := congrArg (w.valuation E) he |
| 274 | rw [map_mul, (w.valuation_eq_one_iff_notMem).mpr hd, mul_one] at h |
| 275 | exact h.trans_le (w.valuation_le_one n) |
| 276 | |
| 277 | variable (q : ℕ) [Fact q.Prime] {E : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 278 | |
| 279 | theorem padicEmbedding_norm_le_one_of_valuation (σ : E →ₐ[ℚ] ℚ_[q]) (r : E) |
| 280 | (hr : (padicEmbeddingPrime q σ).valuation E r ≤ 1) : ‖σ r‖ ≤ 1 := by |
| 281 | obtain ⟨n, d, he⟩ := (padicEmbeddingPrime q σ).exists_primeCompl_mul_eq_of_integer r hr |
| 282 | have hd : ‖σ (d.val : E)‖ = 1 := (padicEmbeddingPrime_notMem q σ d.val).mp d.property |
| 283 | have h := congrArg norm (congrArg σ he) |
| 284 | simp only [map_mul, norm_mul] at h |
| 285 | rw [hd, mul_one] at h |
| 286 | exact h.trans_le (padic_embedding_integer_norm q σ n) |
| 287 | |
| 288 | theorem padicEmbedding_valuation_le_one_of_norm (σ : E →ₐ[ℚ] ℚ_[q]) (r : E) |
| 289 | (hr : ‖σ r‖ ≤ 1) : (padicEmbeddingPrime q σ).valuation E r ≤ 1 := by |
| 290 | obtain ⟨n, d, he | he⟩ := (padicEmbeddingPrime q σ).exists_primeCompl_mul_eq_or_mul_eq r |
| 291 | · exact valuation_le_one_of_prime_denominator E _ r n d.val d.property he |
| 292 | · have hd : ‖σ (d.val : E)‖ = 1 := (padicEmbeddingPrime_notMem q σ d.val).mp d.property |
| 293 | have h := congrArg norm (congrArg σ he) |
| 294 | simp only [map_mul, norm_mul] at h |
| 295 | rw [hd] at h |
| 296 | have hn : ‖σ (n : E)‖ = 1 := le_antisymm (padic_embedding_integer_norm q σ n) (by |
| 297 | rw [← h] |
| 298 | exact mul_le_of_le_one_left (norm_nonneg _) hr) |
| 299 | exact valuation_le_one_of_prime_denominator E _ r d.val n |
| 300 | ((padicEmbeddingPrime_notMem q σ n).mpr hn) he |
| 301 | |
| 302 | theorem padicEmbedding_valuation_le_one_iff (σ : E →ₐ[ℚ] ℚ_[q]) (r : E) : |
| 303 | (padicEmbeddingPrime q σ).valuation E r ≤ 1 ↔ ‖σ r‖ ≤ 1 := |
| 304 | ⟨padicEmbedding_norm_le_one_of_valuation q σ r, padicEmbedding_valuation_le_one_of_norm q σ r⟩ |
| 305 | |
| 306 | end |
| 307 | |
| 308 | end OAI.RepresentationTheory.Hecke.RadialDilation.PadicEmbeddingMem.Realization |