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.Algebra.Category.ModuleCat.Sheaf.Abelian |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Presheaf.Colimits |
| 3 | import Mathlib.Algebra.Category.Grp.FilteredColimits |
| 4 | import Mathlib.Algebra.Category.Grp.Abelian |
| 5 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 6 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Zero |
| 7 | import Mathlib.CategoryTheory.Limits.Shapes.NormalMono.Equalizers |
| 8 | import Mathlib.CategoryTheory.Sites.Abelian |
| 9 | import Mathlib.CategoryTheory.Abelian.Basic |
| 10 | |
| 11 | /-! # Module Hom Of -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleHomOf |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | section |
| 18 | |
| 19 | /-! Forgetting an actual module sheaf to its abelian sheaf preserves |
| 20 | finite colimits. This supplies genuine local lifts through epimorphisms. -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 23 | |
| 24 | theorem preservesColimit_after_reflector |
| 25 | {C : Type*} {D : Type*} {E : Type*} {J : Type*} |
| 26 | [Category* C] [Category* D] [Category* E] [Category* J] |
| 27 | {F : C ⥤ D} {G : D ⥤ C} (adj : F ⊣ G) [IsIso adj.counit] |
| 28 | (H : D ⥤ E) (K : J ⥤ D) [HasColimit (K ⋙ G)] |
| 29 | [PreservesColimit (K ⋙ G) F] [PreservesColimit (K ⋙ G) (F ⋙ H)] : |
| 30 | PreservesColimit K H := by |
| 31 | have hF := isColimitOfPreserves F (colimit.isColimit (K ⋙ G)) |
| 32 | have hFH := isColimitOfPreserves (F ⋙ H) (colimit.isColimit (K ⋙ G)) |
| 33 | let : PreservesColimit ((K ⋙ G) ⋙ F) H := |
| 34 | preservesColimit_of_preserves_colimit_cocone hF hFH |
| 35 | exact preservesColimit_of_iso_diagram H |
| 36 | (Functor.associator K G F ≪≫ Functor.isoWhiskerLeft K (asIso adj.counit) ≪≫ Functor.rightUnitor K) |
| 37 | |
| 38 | theorem moduleSheaf_toSheaf_preservesFiniteColimits (X : Scheme.{0}) : |
| 39 | PreservesFiniteColimits (SheafOfModules.toSheaf.{0} X.ringCatSheaf) := by |
| 40 | let F := PresheafOfModules.sheafification.{0} (𝟙 X.ringCatSheaf.obj) |
| 41 | let H := SheafOfModules.toSheaf.{0} X.ringCatSheaf |
| 42 | let adj := PresheafOfModules.sheafificationAdjunction.{0} (𝟙 X.ringCatSheaf.obj) |
| 43 | have : PreservesFiniteColimits (F ⋙ H) := |
| 44 | comp_preservesFiniteColimits (PresheafOfModules.toPresheaf X.ringCatSheaf.obj) |
| 45 | (presheafToSheaf (_root_.Opens.grothendieckTopology X) AddCommGrpCat.{0}) |
| 46 | constructor |
| 47 | intro J _ _ |
| 48 | constructor |
| 49 | intro K |
| 50 | exact preservesColimit_after_reflector adj H K |
| 51 | |
| 52 | theorem moduleSheaf_toSheaf_epi {X : Scheme.{0}} {M N : X.Modules} (f : M ⟶ N) [hf : Epi f] : |
| 53 | Epi ((SheafOfModules.toSheaf.{0} X.ringCatSheaf).map f) := by |
| 54 | let : PreservesFiniteColimits (SheafOfModules.toSheaf.{0} X.ringCatSheaf) := |
| 55 | moduleSheaf_toSheaf_preservesFiniteColimits X |
| 56 | let h : (SheafOfModules.toSheaf.{0} X.ringCatSheaf).PreservesEpimorphisms := |
| 57 | NormalMonoCategory.preservesEpimorphisms_of_preservesCokernels _ |
| 58 | exact @h.preserves M N f hf |
| 59 | |
| 60 | end |
| 61 | |
| 62 | /-! A scalar-compatible map of the original underlying abelian sheaves |
| 63 | is an actual morphism of algebraic module sheaves. -/ |
| 64 | |
| 65 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 66 | |
| 67 | def moduleHomOfAbelian {X : Scheme.{0}} {M N : X.Modules} |
| 68 | (f : (SheafOfModules.toSheaf X.ringCatSheaf).obj M ⟶ |
| 69 | (SheafOfModules.toSheaf X.ringCatSheaf).obj N) |
| 70 | (h : ∀ (U : X.Opens) (a : Γ(X, U)) (m : Γ(M, U)), |
| 71 | f.hom.app (op U) (a • m) = a • (show Γ(N, U) from f.hom.app (op U) m)) : M ⟶ N where |
| 72 | val := { |
| 73 | app U := ModuleCat.ofHom { |
| 74 | toFun := f.hom.app U |
| 75 | map_add' m n := (f.hom.app U).hom.map_add m n |
| 76 | map_smul' a m := h U.unop a m } |
| 77 | naturality := by |
| 78 | intro U V t |
| 79 | apply ModuleCat.hom_ext |
| 80 | apply LinearMap.ext |
| 81 | intro m |
| 82 | exact ConcreteCategory.congr_hom (f.hom.naturality t) m } |
| 83 | |
| 84 | theorem moduleHomOfAbelian_underlying {X : Scheme.{0}} {M N : X.Modules} |
| 85 | (f : (SheafOfModules.toSheaf X.ringCatSheaf).obj M ⟶ |
| 86 | (SheafOfModules.toSheaf X.ringCatSheaf).obj N) |
| 87 | (h : ∀ (U : X.Opens) (a : Γ(X, U)) (m : Γ(M, U)), |
| 88 | f.hom.app (op U) (a • m) = a • (show Γ(N, U) from f.hom.app (op U) m)) : |
| 89 | (SheafOfModules.toSheaf X.ringCatSheaf).map (moduleHomOfAbelian f h) = f := by |
| 90 | apply Sheaf.hom_ext |
| 91 | apply NatTrans.ext |
| 92 | funext U |
| 93 | apply AddCommGrpCat.hom_ext |
| 94 | apply AddMonoidHom.ext |
| 95 | intro m |
| 96 | rfl |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ModuleHomOf |