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.RingHoms |
| 2 | import Mathlib.NumberTheory.Padics.ProperSpace |
| 3 | import Mathlib.Topology.Instances.ZMod |
| 4 | import Mathlib.Topology.ContinuousMap.Algebra |
| 5 | |
| 6 | /-! # Coefficient Topology -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.CoefficientTopology.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Completion: continuous finite quotients of integral ℓ-adic coefficients |
| 14 | |
| 15 | Reduction modulo ℓⁿ is continuous and has a continuous set-theoretic |
| 16 | section. Its kernel on continuous functions consists exactly of multiples |
| 17 | of ℓⁿ, with a continuous quotient function. |
| 18 | -/ |
| 19 | |
| 20 | variable (ℓ n : ℕ) [Fact ℓ.Prime] |
| 21 | |
| 22 | /-- Reduction of integral ℓ-adic coefficients modulo ℓⁿ is continuous. -/ |
| 23 | theorem continuous_padicInt_toZModPow : Continuous (PadicInt.toZModPow (p := ℓ) n) := by |
| 24 | apply continuous_iff_continuousAt.mpr |
| 25 | intro x |
| 26 | rw [ContinuousAt, nhds_discrete (ZMod (ℓ ^ n)), Filter.tendsto_pure] |
| 27 | have hp : 0 < (ℓ : ℝ) := by exact_mod_cast (Fact.out : ℓ.Prime).pos |
| 28 | filter_upwards [Metric.ball_mem_nhds x (zpow_pos hp (-n : ℤ))] with y hy |
| 29 | apply sub_eq_zero.mp |
| 30 | rw [← map_sub, ← RingHom.mem_ker, PadicInt.ker_toZModPow, |
| 31 | ← PadicInt.norm_le_pow_iff_mem_span_pow] |
| 32 | exact le_of_lt (by simpa only [Metric.mem_ball, dist_eq_norm] using hy) |
| 33 | |
| 34 | /-- The canonical finite representatives give a section of reduction. -/ |
| 35 | theorem padicInt_toZModPow_section : |
| 36 | Function.RightInverse (fun a : ZMod (ℓ ^ n) => (a.val : ℤ_[ℓ])) |
| 37 | (PadicInt.toZModPow n) := by |
| 38 | intro a |
| 39 | simp |
| 40 | |
| 41 | /-- Continuous functions with zero reduction have continuous quotients by ℓⁿ. -/ |
| 42 | theorem continuousMap_padicInt_divisible {T : Type*} [TopologicalSpace T] |
| 43 | (f : C(T, ℤ_[ℓ])) (hf : ∀ t, PadicInt.toZModPow n (f t) = 0) : |
| 44 | ∃ g : C(T, ℤ_[ℓ]), ∀ t, (ℓ : ℤ_[ℓ]) ^ n * g t = f t := by |
| 45 | have ha : (ℓ : ℤ_[ℓ]) ^ n ≠ 0 := pow_ne_zero _ (by exact_mod_cast (Fact.out : ℓ.Prime).ne_zero) |
| 46 | have hm : Topology.IsEmbedding (fun b : ℤ_[ℓ] => (ℓ : ℤ_[ℓ]) ^ n * b) := |
| 47 | ((continuous_const.mul continuous_id).isClosedEmbedding |
| 48 | (mul_right_injective₀ ha)).isEmbedding |
| 49 | have he (t : T) : ∃ b : ℤ_[ℓ], (ℓ : ℤ_[ℓ]) ^ n * b = f t := by |
| 50 | have h := hf t |
| 51 | rw [← RingHom.mem_ker, PadicInt.ker_toZModPow, Ideal.mem_span_singleton] at h |
| 52 | obtain ⟨b, hb⟩ := h |
| 53 | exact ⟨b, hb.symm⟩ |
| 54 | choose g hg using he |
| 55 | refine ⟨⟨g, hm.isInducing.continuous_iff.mpr ?_⟩, hg⟩ |
| 56 | simpa only [Function.comp_def, hg] using f.continuous |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.CoefficientTopology.Construction |