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.Cech.BaseChange |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.MixedCech.PresheafContraction |
| 3 | import Mathlib.CategoryTheory.Sites.CoverLifting |
| 4 | import Mathlib.CategoryTheory.Sites.Pullback |
| 5 | |
| 6 | /-! # Cech Restriction -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.MixedCech.CechRestriction.MixedCechRestriction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | Mixed-universe version for the native crystalline coefficient modules. |
| 14 | |
| 15 | # Restricting the global Čech presheaf complex |
| 16 | |
| 17 | The restriction of the global complex to an open subscheme is identified |
| 18 | with the complex of the inverse-image family. This connects the global |
| 19 | construction to the proved local contractions. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory Limits Opposite _root_.AlgebraicGeometry |
| 23 | |
| 24 | universe u v |
| 25 | |
| 26 | variable (R : Type v) [CommRing R] {X Y : Scheme.{u}} (f : Y ⟶ X) [IsOpenImmersion f] |
| 27 | |
| 28 | def restrictionFunctor : Presheaf.MixedCechPresheaf.Presheaves R X ⥤ Presheaf.MixedCechPresheaf.Presheaves R Y := |
| 29 | (Functor.whiskeringLeft Y.Opensᵒᵖ X.Opensᵒᵖ (ModuleCat.{max u v} R)).obj f.opensFunctor.op |
| 30 | |
| 31 | instance restriction_additive : (restrictionFunctor R f).Additive := by |
| 32 | dsimp [restrictionFunctor] |
| 33 | infer_instance |
| 34 | |
| 35 | instance restriction_preservesLimits : PreservesLimitsOfSize.{u, u} (restrictionFunctor R f) := by |
| 36 | dsimp [restrictionFunctor] |
| 37 | infer_instance |
| 38 | |
| 39 | def preimageFunctor : X.Opens ⥤ Y.Opens := TopologicalSpace.Opens.map f.base |
| 40 | |
| 41 | instance preimage_rightAdjoint : (preimageFunctor f).IsRightAdjoint := |
| 42 | f.opensFunctorAdjunction.isRightAdjoint |
| 43 | |
| 44 | instance preimage_preservesFiniteLimits : PreservesFiniteLimits (preimageFunctor f) := by |
| 45 | infer_instance |
| 46 | |
| 47 | theorem image_inf_preimage (V : Y.Opens) (U : X.Opens) : |
| 48 | f ''ᵁ (V ⊓ f ⁻¹ᵁ U) = (f ''ᵁ V) ⊓ U := by |
| 49 | apply TopologicalSpace.Opens.ext |
| 50 | exact Set.image_inter_preimage (f : Y → X) (V : Set Y) (U : Set X) |
| 51 | |
| 52 | variable (P : Presheaf.MixedCechPresheaf.Presheaves R X) |
| 53 | |
| 54 | def coefficientsIso : |
| 55 | Presheaf.MixedCechPresheaf.intersectionCoefficients R X P ⋙ restrictionFunctor R f ≅ |
| 56 | (preimageFunctor f).op ⋙ Presheaf.MixedCechPresheaf.intersectionCoefficients R Y ((restrictionFunctor R f).obj P) := |
| 57 | NatIso.ofComponents (fun U => NatIso.ofComponents (fun V => P.mapIso |
| 58 | (eqToIso (congrArg op (image_inf_preimage f V.unop U.unop).symm))) (by |
| 59 | intro V W g |
| 60 | change P.map _ ≫ P.map _ = P.map _ ≫ P.map _ |
| 61 | exact (P.map_comp _ _).symm.trans |
| 62 | ((congrArg P.map (Subsingleton.elim _ _)).trans (P.map_comp _ _)))) (by |
| 63 | intro U V g |
| 64 | apply NatTrans.ext |
| 65 | funext Z |
| 66 | change P.map _ ≫ P.map _ = P.map _ ≫ P.map _ |
| 67 | exact (P.map_comp _ _).symm.trans |
| 68 | ((congrArg P.map (Subsingleton.elim _ _)).trans (P.map_comp _ _))) |
| 69 | |
| 70 | variable {ι : Type u} (U : ι → X.Opens) |
| 71 | |
| 72 | /-- The global Čech complex restricts to the Čech complex of the restricted family. -/ |
| 73 | def complexIso : |
| 74 | ((restrictionFunctor R f).mapHomologicalComplex (ComplexShape.up ℕ)).obj (Presheaf.MixedCechPresheaf.complex R X U P) ≅ |
| 75 | Presheaf.MixedCechPresheaf.complex R Y (fun i => f ⁻¹ᵁ U i) ((restrictionFunctor R f).obj P) := |
| 76 | Cech.CoefficientChange.CechCoefficientChange.complexIso (restrictionFunctor R f) (FormalCoproduct.mk ι U).cech |
| 77 | (Presheaf.MixedCechPresheaf.intersectionCoefficients R X P) ≪≫ |
| 78 | (cechComplexFunctor U).mapIso (coefficientsIso R f P) ≪≫ |
| 79 | Cech.BaseChange.CechBaseChange.complexIso (preimageFunctor f) U |
| 80 | (Presheaf.MixedCechPresheaf.intersectionCoefficients R Y ((restrictionFunctor R f).obj P)) |
| 81 | |
| 82 | /-- The restriction of the global Čech complex to a family member contracts onto its coefficients. -/ |
| 83 | def coverMemberHomotopyEquiv (i : ι) := |
| 84 | (PresheafContraction.MixedCechPresheafContraction.localHomotopyEquiv R X U P i).trans |
| 85 | (HomotopyEquiv.ofIso (complexIso R (U i).ι P U).symm) |
| 86 | |
| 87 | /-- The same contraction after forming sheaves on that family member. -/ |
| 88 | def coverMemberSheafHomotopyEquiv (i : ι) := |
| 89 | (Presheaf.MixedCechPresheaf.sheafification R (U i).toScheme).mapHomotopyEquiv |
| 90 | (coverMemberHomotopyEquiv R P U i) |
| 91 | |
| 92 | def sheafRestrictionFunctor : |
| 93 | Sheaf (Opens.grothendieckTopology X) (ModuleCat.{max u v} R) ⥤ |
| 94 | Sheaf (Opens.grothendieckTopology Y) (ModuleCat.{max u v} R) := |
| 95 | f.opensFunctor.sheafPushforwardContinuous (ModuleCat.{max u v} R) |
| 96 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X) |
| 97 | |
| 98 | instance sheafRestriction_additive : (sheafRestrictionFunctor R f).Additive where |
| 99 | map_add := rfl |
| 100 | |
| 101 | instance sheafRestriction_leftAdjoint : (sheafRestrictionFunctor R f).IsLeftAdjoint := |
| 102 | (f.opensFunctor.sheafAdjunctionCocontinuous (ModuleCat.{max u v} R) |
| 103 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X)).isLeftAdjoint |
| 104 | |
| 105 | instance sheafRestriction_rightAdjoint : (sheafRestrictionFunctor R f).IsRightAdjoint := by |
| 106 | dsimp [sheafRestrictionFunctor] |
| 107 | infer_instance |
| 108 | |
| 109 | instance sheafRestriction_preservesHomology : (sheafRestrictionFunctor R f).PreservesHomology := by |
| 110 | infer_instance |
| 111 | |
| 112 | /-- Sheafification commutes with restriction to this open subscheme. -/ |
| 113 | def sheafificationIso : restrictionFunctor R f ⋙ Presheaf.MixedCechPresheaf.sheafification R Y ≅ |
| 114 | Presheaf.MixedCechPresheaf.sheafification R X ⋙ sheafRestrictionFunctor R f := |
| 115 | f.opensFunctor.pushforwardContinuousSheafificationCompatibility (ModuleCat.{max u v} R) |
| 116 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X) |
| 117 | |
| 118 | def sheafificationComplexIso : |
| 119 | ((restrictionFunctor R f ⋙ Presheaf.MixedCechPresheaf.sheafification R Y).mapHomologicalComplex (ComplexShape.up ℕ)) ≅ |
| 120 | ((Presheaf.MixedCechPresheaf.sheafification R X ⋙ sheafRestrictionFunctor R f).mapHomologicalComplex (ComplexShape.up ℕ)) where |
| 121 | hom := (sheafificationIso R f).hom.mapHomologicalComplex (ComplexShape.up ℕ) |
| 122 | inv := (sheafificationIso R f).inv.mapHomologicalComplex (ComplexShape.up ℕ) |
| 123 | hom_inv_id := by |
| 124 | apply NatTrans.ext |
| 125 | funext K |
| 126 | ext n : 1 |
| 127 | exact (sheafificationIso R f).hom_inv_id_app (K.X n) |
| 128 | inv_hom_id := by |
| 129 | apply NatTrans.ext |
| 130 | funext K |
| 131 | ext n : 1 |
| 132 | exact (sheafificationIso R f).inv_hom_id_app (K.X n) |
| 133 | |
| 134 | /-- The actual global Čech sheaf complex restricts to the local Čech sheaf complex. -/ |
| 135 | def sheafComplexIso : |
| 136 | ((sheafRestrictionFunctor R f).mapHomologicalComplex (ComplexShape.up ℕ)).obj |
| 137 | (Presheaf.MixedCechPresheaf.sheafComplex R X U P) ≅ |
| 138 | Presheaf.MixedCechPresheaf.sheafComplex R Y (fun i => f ⁻¹ᵁ U i) ((restrictionFunctor R f).obj P) := |
| 139 | ((sheafificationComplexIso R f).app |
| 140 | (Presheaf.MixedCechPresheaf.complex R X U P)).symm ≪≫ |
| 141 | ((Presheaf.MixedCechPresheaf.sheafification R Y).mapHomologicalComplex (ComplexShape.up ℕ)).mapIso (complexIso R f P U) |
| 142 | |
| 143 | /-- Restrictions of the global sheaf complex have the proved local contractions. -/ |
| 144 | def restrictedSheafHomotopyEquiv (i : ι) := |
| 145 | (PresheafContraction.MixedCechPresheafContraction.localSheafHomotopyEquiv R X U P i).trans |
| 146 | (HomotopyEquiv.ofIso (sheafComplexIso R (U i).ι P U).symm) |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.MixedCech.CechRestriction.MixedCechRestriction |