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.AlgebraicTopology.DeRham.Comparison.DegreeZeroExactness |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.OpenD |
| 3 | import Mathlib.Topology.LocallyConstant.Algebra |
| 4 | |
| 5 | /-! # Locally Constant Zero Forms -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.DeRham.Comparison.LocallyConstantZeroForms |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Locally constant functions are the closed smooth zero-forms |
| 13 | |
| 14 | All sections in this file are functions on genuine open subsets. The map |
| 15 | from locally constant functions to smooth zero-forms is explicit, injective, |
| 16 | commutes with restriction, and has image exactly the actual differential's |
| 17 | kernel. This is the degree-zero exactness of the prospective de Rham sheaf |
| 18 | resolution; no positive-degree Poincare lemma is assumed. |
| 19 | -/ |
| 20 | |
| 21 | open Filter Set _root_.TopologicalSpace |
| 22 | open scoped _root_.Topology ContDiff |
| 23 | |
| 24 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 25 | |
| 26 | /-- A scalar function on an open set, extended by zero only for differentiation. -/ |
| 27 | def openScalarExtension (U : Opens E) (f : U → ℂ) : E → ℂ := by |
| 28 | classical |
| 29 | exact fun x => if hx : x ∈ U then f ⟨x, hx⟩ else 0 |
| 30 | |
| 31 | omit [NormedSpace ℝ E] in |
| 32 | @[simp] |
| 33 | theorem openScalarExtension_apply (U : Opens E) (f : U → ℂ) (x : U) : |
| 34 | openScalarExtension U f x = f x := by |
| 35 | simp [openScalarExtension, x.property] |
| 36 | |
| 37 | /-- A locally constant section has a genuinely smooth local extension. -/ |
| 38 | theorem openScalarExtension_smooth (U : Opens E) (f : LocallyConstant U ℂ) : |
| 39 | ContDiffOn ℝ ∞ (openScalarExtension U f) (U : Set E) := by |
| 40 | apply DegreeZeroExactness.contDiffOn_of_isLocallyConstant_on_open U.isOpen |
| 41 | change IsLocallyConstant (fun x : U => openScalarExtension U f x) |
| 42 | have hf : IsLocallyConstant (fun x : U => f x) := f.isLocallyConstant |
| 43 | simpa only [openScalarExtension_apply] using hf |
| 44 | |
| 45 | /-- The scalar function underlying a zero-form, in its auxiliary ambient extension. -/ |
| 46 | def zeroFormScalarExtension {U : Opens E} (form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) : E → ℂ := |
| 47 | fun x => form.extension x 0 |
| 48 | |
| 49 | @[simp] |
| 50 | theorem zeroFormScalarExtension_apply {U : Opens E} (form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) (x : U) : |
| 51 | zeroFormScalarExtension form x = form x 0 := by |
| 52 | simp [zeroFormScalarExtension] |
| 53 | |
| 54 | theorem zeroFormScalarExtension_smooth {U : Opens E} (form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) : |
| 55 | ContDiffOn ℝ ∞ (zeroFormScalarExtension form) (U : Set E) := by |
| 56 | exact (ContinuousAlternatingMap.constOfIsEmptyLIE ℝ E ℂ (Fin 0)).symm.contDiff.comp_contDiffOn |
| 57 | form.smooth |
| 58 | |
| 59 | theorem zeroFormScalarExtension_reconstruct {U : Opens E} (form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) : |
| 60 | (fun x => ContinuousAlternatingMap.constOfIsEmpty ℝ E (Fin 0) |
| 61 | (zeroFormScalarExtension form x)) = form.extension := by |
| 62 | funext x |
| 63 | apply ContinuousAlternatingMap.ext |
| 64 | intro v |
| 65 | change form.extension x 0 = form.extension x v |
| 66 | congr 1 |
| 67 | exact Subsingleton.elim _ _ |
| 68 | |
| 69 | /-- The actual open-domain differential agrees with the scalar derivative in degree zero. -/ |
| 70 | theorem d_openZeroForm_apply {U : Opens E} (form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) |
| 71 | (x : U) (v : Fin 1 → E) : |
| 72 | Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.d form x v = |
| 73 | fderiv ℝ (zeroFormScalarExtension form) (x : E) (v 0) := by |
| 74 | rw [Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.d_apply, ← zeroFormScalarExtension_reconstruct form, |
| 75 | extDeriv_constOfIsEmpty] |
| 76 | rfl |
| 77 | |
| 78 | /-- Closed smooth zero-forms on any open domain are exactly locally constant scalar sections. -/ |
| 79 | theorem d_openZeroForm_eq_zero_iff {U : Opens E} (form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) : |
| 80 | Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.d form = 0 ↔ IsLocallyConstant (fun x : U => form x 0) := by |
| 81 | have hf := (zeroFormScalarExtension_smooth form).differentiableOn (by simp) |
| 82 | rw [← show IsLocallyConstant (fun x : U => zeroFormScalarExtension form x) ↔ |
| 83 | IsLocallyConstant (fun x : U => form x 0) by simp only [zeroFormScalarExtension_apply]] |
| 84 | have hcriterion : (∀ x ∈ U, fderiv ℝ (zeroFormScalarExtension form) x = 0) ↔ |
| 85 | IsLocallyConstant (fun x : U => zeroFormScalarExtension form x) := |
| 86 | DegreeZeroExactness.fderiv_eq_zero_on_open_iff U.isOpen hf |
| 87 | rw [← hcriterion] |
| 88 | constructor |
| 89 | · intro h x hx |
| 90 | apply ContinuousLinearMap.ext |
| 91 | intro v |
| 92 | have heval := congrArg (fun a : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 1 => a ⟨x, hx⟩ (fun _ => v)) h |
| 93 | simpa only [d_openZeroForm_apply, Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.zero_apply, |
| 94 | ContinuousAlternatingMap.coe_zero, Pi.zero_apply, zero_apply] using heval |
| 95 | · intro h |
| 96 | apply Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.ext |
| 97 | intro x |
| 98 | apply ContinuousAlternatingMap.ext |
| 99 | intro v |
| 100 | simp only [d_openZeroForm_apply, h x x.property, Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.zero_apply, |
| 101 | ContinuousAlternatingMap.coe_zero, Pi.zero_apply, zero_apply] |
| 102 | |
| 103 | /-- A locally constant scalar section defines its usual smooth zero-form. -/ |
| 104 | def locallyConstantZeroForm (U : Opens E) (f : LocallyConstant U ℂ) : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0 := |
| 105 | Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.ofRaw U |
| 106 | (fun x => ContinuousAlternatingMap.constOfIsEmpty ℝ E (Fin 0) (openScalarExtension U f x)) |
| 107 | ((ContinuousAlternatingMap.constOfIsEmptyLIE ℝ E ℂ (Fin 0)).contDiff.comp_contDiffOn |
| 108 | (openScalarExtension_smooth U f)) |
| 109 | |
| 110 | @[simp] |
| 111 | theorem locallyConstantZeroForm_apply (U : Opens E) (f : LocallyConstant U ℂ) |
| 112 | (x : U) (v : Fin 0 → E) : locallyConstantZeroForm U f x v = f x := by |
| 113 | change openScalarExtension U f x = f x |
| 114 | exact openScalarExtension_apply U f x |
| 115 | |
| 116 | /-- The degree-zero inclusion is complex linear. -/ |
| 117 | def locallyConstantToZeroForm (U : Opens E) : LocallyConstant U ℂ →ₗ[ℂ] Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0 where |
| 118 | toFun := locallyConstantZeroForm U |
| 119 | map_add' f g := by |
| 120 | apply Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.ext |
| 121 | intro x |
| 122 | apply ContinuousAlternatingMap.ext |
| 123 | intro v |
| 124 | simp only [locallyConstantZeroForm_apply, Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.add_apply, |
| 125 | ContinuousAlternatingMap.add_apply] |
| 126 | rfl |
| 127 | map_smul' c f := by |
| 128 | apply Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.ext |
| 129 | intro x |
| 130 | apply ContinuousAlternatingMap.ext |
| 131 | intro v |
| 132 | simp only [locallyConstantZeroForm_apply, Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.smul_apply, |
| 133 | ContinuousAlternatingMap.smul_apply] |
| 134 | rfl |
| 135 | |
| 136 | @[simp] |
| 137 | theorem locallyConstantToZeroForm_apply (U : Opens E) (f : LocallyConstant U ℂ) |
| 138 | (x : U) (v : Fin 0 → E) : locallyConstantToZeroForm U f x v = f x := |
| 139 | locallyConstantZeroForm_apply U f x v |
| 140 | |
| 141 | theorem locallyConstantToZeroForm_injective (U : Opens E) : |
| 142 | Function.Injective (locallyConstantToZeroForm U) := by |
| 143 | intro f g h |
| 144 | apply DFunLike.ext |
| 145 | intro x |
| 146 | have heval := congrArg (fun form : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0 => form x 0) h |
| 147 | simpa only [locallyConstantToZeroForm_apply] using heval |
| 148 | |
| 149 | @[simp] |
| 150 | theorem d_locallyConstantToZeroForm (U : Opens E) (f : LocallyConstant U ℂ) : |
| 151 | Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.d (locallyConstantToZeroForm U f) = 0 := by |
| 152 | rw [d_openZeroForm_eq_zero_iff] |
| 153 | have hf : IsLocallyConstant (fun x : U => f x) := f.isLocallyConstant |
| 154 | simpa only [locallyConstantToZeroForm_apply] using hf |
| 155 | |
| 156 | /-- Exactness is proved as equality of the actual image and actual kernel. -/ |
| 157 | theorem range_locallyConstantToZeroForm (U : Opens E) : |
| 158 | LinearMap.range (locallyConstantToZeroForm U) = |
| 159 | LinearMap.ker (Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.d : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0 →ₗ[ℂ] Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 1) := by |
| 160 | ext form |
| 161 | constructor |
| 162 | · rintro ⟨f, rfl⟩ |
| 163 | exact d_locallyConstantToZeroForm U f |
| 164 | · intro h |
| 165 | let f : LocallyConstant U ℂ := |
| 166 | ⟨fun x => form x 0, (d_openZeroForm_eq_zero_iff form).1 h⟩ |
| 167 | refine ⟨f, ?_⟩ |
| 168 | apply Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.ext |
| 169 | intro x |
| 170 | apply ContinuousAlternatingMap.ext |
| 171 | intro v |
| 172 | rw [locallyConstantToZeroForm_apply] |
| 173 | change form x 0 = form x v |
| 174 | congr 1 |
| 175 | exact Subsingleton.elim _ _ |
| 176 | |
| 177 | /-- Locally constant sections and closed smooth zero-forms are canonically equivalent. -/ |
| 178 | def locallyConstantClosedZeroFormEquiv (U : Opens E) : |
| 179 | LocallyConstant U ℂ ≃ₗ[ℂ] |
| 180 | LinearMap.ker (Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.d : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0 →ₗ[ℂ] Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 1) := |
| 181 | (LinearEquiv.ofInjective (locallyConstantToZeroForm U) |
| 182 | (locallyConstantToZeroForm_injective U)).trans |
| 183 | (LinearEquiv.ofEq _ _ (range_locallyConstantToZeroForm U)) |
| 184 | |
| 185 | @[simp] |
| 186 | theorem locallyConstantClosedZeroFormEquiv_coe (U : Opens E) (f : LocallyConstant U ℂ) : |
| 187 | (locallyConstantClosedZeroFormEquiv U f : Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm U 0) = |
| 188 | locallyConstantToZeroForm U f := rfl |
| 189 | |
| 190 | /-- Restriction of locally constant functions, with its pointwise complex-linear structure. -/ |
| 191 | def locallyConstantRestrict {U V : Opens E} (h : V ≤ U) : |
| 192 | LocallyConstant U ℂ →ₗ[ℂ] LocallyConstant V ℂ where |
| 193 | toFun f := ⟨fun x => f ⟨x, h x.property⟩, |
| 194 | f.isLocallyConstant.comp_continuous (continuous_subtype_val.subtype_mk _)⟩ |
| 195 | map_add' _ _ := rfl |
| 196 | map_smul' _ _ := rfl |
| 197 | |
| 198 | /-- The actual degree-zero inclusion commutes with restriction of open domains. -/ |
| 199 | theorem restrict_locallyConstantToZeroForm {U V : Opens E} (h : V ≤ U) |
| 200 | (f : LocallyConstant U ℂ) : |
| 201 | Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.restrict h (locallyConstantToZeroForm U f) = |
| 202 | locallyConstantToZeroForm V (locallyConstantRestrict h f) := by |
| 203 | apply Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.ext |
| 204 | intro x |
| 205 | apply ContinuousAlternatingMap.ext |
| 206 | intro v |
| 207 | simp only [Analysis.DifferentialForms.Manifold.OpenD.SmoothOpenForm.restrict_apply, locallyConstantToZeroForm_apply] |
| 208 | rfl |
| 209 | |
| 210 | end |
| 211 | |
| 212 | end OAI.AlgebraicTopology.DeRham.Comparison.LocallyConstantZeroForms |