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.Crystalline.Cohomology.MixedCech.CechRestriction |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.OpenKan |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.ZariskiColimitsCore |
| 4 | import Mathlib.Algebra.Category.ModuleCat.AB |
| 5 | import Mathlib.CategoryTheory.Preadditive.Injective.Preserves |
| 6 | |
| 7 | /-! # Zariski Open Modules -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ZariskiOpenModules.ZariskiOpenInjectives |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Open restriction preserves injectives at the native coefficient size |
| 15 | |
| 16 | The left Kan comma category is empty outside the open and has a |
| 17 | terminal object inside. The resulting exact extension by zero proves |
| 18 | that actual open restriction preserves injective module sheaves. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable (R : Type u) [CommRing R] {X Y : Scheme.{u}} (f : Y ⟶ X) [IsOpenImmersion f] |
| 26 | |
| 27 | abbrev Modules := ModuleCat.{u} R |
| 28 | |
| 29 | local notation "V" => OAI.AlgebraicGeometry.Crystalline.Cohomology.ZariskiOpenModules.ZariskiOpenInjectives.Modules R |
| 30 | local notation "J" => Opens.grothendieckTopology Y |
| 31 | local notation "K" => Opens.grothendieckTopology X |
| 32 | local notation "L" => Functor.op f.opensFunctor |
| 33 | |
| 34 | local instance moduleColimits : HasColimitsOfSize.{u, u} V := |
| 35 | ModuleCat.hasColimitsOfSize.{u, u, u, u} R |
| 36 | |
| 37 | instance comma_exactColimits (Q : X.Opensᵒᵖ) : HasExactColimitsOfShape (CostructuredArrow L Q) V := by |
| 38 | classical |
| 39 | by_cases h : Nonempty (CostructuredArrow L Q) |
| 40 | · obtain ⟨T⟩ := h |
| 41 | have hQ : Q.unop ≤ f.opensRange := |
| 42 | (leOfHom T.hom.unop).trans (f.image_le_opensRange T.left.unop) |
| 43 | have he : f ''ᵁ (f ⁻¹ᵁ Q.unop) = Q.unop := by |
| 44 | rw [Scheme.Hom.image_preimage_eq_opensRange_inf, inf_eq_right.mpr hQ] |
| 45 | let P := op (f ⁻¹ᵁ Q.unop) |
| 46 | let e : (L).obj P ≅ Q := eqToIso (congrArg op he) |
| 47 | have ht : HasTerminal (CostructuredArrow L ((L).obj P)) := |
| 48 | (CostructuredArrow.mkIdTerminal (S := L) (Y := P)).hasTerminal |
| 49 | have : HasTerminal (CostructuredArrow L Q) := (CostructuredArrow.mapIso e).hasTerminal_iff.mp ht |
| 50 | have : AB5OfSize.{u, u} V := AB5OfSize_of_univLE V |
| 51 | infer_instance |
| 52 | · have : IsEmpty (CostructuredArrow L Q) := not_nonempty_iff.mp h |
| 53 | have : HasCoproducts.{0} V := fun I => (ZariskiColimitsCore.ZariskiColimits.modules R).has_colimits_of_shape (Discrete I) |
| 54 | have : AB4OfSize.{0} V := AB4OfSize_shrink.{0, u} V |
| 55 | have : HasExactColimitsOfShape (Discrete PEmpty.{1}) V := AB4OfSize.ofShape _ |
| 56 | exact HasExactColimitsOfShape.of_domain_equivalence V |
| 57 | (equivalenceOfIsEmpty (Discrete PEmpty.{1}) (CostructuredArrow L Q)) |
| 58 | |
| 59 | instance lan_finiteLimits : PreservesFiniteLimits |
| 60 | ((L).lan : (Y.Opensᵒᵖ ⥤ V) ⥤ X.Opensᵒᵖ ⥤ V) := by |
| 61 | apply preservesFiniteLimits_of_preservesFiniteLimitsOfSize.{u} |
| 62 | intro T _ _ |
| 63 | apply preservesLimitsOfShape_of_evaluation ((L).lan : (Y.Opensᵒᵖ ⥤ V) ⥤ X.Opensᵒᵖ ⥤ V) T |
| 64 | intro Q |
| 65 | exact preservesLimitsOfShape_of_natIso (OpenKan.OpenKanEvaluation.iso R L Q).symm |
| 66 | |
| 67 | instance extension_finiteLimits : PreservesFiniteLimits |
| 68 | (Functor.sheafPullbackConstruction.sheafPullback f.opensFunctor V J K) := by |
| 69 | change PreservesFiniteLimits (sheafToPresheaf J V ⋙ (L).lan ⋙ presheafToSheaf K V) |
| 70 | have : PreservesFiniteLimits ((L).lan ⋙ presheafToSheaf K V) := comp_preservesFiniteLimits _ _ |
| 71 | exact comp_preservesFiniteLimits _ _ |
| 72 | |
| 73 | instance restriction_preservesInjectives : |
| 74 | (MixedCech.CechRestriction.MixedCechRestriction.sheafRestrictionFunctor R f).PreservesInjectiveObjects := |
| 75 | Functor.preservesInjectiveObjects_of_adjunction_of_preservesMonomorphisms |
| 76 | (Functor.sheafPullbackConstruction.sheafAdjunctionContinuous f.opensFunctor V J K) |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ZariskiOpenModules.ZariskiOpenInjectives |