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.SingleSquare |
| 2 | |
| 3 | /-! # Composite Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Derived.CompositeMap |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A canonical comparison with a composite exact functor preserves actual cochain maps. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe w₁ w₂ w₃ u₁ u₂ u₃ v₁ v₂ v₃ |
| 14 | |
| 15 | variable {A : Type u₁} [Category.{v₁} A] [Abelian A] [HasDerivedCategory.{w₁} A] |
| 16 | {B : Type u₂} [Category.{v₂} B] [Abelian B] [HasDerivedCategory.{w₂} B] |
| 17 | {C : Type u₃} [Category.{v₃} C] [Abelian C] [HasDerivedCategory.{w₃} C] |
| 18 | (F : A ⥤ B) (G : B ⥤ C) (H : A ⥤ C) |
| 19 | [F.Additive] [G.Additive] [H.Additive] |
| 20 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 21 | [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 22 | [PreservesFiniteLimits H] [PreservesFiniteColimits H] |
| 23 | |
| 24 | def compositeIso (e : F ⋙ G ≅ H) : |
| 25 | F.mapDerivedCategory ⋙ G.mapDerivedCategory ≅ H.mapDerivedCategory := |
| 26 | FunctorComposition.derivedFunctorCompIso F G ≪≫ FunctorIso.functorIso e |
| 27 | |
| 28 | instance compositeIsoCommShift (e : F ⋙ G ≅ H) : NatTrans.CommShift (compositeIso F G H e).hom ℤ := by |
| 29 | change NatTrans.CommShift ((FunctorComposition.derivedFunctorCompIso F G).hom ≫ (FunctorIso.functorIso e).hom) ℤ |
| 30 | infer_instance |
| 31 | |
| 32 | theorem compositeIso_hom_app (e : F ⋙ G ≅ H) (K : CochainComplex A ℤ) : |
| 33 | (compositeIso F G H e).hom.app (DerivedCategory.Q.obj K) = |
| 34 | G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K) ≫ |
| 35 | G.mapDerivedCategoryFactors.hom.app ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) ≫ |
| 36 | DerivedCategory.Q.map ((NatTrans.mapHomologicalComplex e.hom (ComplexShape.up ℤ)).app K) ≫ |
| 37 | H.mapDerivedCategoryFactors.inv.app K := by |
| 38 | change (FunctorComposition.derivedFunctorCompIso F G).hom.app (DerivedCategory.Q.obj K) ≫ |
| 39 | (FunctorIso.functorIso e).hom.app (DerivedCategory.Q.obj K) = _ |
| 40 | erw [FunctorComposition.derivedFunctorCompIso_hom_app_explicit, FunctorIso.functorIso_hom_app] |
| 41 | simp only [Category.assoc] |
| 42 | simp only [Iso.inv_hom_id_app_assoc] |
| 43 | |
| 44 | theorem derivedComplexMap_comp (e : F ⋙ G ≅ H) |
| 45 | {K : CochainComplex A ℤ} {L : CochainComplex B ℤ} {M : CochainComplex C ℤ} |
| 46 | (f : (F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K ⟶ L) |
| 47 | (g : (G.mapHomologicalComplex (ComplexShape.up ℤ)).obj L ⟶ M) |
| 48 | (h : (H.mapHomologicalComplex (ComplexShape.up ℤ)).obj K ⟶ M) |
| 49 | (hs : (G.mapHomologicalComplex (ComplexShape.up ℤ)).map f ≫ g = |
| 50 | (NatTrans.mapHomologicalComplex e.hom (ComplexShape.up ℤ)).app K ≫ h) : |
| 51 | G.mapDerivedCategory.map (ResolutionNaturality.Ext.derivedComplexMap F f) ≫ ResolutionNaturality.Ext.derivedComplexMap G g = |
| 52 | (compositeIso F G H e).hom.app (DerivedCategory.Q.obj K) ≫ ResolutionNaturality.Ext.derivedComplexMap H h := by |
| 53 | let Q : CochainComplex C ℤ ⥤ DerivedCategory C := DerivedCategory.Q |
| 54 | let a := G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K) |
| 55 | let b := G.mapDerivedCategoryFactors.app ((F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) |
| 56 | let c := G.mapDerivedCategoryFactors.app L |
| 57 | let d := H.mapDerivedCategoryFactors.app K |
| 58 | let x := G.mapDerivedCategory.map (DerivedCategory.Q.map f) |
| 59 | let y := Q.map ((G.mapHomologicalComplex (ComplexShape.up ℤ)).map f) |
| 60 | let z := Q.map ((NatTrans.mapHomologicalComplex e.hom (ComplexShape.up ℤ)).app K) |
| 61 | have hn : x ≫ c.hom = b.hom ≫ y := G.mapDerivedCategoryFactors_hom_naturality f |
| 62 | have hq : y ≫ Q.map g = z ≫ Q.map h := |
| 63 | (Q.map_comp _ _).symm.trans ((Q.congr_map hs).trans (Q.map_comp _ _)) |
| 64 | erw [compositeIso_hom_app] |
| 65 | change G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K ≫ DerivedCategory.Q.map f) ≫ |
| 66 | (c.hom ≫ Q.map g) = (a ≫ b.hom ≫ z ≫ d.inv) ≫ (d.hom ≫ Q.map h) |
| 67 | erw [G.mapDerivedCategory.map_comp] |
| 68 | change (a ≫ x) ≫ (c.hom ≫ Q.map g) = (a ≫ b.hom ≫ z ≫ d.inv) ≫ (d.hom ≫ Q.map h) |
| 69 | simp only [Category.assoc] |
| 70 | rw [← Category.assoc x c.hom, hn] |
| 71 | simp only [Category.assoc] |
| 72 | rw [hq] |
| 73 | erw [d.inv_hom_id_assoc] |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.Comparison.Betti.Derived.CompositeMap |