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.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericHolomorphicPolynomial |
| 2 | import Mathlib.Data.Finset.Max |
| 3 | |
| 4 | /-! # Generic Degree -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericDegree.Constructions.GenericPolynomial |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Generic degree of a bounded polynomial family |
| 12 | |
| 13 | Among finitely many coefficient germs, take the last nonzero one. Higher |
| 14 | coefficients vanish on a common neighborhood, and this chosen coefficient |
| 15 | controls the degree wherever it is nonzero. |
| 16 | -/ |
| 17 | |
| 18 | open Set Filter _root_.Polynomial |
| 19 | open scoped _root_.Topology |
| 20 | |
| 21 | theorem exists_generic_degree {E : Type*} [TopologicalSpace E] |
| 22 | {G : E → ℂ[X]} {x : E} {D : ℕ} (hD : ∀ y, (G y).natDegree ≤ D) |
| 23 | (hn : ¬∀ᶠ y in 𝓝 x, G y = 0) : |
| 24 | ∃ k : ℕ, k ≤ D ∧ (¬∀ᶠ y in 𝓝 x, (G y).coeff k = 0) ∧ |
| 25 | ∀ᶠ y in 𝓝 x, (G y).natDegree ≤ k := by |
| 26 | classical |
| 27 | let K := (Finset.range (D + 1)).filter (fun k => ¬∀ᶠ y in 𝓝 x, (G y).coeff k = 0) |
| 28 | have hK : K.Nonempty := by |
| 29 | by_contra hKe |
| 30 | have hzero (k : Fin (D + 1)) : ∀ᶠ y in 𝓝 x, (G y).coeff k.val = 0 := by |
| 31 | by_contra hk |
| 32 | exact hKe ⟨k.val, Finset.mem_filter.mpr ⟨Finset.mem_range.mpr k.isLt, hk⟩⟩ |
| 33 | apply hn |
| 34 | filter_upwards [eventually_all.mpr hzero] with y hy |
| 35 | apply Polynomial.ext |
| 36 | intro k |
| 37 | rw [coeff_zero] |
| 38 | by_cases hk : k < D + 1 |
| 39 | · exact hy ⟨k, hk⟩ |
| 40 | · exact coeff_eq_zero_of_natDegree_lt (lt_of_le_of_lt (hD y) (by omega)) |
| 41 | let k := K.max' hK |
| 42 | have hkK : k ∈ K := K.max'_mem hK |
| 43 | have hkD : k ≤ D := Nat.le_of_lt_succ (Finset.mem_range.mp (Finset.mem_filter.mp hkK).1) |
| 44 | have hkn : ¬∀ᶠ y in 𝓝 x, (G y).coeff k = 0 := (Finset.mem_filter.mp hkK).2 |
| 45 | have htail (j : Fin (D + 1)) : ∀ᶠ y in 𝓝 x, k < j.val → (G y).coeff j.val = 0 := by |
| 46 | by_cases hkj : k < j.val |
| 47 | · have hjzero : ∀ᶠ y in 𝓝 x, (G y).coeff j.val = 0 := by |
| 48 | by_contra hj |
| 49 | have hjK : j.val ∈ K := Finset.mem_filter.mpr ⟨Finset.mem_range.mpr j.isLt, hj⟩ |
| 50 | exact (K.le_max' j.val hjK).not_gt hkj |
| 51 | exact hjzero.mono (fun _ h _ => h) |
| 52 | · exact Filter.Eventually.of_forall (fun _ h => False.elim (hkj h)) |
| 53 | refine ⟨k, hkD, hkn, ?_⟩ |
| 54 | filter_upwards [eventually_all.mpr htail] with y hy |
| 55 | apply natDegree_le_iff_coeff_eq_zero.mpr |
| 56 | intro j hkj |
| 57 | by_cases hj : j < D + 1 |
| 58 | · exact hy ⟨j, hj⟩ hkj |
| 59 | · exact coeff_eq_zero_of_natDegree_lt (lt_of_le_of_lt (hD y) (by omega)) |
| 60 | |
| 61 | theorem not_eventually_zero_mul |
| 62 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 63 | {f g : E → ℂ} {U : Set E} (hU : IsOpen U) {x : E} (hx : x ∈ U) |
| 64 | (hf : DifferentiableOn ℂ f U) (hg : DifferentiableOn ℂ g U) |
| 65 | (hfn : ¬∀ᶠ y in 𝓝 x, f y = 0) (hgn : ¬∀ᶠ y in 𝓝 x, g y = 0) : |
| 66 | ¬∀ᶠ y in 𝓝 x, f y * g y = 0 := by |
| 67 | intro hprod |
| 68 | obtain ⟨V, hVsub, hV, hxV⟩ := mem_nhds_iff.mp hprod |
| 69 | have h := HolomorphicIdentity.Constructions.Identity.eventually_zero_or_eventually_zero_of_mul (hU.inter hV) ⟨hx, hxV⟩ |
| 70 | (hf.mono inter_subset_left) (hg.mono inter_subset_left) (fun _ hy => hVsub hy.2) |
| 71 | exact h.elim hfn hgn |
| 72 | |
| 73 | /-- A holomorphic function that is nonzero as a germ has a dense nonzero |
| 74 | locus on some neighborhood of the base point. -/ |
| 75 | theorem exists_dense_nonzero_neighborhood |
| 76 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 77 | {f : E → ℂ} {U : Set E} (hU : IsOpen U) {x : E} (hx : x ∈ U) |
| 78 | (hf : DifferentiableOn ℂ f U) (hn : ¬∀ᶠ y in 𝓝 x, f y = 0) : |
| 79 | ∃ V : Set E, IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ |
| 80 | V ⊆ closure {y | y ∈ V ∧ f y ≠ 0} := by |
| 81 | obtain ⟨R, hR, hball⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hx) |
| 82 | let V := Metric.ball x (R / 2) |
| 83 | have hVU : V ⊆ U := (Metric.ball_subset_ball (by linarith)).trans hball |
| 84 | refine ⟨V, Metric.isOpen_ball, Metric.mem_ball_self (by linarith), hVU, ?_⟩ |
| 85 | intro y hy |
| 86 | have hyn : ¬∀ᶠ z in 𝓝 y, f z = 0 := by |
| 87 | intro hyzero |
| 88 | have hsub : Metric.ball y (R / 2) ⊆ U := by |
| 89 | apply Subset.trans (Metric.ball_subset_ball' (show R / 2 + dist y x ≤ R from by |
| 90 | have hdist := Metric.mem_ball.mp hy |
| 91 | linarith)) hball |
| 92 | have hident := HolomorphicIdentity.Constructions.Identity.eqOn_zero_ball_of_eventually_zero (hf.mono hsub) hyzero |
| 93 | have hxy : x ∈ Metric.ball y (R / 2) := by |
| 94 | rw [Metric.mem_ball, dist_comm] |
| 95 | exact Metric.mem_ball.mp hy |
| 96 | apply hn |
| 97 | filter_upwards [Metric.isOpen_ball.mem_nhds hxy] with z hz |
| 98 | exact hident hz |
| 99 | apply mem_closure_iff_frequently.mpr |
| 100 | exact ((not_eventually.mp hyn).and_eventually (Metric.isOpen_ball.mem_nhds hy)).mono |
| 101 | (fun _ h => ⟨h.2, h.1⟩) |
| 102 | |
| 103 | /-- Away from one genuine holomorphic exceptional zero set, common roots |
| 104 | are represented by a monic polynomial of one fixed degree. -/ |
| 105 | theorem exists_monic_generic_family |
| 106 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [Fintype ι] |
| 107 | (P : ι → E → ℂ[X]) {U : Set E} (hU : IsOpen U) {x : E} (hx : x ∈ U) (d : ℕ) |
| 108 | (hcoeff : ∀ i k, DifferentiableOn ℂ (fun y => (P i y).coeff k) U) |
| 109 | (hdegree : ∀ i y, y ∈ U → (P i y).natDegree ≤ d) |
| 110 | (hnever : ∀ y ∈ U, ∃ i, P i y ≠ 0) : |
| 111 | ∃ (k : ℕ) (Q : E → ℂ[X]) (c : E → ℂ) (V : Set E), |
| 112 | IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ DifferentiableOn ℂ c V ∧ |
| 113 | (¬∀ᶠ y in 𝓝 x, c y = 0) ∧ |
| 114 | (∀ j, DifferentiableOn ℂ (fun y => (Q y).coeff j) {y | y ∈ V ∧ c y ≠ 0}) ∧ |
| 115 | ∀ y ∈ V, c y ≠ 0 → (Q y).Monic ∧ (Q y).natDegree = k ∧ |
| 116 | ∀ z : ℂ, (∀ i, (P i y).eval z = 0) ↔ (Q y).eval z = 0 := by |
| 117 | obtain ⟨D, G, c, V, hV, hxV, hVU, hGdeg, hGcoeff, hc, hcn, hroot⟩ := |
| 118 | GenericHolomorphicPolynomial.Constructions.GenericPolynomial.exists_generic_common_root_family P hU hx d hcoeff hdegree (hnever x hx) |
| 119 | have hGn (y : E) (hy : y ∈ V) (hcy : c y ≠ 0) : G y ≠ 0 := by |
| 120 | intro hGy |
| 121 | obtain ⟨i, hi⟩ := hnever y (hVU hy) |
| 122 | apply hi |
| 123 | apply Polynomial.zero_of_eval_zero |
| 124 | intro z |
| 125 | exact ((hroot y hy hcy z).mpr (by simp only [hGy, eval_zero])) i |
| 126 | have hGgerm : ¬∀ᶠ y in 𝓝 x, G y = 0 := by |
| 127 | intro hGzero |
| 128 | apply hcn |
| 129 | filter_upwards [hGzero, hV.mem_nhds hxV] with y hy hyV |
| 130 | by_contra hcy |
| 131 | exact hGn y hyV hcy hy |
| 132 | obtain ⟨k, _, hkn, hkdeg⟩ := exists_generic_degree hGdeg hGgerm |
| 133 | obtain ⟨W, hWsub, hW, hxW⟩ := mem_nhds_iff.mp hkdeg |
| 134 | let c' : E → ℂ := fun y => c y * (G y).coeff k |
| 135 | let Q : E → ℂ[X] := fun y => ((G y).coeff k)⁻¹ • G y |
| 136 | have hc'n : ¬∀ᶠ y in 𝓝 x, c' y = 0 := |
| 137 | not_eventually_zero_mul hV hxV hc (hGcoeff k) hcn hkn |
| 138 | have hgood (y : E) (hy : c' y ≠ 0) : c y ≠ 0 ∧ (G y).coeff k ≠ 0 := mul_ne_zero_iff.mp hy |
| 139 | refine ⟨k, Q, c', V ∩ W, hV.inter hW, ⟨hxV, hxW⟩, |
| 140 | fun _ hy => hVU hy.1, (hc.fun_mul (hGcoeff k)).mono inter_subset_left, hc'n, ?_, ?_⟩ |
| 141 | · intro j |
| 142 | have hsub : {y | y ∈ V ∩ W ∧ c' y ≠ 0} ⊆ V := fun _ hy => hy.1.1 |
| 143 | simp only [Q, coeff_smul, smul_eq_mul] |
| 144 | exact ((hGcoeff k).mono hsub).fun_inv (fun y hy => (hgood y hy.2).2) |>.fun_mul |
| 145 | ((hGcoeff j).mono hsub) |
| 146 | · intro y hy hcy |
| 147 | have hlead := (hgood y hcy).2 |
| 148 | have hQdeg : (Q y).natDegree ≤ k := (natDegree_smul_le _ _).trans (hWsub hy.2) |
| 149 | have hQcoeff : (Q y).coeff k = 1 := by |
| 150 | simp only [Q, coeff_smul, smul_eq_mul, inv_mul_cancel₀ hlead] |
| 151 | refine ⟨monic_of_natDegree_le_of_coeff_eq_one k hQdeg hQcoeff, |
| 152 | le_antisymm hQdeg (le_natDegree_of_ne_zero (by rw [hQcoeff]; exact one_ne_zero)), ?_⟩ |
| 153 | intro z |
| 154 | change (∀ i, (P i y).eval z = 0) ↔ (((G y).coeff k)⁻¹ • G y).eval z = 0 |
| 155 | rw [eval_smul, smul_eq_mul, mul_eq_zero, or_iff_right (inv_ne_zero hlead)] |
| 156 | exact hroot y hy.1 (hgood y hcy).1 z |
| 157 | |
| 158 | end |
| 159 | |
| 160 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericDegree.Constructions.GenericPolynomial |