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 |
| 2 | |
| 3 | /-! # Padic Integral Bound -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.PadicIntegralBound.Local |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A finite collection of number-field coefficients is integral under |
| 10 | every q-adic embedding for all sufficiently large rational primes. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | theorem finite_coefficients_padic_integral_bound |
| 15 | {E : Type*} [Field E] [NumberField E] |
| 16 | {I : Type*} [Fintype I] (a : I → E) : |
| 17 | ∃ N : ℕ, 0 < N ∧ ∀ (q : ℕ) [Fact q.Prime], N < q → |
| 18 | ∀ (σ : E →+* ℚ_[q]) (i : I), ‖σ (a i)‖ ≤ 1 := by |
| 19 | have hex (i : I) : ∃ m : nonZeroDivisors ℤ, IsIntegral ℤ ((m : ℤ) • a i) := by |
| 20 | exact IsIntegral.exists_multiple_integral_of_isLocalization |
| 21 | (nonZeroDivisors ℤ) (Rₘ := ℚ) (a i) (Algebra.IsIntegral.isIntegral (a i)) |
| 22 | choose m hm using hex |
| 23 | let N := 1 + ∑ i, (m i : ℤ).natAbs |
| 24 | refine ⟨N, Nat.add_pos_left Nat.zero_lt_one _, ?_⟩ |
| 25 | intro q hq hlarge σ i |
| 26 | have hmi : (m i : ℤ).natAbs < q := by |
| 27 | have hs : (m i : ℤ).natAbs ≤ ∑ j, (m j : ℤ).natAbs := |
| 28 | Finset.single_le_sum (fun j _ => Nat.zero_le (m j : ℤ).natAbs) (Finset.mem_univ i) |
| 29 | exact lt_of_le_of_lt (hs.trans (Nat.le_add_left _ _)) hlarge |
| 30 | have hcop : q.Coprime (m i : ℤ).natAbs := (Fact.out : q.Prime).coprime_iff_not_dvd.mpr |
| 31 | (Nat.not_dvd_of_pos_of_lt (Int.natAbs_pos.mpr (nonZeroDivisors.coe_ne_zero (m i))) hmi) |
| 32 | have hn : ‖((m i : ℤ) : ℚ_[q])‖ = 1 := by |
| 33 | simpa only [norm_natAbs] using (Padic.norm_natCast_eq_one_iff.mpr hcop) |
| 34 | have hi : IsIntegral (ℤ_[q]) (σ ((m i : ℤ) • a i)) := |
| 35 | ((hm i).map σ.toIntAlgHom).tower_top |
| 36 | obtain ⟨b, hb⟩ := IsIntegrallyClosed.isIntegral_iff.mp hi |
| 37 | have hbnd : ‖σ ((m i : ℤ) • a i)‖ ≤ 1 := by |
| 38 | rw [← hb] |
| 39 | exact b.property |
| 40 | simpa only [zsmul_eq_mul, map_mul, map_intCast, norm_mul, hn, one_mul] using hbnd |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.PadicIntegralBound.Local |