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.AlgebraicGeometry.PELModuli.CMPoints.LocalPadic |
| 2 | import Mathlib.NumberTheory.NumberField.Ideal.Basic |
| 3 | import Mathlib.NumberTheory.NumberField.Completion.FinitePlace |
| 4 | |
| 5 | /-! # Place Exclusion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.PlaceExclusion.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! One positive rational integer excludes any finite set of number-field |
| 12 | places, uniformly for every embedding into a rational p-adic field. -/ |
| 13 | |
| 14 | open scoped Classical BigOperators |
| 15 | open _root_.NumberField IsDedekindDomain Filter |
| 16 | |
| 17 | variable (F : Type) [Field F] [NumberField F] |
| 18 | |
| 19 | def bound (S : Finset (HeightOneSpectrum (𝓞 F))) : ℕ := ∏ v ∈ S, v.asIdeal.absNorm |
| 20 | |
| 21 | theorem bound_pos (S : Finset (HeightOneSpectrum (𝓞 F))) : 0 < bound F S := by |
| 22 | apply Finset.prod_pos |
| 23 | intro v _ |
| 24 | exact lt_trans Nat.zero_lt_one (HeightOneSpectrum.one_lt_absNorm v) |
| 25 | |
| 26 | theorem embedding_not_mem (S : Finset (HeightOneSpectrum (𝓞 F))) |
| 27 | {q : ℕ} [Fact q.Prime] (hq : Nat.Coprime q (bound F S)) (f : F →+* ℚ_[q]) : |
| 28 | PELModuli.CMPoints.LocalPadic.embeddingPlace f ∉ S := by |
| 29 | intro hv |
| 30 | have hm := (PELModuli.CMPoints.LocalPadic.embeddingPlace f).asIdeal.absNorm_mem |
| 31 | change PELModuli.CMPoints.LocalPadic.embeddingResidue f |
| 32 | ((PELModuli.CMPoints.LocalPadic.embeddingPlace f).asIdeal.absNorm : 𝓞 F) = 0 at hm |
| 33 | rw [map_natCast] at hm |
| 34 | have hd : q ∣ (PELModuli.CMPoints.LocalPadic.embeddingPlace f).asIdeal.absNorm := |
| 35 | (ZMod.natCast_eq_zero_iff _ _).mp hm |
| 36 | have hb : q ∣ bound F S := hd.trans (Finset.dvd_prod_of_mem (fun v => v.asIdeal.absNorm) hv) |
| 37 | have hq1 : q ∣ 1 := by simpa only [hq.gcd_eq_one] using Nat.dvd_gcd (dvd_refl q) hb |
| 38 | exact (Fact.out : q.Prime).ne_one (Nat.dvd_one.mp hq1) |
| 39 | |
| 40 | theorem exists_prime_bound (P : HeightOneSpectrum (𝓞 F) → Prop) (hP : ∀ᶠ v in Filter.cofinite, P v) : |
| 41 | ∃ N : ℕ, 0 < N ∧ ∀ (q : ℕ) [Fact q.Prime], Nat.Coprime q N → |
| 42 | ∀ f : F →+* ℚ_[q], P (PELModuli.CMPoints.LocalPadic.embeddingPlace f) := by |
| 43 | have hfinite : {v : HeightOneSpectrum (𝓞 F) | ¬ P v}.Finite := Filter.eventually_cofinite.mp hP |
| 44 | let S := hfinite.toFinset |
| 45 | refine ⟨bound F S, bound_pos F S, ?_⟩ |
| 46 | intro q _ hq f |
| 47 | by_contra h |
| 48 | have hm : PELModuli.CMPoints.LocalPadic.embeddingPlace f ∈ S := hfinite.mem_toFinset.mpr h |
| 49 | exact embedding_not_mem F S hq f hm |
| 50 | |
| 51 | theorem exists_embedding_bound {K : Type} [Field K] (j : F →+* K) |
| 52 | (P : HeightOneSpectrum (𝓞 F) → Prop) (hP : ∀ᶠ v in Filter.cofinite, P v) : |
| 53 | ∃ N : ℕ, 0 < N ∧ ∀ (q : ℕ) [Fact q.Prime], Nat.Coprime q N → |
| 54 | ∀ f : K →+* ℚ_[q], P (PELModuli.CMPoints.LocalPadic.embeddingPlace (f.comp j)) := by |
| 55 | obtain ⟨N, hN, h⟩ := exists_prime_bound F P hP |
| 56 | exact ⟨N, hN, fun q _ hq f => h q hq (f.comp j)⟩ |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Finite.PlaceExclusion.CM |