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.DifferentialForms.Manifold.Charts |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.Transition |
| 3 | import OAI.Analysis.DifferentialForms.Manifold.Algebra |
| 4 | import OAI.Analysis.DifferentialForms.Manifold.ComplexLinearity |
| 5 | |
| 6 | /-! # Derivative -/ |
| 7 | |
| 8 | namespace OAI.Analysis.DifferentialForms.Manifold |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | The chart construction of the exterior derivative on actual manifold covectors. |
| 14 | Chart agreement and the resulting global operator are proved below. |
| 15 | -/ |
| 16 | |
| 17 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 18 | open Set Filter |
| 19 | |
| 20 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 22 | [IsManifold 𝓘(ℝ, E) ∞ M] {n : ℕ} |
| 23 | |
| 24 | section |
| 25 | |
| 26 | /-- Differentiate in a chart and return the result to the actual tangent space. -/ |
| 27 | def Algebra.RawManifoldForm.chartExteriorDerivative (form : Algebra.RawManifoldForm E M n) |
| 28 | (e : OpenPartialHomeomorph M E) : Algebra.RawManifoldForm E M (n + 1) := |
| 29 | fun x => (extDeriv (form.inChart e) (e x)).compContinuousLinearMap (Charts.chartTangentMap e x) |
| 30 | |
| 31 | /-- A globally specified exterior derivative, using the distinguished chart at |
| 32 | each point. Independence of this choice is a theorem, not an input field. -/ |
| 33 | def Algebra.RawManifoldForm.exteriorDerivative (form : Algebra.RawManifoldForm E M n) : Algebra.RawManifoldForm E M (n + 1) := |
| 34 | fun x => form.chartExteriorDerivative (chartAt E x) x |
| 35 | |
| 36 | theorem Algebra.RawManifoldForm.chartExteriorDerivative_inChart (form : Algebra.RawManifoldForm E M n) |
| 37 | (e : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) {y : E} |
| 38 | (hy : y ∈ e.target) : |
| 39 | (form.chartExteriorDerivative e).inChart e y = extDeriv (form.inChart e) y := by |
| 40 | ext v |
| 41 | change extDeriv (form.inChart e) (e (e.symm y)) |
| 42 | (fun i => Charts.chartTangentMap e (e.symm y) (Charts.chartInverseTangentMap e y (v i))) = |
| 43 | extDeriv (form.inChart e) y v |
| 44 | rw [e.right_inv hy] |
| 45 | have hv : (fun i => Charts.chartTangentMap e (e.symm y) (Charts.chartInverseTangentMap e y (v i))) = v := by |
| 46 | funext i |
| 47 | exact congrArg (fun f => f (v i)) (Charts.chartTangentMap_comp_inverse e he hy) |
| 48 | rw [hv] |
| 49 | |
| 50 | end |
| 51 | |
| 52 | omit [IsManifold 𝓘(ℝ, E) ∞ M] in |
| 53 | theorem Derivative.smoothForm_contDiffAt_inChart {form : Algebra.RawManifoldForm E M n} |
| 54 | (hform : Algebra.IsSmoothManifoldFormOn form univ) |
| 55 | (e : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) {y : E} |
| 56 | (hy : y ∈ e.target) : ContDiffAt ℝ ∞ (form.inChart e) y := by |
| 57 | apply (hform e he).contDiffAt |
| 58 | apply (Algebra.isOpen_manifoldFormChartDomain e isOpen_univ).mem_nhds |
| 59 | exact ⟨hy, mem_univ _⟩ |
| 60 | |
| 61 | theorem Derivative.chartTangentMap_transition_comp (e f : OpenPartialHomeomorph M E) |
| 62 | (he : e ∈ atlas E M) (hf : f ∈ atlas E M) {x : M} |
| 63 | (hex : x ∈ e.source) (hfx : x ∈ f.source) : |
| 64 | (fderiv ℝ (f ∘ e.symm) (e x)).comp (Charts.chartTangentMap e x) = |
| 65 | Charts.chartTangentMap f x := by |
| 66 | rw [Charts.fderiv_chart_transition e f he hf (e.map_source hex) |
| 67 | (by simpa only [e.left_inv hex] using hfx), e.left_inv hex] |
| 68 | ext v |
| 69 | change Charts.chartTangentMap f x (Charts.chartInverseTangentMap e (e x) (Charts.chartTangentMap e x v)) = |
| 70 | Charts.chartTangentMap f x v |
| 71 | exact congrArg (Charts.chartTangentMap f x) |
| 72 | (congrArg (fun g => g v) (Charts.chartInverseTangentMap_comp e he hex)) |
| 73 | |
| 74 | section |
| 75 | |
| 76 | /-- The chartwise derivative is independent of the chart on every overlap. -/ |
| 77 | theorem Algebra.RawManifoldForm.chartExteriorDerivative_eq (form : Algebra.RawManifoldForm E M n) |
| 78 | (hform : Algebra.IsSmoothManifoldFormOn form univ) |
| 79 | (e f : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) (hf : f ∈ atlas E M) |
| 80 | {x : M} (hex : x ∈ e.source) (hfx : x ∈ f.source) : |
| 81 | form.chartExteriorDerivative e x = form.chartExteriorDerivative f x := by |
| 82 | have htrans := form.extDeriv_inChart_transition hform e f he hf |
| 83 | (e.map_source hex) (by simpa only [e.left_inv hex] using hfx) |
| 84 | rw [e.left_inv hex] at htrans |
| 85 | ext v |
| 86 | change extDeriv (form.inChart e) (e x) (fun i => Charts.chartTangentMap e x (v i)) = |
| 87 | extDeriv (form.inChart f) (f x) (fun i => Charts.chartTangentMap f x (v i)) |
| 88 | rw [htrans] |
| 89 | apply congrArg (extDeriv (form.inChart f) (f x)) |
| 90 | funext i |
| 91 | exact congrArg (fun g => g (v i)) (Derivative.chartTangentMap_transition_comp e f he hf hex hfx) |
| 92 | |
| 93 | /-- The preferred-chart definition agrees with the derivative in any atlas chart. -/ |
| 94 | theorem Algebra.RawManifoldForm.exteriorDerivative_eq_chart (form : Algebra.RawManifoldForm E M n) |
| 95 | (hform : Algebra.IsSmoothManifoldFormOn form univ) |
| 96 | (e : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) {x : M} |
| 97 | (hx : x ∈ e.source) : |
| 98 | form.exteriorDerivative x = form.chartExteriorDerivative e x := |
| 99 | form.chartExteriorDerivative_eq hform (chartAt E x) e |
| 100 | (chart_mem_atlas E x) he (mem_chart_source E x) hx |
| 101 | |
| 102 | /-- Every chart expression of the global derivative is the ordinary exterior derivative. -/ |
| 103 | theorem Algebra.RawManifoldForm.exteriorDerivative_inChart (form : Algebra.RawManifoldForm E M n) |
| 104 | (hform : Algebra.IsSmoothManifoldFormOn form univ) |
| 105 | (e : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) {y : E} |
| 106 | (hy : y ∈ e.target) : |
| 107 | form.exteriorDerivative.inChart e y = extDeriv (form.inChart e) y := by |
| 108 | calc |
| 109 | form.exteriorDerivative.inChart e y = (form.chartExteriorDerivative e).inChart e y := by |
| 110 | unfold Algebra.RawManifoldForm.inChart |
| 111 | rw [form.exteriorDerivative_eq_chart hform e he (e.map_target hy)] |
| 112 | _ = extDeriv (form.inChart e) y := form.chartExteriorDerivative_inChart e he hy |
| 113 | |
| 114 | /-- Chart independence proves that the global derivative is smooth. -/ |
| 115 | theorem Algebra.RawManifoldForm.exteriorDerivative_smooth (form : Algebra.RawManifoldForm E M n) |
| 116 | (hform : Algebra.IsSmoothManifoldFormOn form univ) : |
| 117 | Algebra.IsSmoothManifoldFormOn form.exteriorDerivative univ := by |
| 118 | intro e he |
| 119 | have hs : ContDiffOn ℝ ∞ (form.inChart e) e.target := by |
| 120 | simpa only [Algebra.manifoldFormChartDomain, preimage_univ, inter_univ] using hform e he |
| 121 | have hd : ContDiffOn ℝ ∞ (extDeriv (form.inChart e)) e.target := |
| 122 | ExteriorDerivativeSmooth.contDiffOn_extDeriv_of_isOpen hs e.open_target (by simp) |
| 123 | have hfinal : ContDiffOn ℝ ∞ (form.exteriorDerivative.inChart e) e.target := |
| 124 | hd.congr (fun y hy => form.exteriorDerivative_inChart hform e he hy) |
| 125 | simpa only [Algebra.manifoldFormChartDomain, preimage_univ, inter_univ] using hfinal |
| 126 | |
| 127 | omit [IsManifold 𝓘(ℝ, E) ∞ M] in |
| 128 | theorem Algebra.RawManifoldForm.exteriorDerivative_add (form other : Algebra.RawManifoldForm E M n) |
| 129 | (hform : Algebra.IsSmoothManifoldFormOn form univ) |
| 130 | (hother : Algebra.IsSmoothManifoldFormOn other univ) : |
| 131 | (form + other).exteriorDerivative = form.exteriorDerivative + other.exteriorDerivative := by |
| 132 | funext x |
| 133 | let e := chartAt E x |
| 134 | have hx : e x ∈ e.target := e.map_source (mem_chart_source E x) |
| 135 | have hf := (Derivative.smoothForm_contDiffAt_inChart hform e (chart_mem_atlas E x) hx).differentiableAt |
| 136 | (by simp) |
| 137 | have hg := (Derivative.smoothForm_contDiffAt_inChart hother e (chart_mem_atlas E x) hx).differentiableAt |
| 138 | (by simp) |
| 139 | ext v |
| 140 | change extDeriv ((form + other).inChart e) (e x) (fun i => Charts.chartTangentMap e x (v i)) = |
| 141 | (extDeriv (form.inChart e) (e x) + extDeriv (other.inChart e) (e x)) |
| 142 | (fun i => Charts.chartTangentMap e x (v i)) |
| 143 | rw [Algebra.RawManifoldForm.inChart_add, extDeriv_add hf hg] |
| 144 | |
| 145 | omit [IsManifold 𝓘(ℝ, E) ∞ M] in |
| 146 | theorem Algebra.RawManifoldForm.exteriorDerivative_smul (c : ℂ) (form : Algebra.RawManifoldForm E M n) : |
| 147 | (c • form).exteriorDerivative = c • form.exteriorDerivative := by |
| 148 | funext x |
| 149 | let e := chartAt E x |
| 150 | ext v |
| 151 | change extDeriv ((c • form).inChart e) (e x) (fun i => Charts.chartTangentMap e x (v i)) = |
| 152 | (c • extDeriv (form.inChart e) (e x)) (fun i => Charts.chartTangentMap e x (v i)) |
| 153 | rw [Algebra.RawManifoldForm.inChart_smul, ComplexLinearity.extDeriv_complex_smul] |
| 154 | |
| 155 | /-- The global derivative squares to zero, proved in an actual chart neighborhood. -/ |
| 156 | theorem Algebra.RawManifoldForm.exteriorDerivative_squared (form : Algebra.RawManifoldForm E M n) |
| 157 | (hform : Algebra.IsSmoothManifoldFormOn form univ) : |
| 158 | form.exteriorDerivative.exteriorDerivative = 0 := by |
| 159 | funext x |
| 160 | let e := chartAt E x |
| 161 | have he : e ∈ atlas E M := chart_mem_atlas E x |
| 162 | have hx : e x ∈ e.target := e.map_source (mem_chart_source E x) |
| 163 | have heq : form.exteriorDerivative.inChart e =ᶠ[𝓝 (e x)] extDeriv (form.inChart e) := by |
| 164 | filter_upwards [e.open_target.mem_nhds hx] with y hy |
| 165 | exact form.exteriorDerivative_inChart hform e he hy |
| 166 | change (extDeriv (form.exteriorDerivative.inChart e) (e x)).compContinuousLinearMap |
| 167 | (Charts.chartTangentMap e x) = 0 |
| 168 | rw [heq.extDeriv_eq, SquareZero.extDeriv_extDeriv_of_contDiffAt |
| 169 | (Derivative.smoothForm_contDiffAt_inChart hform e he hx)] |
| 170 | ext v |
| 171 | rfl |
| 172 | |
| 173 | end |
| 174 | |
| 175 | /-- The complex-linear exterior derivative on genuine smooth manifold forms. -/ |
| 176 | def Algebra.SmoothManifoldForm.d : Algebra.SmoothManifoldForm E M n →ₗ[ℂ] Algebra.SmoothManifoldForm E M (n + 1) where |
| 177 | toFun form := |
| 178 | ⟨(form : Algebra.RawManifoldForm E M n).exteriorDerivative, |
| 179 | (form : Algebra.RawManifoldForm E M n).exteriorDerivative_smooth form.smooth⟩ |
| 180 | map_add' form other := by |
| 181 | apply Algebra.SmoothManifoldForm.ext |
| 182 | intro x |
| 183 | exact congrFun ((form : Algebra.RawManifoldForm E M n).exteriorDerivative_add |
| 184 | (other : Algebra.RawManifoldForm E M n) form.smooth other.smooth) x |
| 185 | map_smul' c form := by |
| 186 | apply Algebra.SmoothManifoldForm.ext |
| 187 | intro x |
| 188 | exact congrFun ((form : Algebra.RawManifoldForm E M n).exteriorDerivative_smul c) x |
| 189 | |
| 190 | @[simp] |
| 191 | theorem Algebra.SmoothManifoldForm.d_apply (form : Algebra.SmoothManifoldForm E M n) (x : M) : |
| 192 | Algebra.SmoothManifoldForm.d form x = (form : Algebra.RawManifoldForm E M n).exteriorDerivative x := rfl |
| 193 | |
| 194 | theorem Algebra.SmoothManifoldForm.d_inChart (form : Algebra.SmoothManifoldForm E M n) |
| 195 | (e : OpenPartialHomeomorph M E) (he : e ∈ atlas E M) {y : E} |
| 196 | (hy : y ∈ e.target) : |
| 197 | (Algebra.SmoothManifoldForm.d form : Algebra.RawManifoldForm E M (n + 1)).inChart e y = |
| 198 | extDeriv ((form : Algebra.RawManifoldForm E M n).inChart e) y := |
| 199 | (form : Algebra.RawManifoldForm E M n).exteriorDerivative_inChart form.smooth e he hy |
| 200 | |
| 201 | @[simp] |
| 202 | theorem Algebra.SmoothManifoldForm.d_squared (form : Algebra.SmoothManifoldForm E M n) : Algebra.SmoothManifoldForm.d (Algebra.SmoothManifoldForm.d form) = 0 := by |
| 203 | apply Algebra.SmoothManifoldForm.ext |
| 204 | intro x |
| 205 | exact congrFun ((form : Algebra.RawManifoldForm E M n).exteriorDerivative_squared form.smooth) x |
| 206 | |
| 207 | end |
| 208 | |
| 209 | end OAI.Analysis.DifferentialForms.Manifold |