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/SchemeModuleRestrictPushforward.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 | |
| 9 | /-! # Module Restrict Pushforward -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.ModuleRestrictPushforward.Scheme.Modules |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicGeometry |
| 16 | open _root_.AlgebraicGeometry.Scheme |
| 17 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 18 | |
| 19 | /-! |
| 20 | # Restriction and pushforward of scheme modules |
| 21 | |
| 22 | This file compares restriction of a pushforward with pushforward after restriction in a |
| 23 | cartesian square whose vertical maps are open immersions. |
| 24 | -/ |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 29 | |
| 30 | /-- On presheaves, restriction of a pushforward agrees with pushforward after restriction in a |
| 31 | cartesian square whose vertical maps are open immersions. -/ |
| 32 | noncomputable def restrictPushforwardPresheafIsoOfIsPullback |
| 33 | {X Y U V : Scheme.{u}} |
| 34 | (f : X ⟶ Y) (f' : U ⟶ V) (iU : U ⟶ X) (iV : V ⟶ Y) |
| 35 | [IsOpenImmersion iV] [IsOpenImmersion iU] |
| 36 | (H : IsPullback f' iU iV f) (M : X.Modules) : |
| 37 | (toPresheafOfModules V).obj |
| 38 | ((restrictFunctor iV).obj ((pushforward f).obj M)) ≅ |
| 39 | (toPresheafOfModules V).obj |
| 40 | ((pushforward f').obj ((restrictFunctor iU).obj M)) := by |
| 41 | refine PresheafOfModules.isoMk (fun W ↦ ?_) ?_ |
| 42 | · let h := IsOpenImmersion.image_preimage_eq_preimage_image_of_isPullback H W.unop |
| 43 | let e := M.presheaf.mapIso (eqToIso h).op |
| 44 | refine ModuleCat.isoMk e ?_ |
| 45 | intro r |
| 46 | ext x |
| 47 | let eR : Γ(X, f ⁻¹ᵁ iV ''ᵁ W.unop) ≅ Γ(U, f' ⁻¹ᵁ W.unop) := |
| 48 | X.presheaf.mapIso (eqToIso h).op ≪≫ iU.appIso _ |
| 49 | have hring : (iV.appIso W.unop).inv ≫ f.app _ = f'.app W.unop ≫ eR.inv := by |
| 50 | rw [Iso.inv_comp_eq, ← Category.assoc, Iso.eq_comp_inv] |
| 51 | simp only [Scheme.Hom.app_eq_appLE, Iso.trans_hom, Functor.mapIso_hom, |
| 52 | Iso.op_hom, eqToIso.hom, eqToHom_op, Scheme.Hom.appIso_hom', |
| 53 | Scheme.Hom.map_appLE, eR, Scheme.Hom.appLE_comp_appLE, H.w] |
| 54 | have hring' : (iV.appIso W.unop).inv ≫ f.app _ ≫ eR.hom = |
| 55 | f'.app W.unop := by |
| 56 | rw [← Category.assoc, hring] |
| 57 | simp |
| 58 | have hring'' : f'.app W.unop ≫ (iU.appIso (f' ⁻¹ᵁ W.unop)).inv = |
| 59 | (iV.appIso W.unop).inv ≫ f.app _ ≫ |
| 60 | (X.presheaf.mapIso (eqToIso h).op).hom := by |
| 61 | rw [← hring'] |
| 62 | simp only [eR, Iso.trans_hom, Category.assoc] |
| 63 | rw [Iso.hom_inv_id, Category.comp_id] |
| 64 | have hring''' : f'.app W.unop ≫ (iU.appIso (f' ⁻¹ᵁ W.unop)).inv = |
| 65 | (iV.appIso W.unop).inv ≫ f.app _ ≫ |
| 66 | X.presheaf.map (eqToHom h).op := by |
| 67 | simpa only [Functor.mapIso_hom, Iso.op_hom, eqToIso.hom] using hring'' |
| 68 | have hr' : (iU.appIso (f' ⁻¹ᵁ W.unop)).inv ((f'.app W.unop).hom r) = |
| 69 | (X.presheaf.map (eqToHom h).op).hom |
| 70 | ((f.app (iV ''ᵁ W.unop)).hom ((iV.appIso W.unop).inv r)) := by |
| 71 | have hr := ConcreteCategory.congr_hom hring''' r |
| 72 | change (iU.appIso (f' ⁻¹ᵁ W.unop)).inv ((f'.app W.unop).hom r) = |
| 73 | (X.presheaf.map (eqToHom h).op).hom |
| 74 | ((f.app (iV ''ᵁ W.unop)).hom ((iV.appIso W.unop).inv r)) at hr |
| 75 | exact hr |
| 76 | let x' : M.val.obj (.op (f ⁻¹ᵁ iV ''ᵁ W.unop)) := x |
| 77 | let rU : Γ(X, iU ''ᵁ (f' ⁻¹ᵁ W.unop)) := |
| 78 | (iU.appIso (f' ⁻¹ᵁ W.unop)).inv ((f'.app W.unop).hom r) |
| 79 | let rX : Γ(X, f ⁻¹ᵁ iV ''ᵁ W.unop) := |
| 80 | (f.app (iV ''ᵁ W.unop)).hom ((iV.appIso W.unop).inv r) |
| 81 | change SMul.smul rU |
| 82 | (e.hom x' : M.val.obj (.op (iU ''ᵁ (f' ⁻¹ᵁ W.unop)))) = |
| 83 | e.hom (SMul.smul rX x') |
| 84 | rw [show rU = (X.presheaf.map (eqToHom h).op).hom rX from hr'] |
| 85 | exact ((M.val.map (eqToHom h).op).hom.map_smul rX x').symm |
| 86 | · intro W W' g |
| 87 | apply ModuleCat.hom_ext |
| 88 | ext x |
| 89 | let x' : Γ(M, f ⁻¹ᵁ iV ''ᵁ W.unop) := x |
| 90 | change M.presheaf.map _ (M.presheaf.map _ x') = |
| 91 | M.presheaf.map _ (M.presheaf.map _ x') |
| 92 | rw [← Functor.map_comp_apply, ← Functor.map_comp_apply] |
| 93 | exact ConcreteCategory.congr_hom |
| 94 | (M.presheaf.congr_map (Subsingleton.elim _ _)) x' |
| 95 | |
| 96 | /-- Restriction of a pushforward agrees objectwise with pushforward after restriction in a |
| 97 | cartesian square whose vertical maps are open immersions. -/ |
| 98 | noncomputable def restrictPushforwardIsoOfIsPullbackApp |
| 99 | {X Y U V : Scheme.{u}} |
| 100 | (f : X ⟶ Y) (f' : U ⟶ V) (iU : U ⟶ X) (iV : V ⟶ Y) |
| 101 | [IsOpenImmersion iV] [IsOpenImmersion iU] |
| 102 | (H : IsPullback f' iU iV f) (M : X.Modules) : |
| 103 | (restrictFunctor iV).obj ((pushforward f).obj M) ≅ |
| 104 | (pushforward f').obj ((restrictFunctor iU).obj M) := |
| 105 | (fullyFaithfulToPresheafOfModules).preimageIso |
| 106 | (restrictPushforwardPresheafIsoOfIsPullback f f' iU iV H M) |
| 107 | |
| 108 | /-- Restriction of a pushforward agrees naturally with pushforward after restriction in a |
| 109 | cartesian square whose vertical maps are open immersions. -/ |
| 110 | noncomputable def restrictPushforwardIsoOfIsPullback |
| 111 | {X Y U V : Scheme.{u}} |
| 112 | (f : X ⟶ Y) (f' : U ⟶ V) (iU : U ⟶ X) (iV : V ⟶ Y) |
| 113 | [IsOpenImmersion iV] [IsOpenImmersion iU] |
| 114 | (H : IsPullback f' iU iV f) : |
| 115 | pushforward f ⋙ restrictFunctor iV ≅ |
| 116 | restrictFunctor iU ⋙ pushforward f' := |
| 117 | NatIso.ofComponents |
| 118 | (fun M ↦ restrictPushforwardIsoOfIsPullbackApp f f' iU iV H M) |
| 119 | (by |
| 120 | intro M N q |
| 121 | apply (fullyFaithfulToPresheafOfModules).map_injective |
| 122 | apply PresheafOfModules.hom_ext |
| 123 | intro W |
| 124 | apply ModuleCat.hom_ext |
| 125 | apply LinearMap.ext |
| 126 | intro x |
| 127 | let h := IsOpenImmersion.image_preimage_eq_preimage_image_of_isPullback H W.unop |
| 128 | change (N.val.map (eqToHom h).op).hom ((q.val.app _).hom x) = |
| 129 | (q.val.app _).hom |
| 130 | (show M.val.obj (.op (iU ''ᵁ (f' ⁻¹ᵁ W.unop))) from |
| 131 | (M.val.map (eqToHom h).op).hom x) |
| 132 | exact ConcreteCategory.congr_hom (q.val.naturality (eqToHom h).op).symm x) |
| 133 | |
| 134 | /-- The forward restriction--pushforward comparison is, on each open and section, transport |
| 135 | along the equality of the two inverse-image opens. This is the componentwise design boundary |
| 136 | used by `SchemeModuleBaseChangeCech` to compare its canonical Cech map with affine pullback. -/ |
| 137 | theorem restrictPushforwardIsoOfIsPullback_hom_app_app_apply |
| 138 | {X Y U V : Scheme.{u}} |
| 139 | (f : X ⟶ Y) (f' : U ⟶ V) (iU : U ⟶ X) (iV : V ⟶ Y) |
| 140 | [IsOpenImmersion iV] [IsOpenImmersion iU] |
| 141 | (H : IsPullback f' iU iV f) (M : X.Modules) |
| 142 | (W : V.Opens) |
| 143 | (x : Γ((restrictFunctor iV).obj ((pushforward f).obj M), W)) : |
| 144 | ((((restrictPushforwardIsoOfIsPullback f f' iU iV H).hom.app M).app W).hom x) = |
| 145 | (M.presheaf.map |
| 146 | (eqToHom |
| 147 | (IsOpenImmersion.image_preimage_eq_preimage_image_of_isPullback H W)).op).hom x := by |
| 148 | rfl |
| 149 | |
| 150 | end |
| 151 | |
| 152 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.ModuleRestrictPushforward.Scheme.Modules |