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.DivisorClass.Chern.CauchyPolarIntegrals |
| 2 | import Mathlib.MeasureTheory.Integral.Prod |
| 3 | |
| 4 | /-! # Cauchy Polar Integral -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.CauchyPolarIntegral |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Integration of the actual antiholomorphic derivative in a bounded polar rectangle. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory _root_.Complex Set |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | |
| 21 | def polarDbarDensity (f : ℂ → ℂ) (p : ℝ × ℝ) : ℂ := |
| 22 | (1 / 2 : ℂ) * (fderiv ℝ f (p.1 • CauchyPolarCalculus.polarUnit p.2) (CauchyPolarCalculus.polarUnit p.2) + |
| 23 | I * fderiv ℝ f (p.1 • CauchyPolarCalculus.polarUnit p.2) (I * CauchyPolarCalculus.polarUnit p.2)) |
| 24 | |
| 25 | theorem polarDbarDensity_continuous {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 26 | Continuous (polarDbarDensity f) := |
| 27 | ((CauchyPolarIntegrals.polarRadialDerivative_continuous hf).add |
| 28 | ((CauchyPolarIntegrals.polarAngularDerivative_continuous hf).const_mul I)).const_mul (1 / 2 : ℂ) |
| 29 | |
| 30 | theorem integral_polarDbarDensity_angular {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) |
| 31 | {r : ℝ} (hr : r ≠ 0) : |
| 32 | (∫ θ in (-Real.pi)..Real.pi, polarDbarDensity f (r, θ)) = |
| 33 | (1 / 2 : ℂ) * ∫ θ in (-Real.pi)..Real.pi, |
| 34 | fderiv ℝ f (r • CauchyPolarCalculus.polarUnit θ) (CauchyPolarCalculus.polarUnit θ) := by |
| 35 | have hrad : Continuous (fun θ : ℝ => fderiv ℝ f (r • CauchyPolarCalculus.polarUnit θ) (CauchyPolarCalculus.polarUnit θ)) := |
| 36 | (CauchyPolarIntegrals.polarRadialDerivative_continuous hf).comp (continuous_const.prodMk continuous_id) |
| 37 | have hang : Continuous (fun θ : ℝ => fderiv ℝ f (r • CauchyPolarCalculus.polarUnit θ) (I * CauchyPolarCalculus.polarUnit θ)) := |
| 38 | (CauchyPolarIntegrals.polarAngularDerivative_continuous hf).comp (continuous_const.prodMk continuous_id) |
| 39 | simp only [polarDbarDensity, intervalIntegral.integral_const_mul] |
| 40 | rw [intervalIntegral.integral_add (hrad.intervalIntegrable _ _) |
| 41 | ((hang.const_mul I).intervalIntegrable _ _), intervalIntegral.integral_const_mul, |
| 42 | CauchyPolarIntegrals.integral_polarAngularDerivative hf hr, mul_zero, add_zero] |
| 43 | |
| 44 | theorem integral_polarDbarDensity {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) (R : ℝ) |
| 45 | (hR : ∀ θ : ℝ, f (R • CauchyPolarCalculus.polarUnit θ) = 0) : |
| 46 | (∫ r in (0 : ℝ)..R, ∫ θ in (-Real.pi)..Real.pi, polarDbarDensity f (r, θ)) = |
| 47 | -(Real.pi : ℂ) * f 0 := by |
| 48 | have hfirst : |
| 49 | (∫ r in (0 : ℝ)..R, ∫ θ in (-Real.pi)..Real.pi, polarDbarDensity f (r, θ)) = |
| 50 | (∫ r in (0 : ℝ)..R, (1 / 2 : ℂ) * ∫ θ in (-Real.pi)..Real.pi, |
| 51 | fderiv ℝ f (r • CauchyPolarCalculus.polarUnit θ) (CauchyPolarCalculus.polarUnit θ)) := by |
| 52 | apply intervalIntegral.integral_congr_ae |
| 53 | filter_upwards [volume.ae_ne (0 : ℝ)] with r hr |
| 54 | intro _ |
| 55 | exact integral_polarDbarDensity_angular hf hr |
| 56 | rw [hfirst, intervalIntegral.integral_const_mul] |
| 57 | have hi : IntegrableOn |
| 58 | (fun p : ℝ × ℝ => fderiv ℝ f (p.1 • CauchyPolarCalculus.polarUnit p.2) (CauchyPolarCalculus.polarUnit p.2)) |
| 59 | (uIoc 0 R ×ˢ uIoc (-Real.pi) Real.pi) := |
| 60 | ((CauchyPolarIntegrals.polarRadialDerivative_continuous hf).continuousOn.integrableOn_compact |
| 61 | (isCompact_uIcc.prod isCompact_uIcc)).mono_set (prod_mono uIoc_subset_uIcc uIoc_subset_uIcc) |
| 62 | rw [intervalIntegral_intervalIntegral_swap |
| 63 | (F := fun r θ => fderiv ℝ f (r • CauchyPolarCalculus.polarUnit θ) (CauchyPolarCalculus.polarUnit θ)) hi] |
| 64 | simp_rw [CauchyPolarIntegrals.integral_polarRadialDerivative hf, hR, zero_sub] |
| 65 | rw [intervalIntegral.integral_const] |
| 66 | simp only [sub_neg_eq_add, real_smul, Complex.ofReal_add] |
| 67 | ring |
| 68 | |
| 69 | end |
| 70 | |
| 71 | section |
| 72 | |
| 73 | /-! The distributional Cauchy-kernel identity, proved by genuine polar integration. -/ |
| 74 | |
| 75 | open _root_.MeasureTheory _root_.Complex Set |
| 76 | open scoped ContDiff |
| 77 | |
| 78 | set_option backward.isDefEq.respectTransparency false |
| 79 | set_option backward.isDefEq.respectTransparency.types false |
| 80 | set_option backward.defeqAttrib.useBackward true |
| 81 | |
| 82 | theorem compactSupport_complex_radius {f : ℂ → ℂ} (hc : HasCompactSupport f) : |
| 83 | ∃ R : ℝ, 0 < R ∧ ∀ z : ℂ, R ≤ ‖z‖ → f z = 0 ∧ fderiv ℝ f z = 0 := by |
| 84 | obtain ⟨R, hR, hbound⟩ := hc.isCompact.isBounded.exists_pos_norm_lt |
| 85 | refine ⟨R, hR, fun z hz => ?_⟩ |
| 86 | have hout : z ∉ tsupport f := fun h => (not_lt_of_ge hz) (hbound z h) |
| 87 | exact ⟨image_eq_zero_of_notMem_tsupport hout, fderiv_of_notMem_tsupport ℝ hout⟩ |
| 88 | |
| 89 | theorem integral_inv_mul_complexDbar {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) |
| 90 | (hc : HasCompactSupport f) : |
| 91 | (∫ z : ℂ, z⁻¹ * CauchyPolarCalculus.complexDbar f z) = -(Real.pi : ℂ) * f 0 := by |
| 92 | obtain ⟨R, hR, hbound⟩ := compactSupport_complex_radius hc |
| 93 | rw [← Complex.integral_comp_polarCoord_symm] |
| 94 | have heq : |
| 95 | (∫ p in polarCoord.target, p.1 • |
| 96 | ((Complex.polarCoord.symm p)⁻¹ * CauchyPolarCalculus.complexDbar f (Complex.polarCoord.symm p))) = |
| 97 | ∫ p in Ioi (0 : ℝ) ×ˢ Ioo (-Real.pi) Real.pi, polarDbarDensity f p := by |
| 98 | apply setIntegral_congr_fun (measurableSet_Ioi.prod measurableSet_Ioo) |
| 99 | intro p hp |
| 100 | exact CauchyPolarCalculus.complexDbar_polar f (ne_of_gt hp.1) p.2 |
| 101 | rw [heq] |
| 102 | have hcut : |
| 103 | (∫ p in Ioi (0 : ℝ) ×ˢ Ioo (-Real.pi) Real.pi, polarDbarDensity f p) = |
| 104 | ∫ p in Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi, polarDbarDensity f p := by |
| 105 | apply setIntegral_eq_of_subset_of_forall_sdiff_eq_zero |
| 106 | (measurableSet_Ioi.prod measurableSet_Ioo) (prod_mono Ioo_subset_Ioi_self Subset.rfl) |
| 107 | intro p hp |
| 108 | have hlarge : R ≤ p.1 := by |
| 109 | by_contra! h |
| 110 | exact hp.2 ⟨⟨hp.1.1, h⟩, hp.1.2⟩ |
| 111 | have hn : ‖p.1 • CauchyPolarCalculus.polarUnit p.2‖ = p.1 := by |
| 112 | rw [norm_smul, Real.norm_eq_abs, CauchyPolarCalculus.polarUnit_norm, mul_one, abs_of_pos hp.1.1] |
| 113 | have hd := (hbound (p.1 • CauchyPolarCalculus.polarUnit p.2) (by rwa [hn])).2 |
| 114 | unfold polarDbarDensity |
| 115 | rw [hd] |
| 116 | simp |
| 117 | rw [hcut] |
| 118 | have hi : IntegrableOn (polarDbarDensity f) |
| 119 | (Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi) (volume.prod volume) := by |
| 120 | rw [← Measure.volume_eq_prod] |
| 121 | exact ((polarDbarDensity_continuous hf).continuousOn.integrableOn_compact |
| 122 | (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 123 | (prod_mono Ioo_subset_Icc_self Ioo_subset_Icc_self) |
| 124 | rw [Measure.volume_eq_prod, setIntegral_prod _ hi] |
| 125 | have hpi : -Real.pi ≤ Real.pi := by linarith [Real.pi_pos] |
| 126 | simp_rw [← integral_Ioc_eq_integral_Ioo, |
| 127 | ← intervalIntegral.integral_of_le hR.le, ← intervalIntegral.integral_of_le hpi] |
| 128 | apply integral_polarDbarDensity hf R |
| 129 | intro θ |
| 130 | apply (hbound (R • CauchyPolarCalculus.polarUnit θ) _).1 |
| 131 | rw [norm_smul, Real.norm_eq_abs, CauchyPolarCalculus.polarUnit_norm, mul_one, abs_of_pos hR] |
| 132 | |
| 133 | end |
| 134 | |
| 135 | section |
| 136 | |
| 137 | /-! Translation and normalization of the genuine Cauchy-kernel identity. -/ |
| 138 | |
| 139 | open _root_.MeasureTheory _root_.Complex |
| 140 | open scoped ContDiff |
| 141 | |
| 142 | set_option backward.isDefEq.respectTransparency false |
| 143 | set_option backward.isDefEq.respectTransparency.types false |
| 144 | set_option backward.defeqAttrib.useBackward true |
| 145 | |
| 146 | theorem complexDbar_sub_left {f : ℂ → ℂ} (hf : Differentiable ℝ f) (z w : ℂ) : |
| 147 | CauchyPolarCalculus.complexDbar (fun v => f (z - v)) w = -CauchyPolarCalculus.complexDbar f (z - w) := by |
| 148 | have hd : fderiv ℝ (fun v => f (z - v)) w = -fderiv ℝ f (z - w) := by |
| 149 | simpa only [Function.comp_def, ContinuousLinearMap.comp_sub, |
| 150 | ContinuousLinearMap.comp_zero, ContinuousLinearMap.comp_id, zero_sub, |
| 151 | ContinuousLinearMap.comp_neg] using! |
| 152 | ((hf (z - w)).hasFDerivAt.comp w |
| 153 | ((hasFDerivAt_const z w).sub (hasFDerivAt_id w))).fderiv |
| 154 | unfold CauchyPolarCalculus.complexDbar |
| 155 | rw [hd, map_neg] |
| 156 | rfl |
| 157 | |
| 158 | theorem integral_cauchyKernel_mul_complexDbar {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) |
| 159 | (hc : HasCompactSupport f) (z : ℂ) : |
| 160 | (∫ w : ℂ, CauchyKernel.cauchyKernel w * CauchyPolarCalculus.complexDbar f (z - w)) = f z := by |
| 161 | have hr := integral_inv_mul_complexDbar (f := fun w => f (z - w)) |
| 162 | (hf.comp (contDiff_const.sub contDiff_id)) (hc.comp_homeomorph (Homeomorph.subLeft z)) |
| 163 | simp_rw [complexDbar_sub_left (hf.differentiable (by simp)), mul_neg] at hr |
| 164 | rw [integral_neg] at hr |
| 165 | simp only [sub_zero, neg_mul] at hr |
| 166 | have hraw : (∫ w : ℂ, w⁻¹ * CauchyPolarCalculus.complexDbar f (z - w)) = (Real.pi : ℂ) * f z := neg_injective hr |
| 167 | simp only [CauchyKernel.cauchyKernel, mul_assoc, integral_const_mul] |
| 168 | rw [hraw, ← mul_assoc, inv_mul_cancel₀ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero), one_mul] |
| 169 | |
| 170 | end |
| 171 | |
| 172 | /-! The actual Cauchy transform is a right inverse to the antiholomorphic scalar derivative. -/ |
| 173 | |
| 174 | open _root_.MeasureTheory _root_.Complex _root_.ContinuousLinearMap |
| 175 | open scoped ContDiff Convolution |
| 176 | |
| 177 | set_option backward.isDefEq.respectTransparency false |
| 178 | set_option backward.isDefEq.respectTransparency.types false |
| 179 | set_option backward.defeqAttrib.useBackward true |
| 180 | |
| 181 | def scalarDbarDerivativeCLM : (ℂ →L[ℝ] ℂ) →L[ℝ] ℂ := |
| 182 | (ContinuousLinearMap.apply ℝ ℂ (1 : ℂ)).comp |
| 183 | ((Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM ℂ ℂ).restrictScalars ℝ) |
| 184 | |
| 185 | theorem scalarDbarDerivativeCLM_smul (c : ℂ) (D : ℂ →L[ℝ] ℂ) : |
| 186 | scalarDbarDerivativeCLM (c • D) = c * scalarDbarDerivativeCLM D := by |
| 187 | change Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM ℂ ℂ (c • D) 1 = c * Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM ℂ ℂ D 1 |
| 188 | rw [map_smul] |
| 189 | rfl |
| 190 | |
| 191 | theorem complexDbar_cauchyTransform_integral {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) |
| 192 | (hc : HasCompactSupport f) (z : ℂ) : |
| 193 | CauchyPolarCalculus.complexDbar (CauchyKernel.cauchyTransform f) z = |
| 194 | ∫ w : ℂ, CauchyKernel.cauchyKernel w * CauchyPolarCalculus.complexDbar f (z - w) := by |
| 195 | have hd := (CauchyKernel.cauchyTransform_hasFDerivAt hc (hf.of_le (by simp)) z).fderiv |
| 196 | have hi := (hc.fderiv ℝ).convolutionExists_right |
| 197 | ((ContinuousLinearMap.mul ℝ ℂ).precompR ℂ) CauchyKernel.cauchyKernel_locallyIntegrable |
| 198 | (hf.continuous_fderiv (by simp)) z |
| 199 | unfold CauchyPolarCalculus.complexDbar |
| 200 | rw [hd] |
| 201 | change scalarDbarDerivativeCLM |
| 202 | (∫ w : ℂ, ((ContinuousLinearMap.mul ℝ ℂ).precompR ℂ) |
| 203 | (CauchyKernel.cauchyKernel w) (fderiv ℝ f (z - w))) = _ |
| 204 | rw [← scalarDbarDerivativeCLM.integral_comp_comm hi.integrable] |
| 205 | apply integral_congr_ae |
| 206 | exact Filter.Eventually.of_forall (fun w => scalarDbarDerivativeCLM_smul (CauchyKernel.cauchyKernel w) _) |
| 207 | |
| 208 | theorem complexDbar_cauchyTransform {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) |
| 209 | (hc : HasCompactSupport f) (z : ℂ) : CauchyPolarCalculus.complexDbar (CauchyKernel.cauchyTransform f) z = f z := by |
| 210 | rw [complexDbar_cauchyTransform_integral hf hc, integral_cauchyKernel_mul_complexDbar hf hc] |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.AlgebraicGeometry.DivisorClass.Chern.CauchyPolarIntegral |