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.AlgebraicGeometry.Modules.Sheaf |
| 2 | import Mathlib.CategoryTheory.Adjunction.Mates |
| 3 | |
| 4 | /-! # Base Change Mate -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OpenModule.BaseChangeMate.OpenPullbackSquare |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The canonical base-change mate for restriction to an open subscheme is invertible. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Functor _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) (U : Y.Opens) |
| 14 | |
| 15 | /-- Direct images along the two equal composite scheme morphisms agree. -/ |
| 16 | def pushforwardSquareIso : |
| 17 | Scheme.Modules.pushforward (f ⁻¹ᵁ U).ι ⋙ Scheme.Modules.pushforward f ≅ |
| 18 | Scheme.Modules.pushforward (f ∣_ U) ⋙ Scheme.Modules.pushforward U.ι := |
| 19 | Scheme.Modules.pushforwardComp (f ⁻¹ᵁ U).ι f ≪≫ |
| 20 | Scheme.Modules.pushforwardCongr (morphismRestrict_ι f U).symm ≪≫ |
| 21 | (Scheme.Modules.pushforwardComp (f ∣_ U) U.ι).symm |
| 22 | |
| 23 | /-- The base-change map as a mate across open-restriction adjunctions. -/ |
| 24 | def openBaseChangeMap : |
| 25 | Scheme.Modules.pushforward f ⋙ Scheme.Modules.restrictFunctor U.ι ⟶ |
| 26 | Scheme.Modules.restrictFunctor (f ⁻¹ᵁ U).ι ⋙ Scheme.Modules.pushforward (f ∣_ U) := |
| 27 | ((mateEquiv (Scheme.Modules.restrictAdjunction (f ⁻¹ᵁ U).ι) |
| 28 | (Scheme.Modules.restrictAdjunction U.ι)).symm |
| 29 | (TwoSquare.mk _ _ _ _ (pushforwardSquareIso f U).hom)).natTrans |
| 30 | |
| 31 | /-- The mate is computed using the unit on the inverse-image open and |
| 32 | the counit on the base open. -/ |
| 33 | theorem openBaseChangeMap_app (M : X.Modules) : |
| 34 | (openBaseChangeMap f U).app M = |
| 35 | (Scheme.Modules.restrictFunctor U.ι).map |
| 36 | ((Scheme.Modules.pushforward f).map |
| 37 | ((Scheme.Modules.restrictAdjunction (f ⁻¹ᵁ U).ι).unit.app M)) ≫ |
| 38 | (Scheme.Modules.restrictFunctor U.ι).map |
| 39 | ((pushforwardSquareIso f U).hom.app |
| 40 | ((Scheme.Modules.restrictFunctor (f ⁻¹ᵁ U).ι).obj M)) ≫ |
| 41 | (Scheme.Modules.restrictAdjunction U.ι).counit.app |
| 42 | ((Scheme.Modules.pushforward (f ∣_ U)).obj |
| 43 | ((Scheme.Modules.restrictFunctor (f ⁻¹ᵁ U).ι).obj M)) := by |
| 44 | dsimp [openBaseChangeMap, mateEquiv] |
| 45 | simp only [Category.id_comp, Category.comp_id] |
| 46 | erw [(Scheme.Modules.restrictFunctor U.ι).map_id, |
| 47 | (Scheme.Modules.restrictFunctor U.ι).map_id, Category.id_comp, Category.id_comp] |
| 48 | |
| 49 | /-- Restriction does not change the underlying map on the image open. -/ |
| 50 | theorem restrict_map_app {Z W : Scheme.{u}} (i : Z ⟶ W) [IsOpenImmersion i] |
| 51 | {M N : W.Modules} (a : M ⟶ N) (V : Z.Opens) : |
| 52 | ((Scheme.Modules.restrictFunctor i).map a).app V = a.app (i ''ᵁ V) := rfl |
| 53 | |
| 54 | /-- Over the base open, the unit for its inverse-image open is an |
| 55 | isomorphism on direct images. -/ |
| 56 | theorem restrictedUnit_isIso (M : X.Modules) : |
| 57 | IsIso ((Scheme.Modules.restrictFunctor U.ι).map |
| 58 | ((Scheme.Modules.pushforward f).map |
| 59 | ((Scheme.Modules.restrictAdjunction (f ⁻¹ᵁ U).ι).unit.app M))) := by |
| 60 | apply Scheme.Modules.Hom.isIso_iff_isIso_app.mpr |
| 61 | intro W |
| 62 | rw [restrict_map_app, Scheme.Modules.pushforward_map_app, |
| 63 | Scheme.Modules.restrictAdjunction_unit_app_app] |
| 64 | let V := f ⁻¹ᵁ U |
| 65 | let O := f ⁻¹ᵁ (U.ι ''ᵁ W) |
| 66 | have hle : O ≤ V := f.preimage_mono (U.ι_image_le W) |
| 67 | have he : V.ι ''ᵁ (V.ι ⁻¹ᵁ O) = O := by |
| 68 | rw [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι, |
| 69 | inf_eq_right.mpr hle] |
| 70 | have hi : IsIso (homOfLE (V.ι.image_preimage_le O)) := by |
| 71 | rw [show homOfLE (V.ι.image_preimage_le O) = eqToHom he from Subsingleton.elim _ _] |
| 72 | infer_instance |
| 73 | exact Functor.map_isIso M.presheaf (homOfLE (V.ι.image_preimage_le O)).op |
| 74 | |
| 75 | /-- The canonical open-base-change map is invertible. -/ |
| 76 | theorem openBaseChangeMap_isIso : IsIso (openBaseChangeMap f U) := by |
| 77 | have (M : X.Modules) : IsIso ((openBaseChangeMap f U).app M) := by |
| 78 | rw [openBaseChangeMap_app] |
| 79 | have := restrictedUnit_isIso f U M |
| 80 | infer_instance |
| 81 | exact NatIso.isIso_of_isIso_app _ |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OpenModule.BaseChangeMate.OpenPullbackSquare |