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.HilbertConstruction.Module.StalkExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.ModuleScalars |
| 3 | import Mathlib.Algebra.Category.Ring.FilteredColimits |
| 4 | |
| 5 | /-! # Module Stalk -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Structure.ModuleStalk |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The stalk of the structure module is the actual local ring, |
| 12 | linearly. Global scalar endomorphisms induce multiplication by their |
| 13 | germs on every module stalk. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | universe u |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | variable {X : Scheme.{u}} |
| 21 | |
| 22 | attribute [local instance] Module.StalkExactness.stalkModule |
| 23 | |
| 24 | def structureModuleStalkAddIso (x : X) : |
| 25 | (Line.Bundles.structureModule X).presheaf.stalk x ≅ |
| 26 | (forget₂ CommRingCat.{u} RingCat.{u} ⋙ forget₂ RingCat.{u} AddCommGrpCat.{u}).obj (X.presheaf.stalk x) := |
| 27 | colimit.isoColimitCocone ⟨_, isColimitOfPreserves |
| 28 | (forget₂ CommRingCat.{u} RingCat.{u} ⋙ forget₂ RingCat.{u} AddCommGrpCat.{u}) |
| 29 | (colimit.isColimit ((OpenNhds.inclusion x).op ⋙ X.presheaf))⟩ |
| 30 | |
| 31 | theorem structureModuleStalkAddIso_germ (x : X) (U : X.Opens) |
| 32 | (hx : x ∈ U) (r : Γ(X, U)) : |
| 33 | (structureModuleStalkAddIso x).hom ((Line.Bundles.structureModule X).presheaf.germ U x hx r) = |
| 34 | X.presheaf.germ U x hx r := by |
| 35 | have h : (Line.Bundles.structureModule X).presheaf.germ U x hx ≫ |
| 36 | (structureModuleStalkAddIso x).hom = |
| 37 | (forget₂ CommRingCat.{u} RingCat.{u} ⋙ forget₂ RingCat.{u} AddCommGrpCat.{u}).map (X.presheaf.germ U x hx) := |
| 38 | colimit.isoColimitCocone_ι_hom (C := AddCommGrpCat.{u}) .. |
| 39 | exact ConcreteCategory.congr_hom h r |
| 40 | |
| 41 | def structureModuleStalkEquiv (x : X) : |
| 42 | (Module.StalkExactness.moduleStalkFunctor x).obj (Line.Bundles.structureModule X) ≃ₗ[X.presheaf.stalk x] |
| 43 | X.presheaf.stalk x where |
| 44 | __ := (structureModuleStalkAddIso x).addCommGroupIsoToAddEquiv |
| 45 | map_smul' := by |
| 46 | intro r m |
| 47 | obtain ⟨U, hxU, r, rfl⟩ := X.presheaf.exists_germ_eq r |
| 48 | obtain ⟨V, hVU, hxV, m, rfl⟩ := |
| 49 | (Line.Bundles.structureModule X).presheaf.exists_le_germ_eq m hxU |
| 50 | let rV := X.presheaf.map (homOfLE hVU).op r |
| 51 | have hr : X.presheaf.germ V x hxV rV = X.presheaf.germ U x hxU r := |
| 52 | X.presheaf.germ_res_apply (homOfLE hVU) x hxV r |
| 53 | change (structureModuleStalkAddIso x).hom |
| 54 | (X.presheaf.germ U x hxU r • (Line.Bundles.structureModule X).presheaf.germ V x hxV m) = |
| 55 | X.presheaf.germ U x hxU r * |
| 56 | (show X.presheaf.stalk x from |
| 57 | (structureModuleStalkAddIso x).hom ((Line.Bundles.structureModule X).presheaf.germ V x hxV m)) |
| 58 | rw [← hr] |
| 59 | erw [← PresheafOfModules.germ_smul (R := X.presheaf) (Line.Bundles.structureModule X).val x V hxV, |
| 60 | structureModuleStalkAddIso_germ, structureModuleStalkAddIso_germ] |
| 61 | exact map_mul (X.presheaf.germ V x hxV).hom rV m |
| 62 | |
| 63 | def structureModuleStalkIso (x : X) : |
| 64 | (Module.StalkExactness.moduleStalkFunctor x).obj (Line.Bundles.structureModule X) ≅ |
| 65 | ModuleCat.of (X.presheaf.stalk x) (X.presheaf.stalk x) := |
| 66 | (structureModuleStalkEquiv x).toModuleIso |
| 67 | |
| 68 | theorem moduleStalkFunctor_globalScalar (x : X) (M : X.Modules) (r : Γ(X, ⊤)) : |
| 69 | (Module.StalkExactness.moduleStalkFunctor x).map (Global.ModuleScalars.globalModuleScalar M r) = |
| 70 | X.presheaf.germ ⊤ x trivial r • 𝟙 ((Module.StalkExactness.moduleStalkFunctor x).obj M) := by |
| 71 | apply ModuleCat.hom_ext |
| 72 | ext m |
| 73 | obtain ⟨U, hxU, m, rfl⟩ := M.presheaf.exists_germ_eq m |
| 74 | change (TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map |
| 75 | (Global.ModuleScalars.globalModuleScalar M r).mapPresheaf (M.presheaf.germ U x hxU m) = |
| 76 | X.presheaf.germ ⊤ x trivial r • M.presheaf.germ U x hxU m |
| 77 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply] |
| 78 | change M.presheaf.germ U x hxU |
| 79 | (X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op r • m) = _ |
| 80 | exact (PresheafOfModules.germ_smul (R := X.presheaf) M.val x U hxU _ m).trans |
| 81 | (congrArg (fun z : X.presheaf.stalk x => z • M.presheaf.germ U x hxU m) |
| 82 | (X.presheaf.germ_res_apply (homOfLE (show U ≤ ⊤ from le_top)) x hxU r)) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Structure.ModuleStalk |