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 | |
| 4 | /-! # Bundles -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Line bundles over arbitrary schemes and their contravariant functor of |
| 12 | isomorphism classes. These are actual sheaves of modules locally isomorphic |
| 13 | to the structure sheaf, not abstract polarization parameters. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | /-- The structure sheaf considered as a sheaf of modules over itself. -/ |
| 21 | abbrev structureModule (X : Scheme.{u}) : X.Modules := |
| 22 | SheafOfModules.unit X.ringCatSheaf |
| 23 | |
| 24 | /-- Pullback preserves the structure module. -/ |
| 25 | def structureModulePullbackIso {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 26 | (Scheme.Modules.pullback f).obj (structureModule Y) ≅ structureModule X := by |
| 27 | have : (SheafOfModules.pushforward f.toRingCatSheafHom).IsRightAdjoint := |
| 28 | inferInstanceAs (Scheme.Modules.pushforward f).IsRightAdjoint |
| 29 | have : (Functor.fromPUnit.{0} (⊤ : Y.Opens)).Final := |
| 30 | Functor.final_fromPUnit_of_isTerminal CategoryTheory.Limits.isTerminalTop |
| 31 | have : (Functor.fromPUnit.{0} (⊤ : X.Opens)).Final := |
| 32 | Functor.final_fromPUnit_of_isTerminal CategoryTheory.Limits.isTerminalTop |
| 33 | have : ((Functor.fromPUnit.{0} (⊤ : Y.Opens)) ⋙ |
| 34 | TopologicalSpace.Opens.map f.base).Final := |
| 35 | Functor.final_of_natIso (F := Functor.fromPUnit.{0} (⊤ : X.Opens)) |
| 36 | (Discrete.natIso (fun _ => Iso.refl _)) |
| 37 | have : (TopologicalSpace.Opens.map f.base).Final := |
| 38 | Functor.final_of_final_comp (Functor.fromPUnit.{0} (⊤ : Y.Opens)) _ |
| 39 | have := SheafOfModules.instIsIsoPullbackObjUnitToUnitOfFinal f.toRingCatSheafHom |
| 40 | exact (asIso (SheafOfModules.pullbackObjUnitToUnit f.toRingCatSheafHom) : |
| 41 | (SheafOfModules.pullback f.toRingCatSheafHom).obj |
| 42 | (SheafOfModules.unit Y.ringCatSheaf) ≅ SheafOfModules.unit X.ringCatSheaf) |
| 43 | |
| 44 | /-- An algebraic line bundle over an arbitrary scheme. -/ |
| 45 | structure LineBundle (X : Scheme.{u}) where |
| 46 | sheaf : X.Modules |
| 47 | locallyTrivial : ∀ x : X, ∃ U : X.Opens, x ∈ U ∧ |
| 48 | Nonempty ((Scheme.Modules.pullback U.ι).obj sheaf ≅ structureModule U.toScheme) |
| 49 | |
| 50 | namespace LineBundle |
| 51 | |
| 52 | variable {X Y Z : Scheme.{u}} |
| 53 | |
| 54 | /-- The trivial line bundle. -/ |
| 55 | def trivial (X : Scheme.{u}) : LineBundle X where |
| 56 | sheaf := structureModule X |
| 57 | locallyTrivial x := ⟨⊤, by trivial, ⟨structureModulePullbackIso _⟩⟩ |
| 58 | |
| 59 | /-- Base change of a line bundle, with local triviality proved by pulling |
| 60 | back its frames to the preimages of the trivializing opens. -/ |
| 61 | def pullback (f : X ⟶ Y) (L : LineBundle Y) : LineBundle X where |
| 62 | sheaf := (Scheme.Modules.pullback f).obj L.sheaf |
| 63 | locallyTrivial x := by |
| 64 | obtain ⟨U, hx, ⟨e⟩⟩ := L.locallyTrivial (f x) |
| 65 | refine ⟨f ⁻¹ᵁ U, hx, ⟨?_⟩⟩ |
| 66 | exact (Scheme.Modules.pullbackComp (f ⁻¹ᵁ U).ι f).app L.sheaf ≪≫ |
| 67 | (Scheme.Modules.pullbackCongr (morphismRestrict_ι f U).symm).app L.sheaf ≪≫ |
| 68 | (Scheme.Modules.pullbackComp (f ∣_ U) U.ι).symm.app L.sheaf ≪≫ |
| 69 | (Scheme.Modules.pullback (f ∣_ U)).mapIso e ≪≫ |
| 70 | structureModulePullbackIso (f ∣_ U) |
| 71 | |
| 72 | /-- Isomorphism of line bundles is isomorphism of their module sheaves. -/ |
| 73 | def isoSetoid (X : Scheme.{u}) : Setoid (LineBundle X) where |
| 74 | r L M := Nonempty (L.sheaf ≅ M.sheaf) |
| 75 | iseqv := { |
| 76 | refl L := ⟨Iso.refl L.sheaf⟩ |
| 77 | symm := fun ⟨e⟩ => ⟨e.symm⟩ |
| 78 | trans := fun ⟨e⟩ ⟨f⟩ => ⟨e ≪≫ f⟩ } |
| 79 | |
| 80 | /-- Isomorphism classes of actual algebraic line bundles. -/ |
| 81 | def IsoClass (X : Scheme.{u}) := Quotient (isoSetoid X) |
| 82 | |
| 83 | /-- The isomorphism class of a line bundle. -/ |
| 84 | def classOf (L : LineBundle X) : IsoClass X := Quotient.mk _ L |
| 85 | |
| 86 | /-- The class of the structure sheaf. -/ |
| 87 | def trivialClass (X : Scheme.{u}) : IsoClass X := Quotient.mk _ (LineBundle.trivial X) |
| 88 | |
| 89 | /-- Pullback on isomorphism classes does not depend on the representative. -/ |
| 90 | def pullbackClass (f : X ⟶ Y) : IsoClass Y → IsoClass X := |
| 91 | Quotient.map (LineBundle.pullback f) (fun _ _ ⟨e⟩ => |
| 92 | ⟨(Scheme.Modules.pullback f).mapIso e⟩) |
| 93 | |
| 94 | @[simp] |
| 95 | theorem pullbackClass_trivial (f : X ⟶ Y) : |
| 96 | pullbackClass f (trivialClass Y) = trivialClass X := by |
| 97 | apply Quotient.sound |
| 98 | exact ⟨structureModulePullbackIso f⟩ |
| 99 | |
| 100 | @[simp] |
| 101 | theorem pullbackClass_id (q : IsoClass X) : pullbackClass (𝟙 X) q = q := by |
| 102 | refine Quotient.inductionOn q (fun L => ?_) |
| 103 | apply Quotient.sound |
| 104 | exact ⟨(Scheme.Modules.pullbackId X).app L.sheaf⟩ |
| 105 | |
| 106 | theorem pullbackClass_comp (f : X ⟶ Y) (g : Y ⟶ Z) (q : IsoClass Z) : |
| 107 | pullbackClass (f ≫ g) q = pullbackClass f (pullbackClass g q) := by |
| 108 | refine Quotient.inductionOn q (fun L => ?_) |
| 109 | apply Quotient.sound |
| 110 | exact ⟨(Scheme.Modules.pullbackComp f g).symm.app L.sheaf⟩ |
| 111 | |
| 112 | /-- Pullback along an isomorphism gives an equivalence on line-bundle classes. -/ |
| 113 | def pullbackIso (e : X ≅ Y) : IsoClass Y ≃ IsoClass X where |
| 114 | toFun := pullbackClass e.hom |
| 115 | invFun := pullbackClass e.inv |
| 116 | left_inv q := (pullbackClass_comp e.inv e.hom q).symm.trans |
| 117 | ((congrArg (fun f : Y ⟶ Y => pullbackClass f q) e.inv_hom_id).trans |
| 118 | (pullbackClass_id q)) |
| 119 | right_inv q := (pullbackClass_comp e.hom e.inv q).symm.trans |
| 120 | ((congrArg (fun f : X ⟶ X => pullbackClass f q) e.hom_inv_id).trans |
| 121 | (pullbackClass_id q)) |
| 122 | |
| 123 | end LineBundle |
| 124 | |
| 125 | /-- The contravariant functor of isomorphism classes of line bundles. -/ |
| 126 | def lineBundleClassFunctor : Scheme.{u}ᵒᵖ ⥤ Type (u + 1) where |
| 127 | obj X := LineBundle.IsoClass X.unop |
| 128 | map f := TypeCat.ofHom (LineBundle.pullbackClass f.unop) |
| 129 | map_id X := by |
| 130 | ext q |
| 131 | exact LineBundle.pullbackClass_id q |
| 132 | map_comp f g := by |
| 133 | ext q |
| 134 | exact LineBundle.pullbackClass_comp g.unop f.unop q |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles |