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.Comparison.Betti.RingModuleStalkMap |
| 2 | import Mathlib.Topology.Sheaves.Abelian |
| 3 | import Mathlib.Algebra.Category.Grp.AB |
| 4 | |
| 5 | /-! # Ring Module Stalk Functor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.RingModuleStalkFunctor.Local |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual module stalks form an additive functor to modules over |
| 12 | the ring stalk; forgetting scalars gives the original abelian stalk. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | variable {X : TopCat.{0}} (R : TopCat.Presheaf RingCat.{0} X) (x : X) |
| 17 | |
| 18 | def ringModuleStalk : PresheafOfModules.{0} R ⥤ ModuleCat.{0} (R.stalk x) where |
| 19 | obj M := ModuleCat.of (R.stalk x) (TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := X) M.presheaf x) |
| 20 | map f := ModuleCat.ofHom (RingModuleStalkMap.Local.ringModuleStalkMap f x) |
| 21 | map_id M := by |
| 22 | apply ModuleCat.hom_ext |
| 23 | apply LinearMap.ext |
| 24 | intro m |
| 25 | exact ConcreteCategory.congr_hom |
| 26 | ((PresheafOfModules.toPresheaf R ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map_id M) m |
| 27 | map_comp f g := by |
| 28 | apply ModuleCat.hom_ext |
| 29 | apply LinearMap.ext |
| 30 | intro m |
| 31 | exact ConcreteCategory.congr_hom |
| 32 | ((PresheafOfModules.toPresheaf R ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map_comp f g) m |
| 33 | |
| 34 | instance ringModuleStalk_additive : (ringModuleStalk R x).Additive := by |
| 35 | constructor |
| 36 | intro M N f g |
| 37 | apply ModuleCat.hom_ext |
| 38 | apply LinearMap.ext |
| 39 | intro m |
| 40 | have h₁ := congrArg (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map |
| 41 | ((PresheafOfModules.toPresheaf R).map_add (f := f) (g := g)) |
| 42 | have h₂ := (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map_add |
| 43 | (f := (PresheafOfModules.toPresheaf R).map f) (g := (PresheafOfModules.toPresheaf R).map g) |
| 44 | exact ConcreteCategory.congr_hom (h₁.trans h₂) m |
| 45 | |
| 46 | def ringModuleStalkForgetIso : |
| 47 | ringModuleStalk R x ⋙ forget₂ (ModuleCat (R.stalk x)) AddCommGrpCat ≅ |
| 48 | PresheafOfModules.toPresheaf R ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat x := |
| 49 | NatIso.ofComponents (fun _ => Iso.refl _) (fun _ => rfl) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.Comparison.Betti.RingModuleStalkFunctor.Local |