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.Analysis.Complex.Basic |
| 2 | import Mathlib.Topology.Algebra.Order.Archimedean |
| 3 | import Mathlib.Topology.NhdsWithin |
| 4 | import Mathlib.Algebra.Ring.Subring.Basic |
| 5 | import Mathlib.Tactic.FieldSimp |
| 6 | import Mathlib.Tactic.NormNum |
| 7 | |
| 8 | /-! # Localized Coefficient Density -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocalizedCoefficientDensity |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Density from one inverted positive integer and one nonreal coefficient. |
| 15 | The dense sets are explicit subrings and affine sets of coefficient vectors. |
| 16 | No arithmetic-group density or approximation theorem is assumed. |
| 17 | -/ |
| 18 | |
| 19 | def realInvertedIntegerRing (b : ℕ) : Subring ℝ := |
| 20 | Subring.closure {(b : ℝ)⁻¹} |
| 21 | |
| 22 | theorem realInvertedIntegerRing_dense (b : ℕ) (hb : 2 ≤ b) : |
| 23 | Dense (realInvertedIntegerRing b : Set ℝ) := by |
| 24 | have hb1 : (1 : ℝ) < b := by exact_mod_cast hb |
| 25 | have hb0 : (0 : ℝ) < b := lt_trans zero_lt_one hb1 |
| 26 | apply (realInvertedIntegerRing b).toAddSubgroup.dense_of_not_isolated_zero |
| 27 | intro ε hε |
| 28 | obtain ⟨n, hn⟩ := exists_pow_lt_of_lt_one hε (inv_lt_one_of_one_lt₀ hb1) |
| 29 | refine ⟨(b : ℝ)⁻¹ ^ n, ?_, pow_pos (inv_pos.mpr hb0) n, hn⟩ |
| 30 | exact (realInvertedIntegerRing b).pow_mem (Subring.subset_closure (by simp)) n |
| 31 | |
| 32 | theorem complex_subring_dense_of_inverted_integer_nonreal |
| 33 | (S : Subring ℂ) (b : ℕ) (hb : 2 ≤ b) |
| 34 | (hbS : (b : ℂ)⁻¹ ∈ S) (z : ℂ) (hzS : z ∈ S) (hz : z.im ≠ 0) : |
| 35 | Dense (S : Set ℂ) := by |
| 36 | have hreal : realInvertedIntegerRing b ≤ S.comap Complex.ofRealHom := by |
| 37 | apply Subring.closure_le.mpr |
| 38 | intro a ha |
| 39 | obtain rfl := Set.mem_singleton_iff.mp ha |
| 40 | simpa using hbS |
| 41 | let f : ℝ × ℝ → ℂ := fun a => (a.1 : ℂ) + (a.2 : ℂ) * z |
| 42 | have hf : Continuous f := |
| 43 | (Complex.continuous_ofReal.comp continuous_fst).add |
| 44 | ((Complex.continuous_ofReal.comp continuous_snd).mul continuous_const) |
| 45 | have hsurj : Function.Surjective f := by |
| 46 | intro w |
| 47 | refine ⟨(w.re - (w.im / z.im) * z.re, w.im / z.im), ?_⟩ |
| 48 | apply Complex.ext |
| 49 | · simp [f] |
| 50 | · simp [f, hz] |
| 51 | apply hsurj.denseRange.dense_of_mapsTo hf |
| 52 | ((realInvertedIntegerRing_dense b hb).prod (realInvertedIntegerRing_dense b hb)) |
| 53 | intro a ha |
| 54 | exact S.add_mem (hreal ha.1) (S.mul_mem (hreal ha.2) hzS) |
| 55 | |
| 56 | /-- The coefficient ring generated by the inverted integer and the chosen |
| 57 | nonreal coefficient. Its elements are actual polynomial combinations. -/ |
| 58 | def complexLocalizedCoefficientRing (b : ℕ) (z : ℂ) : Subring ℂ := |
| 59 | Subring.closure {(b : ℂ)⁻¹, z} |
| 60 | |
| 61 | theorem complexLocalizedCoefficientRing_dense |
| 62 | (b : ℕ) (hb : 2 ≤ b) (z : ℂ) (hz : z.im ≠ 0) : |
| 63 | Dense (complexLocalizedCoefficientRing b z : Set ℂ) := |
| 64 | complex_subring_dense_of_inverted_integer_nonreal |
| 65 | (complexLocalizedCoefficientRing b z) b hb |
| 66 | (Subring.subset_closure (by simp)) z (Subring.subset_closure (by simp)) hz |
| 67 | |
| 68 | def affineCoefficientVectors {I : Type*} (S : Subring ℂ) (v₀ : I → ℂ) (m : ℂ) : |
| 69 | Set (I → ℂ) := |
| 70 | (fun v : I → ℂ => v₀ + m • v) '' Set.pi Set.univ (fun _ => (S : Set ℂ)) |
| 71 | |
| 72 | theorem affineCoefficientVectors_dense {I : Type*} |
| 73 | (S : Subring ℂ) (hS : Dense (S : Set ℂ)) (v₀ : I → ℂ) (m : ℂ) (hm : m ≠ 0) : |
| 74 | Dense (affineCoefficientVectors S v₀ m) := by |
| 75 | have hf : Continuous (fun v : I → ℂ => v₀ + m • v) := |
| 76 | continuous_const.add |
| 77 | ((show Continuous (fun _ : I → ℂ => m) from continuous_const).smul |
| 78 | (show Continuous (fun v : I → ℂ => v) from continuous_id)) |
| 79 | have hsurj : Function.Surjective (fun v : I → ℂ => v₀ + m • v) := by |
| 80 | intro v |
| 81 | refine ⟨m⁻¹ • (v - v₀), ?_⟩ |
| 82 | change v₀ + m • (m⁻¹ • (v - v₀)) = v |
| 83 | rw [smul_smul, mul_inv_cancel₀ hm, one_smul] |
| 84 | abel |
| 85 | exact hsurj.denseRange.dense_image hf (dense_pi Set.univ (fun _ _ => hS)) |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocalizedCoefficientDensity |