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.EuclideanForms |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.ChartEquiv |
| 3 | |
| 4 | /-! # Local Adjoint Form -/ |
| 5 | |
| 6 | namespace OAI.Analysis.HodgeTheory.Decomposition.LocalAdjointForm.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Integration by parts with coefficients smooth only on their actual chart |
| 13 | domain. Compact test support supplies the needed boundary condition. -/ |
| 14 | |
| 15 | open scoped ContDiff _root_.Topology BigOperators |
| 16 | open _root_.MeasureTheory |
| 17 | |
| 18 | section Local |
| 19 | |
| 20 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 22 | |
| 23 | theorem smooth_inner_test (w u : E → F) {U : Set E} (hU : IsOpen U) |
| 24 | (hw : ContDiffOn ℝ ∞ w U) (hu : ContDiff ℝ ∞ u) (hs : tsupport u ⊆ U) : |
| 25 | ContDiff ℝ ∞ (fun x => inner ℝ (w x) (u x)) := by |
| 26 | apply contDiff_iff_contDiffAt.mpr |
| 27 | intro x |
| 28 | by_cases hx : x ∈ U |
| 29 | · exact (hw.contDiffAt (hU.mem_nhds hx)).inner ℝ hu.contDiffAt |
| 30 | · have hz : u =ᶠ[𝓝 x] 0 := notMem_tsupport_iff_eventuallyEq.mp (fun h => hx (hs h)) |
| 31 | have heq : (fun y => inner ℝ (w y) (u y)) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 32 | filter_upwards [hz] with y hy |
| 33 | rw [hy, Pi.zero_apply, inner_zero_right] |
| 34 | exact contDiffAt_const.congr_of_eventuallyEq heq |
| 35 | |
| 36 | theorem smoothOn_directional_derivative (w : E → F) {U : Set E} (hU : IsOpen U) |
| 37 | (hw : ContDiffOn ℝ ∞ w U) (v : E) : |
| 38 | ContDiffOn ℝ ∞ (fun x => fderiv ℝ w x v) U := by |
| 39 | intro x hx |
| 40 | exact (((hw.contDiffAt (hU.mem_nhds hx)).fderiv_right (by simp)).clm_apply |
| 41 | contDiffAt_const).contDiffWithinAt |
| 42 | |
| 43 | variable [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 44 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] |
| 45 | |
| 46 | omit [FiniteDimensional ℝ E] in |
| 47 | theorem smooth_inner_test_integrable (w u : E → F) {U : Set E} (hU : IsOpen U) |
| 48 | (hw : ContDiffOn ℝ ∞ w U) (hu : ContDiff ℝ ∞ u) |
| 49 | (huc : HasCompactSupport u) (hs : tsupport u ⊆ U) : |
| 50 | Integrable (fun x => inner ℝ (w x) (u x)) μ := |
| 51 | (smooth_inner_test w u hU hw hu hs).continuous.integrable_of_hasCompactSupport |
| 52 | (LocalAdjoint.Constructions.compactSupport_inner_right w u huc) |
| 53 | |
| 54 | theorem integral_inner_directional_on (w u : E → F) {U : Set E} (hU : IsOpen U) |
| 55 | (hw : ContDiffOn ℝ ∞ w U) (hu : ContDiff ℝ ∞ u) |
| 56 | (huc : HasCompactSupport u) (hs : tsupport u ⊆ U) (v : E) : |
| 57 | (∫ x, inner ℝ (w x) (fderiv ℝ u x v) ∂μ) = |
| 58 | -(∫ x, inner ℝ (fderiv ℝ w x v) (u x) ∂μ) := by |
| 59 | exact integral_bilinear_fderiv_right_eq_neg_left_of_integrable (B := innerSL ℝ) |
| 60 | (smooth_inner_test_integrable μ _ u hU (smoothOn_directional_derivative w hU hw v) hu huc hs) |
| 61 | (smooth_inner_test_integrable μ w _ hU hw (LocalAdjoint.Constructions.smooth_directional_derivative u hu v) |
| 62 | (huc.fderiv_apply ℝ v) ((tsupport_fderiv_apply_subset ℝ v).trans hs)) |
| 63 | (smooth_inner_test_integrable μ w u hU hw hu huc hs) |
| 64 | (fun x hx => (hw.contDiffAt (hU.mem_nhds (hs hx))).differentiableAt (by simp)) |
| 65 | (fun x _ => (hu.differentiable (by simp)).differentiableAt) |
| 66 | |
| 67 | end Local |
| 68 | |
| 69 | section Operator |
| 70 | |
| 71 | variable {E F G ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 72 | [MeasurableSpace E] [BorelSpace E] [Fintype ι] |
| 73 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] |
| 74 | [NormedAddCommGroup G] [InnerProductSpace ℝ G] [CompleteSpace G] |
| 75 | |
| 76 | theorem firstOrderCoordinateOperator_integration_on (μ : Measure E) [Measure.IsAddHaarMeasure μ] |
| 77 | (directions : ι → E) (symbol : ι → F →L[ℝ] G) (weight : E → G →L[ℝ] G) |
| 78 | {U : Set E} (hU : IsOpen U) (hweight : ContDiffOn ℝ ∞ weight U) |
| 79 | (u : E → F) (v : E → G) (hu : ContDiff ℝ ∞ u) (hv : ContDiffOn ℝ ∞ v U) |
| 80 | (huc : HasCompactSupport u) (hs : tsupport u ⊆ U) : |
| 81 | (∫ x, inner ℝ (weight x (v x)) (LocalAdjoint.Constructions.firstOrderCoordinateOperator directions symbol u x) ∂μ) = |
| 82 | ∫ x, inner ℝ (LocalAdjoint.Constructions.formalAdjointNumerator directions symbol weight v x) (u x) ∂μ := by |
| 83 | let w (i : ι) (x : E) : F := (symbol i).adjoint (weight x (v x)) |
| 84 | have hw (i : ι) : ContDiffOn ℝ ∞ (w i) U := |
| 85 | (symbol i).adjoint.contDiff.comp_contDiffOn (hweight.clm_apply hv) |
| 86 | have hi (i : ι) : Integrable (fun x => inner ℝ (w i x) (fderiv ℝ u x (directions i))) μ := |
| 87 | smooth_inner_test_integrable μ _ _ hU (hw i) (LocalAdjoint.Constructions.smooth_directional_derivative u hu (directions i)) |
| 88 | (huc.fderiv_apply ℝ (directions i)) ((tsupport_fderiv_apply_subset ℝ (directions i)).trans hs) |
| 89 | have hi' (i : ι) : Integrable (fun x => inner ℝ (fderiv ℝ (w i) x (directions i)) (u x)) μ := |
| 90 | smooth_inner_test_integrable μ _ _ hU (smoothOn_directional_derivative (w i) hU (hw i) (directions i)) hu huc hs |
| 91 | calc |
| 92 | (∫ x, inner ℝ (weight x (v x)) (LocalAdjoint.Constructions.firstOrderCoordinateOperator directions symbol u x) ∂μ) = |
| 93 | ∫ x, ∑ i, inner ℝ (w i x) (fderiv ℝ u x (directions i)) ∂μ := by |
| 94 | apply integral_congr_ae |
| 95 | apply Filter.Eventually.of_forall |
| 96 | intro x |
| 97 | simp only [LocalAdjoint.Constructions.firstOrderCoordinateOperator, inner_sum, w, ContinuousLinearMap.adjoint_inner_left] |
| 98 | _ = ∑ i, ∫ x, inner ℝ (w i x) (fderiv ℝ u x (directions i)) ∂μ := |
| 99 | integral_finsetSum _ (fun i _ => hi i) |
| 100 | _ = ∑ i, -(∫ x, inner ℝ (fderiv ℝ (w i) x (directions i)) (u x) ∂μ) := by |
| 101 | apply Finset.sum_congr rfl |
| 102 | intro i _ |
| 103 | exact integral_inner_directional_on μ (w i) u hU (hw i) hu huc hs (directions i) |
| 104 | _ = -(∫ x, ∑ i, inner ℝ (fderiv ℝ (w i) x (directions i)) (u x) ∂μ) := by |
| 105 | rw [integral_finsetSum _ (fun i _ => hi' i), Finset.sum_neg_distrib] |
| 106 | _ = ∫ x, inner ℝ (LocalAdjoint.Constructions.formalAdjointNumerator directions symbol weight v x) (u x) ∂μ := by |
| 107 | simp only [LocalAdjoint.Constructions.formalAdjointNumerator, inner_neg_left, sum_inner, integral_neg, w] |
| 108 | |
| 109 | end Operator |
| 110 | |
| 111 | variable (V : AlgebraicGeometry.Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 112 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) |
| 113 | (he : e ∈ atlas V.analyticModel V.analyticSpace) (n : ℕ) |
| 114 | |
| 115 | include he |
| 116 | |
| 117 | /-- The local adjoint is the unique solution of its positive metric equation. -/ |
| 118 | theorem projectiveLocalAdjointCoefficients_weighted |
| 119 | (v : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) (n + 1)) |
| 120 | (z : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V) (hz : z ∈ AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e) : |
| 121 | AdjointCoefficients.Constructions.projectiveWeightedFormOperator V e n z (AdjointCoefficients.Constructions.projectiveLocalAdjointCoefficients V e n v z) = |
| 122 | LocalAdjoint.Constructions.formalAdjointNumerator (stdOrthonormalBasis ℝ (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V)) |
| 123 | (AdjointCoefficients.Constructions.projectiveEuclideanExteriorSymbol V n) (AdjointCoefficients.Constructions.projectiveWeightedFormOperator V e (n + 1)) v z := |
| 124 | (AdjointCoefficients.Constructions.projectiveWeightedFormOperator_isInvertible V e he n z hz).self_apply_inverse _ |
| 125 | |
| 126 | /-- Integration by parts for the actual chart density and both actual degree metrics. -/ |
| 127 | theorem projectiveLocalAdjointCoefficients_integration |
| 128 | (u : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) n) |
| 129 | (v : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) (n + 1)) |
| 130 | (hu : ContDiff ℝ ∞ u) (hv : ContDiffOn ℝ ∞ v (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e : Set _)) |
| 131 | (huc : HasCompactSupport u) (hs : tsupport u ⊆ AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e) : |
| 132 | (∫ z, inner ℝ (AdjointCoefficients.Constructions.projectiveWeightedFormOperator V e (n + 1) z (v z)) |
| 133 | (LocalAdjoint.Constructions.firstOrderCoordinateOperator (stdOrthonormalBasis ℝ (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V)) |
| 134 | (AdjointCoefficients.Constructions.projectiveEuclideanExteriorSymbol V n) u z)) = |
| 135 | ∫ z, inner ℝ (AdjointCoefficients.Constructions.projectiveWeightedFormOperator V e n z |
| 136 | (AdjointCoefficients.Constructions.projectiveLocalAdjointCoefficients V e n v z)) (u z) := by |
| 137 | rw [firstOrderCoordinateOperator_integration_on volume _ _ _ |
| 138 | (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e).isOpen (AdjointCoefficients.Constructions.projectiveWeightedFormOperator_smooth V e he (n + 1)) |
| 139 | u v hu hv huc hs] |
| 140 | apply integral_congr_ae |
| 141 | apply Filter.Eventually.of_forall |
| 142 | intro z |
| 143 | dsimp only |
| 144 | by_cases hz : z ∈ AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e |
| 145 | · rw [projectiveLocalAdjointCoefficients_weighted V e he n v z hz] |
| 146 | · have hzero : u z = 0 := image_eq_zero_of_notMem_tsupport (fun h => hz (hs h)) |
| 147 | rw [hzero, inner_zero_right, inner_zero_right] |
| 148 | |
| 149 | end |
| 150 | |
| 151 | /-! The coordinate formal adjoint as an actual smooth tangent-covector field |
| 152 | on its chart source. -/ |
| 153 | |
| 154 | open scoped ContDiff _root_.Manifold |
| 155 | |
| 156 | variable (V : AlgebraicGeometry.Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 157 | (e : OpenPartialHomeomorph V.analyticSpace V.analyticModel) |
| 158 | (he : e ∈ atlas V.analyticModel V.analyticSpace) (n : ℕ) |
| 159 | |
| 160 | def analyticFormOfEuclideanCoefficients |
| 161 | (c : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) n) |
| 162 | (y : V.analyticModel) : DifferentialForms.Manifold.Basic.FormValue V.analyticModel n := |
| 163 | (SymbolDifferential.Constructions.exteriorCoordinateEquiv (AdjointCoefficients.Constructions.projectiveReferenceBasis V) n).symm |
| 164 | (c ((AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V).symm y)) |
| 165 | |
| 166 | def chartFormOfEuclideanCoefficients |
| 167 | (c : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) n) : |
| 168 | DifferentialForms.Manifold.Algebra.RawManifoldForm V.analyticModel V.analyticSpace n := |
| 169 | DifferentialForms.Manifold.Algebra.RawManifoldForm.fromChart e (analyticFormOfEuclideanCoefficients V n c) |
| 170 | |
| 171 | theorem analyticFormOfEuclideanCoefficients_smooth |
| 172 | (c : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) n) |
| 173 | (hc : ContDiffOn ℝ ∞ c (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e : Set _)) : |
| 174 | ContDiffOn ℝ ∞ (analyticFormOfEuclideanCoefficients V n c) e.target := by |
| 175 | apply ((SymbolDifferential.Constructions.exteriorCoordinateEquiv (AdjointCoefficients.Constructions.projectiveReferenceBasis V) n).symm.contDiff.restrict_scalars ℝ).comp_contDiffOn |
| 176 | apply hc.comp ((AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V).symm.contDiff.restrict_scalars ℝ).contDiffOn |
| 177 | intro y hy |
| 178 | change AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V ((AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanCoordinates V).symm y) ∈ e.target |
| 179 | rwa [ContinuousLinearEquiv.apply_symm_apply] |
| 180 | |
| 181 | include he |
| 182 | |
| 183 | theorem chartFormOfEuclideanCoefficients_smooth |
| 184 | (c : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) n) |
| 185 | (hc : ContDiffOn ℝ ∞ c (AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e : Set _)) : |
| 186 | DifferentialForms.Manifold.Algebra.IsSmoothManifoldFormOn (chartFormOfEuclideanCoefficients V e n c) e.source := |
| 187 | DifferentialForms.Manifold.Algebra.RawManifoldForm.fromChart_smooth e he _ (analyticFormOfEuclideanCoefficients_smooth V e n c hc) |
| 188 | |
| 189 | theorem chartFormOfEuclideanCoefficients_inverse |
| 190 | (c : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V → SymbolDifferential.Constructions.ExteriorCoordinates (AdjointCoefficients.Constructions.ProjectiveRealCoordinateIndex V) n) |
| 191 | (z : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V) (hz : z ∈ AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e) : |
| 192 | EuclideanForms.Constructions.euclideanChartCoefficients V e n (chartFormOfEuclideanCoefficients V e n c) z = c z := by |
| 193 | rw [EuclideanForms.Constructions.euclideanChartCoefficients_eq_analytic] |
| 194 | unfold chartFormOfEuclideanCoefficients |
| 195 | rw [DifferentialForms.Manifold.Algebra.RawManifoldForm.inChart_fromChart_apply e he _ hz] |
| 196 | simp only [analyticFormOfEuclideanCoefficients, ContinuousLinearEquiv.apply_symm_apply, |
| 197 | ContinuousLinearEquiv.symm_apply_apply] |
| 198 | |
| 199 | /-- The explicit local adjoint as actual covectors on manifold tangent spaces. -/ |
| 200 | def projectiveChartAdjoint |
| 201 | (a : DifferentialForms.Manifold.Algebra.SmoothManifoldForm V.analyticModel V.analyticSpace (n + 1)) : |
| 202 | DifferentialForms.Manifold.Algebra.RawManifoldForm V.analyticModel V.analyticSpace n := |
| 203 | chartFormOfEuclideanCoefficients V e n |
| 204 | (AdjointCoefficients.Constructions.projectiveLocalAdjointCoefficients V e n (EuclideanForms.Constructions.euclideanChartCoefficients V e (n + 1) a.val)) |
| 205 | |
| 206 | theorem projectiveChartAdjoint_smooth |
| 207 | (a : DifferentialForms.Manifold.Algebra.SmoothManifoldForm V.analyticModel V.analyticSpace (n + 1)) : |
| 208 | DifferentialForms.Manifold.Algebra.IsSmoothManifoldFormOn (projectiveChartAdjoint V e n a) e.source := |
| 209 | chartFormOfEuclideanCoefficients_smooth V e he n _ |
| 210 | (AdjointCoefficients.Constructions.projectiveLocalAdjointCoefficients_smooth V e he n _ (EuclideanForms.Constructions.euclideanChartCoefficients_smooth V e he (n + 1) a)) |
| 211 | |
| 212 | theorem projectiveChartAdjoint_coefficients |
| 213 | (a : DifferentialForms.Manifold.Algebra.SmoothManifoldForm V.analyticModel V.analyticSpace (n + 1)) |
| 214 | (z : AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanModel V) (hz : z ∈ AlgebraicGeometry.ComplexMultiplication.HodgeComparison.EuclideanMetric.CM.Construction.varietyEuclideanDomain V e) : |
| 215 | EuclideanForms.Constructions.euclideanChartCoefficients V e n (projectiveChartAdjoint V e n a) z = |
| 216 | AdjointCoefficients.Constructions.projectiveLocalAdjointCoefficients V e n (EuclideanForms.Constructions.euclideanChartCoefficients V e (n + 1) a.val) z := |
| 217 | chartFormOfEuclideanCoefficients_inverse V e he n _ z hz |
| 218 | |
| 219 | end |
| 220 | |
| 221 | end OAI.Analysis.HodgeTheory.Decomposition.LocalAdjointForm.Constructions |