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.ArithmeticGeometry.OrdinaryLocus.Openness.ModulePullbackOpen |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UniversalGlobalSections |
| 3 | |
| 4 | /-! # Line Bundle Pullback Unit -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundlePullbackUnit.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Descent of line-bundle morphisms under universally constant global sections. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem isIso_pullbackMap_of_restrictMap {X Y : Scheme.{u}} |
| 17 | (f : X ⟶ Y) [IsOpenImmersion f] {M N : Y.Modules} (q : M ⟶ N) |
| 18 | [IsIso ((Scheme.Modules.restrictFunctor f).map q)] : |
| 19 | IsIso ((Scheme.Modules.pullback f).map q) := by |
| 20 | let e := Scheme.Modules.restrictFunctorIsoPullback f |
| 21 | have : IsIso (e.hom.app M ≫ (Scheme.Modules.pullback f).map q) := by |
| 22 | rw [← e.hom.naturality] |
| 23 | infer_instance |
| 24 | exact IsIso.of_isIso_comp_left (e.hom.app M) _ |
| 25 | |
| 26 | theorem isIso_structureSheafToPushforward_of_app {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 27 | (hf : ∀ U : Y.Opens, IsIso (f.app U)) : IsIso (TensorUnit.Construction.structureSheafToPushforward f) := by |
| 28 | apply Scheme.Modules.Hom.isIso_iff_isIso_app.mpr |
| 29 | intro U |
| 30 | have := hf U |
| 31 | exact inferInstanceAs (IsIso |
| 32 | ((forget₂ CommRingCat RingCat ⋙ forget₂ RingCat AddCommGrpCat).map (f.app U))) |
| 33 | |
| 34 | theorem isIso_pullbackUnit_structureSheaf {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 35 | (hf : ∀ U : Y.Opens, IsIso (f.app U)) : |
| 36 | IsIso ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app (LineBundle.Construction.structureSheafModule Y)) := by |
| 37 | have := isIso_structureSheafToPushforward_of_app f hf |
| 38 | have : IsIso ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app (LineBundle.Construction.structureSheafModule Y) ≫ |
| 39 | (Scheme.Modules.pushforward f).map (LineBundle.Construction.pullbackStructureSheafIso f).hom) := by |
| 40 | rw [TensorUnit.Construction.pullbackStructureSheafIso_unit] |
| 41 | infer_instance |
| 42 | exact IsIso.of_isIso_comp_right _ ((Scheme.Modules.pushforward f).map (LineBundle.Construction.pullbackStructureSheafIso f).hom) |
| 43 | |
| 44 | theorem isIso_pullbackUnit_of_trivial {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 45 | (hf : ∀ U : Y.Opens, IsIso (f.app U)) {M : Y.Modules} (e : M ≅ LineBundle.Construction.structureSheafModule Y) : |
| 46 | IsIso ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M) := by |
| 47 | let L := Scheme.Modules.pullback f |
| 48 | let R := Scheme.Modules.pushforward f |
| 49 | let adj := Scheme.Modules.pullbackPushforwardAdjunction f |
| 50 | have := isIso_pullbackUnit_structureSheaf f hf |
| 51 | have : IsIso (adj.unit.app M ≫ (L ⋙ R).map e.hom) := by |
| 52 | rw [← adj.unit.naturality] |
| 53 | infer_instance |
| 54 | exact IsIso.of_isIso_comp_right _ ((L ⋙ R).map e.hom) |
| 55 | |
| 56 | theorem isIso_app_morphismRestrict_of_app {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 57 | (hf : ∀ U : Y.Opens, IsIso (f.app U)) (U : Y.Opens) (V : U.toScheme.Opens) : |
| 58 | IsIso ((f ∣_ U).app V) := by |
| 59 | rw [morphismRestrict_app] |
| 60 | exact IsIso.comp_isIso' (hf (U.ι ''ᵁ V)) |
| 61 | (X.presheaf.mapIso (eqToIso (image_morphismRestrict_preimage f U V)).op).isIso_hom |
| 62 | |
| 63 | theorem isIso_pullbackUnit_of_isLineBundle {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 64 | (hf : ∀ U : Y.Opens, IsIso (f.app U)) {M : Y.Modules} (hM : LineBundle.Construction.IsLineBundle M) : |
| 65 | IsIso ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M) := by |
| 66 | apply ModuleLocalIso.Construction.isIso_of_locally_isIso_pullback |
| 67 | intro y |
| 68 | obtain ⟨U, hyU, ⟨e⟩⟩ := hM y |
| 69 | let e' : M.restrict U.ι ≅ LineBundle.Construction.structureSheafModule U.toScheme := |
| 70 | (Scheme.Modules.restrictFunctorIsoPullback U.ι).app M ≪≫ e |
| 71 | have := isIso_pullbackUnit_of_trivial (f ∣_ U) |
| 72 | (isIso_app_morphismRestrict_of_app f hf U) e' |
| 73 | have : IsIso ((Scheme.Modules.restrictFunctor U.ι).map |
| 74 | ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M) ≫ |
| 75 | (ModuleOpenBaseChange.Construction.moduleOpenBaseChangeNatIso f U).hom.app ((Scheme.Modules.pullback f).obj M)) := by |
| 76 | rw [ModulePullbackOpen.Construction.modulePullbackOpen_unit] |
| 77 | infer_instance |
| 78 | have : IsIso ((Scheme.Modules.restrictFunctor U.ι).map |
| 79 | ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M)) := |
| 80 | IsIso.of_isIso_comp_right _ |
| 81 | ((ModuleOpenBaseChange.Construction.moduleOpenBaseChangeNatIso f U).hom.app ((Scheme.Modules.pullback f).obj M)) |
| 82 | exact ⟨U, hyU, isIso_pullbackMap_of_restrictMap U.ι _⟩ |
| 83 | |
| 84 | theorem isIso_productPullbackUnit_of_isLineBundle |
| 85 | {k : Type u} [Field k] [IsAlgClosed k] |
| 86 | (Y X : Over (Spec (.of k))) [IsProper X.hom] [IsIntegral X.left] |
| 87 | {M : Y.left.Modules} (hM : LineBundle.Construction.IsLineBundle M) : |
| 88 | IsIso ((Scheme.Modules.pullbackPushforwardAdjunction |
| 89 | (CartesianMonoidalCategory.fst Y X).left).unit.app M) := |
| 90 | isIso_pullbackUnit_of_isLineBundle (CartesianMonoidalCategory.fst Y X).left |
| 91 | (UniversalGlobalSections.Construction.isIso_properBaseChange_app Y X) hM |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundlePullbackUnit.Construction |