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.CauchyKernel |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.ComplexDerivativeParts |
| 3 | import Mathlib.MeasureTheory.Integral.CircleIntegral |
| 4 | |
| 5 | /-! # Cauchy Polar Calculus -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.CauchyPolarCalculus |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual scalar antiholomorphic derivatives and their polar-coordinate calculus. -/ |
| 12 | |
| 13 | open _root_.MeasureTheory _root_.Complex _root_.ContinuousLinearMap |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | |
| 20 | def complexDbar (f : ℂ → ℂ) (z : ℂ) : ℂ := |
| 21 | Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM ℂ ℂ (fderiv ℝ f z) 1 |
| 22 | |
| 23 | theorem complexDbar_eq (f : ℂ → ℂ) (z : ℂ) : |
| 24 | complexDbar f z = (1 / 2 : ℂ) * (fderiv ℝ f z 1 + I * fderiv ℝ f z I) := by |
| 25 | simp only [complexDbar, Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM_apply, smul_eq_mul, mul_one] |
| 26 | |
| 27 | theorem complexDbar_continuous {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 28 | Continuous (complexDbar f) := by |
| 29 | have hd := hf.continuous_fderiv (by simp) |
| 30 | simp only [funext (complexDbar_eq f)] |
| 31 | exact (hd.clm_apply continuous_const).add |
| 32 | ((hd.clm_apply continuous_const).const_mul I) |>.const_mul (1 / 2 : ℂ) |
| 33 | |
| 34 | theorem complexDbar_hasCompactSupport {f : ℂ → ℂ} (hf : HasCompactSupport f) : |
| 35 | HasCompactSupport (complexDbar f) := by |
| 36 | simp only [funext (complexDbar_eq f)] |
| 37 | exact ((hf.fderiv_apply (𝕜 := ℝ) 1).add |
| 38 | ((hf.fderiv_apply (𝕜 := ℝ) I).mul_left)).mul_left |
| 39 | |
| 40 | def polarUnit (θ : ℝ) : ℂ := circleMap 0 1 θ |
| 41 | |
| 42 | theorem polarUnit_norm (θ : ℝ) : ‖polarUnit θ‖ = 1 := by |
| 43 | simp [polarUnit] |
| 44 | |
| 45 | theorem polarUnit_ne_zero (θ : ℝ) : polarUnit θ ≠ 0 := by |
| 46 | intro h |
| 47 | have hn := polarUnit_norm θ |
| 48 | rw [h, norm_zero] at hn |
| 49 | exact zero_ne_one hn |
| 50 | |
| 51 | theorem polarCoord_eq (r θ : ℝ) : Complex.polarCoord.symm (r, θ) = r • polarUnit θ := by |
| 52 | simp [Complex.polarCoord_symm_apply, polarUnit, circleMap, Complex.exp_mul_I, |
| 53 | Complex.ofReal_cos, Complex.ofReal_sin, real_smul, mul_add] |
| 54 | |
| 55 | theorem inv_mul_antilinear_eq (D : ℂ →L[ℝ] ℂ) (a : ℂ) (ha : ‖a‖ = 1) : |
| 56 | a⁻¹ * Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM ℂ ℂ D 1 = (1 / 2 : ℂ) * (D a + I * D (I * a)) := by |
| 57 | rw [Complex.inv_eq_conj ha] |
| 58 | have h := Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM_apply_smul ℂ ℂ D a (1 : ℂ) |
| 59 | simpa only [Analysis.DifferentialForms.Manifold.ComplexDerivativeParts.complexAntilinearPartCLM_apply, smul_eq_mul, mul_one, Complex.star_def] using h.symm |
| 60 | |
| 61 | theorem complexDbar_polar (f : ℂ → ℂ) {r : ℝ} (hr : r ≠ 0) (θ : ℝ) : |
| 62 | r • ((Complex.polarCoord.symm (r, θ))⁻¹ * complexDbar f (Complex.polarCoord.symm (r, θ))) = |
| 63 | (1 / 2 : ℂ) * |
| 64 | (fderiv ℝ f (r • polarUnit θ) (polarUnit θ) + |
| 65 | I * fderiv ℝ f (r • polarUnit θ) (I * polarUnit θ)) := by |
| 66 | rw [polarCoord_eq] |
| 67 | change (r : ℂ) * (((r : ℂ) * polarUnit θ)⁻¹ * complexDbar f (r • polarUnit θ)) = _ |
| 68 | rw [mul_inv_rev] |
| 69 | have hrC : (r : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hr |
| 70 | calc |
| 71 | (r : ℂ) * ((polarUnit θ)⁻¹ * (r : ℂ)⁻¹ * complexDbar f (r • polarUnit θ)) = |
| 72 | (polarUnit θ)⁻¹ * complexDbar f (r • polarUnit θ) := by field_simp |
| 73 | _ = _ := inv_mul_antilinear_eq _ _ (polarUnit_norm θ) |
| 74 | |
| 75 | theorem polarRadial_hasDerivAt {f : ℂ → ℂ} (hf : Differentiable ℝ f) (r θ : ℝ) : |
| 76 | HasDerivAt (fun s : ℝ => f (s • polarUnit θ)) |
| 77 | (fderiv ℝ f (r • polarUnit θ) (polarUnit θ)) r := by |
| 78 | simpa only [one_smul, Function.comp_def, id_eq] using! (hf (r • polarUnit θ)).hasFDerivAt.comp_hasDerivAt r |
| 79 | ((hasDerivAt_id r).smul_const (polarUnit θ)) |
| 80 | |
| 81 | theorem polarAngular_hasDerivAt {f : ℂ → ℂ} (hf : Differentiable ℝ f) (r θ : ℝ) : |
| 82 | HasDerivAt (fun t : ℝ => f (r • polarUnit t)) |
| 83 | (r • fderiv ℝ f (r • polarUnit θ) (I * polarUnit θ)) θ := by |
| 84 | have hunit : HasDerivAt polarUnit (I * polarUnit θ) θ := by |
| 85 | change HasDerivAt (circleMap 0 1) (I * circleMap 0 1 θ) θ |
| 86 | simpa only [mul_comm] using hasDerivAt_circleMap 0 1 θ |
| 87 | simpa only [map_smul, Function.comp_def, Pi.smul_apply] using! (hf (r • polarUnit θ)).hasFDerivAt.comp_hasDerivAt θ |
| 88 | (hunit.const_smul r) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.DivisorClass.Chern.CauchyPolarCalculus |