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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleSheaf.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 8 | import Mathlib.CategoryTheory.Adjunction.Reflective |
| 9 | import Mathlib.Topology.Sheaves.AddCommGrpCat |
| 10 | |
| 11 | /-! # Module -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.SheafCohomology.Module |
| 14 | |
| 15 | /-! |
| 16 | # The additive sheaf underlying a scheme module |
| 17 | |
| 18 | This is the narrow scheme-module bridge used by sheaf cohomology. It follows |
| 19 | the API proposed upstream in Mathlib PR #36345: forget the module structure, |
| 20 | then sheafify the underlying additive presheaf. The resulting functor is |
| 21 | additive, faithful, and preserves finite limits and all colimits. |
| 22 | |
| 23 | This is a source-preserving Apache-2.0 port of AINTLIB's |
| 24 | `ForMathlib/SchemeModuleSheaf.lean`. |
| 25 | -/ |
| 26 | |
| 27 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 28 | |
| 29 | universe u v u₁ u₂ u₃ v₁ v₂ v₃ |
| 30 | |
| 31 | private theorem preservesColimitsOfShape_of_reflector_comp |
| 32 | {C : Type u₁} [Category.{v₁} C] {D : Type u₂} [Category.{v₂} D] |
| 33 | {E : Type u₃} [Category.{v₃} E] (R : C ⥤ D) [Reflective R] |
| 34 | {J : Type u} [Category.{v} J] (F : C ⥤ E) |
| 35 | [PreservesColimitsOfShape J ((reflector R) ⋙ F)] [HasColimitsOfShape J D] : |
| 36 | PreservesColimitsOfShape J F := by |
| 37 | constructor |
| 38 | intro K |
| 39 | refine @preservesColimit_of_iso_diagram _ _ _ _ _ _ _ _ _ |
| 40 | (NatIso.hcomp (asIso (𝟙 K)) (asIso (reflectorAdjunction R).counit).symm).symm |
| 41 | ⟨fun hc ↦ ⟨?_⟩⟩ |
| 42 | let hc₂ := colimit.isColimit (K ⋙ R) |
| 43 | let ψ := IsColimit.uniqueUpToIso (isColimitOfPreserves (reflector R) hc₂) hc |
| 44 | have φ := IsColimit.ofIsoColimit |
| 45 | (isColimitOfPreserves (reflector R ⋙ F) hc₂) |
| 46 | (Functor.mapCoconeMapCocone (H := reflector R) (H' := F) |
| 47 | (colimit.cocone (K ⋙ R))).symm |
| 48 | exact IsColimit.ofIsoColimit φ ((Cocone.functoriality _ F).mapIso ψ) |
| 49 | |
| 50 | private theorem preservesColimitsOfSize_of_reflector_comp |
| 51 | {C : Type u₁} [Category.{v₁} C] {D : Type u₂} [Category.{v₂} D] |
| 52 | {E : Type u₃} [Category.{v₃} E] (R : C ⥤ D) [Reflective R] |
| 53 | (F : C ⥤ E) [PreservesColimitsOfSize.{v, u} ((reflector R) ⋙ F)] |
| 54 | [HasColimitsOfSize.{v, u} D] : PreservesColimitsOfSize.{v, u} F where |
| 55 | preservesColimitsOfShape := preservesColimitsOfShape_of_reflector_comp R F |
| 56 | |
| 57 | namespace ProjectiveAffine.ModuleSheaf |
| 58 | |
| 59 | open _root_.AlgebraicGeometry AlgebraicGeometry.Scheme.Modules |
| 60 | |
| 61 | variable {X : Scheme.{u}} (M : X.Modules) |
| 62 | |
| 63 | variable (X) in |
| 64 | /-- The additive sheaf underlying a scheme module. -/ |
| 65 | @[simps!] |
| 66 | noncomputable def toSheaf : X.Modules ⥤ CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat := |
| 67 | SheafOfModules.toSheaf X.ringCatSheaf |
| 68 | |
| 69 | instance : (ModuleSheaf.toSheaf X).Additive := |
| 70 | inferInstanceAs (SheafOfModules.toSheaf X.ringCatSheaf).Additive |
| 71 | |
| 72 | instance : PreservesFiniteLimits (ModuleSheaf.toSheaf X) := |
| 73 | inferInstanceAs (PreservesFiniteLimits |
| 74 | (SheafOfModules.toSheaf X.ringCatSheaf)) |
| 75 | |
| 76 | instance : (ModuleSheaf.toSheaf X).Faithful := |
| 77 | inferInstanceAs (SheafOfModules.toSheaf X.ringCatSheaf).Faithful |
| 78 | |
| 79 | instance : PreservesColimitsOfSize.{v, u} (ModuleSheaf.toSheaf X) := by |
| 80 | let : Reflective (toPresheafOfModules X) := |
| 81 | { L := PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj) |
| 82 | adj := PresheafOfModules.sheafificationAdjunction |
| 83 | (𝟙 X.ringCatSheaf.obj) } |
| 84 | have : PreservesColimitsOfSize.{v, u} |
| 85 | (reflector (toPresheafOfModules X) ⋙ ModuleSheaf.toSheaf X) := |
| 86 | comp_preservesColimits (PresheafOfModules.toPresheaf |
| 87 | X.ringCatSheaf.obj) |
| 88 | (presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat) |
| 89 | exact preservesColimitsOfSize_of_reflector_comp |
| 90 | (toPresheafOfModules X) _ |
| 91 | |
| 92 | instance : PreservesColimits (ModuleSheaf.toSheaf X) where |
| 93 | |
| 94 | /-- The additive sheaf underlying a scheme module. -/ |
| 95 | noncomputable abbrev sheaf : CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat := |
| 96 | (ModuleSheaf.toSheaf X).obj M |
| 97 | |
| 98 | /-- The additive-sheaf morphism underlying a morphism of scheme modules. -/ |
| 99 | noncomputable abbrev Hom.sheafHom {M N : X.Modules} (f : M ⟶ N) : |
| 100 | sheaf M ⟶ sheaf N := |
| 101 | (ModuleSheaf.toSheaf X).map f |
| 102 | |
| 103 | end ProjectiveAffine.ModuleSheaf |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.SheafCohomology.Module |