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 | /-! # Restriction Pushforward -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.RestrictionPushforward |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # Restriction and pushforward of scheme modules |
| 17 | |
| 18 | This file compares restriction of a pushforward with pushforward after restriction in a |
| 19 | cartesian square whose vertical maps are open immersions. |
| 20 | -/ |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 25 | |
| 26 | open _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules |
| 27 | |
| 28 | /-- On presheaves, restriction of a pushforward agrees with pushforward after restriction in a |
| 29 | cartesian square whose vertical maps are open immersions. -/ |
| 30 | noncomputable def restrictPushforwardPresheafIsoOfIsPullback |
| 31 | {X Y U V : Scheme.{u}} |
| 32 | (f : X ⟶ Y) (f' : U ⟶ V) (iU : U ⟶ X) (iV : V ⟶ Y) |
| 33 | [IsOpenImmersion iV] [IsOpenImmersion iU] |
| 34 | (H : IsPullback f' iU iV f) (M : X.Modules) : |
| 35 | (toPresheafOfModules V).obj |
| 36 | ((restrictFunctor iV).obj ((pushforward f).obj M)) ≅ |
| 37 | (toPresheafOfModules V).obj |
| 38 | ((pushforward f').obj ((restrictFunctor iU).obj M)) := by |
| 39 | refine PresheafOfModules.isoMk (fun W ↦ ?_) ?_ |
| 40 | · let h := IsOpenImmersion.image_preimage_eq_preimage_image_of_isPullback H W.unop |
| 41 | let e := M.presheaf.mapIso (eqToIso h).op |
| 42 | refine ModuleCat.isoMk e ?_ |
| 43 | intro r |
| 44 | ext x |
| 45 | let eR : Γ(X, f ⁻¹ᵁ iV ''ᵁ W.unop) ≅ Γ(U, f' ⁻¹ᵁ W.unop) := |
| 46 | X.presheaf.mapIso (eqToIso h).op ≪≫ iU.appIso _ |
| 47 | have hring : (iV.appIso W.unop).inv ≫ f.app _ = f'.app W.unop ≫ eR.inv := by |
| 48 | rw [Iso.inv_comp_eq, ← Category.assoc, Iso.eq_comp_inv] |
| 49 | simp only [Scheme.Hom.app_eq_appLE, Iso.trans_hom, Functor.mapIso_hom, |
| 50 | Iso.op_hom, eqToIso.hom, eqToHom_op, Scheme.Hom.appIso_hom', |
| 51 | Scheme.Hom.map_appLE, eR, Scheme.Hom.appLE_comp_appLE, H.w] |
| 52 | have hring' : (iV.appIso W.unop).inv ≫ f.app _ ≫ eR.hom = |
| 53 | f'.app W.unop := by |
| 54 | rw [← Category.assoc, hring] |
| 55 | simp |
| 56 | have hring'' : f'.app W.unop ≫ (iU.appIso (f' ⁻¹ᵁ W.unop)).inv = |
| 57 | (iV.appIso W.unop).inv ≫ f.app _ ≫ |
| 58 | (X.presheaf.mapIso (eqToIso h).op).hom := by |
| 59 | rw [← hring'] |
| 60 | simp only [eR, Iso.trans_hom, Category.assoc] |
| 61 | rw [Iso.hom_inv_id, Category.comp_id] |
| 62 | have hring''' : f'.app W.unop ≫ (iU.appIso (f' ⁻¹ᵁ W.unop)).inv = |
| 63 | (iV.appIso W.unop).inv ≫ f.app _ ≫ |
| 64 | X.presheaf.map (eqToHom h).op := by |
| 65 | simpa only [Functor.mapIso_hom, Iso.op_hom, eqToIso.hom] using hring'' |
| 66 | have hr' : (iU.appIso (f' ⁻¹ᵁ W.unop)).inv ((f'.app W.unop).hom r) = |
| 67 | (X.presheaf.map (eqToHom h).op).hom |
| 68 | ((f.app (iV ''ᵁ W.unop)).hom ((iV.appIso W.unop).inv r)) := by |
| 69 | have hr := ConcreteCategory.congr_hom hring''' r |
| 70 | change (iU.appIso (f' ⁻¹ᵁ W.unop)).inv ((f'.app W.unop).hom r) = |
| 71 | (X.presheaf.map (eqToHom h).op).hom |
| 72 | ((f.app (iV ''ᵁ W.unop)).hom ((iV.appIso W.unop).inv r)) at hr |
| 73 | exact hr |
| 74 | let x' : M.val.obj (.op (f ⁻¹ᵁ iV ''ᵁ W.unop)) := x |
| 75 | let rU : Γ(X, iU ''ᵁ (f' ⁻¹ᵁ W.unop)) := |
| 76 | (iU.appIso (f' ⁻¹ᵁ W.unop)).inv ((f'.app W.unop).hom r) |
| 77 | let rX : Γ(X, f ⁻¹ᵁ iV ''ᵁ W.unop) := |
| 78 | (f.app (iV ''ᵁ W.unop)).hom ((iV.appIso W.unop).inv r) |
| 79 | change SMul.smul rU |
| 80 | (e.hom x' : M.val.obj (.op (iU ''ᵁ (f' ⁻¹ᵁ W.unop)))) = |
| 81 | e.hom (SMul.smul rX x') |
| 82 | rw [show rU = (X.presheaf.map (eqToHom h).op).hom rX from hr'] |
| 83 | exact ((M.val.map (eqToHom h).op).hom.map_smul rX x').symm |
| 84 | · intro W W' g |
| 85 | apply ModuleCat.hom_ext |
| 86 | ext x |
| 87 | let x' : Γ(M, f ⁻¹ᵁ iV ''ᵁ W.unop) := x |
| 88 | change M.presheaf.map _ (M.presheaf.map _ x') = |
| 89 | M.presheaf.map _ (M.presheaf.map _ x') |
| 90 | rw [← Functor.map_comp_apply, ← Functor.map_comp_apply] |
| 91 | exact ConcreteCategory.congr_hom |
| 92 | (M.presheaf.congr_map (Subsingleton.elim _ _)) x' |
| 93 | |
| 94 | /-- Restriction of a pushforward agrees objectwise with pushforward after restriction in a |
| 95 | cartesian square whose vertical maps are open immersions. -/ |
| 96 | noncomputable def restrictPushforwardIsoOfIsPullbackApp |
| 97 | {X Y U V : Scheme.{u}} |
| 98 | (f : X ⟶ Y) (f' : U ⟶ V) (iU : U ⟶ X) (iV : V ⟶ Y) |
| 99 | [IsOpenImmersion iV] [IsOpenImmersion iU] |
| 100 | (H : IsPullback f' iU iV f) (M : X.Modules) : |
| 101 | (restrictFunctor iV).obj ((pushforward f).obj M) ≅ |
| 102 | (pushforward f').obj ((restrictFunctor iU).obj M) := |
| 103 | (fullyFaithfulToPresheafOfModules).preimageIso |
| 104 | (restrictPushforwardPresheafIsoOfIsPullback f f' iU iV H M) |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.RestrictionPushforward |