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 | /-! # Continuous Denominators -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace NumberTheory.PadicHodge.GeometricComparison.ContinuousDenominators.PadicContinuousDenominators |
| 10 | |
| 11 | /-! Continuous rational p-adic functions on a compact space have one common integral denominator. -/ |
| 12 | |
| 13 | theorem exists_denominator (p : ℕ) [Fact p.Prime] |
| 14 | {X : Type*} [TopologicalSpace X] [CompactSpace X] (f : C(X, ℚ_[p])) : |
| 15 | ∃ N : ℕ, ∃ g : C(X, ℤ_[p]), ∀ x : X, (p : ℚ_[p]) ^ N * f x = (g x : ℚ_[p]) := by |
| 16 | obtain ⟨N, hN⟩ := PadicInt.exists_pow_neg_lt p |
| 17 | (show (0 : ℝ) < 1 / (‖f‖ + 1) by positivity) |
| 18 | have hb : (p : ℝ) ^ (-(N : ℤ)) * (‖f‖ + 1) < 1 := |
| 19 | (lt_div_iff₀ (by positivity)).mp hN |
| 20 | have hx (x : X) : ‖(p : ℚ_[p]) ^ N * f x‖ ≤ 1 := by |
| 21 | rw [norm_mul, Padic.norm_p_pow] |
| 22 | exact (mul_le_mul_of_nonneg_left |
| 23 | ((f.norm_coe_le_norm x).trans (le_add_of_nonneg_right zero_le_one)) |
| 24 | (by positivity)).trans hb.le |
| 25 | exact ⟨N, ⟨fun x => ⟨(p : ℚ_[p]) ^ N * f x, hx x⟩, |
| 26 | (continuous_const.mul f.continuous).subtype_mk hx⟩, fun _ => rfl⟩ |
| 27 | |
| 28 | end NumberTheory.PadicHodge.GeometricComparison.ContinuousDenominators.PadicContinuousDenominators |
| 29 | |
| 30 | namespace NumberTheory.PadicHodge.GeometricComparison.ContinuousDenominators.PadicIntegerLocalization |
| 31 | |
| 32 | /-! The rational p-adic field is obtained by inverting p in the actual p-adic integers. -/ |
| 33 | |
| 34 | variable (p : ℕ) [Fact p.Prime] |
| 35 | |
| 36 | instance localized : IsLocalization.Away (p : ℤ_[p]) ℚ_[p] := by |
| 37 | apply IsLocalization.Away.mk (p : ℤ_[p]) |
| 38 | · apply isUnit_iff_ne_zero.mpr |
| 39 | change (p : ℚ_[p]) ≠ 0 |
| 40 | exact Nat.cast_ne_zero.mpr (Fact.out : p.Prime).ne_zero |
| 41 | · intro z |
| 42 | obtain ⟨N, g, hg⟩ := PadicContinuousDenominators.exists_denominator p |
| 43 | (ContinuousMap.const PUnit.{1} z) |
| 44 | exact ⟨N, g PUnit.unit, (mul_comm z ((p : ℚ_[p]) ^ N)).trans (hg PUnit.unit)⟩ |
| 45 | · intro a b h |
| 46 | have he : a = b := Subtype.ext h |
| 47 | exact ⟨0, by rw [he]⟩ |
| 48 | |
| 49 | end NumberTheory.PadicHodge.GeometricComparison.ContinuousDenominators.PadicIntegerLocalization |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI |