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.SectionCoordinates |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.LocallyConstantZeroForms |
| 3 | |
| 4 | /-! # Locally Constant -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace Analysis.DifferentialForms.Manifold.LocallyConstant |
| 11 | |
| 12 | /-! |
| 13 | # The degree-zero exterior kernel on an actual smooth manifold |
| 14 | |
| 15 | Local constancy is checked on genuine chart domains. Nullary tangent covectors |
| 16 | have ordinary scalar values, and the existing coordinate derivative and the |
| 17 | proved normed-space kernel theorem identify the manifold exterior kernel. |
| 18 | -/ |
| 19 | |
| 20 | open Set _root_.TopologicalSpace |
| 21 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 22 | |
| 23 | /-- Local constancy can be verified on an open neighborhood of every point. -/ |
| 24 | theorem isLocallyConstant_of_openNeighborhoods {X Y : Type*} [TopologicalSpace X] |
| 25 | (f : X → Y) |
| 26 | (h : ∀ x : X, ∃ U : Opens X, x ∈ U ∧ |
| 27 | IsLocallyConstant (fun y : U => f y)) : IsLocallyConstant f := by |
| 28 | intro s |
| 29 | apply isOpen_iff_forall_mem_open.2 |
| 30 | intro x hx |
| 31 | obtain ⟨U, hxU, hU⟩ := h x |
| 32 | refine ⟨(Subtype.val : U → X) '' ((fun y : U => f y) ⁻¹' s), ?_, |
| 33 | U.isOpen.isOpenMap_subtype_val _ (hU s), ?_⟩ |
| 34 | · rintro y ⟨z, hz, rfl⟩ |
| 35 | exact hz |
| 36 | · exact ⟨⟨x, hxU⟩, hx, rfl⟩ |
| 37 | |
| 38 | section Topology |
| 39 | |
| 40 | variable {E : Type*} [NormedAddCommGroup E] |
| 41 | {M : Type*} [TopologicalSpace M] |
| 42 | |
| 43 | /-- The inverse chart, restricted to the chart image of an actual open domain. -/ |
| 44 | def chartInverseToOpen (e : OpenPartialHomeomorph M E) (U : Opens M) : |
| 45 | ChartEquiv.chartImageOpen e U → U := fun y => ⟨e.symm y, y.property.2⟩ |
| 46 | |
| 47 | theorem chartInverseToOpen_continuous (e : OpenPartialHomeomorph M E) (U : Opens M) : |
| 48 | Continuous (chartInverseToOpen e U) := by |
| 49 | apply Continuous.subtype_mk |
| 50 | exact e.continuousOn_symm.comp_continuous continuous_subtype_val |
| 51 | (fun y => y.property.1) |
| 52 | |
| 53 | variable [ChartedSpace E M] |
| 54 | |
| 55 | /-- A scalar section is locally constant exactly when all of its chart expressions are. -/ |
| 56 | theorem isLocallyConstant_iff_manifoldCoordinates (U : Opens M) (f : U → ℂ) : |
| 57 | IsLocallyConstant f ↔ |
| 58 | ∀ (e : OpenPartialHomeomorph M E) (_he : e ∈ atlas E M), |
| 59 | IsLocallyConstant (fun y : ChartEquiv.chartImageOpen e U => f (chartInverseToOpen e U y)) := by |
| 60 | constructor |
| 61 | · intro h e _he |
| 62 | exact h.comp_continuous (chartInverseToOpen_continuous e U) |
| 63 | · intro h |
| 64 | apply isLocallyConstant_of_openNeighborhoods f |
| 65 | intro x |
| 66 | let e := chartAt E (x : M) |
| 67 | have he : e ∈ atlas E M := chart_mem_atlas E (x : M) |
| 68 | let W : Opens U := ⟨{z : U | (z : M) ∈ e.source}, |
| 69 | e.open_source.preimage continuous_subtype_val⟩ |
| 70 | let q : W → ChartEquiv.chartImageOpen e U := fun z => |
| 71 | ⟨e (z.val : M), ChartEquiv.mem_chartImageOpen e U z.property z.val.property⟩ |
| 72 | have hq : Continuous q := by |
| 73 | apply Continuous.subtype_mk |
| 74 | exact e.continuousOn.comp_continuous |
| 75 | (continuous_subtype_val.comp continuous_subtype_val) (fun z => z.property) |
| 76 | refine ⟨W, mem_chart_source E (x : M), ?_⟩ |
| 77 | have hlocal := (h e he).comp_continuous hq |
| 78 | have hfun : (fun z : W => f (chartInverseToOpen e U (q z))) = |
| 79 | (fun z : W => f z.val) := by |
| 80 | funext z |
| 81 | apply congrArg f |
| 82 | apply Subtype.ext |
| 83 | exact e.left_inv z.property |
| 84 | exact hfun ▸ hlocal |
| 85 | |
| 86 | end Topology |
| 87 | |
| 88 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 89 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 90 | [IsManifold 𝓘(ℝ, E) ∞ M] {U : Opens M} |
| 91 | |
| 92 | /-- A genuine smooth manifold zero-form is closed exactly when its scalar section |
| 93 | is locally constant. No connectedness or finite-dimensionality assumption is used. -/ |
| 94 | theorem d_openManifoldZeroForm_eq_zero_iff (form : Open.SmoothOpenManifoldForm E U 0) : |
| 95 | Open.SmoothOpenManifoldForm.d form = 0 ↔ |
| 96 | IsLocallyConstant (fun x : U => form x 0) := by |
| 97 | rw [Open.SmoothOpenManifoldForm.eq_zero_iff_inChartOn, |
| 98 | isLocallyConstant_iff_manifoldCoordinates (E := E)] |
| 99 | constructor |
| 100 | · intro h e he |
| 101 | have hd : OpenD.SmoothOpenForm.d (Open.SmoothOpenManifoldForm.inChartOn e he U form) = 0 := |
| 102 | (Open.SmoothOpenManifoldForm.inChartOn_d e he U form).trans (h e he) |
| 103 | have hlocal := (AlgebraicTopology.DeRham.Comparison.LocallyConstantZeroForms.d_openZeroForm_eq_zero_iff |
| 104 | (Open.SmoothOpenManifoldForm.inChartOn e he U form)).1 hd |
| 105 | have hfun : (fun y : ChartEquiv.chartImageOpen e U => |
| 106 | Open.SmoothOpenManifoldForm.inChartOn e he U form y 0) = |
| 107 | (fun y : ChartEquiv.chartImageOpen e U => form (chartInverseToOpen e U y) 0) := by |
| 108 | funext y |
| 109 | exact Open.SmoothOpenManifoldForm.inChartOn_zero_apply e he U form y |
| 110 | exact hfun ▸ hlocal |
| 111 | · intro h e he |
| 112 | have hd : OpenD.SmoothOpenForm.d (Open.SmoothOpenManifoldForm.inChartOn e he U form) = 0 := |
| 113 | (AlgebraicTopology.DeRham.Comparison.LocallyConstantZeroForms.d_openZeroForm_eq_zero_iff |
| 114 | (Open.SmoothOpenManifoldForm.inChartOn e he U form)).2 (by |
| 115 | have hfun : (fun y : ChartEquiv.chartImageOpen e U => |
| 116 | Open.SmoothOpenManifoldForm.inChartOn e he U form y 0) = |
| 117 | (fun y : ChartEquiv.chartImageOpen e U => form (chartInverseToOpen e U y) 0) := by |
| 118 | funext y |
| 119 | exact Open.SmoothOpenManifoldForm.inChartOn_zero_apply e he U form y |
| 120 | exact hfun.symm ▸ h e he) |
| 121 | exact (Open.SmoothOpenManifoldForm.inChartOn_d e he U form).symm.trans hd |
| 122 | |
| 123 | end Analysis.DifferentialForms.Manifold.LocallyConstant |
| 124 | |
| 125 | namespace Analysis.DifferentialForms.Manifold |
| 126 | |
| 127 | /-! |
| 128 | # Locally constant sections as actual smooth manifold zero-forms |
| 129 | |
| 130 | The map uses the ordinary nullary alternating covector with the specified |
| 131 | scalar value. Its smoothness is proved in actual charts. Its image is the |
| 132 | actual kernel of the exterior derivative, and restriction is respected. |
| 133 | -/ |
| 134 | |
| 135 | open Set _root_.TopologicalSpace |
| 136 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 137 | |
| 138 | section ScalarExtension |
| 139 | |
| 140 | variable {M : Type*} [TopologicalSpace M] |
| 141 | |
| 142 | /-- Auxiliary scalar extension; no global smoothness outside U is asserted. -/ |
| 143 | def LocallyConstant.manifoldOpenScalarExtension (U : Opens M) (f : U → ℂ) : M → ℂ := by |
| 144 | classical |
| 145 | exact fun x => if hx : x ∈ U then f ⟨x, hx⟩ else 0 |
| 146 | |
| 147 | @[simp] |
| 148 | theorem LocallyConstant.manifoldOpenScalarExtension_apply (U : Opens M) (f : U → ℂ) (x : U) : |
| 149 | Manifold.LocallyConstant.manifoldOpenScalarExtension U f x = f x := by |
| 150 | simp [Manifold.LocallyConstant.manifoldOpenScalarExtension, x.property] |
| 151 | |
| 152 | /-- The ordinary restriction map for locally constant sections on arbitrary spaces. -/ |
| 153 | def LocallyConstant.locallyConstantOpenRestrict {U V : Opens M} (h : V ≤ U) : |
| 154 | LocallyConstant U ℂ →ₗ[ℂ] LocallyConstant V ℂ where |
| 155 | toFun f := ⟨fun x => f ⟨x, h x.property⟩, |
| 156 | f.isLocallyConstant.comp_continuous (continuous_subtype_val.subtype_mk _)⟩ |
| 157 | map_add' _ _ := rfl |
| 158 | map_smul' _ _ := rfl |
| 159 | |
| 160 | end ScalarExtension |
| 161 | |
| 162 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 163 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 164 | |
| 165 | /-- A scalar field defines its usual nullary tangent covector field. -/ |
| 166 | def Algebra.RawManifoldForm.ofScalar (f : M → ℂ) : Algebra.RawManifoldForm E M 0 := |
| 167 | fun x => ContinuousAlternatingMap.constOfIsEmpty ℝ |
| 168 | (TangentSpace 𝓘(ℝ, E) x) (Fin 0) (f x) |
| 169 | |
| 170 | @[simp] |
| 171 | theorem Algebra.RawManifoldForm.ofScalar_apply (f : M → ℂ) (x : M) |
| 172 | (v : Fin 0 → TangentSpace 𝓘(ℝ, E) x) : |
| 173 | Algebra.RawManifoldForm.ofScalar (E := E) f x v = f x := rfl |
| 174 | |
| 175 | /-- In coordinates a scalar covector remains the same scalar. -/ |
| 176 | theorem Algebra.RawManifoldForm.ofScalar_inChart (f : M → ℂ) (e : OpenPartialHomeomorph M E) : |
| 177 | (Algebra.RawManifoldForm.ofScalar (E := E) f).inChart e = |
| 178 | fun y => ContinuousAlternatingMap.constOfIsEmpty ℝ E (Fin 0) (f (e.symm y)) := by |
| 179 | funext y |
| 180 | apply ContinuousAlternatingMap.ext |
| 181 | intro v |
| 182 | rfl |
| 183 | |
| 184 | /-- Local constancy proves chartwise smoothness of the actual scalar covector. -/ |
| 185 | theorem LocallyConstant.locallyConstantManifoldZeroForm_smooth (U : Opens M) (f : LocallyConstant U ℂ) : |
| 186 | Algebra.IsSmoothManifoldFormOn |
| 187 | (Algebra.RawManifoldForm.ofScalar (E := E) (Manifold.LocallyConstant.manifoldOpenScalarExtension U f)) (U : Set M) := by |
| 188 | intro e _he |
| 189 | rw [Algebra.RawManifoldForm.ofScalar_inChart] |
| 190 | have hlocal : IsLocallyConstant (fun y : ChartEquiv.chartImageOpen e U => |
| 191 | Manifold.LocallyConstant.manifoldOpenScalarExtension U f (e.symm y)) := by |
| 192 | have h := f.isLocallyConstant.comp_continuous (Manifold.LocallyConstant.chartInverseToOpen_continuous e U) |
| 193 | have hfun : (fun y : ChartEquiv.chartImageOpen e U => Manifold.LocallyConstant.manifoldOpenScalarExtension U f (e.symm y)) = |
| 194 | (fun y : ChartEquiv.chartImageOpen e U => f (Manifold.LocallyConstant.chartInverseToOpen e U y)) := by |
| 195 | funext y |
| 196 | exact Manifold.LocallyConstant.manifoldOpenScalarExtension_apply U f (Manifold.LocallyConstant.chartInverseToOpen e U y) |
| 197 | exact hfun.symm ▸ h |
| 198 | have hsmooth : ContDiffOn ℝ ∞ (fun y : E => Manifold.LocallyConstant.manifoldOpenScalarExtension U f (e.symm y)) |
| 199 | (Algebra.manifoldFormChartDomain e (U : Set M)) := |
| 200 | AlgebraicTopology.DeRham.Comparison.DegreeZeroExactness.contDiffOn_of_isLocallyConstant_on_open |
| 201 | (Algebra.isOpen_manifoldFormChartDomain e U.isOpen) hlocal |
| 202 | exact (ContinuousAlternatingMap.constOfIsEmptyLIE ℝ E ℂ (Fin 0)).contDiff.comp_contDiffOn |
| 203 | hsmooth |
| 204 | |
| 205 | variable (E) in |
| 206 | /-- A locally constant section defines the smooth zero-form with those actual values. -/ |
| 207 | def LocallyConstant.locallyConstantManifoldZeroForm (U : Opens M) (f : LocallyConstant U ℂ) : |
| 208 | Open.SmoothOpenManifoldForm E U 0 := |
| 209 | Open.SmoothOpenManifoldForm.ofRaw U |
| 210 | (Algebra.RawManifoldForm.ofScalar (Manifold.LocallyConstant.manifoldOpenScalarExtension U f)) |
| 211 | (Manifold.LocallyConstant.locallyConstantManifoldZeroForm_smooth U f) |
| 212 | |
| 213 | @[simp] |
| 214 | theorem LocallyConstant.locallyConstantManifoldZeroForm_apply (U : Opens M) (f : LocallyConstant U ℂ) |
| 215 | (x : U) (v : Fin 0 → TangentSpace 𝓘(ℝ, E) (x : M)) : |
| 216 | Manifold.LocallyConstant.locallyConstantManifoldZeroForm E U f x v = f x := by |
| 217 | change Manifold.LocallyConstant.manifoldOpenScalarExtension U f x = f x |
| 218 | exact Manifold.LocallyConstant.manifoldOpenScalarExtension_apply U f x |
| 219 | |
| 220 | variable (E) in |
| 221 | /-- The actual locally constant inclusion is complex-linear. -/ |
| 222 | def LocallyConstant.locallyConstantToManifoldZeroForm (U : Opens M) : |
| 223 | LocallyConstant U ℂ →ₗ[ℂ] Open.SmoothOpenManifoldForm E U 0 where |
| 224 | toFun := Manifold.LocallyConstant.locallyConstantManifoldZeroForm E U |
| 225 | map_add' f g := by |
| 226 | apply Open.SmoothOpenManifoldForm.ext |
| 227 | intro x |
| 228 | apply ContinuousAlternatingMap.ext |
| 229 | intro v |
| 230 | simp only [Manifold.LocallyConstant.locallyConstantManifoldZeroForm_apply, Open.SmoothOpenManifoldForm.add_apply, |
| 231 | ContinuousAlternatingMap.add_apply] |
| 232 | rfl |
| 233 | map_smul' c f := by |
| 234 | apply Open.SmoothOpenManifoldForm.ext |
| 235 | intro x |
| 236 | apply ContinuousAlternatingMap.ext |
| 237 | intro v |
| 238 | simp only [Manifold.LocallyConstant.locallyConstantManifoldZeroForm_apply, Open.SmoothOpenManifoldForm.smul_apply, |
| 239 | ContinuousAlternatingMap.smul_apply] |
| 240 | rfl |
| 241 | |
| 242 | @[simp] |
| 243 | theorem LocallyConstant.locallyConstantToManifoldZeroForm_apply (U : Opens M) (f : LocallyConstant U ℂ) |
| 244 | (x : U) (v : Fin 0 → TangentSpace 𝓘(ℝ, E) (x : M)) : |
| 245 | Manifold.LocallyConstant.locallyConstantToManifoldZeroForm E U f x v = f x := |
| 246 | Manifold.LocallyConstant.locallyConstantManifoldZeroForm_apply U f x v |
| 247 | |
| 248 | theorem LocallyConstant.locallyConstantToManifoldZeroForm_injective (U : Opens M) : |
| 249 | Function.Injective (Manifold.LocallyConstant.locallyConstantToManifoldZeroForm E U) := by |
| 250 | intro f g h |
| 251 | apply DFunLike.ext |
| 252 | intro x |
| 253 | have heval := congrArg (fun form : Open.SmoothOpenManifoldForm E U 0 => form x 0) h |
| 254 | simpa only [Manifold.LocallyConstant.locallyConstantToManifoldZeroForm_apply] using heval |
| 255 | |
| 256 | /-- The actual inclusion commutes with restricting the open domain. -/ |
| 257 | theorem LocallyConstant.restrict_locallyConstantToManifoldZeroForm {U V : Opens M} (h : V ≤ U) |
| 258 | (f : LocallyConstant U ℂ) : |
| 259 | Open.SmoothOpenManifoldForm.restrict h (Manifold.LocallyConstant.locallyConstantToManifoldZeroForm E U f) = |
| 260 | Manifold.LocallyConstant.locallyConstantToManifoldZeroForm E V (Manifold.LocallyConstant.locallyConstantOpenRestrict h f) := by |
| 261 | apply Open.SmoothOpenManifoldForm.ext |
| 262 | intro x |
| 263 | apply ContinuousAlternatingMap.ext |
| 264 | intro v |
| 265 | simp only [Open.SmoothOpenManifoldForm.restrict_apply, Manifold.LocallyConstant.locallyConstantToManifoldZeroForm_apply] |
| 266 | rfl |
| 267 | |
| 268 | variable [IsManifold 𝓘(ℝ, E) ∞ M] |
| 269 | |
| 270 | @[simp] |
| 271 | theorem LocallyConstant.d_locallyConstantToManifoldZeroForm (U : Opens M) (f : LocallyConstant U ℂ) : |
| 272 | Open.SmoothOpenManifoldForm.d (Manifold.LocallyConstant.locallyConstantToManifoldZeroForm E U f) = 0 := by |
| 273 | rw [Manifold.LocallyConstant.d_openManifoldZeroForm_eq_zero_iff] |
| 274 | have hf : IsLocallyConstant (fun x : U => f x) := f.isLocallyConstant |
| 275 | simpa only [Manifold.LocallyConstant.locallyConstantToManifoldZeroForm_apply] using hf |
| 276 | |
| 277 | /-- Exact image-kernel equality for the genuine manifold degree-zero differential. -/ |
| 278 | theorem LocallyConstant.range_locallyConstantToManifoldZeroForm (U : Opens M) : |
| 279 | LinearMap.range (Manifold.LocallyConstant.locallyConstantToManifoldZeroForm E U) = |
| 280 | LinearMap.ker (Open.SmoothOpenManifoldForm.d : |
| 281 | Open.SmoothOpenManifoldForm E U 0 →ₗ[ℂ] Open.SmoothOpenManifoldForm E U 1) := by |
| 282 | ext form |
| 283 | constructor |
| 284 | · rintro ⟨f, rfl⟩ |
| 285 | exact Manifold.LocallyConstant.d_locallyConstantToManifoldZeroForm U f |
| 286 | · intro h |
| 287 | let f : LocallyConstant U ℂ := |
| 288 | ⟨fun x => form x 0, (Manifold.LocallyConstant.d_openManifoldZeroForm_eq_zero_iff form).1 h⟩ |
| 289 | refine ⟨f, ?_⟩ |
| 290 | apply Open.SmoothOpenManifoldForm.ext |
| 291 | intro x |
| 292 | apply ContinuousAlternatingMap.ext |
| 293 | intro v |
| 294 | rw [Manifold.LocallyConstant.locallyConstantToManifoldZeroForm_apply] |
| 295 | change form x 0 = form x v |
| 296 | congr 1 |
| 297 | exact Subsingleton.elim _ _ |
| 298 | |
| 299 | end Analysis.DifferentialForms.Manifold |
| 300 | |
| 301 | end |
| 302 | |
| 303 | end OAI |