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.AbelianModuli.ReferenceFamily.ModuleLocalUnitLifts |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleLocality |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ShortExact |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.LocallyFree |
| 5 | import Mathlib.CategoryTheory.Sites.Spaces |
| 6 | |
| 7 | /-! # Finite Free Local Frames -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.FiniteFreeLocalFrames |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! An actual extension by the structure module splits on algebraic |
| 16 | open neighborhoods. No quasicoherence of its middle term is assumed. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | def moduleOpenFunctor (X : Scheme.{0}) (U : X.Opens) : |
| 21 | X.Modules ⥤ SheafOfModules.{0} (X.ringCatSheaf.over U) := |
| 22 | SheafOfModules.overFunctor X.ringCatSheaf U |
| 23 | |
| 24 | instance moduleOver_additive (X : Scheme.{0}) (U : X.Opens) : |
| 25 | (moduleOpenFunctor X U).Additive where |
| 26 | map_add := rfl |
| 27 | |
| 28 | instance moduleOver_preservesZeroMorphisms (X : Scheme.{0}) (U : X.Opens) : |
| 29 | (moduleOpenFunctor X U).PreservesZeroMorphisms where |
| 30 | map_zero _ _ := rfl |
| 31 | |
| 32 | theorem moduleOver_preservesFiniteLimits (X : Scheme.{0}) (U : X.Opens) : |
| 33 | PreservesFiniteLimits (moduleOpenFunctor X U) := by |
| 34 | let F := moduleOpenFunctor X U |
| 35 | let G := (Scheme.Modules.overEquiv U).functor |
| 36 | have hR : PreservesFiniteLimits (Scheme.Modules.restrictFunctor U.ι) := |
| 37 | Picard.PoincareBundle.ModuleLocality.restrict_preservesFiniteLimits U.ι |
| 38 | let : PreservesFiniteLimits (F ⋙ G) := |
| 39 | @preservesFiniteLimits_of_natIso _ _ _ _ _ _ (Scheme.Modules.overFunctorEquiv U).symm hR |
| 40 | exact preservesFiniteLimits_of_reflects_of_preserves F G |
| 41 | |
| 42 | theorem moduleOver_preservesFiniteColimits (X : Scheme.{0}) (U : X.Opens) : |
| 43 | PreservesFiniteColimits (moduleOpenFunctor X U) := by |
| 44 | let F := moduleOpenFunctor X U |
| 45 | let G := (Scheme.Modules.overEquiv U).functor |
| 46 | have hP : PreservesFiniteColimits (Scheme.Modules.pullback U.ι) := inferInstance |
| 47 | have hR : PreservesFiniteColimits (Scheme.Modules.restrictFunctor U.ι) := |
| 48 | @preservesFiniteColimits_of_natIso _ _ _ _ _ _ (Scheme.Modules.restrictFunctorIsoPullback U.ι).symm hP |
| 49 | let : PreservesFiniteColimits (F ⋙ G) := |
| 50 | @preservesFiniteColimits_of_natIso _ _ _ _ _ _ (Scheme.Modules.overFunctorEquiv U).symm hR |
| 51 | exact preservesFiniteColimits_of_reflects_of_preserves F G |
| 52 | |
| 53 | theorem moduleOver_shortExact {X : Scheme.{0}} (S : ShortComplex X.Modules) |
| 54 | (hS : S.ShortExact) (U : X.Opens) : |
| 55 | (S.map (moduleOpenFunctor X U)).ShortExact := by |
| 56 | let : PreservesFiniteLimits (moduleOpenFunctor X U) := |
| 57 | moduleOver_preservesFiniteLimits X U |
| 58 | let : PreservesFiniteColimits (moduleOpenFunctor X U) := |
| 59 | moduleOver_preservesFiniteColimits X U |
| 60 | let : Mono S.f := hS.mono_f |
| 61 | let : Epi S.g := hS.epi_g |
| 62 | exact hS.map _ |
| 63 | |
| 64 | theorem unitQuotientExtension_locally_split {X : Scheme.{0}} {L M : X.Modules} |
| 65 | (i : L ⟶ M) (p : M ⟶ HilbertConstruction.Line.Bundles.structureModule X) (hip : i ≫ p = 0) |
| 66 | (hS : (ShortComplex.mk i p hip).ShortExact) (x : X) : |
| 67 | ∃ U : X.Opens, x ∈ U ∧ |
| 68 | Nonempty ((ShortComplex.mk i p hip).map (moduleOpenFunctor X U)).Splitting := by |
| 69 | let : Epi p := hS.epi_g |
| 70 | obtain ⟨U, hx, z, hz⟩ := ModuleLocalUnitLifts.module_epi_unit_local_lift p x |
| 71 | have hU := moduleOver_shortExact (ShortComplex.mk i p hip) hS U |
| 72 | exact ⟨U, hx, ⟨ShortComplex.Splitting.ofExactOfSection _ hU.exact |
| 73 | (SheafCohomology.Projective.OverGenerator.overGeneratorHom M U z) (ModuleLocalUnitLifts.local_lift_splits_over p U z hz) hU.mono_f⟩⟩ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | /-! Actual finite free frames over algebraic opens provide the original |
| 78 | quasicoherence and finite-type data for module sheaves. -/ |
| 79 | |
| 80 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 81 | |
| 82 | def structureBinaryFreeIso {X : Scheme.{0}} (U : X.Opens) : |
| 83 | SheafOfModules.free (R := X.ringCatSheaf.over U) (PUnit ⊕ PUnit) ≅ |
| 84 | SheafOfModules.unit (X.ringCatSheaf.over U) ⊞ SheafOfModules.unit (X.ringCatSheaf.over U) := |
| 85 | (SheafOfModules.freeSumIso PUnit PUnit).symm ≪≫ |
| 86 | coprod.mapIso (coproductUniqueIso (fun _ : PUnit => SheafOfModules.unit (X.ringCatSheaf.over U))) |
| 87 | (coproductUniqueIso (fun _ : PUnit => SheafOfModules.unit (X.ringCatSheaf.over U))) ≪≫ |
| 88 | (biprod.isoCoprod _ _).symm |
| 89 | |
| 90 | def finiteFrameGenerators {X : Scheme.{0}} (M : X.Modules) (U : X.Opens) (J : Type) |
| 91 | (e : SheafOfModules.free (R := X.ringCatSheaf.over U) J ≅ M.over U) : |
| 92 | (M.over U).GeneratingSections := |
| 93 | (SheafOfModules.free.generatingSections J).ofEpi e.hom |
| 94 | |
| 95 | theorem finiteFrameGenerators_isIso {X : Scheme.{0}} (M : X.Modules) (U : X.Opens) (J : Type) |
| 96 | (e : SheafOfModules.free (R := X.ringCatSheaf.over U) J ≅ M.over U) : |
| 97 | IsIso (finiteFrameGenerators M U J e).π := by |
| 98 | unfold finiteFrameGenerators |
| 99 | rw [SheafOfModules.GeneratingSections.ofEpi_π, SheafOfModules.free.generatingSections_π] |
| 100 | change IsIso ((𝟙 _) ≫ e.hom) |
| 101 | rw [Category.id_comp] |
| 102 | infer_instance |
| 103 | |
| 104 | def finiteFreeFrameData {X : Scheme.{0}} (M : X.Modules) {I : Type} (U : I → X.Opens) |
| 105 | (hU : iSup U = ⊤) (J : Type) |
| 106 | (e : ∀ i, SheafOfModules.free (R := X.ringCatSheaf.over (U i)) J ≅ M.over (U i)) : |
| 107 | M.LocalGeneratorsData where |
| 108 | I := I |
| 109 | X := U |
| 110 | coversTop := by |
| 111 | rw [Opens.coversTop_iff] |
| 112 | exact IsOpenCover.mk hU |
| 113 | generators i := finiteFrameGenerators M (U i) J (e i) |
| 114 | |
| 115 | theorem finiteFreeFrameData_locallyFree {X : Scheme.{0}} (M : X.Modules) {I : Type} (U : I → X.Opens) |
| 116 | (hU : iSup U = ⊤) (J : Type) |
| 117 | (e : ∀ i, SheafOfModules.free (R := X.ringCatSheaf.over (U i)) J ≅ M.over (U i)) : |
| 118 | (finiteFreeFrameData M U hU J e).IsLocallyFreeData where |
| 119 | isIso i := finiteFrameGenerators_isIso M (U i) J (e i) |
| 120 | |
| 121 | theorem finiteFreeFrameData_coherent {X : Scheme.{0}} (M : X.Modules) {I : Type} (U : I → X.Opens) |
| 122 | (hU : iSup U = ⊤) (J : Type) [Finite J] |
| 123 | (e : ∀ i, SheafOfModules.free (R := X.ringCatSheaf.over (U i)) J ≅ M.over (U i)) : |
| 124 | M.IsQuasicoherent ∧ M.IsFiniteType := by |
| 125 | let q := finiteFreeFrameData M U hU J e |
| 126 | let : q.IsLocallyFreeData := finiteFreeFrameData_locallyFree M U hU J e |
| 127 | refine ⟨q.quasiCoherentData.isQuasicoherent, ⟨q, ?_⟩⟩ |
| 128 | constructor |
| 129 | intro i |
| 130 | exact ⟨inferInstanceAs (Finite J)⟩ |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.FiniteFreeLocalFrames |