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 Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.PullbackFree |
| 3 | import Mathlib.AlgebraicGeometry.Restrict |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Terminal |
| 5 | |
| 6 | /-! # Line Bundle -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Line bundles as actual locally trivial sheaves of modules on schemes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | def structureSheafModule (X : Scheme.{u}) : X.Modules := |
| 20 | SheafOfModules.unit X.ringCatSheaf |
| 21 | |
| 22 | /-- A line bundle is a sheaf locally isomorphic to the structure sheaf. -/ |
| 23 | def IsLineBundle {X : Scheme.{u}} (M : X.Modules) : Prop := |
| 24 | ∀ x : X, ∃ U : X.Opens, x ∈ U ∧ |
| 25 | Nonempty ((Scheme.Modules.pullback U.ι).obj M ≅ structureSheafModule U.toScheme) |
| 26 | |
| 27 | theorem opensMap_final {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 28 | (TopologicalSpace.Opens.map f.base).Final := by |
| 29 | let F := TopologicalSpace.Opens.map f.base |
| 30 | let eY : ⊤_ Y.Opens ≅ (⊤ : Y.Opens) := terminalIsoIsTerminal isTerminalTop |
| 31 | let eX : ⊤_ X.Opens ≅ (⊤ : X.Opens) := terminalIsoIsTerminal isTerminalTop |
| 32 | have he : F.obj (⊤ : Y.Opens) = (⊤ : X.Opens) := rfl |
| 33 | have : PreservesLimit (Functor.empty.{0} Y.Opens) F := |
| 34 | preservesTerminal_of_iso F (F.mapIso eY ≪≫ eqToIso he ≪≫ eX.symm) |
| 35 | infer_instance |
| 36 | |
| 37 | /-- Pulling back the structure sheaf as a module gives the structure sheaf. -/ |
| 38 | def pullbackStructureSheafIso {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 39 | (Scheme.Modules.pullback f).obj (structureSheafModule Y) ≅ structureSheafModule X := by |
| 40 | have : (SheafOfModules.pushforward.{u} f.toRingCatSheafHom).IsRightAdjoint := |
| 41 | inferInstanceAs (Scheme.Modules.pushforward f).IsRightAdjoint |
| 42 | have : (TopologicalSpace.Opens.map f.base).Final := opensMap_final f |
| 43 | have : IsIso (SheafOfModules.pullbackObjUnitToUnit |
| 44 | (F := TopologicalSpace.Opens.map f.base) f.toRingCatSheafHom) := |
| 45 | SheafOfModules.instIsIsoPullbackObjUnitToUnitOfFinal f.toRingCatSheafHom |
| 46 | let e := asIso (SheafOfModules.pullbackObjUnitToUnit |
| 47 | (F := TopologicalSpace.Opens.map f.base) f.toRingCatSheafHom) |
| 48 | exact e |
| 49 | |
| 50 | theorem isLineBundle_structureSheaf (X : Scheme.{u}) : IsLineBundle (structureSheafModule X) := by |
| 51 | intro x |
| 52 | exact ⟨⊤, trivial, ⟨pullbackStructureSheafIso (⊤ : X.Opens).ι⟩⟩ |
| 53 | |
| 54 | theorem isLineBundle_of_iso {X : Scheme.{u}} {M N : X.Modules} |
| 55 | (e : M ≅ N) (hM : IsLineBundle M) : IsLineBundle N := by |
| 56 | intro x |
| 57 | obtain ⟨U, hx, ⟨hU⟩⟩ := hM x |
| 58 | exact ⟨U, hx, ⟨((Scheme.Modules.pullback U.ι).mapIso e).symm ≪≫ hU⟩⟩ |
| 59 | |
| 60 | /-- Pullback along any scheme morphism preserves line bundles. -/ |
| 61 | theorem isLineBundle_pullback {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 62 | (M : Y.Modules) (hM : IsLineBundle M) : |
| 63 | IsLineBundle ((Scheme.Modules.pullback f).obj M) := by |
| 64 | intro x |
| 65 | obtain ⟨U, hx, ⟨e⟩⟩ := hM (f x) |
| 66 | let V := f ⁻¹ᵁ U |
| 67 | refine ⟨V, hx, ⟨?_⟩⟩ |
| 68 | exact ((Scheme.Modules.pullbackComp V.ι f).app M) ≪≫ |
| 69 | ((Scheme.Modules.pullbackCongr (morphismRestrict_ι f U).symm).app M) ≪≫ |
| 70 | ((Scheme.Modules.pullbackComp (f ∣_ U) U.ι).app M).symm ≪≫ |
| 71 | (Scheme.Modules.pullback (f ∣_ U)).mapIso e ≪≫ |
| 72 | pullbackStructureSheafIso (f ∣_ U) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction |