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.AbelianVariety.InvariantClosed |
| 2 | import Mathlib.MeasureTheory.Measure.Haar.Unique |
| 3 | import Mathlib.MeasureTheory.Group.Integral |
| 4 | import Mathlib.MeasureTheory.Function.LocallyIntegrable |
| 5 | |
| 6 | /-! # Averaging -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianVariety.Averaging.Constructions.ExteriorCohomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Haar averaging for ExteriorCohomology |
| 14 | |
| 15 | The left-translation coefficients of actual smooth manifold forms are smooth. |
| 16 | Integrating these coefficients gives a linear projection onto invariant forms, |
| 17 | with the expected translation law for Haar measure. |
| 18 | -/ |
| 19 | |
| 20 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 21 | open Set Filter _root_.MeasureTheory |
| 22 | |
| 23 | variable {E G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | [Group G] [TopologicalSpace G] [ChartedSpace E G] |
| 25 | [LieGroup 𝓘(ℝ, E) ∞ G] {n : ℕ} |
| 26 | |
| 27 | def leftCoefficient (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) (g : G) : |
| 28 | E [⋀^Fin n]→L[ℝ] ℂ := |
| 29 | ((form : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E G n).pullback (fun x : G => g * x)) 1 |
| 30 | |
| 31 | theorem leftCoefficient_inChart (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) |
| 32 | (c d : OpenPartialHomeomorph G E) (hc : c ∈ atlas E G) (hd : d ∈ atlas E G) |
| 33 | (h1 : (1 : G) ∈ d.source) {y : E} (hy : y ∈ c.target) : |
| 34 | leftCoefficient form (c.symm y) = |
| 35 | ((form : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E G n).inChart c y).compContinuousLinearMap |
| 36 | ((fderiv ℝ (fun w => c (c.symm y * d.symm w)) (d 1)).comp |
| 37 | (Analysis.DifferentialForms.Manifold.Charts.chartTangentMap d 1)) := by |
| 38 | have hp := (form : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E G n).pullback_inChart |
| 39 | (fun x : G => c.symm y * x) d c hd hc (d.map_source h1) |
| 40 | (by simpa only [d.left_inv h1, mul_one] using c.map_target hy) |
| 41 | ((contMDiff_mul_left (I := 𝓘(ℝ, E)) (n := ∞)).mdifferentiableAt (by simp)) |
| 42 | rw [d.left_inv h1, mul_one, c.right_inv hy] at hp |
| 43 | have hv := congrArg (fun α : E [⋀^Fin n]→L[ℝ] ℂ => |
| 44 | α.compContinuousLinearMap (Analysis.DifferentialForms.Manifold.Charts.chartTangentMap d (1 : G))) hp |
| 45 | rw [Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm.inChart_comp_chartTangentMap _ d hd h1] at hv |
| 46 | exact hv |
| 47 | |
| 48 | theorem leftCoefficient_contDiffAt_inChart (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) |
| 49 | (c : OpenPartialHomeomorph G E) (hc : c ∈ atlas E G) {y : E} (hy : y ∈ c.target) : |
| 50 | ContDiffAt ℝ ∞ (fun z => leftCoefficient form (c.symm z)) y := by |
| 51 | let d := chartAt E (1 : G) |
| 52 | have hd : d ∈ atlas E G := chart_mem_atlas E (1 : G) |
| 53 | have h1 : (1 : G) ∈ d.source := mem_chart_source E (1 : G) |
| 54 | have hcinv : ContMDiffAt 𝓘(ℝ, E) 𝓘(ℝ, E) ∞ c.symm y := |
| 55 | contMDiffAt_symm_of_mem_maximalAtlas (IsManifold.subset_maximalAtlas hc) hy |
| 56 | have hdinv : ContMDiffAt 𝓘(ℝ, E) 𝓘(ℝ, E) ∞ d.symm (d 1) := |
| 57 | contMDiffAt_symm_of_mem_maximalAtlas (IsManifold.subset_maximalAtlas hd) (d.map_source h1) |
| 58 | have hm : ContMDiffAt 𝓘(ℝ, E × E) 𝓘(ℝ, E) ∞ |
| 59 | (fun z : E × E => c.symm z.1 * d.symm z.2) (y, d 1) := |
| 60 | (hcinv.comp (y, d 1) contDiffAt_fst.contMDiffAt).mul |
| 61 | (hdinv.comp (y, d 1) contDiffAt_snd.contMDiffAt) |
| 62 | have hc' : ContMDiffAt 𝓘(ℝ, E) 𝓘(ℝ, E) ∞ c (c.symm y * d.symm (d 1)) := by |
| 63 | rw [d.left_inv h1, mul_one] |
| 64 | exact contMDiffAt_of_mem_maximalAtlas (IsManifold.subset_maximalAtlas hc) (c.map_target hy) |
| 65 | have ht : ContDiffAt ℝ ∞ |
| 66 | (fun z : E × E => c (c.symm z.1 * d.symm z.2)) (y, d 1) := |
| 67 | (hc'.comp (y, d 1) hm).contDiffAt |
| 68 | have hder : ContDiffAt ℝ ∞ |
| 69 | (fun z => fderiv ℝ (fun w => c (c.symm z * d.symm w)) (d 1)) y := |
| 70 | ht.fderiv contDiffAt_const (by simp) |
| 71 | have hform := Analysis.DifferentialForms.Manifold.Derivative.smoothForm_contDiffAt_inChart (form := (form : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E G n)) |
| 72 | form.smooth c hc hy |
| 73 | let L : E →L[ℝ] E := Analysis.DifferentialForms.Manifold.Charts.chartTangentMap d (1 : G) |
| 74 | have hL : ContDiffAt ℝ ∞ (fun _ : E => L) y := contDiffAt_const |
| 75 | have hs := Analysis.DifferentialForms.Manifold.Alternatization.contDiffAt_alternating_compContinuousLinearMap hform (hder.clm_comp hL) |
| 76 | apply hs.congr_of_eventuallyEq |
| 77 | filter_upwards [c.open_target.mem_nhds hy] with z hz |
| 78 | exact leftCoefficient_inChart form c d hc hd h1 hz |
| 79 | |
| 80 | theorem leftCoefficient_contMDiff (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) : |
| 81 | ContMDiff 𝓘(ℝ, E) 𝓘(ℝ, E [⋀^Fin n]→L[ℝ] ℂ) ∞ (leftCoefficient form) := by |
| 82 | intro x |
| 83 | let c := chartAt E x |
| 84 | have hc : c ∈ atlas E G := chart_mem_atlas E x |
| 85 | have hx : x ∈ c.source := mem_chart_source E x |
| 86 | have hchart : ContMDiffAt 𝓘(ℝ, E) 𝓘(ℝ, E) ∞ c x := |
| 87 | contMDiffAt_of_mem_maximalAtlas (IsManifold.subset_maximalAtlas hc) hx |
| 88 | have hs := (leftCoefficient_contDiffAt_inChart form c hc (c.map_source hx)).contMDiffAt |
| 89 | apply (hs.comp x hchart).congr_of_eventuallyEq |
| 90 | filter_upwards [c.open_source.mem_nhds hx] with z hz |
| 91 | exact congrArg (leftCoefficient form) (c.left_inv hz).symm |
| 92 | |
| 93 | def leftCoefficientLinear (g : G) : |
| 94 | Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n →ₗ[ℂ] (E [⋀^Fin n]→L[ℝ] ℂ) where |
| 95 | toFun form := leftCoefficient form g |
| 96 | map_add' _ _ := rfl |
| 97 | map_smul' _ _ := rfl |
| 98 | |
| 99 | theorem leftCoefficient_pullback (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) (g h : G) : |
| 100 | leftCoefficient (Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.pullback (fun x : G => g * x) |
| 101 | (contMDiff_mul_left (I := 𝓘(ℝ, E)) (n := ∞)) form) h = |
| 102 | leftCoefficient form (g * h) := by |
| 103 | have he : (fun x : G => g * x) ∘ (fun x : G => h * x) = |
| 104 | (fun x : G => (g * h) * x) := by funext x; exact (mul_assoc g h x).symm |
| 105 | have hp := (form : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E G n).pullback_comp (fun x : G => h * x) |
| 106 | ((contMDiff_mul_left (I := 𝓘(ℝ, E)) (n := ∞)).mdifferentiable (by simp)) |
| 107 | (fun x : G => g * x) |
| 108 | ((contMDiff_mul_left (I := 𝓘(ℝ, E)) (n := ∞)).mdifferentiable (by simp)) |
| 109 | rw [he] at hp |
| 110 | exact (congrFun hp 1).symm |
| 111 | |
| 112 | theorem leftCoefficient_of_invariant (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) |
| 113 | (hf : form ∈ InvariantClosed.Constructions.ExteriorCohomology.invariantForms (E := E) (G := G) n) (g : G) : |
| 114 | leftCoefficient form g = form 1 := by |
| 115 | have hi := (InvariantClosed.Constructions.ExteriorCohomology.mem_invariantForms_iff form).mp hf g |
| 116 | exact congrArg (fun η : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n => η 1) hi |
| 117 | |
| 118 | variable [MeasurableSpace G] [BorelSpace G] [CompactSpace G] |
| 119 | (μ : Measure G) [IsFiniteMeasure μ] |
| 120 | |
| 121 | theorem leftCoefficient_integrable (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) : |
| 122 | Integrable (leftCoefficient form) μ := |
| 123 | (leftCoefficient_contMDiff form).continuous.integrable_of_hasCompactSupport |
| 124 | (HasCompactSupport.of_compactSpace _) |
| 125 | |
| 126 | def averageCoefficients : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n →ₗ[ℂ] (E [⋀^Fin n]→L[ℝ] ℂ) where |
| 127 | toFun form := ∫ g, leftCoefficient form g ∂μ |
| 128 | map_add' form other := integral_add (leftCoefficient_integrable μ form) |
| 129 | (leftCoefficient_integrable μ other) |
| 130 | map_smul' a form := integral_smul a (leftCoefficient form) |
| 131 | |
| 132 | def averageForms : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n →ₗ[ℂ] Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n := |
| 133 | (InvariantClosed.Constructions.ExteriorCohomology.invariantForms (E := E) (G := G) n).subtype.comp |
| 134 | ((InvariantClosed.Constructions.ExteriorCohomology.invariantFormsEvalEquiv n).symm.toLinearMap.comp (averageCoefficients μ)) |
| 135 | |
| 136 | theorem averageForms_mem (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) : |
| 137 | averageForms μ form ∈ InvariantClosed.Constructions.ExteriorCohomology.invariantForms (E := E) (G := G) n := |
| 138 | ((InvariantClosed.Constructions.ExteriorCohomology.invariantFormsEvalEquiv (E := E) (G := G) n).symm |
| 139 | (averageCoefficients (E := E) (G := G) μ form)).property |
| 140 | |
| 141 | theorem averageForms_of_invariant [IsProbabilityMeasure μ] (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) |
| 142 | (hf : form ∈ InvariantClosed.Constructions.ExteriorCohomology.invariantForms (E := E) (G := G) n) : |
| 143 | averageForms μ form = form := by |
| 144 | have he : averageCoefficients μ form = form 1 := by |
| 145 | change (∫ g, leftCoefficient form g ∂μ) = form 1 |
| 146 | have hc : leftCoefficient form = fun _ : G => (form 1 : E [⋀^Fin n]→L[ℝ] ℂ) := |
| 147 | funext (leftCoefficient_of_invariant form hf) |
| 148 | rw [hc] |
| 149 | have hi := integral_const (E := E [⋀^Fin n]→L[ℝ] ℂ) (μ := μ) (form 1) |
| 150 | rw [probReal_univ] at hi |
| 151 | exact hi.trans (one_smul ℝ (form 1)) |
| 152 | change InvariantClosed.Constructions.ExteriorCohomology.invariantSmoothForm (E := E) (G := G) |
| 153 | (averageCoefficients (E := E) (G := G) μ form) = form |
| 154 | rw [he] |
| 155 | exact InvariantClosed.Constructions.ExteriorCohomology.invariantForm_eq_from_value ⟨form, hf⟩ |
| 156 | |
| 157 | theorem averageForms_pullback [Measure.IsMulLeftInvariant μ] |
| 158 | (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) (g : G) : |
| 159 | averageForms μ (Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.pullback (fun x : G => g * x) |
| 160 | (contMDiff_mul_left (I := 𝓘(ℝ, E)) (n := ∞)) form) = averageForms μ form := by |
| 161 | let : IsTopologicalGroup G := topologicalGroup_of_lieGroup (I := 𝓘(ℝ, E)) (n := ∞) |
| 162 | apply congrArg (fun α => InvariantClosed.Constructions.ExteriorCohomology.invariantSmoothForm (E := E) (G := G) α) |
| 163 | change (∫ h, leftCoefficient _ h ∂μ) = ∫ h, leftCoefficient form h ∂μ |
| 164 | simp only [leftCoefficient_pullback] |
| 165 | exact integral_mul_left_eq_self (μ := μ) (leftCoefficient (E := E) form) g |
| 166 | |
| 167 | theorem averageForms_closed [IsMulCommutative G] (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E G n) : |
| 168 | Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d (averageForms μ form) = 0 := |
| 169 | InvariantClosed.Constructions.ExteriorCohomology.invariantForms_closed _ (averageForms_mem μ form) |
| 170 | |
| 171 | variable [T2Space G] |
| 172 | |
| 173 | def compactGroupHaar : Measure G := |
| 174 | let : IsTopologicalGroup G := topologicalGroup_of_lieGroup (I := 𝓘(ℝ, E)) (n := ∞) |
| 175 | Measure.haarMeasure (⊤ : TopologicalSpace.PositiveCompacts G) |
| 176 | |
| 177 | instance compactGroupHaar_isHaarMeasure : |
| 178 | (compactGroupHaar (E := E) (G := G)).IsHaarMeasure := by |
| 179 | let : IsTopologicalGroup G := topologicalGroup_of_lieGroup (I := 𝓘(ℝ, E)) (n := ∞) |
| 180 | exact inferInstanceAs (Measure.IsHaarMeasure |
| 181 | (Measure.haarMeasure (⊤ : TopologicalSpace.PositiveCompacts G))) |
| 182 | |
| 183 | instance compactGroupHaar_isProbabilityMeasure : |
| 184 | IsProbabilityMeasure (compactGroupHaar (E := E) (G := G)) where |
| 185 | measure_univ := by |
| 186 | let : IsTopologicalGroup G := topologicalGroup_of_lieGroup (I := 𝓘(ℝ, E)) (n := ∞) |
| 187 | exact Measure.haarMeasure_self (K₀ := (⊤ : TopologicalSpace.PositiveCompacts G)) |
| 188 | |
| 189 | end |
| 190 | |
| 191 | end OAI.AlgebraicGeometry.AbelianVariety.Averaging.Constructions.ExteriorCohomology |