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.LineBundle |
| 2 | import Mathlib.CategoryTheory.Sites.Whiskering |
| 3 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 4 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SchemeAbelianCohomology |
| 5 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.OpenCechHomologyIso |
| 6 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 7 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 8 | |
| 9 | /-! # Field Section Modules -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.FieldSectionModules |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Generic affine and line-bundle base change, isolated from the Openness |
| 16 | statement-dependent group-theoretic import chain. All constructions below |
| 17 | are proved here and retain the actual scheme-module section maps. -/ |
| 18 | |
| 19 | /-! Actual scheme-module Cech complexes over an arbitrary affine base ring. -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 22 | |
| 23 | namespace FieldBaseChange |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {R : Type u} [CommRing R] {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) |
| 28 | |
| 29 | def baseRingConstants : R →+* Γ(X, ⊤) := |
| 30 | ((Scheme.ΓSpecIso (.of R)).inv ≫ f.appTop).hom |
| 31 | |
| 32 | def modulesAsBaseRingSheaf : X.Modules ⥤ ArithmeticGeometry.OrdinaryLocus.Openness.ModuleSheafInjectives.Construction.ModuleSheaves R (Scheme.forgetToTop.obj X) := by |
| 33 | let H := ModuleCat.restrictScalars.{u} (baseRingConstants f) |
| 34 | have hH : (_root_.Opens.grothendieckTopology X).HasSheafCompose H := |
| 35 | hasSheafCompose_of_preservesLimitsOfSize (J := _root_.Opens.grothendieckTopology X) (F := H) |
| 36 | exact SheafOfModules.forgetToSheafModuleCat X.ringCatSheaf (op ⊤) |
| 37 | (initialOpOfTerminal isTerminalTop) ⋙ |
| 38 | @sheafCompose _ _ _ _ _ _ (_root_.Opens.grothendieckTopology X) H hH |
| 39 | |
| 40 | def baseRingUnderlyingAbelianIso (M : X.Modules) : |
| 41 | (ArithmeticGeometry.OrdinaryLocus.Openness.QuasicoherentAdditiveCech.Construction.moduleSheafToAbelian (.of R) (Scheme.forgetToTop.obj X)).obj |
| 42 | ((modulesAsBaseRingSheaf f).obj M) ≅ (ArithmeticGeometry.OrdinaryLocus.Openness.SchemeAbelianCohomology.Construction.schemeModulesToAbelian X).obj M := |
| 43 | Iso.refl _ |
| 44 | |
| 45 | abbrev schemeModuleCechShortComplex (M : X.Modules) {ι : Type u} (U : ι → X.Opens) : |
| 46 | ShortComplex (ModuleCat.{u} R) := |
| 47 | ArithmeticGeometry.OrdinaryLocus.Openness.OpenCechShortComplex.Construction.openModuleCechShortComplex ((modulesAsBaseRingSheaf f).obj M) U |
| 48 | |
| 49 | def schemeModuleCechGlobalSectionsEquiv (M : X.Modules) {ι : Type u} (U : ι → X.Opens) |
| 50 | (hU : iSup U = ⊤) : |
| 51 | ((modulesAsBaseRingSheaf f).obj M).obj.obj (op ⊤) ≃ₗ[R] |
| 52 | LinearMap.ker (schemeModuleCechShortComplex f M U).f.hom := |
| 53 | ArithmeticGeometry.OrdinaryLocus.Openness.OpenCechHomologyIso.Construction.openModuleCechGlobalSectionsEquiv ((modulesAsBaseRingSheaf f).obj M) U hU |
| 54 | |
| 55 | def schemeModuleCechHomologyIso (M : X.Modules) {ι : Type u} (U : ι → X.Opens) : |
| 56 | (schemeModuleCechShortComplex f M U).homology ≅ |
| 57 | ModuleCat.of R (ArithmeticGeometry.OrdinaryLocus.Openness.OpenCechCohomology.Construction.OpenCechH1 ((modulesAsBaseRingSheaf f).obj M) U) := |
| 58 | ArithmeticGeometry.OrdinaryLocus.Openness.OpenCechHomologyIso.Construction.openModuleCechHomologyIso ((modulesAsBaseRingSheaf f).obj M) U |
| 59 | |
| 60 | end FieldBaseChange |
| 61 | |
| 62 | /-! Flatness over the base of regular functions on an affine chart of a flat scheme. -/ |
| 63 | |
| 64 | namespace FieldBaseChange |
| 65 | |
| 66 | universe u |
| 67 | |
| 68 | variable {R : Type u} [CommRing R] {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) |
| 69 | |
| 70 | def baseRingSectionConstants (U : X.Opens) : R →+* Γ(X, U) := |
| 71 | ((Scheme.ΓSpecIso (.of R)).inv ≫ f.appLE ⊤ U (by simp)).hom |
| 72 | |
| 73 | def baseRingSectionsAlgebra (U : X.Opens) : CommAlgCat R := |
| 74 | letI := (baseRingSectionConstants f U).toAlgebra |
| 75 | CommAlgCat.of R Γ(X, U) |
| 76 | |
| 77 | def baseRingStructureSectionsIso (U : X.Opens) : |
| 78 | ModuleCat.of R (baseRingSectionsAlgebra f U) ≅ |
| 79 | ((modulesAsBaseRingSheaf f).obj (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X)).obj.obj (op U) := |
| 80 | (LinearEquiv.ofLinearMap |
| 81 | { toFun := fun x ↦ x, map_add' := fun _ _ ↦ rfl, map_smul' := fun _ _ ↦ rfl } |
| 82 | { toFun := fun x ↦ x, map_add' := fun _ _ ↦ rfl, map_smul' := fun _ _ ↦ rfl } |
| 83 | (by ext; rfl) (by ext; rfl)).toModuleIso |
| 84 | |
| 85 | theorem baseRingSectionConstants_flat [Flat f] (U : X.Opens) (hU : IsAffineOpen U) : |
| 86 | (baseRingSectionConstants f U).Flat := |
| 87 | (RingHom.Flat.of_bijective (Scheme.ΓSpecIso (.of R)).symm.commRingCatIsoToRingEquiv.bijective).comp |
| 88 | (f.flat_appLE (isAffineOpen_top _) hU (by simp)) |
| 89 | |
| 90 | theorem baseRingStructureSections_flat [Flat f] (U : X.Opens) (hU : IsAffineOpen U) : |
| 91 | Module.Flat R (((modulesAsBaseRingSheaf f).obj (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X)).obj.obj (op U)) := by |
| 92 | have hflat : Module.Flat R (baseRingSectionsAlgebra f U) := baseRingSectionConstants_flat f U hU |
| 93 | exact Module.Flat.of_linearEquiv (baseRingStructureSectionsIso f U).symm.toLinearEquiv |
| 94 | |
| 95 | end FieldBaseChange |
| 96 | |
| 97 | /-! Restriction and scheme pullback maps for regular functions as modules over an affine base ring. -/ |
| 98 | |
| 99 | namespace FieldBaseChange |
| 100 | |
| 101 | universe u |
| 102 | |
| 103 | variable {R : Type u} [CommRing R] {X Y : Scheme.{u}} (f : X ⟶ Spec (.of R)) |
| 104 | |
| 105 | theorem baseRingSectionConstants_pullback (h : Y ⟶ X) |
| 106 | (U : X.Opens) (V : Y.Opens) (hVU : V ≤ h ⁻¹ᵁ U) : |
| 107 | (h.appLE U V hVU).hom.comp (baseRingSectionConstants f U) = |
| 108 | baseRingSectionConstants (h ≫ f) V := by |
| 109 | change ((Scheme.ΓSpecIso (.of R)).inv ≫ f.appLE ⊤ U _ ≫ h.appLE U V hVU).hom = _ |
| 110 | exact congrArg (fun q : Γ(Spec (.of R), ⊤) ⟶ Γ(Y, V) ↦ |
| 111 | ((Scheme.ΓSpecIso (.of R)).inv ≫ q).hom) |
| 112 | (Scheme.Hom.appLE_comp_appLE h f ⊤ U V (by simp) hVU) |
| 113 | |
| 114 | def baseRingSectionsPullbackAlgHom (h : Y ⟶ X) |
| 115 | (U : X.Opens) (V : Y.Opens) (hVU : V ≤ h ⁻¹ᵁ U) : |
| 116 | baseRingSectionsAlgebra f U →ₐ[R] baseRingSectionsAlgebra (h ≫ f) V where |
| 117 | __ := (h.appLE U V hVU).hom |
| 118 | commutes' r := RingHom.congr_fun (baseRingSectionConstants_pullback f h U V hVU) r |
| 119 | |
| 120 | def baseRingSectionsPullback (h : Y ⟶ X) |
| 121 | (U : X.Opens) (V : Y.Opens) (hVU : V ≤ h ⁻¹ᵁ U) : |
| 122 | ((modulesAsBaseRingSheaf f).obj (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X)).obj.obj (op U) →ₗ[R] |
| 123 | ((modulesAsBaseRingSheaf (h ≫ f)).obj (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule Y)).obj.obj (op V) := |
| 124 | (baseRingStructureSectionsIso (h ≫ f) V).toLinearEquiv.toLinearMap.comp |
| 125 | ((baseRingSectionsPullbackAlgHom f h U V hVU).toLinearMap.comp |
| 126 | (baseRingStructureSectionsIso f U).symm.toLinearEquiv.toLinearMap) |
| 127 | |
| 128 | theorem baseRingSectionsPullback_apply (h : Y ⟶ X) |
| 129 | (U : X.Opens) (V : Y.Opens) (hVU : V ≤ h ⁻¹ᵁ U) |
| 130 | (x : ((modulesAsBaseRingSheaf f).obj (ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule X)).obj.obj (op U)) : |
| 131 | baseRingSectionsPullback f h U V hVU x = h.appLE U V hVU x := rfl |
| 132 | |
| 133 | end FieldBaseChange |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.FieldSectionModules |