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.ManifoldSheaf |
| 2 | import OAI.Analysis.DifferentialForms.Manifold.OpenDeRham |
| 3 | import Mathlib.Algebra.Homology.Additive |
| 4 | |
| 5 | /-! # Sheaf De Rham -/ |
| 6 | |
| 7 | namespace OAI.Analysis.DifferentialForms.Manifold.SheafDeRham |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | The de Rham complex of sheaves of genuine smooth manifold forms. Its sections |
| 13 | on an open set recover the open-domain de Rham complex, and its global sections |
| 14 | recover the already constructed global manifold de Rham complex. No resolution |
| 15 | property or comparison with singular cohomology is assumed. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 19 | open scoped _root_.Manifold ContDiff |
| 20 | |
| 21 | universe u v w |
| 22 | |
| 23 | section SectionsFunctor |
| 24 | |
| 25 | variable {X : Type v} [TopologicalSpace X] |
| 26 | |
| 27 | /-- Taking sections of a complex-module sheaf on an actual open set. -/ |
| 28 | def complexModuleSheafSections (U : Opens X) : |
| 29 | TopCat.Sheaf (ModuleCat.{w} ℂ) (TopCat.of X) ⥤ ModuleCat.{w} ℂ where |
| 30 | obj F := F.presheaf.obj (op U) |
| 31 | map f := f.hom.app (op U) |
| 32 | map_id _ := rfl |
| 33 | map_comp _ _ := rfl |
| 34 | |
| 35 | instance complexModuleSheafSections_preservesZeroMorphisms (U : Opens X) : |
| 36 | (complexModuleSheafSections U : |
| 37 | TopCat.Sheaf (ModuleCat.{w} ℂ) (TopCat.of X) ⥤ ModuleCat.{w} ℂ).PreservesZeroMorphisms where |
| 38 | map_zero _ _ := rfl |
| 39 | |
| 40 | /-- Sheaf restriction is a natural transformation between section functors. -/ |
| 41 | def complexModuleSheafRestriction {U V : Opens X} (h : V ≤ U) : |
| 42 | (complexModuleSheafSections U : |
| 43 | TopCat.Sheaf (ModuleCat.{w} ℂ) (TopCat.of X) ⥤ ModuleCat.{w} ℂ) ⟶ |
| 44 | complexModuleSheafSections V where |
| 45 | app F := F.presheaf.map (homOfLE h).op |
| 46 | naturality _ _ f := (f.hom.naturality (homOfLE h).op).symm |
| 47 | |
| 48 | end SectionsFunctor |
| 49 | |
| 50 | variable (E : Type u) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 51 | (M : Type v) [TopologicalSpace M] [ChartedSpace E M] |
| 52 | [IsManifold 𝓘(ℝ, E) ∞ M] |
| 53 | |
| 54 | /-- The actual cochain complex of sheaves of smooth manifold forms. -/ |
| 55 | def manifoldDeRhamSheafComplex : |
| 56 | CochainComplex (TopCat.Sheaf (ModuleCat.{max u v} ℂ) (TopCat.of M)) ℕ := |
| 57 | CochainComplex.of (ManifoldSheaf.manifoldFormSheaf E M) (ManifoldSheaf.manifoldFormSheafD E M) |
| 58 | (ManifoldSheaf.manifoldFormSheafD_squared E M) |
| 59 | |
| 60 | @[simp] |
| 61 | theorem manifoldDeRhamSheafComplex_X (n : ℕ) : |
| 62 | (manifoldDeRhamSheafComplex E M).X n = ManifoldSheaf.manifoldFormSheaf E M n := rfl |
| 63 | |
| 64 | @[simp] |
| 65 | theorem manifoldDeRhamSheafComplex_d (n : ℕ) : |
| 66 | (manifoldDeRhamSheafComplex E M).d n (n + 1) = ManifoldSheaf.manifoldFormSheafD E M n := |
| 67 | CochainComplex.of_d (ManifoldSheaf.manifoldFormSheaf E M) (ManifoldSheaf.manifoldFormSheafD E M) n |
| 68 | |
| 69 | variable {M} |
| 70 | |
| 71 | /-- Apply the sections functor to the genuine manifold de Rham sheaf complex. -/ |
| 72 | def manifoldDeRhamSheafSectionsComplex (U : Opens M) : |
| 73 | CochainComplex (ModuleCat.{max u v} ℂ) ℕ := |
| 74 | ((complexModuleSheafSections U).mapHomologicalComplex (ComplexShape.up ℕ)).obj |
| 75 | (manifoldDeRhamSheafComplex E M) |
| 76 | |
| 77 | @[simp] |
| 78 | theorem manifoldDeRhamSheafSectionsComplex_X (U : Opens M) (n : ℕ) : |
| 79 | (manifoldDeRhamSheafSectionsComplex E U).X n = |
| 80 | ModuleCat.of ℂ (Open.SmoothOpenManifoldForm E U n) := rfl |
| 81 | |
| 82 | @[simp] |
| 83 | theorem manifoldDeRhamSheafSectionsComplex_d (U : Opens M) (n : ℕ) : |
| 84 | (manifoldDeRhamSheafSectionsComplex E U).d n (n + 1) = |
| 85 | ModuleCat.ofHom (Open.SmoothOpenManifoldForm.d (E := E) (U := U) (n := n)) := by |
| 86 | change (complexModuleSheafSections U).map |
| 87 | ((manifoldDeRhamSheafComplex E M).d n (n + 1)) = _ |
| 88 | rw [manifoldDeRhamSheafComplex_d] |
| 89 | rfl |
| 90 | |
| 91 | /-- Open sections of the sheaf complex are exactly the open-domain complex. -/ |
| 92 | theorem manifoldDeRhamSheafSectionsComplex_eq (U : Opens M) : |
| 93 | manifoldDeRhamSheafSectionsComplex E U = OpenDeRham.openManifoldDeRhamComplex E U := by |
| 94 | refine HomologicalComplex.ext rfl ?_ |
| 95 | intro i j hij |
| 96 | obtain rfl := (show i + 1 = j from hij) |
| 97 | rw [manifoldDeRhamSheafSectionsComplex_d, OpenDeRham.openManifoldDeRhamComplex_d] |
| 98 | rfl |
| 99 | |
| 100 | /-- The open-section comparison is the identity on each genuine form space. -/ |
| 101 | def manifoldDeRhamSheafSectionsIso (U : Opens M) : |
| 102 | manifoldDeRhamSheafSectionsComplex E U ≅ OpenDeRham.openManifoldDeRhamComplex E U := |
| 103 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by |
| 104 | intro i j hij |
| 105 | obtain rfl := (show i + 1 = j from hij) |
| 106 | rw [manifoldDeRhamSheafSectionsComplex_d, OpenDeRham.openManifoldDeRhamComplex_d] |
| 107 | rfl) |
| 108 | |
| 109 | /-- Restriction of the sheaf complex after taking sections. -/ |
| 110 | def manifoldDeRhamSheafRestriction {U V : Opens M} (h : V ≤ U) : |
| 111 | manifoldDeRhamSheafSectionsComplex E U ⟶ manifoldDeRhamSheafSectionsComplex E V := |
| 112 | ((complexModuleSheafRestriction h).mapHomologicalComplex (ComplexShape.up ℕ)).app |
| 113 | (manifoldDeRhamSheafComplex E M) |
| 114 | |
| 115 | /-- The identification with open-domain forms preserves actual restriction. -/ |
| 116 | theorem manifoldDeRhamSheafSectionsIso_restrict {U V : Opens M} (h : V ≤ U) : |
| 117 | (manifoldDeRhamSheafSectionsIso E U).hom ≫ OpenDeRham.openManifoldDeRhamRestrict E h = |
| 118 | manifoldDeRhamSheafRestriction E h ≫ (manifoldDeRhamSheafSectionsIso E V).hom := by |
| 119 | apply HomologicalComplex.Hom.ext |
| 120 | funext n |
| 121 | apply ModuleCat.hom_ext |
| 122 | apply LinearMap.ext |
| 123 | intro form |
| 124 | rfl |
| 125 | |
| 126 | variable (M) |
| 127 | |
| 128 | /-- The global sections of the sheaf complex are the global manifold de Rham complex. -/ |
| 129 | def manifoldDeRhamGlobalSectionsIso : |
| 130 | manifoldDeRhamSheafSectionsComplex E (⊤ : Opens M) ≅ ManifoldDeRham.manifoldDeRhamComplex E M := |
| 131 | HomologicalComplex.Hom.isoOfComponents (fun n => ManifoldSheaf.manifoldFormGlobalSectionsIso E M n) (by |
| 132 | intro i j hij |
| 133 | obtain rfl := (show i + 1 = j from hij) |
| 134 | rw [manifoldDeRhamSheafSectionsComplex_d, ManifoldDeRham.manifoldDeRhamComplex_d] |
| 135 | apply ModuleCat.hom_ext |
| 136 | apply LinearMap.ext |
| 137 | intro form |
| 138 | exact Open.SmoothOpenManifoldForm.toGlobal_d form) |
| 139 | |
| 140 | @[simp] |
| 141 | theorem manifoldDeRhamGlobalSectionsIso_hom_f_apply (n : ℕ) |
| 142 | (form : Open.SmoothOpenManifoldForm E (⊤ : Opens M) n) : |
| 143 | ((manifoldDeRhamGlobalSectionsIso E M).hom.f n) form = |
| 144 | Open.SmoothOpenManifoldForm.toGlobal form := rfl |
| 145 | |
| 146 | @[simp] |
| 147 | theorem manifoldDeRhamGlobalSectionsIso_inv_f_apply (n : ℕ) |
| 148 | (form : Manifold.Algebra.SmoothManifoldForm E M n) : |
| 149 | ((manifoldDeRhamGlobalSectionsIso E M).inv.f n) form = |
| 150 | Manifold.Algebra.SmoothManifoldForm.onOpen ⊤ form := rfl |
| 151 | |
| 152 | /-- Cohomology of the global section complex is genuine global de Rham cohomology. -/ |
| 153 | def manifoldDeRhamGlobalSectionsCohomologyIso (n : ℕ) : |
| 154 | (manifoldDeRhamSheafSectionsComplex E (⊤ : Opens M)).homology n ≅ |
| 155 | ManifoldDeRham.manifoldDeRhamCohomology E M n := |
| 156 | HomologicalComplex.homologyMapIso (manifoldDeRhamGlobalSectionsIso E M) n |
| 157 | |
| 158 | /-- Global forms and forms on the top open set give canonically isomorphic complexes. -/ |
| 159 | def manifoldDeRhamTopIso : |
| 160 | ManifoldDeRham.manifoldDeRhamComplex E M ≅ OpenDeRham.openManifoldDeRhamComplex E (⊤ : Opens M) := |
| 161 | (manifoldDeRhamGlobalSectionsIso E M).symm ≪≫ |
| 162 | manifoldDeRhamSheafSectionsIso E (⊤ : Opens M) |
| 163 | |
| 164 | @[simp] |
| 165 | theorem manifoldDeRhamTopIso_hom : |
| 166 | (manifoldDeRhamTopIso E M).hom = OpenDeRham.manifoldDeRhamOnOpen E (⊤ : Opens M) := by |
| 167 | apply HomologicalComplex.Hom.ext |
| 168 | funext n |
| 169 | apply ModuleCat.hom_ext |
| 170 | apply LinearMap.ext |
| 171 | intro form |
| 172 | rfl |
| 173 | |
| 174 | /-- The global and top-open de Rham cohomologies agree through their actual forms. -/ |
| 175 | def manifoldDeRhamCohomologyTopIso (n : ℕ) : |
| 176 | ManifoldDeRham.manifoldDeRhamCohomology E M n ≅ OpenDeRham.openManifoldDeRhamCohomology E (⊤ : Opens M) n := |
| 177 | HomologicalComplex.homologyMapIso (manifoldDeRhamTopIso E M) n |
| 178 | |
| 179 | /-- The global-section identification respects restriction to every open domain. -/ |
| 180 | theorem manifoldDeRhamGlobalSectionsIso_restrict (U : Opens M) : |
| 181 | (manifoldDeRhamGlobalSectionsIso E M).hom ≫ OpenDeRham.manifoldDeRhamOnOpen E U = |
| 182 | manifoldDeRhamSheafRestriction E (show U ≤ ⊤ from le_top) ≫ |
| 183 | (manifoldDeRhamSheafSectionsIso E U).hom := by |
| 184 | apply HomologicalComplex.Hom.ext |
| 185 | funext n |
| 186 | apply ModuleCat.hom_ext |
| 187 | apply LinearMap.ext |
| 188 | intro form |
| 189 | apply Open.SmoothOpenManifoldForm.ext |
| 190 | intro x |
| 191 | exact Open.SmoothOpenManifoldForm.toGlobal_apply form x |
| 192 | |
| 193 | end |
| 194 | |
| 195 | end OAI.Analysis.DifferentialForms.Manifold.SheafDeRham |