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.ClosedDiskFactorization |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicRegularity |
| 3 | |
| 4 | /-! # Root Families At -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.RootFamiliesAt.Constructions.RootFamilies |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Root counts in holomorphic families |
| 12 | |
| 13 | The normalized zeroth contour moment is a natural number. Joint holomorphy |
| 14 | makes it continuous in the parameter, so it is locally constant as long as |
| 15 | the boundary circle contains no zeros. |
| 16 | -/ |
| 17 | |
| 18 | open Set Filter _root_.Metric _root_.Complex |
| 19 | open scoped _root_.Topology BigOperators |
| 20 | |
| 21 | def moment (f : ℂ → ℂ) (c : ℂ) (R : ℝ) (k : ℕ) : ℂ := |
| 22 | (2 * Real.pi * I : ℂ)⁻¹ * ∮ z in C(c, R), z ^ k * logDeriv f z |
| 23 | |
| 24 | theorem exists_nonzero_in_ball {f : ℂ → ℂ} {c : ℂ} {R : ℝ} |
| 25 | (hR : 0 < R) (hf : ContinuousOn f (closedBall c R)) |
| 26 | (hboundary : ∀ z ∈ sphere c R, f z ≠ 0) : |
| 27 | ∃ z ∈ ball c R, f z ≠ 0 := by |
| 28 | obtain ⟨z, hz⟩ := (NormedSpace.sphere_nonempty (E := ℂ)).mpr hR.le |
| 29 | have hzc : z ∈ closure (ball c R) := by |
| 30 | rw [closure_ball c hR.ne'] |
| 31 | exact sphere_subset_closedBall hz |
| 32 | have hn : {w | f w ≠ 0} ∈ 𝓝[closedBall c R] z := |
| 33 | (hf z (sphere_subset_closedBall hz)).eventually_ne (hboundary z hz) |
| 34 | have hnb : {w | f w ≠ 0} ∈ 𝓝[ball c R] z := |
| 35 | nhdsWithin_mono z ball_subset_closedBall hn |
| 36 | have : NeBot (𝓝[ball c R] z) := mem_closure_iff_nhdsWithin_neBot.mp hzc |
| 37 | let : NeBot (𝓝[ball c R] z) := this |
| 38 | obtain ⟨w, hw, hwn⟩ := (eventually_mem_nhdsWithin.and hnb).exists |
| 39 | exact ⟨w, hw, hwn⟩ |
| 40 | |
| 41 | theorem exists_moment_root_tuple {f : ℂ → ℂ} {c : ℂ} {R : ℝ} |
| 42 | (hR : 0 < R) (hf : AnalyticOnNhd ℂ f (closedBall c R)) |
| 43 | (hboundary : ∀ z ∈ sphere c R, f z ≠ 0) : |
| 44 | ∃ (d : ℕ) (roots : Fin d → ℂ), (∀ i, roots i ∈ ball c R) ∧ |
| 45 | ∀ k : ℕ, moment f c R k = ∑ i, (roots i) ^ k := by |
| 46 | obtain ⟨d, roots, hr, hm⟩ := ClosedDiskFactorization.Constructions.DiskFactorization.exists_contour_root_moments hR hf |
| 47 | (exists_nonzero_in_ball hR hf.continuousOn hboundary) hboundary |
| 48 | refine ⟨d, roots, hr, fun k => ?_⟩ |
| 49 | rw [moment, hm, ← mul_assoc, inv_mul_cancel₀ two_pi_I_ne_zero, one_mul] |
| 50 | |
| 51 | theorem exists_nat_moment_zero {f : ℂ → ℂ} {c : ℂ} {R : ℝ} |
| 52 | (hR : 0 < R) (hf : AnalyticOnNhd ℂ f (closedBall c R)) |
| 53 | (hboundary : ∀ z ∈ sphere c R, f z ≠ 0) : |
| 54 | ∃ d : ℕ, moment f c R 0 = d := by |
| 55 | obtain ⟨d, roots, _, hm⟩ := exists_moment_root_tuple hR hf hboundary |
| 56 | exact ⟨d, by simpa using hm 0⟩ |
| 57 | |
| 58 | theorem nat_eq_of_complex_dist_lt_one {m n : ℕ} |
| 59 | (h : dist (m : ℂ) (n : ℂ) < 1) : m = n := by |
| 60 | have hr : |(m : ℝ) - (n : ℝ)| < 1 := by |
| 61 | simpa only [dist_eq_norm, ← ofReal_natCast, ← ofReal_sub, norm_real, |
| 62 | Real.norm_eq_abs] using h |
| 63 | obtain ⟨hlo, hhi⟩ := abs_lt.mp hr |
| 64 | have hm : m < n + 1 := by exact_mod_cast (by linarith : (m : ℝ) < n + 1) |
| 65 | have hn : n < m + 1 := by exact_mod_cast (by linarith : (n : ℝ) < m + 1) |
| 66 | omega |
| 67 | |
| 68 | theorem eventually_eq_of_continuousAt_nat_values {X : Type*} [TopologicalSpace X] |
| 69 | {g : X → ℂ} {x : X} (hg : ContinuousAt g x) |
| 70 | (hn : ∀ᶠ y in 𝓝 x, ∃ d : ℕ, g y = d) : |
| 71 | ∀ᶠ y in 𝓝 x, g y = g x := by |
| 72 | obtain ⟨d, hd⟩ := hn.self_of_nhds |
| 73 | have hclose : ∀ᶠ y in 𝓝 x, dist (g y) (g x) < 1 := |
| 74 | hg (ball_mem_nhds (g x) zero_lt_one) |
| 75 | filter_upwards [hn, hclose] with y hy hxy |
| 76 | obtain ⟨e, he⟩ := hy |
| 77 | rw [he, hd] at hxy ⊢ |
| 78 | exact congrArg (fun a : ℕ => (a : ℂ)) (nat_eq_of_complex_dist_lt_one hxy) |
| 79 | |
| 80 | theorem analyticOnNhd_slice {n : ℕ} {F : (Fin n → ℂ) × ℂ → ℂ} |
| 81 | {W : Set ((Fin n → ℂ) × ℂ)} (hW : IsOpen W) |
| 82 | (hF : DifferentiableOn ℂ F W) (y : Fin n → ℂ) |
| 83 | {K : Set ℂ} (hK : ∀ z ∈ K, (y, z) ∈ W) : |
| 84 | AnalyticOnNhd ℂ (fun z => F (y, z)) K := by |
| 85 | have hopen : IsOpen ((fun z : ℂ => (y, z)) ⁻¹' W) := |
| 86 | hW.preimage (continuous_const.prodMk continuous_id) |
| 87 | have hd : DifferentiableOn ℂ (fun z => F (y, z)) ((fun z => (y, z)) ⁻¹' W) := |
| 88 | hF.comp ((differentiable_const y).prodMk differentiable_id).differentiableOn |
| 89 | (fun _ hz => hz) |
| 90 | exact (hd.analyticOnNhd hopen).mono hK |
| 91 | |
| 92 | theorem deriv_slice_eq_fderiv {n : ℕ} {F : (Fin n → ℂ) × ℂ → ℂ} |
| 93 | {p : (Fin n → ℂ) × ℂ} (hF : DifferentiableAt ℂ F p) : |
| 94 | deriv (fun z => F (p.1, z)) p.2 = fderiv ℂ F p (0, 1) := by |
| 95 | have hp : HasDerivAt (fun z : ℂ => (p.1, z)) (0, 1) p.2 := |
| 96 | (hasDerivAt_const p.2 p.1).prodMk (hasDerivAt_id p.2) |
| 97 | exact (hF.hasFDerivAt.comp_hasDerivAt p.2 hp).deriv |
| 98 | |
| 99 | theorem continuousAt_moment {n : ℕ} {F : (Fin n → ℂ) × ℂ → ℂ} |
| 100 | {W : Set ((Fin n → ℂ) × ℂ)} (hW : IsOpen W) |
| 101 | (hF : DifferentiableOn ℂ F W) {U : Set (Fin n → ℂ)} (hU : IsOpen U) |
| 102 | {x : Fin n → ℂ} (hx : x ∈ U) {c : ℂ} {R : ℝ} (hR : 0 ≤ R) |
| 103 | (hUW : U ×ˢ sphere c R ⊆ W) |
| 104 | (hn : ∀ p ∈ U ×ˢ sphere c R, F p ≠ 0) (k : ℕ) : |
| 105 | ContinuousAt (fun y => moment (fun z => F (y, z)) c R k) x := by |
| 106 | have hcd := HolomorphicRegularity.Constructions.Regularity.contDiffOn_one_of_differentiableOn_finiteDimensional hW hF |
| 107 | have hd := (hcd.continuousOn_fderiv_of_isOpen hW le_rfl).clm_apply |
| 108 | (g := fun _ => ((0 : Fin n → ℂ), (1 : ℂ))) continuousOn_const |
| 109 | have hl : ContinuousOn (fun p : (Fin n → ℂ) × ℂ => |
| 110 | logDeriv (fun z => F (p.1, z)) p.2) (U ×ˢ sphere c R) := by |
| 111 | apply ((hd.mono hUW).div (hF.continuousOn.mono hUW) hn).congr |
| 112 | intro p hp |
| 113 | change deriv (fun z => F (p.1, z)) p.2 / F p = fderiv ℂ F p (0, 1) / F p |
| 114 | rw [deriv_slice_eq_fderiv (hF.differentiableAt (hW.mem_nhds (hUW hp)))] |
| 115 | exact (HolomorphicRegularity.Constructions.Regularity.continuousAt_circleIntegral hR hU hx |
| 116 | ((continuous_snd.pow k).continuousOn.fun_mul hl)).const_mul _ |
| 117 | |
| 118 | theorem locally_constant_root_count {n : ℕ} {F : (Fin n → ℂ) × ℂ → ℂ} |
| 119 | {W : Set ((Fin n → ℂ) × ℂ)} (hW : IsOpen W) |
| 120 | (hF : DifferentiableOn ℂ F W) {U : Set (Fin n → ℂ)} (hU : IsOpen U) |
| 121 | {x : Fin n → ℂ} (hx : x ∈ U) {c : ℂ} {R : ℝ} (hR : 0 < R) |
| 122 | (hUW : U ×ˢ closedBall c R ⊆ W) |
| 123 | (hn : ∀ p ∈ U ×ˢ sphere c R, F p ≠ 0) : |
| 124 | ∃ d : ℕ, ∀ᶠ y in 𝓝 x, moment (fun z => F (y, z)) c R 0 = d := by |
| 125 | have hnat : ∀ y ∈ U, ∃ d : ℕ, moment (fun z => F (y, z)) c R 0 = d := by |
| 126 | intro y hy |
| 127 | exact exists_nat_moment_zero hR (analyticOnNhd_slice hW hF y |
| 128 | (fun z hz => hUW ⟨hy, hz⟩)) (fun z hz => hn (y, z) ⟨hy, hz⟩) |
| 129 | obtain ⟨d, hd⟩ := hnat x hx |
| 130 | refine ⟨d, ?_⟩ |
| 131 | have hcont := continuousAt_moment hW hF hU hx hR.le |
| 132 | (fun p hp => hUW ⟨hp.1, sphere_subset_closedBall hp.2⟩) hn 0 |
| 133 | have heq := eventually_eq_of_continuousAt_nat_values hcont |
| 134 | (by filter_upwards [hU.mem_nhds hx] with y hy; exact hnat y hy) |
| 135 | simpa only [hd] using heq |
| 136 | |
| 137 | /-- Compactness of the circle preserves the absence of boundary zeros on |
| 138 | an actual open neighborhood of the base parameter. -/ |
| 139 | theorem exists_disk_family_neighborhood {n : ℕ} {F : (Fin n → ℂ) × ℂ → ℂ} |
| 140 | {W : Set ((Fin n → ℂ) × ℂ)} (hW : IsOpen W) (hF : ContinuousOn F W) |
| 141 | {x : Fin n → ℂ} {c : ℂ} {R : ℝ} |
| 142 | (hbase : ∀ z ∈ closedBall c R, (x, z) ∈ W) |
| 143 | (hn : ∀ z ∈ sphere c R, F (x, z) ≠ 0) : |
| 144 | ∃ U : Set (Fin n → ℂ), IsOpen U ∧ x ∈ U ∧ |
| 145 | U ×ˢ closedBall c R ⊆ W ∧ ∀ p ∈ U ×ˢ sphere c R, F p ≠ 0 := by |
| 146 | have hbase' : ({x} : Set (Fin n → ℂ)) ×ˢ closedBall c R ⊆ W := by |
| 147 | rintro ⟨y, z⟩ ⟨hy, hz⟩ |
| 148 | rcases mem_singleton_iff.mp hy with rfl |
| 149 | exact hbase z hz |
| 150 | obtain ⟨U₁, V₁, hU₁, _, hx₁, hV₁, hUV₁⟩ := generalized_tube_lemma |
| 151 | isCompact_singleton (isCompact_closedBall c R) hW hbase' |
| 152 | have hopen : IsOpen (W ∩ F ⁻¹' ({0} : Set ℂ)ᶜ) := |
| 153 | hF.isOpen_inter_preimage hW isClosed_singleton.isOpen_compl |
| 154 | have hsphere : ({x} : Set (Fin n → ℂ)) ×ˢ sphere c R ⊆ |
| 155 | W ∩ F ⁻¹' ({0} : Set ℂ)ᶜ := by |
| 156 | rintro ⟨y, z⟩ ⟨hy, hz⟩ |
| 157 | rcases mem_singleton_iff.mp hy with rfl |
| 158 | exact ⟨hbase z (sphere_subset_closedBall hz), hn z hz⟩ |
| 159 | obtain ⟨U₂, V₂, hU₂, _, hx₂, hV₂, hUV₂⟩ := generalized_tube_lemma |
| 160 | isCompact_singleton (isCompact_sphere c R) hopen hsphere |
| 161 | refine ⟨U₁ ∩ U₂, hU₁.inter hU₂, ⟨hx₁ (mem_singleton x), hx₂ (mem_singleton x)⟩, |
| 162 | fun p hp => hUV₁ ⟨hp.1.1, hV₁ hp.2⟩, ?_⟩ |
| 163 | exact fun p hp => (hUV₂ ⟨hp.1.2, hV₂ hp.2⟩).2 |
| 164 | |
| 165 | theorem moment_of_factorization {f u : ℂ → ℂ} {c : ℂ} {R : ℝ} {d : ℕ} |
| 166 | (roots : Fin d → ℂ) (hR : 0 < R) (hr : ∀ i, roots i ∈ ball c R) |
| 167 | (hu : AnalyticOnNhd ℂ u (closedBall c R)) |
| 168 | (hun : ∀ z ∈ closedBall c R, u z ≠ 0) |
| 169 | (hfu : ∀ z ∈ closedBall c R, |
| 170 | f =ᶠ[𝓝 z] (fun w => RootMomentsNe.Constructions.RootMoments.rootProduct roots w * u w)) (k : ℕ) : |
| 171 | moment f c R k = ∑ i, roots i ^ k := by |
| 172 | have heq : (∮ z in C(c, R), z ^ k * logDeriv f z) = |
| 173 | (2 * Real.pi * I) * ∑ i, roots i ^ k := by |
| 174 | calc |
| 175 | _ = ∮ z in C(c, R), z ^ k * |
| 176 | logDeriv (fun w => RootMomentsNe.Constructions.RootMoments.rootProduct roots w * u w) z := by |
| 177 | apply circleIntegral.integral_congr hR.le |
| 178 | intro z hz |
| 179 | dsimp only |
| 180 | congr 1 |
| 181 | exact (logDeriv_congr_nhds (hfu z (sphere_subset_closedBall hz))).eq_of_nhds |
| 182 | _ = _ := RootMomentsNe.Constructions.RootMoments.integral_rootProduct_mul_nonvanishing roots hR hr hu hun k |
| 183 | rw [moment, heq, ← mul_assoc, inv_mul_cancel₀ two_pi_I_ne_zero, one_mul] |
| 184 | |
| 185 | /-- Starting with just one fiber free of boundary zeros gives a fixed degree |
| 186 | and actual polynomial-times-unit factorizations for all nearby fibers. -/ |
| 187 | theorem exists_fixed_degree_factorization {n : ℕ} {F : (Fin n → ℂ) × ℂ → ℂ} |
| 188 | {W : Set ((Fin n → ℂ) × ℂ)} (hW : IsOpen W) |
| 189 | (hF : DifferentiableOn ℂ F W) {x : Fin n → ℂ} {c : ℂ} {R : ℝ} (hR : 0 < R) |
| 190 | (hbase : ∀ z ∈ closedBall c R, (x, z) ∈ W) |
| 191 | (hn : ∀ z ∈ sphere c R, F (x, z) ≠ 0) : |
| 192 | ∃ (d : ℕ) (U : Set (Fin n → ℂ)), IsOpen U ∧ x ∈ U ∧ |
| 193 | U ×ˢ closedBall c R ⊆ W ∧ (∀ p ∈ U ×ˢ sphere c R, F p ≠ 0) ∧ |
| 194 | ∀ y ∈ U, ∃ (roots : Fin d → ℂ) (u : ℂ → ℂ), |
| 195 | (∀ i, roots i ∈ ball c R) ∧ AnalyticOnNhd ℂ u (closedBall c R) ∧ |
| 196 | (∀ z ∈ closedBall c R, u z ≠ 0) ∧ |
| 197 | (∀ z ∈ closedBall c R, (fun w => F (y, w)) =ᶠ[𝓝 z] |
| 198 | (fun w => RootMomentsNe.Constructions.RootMoments.rootProduct roots w * u w)) ∧ |
| 199 | ∀ k : ℕ, moment (fun z => F (y, z)) c R k = ∑ i, roots i ^ k := by |
| 200 | obtain ⟨U, hU, hx, hUW, hUn⟩ := |
| 201 | exists_disk_family_neighborhood hW hF.continuousOn hbase hn |
| 202 | obtain ⟨d, hd⟩ := locally_constant_root_count hW hF hU hx hR hUW hUn |
| 203 | obtain ⟨V, hVd, hV, hxV⟩ := _root_.mem_nhds_iff.mp hd |
| 204 | refine ⟨d, U ∩ V, hU.inter hV, ⟨hx, hxV⟩, |
| 205 | fun p hp => hUW ⟨hp.1.1, hp.2⟩, |
| 206 | fun p hp => hUn p ⟨hp.1.1, hp.2⟩, ?_⟩ |
| 207 | intro y hy |
| 208 | have hya := analyticOnNhd_slice hW hF y (fun z hz => hUW ⟨hy.1, hz⟩) |
| 209 | have hyn : ∀ z ∈ sphere c R, F (y, z) ≠ 0 := fun z hz => hUn (y, z) ⟨hy.1, hz⟩ |
| 210 | obtain ⟨e, roots, u, hr, hu, hun, hfu⟩ := |
| 211 | ClosedDiskFactorization.Constructions.DiskFactorization.exists_root_tuple_unit_on_closedDisk hya |
| 212 | (exists_nonzero_in_ball hR hya.continuousOn hyn) hyn |
| 213 | have hm := moment_of_factorization roots hR hr hu hun hfu |
| 214 | have he : e = d := by |
| 215 | apply Nat.cast_injective (R := ℂ) |
| 216 | calc |
| 217 | (e : ℂ) = moment (fun z => F (y, z)) c R 0 := by simpa using (hm 0).symm |
| 218 | _ = d := hVd hy.2 |
| 219 | subst e |
| 220 | exact ⟨roots, u, hr, hu, hun, hfu, hm⟩ |
| 221 | |
| 222 | end |
| 223 | |
| 224 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.RootFamiliesAt.Constructions.RootFamilies |