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 OAI.Geometry.ComplexTorus.RiemannProjectivity.GlueReduced |
| 2 | import Mathlib.Analysis.Normed.Module.Connected |
| 3 | import Mathlib.Topology.Connected.TotallyDisconnected |
| 4 | |
| 5 | /-! # Constant Fiber -/ |
| 6 | |
| 7 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.ConstantFiber.Constructions.ConstantFiberDegree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # RiemannProjectivity: the degree of the canonical family is constant on the punctured base -/ |
| 12 | |
| 13 | open Set Filter _root_.Polynomial |
| 14 | open scoped _root_.Topology |
| 15 | |
| 16 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 17 | |
| 18 | theorem continuousOn_natDegree {Q : V → ℂ[X]} {B : Set V} {S : Set (V × ℂ)} |
| 19 | (hlocal : ∀ x ∈ B, ∃ U : Set V, IsOpen U ∧ x ∈ U ∧ U ⊆ B ∧ ReducedFamiliesOn.Constructions.ReducedFamilies.On S U Q) : |
| 20 | ContinuousOn (fun x => (Q x).natDegree) B := by |
| 21 | intro x hx |
| 22 | obtain ⟨U, hU, hxU, _, hOn⟩ := hlocal x hx |
| 23 | obtain ⟨k, hk⟩ := hOn.constant_degree |
| 24 | have heq : (fun y => (Q y).natDegree) =ᶠ[𝓝 x] (fun _ => k) := by |
| 25 | filter_upwards [hU.mem_nhds hxU] with y hy |
| 26 | exact hk y hy |
| 27 | exact heq.continuousAt.continuousWithinAt |
| 28 | |
| 29 | theorem punctured_preconnected (d : ℕ) : |
| 30 | IsPreconnected ({x | x ≠ 0} : Set (Fin (d + 1) → ℂ)) := by |
| 31 | have hdim : 1 < Module.finrank ℝ (Fin (d + 1) → ℂ) := by |
| 32 | simp only [Module.finrank_pi_fintype, Complex.finrank_real_complex, |
| 33 | Finset.sum_const, Finset.card_univ, Fintype.card_fin, smul_eq_mul] |
| 34 | omega |
| 35 | have hrank : 1 < Module.rank ℝ (Fin (d + 1) → ℂ) := by |
| 36 | rw [← Module.finrank_eq_rank] |
| 37 | exact_mod_cast hdim |
| 38 | exact (isConnected_compl_singleton_of_one_lt_rank hrank 0).isPreconnected |
| 39 | |
| 40 | theorem exists_constant_degree {d : ℕ} {Q : (Fin (d + 1) → ℂ) → ℂ[X]} |
| 41 | {S : Set ((Fin (d + 1) → ℂ) × ℂ)} |
| 42 | (hlocal : ∀ x, x ≠ 0 → ∃ U : Set (Fin (d + 1) → ℂ), |
| 43 | IsOpen U ∧ x ∈ U ∧ U ⊆ {y | y ≠ 0} ∧ ReducedFamiliesOn.Constructions.ReducedFamilies.On S U Q) : |
| 44 | ∃ k : ℕ, ∀ x, x ≠ 0 → (Q x).natDegree = k := by |
| 45 | have hc := continuousOn_natDegree hlocal |
| 46 | have hnonzero : (fun _ : Fin (d + 1) => (1 : ℂ)) ≠ 0 := by |
| 47 | intro h |
| 48 | exact one_ne_zero (congrFun h 0) |
| 49 | exact ⟨(Q (fun _ => 1)).natDegree, |
| 50 | fun x hx => (punctured_preconnected d).constant hc hx hnonzero⟩ |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.ConstantFiber.Constructions.ConstantFiberDegree |