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.ProperGlobalSections |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Universal Global Sections -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UniversalGlobalSections.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Universal constancy of global functions on proper integral schemes over algebraically |
| 12 | closed fields, including base change by nonreduced schemes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open MonoidalCategory CartesianMonoidalCategory |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem isIso_appTop_of_proper_integral |
| 20 | {k : Type u} [Field k] [IsAlgClosed k] {X : Scheme.{u}} |
| 21 | (f : X ⟶ Spec (.of k)) [IsIntegral X] [UniversallyClosed f] : IsIso f.appTop := by |
| 22 | have : IsIso ((Scheme.ΓSpecIso (.of k)).inv ≫ f.appTop) := by |
| 23 | rw [ConcreteCategory.isIso_iff_bijective] |
| 24 | exact ProperGlobalSections.Construction.globalConstants_bijective f |
| 25 | exact IsIso.of_isIso_comp_left (Scheme.ΓSpecIso (.of k)).inv f.appTop |
| 26 | |
| 27 | /-- Proper integral schemes with no nonconstant global functions retain this property |
| 28 | after arbitrary affine base change. -/ |
| 29 | theorem isIso_properBaseChange_app_of_isAffineOpen |
| 30 | {k : Type u} [Field k] [IsAlgClosed k] |
| 31 | (Y X : Over (Spec (.of k))) [IsProper X.hom] [IsIntegral X.left] |
| 32 | (U : Y.left.Opens) (hU : IsAffineOpen U) : |
| 33 | IsIso ((fst Y X).left.app U) := by |
| 34 | have : CompactSpace X.left := QuasiCompact.compactSpace_of_compactSpace X.hom |
| 35 | have : IsLocallyNoetherian X.left := LocallyOfFiniteType.isLocallyNoetherian X.hom |
| 36 | have : IsNoetherian X.left := ⟨⟩ |
| 37 | have : QuasiSeparatedSpace X.left := inferInstance |
| 38 | let H := (IsPullback.of_hasPullback Y.hom X.hom).flip |
| 39 | have hUX : (⊤ : X.left.Opens) ≤ X.hom ⁻¹ᵁ ⊤ := le_rfl |
| 40 | have hUT : U ≤ Y.hom ⁻¹ᵁ ⊤ := le_top |
| 41 | have hUY : (fst Y X).left ⁻¹ᵁ U = |
| 42 | (snd Y X).left ⁻¹ᵁ ⊤ ⊓ (fst Y X).left ⁻¹ᵁ U := by simp |
| 43 | have hq := isIso_pushoutSection_of_isQuasiSeparated_of_flat_right H hUT hUX hUY |
| 44 | (isAffineOpen_top (Spec (.of k))) hU isCompact_univ isQuasiSeparated_univ |
| 45 | have hp := (isIso_pushoutSection_iff H hUT hUX hUY).mp hq |
| 46 | have : IsIso (X.hom.appLE ⊤ ⊤ hUX) := by |
| 47 | change IsIso (X.hom.appLE ⊤ (X.hom ⁻¹ᵁ ⊤) le_rfl) |
| 48 | rw [Scheme.Hom.appLE_eq_app] |
| 49 | exact isIso_appTop_of_proper_integral X.hom |
| 50 | have h := hp.isIso_inr_of_isIso |
| 51 | change IsIso ((fst Y X).left.appLE U ((fst Y X).left ⁻¹ᵁ U) le_rfl) at h |
| 52 | rw [Scheme.Hom.appLE_eq_app] at h |
| 53 | exact h |
| 54 | |
| 55 | /-- The structure sheaf of a proper integral scheme over an algebraically closed field |
| 56 | pushes forward to the structure sheaf after every scheme base change. -/ |
| 57 | def properBaseChangeStructureSheafIso |
| 58 | {k : Type u} [Field k] [IsAlgClosed k] |
| 59 | (Y X : Over (Spec (.of k))) [IsProper X.hom] [IsIntegral X.left] : |
| 60 | LineBundle.Construction.structureSheafModule Y.left ≅ |
| 61 | (Scheme.Modules.pushforward (fst Y X).left).obj (LineBundle.Construction.structureSheafModule (Y ⊗ X).left) := by |
| 62 | let q : LineBundle.Construction.structureSheafModule Y.left ⟶ |
| 63 | (Scheme.Modules.pushforward (fst Y X).left).obj (LineBundle.Construction.structureSheafModule (Y ⊗ X).left) := |
| 64 | SheafOfModules.unitToPushforwardObjUnit (fst Y X).left.toRingCatSheafHom |
| 65 | have : IsIso ((SheafOfModules.toSheaf Y.left.ringCatSheaf).map q) := by |
| 66 | apply TopCat.Sheaf.isIso_iff_isIso_basis |
| 67 | (B := fun U : Y.left.affineOpens ↦ U.1) |
| 68 | (by simpa only [Subtype.range_val] using Y.left.isBasis_affineOpens) |
| 69 | intro U |
| 70 | rw [ConcreteCategory.isIso_iff_bijective] |
| 71 | have := isIso_properBaseChange_app_of_isAffineOpen Y X U.1 U.2 |
| 72 | exact (ConcreteCategory.isIso_iff_bijective ((fst Y X).left.app U.1)).mp inferInstance |
| 73 | have : IsIso ((Scheme.Modules.toPresheaf Y.left).map q) := |
| 74 | inferInstanceAs (IsIso ((sheafToPresheaf _ _).map |
| 75 | ((SheafOfModules.toSheaf Y.left.ringCatSheaf).map q))) |
| 76 | have : IsIso q := isIso_of_reflects_iso q (Scheme.Modules.toPresheaf Y.left) |
| 77 | exact asIso q |
| 78 | |
| 79 | /-- Universal constancy on all open subsets, with no reducedness or finite-type |
| 80 | assumption on the base change. -/ |
| 81 | theorem isIso_properBaseChange_app |
| 82 | {k : Type u} [Field k] [IsAlgClosed k] |
| 83 | (Y X : Over (Spec (.of k))) [IsProper X.hom] [IsIntegral X.left] |
| 84 | (U : Y.left.Opens) : IsIso ((fst Y X).left.app U) := by |
| 85 | let e := properBaseChangeStructureSheafIso Y X |
| 86 | have h := (ConcreteCategory.isIso_iff_bijective (e.hom.app U)).mp inferInstance |
| 87 | rw [ConcreteCategory.isIso_iff_bijective] |
| 88 | exact h |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UniversalGlobalSections.Construction |