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.Data.Nat.Prime.Infinite |
| 2 | |
| 3 | /-! # Auxiliary Prime Level -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.AuxiliaryPrimeLevel |
| 6 | |
| 7 | section |
| 8 | |
| 9 | /-! A prime auxiliary level can be chosen coprime to both the prescribed |
| 10 | level and the positive polarization degree. -/ |
| 11 | |
| 12 | theorem exists_auxiliary_prime_level (D N : ℕ) (hD : 0 < D) (hN : 0 < N) : |
| 13 | ∃ p : ℕ, p.Prime ∧ 3 ≤ p ∧ Nat.Coprime p D ∧ Nat.Coprime p N := by |
| 14 | obtain ⟨p, hp, hprime⟩ := Nat.exists_infinite_primes (max 3 (D * N + 1)) |
| 15 | have hprod : Nat.Coprime p (D * N) := hprime.coprime_iff_not_dvd.mpr (fun h => by |
| 16 | have hle := Nat.le_of_dvd (Nat.mul_pos hD hN) h |
| 17 | omega) |
| 18 | exact ⟨p, hprime, (le_max_left _ _).trans hp, |
| 19 | hprod.coprime_dvd_right (dvd_mul_right D N), |
| 20 | hprod.coprime_dvd_right (dvd_mul_left N D)⟩ |
| 21 | |
| 22 | end |
| 23 | |
| 24 | /-! The auxiliary prime can simultaneously avoid the prescribed level |
| 25 | and polarization degree and exceed any fixed embedding bound. -/ |
| 26 | |
| 27 | theorem exists_auxiliary_prime_level_above (D N B : ℕ) (hD : 0 < D) (hN : 0 < N) : |
| 28 | ∃ p : ℕ, p.Prime ∧ 3 ≤ p ∧ Nat.Coprime p D ∧ Nat.Coprime p N ∧ B < p := by |
| 29 | obtain ⟨p, hp, hprime⟩ := Nat.exists_infinite_primes (max 3 (max (D * N + 1) (B + 1))) |
| 30 | have hprod : Nat.Coprime p (D * N) := hprime.coprime_iff_not_dvd.mpr (fun h => by |
| 31 | have hle := Nat.le_of_dvd (Nat.mul_pos hD hN) h |
| 32 | omega) |
| 33 | exact ⟨p, hprime, (le_max_left _ _).trans hp, |
| 34 | hprod.coprime_dvd_right (dvd_mul_right D N), |
| 35 | hprod.coprime_dvd_right (dvd_mul_left N D), by omega⟩ |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.AuxiliaryPrimeLevel |