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.Comparison.Betti.Derived.ShiftCoherence |
| 2 | |
| 3 | /-! # Functor Composition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Derived.FunctorComposition |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Composition of exact derived functors, normalized on the actual localization. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Functor _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe w₁ w₂ w₃ u₁ u₂ u₃ v₁ v₂ v₃ |
| 14 | |
| 15 | variable {C : Type u₁} [Category.{v₁} C] [Abelian C] [HasDerivedCategory.{w₁} C] |
| 16 | {D : Type u₂} [Category.{v₂} D] [Abelian D] [HasDerivedCategory.{w₂} D] |
| 17 | {E : Type u₃} [Category.{v₃} E] [Abelian E] [HasDerivedCategory.{w₃} E] |
| 18 | (F : C ⥤ D) (G : D ⥤ E) [F.Additive] [G.Additive] |
| 19 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 20 | [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 21 | |
| 22 | def cochainFunctorCompIso : |
| 23 | F.mapHomologicalComplex (ComplexShape.up ℤ) ⋙ G.mapHomologicalComplex (ComplexShape.up ℤ) ≅ |
| 24 | (F ⋙ G).mapHomologicalComplex (ComplexShape.up ℤ) := |
| 25 | Functor.mapHomologicalComplexCompIso (Iso.refl (F ⋙ G)) (ComplexShape.up ℤ) |
| 26 | |
| 27 | instance cochainFunctorCompIsoCommShift : NatTrans.CommShift (cochainFunctorCompIso F G).hom ℤ where |
| 28 | shift_comm n := by |
| 29 | apply NatTrans.ext |
| 30 | funext K |
| 31 | change ((F.mapHomologicalComplex (ComplexShape.up ℤ) ⋙ |
| 32 | G.mapHomologicalComplex (ComplexShape.up ℤ)).commShiftIso n).hom.app K ≫ |
| 33 | ((cochainFunctorCompIso F G).hom.app K)⟦n⟧' = |
| 34 | (cochainFunctorCompIso F G).hom.app (K⟦n⟧) ≫ |
| 35 | (((F ⋙ G).mapHomologicalComplex (ComplexShape.up ℤ)).commShiftIso n).hom.app K |
| 36 | erw [Functor.commShiftIso_comp_hom_app] |
| 37 | apply HomologicalComplex.Hom.ext |
| 38 | funext i |
| 39 | change (G.map (𝟙 (F.obj (K.X (i + n)))) ≫ 𝟙 _) ≫ 𝟙 _ = 𝟙 _ ≫ 𝟙 _ |
| 40 | simp only [G.map_id, Category.id_comp] |
| 41 | |
| 42 | def derivedCompositionBeforeLocalization : |
| 43 | DerivedCategory.Q ⋙ F.mapDerivedCategory ⋙ G.mapDerivedCategory ≅ |
| 44 | DerivedCategory.Q ⋙ (F ⋙ G).mapDerivedCategory := |
| 45 | (Functor.associator DerivedCategory.Q F.mapDerivedCategory G.mapDerivedCategory).symm ≪≫ |
| 46 | isoWhiskerRight F.mapDerivedCategoryFactors G.mapDerivedCategory ≪≫ |
| 47 | Functor.associator (F.mapHomologicalComplex (ComplexShape.up ℤ)) DerivedCategory.Q G.mapDerivedCategory ≪≫ |
| 48 | isoWhiskerLeft (F.mapHomologicalComplex (ComplexShape.up ℤ)) G.mapDerivedCategoryFactors ≪≫ |
| 49 | (Functor.associator (F.mapHomologicalComplex (ComplexShape.up ℤ)) |
| 50 | (G.mapHomologicalComplex (ComplexShape.up ℤ)) DerivedCategory.Q).symm ≪≫ |
| 51 | isoWhiskerRight (cochainFunctorCompIso F G) DerivedCategory.Q ≪≫ |
| 52 | (F ⋙ G).mapDerivedCategoryFactors.symm |
| 53 | |
| 54 | instance derivedCompositionBeforeLocalizationCommShift : |
| 55 | NatTrans.CommShift (derivedCompositionBeforeLocalization F G).hom ℤ := by |
| 56 | change NatTrans.CommShift |
| 57 | ((Functor.associator DerivedCategory.Q F.mapDerivedCategory G.mapDerivedCategory).inv ≫ |
| 58 | Functor.whiskerRight F.mapDerivedCategoryFactors.hom G.mapDerivedCategory ≫ |
| 59 | (Functor.associator (F.mapHomologicalComplex (ComplexShape.up ℤ)) DerivedCategory.Q |
| 60 | G.mapDerivedCategory).hom ≫ |
| 61 | Functor.whiskerLeft (F.mapHomologicalComplex (ComplexShape.up ℤ)) G.mapDerivedCategoryFactors.hom ≫ |
| 62 | (Functor.associator (F.mapHomologicalComplex (ComplexShape.up ℤ)) |
| 63 | (G.mapHomologicalComplex (ComplexShape.up ℤ)) DerivedCategory.Q).inv ≫ |
| 64 | Functor.whiskerRight (cochainFunctorCompIso F G).hom DerivedCategory.Q ≫ |
| 65 | (F ⋙ G).mapDerivedCategoryFactors.inv) ℤ |
| 66 | infer_instance |
| 67 | |
| 68 | def derivedFunctorCompIso : |
| 69 | F.mapDerivedCategory ⋙ G.mapDerivedCategory ≅ (F ⋙ G).mapDerivedCategory := |
| 70 | (Localization.fullyFaithfulWhiskeringLeft |
| 71 | (DerivedCategory.Q : CochainComplex C ℤ ⥤ DerivedCategory C) |
| 72 | (HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) (DerivedCategory E)).preimageIso |
| 73 | (derivedCompositionBeforeLocalization F G) |
| 74 | |
| 75 | theorem derivedFunctorCompIso_normalization : |
| 76 | Functor.whiskerLeft DerivedCategory.Q (derivedFunctorCompIso F G).hom = |
| 77 | (derivedCompositionBeforeLocalization F G).hom := |
| 78 | (Localization.fullyFaithfulWhiskeringLeft |
| 79 | (DerivedCategory.Q : CochainComplex C ℤ ⥤ DerivedCategory C) |
| 80 | (HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) (DerivedCategory E)).map_preimage |
| 81 | (derivedCompositionBeforeLocalization F G).hom |
| 82 | |
| 83 | theorem derivedFunctorCompIso_hom_app (K : CochainComplex C ℤ) : |
| 84 | (derivedFunctorCompIso F G).hom.app (DerivedCategory.Q.obj K) = |
| 85 | (derivedCompositionBeforeLocalization F G).hom.app K := |
| 86 | congr_app (derivedFunctorCompIso_normalization F G) K |
| 87 | |
| 88 | theorem derivedFunctorCompIso_hom_app_explicit (K : CochainComplex C ℤ) : |
| 89 | (derivedFunctorCompIso F G).hom.app (DerivedCategory.Q.obj K) = |
| 90 | G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K) ≫ |
| 91 | G.mapDerivedCategoryFactors.hom.app ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) ≫ |
| 92 | (F ⋙ G).mapDerivedCategoryFactors.inv.app K := by |
| 93 | rw [derivedFunctorCompIso_hom_app] |
| 94 | let Q : CochainComplex E ℤ ⥤ DerivedCategory E := DerivedCategory.Q |
| 95 | change 𝟙 _ ≫ G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K) ≫ 𝟙 _ ≫ |
| 96 | G.mapDerivedCategoryFactors.hom.app ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) ≫ 𝟙 _ ≫ |
| 97 | Q.map (𝟙 (((F ⋙ G).mapHomologicalComplex (ComplexShape.up ℤ)).obj K)) ≫ |
| 98 | (F ⋙ G).mapDerivedCategoryFactors.inv.app K = _ |
| 99 | simp only [Category.id_comp] |
| 100 | erw [Q.map_id, Category.id_comp] |
| 101 | |
| 102 | theorem derivedFunctorCompIso_inv_app_explicit (K : CochainComplex C ℤ) : |
| 103 | (derivedFunctorCompIso F G).inv.app (DerivedCategory.Q.obj K) = |
| 104 | (F ⋙ G).mapDerivedCategoryFactors.hom.app K ≫ |
| 105 | G.mapDerivedCategoryFactors.inv.app ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) ≫ |
| 106 | G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.inv.app K) := by |
| 107 | let a := G.mapDerivedCategory.mapIso (F.mapDerivedCategoryFactors.app K) |
| 108 | let b := G.mapDerivedCategoryFactors.app ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) |
| 109 | let c := (F ⋙ G).mapDerivedCategoryFactors.app K |
| 110 | let e := (derivedFunctorCompIso F G).app (DerivedCategory.Q.obj K) |
| 111 | have h : e.hom = a.hom ≫ b.hom ≫ c.inv := derivedFunctorCompIso_hom_app_explicit F G K |
| 112 | change e.inv = c.hom ≫ b.inv ≫ a.inv |
| 113 | have he : e = a ≪≫ b ≪≫ c.symm := Iso.ext h |
| 114 | exact (congrArg Iso.inv he).trans (Category.assoc c.hom b.inv a.inv) |
| 115 | |
| 116 | instance derivedFunctorCompIsoCommShift : NatTrans.CommShift (derivedFunctorCompIso F G).hom ℤ := by |
| 117 | have : NatTrans.CommShift |
| 118 | (Functor.whiskerLeft DerivedCategory.Q (derivedFunctorCompIso F G).hom) ℤ := by |
| 119 | rw [derivedFunctorCompIso_normalization] |
| 120 | infer_instance |
| 121 | exact ShiftCoherence.commShift_of_localization |
| 122 | (DerivedCategory.Q : CochainComplex C ℤ ⥤ DerivedCategory C) |
| 123 | (HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) (derivedFunctorCompIso F G).hom |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.Comparison.Betti.Derived.FunctorComposition |