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.CechContraction |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.CechLocallyFiniteAlgebra |
| 3 | import OAI.Analysis.DifferentialForms.Manifold.ManifoldLocallyFiniteSum |
| 4 | import OAI.Analysis.DifferentialForms.Manifold.FinitePartition |
| 5 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 6 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 7 | |
| 8 | /-! # Cech Locally Finite -/ |
| 9 | |
| 10 | namespace OAI.Analysis.DifferentialForms.Manifold.CechLocallyFinite |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Actual Čech contraction for arbitrary manifold open covers |
| 16 | |
| 17 | The homotopy sums the genuine supported insertion maps. Local finiteness of |
| 18 | the scalar supports makes this a smooth section on each intersection. The |
| 19 | pointwise finite-support tuple identity proves positive-degree exactness. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory Function Set _root_.TopologicalSpace |
| 23 | open scoped _root_.Manifold ContDiff BigOperators |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {E M ι : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 28 | [TopologicalSpace M] [ChartedSpace E M] [IsManifold 𝓘(ℝ, E) ∞ M] |
| 29 | (U : ι → Opens M) (rho : ι → M → ℂ) |
| 30 | (hrho : ∀ i, ContMDiff 𝓘(ℝ, E) 𝓘(ℝ, ℂ) ∞ (rho i)) |
| 31 | (hsupp : ∀ i, tsupport (rho i) ⊆ (U i : Set M)) |
| 32 | |
| 33 | /-- One actual supported insertion map, before summing over cover indices. -/ |
| 34 | def manifoldCechWeightedInsertion (p n : ℕ) (i : ι) : |
| 35 | CechContraction.ManifoldCechCochain (E := E) U p (n + 1) →ₗ[ℂ] |
| 36 | CechContraction.ManifoldCechCochain (E := E) U p n where |
| 37 | toFun c a := Open.SmoothOpenManifoldForm.supportedExtensionTo |
| 38 | (U i) (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) (rho i) (hrho i).contMDiffOn (hsupp i) |
| 39 | (Open.SmoothOpenManifoldForm.restrict (le_of_eq (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_cons U i a).symm) |
| 40 | (c (Fin.cons i a))) |
| 41 | map_add' c d := by |
| 42 | funext a |
| 43 | simp only [Pi.add_apply, map_add] |
| 44 | map_smul' z c := by |
| 45 | funext a |
| 46 | simp only [Pi.smul_apply, map_smul, RingHom.id_apply] |
| 47 | |
| 48 | theorem manifoldCechWeightedInsertion_apply (p n : ℕ) (i : ι) |
| 49 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) |
| 50 | (a : Fin (n + 1) → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) : |
| 51 | manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x = |
| 52 | rho i (x : M) • (c (Fin.cons i a)).extension (x : M) := by |
| 53 | change Open.SmoothOpenManifoldForm.supportedExtensionTo (U i) (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) |
| 54 | (rho i) (hrho i).contMDiffOn (hsupp i) |
| 55 | (Open.SmoothOpenManifoldForm.restrict (le_of_eq (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_cons U i a).symm) |
| 56 | (c (Fin.cons i a))) x = _ |
| 57 | by_cases hx : (x : M) ∈ U i |
| 58 | · have hcons : (x : M) ∈ AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (Fin.cons i a) := by |
| 59 | rw [AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_cons] |
| 60 | exact ⟨hx, x.property⟩ |
| 61 | rw [Open.SmoothOpenManifoldForm.supportedExtensionTo_apply_mem _ _ _ _ _ _ x hx] |
| 62 | exact congrArg (fun value => rho i (x : M) • value) |
| 63 | (Open.SmoothOpenManifoldForm.extension_apply (c (Fin.cons i a)) ⟨x, hcons⟩).symm |
| 64 | · have hz : rho i (x : M) = 0 := image_eq_zero_of_notMem_tsupport |
| 65 | (fun h => hx (hsupp i h)) |
| 66 | rw [Open.SmoothOpenManifoldForm.supportedExtensionTo_apply, hz] |
| 67 | apply ContinuousAlternatingMap.ext |
| 68 | intro v |
| 69 | change (0 : ℂ) * _ = 0 * _ |
| 70 | simp only [zero_mul] |
| 71 | |
| 72 | variable (hlf : LocallyFinite (fun i => support (rho i))) |
| 73 | |
| 74 | include hlf in |
| 75 | theorem manifoldCechWeightedInsertion_locallyFinite (p n : ℕ) |
| 76 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) (a : Fin (n + 1) → ι) : |
| 77 | LocallyFinite (fun i => {x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a | |
| 78 | manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x ≠ 0}) := by |
| 79 | apply (hlf.preimage_continuous continuous_subtype_val).subset |
| 80 | intro i x hx hz |
| 81 | apply hx |
| 82 | rw [manifoldCechWeightedInsertion_apply] |
| 83 | change rho i (x : M) = 0 at hz |
| 84 | rw [hz] |
| 85 | exact zero_smul ℂ ((c (Fin.cons i a)).extension (x : M)) |
| 86 | |
| 87 | /-- The supported insertion sum is a genuine complex-linear map on the |
| 88 | manifold-form Čech cochains for an arbitrary index set. -/ |
| 89 | def manifoldCechLocallyFiniteContraction (p n : ℕ) : |
| 90 | CechContraction.ManifoldCechCochain (E := E) U p (n + 1) →ₗ[ℂ] |
| 91 | CechContraction.ManifoldCechCochain (E := E) U p n where |
| 92 | toFun c a := Open.SmoothOpenManifoldForm.locallyFiniteSum |
| 93 | (fun i => manifoldCechWeightedInsertion U rho hrho hsupp p n i c a) |
| 94 | (manifoldCechWeightedInsertion_locallyFinite U rho hrho hsupp hlf p n c a) |
| 95 | map_add' c d := by |
| 96 | funext a |
| 97 | apply Open.SmoothOpenManifoldForm.ext |
| 98 | intro x |
| 99 | change (∑ᶠ i, manifoldCechWeightedInsertion U rho hrho hsupp p n i (c + d) a x) = |
| 100 | (∑ᶠ i, manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x) + |
| 101 | (∑ᶠ i, manifoldCechWeightedInsertion U rho hrho hsupp p n i d a x) |
| 102 | have hterm (i : ι) : |
| 103 | manifoldCechWeightedInsertion U rho hrho hsupp p n i (c + d) a x = |
| 104 | manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x + |
| 105 | manifoldCechWeightedInsertion U rho hrho hsupp p n i d a x := |
| 106 | congrArg (fun z : CechContraction.ManifoldCechCochain (E := E) U p n => z a x) |
| 107 | ((manifoldCechWeightedInsertion U rho hrho hsupp p n i).map_add c d) |
| 108 | exact (finsum_congr hterm).trans (finsum_add_distrib |
| 109 | ((manifoldCechWeightedInsertion_locallyFinite U rho hrho hsupp hlf p n c a).point_finite x) |
| 110 | ((manifoldCechWeightedInsertion_locallyFinite U rho hrho hsupp hlf p n d a).point_finite x)) |
| 111 | map_smul' z c := by |
| 112 | funext a |
| 113 | apply Open.SmoothOpenManifoldForm.ext |
| 114 | intro x |
| 115 | change (∑ᶠ i, manifoldCechWeightedInsertion U rho hrho hsupp p n i (z • c) a x) = |
| 116 | z • (∑ᶠ i, manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x) |
| 117 | have hterm (i : ι) : |
| 118 | manifoldCechWeightedInsertion U rho hrho hsupp p n i (z • c) a x = |
| 119 | z • manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x := |
| 120 | congrArg (fun w : CechContraction.ManifoldCechCochain (E := E) U p n => w a x) |
| 121 | ((manifoldCechWeightedInsertion U rho hrho hsupp p n i).map_smul z c) |
| 122 | exact (finsum_congr hterm).trans (smul_finsum' z |
| 123 | ((manifoldCechWeightedInsertion_locallyFinite U rho hrho hsupp hlf p n c a).point_finite x)).symm |
| 124 | |
| 125 | theorem manifoldCechLocallyFiniteContraction_apply (p n : ℕ) |
| 126 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) |
| 127 | (a : Fin (n + 1) → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) : |
| 128 | manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c a x = |
| 129 | CechLocallyFiniteAlgebra.finsumWeightedInsertion (fun i => rho i (x : M)) |
| 130 | (fun b => (c b).extension (x : M)) a := by |
| 131 | change (∑ᶠ i, manifoldCechWeightedInsertion U rho hrho hsupp p n i c a x) = _ |
| 132 | exact finsum_congr fun i => manifoldCechWeightedInsertion_apply U rho hrho hsupp p n i c a x |
| 133 | |
| 134 | theorem manifoldCechDelta_locallyFiniteContraction_apply (p n : ℕ) |
| 135 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) |
| 136 | (a : Fin (n + 2) → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) : |
| 137 | CechContraction.manifoldCechDelta U p n (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c) a x = |
| 138 | CechContractionAlgebra.tupleCoboundary |
| 139 | (CechLocallyFiniteAlgebra.finsumWeightedInsertion (fun i => rho i (x : M)) |
| 140 | (fun b => (c b).extension (x : M))) a := by |
| 141 | rw [CechContraction.manifoldCechDelta_apply] |
| 142 | unfold CechContractionAlgebra.tupleCoboundary |
| 143 | apply Finset.sum_congr rfl |
| 144 | intro j _ |
| 145 | have hx : (x : M) ∈ AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (a ∘ j.succAbove) := |
| 146 | AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a j.succAbove x.property |
| 147 | apply congrArg (fun value => (-1 : ℤ) ^ j.val • value) |
| 148 | exact (Open.SmoothOpenManifoldForm.extension_apply |
| 149 | (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c (a ∘ j.succAbove)) |
| 150 | ⟨x, hx⟩).trans |
| 151 | (manifoldCechLocallyFiniteContraction_apply U rho hrho hsupp hlf p n c |
| 152 | (a ∘ j.succAbove) ⟨x, hx⟩) |
| 153 | |
| 154 | theorem manifoldCechLocallyFiniteContraction_delta_apply (p n : ℕ) |
| 155 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) |
| 156 | (a : Fin (n + 2) → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) : |
| 157 | manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p (n + 1) |
| 158 | (CechContraction.manifoldCechDelta U p (n + 1) c) a x = |
| 159 | CechLocallyFiniteAlgebra.finsumWeightedInsertion (fun i => rho i (x : M)) |
| 160 | (CechContractionAlgebra.tupleCoboundary (fun b => (c b).extension (x : M))) a := by |
| 161 | rw [manifoldCechLocallyFiniteContraction_apply] |
| 162 | unfold CechLocallyFiniteAlgebra.finsumWeightedInsertion |
| 163 | apply finsum_congr |
| 164 | intro i |
| 165 | change rho i (x : M) • (CechContraction.manifoldCechDelta U p (n + 1) c (Fin.cons i a)).extension |
| 166 | (x : M) = rho i (x : M) • |
| 167 | CechContractionAlgebra.tupleCoboundary (fun b => (c b).extension (x : M)) (Fin.cons i a) |
| 168 | by_cases hz : rho i (x : M) = 0 |
| 169 | · rw [hz] |
| 170 | apply ContinuousAlternatingMap.ext |
| 171 | intro v |
| 172 | change (0 : ℂ) * _ = 0 * _ |
| 173 | simp only [zero_mul] |
| 174 | · have hx : (x : M) ∈ U i := hsupp i (subset_closure hz) |
| 175 | have hcons : (x : M) ∈ AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (Fin.cons i a) := by |
| 176 | rw [AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_cons] |
| 177 | exact ⟨hx, x.property⟩ |
| 178 | rw [Open.SmoothOpenManifoldForm.extension_apply |
| 179 | (CechContraction.manifoldCechDelta U p (n + 1) c (Fin.cons i a)) ⟨x, hcons⟩, |
| 180 | CechContraction.manifoldCechDelta_apply] |
| 181 | |
| 182 | /-- The actual arbitrary-index positive-degree homotopy identity. -/ |
| 183 | theorem manifoldCech_locallyFinite_contraction_identity |
| 184 | (hsum : ∀ x, ∑ᶠ i, rho i x = 1) (p n : ℕ) |
| 185 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) : |
| 186 | CechContraction.manifoldCechDelta U p n (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c) + |
| 187 | manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p (n + 1) |
| 188 | (CechContraction.manifoldCechDelta U p (n + 1) c) = c := by |
| 189 | funext a |
| 190 | apply Open.SmoothOpenManifoldForm.ext |
| 191 | intro x |
| 192 | change CechContraction.manifoldCechDelta U p n |
| 193 | (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c) a x + |
| 194 | manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p (n + 1) |
| 195 | (CechContraction.manifoldCechDelta U p (n + 1) c) a x = c a x |
| 196 | rw [manifoldCechDelta_locallyFiniteContraction_apply, |
| 197 | manifoldCechLocallyFiniteContraction_delta_apply, |
| 198 | CechLocallyFiniteAlgebra.tupleCoboundary_finsumWeightedInsertion _ (hlf.point_finite (x : M)), |
| 199 | hsum, one_smul, Open.SmoothOpenManifoldForm.extension_apply] |
| 200 | |
| 201 | theorem manifoldCech_locallyFinite_contraction_linear_identity |
| 202 | (hsum : ∀ x, ∑ᶠ i, rho i x = 1) (p n : ℕ) : |
| 203 | (CechContraction.manifoldCechDelta U p n).comp (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n) + |
| 204 | (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p (n + 1)).comp |
| 205 | (CechContraction.manifoldCechDelta U p (n + 1)) = LinearMap.id := by |
| 206 | apply LinearMap.ext |
| 207 | intro c |
| 208 | exact manifoldCech_locallyFinite_contraction_identity U rho hrho hsupp hlf hsum p n c |
| 209 | |
| 210 | /-- Every closed positive-degree cochain has the constructed primitive. -/ |
| 211 | theorem manifoldCech_locallyFinite_closed_eq_delta |
| 212 | (hsum : ∀ x, ∑ᶠ i, rho i x = 1) (p n : ℕ) |
| 213 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) |
| 214 | (hc : CechContraction.manifoldCechDelta U p (n + 1) c = 0) : |
| 215 | CechContraction.manifoldCechDelta U p n (manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c) = c := by |
| 216 | have h := manifoldCech_locallyFinite_contraction_identity U rho hrho hsupp hlf hsum p n c |
| 217 | rw [hc, map_zero, add_zero] at h |
| 218 | exact h |
| 219 | |
| 220 | include rho hrho hsupp hlf in |
| 221 | theorem manifoldCech_locallyFinite_range_eq_ker |
| 222 | (hsum : ∀ x, ∑ᶠ i, rho i x = 1) (p n : ℕ) : |
| 223 | LinearMap.range (CechContraction.manifoldCechDelta (E := E) U p n) = |
| 224 | LinearMap.ker (CechContraction.manifoldCechDelta (E := E) U p (n + 1)) := by |
| 225 | apply le_antisymm |
| 226 | · rintro c ⟨b, rfl⟩ |
| 227 | exact CechContraction.manifoldCechDelta_squared U p n b |
| 228 | · intro c hc |
| 229 | exact ⟨manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p n c, |
| 230 | manifoldCech_locallyFinite_closed_eq_delta U rho hrho hsupp hlf hsum p n c hc⟩ |
| 231 | |
| 232 | variable [FiniteDimensional ℝ E] [T2Space M] [SigmaCompactSpace M] |
| 233 | |
| 234 | /-- Construct the actual positive-degree homotopy for any open cover using |
| 235 | mathlib's smooth locally finite partition of unity. -/ |
| 236 | theorem exists_manifoldCech_locallyFinite_contraction |
| 237 | (hcover : ∀ x, ∃ i, x ∈ U i) (p : ℕ) : |
| 238 | ∃ H : ∀ n : ℕ, CechContraction.ManifoldCechCochain (E := E) U p (n + 1) →ₗ[ℂ] |
| 239 | CechContraction.ManifoldCechCochain (E := E) U p n, |
| 240 | ∀ n, (CechContraction.manifoldCechDelta U p n).comp (H n) + |
| 241 | (H (n + 1)).comp (CechContraction.manifoldCechDelta U p (n + 1)) = LinearMap.id := by |
| 242 | obtain ⟨rho, hrho, hlf, hsupp, hsum⟩ := FinitePartition.exists_locallyFinite_complex_partition |
| 243 | (E := E) (fun i => (U i : Set M)) (fun i => (U i).isOpen) hcover |
| 244 | exact ⟨manifoldCechLocallyFiniteContraction U rho hrho hsupp hlf p, |
| 245 | manifoldCech_locallyFinite_contraction_linear_identity U rho hrho hsupp hlf hsum p⟩ |
| 246 | |
| 247 | theorem manifoldCech_positive_exact_of_arbitrary_cover |
| 248 | (hcover : ∀ x, ∃ i, x ∈ U i) (p n : ℕ) |
| 249 | (c : CechContraction.ManifoldCechCochain (E := E) U p (n + 1)) |
| 250 | (hc : CechContraction.manifoldCechDelta U p (n + 1) c = 0) : |
| 251 | ∃ b : CechContraction.ManifoldCechCochain (E := E) U p n, CechContraction.manifoldCechDelta U p n b = c := by |
| 252 | obtain ⟨H, hH⟩ := exists_manifoldCech_locallyFinite_contraction (E := E) U hcover p |
| 253 | refine ⟨H n c, ?_⟩ |
| 254 | have h := LinearMap.congr_fun (hH n) c |
| 255 | change CechContraction.manifoldCechDelta U p n (H n c) + H (n + 1) |
| 256 | (CechContraction.manifoldCechDelta U p (n + 1) c) = c at h |
| 257 | rw [hc, map_zero, add_zero] at h |
| 258 | exact h |
| 259 | |
| 260 | theorem manifoldCechDelta_range_eq_ker_of_arbitrary_cover |
| 261 | (hcover : ∀ x, ∃ i, x ∈ U i) (p n : ℕ) : |
| 262 | LinearMap.range (CechContraction.manifoldCechDelta (E := E) U p n) = |
| 263 | LinearMap.ker (CechContraction.manifoldCechDelta (E := E) U p (n + 1)) := by |
| 264 | apply le_antisymm |
| 265 | · rintro c ⟨b, rfl⟩ |
| 266 | exact CechContraction.manifoldCechDelta_squared U p n b |
| 267 | · intro c hc |
| 268 | exact manifoldCech_positive_exact_of_arbitrary_cover U hcover p n c hc |
| 269 | |
| 270 | theorem manifoldCech_functionExact_of_arbitrary_cover |
| 271 | (hcover : ∀ x, ∃ i, x ∈ U i) (p n : ℕ) : |
| 272 | Function.Exact (CechContraction.manifoldCechDelta (E := E) U p n) |
| 273 | (CechContraction.manifoldCechDelta (E := E) U p (n + 1)) := by |
| 274 | intro c |
| 275 | constructor |
| 276 | · exact manifoldCech_positive_exact_of_arbitrary_cover U hcover p n c |
| 277 | · rintro ⟨b, rfl⟩ |
| 278 | exact CechContraction.manifoldCechDelta_squared U p n b |
| 279 | |
| 280 | /-- Positive rows are exact in the categorical interface used by total-complex |
| 281 | comparison, with no finite-index assumption on the cover. -/ |
| 282 | theorem manifoldCech_exactAt_succ_of_arbitrary_cover |
| 283 | (hcover : ∀ x, ∃ i, x ∈ U i) (p n : ℕ) : |
| 284 | (CechContraction.manifoldCechComplex (E := E) U p).ExactAt (n + 1) := by |
| 285 | rw [HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) (by simp)] |
| 286 | apply (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mpr |
| 287 | change Function.Exact |
| 288 | ((CechContraction.manifoldCechComplex (E := E) U p).d n (n + 1)) |
| 289 | ((CechContraction.manifoldCechComplex (E := E) U p).d (n + 1) (n + 2)) |
| 290 | rw [CechContraction.manifoldCechComplex_d, CechContraction.manifoldCechComplex_d] |
| 291 | exact manifoldCech_functionExact_of_arbitrary_cover U hcover p n |
| 292 | |
| 293 | end |
| 294 | |
| 295 | end OAI.Analysis.DifferentialForms.Manifold.CechLocallyFinite |