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.Quaternion.Arithmetic.PrimeLocalIntegral |
| 2 | import Mathlib.Data.Nat.ChineseRemainder |
| 3 | |
| 4 | /-! # Prime Mask Exponentials -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.PrimeMaskExponentials |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Chinese remainders give sequences of nonnegative integers converging |
| 13 | to one at a chosen residue characteristic and to zero at the others. -/ |
| 14 | |
| 15 | open scoped Classical _root_.NumberField |
| 16 | open IsDedekindDomain Filter _root_.Topology |
| 17 | |
| 18 | variable {F : Type} [Field F] [NumberField F] |
| 19 | |
| 20 | theorem natCast_sub_norm_le_of_modEq (v : HeightOneSpectrum (𝓞 F)) |
| 21 | {a b j : ℕ} (h : a ≡ b [MOD LocalCompletion.residuePrime v ^ j]) : |
| 22 | ‖(a : v.adicCompletion F) - (b : v.adicCompletion F)‖ ≤ |
| 23 | ‖(LocalCompletion.residuePrime v : v.adicCompletion F)‖ ^ j := by |
| 24 | obtain ⟨z, hz⟩ := h.symm.dvd |
| 25 | have he : (a : v.adicCompletion F) - (b : v.adicCompletion F) = |
| 26 | (LocalCompletion.residuePrime v : v.adicCompletion F) ^ j * (z : v.adicCompletion F) := by |
| 27 | have hh := congrArg (Int.castRingHom (v.adicCompletion F)) hz |
| 28 | simpa only [map_sub, map_mul, Int.coe_castRingHom, Int.cast_pow, |
| 29 | Int.cast_natCast, Nat.cast_pow] using hh |
| 30 | rw [he, norm_mul, norm_pow] |
| 31 | exact mul_le_of_le_one_right (pow_nonneg (norm_nonneg _) _) (PrimeLocalIntegral.intCast_norm_le_one v z) |
| 32 | |
| 33 | theorem natCast_tendsto_of_modEq_powers (v : HeightOneSpectrum (𝓞 F)) |
| 34 | (m : ℕ → ℕ) (a : ℕ) (h : ∀ j, m j ≡ a [MOD LocalCompletion.residuePrime v ^ j]) : |
| 35 | Tendsto (fun j => (m j : v.adicCompletion F)) atTop (𝓝 (a : v.adicCompletion F)) := by |
| 36 | apply tendsto_iff_norm_sub_tendsto_zero.mpr |
| 37 | apply squeeze_zero (fun j => norm_nonneg _) (fun j => natCast_sub_norm_le_of_modEq v (h j)) |
| 38 | exact tendsto_pow_atTop_nhds_zero_of_lt_one (norm_nonneg _) |
| 39 | ((LocalCompletion.natCast_norm_lt_one_iff v _).mpr dvd_rfl) |
| 40 | |
| 41 | theorem exists_natCast_prime_mask_sequence {ι : Type*} [Fintype ι] |
| 42 | (v : ι → HeightOneSpectrum (𝓞 F)) (q : ℕ) : |
| 43 | ∃ m : ℕ → ℕ, ∀ i, |
| 44 | Tendsto (fun j => (m j : (v i).adicCompletion F)) atTop |
| 45 | (𝓝 (if LocalCompletion.residuePrime (v i) = q then 1 else 0)) := by |
| 46 | let P := Finset.univ.image (fun i => LocalCompletion.residuePrime (v i)) |
| 47 | have hP : ∀ p ∈ P, p.Prime := by |
| 48 | intro p hp |
| 49 | obtain ⟨i, _, rfl⟩ := Finset.mem_image.mp hp |
| 50 | exact LocalCompletion.residuePrime_prime (v i) |
| 51 | let a : ℕ → ℕ := fun p => if p = q then 1 else 0 |
| 52 | have hex (j : ℕ) : ∃ m : ℕ, ∀ p ∈ P, m ≡ a p [MOD p ^ j] := by |
| 53 | let r := Nat.chineseRemainderOfFinset a (fun p => p ^ j) P |
| 54 | (fun p hp => pow_ne_zero _ (hP p hp).ne_zero) |
| 55 | (by |
| 56 | intro p hp r hr hpr |
| 57 | exact Nat.coprime_pow_primes j j (hP p hp) (hP r hr) hpr) |
| 58 | exact ⟨r.val, r.property⟩ |
| 59 | choose m hm using hex |
| 60 | refine ⟨m, fun i => ?_⟩ |
| 61 | have hi : LocalCompletion.residuePrime (v i) ∈ P := Finset.mem_image.mpr ⟨i, Finset.mem_univ _, rfl⟩ |
| 62 | have ht := natCast_tendsto_of_modEq_powers (v i) m (a (LocalCompletion.residuePrime (v i))) |
| 63 | (fun j => hm j _ hi) |
| 64 | simpa only [a, apply_ite, Nat.cast_one, Nat.cast_zero] using ht |
| 65 | |
| 66 | end |
| 67 | |
| 68 | /-! Closed subgroups of a finite local product contain the residue-prime |
| 69 | blocks of sufficiently small exponential elements. Integer powers and |
| 70 | Chinese remainders separate the blocks. -/ |
| 71 | |
| 72 | open scoped Classical _root_.NumberField |
| 73 | open IsDedekindDomain NormedSpace Filter _root_.Topology |
| 74 | |
| 75 | variable {F : Type} [Field F] [NumberField F] |
| 76 | |
| 77 | theorem prime_mask_exp_mem_closed_submonoid {ι : Type*} [Fintype ι] |
| 78 | (v : ι → HeightOneSpectrum (𝓞 F)) {A : ι → Type*} |
| 79 | [∀ i, NormedRing (A i)] [∀ i, NormedAlgebra ((v i).adicCompletion F) (A i)] |
| 80 | [∀ i, CompleteSpace (A i)] |
| 81 | (H : Submonoid (∀ i, A i)) (hH : IsClosed (H : Set (∀ i, A i))) |
| 82 | (X : ∀ i, A i) |
| 83 | (hX : ∀ i, X i ∈ Metric.eball 0 (expSeries ((v i).adicCompletion F) (A i)).radius) |
| 84 | (hexp : (fun i => exp (X i)) ∈ H) (q : ℕ) : |
| 85 | (fun i => if LocalCompletion.residuePrime (v i) = q then exp (X i) else 1) ∈ H := by |
| 86 | obtain ⟨m, hm⟩ := exists_natCast_prime_mask_sequence v q |
| 87 | let Y : ∀ i, A i := fun i => if LocalCompletion.residuePrime (v i) = q then exp (X i) else 1 |
| 88 | have ht : Tendsto (fun j => fun i => exp ((m j : (v i).adicCompletion F) • X i)) |
| 89 | atTop (𝓝 Y) := by |
| 90 | apply tendsto_pi_nhds.mpr |
| 91 | intro i |
| 92 | let : CharZero ((v i).adicCompletion F) := Algebra.charZero_of_charZero F _ |
| 93 | have hs := (hm i).smul (tendsto_const_nhds (x := X i)) |
| 94 | have hb : (if LocalCompletion.residuePrime (v i) = q then (1 : (v i).adicCompletion F) else 0) • X i ∈ |
| 95 | Metric.eball 0 (expSeries ((v i).adicCompletion F) (A i)).radius := by |
| 96 | split_ifs |
| 97 | · simpa using hX i |
| 98 | · simpa using LocalCompletion.finite_expSeries_radius_pos (v i) (A i) |
| 99 | have he := (analyticAt_exp_of_mem_ball _ hb).continuousAt.tendsto.comp hs |
| 100 | simpa only [Y, ite_smul, one_smul, zero_smul, apply_ite, exp_zero, Function.comp_def] using he |
| 101 | apply hH.mem_of_tendsto ht |
| 102 | apply Filter.Eventually.of_forall |
| 103 | intro j |
| 104 | have he : (fun i => exp ((m j : (v i).adicCompletion F) • X i)) = |
| 105 | (fun i => exp (X i)) ^ m j := by |
| 106 | funext i |
| 107 | rw [Nat.cast_smul_eq_nsmul, PrimeLocalIntegral.finite_exp_nsmul (v i) _ (hX i)] |
| 108 | rfl |
| 109 | rw [he] |
| 110 | exact H.pow_mem hexp _ |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.Quaternion.Arithmetic.PrimeMaskExponentials |