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.Analysis.HodgeTheory.Decomposition.Form |
| 2 | import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts |
| 3 | |
| 4 | /-! # Local Adjoint -/ |
| 5 | |
| 6 | namespace OAI.Analysis.HodgeTheory.Decomposition.LocalAdjoint.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Local integration by parts and the explicit formal-adjoint numerator |
| 11 | for a first-order differential operator with fixed symbol matrices. -/ |
| 12 | |
| 13 | open scoped ContDiff BigOperators |
| 14 | open _root_.MeasureTheory |
| 15 | |
| 16 | section Support |
| 17 | |
| 18 | variable {D F : Type*} [TopologicalSpace D] [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 19 | |
| 20 | theorem compactSupport_inner_right (w u : D → F) (hu : HasCompactSupport u) : |
| 21 | HasCompactSupport (fun x => inner ℝ (w x) (u x)) := by |
| 22 | apply hu.mono |
| 23 | intro x hx |
| 24 | change inner ℝ (w x) (u x) ≠ 0 at hx |
| 25 | change u x ≠ 0 |
| 26 | intro hzero |
| 27 | rw [hzero, inner_zero_right] at hx |
| 28 | exact hx rfl |
| 29 | |
| 30 | end Support |
| 31 | |
| 32 | section Integration |
| 33 | |
| 34 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 35 | [MeasurableSpace E] [BorelSpace E] [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 36 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] |
| 37 | |
| 38 | omit [FiniteDimensional ℝ E] in |
| 39 | theorem smooth_inner_compact_integrable (w u : E → F) |
| 40 | (hw : ContDiff ℝ ∞ w) (hu : ContDiff ℝ ∞ u) (huc : HasCompactSupport u) : |
| 41 | Integrable (fun x => inner ℝ (w x) (u x)) μ := |
| 42 | (hw.continuous.inner hu.continuous).integrable_of_hasCompactSupport (compactSupport_inner_right w u huc) |
| 43 | |
| 44 | omit [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in |
| 45 | theorem smooth_directional_derivative (u : E → F) (hu : ContDiff ℝ ∞ u) (v : E) : |
| 46 | ContDiff ℝ ∞ (fun x => fderiv ℝ u x v) := |
| 47 | (hu.fderiv_right (by simp)).clm_apply contDiff_const |
| 48 | |
| 49 | /-- Integration by parts has no boundary term for an actual compactly supported smooth test field. -/ |
| 50 | theorem integral_inner_directional (w u : E → F) |
| 51 | (hw : ContDiff ℝ ∞ w) (hu : ContDiff ℝ ∞ u) (huc : HasCompactSupport u) (v : E) : |
| 52 | (∫ x, inner ℝ (w x) (fderiv ℝ u x v) ∂μ) = |
| 53 | -(∫ x, inner ℝ (fderiv ℝ w x v) (u x) ∂μ) := by |
| 54 | exact integral_bilinear_fderiv_right_eq_neg_left_of_integrable (B := innerSL ℝ) |
| 55 | (smooth_inner_compact_integrable μ _ u (smooth_directional_derivative w hw v) hu huc) |
| 56 | (smooth_inner_compact_integrable μ w _ hw (smooth_directional_derivative u hu v) (huc.fderiv_apply ℝ v)) |
| 57 | (smooth_inner_compact_integrable μ w u hw hu huc) |
| 58 | (fun x _ => (hw.differentiable (by simp)).differentiableAt) |
| 59 | (fun x _ => (hu.differentiable (by simp)).differentiableAt) |
| 60 | |
| 61 | end Integration |
| 62 | |
| 63 | variable {E F G ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 64 | [MeasurableSpace E] [BorelSpace E] [Fintype ι] |
| 65 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] |
| 66 | [NormedAddCommGroup G] [InnerProductSpace ℝ G] [CompleteSpace G] |
| 67 | |
| 68 | def firstOrderCoordinateOperator (directions : ι → E) (symbol : ι → F →L[ℝ] G) |
| 69 | (u : E → F) (x : E) : G := |
| 70 | ∑ i, symbol i (fderiv ℝ u x (directions i)) |
| 71 | |
| 72 | /-- The differentiated weighted transpose appearing in the formal adjoint. -/ |
| 73 | def formalAdjointNumerator (directions : ι → E) (symbol : ι → F →L[ℝ] G) |
| 74 | (weight : E → G →L[ℝ] G) (v : E → G) (x : E) : F := |
| 75 | -∑ i, fderiv ℝ (fun y => (symbol i).adjoint (weight y (v y))) x (directions i) |
| 76 | |
| 77 | omit [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in |
| 78 | theorem formalAdjointNumerator_smoothOn (directions : ι → E) (symbol : ι → F →L[ℝ] G) |
| 79 | (weight : E → G →L[ℝ] G) (v : E → G) {U : Set E} (hU : IsOpen U) |
| 80 | (hweight : ContDiffOn ℝ ∞ weight U) (hv : ContDiffOn ℝ ∞ v U) : |
| 81 | ContDiffOn ℝ ∞ (formalAdjointNumerator directions symbol weight v) U := by |
| 82 | intro x hx |
| 83 | have hw (i : ι) : ContDiffAt ℝ ∞ (fun y => (symbol i).adjoint (weight y (v y))) x := |
| 84 | (symbol i).adjoint.contDiff.contDiffAt.comp x |
| 85 | ((hweight.contDiffAt (hU.mem_nhds hx)).clm_apply (hv.contDiffAt (hU.mem_nhds hx))) |
| 86 | have hd (i : ι) : ContDiffAt ℝ ∞ |
| 87 | (fun y => fderiv ℝ (fun z => (symbol i).adjoint (weight z (v z))) y (directions i)) x := |
| 88 | ((hw i).fderiv_right (by simp)).clm_apply contDiffAt_const |
| 89 | have h : ContDiffAt ℝ ∞ (formalAdjointNumerator directions symbol weight v) x := by |
| 90 | unfold formalAdjointNumerator |
| 91 | fun_prop |
| 92 | exact h.contDiffWithinAt |
| 93 | |
| 94 | /-- The formal-adjoint numerator is derived by integration of the actual directional derivatives. -/ |
| 95 | theorem firstOrderCoordinateOperator_integration (μ : Measure E) [Measure.IsAddHaarMeasure μ] |
| 96 | (directions : ι → E) (symbol : ι → F →L[ℝ] G) (weight : E → G →L[ℝ] G) |
| 97 | (hweight : ContDiff ℝ ∞ weight) (u : E → F) (v : E → G) |
| 98 | (hu : ContDiff ℝ ∞ u) (hv : ContDiff ℝ ∞ v) (huc : HasCompactSupport u) : |
| 99 | (∫ x, inner ℝ (weight x (v x)) (firstOrderCoordinateOperator directions symbol u x) ∂μ) = |
| 100 | ∫ x, inner ℝ (formalAdjointNumerator directions symbol weight v x) (u x) ∂μ := by |
| 101 | let w (i : ι) (x : E) : F := (symbol i).adjoint (weight x (v x)) |
| 102 | have hw (i : ι) : ContDiff ℝ ∞ (w i) := (symbol i).adjoint.contDiff.comp (hweight.clm_apply hv) |
| 103 | have hi (i : ι) : Integrable (fun x => inner ℝ (w i x) (fderiv ℝ u x (directions i))) μ := |
| 104 | smooth_inner_compact_integrable μ _ _ (hw i) (smooth_directional_derivative u hu (directions i)) |
| 105 | (huc.fderiv_apply ℝ (directions i)) |
| 106 | have hi' (i : ι) : Integrable (fun x => inner ℝ (fderiv ℝ (w i) x (directions i)) (u x)) μ := |
| 107 | smooth_inner_compact_integrable μ _ _ (smooth_directional_derivative (w i) (hw i) (directions i)) hu huc |
| 108 | calc |
| 109 | (∫ x, inner ℝ (weight x (v x)) (firstOrderCoordinateOperator directions symbol u x) ∂μ) = |
| 110 | ∫ x, ∑ i, inner ℝ (w i x) (fderiv ℝ u x (directions i)) ∂μ := by |
| 111 | apply integral_congr_ae |
| 112 | apply Filter.Eventually.of_forall |
| 113 | intro x |
| 114 | simp only [firstOrderCoordinateOperator, inner_sum, w, ContinuousLinearMap.adjoint_inner_left] |
| 115 | _ = ∑ i, ∫ x, inner ℝ (w i x) (fderiv ℝ u x (directions i)) ∂μ := |
| 116 | integral_finsetSum _ (fun i _ => hi i) |
| 117 | _ = ∑ i, -(∫ x, inner ℝ (fderiv ℝ (w i) x (directions i)) (u x) ∂μ) := by |
| 118 | apply Finset.sum_congr rfl |
| 119 | intro i _ |
| 120 | exact integral_inner_directional μ (w i) u (hw i) hu huc (directions i) |
| 121 | _ = -(∫ x, ∑ i, inner ℝ (fderiv ℝ (w i) x (directions i)) (u x) ∂μ) := by |
| 122 | rw [integral_finsetSum _ (fun i _ => hi' i), Finset.sum_neg_distrib] |
| 123 | _ = ∫ x, inner ℝ (formalAdjointNumerator directions symbol weight v x) (u x) ∂μ := by |
| 124 | simp only [formalAdjointNumerator, inner_neg_left, sum_inner, integral_neg, w] |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.Analysis.HodgeTheory.Decomposition.LocalAdjoint.Constructions |