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.CompositeMap |
| 2 | |
| 3 | /-! # Single Composition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Derived.SingleComposition |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Composition of the canonical coefficient maps on single complexes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | section Cochains |
| 14 | |
| 15 | variable {A B C : Type*} [Category* A] [Category* B] [Category* C] |
| 16 | [Abelian A] [Abelian B] [Abelian C] |
| 17 | |
| 18 | theorem cochainSingleMap_comp (F : A ⥤ B) (G : B ⥤ C) (H : A ⥤ C) |
| 19 | [F.Additive] [G.Additive] [H.Additive] (e : F ⋙ G ≅ H) |
| 20 | {a : A} {b : B} {c : C} (f : F.obj a ⟶ b) (g : G.obj b ⟶ c) (h : H.obj a ⟶ c) |
| 21 | (hs : G.map f ≫ g = e.hom.app a ≫ h) : |
| 22 | (G.mapHomologicalComplex (ComplexShape.up ℤ)).map (SingleFunctorSquare.Derived.cochainSingleMap F f) ≫ SingleFunctorSquare.Derived.cochainSingleMap G g = |
| 23 | (NatTrans.mapHomologicalComplex e.hom (ComplexShape.up ℤ)).app |
| 24 | ((CochainComplex.singleFunctor A 0).obj a) ≫ SingleFunctorSquare.Derived.cochainSingleMap H h := by |
| 25 | apply HomologicalComplex.to_single_hom_ext |
| 26 | change G.map ((SingleFunctorSquare.Derived.cochainSingleMap F f).f 0) ≫ (SingleFunctorSquare.Derived.cochainSingleMap G g).f 0 = |
| 27 | e.hom.app (((CochainComplex.singleFunctor A 0).obj a).X 0) ≫ (SingleFunctorSquare.Derived.cochainSingleMap H h).f 0 |
| 28 | rw [SingleFunctorSquare.Derived.cochainSingleMap_f_zero, SingleFunctorSquare.Derived.cochainSingleMap_f_zero, SingleFunctorSquare.Derived.cochainSingleMap_f_zero] |
| 29 | let sa := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 a |
| 30 | let sb := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 b |
| 31 | let sc := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 c |
| 32 | change G.map (F.map sa.hom ≫ f ≫ sb.inv) ≫ (G.map sb.hom ≫ g ≫ sc.inv) = |
| 33 | e.hom.app _ ≫ H.map sa.hom ≫ h ≫ sc.inv |
| 34 | simp only [G.map_comp, Category.assoc, Iso.map_inv_hom_id_assoc] |
| 35 | rw [← Category.assoc (G.map f) g, hs] |
| 36 | have hn : G.map (F.map sa.hom) ≫ e.hom.app a = e.hom.app _ ≫ H.map sa.hom := |
| 37 | e.hom.naturality sa.hom |
| 38 | simp only [Category.assoc] |
| 39 | rw [← Category.assoc (G.map (F.map sa.hom)) (e.hom.app a), hn] |
| 40 | simp only [Category.assoc] |
| 41 | |
| 42 | end Cochains |
| 43 | |
| 44 | universe w₁ w₂ w₃ u₁ u₂ u₃ v₁ v₂ v₃ |
| 45 | |
| 46 | variable {A : Type u₁} [Category.{v₁} A] [Abelian A] [HasDerivedCategory.{w₁} A] |
| 47 | {B : Type u₂} [Category.{v₂} B] [Abelian B] [HasDerivedCategory.{w₂} B] |
| 48 | {C : Type u₃} [Category.{v₃} C] [Abelian C] [HasDerivedCategory.{w₃} C] |
| 49 | (F : A ⥤ B) (G : B ⥤ C) (H : A ⥤ C) |
| 50 | [F.Additive] [G.Additive] [H.Additive] |
| 51 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 52 | [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 53 | [PreservesFiniteLimits H] [PreservesFiniteColimits H] |
| 54 | |
| 55 | theorem derivedSingleMap_comp (e : F ⋙ G ≅ H) |
| 56 | {a : A} {b : B} {c : C} (f : F.obj a ⟶ b) (g : G.obj b ⟶ c) (h : H.obj a ⟶ c) |
| 57 | (hs : G.map f ≫ g = e.hom.app a ≫ h) : |
| 58 | G.mapDerivedCategory.map (SingleSquare.derivedSingleMap F f) ≫ SingleSquare.derivedSingleMap G g = |
| 59 | (CompositeMap.compositeIso F G H e).hom.app ((DerivedCategory.singleFunctor A 0).obj a) ≫ SingleSquare.derivedSingleMap H h := by |
| 60 | have hq := CompositeMap.derivedComplexMap_comp F G H e |
| 61 | (SingleFunctorSquare.Derived.cochainSingleMap F f) (SingleFunctorSquare.Derived.cochainSingleMap G g) (SingleFunctorSquare.Derived.cochainSingleMap H h) |
| 62 | (cochainSingleMap_comp F G H e f g h hs) |
| 63 | erw [SingleFunctorSquare.Derived.derivedComplexMap_single, SingleFunctorSquare.Derived.derivedComplexMap_single, SingleFunctorSquare.Derived.derivedComplexMap_single] at hq |
| 64 | exact hq |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.Comparison.Betti.Derived.SingleComposition |