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.Topology.UniformSpace.HeineCantor |
| 3 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 4 | import Mathlib.Analysis.Calculus.ContDiff.Defs |
| 5 | import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ContDiff |
| 6 | |
| 7 | /-! # Holomorphic Regularity -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicRegularity.Constructions.Regularity |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Cauchy formulas for regularity of finite-dimensional holomorphic maps |
| 15 | |
| 16 | Local inverse charts require continuity of derivatives. The ingredients here |
| 17 | express directional derivatives as circle integrals and prove continuity of |
| 18 | circle integrals with respect to a finite-dimensional parameter. |
| 19 | -/ |
| 20 | |
| 21 | open Set Filter _root_.Metric _root_.Complex |
| 22 | open scoped _root_.Topology Real BigOperators ContDiff |
| 23 | |
| 24 | /-- A circle integral depends continuously on a parameter when its integrand |
| 25 | is continuous on a neighborhood times the circle. -/ |
| 26 | theorem continuousAt_circleIntegral {n : ℕ} |
| 27 | {F : (Fin n → ℂ) → ℂ → ℂ} {U : Set (Fin n → ℂ)} |
| 28 | {x : Fin n → ℂ} {c : ℂ} {R : ℝ} |
| 29 | (hR : 0 ≤ R) (hU : IsOpen U) (hx : x ∈ U) |
| 30 | (hF : ContinuousOn (fun p : (Fin n → ℂ) × ℂ => F p.1 p.2) |
| 31 | (U ×ˢ sphere c R)) : |
| 32 | ContinuousAt (fun y => ∮ z in C(c, R), F y z) x := by |
| 33 | let K := sphere c R |
| 34 | let : CompactSpace K := isCompact_iff_compactSpace.mp (isCompact_sphere c R) |
| 35 | let family : (Fin n → ℂ) → K → ℂ := fun y z => F y z |
| 36 | have hfamily : ContinuousOn (Function.uncurry family) (U ×ˢ univ) := by |
| 37 | apply hF.comp (continuous_fst.prodMk |
| 38 | (continuous_subtype_val.comp continuous_snd)).continuousOn |
| 39 | intro p hp |
| 40 | exact ⟨hp.1, p.2.property⟩ |
| 41 | have huniform : TendstoUniformly family (family x) (𝓝 x) := |
| 42 | ContinuousOn.tendstoUniformly (hU.mem_nhds hx) hfamily |
| 43 | have huniformOn : TendstoUniformlyOn F (F x) (𝓝 x) (sphere c R) := |
| 44 | tendstoUniformlyOn_iff_tendstoUniformly_comp_coe.mpr huniform |
| 45 | have hcontinuous : ∀ᶠ y in 𝓝 x, ContinuousOn (F y) (sphere c R) := by |
| 46 | filter_upwards [hU.mem_nhds hx] with y hy |
| 47 | exact hF.comp (continuous_const.prodMk continuous_id).continuousOn |
| 48 | (fun z hz => ⟨hy, hz⟩) |
| 49 | exact huniformOn.tendsto_circleIntegral_of_continuousOn hR hcontinuous |
| 50 | |
| 51 | /-- Cauchy's formula computes a directional derivative using a disk in the |
| 52 | holomorphy domain. -/ |
| 53 | theorem fderiv_apply_eq_circleIntegral |
| 54 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] {f : E → ℂ} |
| 55 | {U : Set E} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) |
| 56 | (x v : E) {R : ℝ} (hR : 0 < R) |
| 57 | (hball : ∀ z ∈ closedBall (0 : ℂ) R, x + z • v ∈ U) : |
| 58 | fderiv ℂ f x v = (2 * π * I : ℂ)⁻¹ * |
| 59 | ∮ z in C(0, R), (z ^ 2)⁻¹ * f (x + z • v) := by |
| 60 | have hx : x ∈ U := by |
| 61 | simpa only [zero_smul, add_zero] using hball 0 (mem_closedBall_self hR.le) |
| 62 | have hline : Differentiable ℂ (fun z : ℂ => x + z • v) := |
| 63 | (differentiable_const x).add (differentiable_id.smul_const v) |
| 64 | have hlineDeriv : HasDerivAt (fun z : ℂ => x + z • v) v 0 := by |
| 65 | simpa only [id_eq, zero_add, one_smul] using! |
| 66 | (hasDerivAt_const (0 : ℂ) x).add ((hasDerivAt_id (0 : ℂ)).smul_const v) |
| 67 | have hcomp : HasDerivAt (fun z : ℂ => f (x + z • v)) (fderiv ℂ f x v) 0 := by |
| 68 | exact (hf.differentiableAt (hU.mem_nhds hx)).hasFDerivAt.comp_hasDerivAt_of_eq |
| 69 | 0 hlineDeriv (by simp) |
| 70 | have hdiff : DifferentiableOn ℂ (fun z : ℂ => f (x + z • v)) (closedBall 0 R) := |
| 71 | hf.comp hline.differentiableOn hball |
| 72 | have hformula := hdiff.deriv_eq_smul_circleIntegral hR |
| 73 | rw [hcomp.deriv] at hformula |
| 74 | have hformula' : (∮ z in C(0, R), (z ^ 2)⁻¹ * f (x + z • v)) = |
| 75 | (2 * π * I : ℂ) * fderiv ℂ f x v := by |
| 76 | simpa only [sub_zero, one_div, smul_eq_mul] using hformula |
| 77 | rw [hformula', ← mul_assoc, inv_mul_cancel₀ two_pi_I_ne_zero, one_mul] |
| 78 | |
| 79 | /-- An open neighborhood contains a uniform family of small translated disks |
| 80 | in any fixed complex direction. -/ |
| 81 | theorem exists_disk_neighborhood |
| 82 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] {U : Set E} |
| 83 | (hU : IsOpen U) {x : E} (hx : x ∈ U) (v : E) : |
| 84 | ∃ R : ℝ, 0 < R ∧ ∃ V : Set E, IsOpen V ∧ x ∈ V ∧ |
| 85 | ∀ y ∈ V, ∀ z ∈ closedBall (0 : ℂ) R, y + z • v ∈ U := by |
| 86 | have hline : Continuous (fun z : ℂ => x + z • v) := |
| 87 | continuous_const.add (continuous_id.smul continuous_const) |
| 88 | have hpre : (fun z : ℂ => x + z • v) ⁻¹' U ∈ 𝓝 0 := |
| 89 | (hU.preimage hline).mem_nhds (by simpa only [mem_preimage, zero_smul, add_zero] using hx) |
| 90 | obtain ⟨R, hR, hball⟩ := nhds_basis_closedBall.mem_iff.mp hpre |
| 91 | have hmap : Continuous (fun p : E × ℂ => p.1 + p.2 • v) := |
| 92 | continuous_fst.add (continuous_snd.smul continuous_const) |
| 93 | have hp : ({x} : Set E) ×ˢ closedBall (0 : ℂ) R ⊆ |
| 94 | (fun p : E × ℂ => p.1 + p.2 • v) ⁻¹' U := by |
| 95 | rintro ⟨y, z⟩ ⟨hy, hz⟩ |
| 96 | rcases mem_singleton_iff.mp hy with rfl |
| 97 | exact hball hz |
| 98 | obtain ⟨V, W, hV, _, hxV, hRW, hVW⟩ := generalized_tube_lemma |
| 99 | isCompact_singleton (isCompact_closedBall (0 : ℂ) R) (hU.preimage hmap) hp |
| 100 | exact ⟨R, hR, V, hV, hxV (mem_singleton x), |
| 101 | fun y hy z hz => hVW (show (y, z) ∈ V ×ˢ W from ⟨hy, hRW hz⟩)⟩ |
| 102 | |
| 103 | /-- The Cauchy formula makes every fixed directional derivative continuous |
| 104 | on an open holomorphy domain. -/ |
| 105 | theorem continuousAt_fderiv_apply {n : ℕ} {f : (Fin n → ℂ) → ℂ} |
| 106 | {U : Set (Fin n → ℂ)} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) |
| 107 | {x : Fin n → ℂ} (hx : x ∈ U) (v : Fin n → ℂ) : |
| 108 | ContinuousAt (fun y => fderiv ℂ f y v) x := by |
| 109 | obtain ⟨R, hR, V, hV, hxV, hball⟩ := exists_disk_neighborhood hU hx v |
| 110 | have hmap : Continuous (fun p : (Fin n → ℂ) × ℂ => p.1 + p.2 • v) := |
| 111 | continuous_fst.add (continuous_snd.smul continuous_const) |
| 112 | have hvalue : ContinuousOn (fun p : (Fin n → ℂ) × ℂ => f (p.1 + p.2 • v)) |
| 113 | (V ×ˢ sphere (0 : ℂ) R) := |
| 114 | hf.continuousOn.comp hmap.continuousOn |
| 115 | (fun p hp => hball p.1 hp.1 p.2 (sphere_subset_closedBall hp.2)) |
| 116 | have hkernel : ContinuousOn (fun p : (Fin n → ℂ) × ℂ => (p.2 ^ 2)⁻¹) |
| 117 | (V ×ˢ sphere (0 : ℂ) R) := by |
| 118 | apply (continuous_snd.pow 2).continuousOn.inv₀ |
| 119 | intro p hp |
| 120 | apply pow_ne_zero |
| 121 | intro hp0 |
| 122 | have hnorm : ‖p.2‖ = R := by |
| 123 | simpa only [mem_sphere_iff_norm, sub_zero] using hp.2 |
| 124 | rw [hp0, norm_zero] at hnorm |
| 125 | exact hR.ne' hnorm.symm |
| 126 | have hint := continuousAt_circleIntegral |
| 127 | (F := fun y z => (z ^ 2)⁻¹ * f (y + z • v)) (c := 0) |
| 128 | hR.le hV hxV (hkernel.fun_mul hvalue) |
| 129 | have hnormalized := hint.const_mul ((2 * π * I : ℂ)⁻¹) |
| 130 | have heq : (fun y => fderiv ℂ f y v) =ᶠ[𝓝 x] |
| 131 | (fun y => (2 * π * I : ℂ)⁻¹ * ∮ z in C(0, R), (z ^ 2)⁻¹ * f (y + z • v)) := by |
| 132 | filter_upwards [hV.mem_nhds hxV] with y hy |
| 133 | exact fderiv_apply_eq_circleIntegral hU hf y v hR (hball y hy) |
| 134 | exact hnormalized.congr_of_eventuallyEq heq |
| 135 | |
| 136 | /-- An operator on a finite coordinate space is the finite sum of its |
| 137 | coordinate projections, weighted by its values on coordinate basis vectors. -/ |
| 138 | theorem clm_eq_sum_basis {n : ℕ} (L : (Fin n → ℂ) →L[ℂ] ℂ) : |
| 139 | L = ∑ i : Fin n, (ContinuousLinearMap.proj i).smulRight (L (Pi.single i 1)) := by |
| 140 | ext z |
| 141 | simp only [sum_apply, ContinuousLinearMap.smulRight_apply, |
| 142 | ContinuousLinearMap.proj_apply] |
| 143 | have hz : (∑ i : Fin n, z i • (Pi.single i 1 : Fin n → ℂ)) = z := by |
| 144 | ext j |
| 145 | simp [Pi.single_apply] |
| 146 | calc |
| 147 | L z = L (∑ i : Fin n, z i • (Pi.single i 1 : Fin n → ℂ)) := congrArg L hz.symm |
| 148 | _ = _ := by simp only [map_sum, map_smul] |
| 149 | |
| 150 | /-- Complex differentiability on an open finite-dimensional domain forces |
| 151 | the full Fréchet derivative to be continuous. -/ |
| 152 | theorem continuousAt_fderiv {n : ℕ} {f : (Fin n → ℂ) → ℂ} |
| 153 | {U : Set (Fin n → ℂ)} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) |
| 154 | {x : Fin n → ℂ} (hx : x ∈ U) : ContinuousAt (fderiv ℂ f) x := by |
| 155 | have heq : fderiv ℂ f = (fun y => ∑ i : Fin n, |
| 156 | (ContinuousLinearMap.proj i).smulRight (fderiv ℂ f y (Pi.single i 1))) := |
| 157 | funext (fun y => clm_eq_sum_basis (fderiv ℂ f y)) |
| 158 | rw [heq] |
| 159 | apply tendsto_finsetSum |
| 160 | intro i _ |
| 161 | change ContinuousAt (fun y => ContinuousLinearMap.smulRightL ℂ (Fin n → ℂ) ℂ |
| 162 | (ContinuousLinearMap.proj i) (fderiv ℂ f y (Pi.single i 1))) x |
| 163 | exact (ContinuousLinearMap.smulRightL ℂ (Fin n → ℂ) ℂ |
| 164 | (ContinuousLinearMap.proj i)).continuous.continuousAt.comp |
| 165 | (continuousAt_fderiv_apply hU hf hx (Pi.single i 1)) |
| 166 | |
| 167 | /-- A complex differentiable scalar function on an open coordinate domain is |
| 168 | continuously differentiable there. -/ |
| 169 | theorem contDiffOn_one_of_differentiableOn {n : ℕ} {f : (Fin n → ℂ) → ℂ} |
| 170 | {U : Set (Fin n → ℂ)} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) : |
| 171 | ContDiffOn ℂ 1 f U := by |
| 172 | change ContDiffOn ℂ ((0 : ℕ∞ω) + 1) f U |
| 173 | rw [contDiffOn_succ_iff_fderiv_of_isOpen hU] |
| 174 | exact ⟨hf, by simp, contDiffOn_zero.mpr |
| 175 | (fun x hx => (continuousAt_fderiv hU hf hx).continuousWithinAt)⟩ |
| 176 | |
| 177 | /-- The same regularity holds for maps between finite complex coordinate |
| 178 | spaces, by applying the scalar result to each target coordinate. -/ |
| 179 | theorem contDiffOn_one_of_differentiableOn_pi {n m : ℕ} |
| 180 | {f : (Fin n → ℂ) → (Fin m → ℂ)} {U : Set (Fin n → ℂ)} |
| 181 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) : ContDiffOn ℂ 1 f U := by |
| 182 | apply contDiffOn_pi.mpr |
| 183 | intro i |
| 184 | have heval : Differentiable ℂ (fun z : Fin m → ℂ => z i) := differentiable_apply i |
| 185 | exact contDiffOn_one_of_differentiableOn hU (heval.comp_differentiableOn hf) |
| 186 | |
| 187 | /-- Coordinate transport gives continuous differentiability for holomorphic |
| 188 | maps between arbitrary finite-dimensional complex normed spaces. -/ |
| 189 | theorem contDiffOn_one_of_differentiableOn_finiteDimensional |
| 190 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 191 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 192 | {f : E → F} {U : Set E} (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) : |
| 193 | ContDiffOn ℂ 1 f U := by |
| 194 | let e := (Module.finBasis ℂ E).equivFunL |
| 195 | let e' := (Module.finBasis ℂ F).equivFunL |
| 196 | have hd : DifferentiableOn ℂ (e' ∘ f ∘ e.symm) (e.symm ⁻¹' U) := |
| 197 | e'.differentiable.comp_differentiableOn |
| 198 | (hf.comp e.symm.differentiable.differentiableOn (mapsTo_preimage e.symm U)) |
| 199 | have hc := contDiffOn_one_of_differentiableOn_pi (hU.preimage e.symm.continuous) hd |
| 200 | have hmaps : MapsTo e U (e.symm ⁻¹' U) := by |
| 201 | intro x hx |
| 202 | simpa only [mem_preimage, e.symm_apply_apply] using hx |
| 203 | have hret := e'.symm.contDiff.comp_contDiffOn (hc.comp e.contDiff.contDiffOn hmaps) |
| 204 | simpa only [Function.comp_def, e.symm_apply_apply, e'.symm_apply_apply] using hret |
| 205 | |
| 206 | /-- A holomorphic coordinate map with an invertible derivative has an actual |
| 207 | local inverse which is holomorphic on its open domain. -/ |
| 208 | theorem exists_holomorphic_localInverse |
| 209 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 210 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 211 | {f : E → F} {U : Set E} |
| 212 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) {x : E} (hx : x ∈ U) |
| 213 | (e : E ≃L[ℂ] F) |
| 214 | (he : fderiv ℂ f x = e.toContinuousLinearMap) : |
| 215 | ∃ q : OpenPartialHomeomorph E F, |
| 216 | x ∈ q.source ∧ (q : E → F) = f ∧ |
| 217 | DifferentiableOn ℂ q q.source ∧ DifferentiableOn ℂ q.symm q.target := by |
| 218 | let : CompleteSpace E := FiniteDimensional.complete ℂ E |
| 219 | have hcd : ContDiffAt ℂ 1 f x := |
| 220 | (contDiffOn_one_of_differentiableOn_finiteDimensional hU hf).contDiffAt (hU.mem_nhds hx) |
| 221 | have hd : HasFDerivAt f e.toContinuousLinearMap x := by |
| 222 | rw [← he] |
| 223 | exact (hf.differentiableAt (hU.mem_nhds hx)).hasFDerivAt |
| 224 | let q₀ := hcd.toOpenPartialHomeomorph f hd (by simp) |
| 225 | have hx₀ : x ∈ q₀.source := hcd.mem_toOpenPartialHomeomorph_source hd (by simp) |
| 226 | have hinv : ContDiffAt ℂ 1 q₀.symm (q₀ x) := hcd.to_localInverse hd (by simp) |
| 227 | refine ⟨q₀.restrContDiff ℂ 1 (by simp), ⟨hx₀, hcd, hinv⟩, rfl, ?_, ?_⟩ |
| 228 | · exact (q₀.contDiffOn_restrContDiff_source ℂ (by simp)).differentiableOn one_ne_zero |
| 229 | · exact (q₀.contDiffOn_restrContDiff_target ℂ (by simp)).differentiableOn one_ne_zero |
| 230 | |
| 231 | end |
| 232 | |
| 233 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicRegularity.Constructions.Regularity |