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.NumberTheory.Padics.PadicIntegers |
| 2 | |
| 3 | /-! # Padic Power Saturation -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Geometric.PadicPowerSaturation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A rational number integral at q and with only a q-power denominator |
| 10 | is an integer. The proof uses literal integer divisibility. -/ |
| 11 | |
| 12 | theorem rational_power_saturation (q : ℕ) [Fact q.Prime] (a : ℚ) |
| 13 | (ha : ‖(a : ℚ_[q])‖ ≤ 1) (n : ℕ) (z : ℤ) (hz : (q : ℚ) ^ n * a = z) : |
| 14 | ∃ w : ℤ, a = w := by |
| 15 | have hnorm : ‖(z : ℚ_[q])‖ ≤ (q : ℝ) ^ (-n : ℤ) := by |
| 16 | have hz' : (q : ℚ_[q]) ^ n * (a : ℚ_[q]) = z := by exact_mod_cast hz |
| 17 | rw [← hz', norm_mul, Padic.norm_p_pow] |
| 18 | exact (mul_le_mul_of_nonneg_left ha (zpow_nonneg (Nat.cast_nonneg q) _)).trans_eq (mul_one _) |
| 19 | obtain ⟨w, hw⟩ := (Padic.norm_int_le_pow_iff_dvd (p := q) z n).mp hnorm |
| 20 | refine ⟨w, ?_⟩ |
| 21 | have hqw : (q : ℚ) ^ n * a = (q : ℚ) ^ n * (w : ℚ) := by |
| 22 | rw [hz, hw, Int.cast_mul, Int.cast_pow, Int.cast_natCast] |
| 23 | exact mul_left_cancel₀ (pow_ne_zero n (Nat.cast_ne_zero.mpr (Fact.out : q.Prime).ne_zero)) hqw |
| 24 | |
| 25 | end |
| 26 | |
| 27 | end OAI.RepresentationTheory.Theta.Geometric.PadicPowerSaturation |