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 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechInjectiveBicomplex.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Homology.HomologicalBicomplex |
| 8 | import Mathlib.CategoryTheory.Abelian.Injective.Resolution |
| 9 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.FlasqueOne |
| 10 | |
| 11 | /-! # Injective Bicomplex -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.InjectiveBicomplex.TopCat.Sheaf |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.TopCat |
| 18 | open _root_.TopCat.Sheaf |
| 19 | |
| 20 | /-! |
| 21 | # The Cech bicomplex of an injective resolution |
| 22 | |
| 23 | Apply mathlib's native Cech complex degreewise to an injective resolution. The resulting |
| 24 | bicomplex has exact rows in degree one. This is the horizontal input for the degree-one |
| 25 | total-complex comparison. |
| 26 | -/ |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | variable {X : TopCat.{u}} |
| 33 | variable {ι : Type u} (U : ι → Opens X) |
| 34 | |
| 35 | private theorem piMap_zero {β : Type u} (F G : β → AddCommGrpCat.{u}) : |
| 36 | Limits.Pi.map (fun i ↦ (0 : F i ⟶ G i)) = 0 := by |
| 37 | refine Pi.hom_ext _ _ fun i ↦ ?_ |
| 38 | rw [Pi.map_π, comp_zero, zero_comp] |
| 39 | |
| 40 | /-- The native Cech-complex functor preserves zero morphisms. -/ |
| 41 | noncomputable instance cechComplexFunctor_preservesZeroMorphisms : |
| 42 | (cechComplexFunctor (A := AddCommGrpCat.{u}) U).PreservesZeroMorphisms := by |
| 43 | constructor |
| 44 | intro F G |
| 45 | apply HomologicalComplex.Hom.ext |
| 46 | funext p |
| 47 | change Limits.Pi.map (fun _ ↦ 0) = 0 |
| 48 | apply piMap_zero |
| 49 | |
| 50 | /-- The native Cech-complex functor restricted from presheaves to sheaves. -/ |
| 51 | noncomputable def cechSheafComplexFunctor : |
| 52 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⥤ |
| 53 | CochainComplex AddCommGrpCat.{u} ℕ := |
| 54 | CategoryTheory.sheafToPresheaf |
| 55 | (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 56 | cechComplexFunctor U |
| 57 | |
| 58 | noncomputable instance cechSheafComplexFunctor_preservesZeroMorphisms : |
| 59 | (cechSheafComplexFunctor U).PreservesZeroMorphisms := by |
| 60 | let : (CategoryTheory.sheafToPresheaf |
| 61 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).PreservesZeroMorphisms := |
| 62 | Functor.FullyFaithful.preservesZeroMorphisms _ |
| 63 | (CategoryTheory.fullyFaithfulSheafToPresheaf _ _) |
| 64 | change (CategoryTheory.sheafToPresheaf |
| 65 | (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 66 | cechComplexFunctor U).PreservesZeroMorphisms |
| 67 | infer_instance |
| 68 | |
| 69 | /-- Applying the native Cech complex degreewise to a cochain complex of sheaves gives |
| 70 | a Cech bicomplex. Its outer index is the original cochain degree and its inner index is |
| 71 | the Cech degree. -/ |
| 72 | noncomputable def cechBicomplex |
| 73 | (K : CochainComplex |
| 74 | (CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) ℕ) : |
| 75 | HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ) := |
| 76 | ((cechSheafComplexFunctor U).mapHomologicalComplex (.up ℕ)).obj K |
| 77 | |
| 78 | /-- The Cech bicomplex associated to the chosen injective resolution of a sheaf. -/ |
| 79 | noncomputable def cechInjectiveResolutionBicomplex |
| 80 | (F : Sheaf AddCommGrpCat.{u} X) : |
| 81 | HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ) := |
| 82 | cechBicomplex U (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex |
| 83 | |
| 84 | /-- A cochain map between the chosen injective resolutions induces a map of |
| 85 | their Cech bicomplexes. -/ |
| 86 | noncomputable def cechInjectiveResolutionBicomplexMap |
| 87 | {F G : Sheaf AddCommGrpCat.{u} X} |
| 88 | (phi : (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex ⟶ |
| 89 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)).cocomplex) : |
| 90 | cechInjectiveResolutionBicomplex U F ⟶ |
| 91 | cechInjectiveResolutionBicomplex U G := |
| 92 | ((cechSheafComplexFunctor U).mapHomologicalComplex (.up ℕ)).map phi |
| 93 | |
| 94 | @[simp] |
| 95 | theorem cechInjectiveResolutionBicomplexMap_f_f |
| 96 | {F G : Sheaf AddCommGrpCat.{u} X} |
| 97 | (phi : (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex ⟶ |
| 98 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)).cocomplex) (q p : ℕ) : |
| 99 | ((cechInjectiveResolutionBicomplexMap U phi).f q).f p = |
| 100 | ((cechComplexFunctor U).map (phi.f q).hom).f p := |
| 101 | rfl |
| 102 | |
| 103 | @[simp] |
| 104 | theorem cechInjectiveResolutionBicomplex_X |
| 105 | (F : Sheaf AddCommGrpCat.{u} X) (q : ℕ) : |
| 106 | (cechInjectiveResolutionBicomplex U F).X q = |
| 107 | (cechComplexFunctor U).obj |
| 108 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex.X q).obj := |
| 109 | rfl |
| 110 | |
| 111 | @[simp] |
| 112 | theorem cechInjectiveResolutionBicomplex_d_f |
| 113 | (F : Sheaf AddCommGrpCat.{u} X) (q q' p : ℕ) : |
| 114 | ((cechInjectiveResolutionBicomplex U F).d q q').f p = |
| 115 | ((cechComplexFunctor U).map |
| 116 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex.d q q').hom).f p := |
| 117 | rfl |
| 118 | |
| 119 | /-- Every row of the injective-resolution Cech bicomplex is exact in degree one for |
| 120 | an actual open cover. -/ |
| 121 | theorem cechInjectiveResolutionBicomplex_row_exactAt_one |
| 122 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) (q : ℕ) : |
| 123 | ((cechInjectiveResolutionBicomplex U F).X q).ExactAt 1 := by |
| 124 | let I := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F) |
| 125 | let : IsFlasque (I.cocomplex.X q) := |
| 126 | @Compat.TopCat.Sheaf.IsFlasque.of_injective X (I.cocomplex.X q) (I.injective q) |
| 127 | change ((cechComplexFunctor U).obj (I.cocomplex.X q).obj).ExactAt 1 |
| 128 | exact FlasqueOne.TopCat.Sheaf.cechComplex_exactAt_one_of_isFlasque (I.cocomplex.X q) U hU |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.InjectiveBicomplex.TopCat.Sheaf |