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 |
| 2 | |
| 3 | /-! # Flat Coefficient Sheaves -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FlatCoefficientSheaves |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: exact restriction along flat coefficient extensions |
| 11 | |
| 12 | For a flat extension of coefficient rings, extension of coefficients |
| 13 | preserves monomorphisms. The induced sheaf adjunction therefore shows |
| 14 | that restriction preserves injectives, as well as exact sequences. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | universe u v w |
| 20 | |
| 21 | variable (S R : Type u) [CommRing S] [CommRing R] [Algebra S R] |
| 22 | |
| 23 | abbrev extendCoefficients : ModuleCat.{u} S ⥤ ModuleCat.{u} R := |
| 24 | ModuleCat.extendScalars (algebraMap S R) |
| 25 | |
| 26 | instance extendCoefficients_preservesFiniteLimits [Module.Flat S R] : |
| 27 | PreservesFiniteLimits (extendCoefficients S R) := |
| 28 | ModuleCat.preservesFiniteLimits_extendScalars_of_flat (RingHom.flat_algebraMap_iff.mpr inferInstance) |
| 29 | |
| 30 | instance extendCoefficients_preservesMonos [Module.Flat S R] : |
| 31 | (extendCoefficients S R).PreservesMonomorphisms := by infer_instance |
| 32 | |
| 33 | variable {C : Type v} [Category.{w} C] (J : GrothendieckTopology C) |
| 34 | [HasSheafify J (ModuleCat.{u} S)] [HasSheafify J (ModuleCat.{u} R)] |
| 35 | |
| 36 | abbrev extension : Sheaf J (ModuleCat.{u} S) ⥤ Sheaf J (ModuleCat.{u} R) := |
| 37 | Sheaf.composeAndSheafify J (extendCoefficients S R) |
| 38 | |
| 39 | abbrev restriction : Sheaf J (ModuleCat.{u} R) ⥤ Sheaf J (ModuleCat.{u} S) := |
| 40 | sheafCompose J (ModuleCat.restrictScalars (algebraMap S R)) |
| 41 | |
| 42 | def adjunction : extension S R J ⊣ restriction S R J := |
| 43 | Sheaf.adjunction J (ModuleCat.extendRestrictScalarsAdj (algebraMap S R)) |
| 44 | |
| 45 | instance extension_preservesMonos [Module.Flat S R] : (extension S R J).PreservesMonomorphisms where |
| 46 | preserves {M N} a ha := by |
| 47 | have : Mono a.hom := inferInstanceAs (Mono ((sheafToPresheaf J (ModuleCat.{u} S)).map a)) |
| 48 | have : Mono (Functor.whiskerRight a.hom (extendCoefficients S R)) := by |
| 49 | apply NatTrans.mono_of_mono_app |
| 50 | exact Functor.map_mono (presheafToSheaf J (ModuleCat.{u} R)) |
| 51 | (Functor.whiskerRight a.hom (extendCoefficients S R)) |
| 52 | |
| 53 | instance restriction_preservesInjectives [Module.Flat S R] : |
| 54 | (restriction S R J).PreservesInjectiveObjects := |
| 55 | Functor.preservesInjectiveObjects_of_adjunction_of_preservesMonomorphisms (FlatCoefficientSheaves.adjunction S R J) |
| 56 | |
| 57 | def restrictionIso : |
| 58 | Sheaf.composeAndSheafify J (ModuleCat.restrictScalars (algebraMap S R)) ≅ restriction S R J := |
| 59 | Functor.isoWhiskerLeft (sheafToPresheaf _ _) |
| 60 | (sheafComposeNatIso J (ModuleCat.restrictScalars (algebraMap S R)) |
| 61 | (sheafificationAdjunction _ _) (sheafificationAdjunction _ _)) ≪≫ |
| 62 | (Functor.associator _ _ _).symm ≪≫ |
| 63 | Functor.isoWhiskerRight (asIso (sheafificationAdjunction _ _).counit) _ ≪≫ |
| 64 | Functor.leftUnitor _ |
| 65 | |
| 66 | instance restriction_preservesFiniteLimits : PreservesFiniteLimits (restriction S R J) := by |
| 67 | have := (FlatCoefficientSheaves.adjunction S R J).isRightAdjoint |
| 68 | infer_instance |
| 69 | |
| 70 | instance restriction_preservesFiniteColimits : PreservesFiniteColimits (restriction S R J) := by |
| 71 | have := (Sheaf.adjunction J (ModuleCat.restrictCoextendScalarsAdj (algebraMap S R))).isLeftAdjoint |
| 72 | exact preservesFiniteColimits_of_natIso (restrictionIso S R J) |
| 73 | |
| 74 | instance restriction_additive : (restriction S R J).Additive where |
| 75 | map_add := by |
| 76 | intro M N a b |
| 77 | apply Sheaf.hom_ext |
| 78 | ext U x |
| 79 | rfl |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FlatCoefficientSheaves |