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.ExteriorDerivativeSmooth |
| 2 | import Mathlib.Analysis.Complex.Basic |
| 3 | import Mathlib.Geometry.Manifold.MFDeriv.Atlas |
| 4 | |
| 5 | /-! # Algebra -/ |
| 6 | |
| 7 | namespace OAI.Analysis.DifferentialForms.Manifold.Algebra |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! |
| 12 | # Complex-valued differential forms on real charted manifolds |
| 13 | |
| 14 | A field assigns a continuous alternating covector to the actual tangent space |
| 15 | at each point. Its chart expression pulls that covector back along the |
| 16 | derivative of the chart inverse. Smoothness is the usual smoothness of these |
| 17 | expressions on chart domains, rather than smoothness in the arbitrary preferred |
| 18 | tangent-space coordinates used to implement the tangent bundle. |
| 19 | |
| 20 | The definitions make sense for a charted space; their manifold interpretation |
| 21 | uses a smooth atlas. Restriction and gluing below require only the local |
| 22 | definition and the topological properties of charts. |
| 23 | -/ |
| 24 | |
| 25 | open scoped _root_.Manifold ContDiff |
| 26 | open Set |
| 27 | |
| 28 | variable (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 29 | (M : Type*) [TopologicalSpace M] [ChartedSpace E M] |
| 30 | |
| 31 | /-- An actual complex-valued alternating covector field on real tangent spaces. -/ |
| 32 | abbrev RawManifoldForm (n : ℕ) := |
| 33 | ∀ x : M, TangentSpace 𝓘(ℝ, E) x [⋀^Fin n]→L[ℝ] ℂ |
| 34 | |
| 35 | variable {E M} {n : ℕ} |
| 36 | |
| 37 | /-- Express a covector field in a chart by pulling back along its inverse. |
| 38 | The canonical identification of a vector-space tangent space with the vector |
| 39 | space is explicit. -/ |
| 40 | noncomputable def RawManifoldForm.inChart (form : RawManifoldForm E M n) |
| 41 | (e : OpenPartialHomeomorph M E) : E → E [⋀^Fin n]→L[ℝ] ℂ := |
| 42 | fun y => (form (e.symm y)).compContinuousLinearMap |
| 43 | ((mfderiv 𝓘(ℝ, E) 𝓘(ℝ, E) e.symm y).comp |
| 44 | (NormedSpace.fromTangentSpace y).symm.toContinuousLinearMap) |
| 45 | |
| 46 | /-- The portion of a chart where a form on `U` is expressed. -/ |
| 47 | def manifoldFormChartDomain (e : OpenPartialHomeomorph M E) (U : Set M) : Set E := |
| 48 | e.target ∩ e.symm ⁻¹' U |
| 49 | |
| 50 | omit [NormedSpace ℝ E] [ChartedSpace E M] in |
| 51 | theorem isOpen_manifoldFormChartDomain (e : OpenPartialHomeomorph M E) |
| 52 | {U : Set M} (hU : IsOpen U) : IsOpen (manifoldFormChartDomain e U) := |
| 53 | e.isOpen_inter_preimage_symm hU |
| 54 | |
| 55 | /-- Smoothness of an actual alternating covector field, tested in every chart |
| 56 | of the chosen atlas on the specified domain. -/ |
| 57 | def IsSmoothManifoldFormOn (form : RawManifoldForm E M n) (U : Set M) : Prop := |
| 58 | ∀ e ∈ atlas E M, ContDiffOn ℝ ∞ (form.inChart e) (manifoldFormChartDomain e U) |
| 59 | |
| 60 | /-- A global smooth complex-valued differential form in the chartwise model. -/ |
| 61 | abbrev SmoothManifoldForm (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 62 | (M : Type*) [TopologicalSpace M] [ChartedSpace E M] (n : ℕ) := |
| 63 | {form : RawManifoldForm E M n // IsSmoothManifoldFormOn form univ} |
| 64 | |
| 65 | namespace IsSmoothManifoldFormOn |
| 66 | |
| 67 | /-- Restriction of the domain preserves smoothness of the covector field. -/ |
| 68 | theorem mono {form : RawManifoldForm E M n} {U V : Set M} |
| 69 | (hform : IsSmoothManifoldFormOn form U) (hVU : V ⊆ U) : |
| 70 | IsSmoothManifoldFormOn form V := by |
| 71 | intro e he |
| 72 | exact (hform e he).mono fun _ hy => ⟨hy.1, hVU hy.2⟩ |
| 73 | |
| 74 | /-- Smoothness depends only on the values of the field on its domain. -/ |
| 75 | theorem congr {form other : RawManifoldForm E M n} {U : Set M} |
| 76 | (hform : IsSmoothManifoldFormOn form U) |
| 77 | (heq : ∀ x ∈ U, form x = other x) : IsSmoothManifoldFormOn other U := by |
| 78 | intro e he |
| 79 | apply (hform e he).congr |
| 80 | intro y hy |
| 81 | simp only [RawManifoldForm.inChart, heq (e.symm y) hy.2] |
| 82 | |
| 83 | /-- Smoothness is local on an arbitrary union of open domains. -/ |
| 84 | theorem iUnion {ι : Type*} {form : RawManifoldForm E M n} {U : ι → Set M} |
| 85 | (hform : ∀ i, IsSmoothManifoldFormOn form (U i)) (hU : ∀ i, IsOpen (U i)) : |
| 86 | IsSmoothManifoldFormOn form (⋃ i, U i) := by |
| 87 | intro e he |
| 88 | have hlocal := ContDiffOn.iUnion_of_isOpen |
| 89 | (fun i => hform i e he) (fun i => isOpen_manifoldFormChartDomain e (hU i)) |
| 90 | simpa only [manifoldFormChartDomain, preimage_iUnion, inter_iUnion] using hlocal |
| 91 | |
| 92 | /-- A field smooth on every member of an open cover is globally smooth. -/ |
| 93 | theorem of_openCover {ι : Type*} {form : RawManifoldForm E M n} {U : ι → Set M} |
| 94 | (hform : ∀ i, IsSmoothManifoldFormOn form (U i)) (hU : ∀ i, IsOpen (U i)) |
| 95 | (hcover : ∀ x, ∃ i, x ∈ U i) : IsSmoothManifoldFormOn form univ := by |
| 96 | have hUnion : (⋃ i, U i) = univ := by |
| 97 | ext x |
| 98 | simp only [mem_iUnion, mem_univ, iff_true] |
| 99 | exact hcover x |
| 100 | rw [← hUnion] |
| 101 | exact iUnion hform hU |
| 102 | |
| 103 | end IsSmoothManifoldFormOn |
| 104 | |
| 105 | /-- Glue covector fields over a cover. Agreement on overlaps is used in the |
| 106 | gluing theorem below, so this definition does not depend mathematically on the |
| 107 | chosen index when that agreement holds. -/ |
| 108 | noncomputable def glueRawManifoldForm {ι : Type*} (U : ι → Set M) |
| 109 | (forms : ι → RawManifoldForm E M n) (hcover : ∀ x, ∃ i, x ∈ U i) : |
| 110 | RawManifoldForm E M n := |
| 111 | fun x => forms (Classical.choose (hcover x)) x |
| 112 | |
| 113 | theorem glueRawManifoldForm_eq {ι : Type*} (U : ι → Set M) |
| 114 | (forms : ι → RawManifoldForm E M n) (hcover : ∀ x, ∃ i, x ∈ U i) |
| 115 | (hcompat : ∀ i j x, x ∈ U i → x ∈ U j → forms i x = forms j x) |
| 116 | (i : ι) {x : M} (hx : x ∈ U i) : |
| 117 | glueRawManifoldForm U forms hcover x = forms i x := |
| 118 | hcompat _ i x (Classical.choose_spec (hcover x)) hx |
| 119 | |
| 120 | /-- Compatible smooth local covector fields glue to a globally smooth field. -/ |
| 121 | theorem isSmooth_glueRawManifoldForm {ι : Type*} (U : ι → Set M) |
| 122 | (forms : ι → RawManifoldForm E M n) (hcover : ∀ x, ∃ i, x ∈ U i) |
| 123 | (hU : ∀ i, IsOpen (U i)) (hforms : ∀ i, IsSmoothManifoldFormOn (forms i) (U i)) |
| 124 | (hcompat : ∀ i j x, x ∈ U i → x ∈ U j → forms i x = forms j x) : |
| 125 | IsSmoothManifoldFormOn (glueRawManifoldForm U forms hcover) univ := by |
| 126 | apply IsSmoothManifoldFormOn.of_openCover (U := U) _ hU hcover |
| 127 | intro i |
| 128 | apply (hforms i).congr |
| 129 | intro x hx |
| 130 | exact (glueRawManifoldForm_eq U forms hcover hcompat i hx).symm |
| 131 | |
| 132 | /-- The glued global field is uniquely determined by its restrictions. -/ |
| 133 | theorem glueRawManifoldForm_unique {ι : Type*} (U : ι → Set M) |
| 134 | (forms : ι → RawManifoldForm E M n) (hcover : ∀ x, ∃ i, x ∈ U i) |
| 135 | (hcompat : ∀ i j x, x ∈ U i → x ∈ U j → forms i x = forms j x) |
| 136 | (form : RawManifoldForm E M n) (hform : ∀ i x, x ∈ U i → form x = forms i x) : |
| 137 | form = glueRawManifoldForm U forms hcover := by |
| 138 | funext x |
| 139 | obtain ⟨i, hi⟩ := hcover x |
| 140 | exact (hform i x hi).trans (glueRawManifoldForm_eq U forms hcover hcompat i hi).symm |
| 141 | |
| 142 | end |
| 143 | |
| 144 | noncomputable section |
| 145 | |
| 146 | /-! Pointwise complex-linear algebra on actual smooth manifold covector fields. -/ |
| 147 | |
| 148 | open scoped _root_.Manifold ContDiff |
| 149 | open Set |
| 150 | |
| 151 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 152 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] {n : ℕ} |
| 153 | |
| 154 | namespace RawManifoldForm |
| 155 | |
| 156 | @[simp] |
| 157 | theorem inChart_zero (e : OpenPartialHomeomorph M E) : |
| 158 | (0 : RawManifoldForm E M n).inChart e = 0 := by |
| 159 | funext y |
| 160 | ext v |
| 161 | rfl |
| 162 | |
| 163 | @[simp] |
| 164 | theorem inChart_add (form other : RawManifoldForm E M n) |
| 165 | (e : OpenPartialHomeomorph M E) : |
| 166 | (form + other).inChart e = form.inChart e + other.inChart e := by |
| 167 | funext y |
| 168 | ext v |
| 169 | rfl |
| 170 | |
| 171 | @[simp] |
| 172 | theorem inChart_smul (c : ℂ) (form : RawManifoldForm E M n) |
| 173 | (e : OpenPartialHomeomorph M E) : |
| 174 | (c • form).inChart e = c • form.inChart e := by |
| 175 | funext y |
| 176 | ext v |
| 177 | rfl |
| 178 | |
| 179 | end RawManifoldForm |
| 180 | |
| 181 | namespace IsSmoothManifoldFormOn |
| 182 | |
| 183 | theorem zero (U : Set M) : |
| 184 | IsSmoothManifoldFormOn (0 : RawManifoldForm E M n) U := by |
| 185 | intro e _ |
| 186 | rw [RawManifoldForm.inChart_zero] |
| 187 | exact contDiffOn_const |
| 188 | |
| 189 | theorem add {form other : RawManifoldForm E M n} {U : Set M} |
| 190 | (hform : IsSmoothManifoldFormOn form U) |
| 191 | (hother : IsSmoothManifoldFormOn other U) : |
| 192 | IsSmoothManifoldFormOn (form + other) U := by |
| 193 | intro e he |
| 194 | rw [RawManifoldForm.inChart_add] |
| 195 | exact (hform e he).add (hother e he) |
| 196 | |
| 197 | theorem const_smul {form : RawManifoldForm E M n} {U : Set M} |
| 198 | (hform : IsSmoothManifoldFormOn form U) (c : ℂ) : |
| 199 | IsSmoothManifoldFormOn (c • form) U := by |
| 200 | intro e he |
| 201 | rw [RawManifoldForm.inChart_smul] |
| 202 | exact (hform e he).const_smul c |
| 203 | |
| 204 | end IsSmoothManifoldFormOn |
| 205 | |
| 206 | /-- Smooth covector fields form a complex submodule of actual tangent covector fields. -/ |
| 207 | def smoothManifoldFormSubmodule (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 208 | (M : Type*) [TopologicalSpace M] [ChartedSpace E M] (n : ℕ) : |
| 209 | Submodule ℂ (RawManifoldForm E M n) where |
| 210 | carrier := {form | IsSmoothManifoldFormOn form univ} |
| 211 | zero_mem' := IsSmoothManifoldFormOn.zero univ |
| 212 | add_mem' := fun hform hother => hform.add hother |
| 213 | smul_mem' := fun c _ hform => hform.const_smul c |
| 214 | |
| 215 | namespace SmoothManifoldForm |
| 216 | |
| 217 | instance : AddCommGroup (SmoothManifoldForm E M n) := |
| 218 | inferInstanceAs (AddCommGroup ↥(smoothManifoldFormSubmodule E M n)) |
| 219 | |
| 220 | instance : Module ℂ (SmoothManifoldForm E M n) := |
| 221 | inferInstanceAs (Module ℂ ↥(smoothManifoldFormSubmodule E M n)) |
| 222 | |
| 223 | instance : CoeFun (SmoothManifoldForm E M n) (fun _ => RawManifoldForm E M n) := |
| 224 | ⟨fun form => form.1⟩ |
| 225 | |
| 226 | /-- The stored smoothness condition is actual chartwise smoothness. -/ |
| 227 | theorem smooth (form : SmoothManifoldForm E M n) : |
| 228 | IsSmoothManifoldFormOn (form : RawManifoldForm E M n) univ := form.2 |
| 229 | |
| 230 | /-- Bundle a field whose chart expressions have been proved smooth. -/ |
| 231 | def ofSmooth (form : RawManifoldForm E M n) |
| 232 | (hform : IsSmoothManifoldFormOn form univ) : SmoothManifoldForm E M n := |
| 233 | ⟨form, hform⟩ |
| 234 | |
| 235 | @[simp] |
| 236 | theorem ofSmooth_apply (form : RawManifoldForm E M n) |
| 237 | (hform : IsSmoothManifoldFormOn form univ) (x : M) : |
| 238 | ofSmooth form hform x = form x := rfl |
| 239 | |
| 240 | @[ext] |
| 241 | theorem ext {form other : SmoothManifoldForm E M n} |
| 242 | (h : ∀ x, form x = other x) : form = other := Subtype.ext (funext h) |
| 243 | |
| 244 | @[simp] |
| 245 | theorem zero_apply (x : M) : (0 : SmoothManifoldForm E M n) x = 0 := rfl |
| 246 | |
| 247 | @[simp] |
| 248 | theorem add_apply (form other : SmoothManifoldForm E M n) (x : M) : |
| 249 | (form + other) x = form x + other x := rfl |
| 250 | |
| 251 | @[simp] |
| 252 | theorem neg_apply (form : SmoothManifoldForm E M n) (x : M) : |
| 253 | (-form) x = -form x := rfl |
| 254 | |
| 255 | @[simp] |
| 256 | theorem sub_apply (form other : SmoothManifoldForm E M n) (x : M) : |
| 257 | (form - other) x = form x - other x := rfl |
| 258 | |
| 259 | @[simp] |
| 260 | theorem smul_apply (c : ℂ) (form : SmoothManifoldForm E M n) (x : M) : |
| 261 | (c • form) x = c • form x := rfl |
| 262 | |
| 263 | /-- Evaluation at a point is complex-linear into its actual cotangent exterior power. -/ |
| 264 | def eval (x : M) : |
| 265 | SmoothManifoldForm E M n →ₗ[ℂ] (TangentSpace 𝓘(ℝ, E) x [⋀^Fin n]→L[ℝ] ℂ) where |
| 266 | toFun := fun form => form x |
| 267 | map_add' := fun _ _ => rfl |
| 268 | map_smul' := fun _ _ => rfl |
| 269 | |
| 270 | @[simp] |
| 271 | theorem eval_apply (x : M) (form : SmoothManifoldForm E M n) : |
| 272 | eval x form = form x := rfl |
| 273 | |
| 274 | end SmoothManifoldForm |
| 275 | |
| 276 | end |
| 277 | |
| 278 | end OAI.Analysis.DifferentialForms.Manifold.Algebra |