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.HolomorphicIntegralF |
| 2 | import Mathlib.Analysis.Complex.CauchyIntegral |
| 3 | |
| 4 | /-! # Holomorphic Contour F -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace Geometry.ComplexTorus.RiemannProjectivity.HolomorphicContourF.Constructions.HolomorphicContour |
| 11 | |
| 12 | /-! |
| 13 | # RiemannProjectivity: holomorphic parameter dependence of contour integrals |
| 14 | |
| 15 | The circle integral is written as an actual integral over the compact angle |
| 16 | interval. Joint continuity supplies domination, so its complex derivative |
| 17 | is the contour integral of the parameter derivatives. |
| 18 | -/ |
| 19 | |
| 20 | open Set _root_.MeasureTheory |
| 21 | open scoped _root_.Topology |
| 22 | |
| 23 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 24 | [FiniteDimensional ℂ V] |
| 25 | [NormedAddCommGroup W] [NormedSpace ℂ W] [FiniteDimensional ℂ W] |
| 26 | |
| 27 | theorem hasFDerivAt_circleIntegral (F : V → ℂ → W) (D : V → ℂ → V →L[ℂ] W) |
| 28 | {U : Set V} (hU : IsOpen U) (c : ℂ) (R : ℝ) |
| 29 | (hF : ContinuousOn (fun p : V × ℂ => F p.1 p.2) (U ×ˢ Metric.sphere c |R|)) |
| 30 | (hD : ContinuousOn (fun p : V × ℂ => D p.1 p.2) (U ×ˢ Metric.sphere c |R|)) |
| 31 | (hder : ∀ x ∈ U, ∀ z ∈ Metric.sphere c |R|, |
| 32 | HasFDerivAt (fun y => F y z) (D x z) x) |
| 33 | {x : V} (hx : x ∈ U) : |
| 34 | HasFDerivAt (fun y => ∮ z in C(c, R), F y z) (∮ z in C(c, R), D x z) x := by |
| 35 | let K := Icc (0 : ℝ) (2 * Real.pi) |
| 36 | let μ : Measure K := (volume : Measure ℝ).comap Subtype.val |
| 37 | let : IsFiniteMeasureOnCompacts μ := IsFiniteMeasureOnCompacts.comap' |
| 38 | (volume : Measure ℝ) continuous_subtype_val (MeasurableEmbedding.subtype_coe measurableSet_Icc) |
| 39 | let G : V → K → W := fun y t => deriv (circleMap c R) t.val • F y (circleMap c R t.val) |
| 40 | let D' : V → K → V →L[ℂ] W := |
| 41 | fun y t => deriv (circleMap c R) t.val • D y (circleMap c R t.val) |
| 42 | have hmap : Continuous (fun p : V × K => (p.1, circleMap c R p.2.val)) := by fun_prop |
| 43 | have hmaps : MapsTo (fun p : V × K => (p.1, circleMap c R p.2.val)) |
| 44 | (U ×ˢ univ) (U ×ˢ Metric.sphere c |R|) := |
| 45 | fun p hp => ⟨hp.1, circleMap_mem_sphere' c R p.2.val⟩ |
| 46 | have hscalar : Continuous (fun p : V × K => deriv (circleMap c R) p.2.val) := by |
| 47 | simp_rw [deriv_circleMap] |
| 48 | fun_prop |
| 49 | have hG : ContinuousOn (fun p : V × K => G p.1 p.2) (U ×ˢ univ) := |
| 50 | hscalar.continuousOn.smul (hF.comp hmap.continuousOn hmaps) |
| 51 | have hD' : ContinuousOn (fun p : V × K => D' p.1 p.2) (U ×ˢ univ) := |
| 52 | hscalar.continuousOn.smul (hD.comp hmap.continuousOn hmaps) |
| 53 | have hdiff : ∀ y ∈ U, ∀ t : K, HasFDerivAt (fun w => G w t) (D' y t) y := by |
| 54 | intro y hy t |
| 55 | exact (hder y hy _ (circleMap_mem_sphere' c R t.val)).const_smul _ |
| 56 | have hI := HolomorphicIntegralF.Constructions.HolomorphicIntegral.hasFDerivAt_integral_of_compact μ G D' hU hG hD' hdiff hx |
| 57 | have hIF : (fun y => ∮ z in C(c, R), F y z) = (fun y => ∫ t, G y t ∂μ) := by |
| 58 | funext y |
| 59 | rw [circleIntegral_def_Icc] |
| 60 | simpa only [G, μ, K] using! (integral_subtype_comap (μ := volume) (s := Icc (0 : ℝ) (2 * Real.pi)) measurableSet_Icc |
| 61 | (fun t => deriv (circleMap c R) t • F y (circleMap c R t))).symm |
| 62 | have hID : (∮ z in C(c, R), D x z) = ∫ t, D' x t ∂μ := by |
| 63 | rw [circleIntegral_def_Icc] |
| 64 | simpa only [D', μ, K] using! (integral_subtype_comap (μ := volume) (s := Icc (0 : ℝ) (2 * Real.pi)) measurableSet_Icc |
| 65 | (fun t => deriv (circleMap c R) t • D x (circleMap c R t))).symm |
| 66 | rw [hIF, hID] |
| 67 | exact hI |
| 68 | |
| 69 | end Geometry.ComplexTorus.RiemannProjectivity.HolomorphicContourF.Constructions.HolomorphicContour |
| 70 | |
| 71 | namespace Geometry.ComplexTorus.RiemannProjectivity.HolomorphicContourF.Constructions.HolomorphicDerivative |
| 72 | |
| 73 | /-! |
| 74 | # RiemannProjectivity: holomorphic directional derivatives in finite dimensions |
| 75 | |
| 76 | Cauchy's derivative formula expresses each directional derivative as a |
| 77 | contour integral. The proved parameter-integral theorem then gives its |
| 78 | complex differentiability in the base point. |
| 79 | -/ |
| 80 | |
| 81 | open Set Filter _root_.Metric |
| 82 | open scoped _root_.Topology ContDiff |
| 83 | |
| 84 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 85 | [NormedAddCommGroup W] [NormedSpace ℂ W] |
| 86 | [FiniteDimensional ℂ V] [FiniteDimensional ℂ W] |
| 87 | |
| 88 | theorem differentiableAt_directionalDerivative {f : V → W} {U : Set V} |
| 89 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) {x : V} (hx : x ∈ U) (v : V) : |
| 90 | DifferentiableAt ℂ (fun y => fderiv ℂ f y v) x := by |
| 91 | let : CompleteSpace W := FiniteDimensional.complete ℂ W |
| 92 | let A : V × ℂ → V := fun p => p.1 + p.2 • v |
| 93 | have hA : Continuous A := continuous_fst.add (continuous_snd.smul continuous_const) |
| 94 | obtain ⟨r, hr, hsub⟩ := Metric.isOpen_iff.mp (hU.preimage hA) (x, 0) |
| 95 | (by simpa [A] using hx) |
| 96 | let R := r / 2 |
| 97 | have hR : 0 < R := half_pos hr |
| 98 | have hmem : ∀ y ∈ closedBall x R, ∀ z ∈ closedBall (0 : ℂ) R, y + z • v ∈ U := by |
| 99 | intro y hy z hz |
| 100 | apply hsub (a := (y, z)) |
| 101 | change dist (y, z) (x, 0) < r |
| 102 | rw [Prod.dist_eq] |
| 103 | exact max_lt ((mem_closedBall.mp hy).trans_lt (half_lt_self hr)) |
| 104 | ((mem_closedBall.mp hz).trans_lt (half_lt_self hr)) |
| 105 | have hmaps : MapsTo A (ball x R ×ˢ sphere (0 : ℂ) |R|) U := by |
| 106 | intro p hp |
| 107 | apply hmem p.1 (ball_subset_closedBall hp.1) p.2 |
| 108 | simpa only [abs_of_pos hR] using sphere_subset_closedBall hp.2 |
| 109 | have hf1 : ContDiffOn ℂ 1 f U := fun y hy => |
| 110 | (HolomorphicRegularityAt.Constructions.HolomorphicRegularity.contDiffAt_one_of_differentiableOn hU hf hy).contDiffWithinAt |
| 111 | have hDf : ContinuousOn (fderiv ℂ f) U := hf1.continuousOn_fderiv_of_isOpen hU (by norm_num) |
| 112 | have hweight : ContinuousOn (fun p : V × ℂ => (1 : ℂ) / p.2 ^ 2) |
| 113 | (ball x R ×ˢ sphere (0 : ℂ) |R|) := by |
| 114 | simp only [one_div] |
| 115 | apply (continuous_snd.pow 2).continuousOn.inv₀ |
| 116 | intro p hp |
| 117 | apply pow_ne_zero |
| 118 | intro hz |
| 119 | have h := mem_sphere.mp hp.2 |
| 120 | simp only [hz, dist_self, abs_of_pos hR] at h |
| 121 | exact hR.ne' h.symm |
| 122 | let F : V → ℂ → W := fun y z => (1 / z ^ 2 : ℂ) • f (y + z • v) |
| 123 | let D : V → ℂ → V →L[ℂ] W := fun y z => (1 / z ^ 2 : ℂ) • fderiv ℂ f (y + z • v) |
| 124 | have hFc : ContinuousOn (fun p : V × ℂ => F p.1 p.2) (ball x R ×ˢ sphere (0 : ℂ) |R|) := |
| 125 | hweight.smul (hf.continuousOn.comp hA.continuousOn hmaps) |
| 126 | have hDc : ContinuousOn (fun p : V × ℂ => D p.1 p.2) (ball x R ×ˢ sphere (0 : ℂ) |R|) := |
| 127 | hweight.smul (hDf.comp hA.continuousOn hmaps) |
| 128 | have hder : ∀ y ∈ ball x R, ∀ z ∈ sphere (0 : ℂ) |R|, |
| 129 | HasFDerivAt (fun w => F w z) (D y z) y := by |
| 130 | intro y hy z hz |
| 131 | have hpoint := hmaps (show (y, z) ∈ ball x R ×ˢ sphere (0 : ℂ) |R| from ⟨hy, hz⟩) |
| 132 | have h := ((hf _ hpoint).differentiableAt (hU.mem_nhds hpoint)).hasFDerivAt |
| 133 | simpa only [F, D, ContinuousLinearMap.comp_id] using! |
| 134 | (h.comp y ((hasFDerivAt_id y).add_const (z • v))).const_smul (1 / z ^ 2 : ℂ) |
| 135 | have hI := HolomorphicContour.hasFDerivAt_circleIntegral F D isOpen_ball 0 R |
| 136 | hFc hDc hder (mem_ball_self hR) |
| 137 | have hcauchy (y : V) (hy : y ∈ ball x R) : |
| 138 | (∮ z in C(0, R), F y z) = (2 * Real.pi * Complex.I) • fderiv ℂ f y v := by |
| 139 | have hline : Differentiable ℂ (fun z : ℂ => y + z • v) := |
| 140 | (differentiable_id.smul_const v).const_add y |
| 141 | have hfl : DifferentiableOn ℂ (fun z : ℂ => f (y + z • v)) (closedBall 0 R) := |
| 142 | hf.comp hline.differentiableOn (fun z hz => hmem y (ball_subset_closedBall hy) z hz) |
| 143 | have hyU : y ∈ U := by |
| 144 | simpa only [zero_smul, add_zero] using hmem y (ball_subset_closedBall hy) 0 (mem_closedBall_self hR.le) |
| 145 | simpa only [F, sub_zero, HolomorphicRegularityAt.Constructions.HolomorphicRegularity.deriv_affineLine |
| 146 | ((hf y hyU).differentiableAt (hU.mem_nhds hyU)) v] using hfl.deriv_eq_smul_circleIntegral hR |
| 147 | have hconstant : (2 * Real.pi * Complex.I : ℂ) ≠ 0 := by |
| 148 | exact mul_ne_zero (mul_ne_zero (by norm_num) (by exact_mod_cast Real.pi_ne_zero)) Complex.I_ne_zero |
| 149 | have heq : (fun y => fderiv ℂ f y v) =ᶠ[𝓝 x] |
| 150 | (fun y => (2 * Real.pi * Complex.I : ℂ)⁻¹ • (∮ z in C(0, R), F y z)) := by |
| 151 | filter_upwards [ball_mem_nhds x hR] with y hy |
| 152 | rw [hcauchy y hy, smul_smul, inv_mul_cancel₀ hconstant, one_smul] |
| 153 | exact (hI.differentiableAt.const_smul _).congr_of_eventuallyEq heq |
| 154 | |
| 155 | /-- Iterating the directional-derivative result gives every finite order |
| 156 | of complex differentiability on the original open domain. -/ |
| 157 | theorem contDiffOn_nat_of_differentiableOn {f : V → W} {U : Set V} |
| 158 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) (n : ℕ) : ContDiffOn ℂ n f U := by |
| 159 | induction n generalizing f with |
| 160 | | zero => exact contDiffOn_zero.mpr hf.continuousOn |
| 161 | | succ n ih => |
| 162 | rw [show ((n + 1 : ℕ) : ℕ∞ω) = (n : ℕ∞ω) + 1 by simp] |
| 163 | apply (contDiffOn_succ_iff_fderiv_of_isOpen hU).mpr |
| 164 | refine ⟨hf, ?_, contDiffOn_clm_apply.mpr (fun v => ?_)⟩ |
| 165 | · intro h |
| 166 | simp at h |
| 167 | · exact ih (fun y hy => (differentiableAt_directionalDerivative hU hf hy v).differentiableWithinAt) |
| 168 | |
| 169 | /-- Holomorphic maps between finite-dimensional complex spaces are smooth. -/ |
| 170 | theorem contDiffOn_infty_of_differentiableOn {f : V → W} {U : Set V} |
| 171 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) : ContDiffOn ℂ ∞ f U := |
| 172 | contDiffOn_infty.mpr (contDiffOn_nat_of_differentiableOn hU hf) |
| 173 | |
| 174 | /-- The full continuous linear derivative is holomorphic. -/ |
| 175 | theorem differentiableOn_fderiv {f : V → W} {U : Set V} |
| 176 | (hU : IsOpen U) (hf : DifferentiableOn ℂ f U) : |
| 177 | DifferentiableOn ℂ (fderiv ℂ f) U := by |
| 178 | have h := (contDiffOn_nat_of_differentiableOn hU hf 2).fderiv_of_isOpen hU |
| 179 | (m := 1) (by norm_num) |
| 180 | exact h.differentiableOn (by norm_num) |
| 181 | |
| 182 | end Geometry.ComplexTorus.RiemannProjectivity.HolomorphicContourF.Constructions.HolomorphicDerivative |
| 183 | |
| 184 | end |
| 185 | |
| 186 | end OAI |