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.CategoryTheory.Limits.Final |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Terminal |
| 5 | |
| 6 | /-! # Bundles -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Line.Bundles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Line bundles for the PoincareBundle polarization descent construction |
| 14 | |
| 15 | Line bundles here are actual sheaves of modules, locally isomorphic to |
| 16 | the structure sheaf. Pullback and its action on isomorphism classes are |
| 17 | constructed from the existing sheaf-of-modules pullback functor. |
| 18 | No descent, ampleness, or representability assertion is assumed. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | /-- The structure sheaf, considered as a module over itself. -/ |
| 26 | def unitLine (X : Scheme.{u}) : X.Modules := |
| 27 | SheafOfModules.unit X.ringCatSheaf |
| 28 | |
| 29 | /-- Inverse image of open sets preserves the whole space, hence is final. -/ |
| 30 | theorem opensMap_final {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 31 | (TopologicalSpace.Opens.map f.base).Final := by |
| 32 | let F := TopologicalSpace.Opens.map f.base |
| 33 | have : PreservesLimit (Functor.empty.{0} Y.Opens) F := |
| 34 | preservesTerminal_of_iso F |
| 35 | (F.mapIso (terminalIsTerminal.uniqueUpToIso isTerminalTop) ≪≫ |
| 36 | eqToIso (show F.obj (⊤ : Y.Opens) = (⊤ : X.Opens) from by ext; simp [F]) ≪≫ |
| 37 | isTerminalTop.uniqueUpToIso terminalIsTerminal) |
| 38 | infer_instance |
| 39 | |
| 40 | /-- Pullback preserves the trivial line bundle. -/ |
| 41 | def pullbackUnitIso {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 42 | (Scheme.Modules.pullback f).obj (unitLine Y) ≅ unitLine X := by |
| 43 | have : (SheafOfModules.pushforward |
| 44 | (F := TopologicalSpace.Opens.map f.base) f.toRingCatSheafHom).IsRightAdjoint := |
| 45 | inferInstanceAs (Scheme.Modules.pushforward f).IsRightAdjoint |
| 46 | have := opensMap_final f |
| 47 | have : IsIso (SheafOfModules.pullbackObjUnitToUnit |
| 48 | (F := TopologicalSpace.Opens.map f.base) f.toRingCatSheafHom) := |
| 49 | SheafOfModules.instIsIsoPullbackObjUnitToUnitOfFinal f.toRingCatSheafHom |
| 50 | let e : (SheafOfModules.pullback f.toRingCatSheafHom).obj |
| 51 | (SheafOfModules.unit Y.ringCatSheaf) ≅ SheafOfModules.unit X.ringCatSheaf := |
| 52 | asIso (SheafOfModules.pullbackObjUnitToUnit |
| 53 | (F := TopologicalSpace.Opens.map f.base) f.toRingCatSheafHom) |
| 54 | exact ⟨e.hom, e.inv, e.hom_inv_id, e.inv_hom_id⟩ |
| 55 | |
| 56 | /-- A line bundle is locally free of rank one, expressed by local |
| 57 | isomorphisms with the structure sheaf on Zariski open neighborhoods. -/ |
| 58 | def IsLine {X : Scheme.{u}} (M : X.Modules) : Prop := |
| 59 | ∀ x : X, ∃ U : X.Opens, x ∈ U ∧ |
| 60 | Nonempty ((Scheme.Modules.pullback U.ι).obj M ≅ unitLine U) |
| 61 | |
| 62 | theorem isLine_unit (X : Scheme.{u}) : IsLine (unitLine X) := by |
| 63 | intro x |
| 64 | exact ⟨⊤, trivial, ⟨pullbackUnitIso (⊤ : X.Opens).ι⟩⟩ |
| 65 | |
| 66 | theorem IsLine.of_iso {X : Scheme.{u}} {M N : X.Modules} |
| 67 | (hM : IsLine M) (e : M ≅ N) : IsLine N := by |
| 68 | intro x |
| 69 | obtain ⟨U, hx, ⟨hU⟩⟩ := hM x |
| 70 | exact ⟨U, hx, ⟨(Scheme.Modules.pullback U.ι).mapIso e.symm ≪≫ hU⟩⟩ |
| 71 | |
| 72 | /-- Local trivializations of a line bundle pull back along any morphism |
| 73 | of schemes, including inseparable morphisms. -/ |
| 74 | theorem IsLine.pullback {X Y : Scheme.{u}} {M : Y.Modules} |
| 75 | (hM : IsLine M) (f : X ⟶ Y) : IsLine ((Scheme.Modules.pullback f).obj M) := by |
| 76 | intro x |
| 77 | obtain ⟨U, hx, ⟨eU⟩⟩ := hM (f x) |
| 78 | refine ⟨f ⁻¹ᵁ U, hx, ⟨?_⟩⟩ |
| 79 | exact (Scheme.Modules.pullbackComp (f ⁻¹ᵁ U).ι f).app M ≪≫ |
| 80 | (Scheme.Modules.pullbackCongr (morphismRestrict_ι f U).symm).app M ≪≫ |
| 81 | ((Scheme.Modules.pullbackComp (f ∣_ U) U.ι).app M).symm ≪≫ |
| 82 | (Scheme.Modules.pullback (f ∣_ U)).mapIso eU ≪≫ |
| 83 | pullbackUnitIso (f ∣_ U) |
| 84 | |
| 85 | /-- A genuine algebraic line bundle with its local-freeness property. -/ |
| 86 | structure LineBundle (X : Scheme.{u}) where |
| 87 | sheaf : X.Modules |
| 88 | isLine : IsLine sheaf |
| 89 | |
| 90 | namespace LineBundle |
| 91 | |
| 92 | def trivial (X : Scheme.{u}) : LineBundle X := ⟨unitLine X, isLine_unit X⟩ |
| 93 | |
| 94 | def pullback {X Y : Scheme.{u}} (f : X ⟶ Y) (L : LineBundle Y) : LineBundle X := |
| 95 | ⟨(Scheme.Modules.pullback f).obj L.sheaf, L.isLine.pullback f⟩ |
| 96 | |
| 97 | /-- Isomorphism of the actual module sheaves, independent of choices |
| 98 | of local trivialization. -/ |
| 99 | def isoSetoid (X : Scheme.{u}) : Setoid (LineBundle X) where |
| 100 | r L M := Nonempty (L.sheaf ≅ M.sheaf) |
| 101 | iseqv := ⟨fun L => ⟨Iso.refl L.sheaf⟩, |
| 102 | fun ⟨e⟩ => ⟨e.symm⟩, fun ⟨e⟩ ⟨d⟩ => ⟨e ≪≫ d⟩⟩ |
| 103 | |
| 104 | end LineBundle |
| 105 | |
| 106 | /-- Isomorphism classes of algebraic line bundles. The tensor product |
| 107 | group structure is not built into this definition. -/ |
| 108 | def LineBundleClass (X : Scheme.{u}) := Quotient (LineBundle.isoSetoid X) |
| 109 | |
| 110 | namespace LineBundleClass |
| 111 | |
| 112 | def mk {X : Scheme.{u}} (L : LineBundle X) : LineBundleClass X := Quotient.mk _ L |
| 113 | |
| 114 | def pullback {X Y : Scheme.{u}} (f : X ⟶ Y) : LineBundleClass Y → LineBundleClass X := |
| 115 | Quotient.map (LineBundle.pullback f) (fun _ _ ⟨e⟩ => |
| 116 | ⟨(Scheme.Modules.pullback f).mapIso e⟩) |
| 117 | |
| 118 | @[simp] |
| 119 | theorem pullback_mk {X Y : Scheme.{u}} (f : X ⟶ Y) (L : LineBundle Y) : |
| 120 | LineBundleClass.pullback f (LineBundleClass.mk L) = LineBundleClass.mk (L.pullback f) := rfl |
| 121 | |
| 122 | @[simp] |
| 123 | theorem pullback_id {X : Scheme.{u}} (L : LineBundleClass X) : |
| 124 | LineBundleClass.pullback (𝟙 X) L = L := by |
| 125 | induction L using Quotient.inductionOn with |
| 126 | | _ L => |
| 127 | apply Quotient.sound |
| 128 | exact ⟨(Scheme.Modules.pullbackId X).app L.sheaf⟩ |
| 129 | |
| 130 | theorem pullback_comp {X Y Z : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ Z) |
| 131 | (L : LineBundleClass Z) : LineBundleClass.pullback (f ≫ g) L = LineBundleClass.pullback f (LineBundleClass.pullback g L) := by |
| 132 | induction L using Quotient.inductionOn with |
| 133 | | _ L => |
| 134 | apply Quotient.sound |
| 135 | exact ⟨((Scheme.Modules.pullbackComp f g).app L.sheaf).symm⟩ |
| 136 | |
| 137 | end LineBundleClass |
| 138 | |
| 139 | /-- The presheaf of isomorphism classes of algebraic line bundles. |
| 140 | Relative Picard functors additionally quotient by bundles from the base |
| 141 | and sheafify; neither operation is silently assumed here. -/ |
| 142 | def lineBundleClassFunctor : Scheme.{u}ᵒᵖ ⥤ Type (u + 1) where |
| 143 | obj X := LineBundleClass X.unop |
| 144 | map f := ↾(LineBundleClass.pullback f.unop) |
| 145 | map_id X := by ext L; exact LineBundleClass.pullback_id L |
| 146 | map_comp f g := by ext L; exact LineBundleClass.pullback_comp g.unop f.unop L |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Line.Bundles |