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.AlgebraicGeometry.SheafCohomology.Cech.Comparison |
| 2 | |
| 3 | /-! # Comparison Naturality -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.ComparisonNaturality.TopCat.Sheaf |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open _root_.TopCat |
| 10 | open _root_.TopCat.Sheaf |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : TopCat.{u}} {ι : Type u} (U : ι → Opens X) |
| 17 | |
| 18 | noncomputable local instance e35NaturalitySections_additive : |
| 19 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).Additive := |
| 20 | (CategoryTheory.constantSheafΓAdj |
| 21 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).right_adjoint_additive |
| 22 | |
| 23 | private theorem cechPositiveVerticalHomologyIso_hom |
| 24 | (F : Sheaf AddCommGrpCat.{u} X) (hH : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U F) (n : ℕ) : |
| 25 | (Comparison.TopCat.Sheaf.cechPositiveVerticalHomologyIso U F hH n).hom = |
| 26 | HomologicalComplex.homologyMap (InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U F) (n + 1) := rfl |
| 27 | |
| 28 | private theorem cechPositiveHorizontalHomologyIso_hom |
| 29 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) (n : ℕ) : |
| 30 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).hom = |
| 31 | HomologicalComplex.homologyMap (HorizontalComparison.TopCat.Sheaf.cechResolutionHorizontalEdge U F) (n + 1) := rfl |
| 32 | |
| 33 | private theorem cechPositiveRightDerivedIso_hom |
| 34 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) (hH : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U F) (n : ℕ) : |
| 35 | (Comparison.TopCat.Sheaf.cechPositiveRightDerivedIso U F hU hH n).hom = |
| 36 | (Comparison.TopCat.Sheaf.cechPositiveVerticalHomologyIso U F hH n).hom ≫ ((Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).inv ≫ ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv) := rfl |
| 37 | |
| 38 | private theorem cechHomologySuccIsoOfAcyclicIntersections_hom |
| 39 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) (hH : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U F) (n : ℕ) : |
| 40 | (Comparison.TopCat.Sheaf.cechHomologySuccIsoOfAcyclicIntersections U F hU hH n).hom = |
| 41 | (Comparison.TopCat.Sheaf.cechPositiveRightDerivedIso U F hU hH n).hom ≫ (Compat.TopCat.Sheaf.H.addEquivRightDerivedGlobalSections F (n + 1)).symm.toAddCommGrpIso.hom := rfl |
| 42 | |
| 43 | private theorem positiveIsoSquare_inv_naturality |
| 44 | {A B C D : AddCommGrpCat.{u}} (e : A ≅ B) (e' : C ≅ D) |
| 45 | (f : A ⟶ C) (g : B ⟶ D) (h : f ≫ e'.hom = e.hom ≫ g) : |
| 46 | g ≫ e'.inv = e.inv ≫ f := by |
| 47 | rw [e'.comp_inv_eq, Category.assoc, h] |
| 48 | simp |
| 49 | |
| 50 | private theorem cechPositiveDerived_naturality |
| 51 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 52 | (phi : InjectiveResolution.Hom |
| 53 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)) |
| 54 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)) f) (n : ℕ) : |
| 55 | HomologicalComplex.homologyMap |
| 56 | (HorizontalComparison.TopCat.Sheaf.cechResolutionSectionsMap phi.hom) (n + 1) ≫ |
| 57 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)).isoRightDerivedObj |
| 58 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv = |
| 59 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).isoRightDerivedObj |
| 60 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv ≫ |
| 61 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived (n + 1)).map f := by |
| 62 | let hGlobalSectionsAdditive : (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).Additive := |
| 63 | (CategoryTheory.constantSheafΓAdj |
| 64 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).right_adjoint_additive |
| 65 | have h := @InjectiveResolution.isoRightDerivedObj_inv_naturality |
| 66 | _ _ _ _ _ _ _ _ _ f |
| 67 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)) |
| 68 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)) phi.hom |
| 69 | phi.ι_f_zero_comp_hom_f_zero (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) |
| 70 | hGlobalSectionsAdditive (n + 1) |
| 71 | exact h.symm |
| 72 | |
| 73 | private theorem cechPositiveRightDerivedIso_naturality |
| 74 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 75 | (hU : ⨆ i, U i = ⊤) |
| 76 | (hF : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U F) |
| 77 | (hG : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U G) (n : ℕ) : |
| 78 | HomologicalComplex.homologyMap |
| 79 | ((cechComplexFunctor U).map f.hom) (n + 1) ≫ |
| 80 | (Comparison.TopCat.Sheaf.cechPositiveRightDerivedIso U G hU hG n).hom = |
| 81 | (Comparison.TopCat.Sheaf.cechPositiveRightDerivedIso U F hU hF n).hom ≫ |
| 82 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived (n + 1)).map f := by |
| 83 | let IF := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F) |
| 84 | let IG := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G) |
| 85 | let phi : InjectiveResolution.Hom IF IG f := |
| 86 | { hom := InjectiveResolution.desc f IG IF |
| 87 | ι_f_zero_comp_hom_f_zero := by |
| 88 | change IF.ι.f 0 ≫ (InjectiveResolution.desc f IG IF).f 0 = |
| 89 | f ≫ IG.ι.f 0 |
| 90 | exact InjectiveResolution.desc_commutes_zero f IG IF } |
| 91 | let verticalF := InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U F |
| 92 | let verticalG := InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U G |
| 93 | let horizontalF := HorizontalComparison.TopCat.Sheaf.cechResolutionHorizontalEdge U F |
| 94 | let horizontalG := HorizontalComparison.TopCat.Sheaf.cechResolutionHorizontalEdge U G |
| 95 | let totalMap := InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionTotalMap U phi.hom |
| 96 | let sectionsMap := HorizontalComparison.TopCat.Sheaf.cechResolutionSectionsMap phi.hom |
| 97 | have hvertical : |
| 98 | HomologicalComplex.homologyMap ((cechComplexFunctor U).map f.hom) (n + 1) ≫ |
| 99 | (Comparison.TopCat.Sheaf.cechPositiveVerticalHomologyIso U G hG n).hom = |
| 100 | (Comparison.TopCat.Sheaf.cechPositiveVerticalHomologyIso U F hF n).hom ≫ |
| 101 | HomologicalComplex.homologyMap totalMap (n + 1) := by |
| 102 | rw [cechPositiveVerticalHomologyIso_hom, |
| 103 | cechPositiveVerticalHomologyIso_hom] |
| 104 | rw [← HomologicalComplex.homologyMap_comp, |
| 105 | ← HomologicalComplex.homologyMap_comp] |
| 106 | exact congrArg (fun g ↦ HomologicalComplex.homologyMap g (n + 1)) |
| 107 | (InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge_naturality U f phi).symm |
| 108 | have hhorizontal : |
| 109 | HomologicalComplex.homologyMap sectionsMap (n + 1) ≫ |
| 110 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U G hU n).hom = |
| 111 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).hom ≫ |
| 112 | HomologicalComplex.homologyMap totalMap (n + 1) := by |
| 113 | rw [cechPositiveHorizontalHomologyIso_hom, |
| 114 | cechPositiveHorizontalHomologyIso_hom] |
| 115 | rw [← HomologicalComplex.homologyMap_comp, |
| 116 | ← HomologicalComplex.homologyMap_comp] |
| 117 | exact congrArg (fun g ↦ HomologicalComplex.homologyMap g (n + 1)) |
| 118 | (HorizontalComparison.TopCat.Sheaf.cechResolutionHorizontalEdge_naturality U f phi) |
| 119 | have htotal := positiveIsoSquare_inv_naturality |
| 120 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n) |
| 121 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U G hU n) |
| 122 | (HomologicalComplex.homologyMap sectionsMap (n + 1)) |
| 123 | (HomologicalComplex.homologyMap totalMap (n + 1)) hhorizontal |
| 124 | have hderived : |
| 125 | HomologicalComplex.homologyMap sectionsMap (n + 1) ≫ |
| 126 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv = |
| 127 | (IF.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv ≫ |
| 128 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived (n + 1)).map f := by |
| 129 | exact cechPositiveDerived_naturality f phi n |
| 130 | have hmiddle : |
| 131 | HomologicalComplex.homologyMap totalMap (n + 1) ≫ |
| 132 | ((Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U G hU n).inv ≫ |
| 133 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv) = |
| 134 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).inv ≫ |
| 135 | ((IF.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv ≫ |
| 136 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived (n + 1)).map f) := by |
| 137 | calc |
| 138 | _ = (HomologicalComplex.homologyMap totalMap (n + 1) ≫ |
| 139 | (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U G hU n).inv) ≫ |
| 140 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv := |
| 141 | (Category.assoc _ _ _).symm |
| 142 | _ = ((Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).inv ≫ |
| 143 | HomologicalComplex.homologyMap sectionsMap (n + 1)) ≫ |
| 144 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv := by |
| 145 | rw [htotal] |
| 146 | _ = (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).inv ≫ |
| 147 | (HomologicalComplex.homologyMap sectionsMap (n + 1) ≫ |
| 148 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) (n + 1)).inv) := |
| 149 | Category.assoc _ _ _ |
| 150 | _ = _ := congrArg |
| 151 | (fun g ↦ (Comparison.TopCat.Sheaf.cechPositiveHorizontalHomologyIso U F hU n).inv ≫ g) |
| 152 | hderived |
| 153 | rw [cechPositiveRightDerivedIso_hom, |
| 154 | cechPositiveRightDerivedIso_hom] |
| 155 | simp only [← Category.assoc] |
| 156 | rw [hvertical] |
| 157 | simp only [Category.assoc] |
| 158 | rw [hmiddle] |
| 159 | rfl |
| 160 | |
| 161 | /-- The positive-degree Čech comparison is natural in the coefficient sheaf. -/ |
| 162 | theorem cechHomologySuccIsoOfAcyclicIntersections_naturality |
| 163 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 164 | (hU : ⨆ i, U i = ⊤) |
| 165 | (hF : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U F) |
| 166 | (hG : VerticalComparison.TopCat.Sheaf.CechIntersectionsAcyclic U G) (n : ℕ) : |
| 167 | HomologicalComplex.homologyMap |
| 168 | ((cechComplexFunctor U).map f.hom) (n + 1) ≫ |
| 169 | (Comparison.TopCat.Sheaf.cechHomologySuccIsoOfAcyclicIntersections U G hU hG n).hom = |
| 170 | (Comparison.TopCat.Sheaf.cechHomologySuccIsoOfAcyclicIntersections U F hU hF n).hom ≫ |
| 171 | (CategoryTheory.Sheaf.functorH |
| 172 | (Opens.grothendieckTopology X) (n + 1)).map f := by |
| 173 | rw [cechHomologySuccIsoOfAcyclicIntersections_hom, |
| 174 | cechHomologySuccIsoOfAcyclicIntersections_hom] |
| 175 | simp only [← Category.assoc] |
| 176 | rw [cechPositiveRightDerivedIso_naturality |
| 177 | U f hU hF hG n] |
| 178 | simp only [Category.assoc] |
| 179 | congr 1 |
| 180 | ext x |
| 181 | exact Compat.TopCat.Sheaf.H.addEquivRightDerivedGlobalSections_symm_naturality f (n + 1) x |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.ComparisonNaturality.TopCat.Sheaf |