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.AlgebraicTopology.Sheaf.CohomologySection |
| 2 | import Mathlib.CategoryTheory.Sites.Abelian |
| 3 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 4 | |
| 5 | /-! # Section Cohomology Sheaf Naturality -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.SectionCohomologySheafNaturality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Naturality of the actual section-complex class in its cohomology sheaf -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 14 | |
| 15 | variable (Y : TopCat.{0}) {K L : CochainComplex (Sheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})) ℤ} |
| 16 | (f : K ⟶ L) (n : ℤ) |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true in |
| 19 | set_option backward.isDefEq.respectTransparency false in |
| 20 | set_option backward.isDefEq.respectTransparency.types false in |
| 21 | theorem sectionCohomologySheafificationIso_naturality : |
| 22 | (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).map (homologyMap (((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f) n) ≫ |
| 23 | (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso Y L n).hom = |
| 24 | (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso Y K n).hom ≫ homologyMap f n := by |
| 25 | let e := NatIso.mapHomologicalComplex |
| 26 | (asIso (sheafificationAdjunction (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).counit) |
| 27 | ℤᵘᵖ |
| 28 | unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso |
| 29 | simp only [Iso.trans_hom, Iso.symm_hom, Category.assoc] |
| 30 | let mf := ((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f |
| 31 | let PK := ((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).obj K |
| 32 | let PL := ((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).obj L |
| 33 | have hn : (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).map (homologyMap mf n) ≫ ((PL.sc n).mapHomologyIso (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0}))).inv = |
| 34 | ((PK.sc n).mapHomologyIso (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0}))).inv ≫ |
| 35 | homologyMap (((presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map mf) n := by |
| 36 | simpa only [homologyMap] using! |
| 37 | ShortComplex.mapHomologyIso_inv_naturality |
| 38 | ((shortComplexFunctor _ ℤᵘᵖ n).map mf) (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})) |
| 39 | have he : homologyMap (((presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map mf) n ≫ |
| 40 | homologyMap (e.hom.app L) n = |
| 41 | homologyMap (e.hom.app K) n ≫ homologyMap f n := by |
| 42 | simpa only [homologyMap_comp] using! congrArg (fun g => homologyMap g n) |
| 43 | (e.hom.naturality f) |
| 44 | calc |
| 45 | _ = ((PK.sc n).mapHomologyIso (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0}))).inv ≫ |
| 46 | homologyMap (((presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map mf) n ≫ |
| 47 | homologyMap (e.hom.app L) n := by |
| 48 | simpa only [Category.assoc] using! congrArg |
| 49 | (fun g => g ≫ homologyMap (e.hom.app L) n) hn |
| 50 | _ = _ := by |
| 51 | simpa only [Category.assoc] using! |
| 52 | (congrArg (fun g => ((PK.sc n).mapHomologyIso (presheafToSheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0}))).inv ≫ g) he) |
| 53 | |
| 54 | set_option backward.defeqAttrib.useBackward true in |
| 55 | set_option backward.isDefEq.respectTransparency false in |
| 56 | set_option backward.isDefEq.respectTransparency.types false in |
| 57 | theorem sectionCohomologyPresheafToSheaf_naturality : |
| 58 | homologyMap (((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f) n ≫ |
| 59 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y L n = |
| 60 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n ≫ (homologyMap f n).hom := by |
| 61 | unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf |
| 62 | have hu := toSheafify_naturality (Opens.grothendieckTopology Y) |
| 63 | (homologyMap (((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f) n) |
| 64 | have hn := congrArg (fun g => (sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).map g) |
| 65 | (sectionCohomologySheafificationIso_naturality Y f n) |
| 66 | calc |
| 67 | _ = toSheafify (Opens.grothendieckTopology Y) _ ≫ |
| 68 | sheafifyMap (Opens.grothendieckTopology Y) |
| 69 | (homologyMap (((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f) n) ≫ |
| 70 | (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso Y L n).hom.hom := by |
| 71 | simpa only [Category.assoc] using! congrArg |
| 72 | (fun g => g ≫ |
| 73 | (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso Y L n).hom.hom) hu |
| 74 | _ = _ := by |
| 75 | simpa only [CategoryTheory.Functor.map_comp, Category.assoc] using! |
| 76 | (congrArg (fun g => toSheafify (Opens.grothendieckTopology Y) _ ≫ g) hn) |
| 77 | |
| 78 | set_option backward.defeqAttrib.useBackward true in |
| 79 | set_option backward.isDefEq.respectTransparency false in |
| 80 | set_option backward.isDefEq.respectTransparency.types false in |
| 81 | theorem sectionCohomologyToSheafSection_naturality (V : Opens Y) : |
| 82 | homologyMap (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex ℤᵘᵖ).map f) n ≫ |
| 83 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection Y L n V = |
| 84 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection Y K n V ≫ (homologyMap f n).hom.app (op V) := by |
| 85 | unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection |
| 86 | rw [← Category.assoc] |
| 87 | have he := ShortComplex.mapHomologyIso_hom_naturality |
| 88 | ((shortComplexFunctor _ ℤᵘᵖ n).map (((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f)) |
| 89 | ((evaluation (Opens Y)ᵒᵖ (AddCommGrpCat.{0})).obj (op V)) |
| 90 | have he' : homologyMap (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex ℤᵘᵖ).map f) n ≫ |
| 91 | (AlgebraicTopology.Sheaf.CohomologyStalkVanishing.TopCat.sectionCohomologyPresheafOnOpenIso Y L n V).hom = |
| 92 | (AlgebraicTopology.Sheaf.CohomologyStalkVanishing.TopCat.sectionCohomologyPresheafOnOpenIso Y K n V).hom ≫ |
| 93 | (homologyMap (((sheafToPresheaf (Opens.grothendieckTopology Y) (AddCommGrpCat.{0})).mapHomologicalComplex ℤᵘᵖ).map f) n).app (op V) := by |
| 94 | simpa only [homologyMap] using! he |
| 95 | rw [he', Category.assoc] |
| 96 | have hn := congrArg (fun g => g.app (op V)) |
| 97 | (sectionCohomologyPresheafToSheaf_naturality Y f n) |
| 98 | simpa only [NatTrans.comp_app, Category.assoc] using! |
| 99 | (congrArg (fun g => (AlgebraicTopology.Sheaf.CohomologyStalkVanishing.TopCat.sectionCohomologyPresheafOnOpenIso Y K n V).hom ≫ g) hn) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.ComplexMultiplication.SectionCohomologySheafNaturality |