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.Algebra |
| 2 | import Mathlib.Topology.Sets.Opens |
| 3 | |
| 4 | /-! # Open -/ |
| 5 | |
| 6 | namespace OAI.Analysis.DifferentialForms.Manifold.Open |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Smooth manifold-form sections on open subsets |
| 12 | |
| 13 | A local section takes values in the actual tangent covector space at its point. |
| 14 | The zero extension is an auxiliary global field; only its chartwise smoothness |
| 15 | inside the open domain is required. All changes outside the domain are ignored |
| 16 | by the proved locality of `IsSmoothManifoldFormOn`. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter _root_.TopologicalSpace |
| 20 | open scoped _root_.Manifold ContDiff _root_.Topology |
| 21 | |
| 22 | variable (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 24 | |
| 25 | /-- Local sections of the alternating tangent covector bundle. -/ |
| 26 | abbrev RawOpenManifoldForm (U : Opens M) (n : ℕ) := |
| 27 | ∀ x : U, TangentSpace 𝓘(ℝ, E) (x : M) [⋀^Fin n]→L[ℝ] ℂ |
| 28 | |
| 29 | variable {E} {n : ℕ} |
| 30 | |
| 31 | /-- An auxiliary global extension of a local tangent-covector section. -/ |
| 32 | def openManifoldFormExtension (U : Opens M) (f : RawOpenManifoldForm E U n) : |
| 33 | Algebra.RawManifoldForm E M n := by |
| 34 | classical |
| 35 | exact fun x => if hx : x ∈ U then f ⟨x, hx⟩ else 0 |
| 36 | |
| 37 | @[simp] |
| 38 | theorem openManifoldFormExtension_apply (U : Opens M) |
| 39 | (f : RawOpenManifoldForm E U n) (x : U) : |
| 40 | openManifoldFormExtension U f x = f x := by |
| 41 | simp [openManifoldFormExtension, x.property] |
| 42 | |
| 43 | @[simp] |
| 44 | theorem openManifoldFormExtension_zero (U : Opens M) : |
| 45 | openManifoldFormExtension U (0 : RawOpenManifoldForm E U n) = 0 := by |
| 46 | classical |
| 47 | funext x |
| 48 | simp [openManifoldFormExtension] |
| 49 | |
| 50 | @[simp] |
| 51 | theorem openManifoldFormExtension_add (U : Opens M) |
| 52 | (f g : RawOpenManifoldForm E U n) : |
| 53 | openManifoldFormExtension U (f + g) = |
| 54 | openManifoldFormExtension U f + openManifoldFormExtension U g := by |
| 55 | classical |
| 56 | funext x |
| 57 | by_cases hx : x ∈ U <;> simp [openManifoldFormExtension, hx] |
| 58 | |
| 59 | @[simp] |
| 60 | theorem openManifoldFormExtension_smul (U : Opens M) (c : ℂ) |
| 61 | (f : RawOpenManifoldForm E U n) : |
| 62 | openManifoldFormExtension U (c • f) = c • openManifoldFormExtension U f := by |
| 63 | classical |
| 64 | funext x |
| 65 | by_cases hx : x ∈ U |
| 66 | · simp [openManifoldFormExtension, hx] |
| 67 | · simp only [openManifoldFormExtension, dite_eq_right hx, Pi.smul_apply] |
| 68 | apply ContinuousAlternatingMap.ext |
| 69 | intro v |
| 70 | change (0 : ℂ) = c • (0 : ℂ) |
| 71 | simp |
| 72 | |
| 73 | variable (E) in |
| 74 | /-- Actual chartwise smooth local sections form a complex submodule. -/ |
| 75 | def smoothOpenManifoldFormSubmodule (U : Opens M) (n : ℕ) : |
| 76 | Submodule ℂ (RawOpenManifoldForm E U n) where |
| 77 | carrier := {f | Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U f) (U : Set M)} |
| 78 | zero_mem' := by |
| 79 | change Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U |
| 80 | (0 : RawOpenManifoldForm E U n)) (U : Set M) |
| 81 | rw [openManifoldFormExtension_zero] |
| 82 | exact Algebra.IsSmoothManifoldFormOn.zero _ |
| 83 | add_mem' := by |
| 84 | intro f g hf hg |
| 85 | change Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U f) (U : Set M) at hf |
| 86 | change Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U g) (U : Set M) at hg |
| 87 | change Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U (f + g)) (U : Set M) |
| 88 | rw [openManifoldFormExtension_add] |
| 89 | exact hf.add hg |
| 90 | smul_mem' := by |
| 91 | intro c f hf |
| 92 | change Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U f) (U : Set M) at hf |
| 93 | change Algebra.IsSmoothManifoldFormOn (openManifoldFormExtension U (c • f)) (U : Set M) |
| 94 | rw [openManifoldFormExtension_smul] |
| 95 | exact hf.const_smul c |
| 96 | |
| 97 | variable (E) in |
| 98 | /-- A genuine smooth local differential form on an open manifold domain. -/ |
| 99 | abbrev SmoothOpenManifoldForm (U : Opens M) (n : ℕ) := |
| 100 | ↥(smoothOpenManifoldFormSubmodule E U n) |
| 101 | |
| 102 | namespace SmoothOpenManifoldForm |
| 103 | |
| 104 | variable {U V W : Opens M} |
| 105 | |
| 106 | instance : CoeFun (SmoothOpenManifoldForm E U n) (fun _ => RawOpenManifoldForm E U n) := |
| 107 | ⟨fun form => form.1⟩ |
| 108 | |
| 109 | def extension (form : SmoothOpenManifoldForm E U n) : Algebra.RawManifoldForm E M n := |
| 110 | openManifoldFormExtension U (form : RawOpenManifoldForm E U n) |
| 111 | |
| 112 | theorem smooth (form : SmoothOpenManifoldForm E U n) : |
| 113 | Algebra.IsSmoothManifoldFormOn form.extension (U : Set M) := form.2 |
| 114 | |
| 115 | @[simp] |
| 116 | theorem extension_apply (form : SmoothOpenManifoldForm E U n) (x : U) : |
| 117 | form.extension x = form x := openManifoldFormExtension_apply U _ x |
| 118 | |
| 119 | @[ext] |
| 120 | theorem ext {form other : SmoothOpenManifoldForm E U n} |
| 121 | (h : ∀ x, form x = other x) : form = other := Subtype.ext (funext h) |
| 122 | |
| 123 | @[simp] theorem zero_apply (x : U) : (0 : SmoothOpenManifoldForm E U n) x = 0 := rfl |
| 124 | @[simp] theorem add_apply (form other : SmoothOpenManifoldForm E U n) (x : U) : |
| 125 | (form + other) x = form x + other x := rfl |
| 126 | @[simp] theorem smul_apply (c : ℂ) (form : SmoothOpenManifoldForm E U n) (x : U) : |
| 127 | (c • form) x = c • form x := rfl |
| 128 | |
| 129 | @[simp] |
| 130 | theorem extension_add (form other : SmoothOpenManifoldForm E U n) : |
| 131 | (form + other).extension = form.extension + other.extension := |
| 132 | openManifoldFormExtension_add U _ _ |
| 133 | |
| 134 | @[simp] |
| 135 | theorem extension_smul (c : ℂ) (form : SmoothOpenManifoldForm E U n) : |
| 136 | (c • form).extension = c • form.extension := openManifoldFormExtension_smul U _ _ |
| 137 | |
| 138 | /-- A field smooth on U defines a local section, independently of exterior values. -/ |
| 139 | def ofRaw (U : Opens M) (f : Algebra.RawManifoldForm E M n) |
| 140 | (hf : Algebra.IsSmoothManifoldFormOn f (U : Set M)) : SmoothOpenManifoldForm E U n := |
| 141 | ⟨fun x => f x, hf.congr fun x hx => |
| 142 | (openManifoldFormExtension_apply U (fun y : U => f y) ⟨x, hx⟩).symm⟩ |
| 143 | |
| 144 | @[simp] |
| 145 | theorem ofRaw_apply (f : Algebra.RawManifoldForm E M n) |
| 146 | (hf : Algebra.IsSmoothManifoldFormOn f (U : Set M)) (x : U) : |
| 147 | ofRaw U f hf x = f x := rfl |
| 148 | |
| 149 | @[simp] |
| 150 | theorem ofRaw_extension (form : SmoothOpenManifoldForm E U n) : |
| 151 | ofRaw U form.extension form.smooth = form := by |
| 152 | apply SmoothOpenManifoldForm.ext |
| 153 | intro x |
| 154 | exact extension_apply form x |
| 155 | |
| 156 | /-- The chosen extension agrees with its representative near every domain point. -/ |
| 157 | theorem extension_ofRaw_eventuallyEq (f : Algebra.RawManifoldForm E M n) |
| 158 | (hf : Algebra.IsSmoothManifoldFormOn f (U : Set M)) (x : U) : |
| 159 | ∀ᶠ y in 𝓝 (x : M), (ofRaw U f hf).extension y = f y := by |
| 160 | filter_upwards [U.isOpen.mem_nhds x.property] with y hy |
| 161 | exact extension_apply (ofRaw U f hf) ⟨y, hy⟩ |
| 162 | |
| 163 | /-- Restriction of actual tangent-covector sections to an open subdomain. -/ |
| 164 | def restrict (h : V ≤ U) : |
| 165 | SmoothOpenManifoldForm E U n →ₗ[ℂ] SmoothOpenManifoldForm E V n where |
| 166 | toFun form := ⟨fun x => form ⟨x, h x.property⟩, (form.smooth.mono h).congr |
| 167 | (fun x hx => (extension_apply form ⟨x, h hx⟩).trans |
| 168 | (openManifoldFormExtension_apply V (fun y => form ⟨y, h y.property⟩) |
| 169 | ⟨x, hx⟩).symm)⟩ |
| 170 | map_add' _ _ := rfl |
| 171 | map_smul' _ _ := rfl |
| 172 | |
| 173 | @[simp] |
| 174 | theorem restrict_apply (h : V ≤ U) (form : SmoothOpenManifoldForm E U n) (x : V) : |
| 175 | restrict h form x = form ⟨x, h x.property⟩ := rfl |
| 176 | |
| 177 | @[simp] |
| 178 | theorem restrict_refl (form : SmoothOpenManifoldForm E U n) : |
| 179 | restrict (le_refl U) form = form := by |
| 180 | apply SmoothOpenManifoldForm.ext |
| 181 | intro x |
| 182 | rfl |
| 183 | |
| 184 | theorem restrict_trans (hVU : V ≤ U) (hWV : W ≤ V) |
| 185 | (form : SmoothOpenManifoldForm E U n) : |
| 186 | restrict hWV (restrict hVU form) = restrict (hWV.trans hVU) form := by |
| 187 | apply SmoothOpenManifoldForm.ext |
| 188 | intro x |
| 189 | rfl |
| 190 | |
| 191 | /-- Restriction changes the extension only away from the smaller open domain. -/ |
| 192 | theorem extension_restrict_eventuallyEq (h : V ≤ U) |
| 193 | (form : SmoothOpenManifoldForm E U n) (x : V) : |
| 194 | ∀ᶠ y in 𝓝 (x : M), (restrict h form).extension y = form.extension y := by |
| 195 | filter_upwards [V.isOpen.mem_nhds x.property] with y hy |
| 196 | exact (extension_apply (restrict h form) ⟨y, hy⟩).trans |
| 197 | (extension_apply form ⟨y, h hy⟩).symm |
| 198 | |
| 199 | end SmoothOpenManifoldForm |
| 200 | |
| 201 | namespace SmoothManifoldForm |
| 202 | |
| 203 | /-- A globally smooth manifold form restricts to a smooth local section. -/ |
| 204 | def _root_.OAI.Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.onOpen (U : Opens M) : Algebra.SmoothManifoldForm E M n →ₗ[ℂ] SmoothOpenManifoldForm E U n where |
| 205 | toFun form := SmoothOpenManifoldForm.ofRaw U (form : Algebra.RawManifoldForm E M n) |
| 206 | (form.smooth.mono (subset_univ _)) |
| 207 | map_add' _ _ := rfl |
| 208 | map_smul' _ _ := rfl |
| 209 | |
| 210 | @[simp] |
| 211 | theorem _root_.OAI.Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.onOpen_apply (U : Opens M) (form : Algebra.SmoothManifoldForm E M n) (x : U) : |
| 212 | Algebra.SmoothManifoldForm.onOpen U form x = form x := rfl |
| 213 | |
| 214 | theorem _root_.OAI.Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.restrict_onOpen {U V : Opens M} (h : V ≤ U) (form : Algebra.SmoothManifoldForm E M n) : |
| 215 | SmoothOpenManifoldForm.restrict h (Algebra.SmoothManifoldForm.onOpen U form) = Algebra.SmoothManifoldForm.onOpen V form := by |
| 216 | apply SmoothOpenManifoldForm.ext |
| 217 | intro x |
| 218 | rfl |
| 219 | |
| 220 | end SmoothManifoldForm |
| 221 | |
| 222 | end |
| 223 | |
| 224 | end OAI.Analysis.DifferentialForms.Manifold.Open |