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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicTopology.Support.DerivedSectionsShift |
| 7 | import OAI.Algebra.Homology.FunctorPlusShiftNaturality |
| 8 | |
| 9 | /-! # Derived Sections Naturality -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicTopology.Support.DerivedSectionsNaturality.TopCat.Sheaf |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.TopCat |
| 16 | open _root_.TopCat.Sheaf |
| 17 | |
| 18 | /-! |
| 19 | # Naturality of derived sections with closed support |
| 20 | |
| 21 | Support enlargement comes from the kernel inclusion, and is then derived by |
| 22 | the universal property. In particular, forgetting support is the map to whole-space support. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.CategoryTheory Limits _root_.TopologicalSpace Opposite |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable (X : TopCat.{u}) |
| 30 | |
| 31 | /-- The support-forgetting inclusion is the kernel monomorphism. -/ |
| 32 | instance sheafSectionsSupportedOutsideInclusion_mono (U : Opens X) |
| 33 | (F : Sheaf AddCommGrpCat.{u} X) : |
| 34 | Mono ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F) := |
| 35 | inferInstanceAs (Mono (kernel.ι ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F))) |
| 36 | |
| 37 | /-- The ambient open used when restricting to `U` and pushing forward again. -/ |
| 38 | abbrev openRestrictionImage (U W : Opens X) : Opens X := |
| 39 | U.isOpenEmbedding.isOpenMap.functor.obj ((Opens.map U.inclusion').obj W) |
| 40 | |
| 41 | theorem openRestrictionImage_mono {U V : Opens X} (h : V ≤ U) (W : Opens X) : |
| 42 | openRestrictionImage X V W ≤ openRestrictionImage X U W := by |
| 43 | rintro x ⟨y, hy, rfl⟩ |
| 44 | exact ⟨⟨y.1, h y.2⟩, hy, rfl⟩ |
| 45 | |
| 46 | /-- Let `V ⊆ U` be open subsets of a topological space `X`. This natural map from direct image of |
| 47 | restriction to `U` to direct image of restriction to `V` acts on a sheaf `F` and open `W` by |
| 48 | `F(W ∩ U) → F(W ∩ V)`. -/ |
| 49 | def openRestrictionPushforwardMap {U V : Opens X} (h : V ≤ U) : |
| 50 | DerivedSections.TopCat.Sheaf.openRestrictionPushforward X U ⟶ DerivedSections.TopCat.Sheaf.openRestrictionPushforward X V where |
| 51 | app F := ⟨{ |
| 52 | app W := F.obj.map (homOfLE (openRestrictionImage_mono X h W.unop)).op |
| 53 | naturality W W' f := by |
| 54 | change F.obj.map _ ≫ F.obj.map _ = F.obj.map _ ≫ F.obj.map _ |
| 55 | rw [← F.obj.map_comp, ← F.obj.map_comp] |
| 56 | congr 1 }⟩ |
| 57 | naturality F G f := by |
| 58 | apply CategoryTheory.Sheaf.hom_ext_iff.mpr |
| 59 | ext W : 2 |
| 60 | exact (f.hom.naturality _).symm |
| 61 | |
| 62 | /-- Further restriction agrees with direct restriction from the ambient sheaf. -/ |
| 63 | @[reassoc (attr := simp)] |
| 64 | theorem toOpenRestrictionPushforward_comp {U V : Opens X} (h : V ≤ U) : |
| 65 | DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U ≫ openRestrictionPushforwardMap X h = |
| 66 | DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X V := by |
| 67 | ext F : 2 |
| 68 | apply CategoryTheory.Sheaf.hom_ext_iff.mpr |
| 69 | ext W : 2 |
| 70 | change F.obj.map _ ≫ F.obj.map _ = F.obj.map _ |
| 71 | rw [← F.obj.map_comp] |
| 72 | congr 1 |
| 73 | |
| 74 | /-- The canonical inclusion of sections supported outside `U` into those supported |
| 75 | outside the smaller open `V`. -/ |
| 76 | def sheafSectionsSupportedOutsideMap {U V : Opens X} (h : V ≤ U) : |
| 77 | DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U ⟶ DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X V where |
| 78 | app F := DerivedSectionsOn.TopCat.Sheaf.liftSheafSectionsSupportedOutside X V |
| 79 | ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F) (by |
| 80 | rw [← NatTrans.congr_app (toOpenRestrictionPushforward_comp X h) F] |
| 81 | simp only [NatTrans.comp_app, ← Category.assoc, |
| 82 | DerivedSectionsOn.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion_restriction, zero_comp]) |
| 83 | naturality F G f := by |
| 84 | apply (cancel_mono ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X V).app G)).1 |
| 85 | simp only [Category.assoc, DerivedSectionsOn.TopCat.Sheaf.liftSheafSectionsSupportedOutside_inclusion] |
| 86 | rw [(DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X V).naturality f, |
| 87 | ← Category.assoc, DerivedSectionsOn.TopCat.Sheaf.liftSheafSectionsSupportedOutside_inclusion] |
| 88 | exact (DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).naturality f |
| 89 | |
| 90 | /-- Support enlargement preserves the inclusion into the coefficient sheaf. -/ |
| 91 | @[reassoc (attr := simp)] |
| 92 | theorem sheafSectionsSupportedOutsideMap_inclusion {U V : Opens X} (h : V ≤ U) : |
| 93 | sheafSectionsSupportedOutsideMap X h ≫ DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X V = |
| 94 | DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U := by |
| 95 | ext F |
| 96 | exact DerivedSectionsOn.TopCat.Sheaf.liftSheafSectionsSupportedOutside_inclusion X V _ _ |
| 97 | |
| 98 | @[simp] |
| 99 | theorem sheafSectionsSupportedOutsideMap_refl (U : Opens X) : |
| 100 | sheafSectionsSupportedOutsideMap X (le_refl U) = 𝟙 (DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U) := by |
| 101 | ext F |
| 102 | apply (cancel_mono ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X U).app F)).1 |
| 103 | simp [sheafSectionsSupportedOutsideMap] |
| 104 | |
| 105 | @[reassoc (attr := simp)] |
| 106 | theorem sheafSectionsSupportedOutsideMap_comp {U V W : Opens X} |
| 107 | (h : V ≤ U) (h' : W ≤ V) : |
| 108 | sheafSectionsSupportedOutsideMap X h ≫ sheafSectionsSupportedOutsideMap X h' = |
| 109 | sheafSectionsSupportedOutsideMap X (h'.trans h) := by |
| 110 | ext F |
| 111 | apply (cancel_mono ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutsideInclusion X W).app F)).1 |
| 112 | simp [sheafSectionsSupportedOutsideMap] |
| 113 | |
| 114 | /-- The coefficient-level support-enlargement map for closed subsets. -/ |
| 115 | def sheafSectionsWithClosedSupportMap {Z W : Closeds X} (h : Z ≤ W) : |
| 116 | DerivedSectionsOn.TopCat.Sheaf.sheafSectionsWithClosedSupport X Z ⟶ DerivedSectionsOn.TopCat.Sheaf.sheafSectionsWithClosedSupport X W := |
| 117 | sheafSectionsSupportedOutsideMap X (show W.compl ≤ Z.compl from fun _ hx hz ↦ hx (h hz)) |
| 118 | |
| 119 | /-- Let `Z ⊆ W` be closed subsets of a topological space `X`. This natural transformation includes |
| 120 | the group of global sections of a sheaf of abelian groups supported in `Z` into the group of |
| 121 | those supported in `W`. -/ |
| 122 | def closedSupportSectionsMap {Z W : Closeds X} (h : Z ≤ W) : |
| 123 | DerivedSectionsOn.TopCat.Sheaf.closedSupportSections X Z ⟶ DerivedSectionsOn.TopCat.Sheaf.closedSupportSections X W := |
| 124 | Functor.whiskerRight (sheafSectionsWithClosedSupportMap X h) |
| 125 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat ⋙ |
| 126 | (evaluation _ AddCommGrpCat).obj (op ⊤)) |
| 127 | |
| 128 | @[simp] |
| 129 | theorem closedSupportSectionsMap_refl (Z : Closeds X) : |
| 130 | DerivedSectionsNaturality.TopCat.Sheaf.closedSupportSectionsMap X (le_refl Z) = 𝟙 (DerivedSectionsOn.TopCat.Sheaf.closedSupportSections X Z) := by |
| 131 | simp [DerivedSectionsNaturality.TopCat.Sheaf.closedSupportSectionsMap, sheafSectionsWithClosedSupportMap] |
| 132 | rfl |
| 133 | |
| 134 | set_option backward.isDefEq.respectTransparency false in |
| 135 | @[reassoc (attr := simp)] |
| 136 | theorem closedSupportSectionsMap_comp {Z W T : Closeds X} (h : Z ≤ W) (h' : W ≤ T) : |
| 137 | DerivedSectionsNaturality.TopCat.Sheaf.closedSupportSectionsMap X h ≫ DerivedSectionsNaturality.TopCat.Sheaf.closedSupportSectionsMap X h' = |
| 138 | DerivedSectionsNaturality.TopCat.Sheaf.closedSupportSectionsMap X (h.trans h') := by |
| 139 | simp [DerivedSectionsNaturality.TopCat.Sheaf.closedSupportSectionsMap, sheafSectionsWithClosedSupportMap, |
| 140 | ← Functor.whiskerRight_comp] |
| 141 | |
| 142 | local instance derivedSupportNaturalitySheafDerivedCategory : |
| 143 | HasDerivedCategory (Sheaf AddCommGrpCat.{u} X) := HasDerivedCategory.standard _ |
| 144 | |
| 145 | local instance derivedSupportNaturalityGroupDerivedCategory : |
| 146 | HasDerivedCategory AddCommGrpCat.{u} := HasDerivedCategory.standard _ |
| 147 | |
| 148 | /-- Let `Z ⊆ W` be closed subsets of a topological space `X`. This natural map `RΓ_Z(X,-) → |
| 149 | RΓ_W(X,-)` on bounded-below sheaf complexes is obtained by applying inclusion of supported |
| 150 | global sections to an injective resolution. -/ |
| 151 | def derivedClosedSupportSectionsMap {Z W : Closeds X} (h : Z ≤ W) : |
| 152 | DerivedSectionsOn.TopCat.Sheaf.derivedClosedSupportSections X Z ⟶ DerivedSectionsOn.TopCat.Sheaf.derivedClosedSupportSections X W := |
| 153 | (Algebra.Homology.DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus (closedSupportSectionsMap X h)) |
| 154 | |
| 155 | /-- The support-enlargement maps commute with the coherent shifts. -/ |
| 156 | instance derivedClosedSupportSectionsMap_commShift {Z W : Closeds X} (h : Z ≤ W) : |
| 157 | NatTrans.CommShift (derivedClosedSupportSectionsMap X h) ℤ := |
| 158 | inferInstanceAs (NatTrans.CommShift (Algebra.Homology.DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus (closedSupportSectionsMap X h)) ℤ) |
| 159 | |
| 160 | @[simp] |
| 161 | theorem derivedClosedSupportSectionsMap_refl (Z : Closeds X) : |
| 162 | derivedClosedSupportSectionsMap X (le_refl Z) = |
| 163 | 𝟙 (DerivedSectionsOn.TopCat.Sheaf.derivedClosedSupportSections X Z) := by |
| 164 | simp [derivedClosedSupportSectionsMap, DerivedSectionsOn.TopCat.Sheaf.derivedClosedSupportSections] |
| 165 | |
| 166 | set_option backward.isDefEq.respectTransparency false in |
| 167 | @[reassoc (attr := simp)] |
| 168 | theorem derivedClosedSupportSectionsMap_comp {Z W T : Closeds X} |
| 169 | (h : Z ≤ W) (h' : W ≤ T) : |
| 170 | derivedClosedSupportSectionsMap X h ≫ derivedClosedSupportSectionsMap X h' = |
| 171 | derivedClosedSupportSectionsMap X (h.trans h') := by |
| 172 | simp [derivedClosedSupportSectionsMap, ← Algebra.Homology.DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus_comp] |
| 173 | |
| 174 | /-- The derived-unit square identifies the support map on injective resolutions. -/ |
| 175 | @[reassoc (attr := simp)] |
| 176 | theorem derivedClosedSupportSectionsMap_unit_app {Z W : Closeds X} (h : Z ≤ W) |
| 177 | (K : HomotopyCategory.Plus (Sheaf AddCommGrpCat.{u} X)) : |
| 178 | (DerivedSectionsOn.TopCat.Sheaf.derivedClosedSupportSectionsUnit X Z).app K ≫ |
| 179 | (derivedClosedSupportSectionsMap X h).app (DerivedCategory.Plus.Qh.obj K) = |
| 180 | DerivedCategory.Plus.Qh.map |
| 181 | ((Algebra.Homology.DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.mapHomotopyCategoryPlus (closedSupportSectionsMap X h)).app K) ≫ |
| 182 | (DerivedSectionsOn.TopCat.Sheaf.derivedClosedSupportSectionsUnit X W).app K := |
| 183 | (Algebra.Homology.DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus_unit_app (closedSupportSectionsMap X h)) K |
| 184 | |
| 185 | end |
| 186 | |
| 187 | end OAI.AlgebraicTopology.Support.DerivedSectionsNaturality.TopCat.Sheaf |