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.CoefficientRoot |
| 2 | import Mathlib.Analysis.Normed.Field.Approximation |
| 3 | |
| 4 | /-! # Root Continuity At -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace Geometry.ComplexTorus.RiemannProjectivity.RootContinuityAt.Constructions.RootContinuity |
| 11 | |
| 12 | /-! # RiemannProjectivity: roots of a continuous monic family persist locally -/ |
| 13 | |
| 14 | open Set Filter _root_.Polynomial _root_.Metric |
| 15 | open scoped _root_.Topology BigOperators |
| 16 | |
| 17 | theorem exists_root_near_of_eval_small {p : ℂ[X]} (hp : p.Monic) {z : ℂ} {ε : ℝ} |
| 18 | (hε : 0 < ε) (heval : ‖p.eval z‖ < ε ^ p.natDegree) : |
| 19 | ∃ w, p.eval w = 0 ∧ dist z w < ε := by |
| 20 | by_contra! hn |
| 21 | have hle := Multiset.prod_map_le_prod_map₀ (s := p.roots) |
| 22 | (fun _ : ℂ => ε) (fun w => ‖z - w‖) (fun _ _ => hε.le) |
| 23 | (fun w hw => by simpa only [dist_eq_norm] using hn w ((mem_roots hp.ne_zero).mp hw)) |
| 24 | have hprod : (p.roots.map (fun w => ‖z - w‖)).prod = ‖p.eval z‖ := by |
| 25 | rw [(IsAlgClosed.splits p).eval_eq_prod_roots_of_monic hp] |
| 26 | exact (p.roots.prod_hom' (NormedField.toMulRingNorm ℂ) (fun w => z - w)) |
| 27 | rw [hprod, Multiset.map_const', Multiset.prod_replicate, |
| 28 | ← (IsAlgClosed.splits p).natDegree_eq_card_roots] at hle |
| 29 | exact heval.not_ge hle |
| 30 | |
| 31 | theorem continuousAt_eval {V : Type*} [TopologicalSpace V] {P : V → ℂ[X]} {x : V} |
| 32 | (d : ℕ) (hd : ∀ y, (P y).natDegree ≤ d) |
| 33 | (hcoeff : ∀ j, ContinuousAt (fun y => (P y).coeff j) x) (z : ℂ) : |
| 34 | ContinuousAt (fun y => (P y).eval z) x := by |
| 35 | have heq : (fun y => (P y).eval z) = |
| 36 | fun y => ∑ j ∈ Finset.range (d + 1), (P y).coeff j * z ^ j := by |
| 37 | funext y |
| 38 | exact eval_eq_sum_range' (Nat.lt_succ_of_le (hd y)) z |
| 39 | rw [heq] |
| 40 | exact tendsto_finsetSum _ (fun j _ => (hcoeff j).mul continuousAt_const) |
| 41 | |
| 42 | theorem continuousAt_eval_pair {V : Type*} [TopologicalSpace V] {P : V → ℂ[X]} {x : V} |
| 43 | (d : ℕ) (hd : ∀ y, (P y).natDegree ≤ d) |
| 44 | (hcoeff : ∀ j, ContinuousAt (fun y => (P y).coeff j) x) (z : ℂ) : |
| 45 | ContinuousAt (fun p : V × ℂ => (P p.1).eval p.2) (x, z) := by |
| 46 | have heq : (fun p : V × ℂ => (P p.1).eval p.2) = |
| 47 | fun p => ∑ j ∈ Finset.range (d + 1), (P p.1).coeff j * p.2 ^ j := by |
| 48 | funext p |
| 49 | exact eval_eq_sum_range' (Nat.lt_succ_of_le (hd p.1)) p.2 |
| 50 | rw [heq] |
| 51 | have hf : ContinuousAt (Prod.fst : V × ℂ → V) (x, z) := continuous_fst.continuousAt |
| 52 | have hs : ContinuousAt (Prod.snd : V × ℂ → ℂ) (x, z) := continuous_snd.continuousAt |
| 53 | apply tendsto_finsetSum |
| 54 | intro j _ |
| 55 | have hcj : ContinuousAt (fun p : V × ℂ => (P p.1).coeff j) (x, z) := |
| 56 | ContinuousAt.comp' (f := Prod.fst) (g := fun y : V => (P y).coeff j) (hcoeff j) hf |
| 57 | exact hcj.fun_mul (hs.fun_pow j) |
| 58 | |
| 59 | theorem eventually_root_near {V : Type*} [TopologicalSpace V] {P : V → ℂ[X]} {x : V} |
| 60 | (k : ℕ) (hp : ∀ y, (P y).Monic ∧ (P y).natDegree = k) |
| 61 | (hcoeff : ∀ j, ContinuousAt (fun y => (P y).coeff j) x) |
| 62 | {z : ℂ} (hz : (P x).eval z = 0) {ε : ℝ} (hε : 0 < ε) : |
| 63 | ∀ᶠ y in 𝓝 x, ∃ w, (P y).eval w = 0 ∧ dist z w < ε := by |
| 64 | have hc := (continuousAt_eval k (fun y => (hp y).2.le) hcoeff z).norm |
| 65 | have hsmall : ∀ᶠ y in 𝓝 x, ‖(P y).eval z‖ < ε ^ k := |
| 66 | hc.eventually_lt_const (by change ‖(P x).eval z‖ < ε ^ k; rw [hz, norm_zero]; exact pow_pos hε _) |
| 67 | filter_upwards [hsmall] with y hy |
| 68 | apply exists_root_near_of_eval_small (hp y).1 hε |
| 69 | simpa only [(hp y).2] using hy |
| 70 | |
| 71 | end Geometry.ComplexTorus.RiemannProjectivity.RootContinuityAt.Constructions.RootContinuity |
| 72 | |
| 73 | namespace Geometry.ComplexTorus.RiemannProjectivity.RootContinuityAt.Constructions.RootClosure |
| 74 | |
| 75 | /-! # RiemannProjectivity: extending containment of polynomial roots by closedness -/ |
| 76 | |
| 77 | open Set Filter _root_.Polynomial _root_.Metric |
| 78 | open scoped _root_.Topology |
| 79 | |
| 80 | variable {V : Type*} [PseudoMetricSpace V] |
| 81 | |
| 82 | theorem root_mem_closed {P : V → ℂ[X]} {S : Set (V × ℂ)} (hS : IsClosed S) |
| 83 | (k : ℕ) (hp : ∀ y, (P y).Monic ∧ (P y).natDegree = k) |
| 84 | {D : Set V} {x : V} (hx : x ∈ closure D) |
| 85 | (hcoeff : ∀ j, ContinuousAt (fun y => (P y).coeff j) x) |
| 86 | (hrootS : ∀ y ∈ D, ∀ z, (P y).eval z = 0 → (y, z) ∈ S) |
| 87 | {z : ℂ} (hz : (P x).eval z = 0) : (x, z) ∈ S := by |
| 88 | rw [← hS.closure_eq] |
| 89 | apply Metric.mem_closure_iff.mpr |
| 90 | intro ε hε |
| 91 | have hnear := RootContinuity.eventually_root_near k hp hcoeff hz hε |
| 92 | have hball : ∀ᶠ y in 𝓝 x, y ∈ ball x ε := isOpen_ball.mem_nhds (mem_ball_self hε) |
| 93 | obtain ⟨y, hyD, hynear, hyball⟩ := |
| 94 | ((mem_closure_iff_frequently.mp hx).and_eventually (hnear.and hball)).exists |
| 95 | obtain ⟨w, hw, hzw⟩ := hynear |
| 96 | refine ⟨(y, w), hrootS y hyD w hw, ?_⟩ |
| 97 | rw [Prod.dist_eq] |
| 98 | exact max_lt (by simpa only [mem_ball, dist_comm] using hyball) hzw |
| 99 | |
| 100 | theorem root_imp_of_generic {P Q : V → ℂ[X]} (k d : ℕ) |
| 101 | (hP : ∀ y, (P y).Monic ∧ (P y).natDegree = k) |
| 102 | (hQdeg : ∀ y, (Q y).natDegree ≤ d) |
| 103 | {D : Set V} {x : V} (hx : x ∈ closure D) |
| 104 | (hPc : ∀ j, ContinuousAt (fun y => (P y).coeff j) x) |
| 105 | (hQc : ∀ j, ContinuousAt (fun y => (Q y).coeff j) x) |
| 106 | (himp : ∀ y ∈ D, ∀ z, (P y).eval z = 0 → (Q y).eval z = 0) |
| 107 | {z : ℂ} (hz : (P x).eval z = 0) : (Q x).eval z = 0 := by |
| 108 | have hclosure : (x, z) ∈ closure {p : V × ℂ | p.1 ∈ D ∧ (Q p.1).eval p.2 = 0} := |
| 109 | root_mem_closed (S := closure {p : V × ℂ | p.1 ∈ D ∧ (Q p.1).eval p.2 = 0}) |
| 110 | isClosed_closure k hP hx hPc |
| 111 | (fun y hy w hw => subset_closure ⟨hy, himp y hy w hw⟩) hz |
| 112 | exact tendsto_nhds_unique_of_frequently_eq |
| 113 | (RootContinuity.continuousAt_eval_pair d hQdeg hQc z) continuousAt_const |
| 114 | ((mem_closure_iff_frequently.mp hclosure).mono (fun _ hp => hp.2)) |
| 115 | |
| 116 | end Geometry.ComplexTorus.RiemannProjectivity.RootContinuityAt.Constructions.RootClosure |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI |