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 Mathlib.Basic.Complex.Basic |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Colimits |
| 3 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 4 | import Mathlib.CategoryTheory.Abelian.Exact |
| 5 | import Mathlib.Algebra.Homology.Functor |
| 6 | import Mathlib.Topology.Sheaves.Abelian |
| 7 | import Mathlib.Topology.Sheaves.Flasque |
| 8 | import Mathlib.CategoryTheory.Sites.LeftExact |
| 9 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 10 | |
| 11 | /-! # Sheaf Forget -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Complex.SheafForget |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | /-! Literal forgetting of complex scalars preserves the actual sheaf homology constructions. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | set_option backward.defeqAttrib.useBackward true |
| 24 | |
| 25 | abbrev complexModuleForget : ModuleCat.{0} ℂ ⥤ AddCommGrpCat.{0} := |
| 26 | forget₂ (ModuleCat.{0} ℂ) AddCommGrpCat.{0} |
| 27 | |
| 28 | def complexSheafForget (X : TopCat.{0}) : |
| 29 | TopCat.Sheaf (ModuleCat.{0} ℂ) X ⥤ TopCat.Sheaf AddCommGrpCat.{0} X := |
| 30 | sheafCompose (Opens.grothendieckTopology X) complexModuleForget |
| 31 | |
| 32 | instance complexSheafForget_additive (X : TopCat.{0}) : (complexSheafForget X).Additive where |
| 33 | map_add := rfl |
| 34 | |
| 35 | instance complexSheafForget_faithful (X : TopCat.{0}) : (complexSheafForget X).Faithful := |
| 36 | inferInstanceAs (sheafCompose (Opens.grothendieckTopology X) complexModuleForget).Faithful |
| 37 | |
| 38 | instance complexSheafForget_preservesFiniteLimits (X : TopCat.{0}) : |
| 39 | PreservesFiniteLimits (complexSheafForget X) where |
| 40 | preservesFiniteLimits J _ _ := by |
| 41 | have : PreservesLimitsOfShape J |
| 42 | (complexSheafForget X ⋙ TopCat.Sheaf.forget AddCommGrpCat.{0} X) := by |
| 43 | change PreservesLimitsOfShape J |
| 44 | (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ) ⋙ |
| 45 | (Functor.whiskeringRight (Opens X)ᵒᵖ (ModuleCat.{0} ℂ) AddCommGrpCat.{0}).obj complexModuleForget) |
| 46 | infer_instance |
| 47 | exact preservesLimitsOfShape_of_reflects_of_preserves |
| 48 | (complexSheafForget X) (TopCat.Sheaf.forget AddCommGrpCat.{0} X) |
| 49 | |
| 50 | instance complexSheafForget_preservesEpimorphisms (X : TopCat.{0}) : |
| 51 | (complexSheafForget X).PreservesEpimorphisms where |
| 52 | preserves {F G} f hf := by |
| 53 | apply (TopCat.Sheaf.isLocallySurjective_iff_epi ((complexSheafForget X).map f)).mp |
| 54 | have h := (TopCat.Sheaf.isLocallySurjective_iff_epi f).mpr hf |
| 55 | constructor |
| 56 | intro U s |
| 57 | exact h.imageSieve_mem s |
| 58 | |
| 59 | instance complexSheafForget_preservesHomology (X : TopCat.{0}) : |
| 60 | (complexSheafForget X).PreservesHomology := |
| 61 | Functor.preservesHomology_of_preservesEpis_and_kernels (complexSheafForget X) |
| 62 | |
| 63 | instance complexSheafForget_isFlasque {X : TopCat.{0}} |
| 64 | (F : TopCat.Sheaf (ModuleCat.{0} ℂ) X) [TopCat.Sheaf.IsFlasque F] : |
| 65 | TopCat.Sheaf.IsFlasque ((complexSheafForget X).obj F) where |
| 66 | epi i := by |
| 67 | change Epi (complexModuleForget.map (F.obj.map i)) |
| 68 | infer_instance |
| 69 | |
| 70 | def complexSheafForgetComplex {X : TopCat.{0}} |
| 71 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X) ℕ) : |
| 72 | CochainComplex (TopCat.Sheaf AddCommGrpCat.{0} X) ℕ := |
| 73 | ((complexSheafForget X).mapHomologicalComplex (.up ℕ)).obj K |
| 74 | |
| 75 | def complexSheafForgetComplexMap {X : TopCat.{0}} |
| 76 | {K L : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X) ℕ} (f : K ⟶ L) : |
| 77 | complexSheafForgetComplex K ⟶ complexSheafForgetComplex L := |
| 78 | ((complexSheafForget X).mapHomologicalComplex (.up ℕ)).map f |
| 79 | |
| 80 | def complexSheafForgetHomologyIso {X : TopCat.{0}} |
| 81 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X) ℕ) (n : ℕ) : |
| 82 | (complexSheafForgetComplex K).homology n ≅ (complexSheafForget X).obj (K.homology n) := |
| 83 | (K.sc n).mapHomologyIso (complexSheafForget X) |
| 84 | |
| 85 | theorem complexSheafForgetHomologyIso_naturality {X : TopCat.{0}} |
| 86 | {K L : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X) ℕ} (f : K ⟶ L) (n : ℕ) : |
| 87 | HomologicalComplex.homologyMap (complexSheafForgetComplexMap f) n ≫ |
| 88 | (complexSheafForgetHomologyIso L n).hom = (complexSheafForgetHomologyIso K n).hom ≫ |
| 89 | (complexSheafForget X).map (HomologicalComplex.homologyMap f n) := |
| 90 | ShortComplex.mapHomologyIso_hom_naturality |
| 91 | ((HomologicalComplex.shortComplexFunctor _ _ n).map f) (complexSheafForget X) |
| 92 | |
| 93 | theorem complexSheafForgetComplex_exactAt_iff {X : TopCat.{0}} |
| 94 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X) ℕ) (n : ℕ) : |
| 95 | (complexSheafForgetComplex K).ExactAt n ↔ K.ExactAt n := |
| 96 | (K.sc n).exact_map_iff_of_faithful (complexSheafForget X) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Complex.SheafForget |