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.Divisors.LineBundles.Global.SpecialFiber |
| 2 | |
| 3 | /-! # Affine Map -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.AffineMap.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: maps between affine schemes glued over a common base |
| 11 | |
| 12 | A natural transformation of the actual affine algebras induces a morphism |
| 13 | of the glued schemes. Compatibility with constants proves that this is a |
| 14 | morphism over the base and that its restrictions are pullback charts. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | open _root_.AlgebraicGeometry.Scheme.AffineZariskiSite |
| 19 | |
| 20 | universe u |
| 21 | variable {X : Scheme.{u}} {F G : X.AffineZariskiSiteᵒᵖ ⥤ CommRingCat} |
| 22 | variable {α : (toOpensFunctor X).op ⋙ X.presheaf ⟶ F} |
| 23 | variable {β : (toOpensFunctor X).op ⋙ X.presheaf ⟶ G} |
| 24 | variable (hα : α.Coequifibered) (hβ : β.Coequifibered) |
| 25 | |
| 26 | instance relativeAffineGlueData_isLocallyDirected : |
| 27 | ((relativeGluingData hα).functor ⋙ Scheme.forget).IsLocallyDirected := |
| 28 | Scheme.Cover.RelativeGluingData.instIsLocallyDirectedI₀CompFunctorForgetOfIsThin .. |
| 29 | |
| 30 | /-- Compatible affine spectrum maps into the gluing of the target charts. -/ |
| 31 | def relativeAffineMapCocone (η : F ⟶ G) : Cocone (relativeGluingData hβ).functor where |
| 32 | pt := (relativeGluingData hα).glued |
| 33 | ι := Functor.whiskerRight η.rightOp Scheme.Spec ≫ |
| 34 | (colimit.cocone (relativeGluingData hα).functor).ι |
| 35 | |
| 36 | /-- The morphism induced by a natural transformation of the affine algebras. -/ |
| 37 | def relativeAffineMap (η : F ⟶ G) : |
| 38 | (relativeGluingData hβ).glued ⟶ (relativeGluingData hα).glued := |
| 39 | colimit.desc _ (relativeAffineMapCocone hα hβ η) |
| 40 | |
| 41 | theorem relativeAffineMap_on_chart (η : F ⟶ G) (U : X.AffineZariskiSite) : |
| 42 | (relativeGluingData hβ).cover.f U ≫ relativeAffineMap hα hβ η = |
| 43 | Spec.map (η.app (.op U)) ≫ (relativeGluingData hα).cover.f U := |
| 44 | colimit.ι_desc (relativeAffineMapCocone hα hβ η) U |
| 45 | |
| 46 | variable (η : F ⟶ G) (hη : α ≫ η = β) |
| 47 | include hη |
| 48 | |
| 49 | theorem relativeAffineMap_chart_toBase (U : X.AffineZariskiSite) : |
| 50 | Spec.map (η.app (.op U)) ≫ (relativeGluingData hα).natTrans.app U = |
| 51 | (relativeGluingData hβ).natTrans.app U := by |
| 52 | change Spec.map (η.app (.op U)) ≫ |
| 53 | (Spec.map (α.app (.op U)) ≫ (restrictIsoSpec X).inv.app U) = |
| 54 | Spec.map (β.app (.op U)) ≫ (restrictIsoSpec X).inv.app U |
| 55 | rw [← Category.assoc, ← Spec.map_comp] |
| 56 | exact congrArg (fun a => Spec.map a ≫ (restrictIsoSpec X).inv.app U) |
| 57 | (congrArg (fun γ => γ.app (.op U)) hη) |
| 58 | |
| 59 | /-- The map of gluings respects the specified structure maps to the common base. -/ |
| 60 | theorem relativeAffineMap_toBase : |
| 61 | relativeAffineMap hα hβ η ≫ (relativeGluingData hα).toBase = |
| 62 | (relativeGluingData hβ).toBase := by |
| 63 | apply (relativeGluingData hβ).cover.hom_ext |
| 64 | intro U |
| 65 | let q : (relativeGluingData hβ).cover.X U ⟶ (relativeGluingData hα).cover.X U := |
| 66 | Spec.map (η.app (.op U)) |
| 67 | have hd := (relativeGluingData hα).ι_toBase U |
| 68 | have hs := (relativeGluingData hβ).ι_toBase U |
| 69 | have hq : q ≫ (relativeGluingData hα).natTrans.app U = |
| 70 | (relativeGluingData hβ).natTrans.app U := relativeAffineMap_chart_toBase hα hβ η hη U |
| 71 | exact (Category.assoc _ _ _).symm.trans |
| 72 | ((congrArg (fun k => k ≫ (relativeGluingData hα).toBase) |
| 73 | (relativeAffineMap_on_chart hα hβ η U)).trans |
| 74 | ((Category.assoc q _ _).trans |
| 75 | ((congrArg (fun k => q ≫ k) hd).trans |
| 76 | ((Category.assoc q _ _).symm.trans |
| 77 | ((congrArg (fun k => k ≫ (directedCover X).f U) hq).trans hs.symm))))) |
| 78 | |
| 79 | /-- Each affine map is precisely the pullback of the global morphism to that target chart. -/ |
| 80 | theorem relativeAffineMap_chart_isPullback (U : X.AffineZariskiSite) : |
| 81 | IsPullback (Spec.map (η.app (.op U))) ((relativeGluingData hβ).cover.f U) |
| 82 | ((relativeGluingData hα).cover.f U) (relativeAffineMap hα hβ η) := by |
| 83 | have h := (relativeGluingData hβ).isPullback_natTrans_ι_toBase U |
| 84 | rw [← relativeAffineMap_chart_toBase hα hβ η hη U, |
| 85 | ← relativeAffineMap_toBase hα hβ η hη] at h |
| 86 | exact h.of_right (relativeAffineMap_on_chart hα hβ η U).symm |
| 87 | ((relativeGluingData hα).isPullback_natTrans_ι_toBase U) |
| 88 | |
| 89 | /-- Surjective affine algebra maps glue to a closed immersion. -/ |
| 90 | theorem relativeAffineMap_isClosedImmersion |
| 91 | (hsurj : ∀ U : X.AffineZariskiSite, Function.Surjective (η.app (.op U))) : |
| 92 | IsClosedImmersion (relativeAffineMap hα hβ η) := by |
| 93 | apply Global.SpecialFiber.BundleCycles.isClosedImmersion_of_cover_pullbacks (relativeAffineMap hα hβ η) |
| 94 | (relativeGluingData hα).cover (relativeGluingData hβ).cover.X |
| 95 | (relativeGluingData hβ).cover.f (fun U => Spec.map (η.app (.op U))) |
| 96 | (relativeAffineMap_chart_isPullback hα hβ η hη) |
| 97 | intro U |
| 98 | exact IsClosedImmersion.spec_of_surjective _ (hsurj U) |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.AffineMap.BundleCycles |