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.SheafCohomology.ExtAdjunction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafUniverses |
| 3 | import Mathlib |
| 4 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 5 | import Mathlib.RingTheory.Flat.TorsionFree |
| 6 | import Mathlib.CategoryTheory.Abelian.GrothendieckAxioms.Sheaf |
| 7 | import Mathlib.CategoryTheory.Abelian.GrothendieckCategory.EnoughInjectives |
| 8 | import Mathlib.CategoryTheory.Sites.Adjunction |
| 9 | import Mathlib.CategoryTheory.Preadditive.Injective.Preserves |
| 10 | |
| 11 | /-! # Sheaf Coefficient Co -/ |
| 12 | |
| 13 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SheafCoefficientCo.SheafCoefficientAdjunction |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | /-! Exact integer-to-field coefficient adjunction on sites in the universes of the native pro-étale cohomology. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | |
| 21 | variable (R : Type 1) [Field R] [CharZero R] |
| 22 | |
| 23 | instance integer_limits : HasLimits (ModuleCat.{1} ℤ) := |
| 24 | ModuleCat.hasLimitsOfSize.{1, 1, 1, 0} |
| 25 | |
| 26 | instance integer_forget₂_preservesFilteredColimits : |
| 27 | PreservesFilteredColimits (forget₂ (ModuleCat.{1} ℤ) AddCommGrpCat.{1}) where |
| 28 | preserves_filtered_colimits _ _ _ := |
| 29 | { preservesColimit := fun {F} => |
| 30 | preservesColimit_of_preserves_colimit_cocone |
| 31 | (ModuleCat.FilteredColimits.colimitCoconeIsColimit F) |
| 32 | (AddCommGrpCat.FilteredColimits.colimitCoconeIsColimit |
| 33 | (F ⋙ forget₂ (ModuleCat.{1} ℤ) AddCommGrpCat.{1})) } |
| 34 | |
| 35 | instance integer_forget_preservesFilteredColimits : |
| 36 | PreservesFilteredColimits (forget (ModuleCat.{1} ℤ)) := |
| 37 | comp_preservesFilteredColimits (forget₂ (ModuleCat.{1} ℤ) AddCommGrpCat.{1}) |
| 38 | (forget AddCommGrpCat.{1}) |
| 39 | |
| 40 | abbrev extendCoefficients : ModuleCat.{1} ℤ ⥤ ModuleCat.{1} R := |
| 41 | ModuleCat.extendScalars.{0, 1, 1} (Int.castRingHom R) |
| 42 | |
| 43 | abbrev restrictCoefficients : ModuleCat.{1} R ⥤ ModuleCat.{1} ℤ := |
| 44 | ModuleCat.restrictScalars.{1, 0, 1} (Int.castRingHom R) |
| 45 | |
| 46 | abbrev coextendCoefficients : ModuleCat.{1} ℤ ⥤ ModuleCat.{1} R := |
| 47 | ModuleCat.coextendScalars.{0, 1, 1} (Int.castRingHom R) |
| 48 | |
| 49 | def coefficientAdjunction : extendCoefficients R ⊣ restrictCoefficients R := |
| 50 | ModuleCat.extendRestrictScalarsAdj.{1, 0, 1} (Int.castRingHom R) |
| 51 | |
| 52 | def coefficientCoAdjunction : restrictCoefficients R ⊣ coextendCoefficients R := |
| 53 | ModuleCat.restrictCoextendScalarsAdj.{1, 0, 1} (Int.castRingHom R) |
| 54 | |
| 55 | instance coextendCoefficients_rightAdjoint : (coextendCoefficients R).IsRightAdjoint := |
| 56 | (coefficientCoAdjunction R).isRightAdjoint |
| 57 | |
| 58 | instance extendCoefficients_leftAdjoint : (extendCoefficients R).IsLeftAdjoint := |
| 59 | (coefficientAdjunction R).isLeftAdjoint |
| 60 | |
| 61 | instance restrictCoefficients_rightAdjoint : (restrictCoefficients R).IsRightAdjoint := |
| 62 | (coefficientAdjunction R).isRightAdjoint |
| 63 | |
| 64 | instance restrictCoefficients_leftAdjoint : (restrictCoefficients R).IsLeftAdjoint := |
| 65 | (coefficientCoAdjunction R).isLeftAdjoint |
| 66 | |
| 67 | instance extendCoefficients_preservesMonos : (extendCoefficients R).PreservesMonomorphisms where |
| 68 | preserves {M N} f hf := by |
| 69 | apply (ModuleCat.mono_iff_injective _).mpr |
| 70 | change Function.Injective |
| 71 | (@LinearMap.baseChange ℤ R M N _ _ |
| 72 | ((algebraMap R R).comp (Int.castRingHom R)).toAlgebra _ _ _ _ f.hom) |
| 73 | rw [Subsingleton.elim |
| 74 | ((algebraMap R R).comp (Int.castRingHom R)).toAlgebra (inferInstance : Algebra ℤ R)] |
| 75 | exact Module.Flat.lTensor_preserves_injective_linearMap (M := R) f.hom |
| 76 | ((ModuleCat.mono_iff_injective f).mp hf) |
| 77 | |
| 78 | variable {C : Type 1} [Category.{0} C] (J : GrothendieckTopology C) |
| 79 | |
| 80 | instance integerSheafify : HasSheafify J (ModuleCat.{1} ℤ) := |
| 81 | HasSheafify.mk' _ _ (plusPlusAdjunction J (ModuleCat.{1} ℤ)) |
| 82 | |
| 83 | abbrev extendSheaf : Sheaf J (ModuleCat.{1} ℤ) ⥤ Sheaf J (ModuleCat.{1} R) := |
| 84 | Sheaf.composeAndSheafify J (extendCoefficients R) |
| 85 | |
| 86 | abbrev restrictSheaf : Sheaf J (ModuleCat.{1} R) ⥤ Sheaf J (ModuleCat.{1} ℤ) := |
| 87 | sheafCompose J (restrictCoefficients R) |
| 88 | |
| 89 | def adjunction : extendSheaf R J ⊣ restrictSheaf R J := |
| 90 | Sheaf.adjunction J (coefficientAdjunction R) |
| 91 | |
| 92 | instance extendSheaf_preservesMonos : (extendSheaf R J).PreservesMonomorphisms where |
| 93 | preserves {M N} f hf := by |
| 94 | let : Mono f.hom := presheaf_mono_of_mono _ _ f |
| 95 | let : Mono (Functor.whiskerRight f.hom (extendCoefficients R)) := by |
| 96 | apply NatTrans.mono_of_mono_app |
| 97 | exact Functor.map_mono (presheafToSheaf J (ModuleCat.{1} R)) |
| 98 | (Functor.whiskerRight f.hom (extendCoefficients R)) |
| 99 | |
| 100 | instance restrictSheaf_preservesInjectives : (restrictSheaf R J).PreservesInjectiveObjects := |
| 101 | Functor.preservesInjectiveObjects_of_adjunction_of_preservesMonomorphisms (SheafCoefficientAdjunction.adjunction R J) |
| 102 | |
| 103 | def restrictSheafIso : Sheaf.composeAndSheafify J |
| 104 | (restrictCoefficients R) ≅ restrictSheaf R J := |
| 105 | Functor.isoWhiskerLeft (sheafToPresheaf _ _) |
| 106 | (sheafComposeNatIso J (restrictCoefficients R) |
| 107 | (sheafificationAdjunction _ _) (sheafificationAdjunction _ _)) ≪≫ |
| 108 | (Functor.associator _ _ _).symm ≪≫ |
| 109 | Functor.isoWhiskerRight (asIso (sheafificationAdjunction _ _).counit) _ ≪≫ |
| 110 | Functor.leftUnitor _ |
| 111 | |
| 112 | instance restrictSheaf_preservesFiniteLimits : PreservesFiniteLimits (restrictSheaf R J) := by |
| 113 | let := (SheafCoefficientAdjunction.adjunction R J).isRightAdjoint |
| 114 | infer_instance |
| 115 | |
| 116 | instance restrictSheaf_preservesFiniteColimits : PreservesFiniteColimits (restrictSheaf R J) := by |
| 117 | let := (Sheaf.adjunction J |
| 118 | (coefficientCoAdjunction R)).isLeftAdjoint |
| 119 | exact preservesFiniteColimits_of_natIso (restrictSheafIso R J) |
| 120 | |
| 121 | instance restrictSheaf_additive : (restrictSheaf R J).Additive where |
| 122 | map_add := by |
| 123 | intro M N f g |
| 124 | apply Sheaf.hom_ext |
| 125 | ext U x |
| 126 | rfl |
| 127 | |
| 128 | instance moduleSheafGrothendieck : IsGrothendieckAbelian.{1} (Sheaf J (ModuleCat.{1} R)) := |
| 129 | IntegralComparison.Module.SheafUniverses.isGrothendieckAbelian.{0, 1, 0} J R |
| 130 | |
| 131 | def extAdjunction |
| 132 | [HasExt.{1} (Sheaf J (ModuleCat.{1} ℤ))] [HasExt.{1} (Sheaf J (ModuleCat.{1} R))] |
| 133 | (M : Sheaf J (ModuleCat.{1} ℤ)) (N : Sheaf J (ModuleCat.{1} R)) (n : ℕ) : |
| 134 | Abelian.Ext ((extendSheaf R J).obj M) N n ≃+ |
| 135 | Abelian.Ext M ((restrictSheaf R J).obj N) n := |
| 136 | AlgebraicGeometry.SheafCohomology.ExtAdjunction.Projective.extAdjunction (restrictSheaf R J) M (SheafCoefficientAdjunction.adjunction R J) N n |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SheafCoefficientCo.SheafCoefficientAdjunction |