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.CauchyIntegral |
| 2 | import Mathlib.Analysis.Analytic.IsolatedZeros |
| 3 | import Mathlib.Topology.Connected.Clopen |
| 4 | |
| 5 | /-! # Identity Eq -/ |
| 6 | |
| 7 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.IdentityEq.Constructions.Identity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # RiemannProjectivity: identity continuation on finite-dimensional holomorphic domains |
| 13 | |
| 14 | One-variable identity continuation along short complex lines propagates |
| 15 | an open zero set through a connected open domain. This is used to control |
| 16 | irreducibility of the algebraic closure of a connected analytic image. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter _root_.Metric |
| 20 | open scoped _root_.Topology |
| 21 | |
| 22 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 23 | |
| 24 | theorem interior_zero_closed_within {f : V → ℂ} {U : Set V} |
| 25 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) {x : V} (hx : x ∈ U) |
| 26 | (hc : x ∈ closure (interior {z | f z = 0})) : x ∈ interior {z | f z = 0} := by |
| 27 | obtain ⟨r, hr, hball⟩ := Metric.isOpen_iff.mp hU x hx |
| 28 | obtain ⟨y, hy, hxy⟩ := Metric.mem_closure_iff.mp hc (r / 8) (by positivity) |
| 29 | have hyx : dist y x < r / 8 := by simpa only [dist_comm] using hxy |
| 30 | apply mem_interior_iff_mem_nhds.mpr |
| 31 | filter_upwards [ball_mem_nhds x (by positivity : 0 < r / 8)] with z hz |
| 32 | have hzx : dist z x < r / 8 := hz |
| 33 | let line : ℂ → V := fun c => y + c • (z - y) |
| 34 | have hline : Differentiable ℂ line := |
| 35 | (differentiable_id.smul_const (z - y)).const_add y |
| 36 | have hlineU : MapsTo line (ball (0 : ℂ) 2) U := by |
| 37 | intro c hc |
| 38 | apply hball |
| 39 | have hc2 : ‖c‖ < 2 := by simpa only [mem_ball, dist_zero_right] using hc |
| 40 | have hv : ‖z - y‖ < r / 4 := by |
| 41 | have h := dist_triangle z x y |
| 42 | rw [dist_comm x y] at h |
| 43 | rw [dist_eq_norm z y] at h |
| 44 | linarith |
| 45 | have hdist : dist (line c) x ≤ ‖c‖ * ‖z - y‖ + dist y x := by |
| 46 | have h := dist_triangle (line c) y x |
| 47 | simpa only [line, dist_eq_norm, add_sub_cancel_left, norm_smul] using h |
| 48 | change dist (line c) x < r |
| 49 | nlinarith [norm_nonneg c, norm_nonneg (z - y)] |
| 50 | have hfl : DifferentiableOn ℂ (f ∘ line) (ball (0 : ℂ) 2) := |
| 51 | hf.comp hline.differentiableOn hlineU |
| 52 | have hz0 : ∀ᶠ c : ℂ in 𝓝 0, (f ∘ line) c = 0 := by |
| 53 | have hy0 : ∀ᶠ w in 𝓝 y, f w = 0 := mem_interior_iff_mem_nhds.mp hy |
| 54 | have hzero : line 0 = y := by simp [line] |
| 55 | have hl0 : Tendsto line (𝓝 0) (𝓝 y) := by |
| 56 | simpa only [ContinuousAt, hzero] using |
| 57 | (show ContinuousAt line 0 from hline.continuous.continuousAt) |
| 58 | exact hl0.eventually hy0 |
| 59 | have heq := (hfl.analyticOnNhd isOpen_ball).eqOn_zero_of_preconnected_of_frequently_eq_zero |
| 60 | (convex_ball (0 : ℂ) 2).isPreconnected (mem_ball_self (by norm_num : (0 : ℝ) < 2)) |
| 61 | (hz0.filter_mono nhdsWithin_le_nhds).frequently |
| 62 | have h1 := heq (show (1 : ℂ) ∈ ball (0 : ℂ) 2 by norm_num [mem_ball, dist_zero_right]) |
| 63 | simpa only [Function.comp_apply, line, one_smul, add_sub_cancel, Pi.zero_apply] using h1 |
| 64 | |
| 65 | /-- A holomorphic function with an open zero germ on a connected open |
| 66 | domain vanishes on that entire domain. -/ |
| 67 | theorem eq_zero_of_zero_germ {f : V → ℂ} {U : Set V} |
| 68 | (hU : IsOpen U) (hconn : IsPreconnected U) (hf : DifferentiableOn ℂ f U) |
| 69 | {x : V} (hx : x ∈ U) (hzero : ∀ᶠ y in 𝓝 x, f y = 0) : |
| 70 | ∀ y ∈ U, f y = 0 := by |
| 71 | let G := interior {z | f z = 0} |
| 72 | let : PreconnectedSpace U := isPreconnected_iff_preconnectedSpace.mp hconn |
| 73 | have heq : (Subtype.val ⁻¹' G : Set U) = Subtype.val ⁻¹' closure G := by |
| 74 | ext y |
| 75 | exact ⟨fun h => subset_closure h, |
| 76 | fun h => interior_zero_closed_within hU hf y.property h⟩ |
| 77 | have hcl : IsClopen (Subtype.val ⁻¹' G : Set U) := by |
| 78 | constructor |
| 79 | · rw [heq] |
| 80 | exact isClosed_closure.preimage continuous_subtype_val |
| 81 | · exact isOpen_interior.preimage continuous_subtype_val |
| 82 | rcases isClopen_iff.mp hcl with hempty | hfull |
| 83 | · have hmem : (⟨x, hx⟩ : U) ∈ Subtype.val ⁻¹' G := mem_interior_iff_mem_nhds.mpr hzero |
| 84 | simp only [hempty, mem_empty_iff_false] at hmem |
| 85 | · intro y hy |
| 86 | have hmem : (⟨y, hy⟩ : U) ∈ Subtype.val ⁻¹' G := by rw [hfull]; trivial |
| 87 | exact interior_subset (s := {z | f z = 0}) (show y ∈ G from hmem) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.IdentityEq.Constructions.Identity |