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.StalkPointModuleAdjunction |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Abelian |
| 4 | |
| 5 | /-! # Stalk Exact -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Module.StalkExact.Local |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The actual module stalk functors preserve finite limits and |
| 14 | colimits. Their underlying abelian stalks detect monomorphisms. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 17 | |
| 18 | variable {X : TopCat.{0}} (R : Sheaf (Opens.grothendieckTopology X) RingCat.{0}) (x : X) |
| 19 | |
| 20 | def sheafRingModuleStalkForgetIso : |
| 21 | StalkPointModuleAdjunction.Local.sheafRingModuleStalk R x ⋙ |
| 22 | forget₂ (ModuleCat (TopCat.Presheaf.stalk (C := RingCat) (X := X) R.obj x)) AddCommGrpCat.{0} ≅ |
| 23 | SheafOfModules.toSheaf.{0} R ⋙ |
| 24 | (TopCat.Sheaf.forget AddCommGrpCat.{0} X ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{0} x) := |
| 25 | NatIso.ofComponents (fun _ => Iso.refl _) (fun _ => rfl) |
| 26 | |
| 27 | instance sheafRingModuleStalk_preservesFiniteLimits : |
| 28 | PreservesFiniteLimits (StalkPointModuleAdjunction.Local.sheafRingModuleStalk R x) := by |
| 29 | have hStalk : PreservesFiniteLimits (TopCat.Sheaf.forget AddCommGrpCat.{0} X ⋙ |
| 30 | TopCat.Presheaf.stalkFunctor AddCommGrpCat.{0} x) := inferInstance |
| 31 | have : PreservesFiniteLimits (SheafOfModules.toSheaf.{0} R ⋙ |
| 32 | (TopCat.Sheaf.forget AddCommGrpCat.{0} X ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{0} x)) := |
| 33 | @comp_preservesFiniteLimits _ _ _ _ _ _ (SheafOfModules.toSheaf.{0} R) |
| 34 | (TopCat.Sheaf.forget AddCommGrpCat.{0} X ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{0} x) |
| 35 | inferInstance hStalk |
| 36 | have := preservesFiniteLimits_of_natIso (sheafRingModuleStalkForgetIso R x).symm |
| 37 | exact preservesFiniteLimits_of_reflects_of_preserves (StalkPointModuleAdjunction.Local.sheafRingModuleStalk R x) |
| 38 | (forget₂ (ModuleCat (TopCat.Presheaf.stalk (C := RingCat) (X := X) R.obj x)) AddCommGrpCat.{0}) |
| 39 | |
| 40 | instance sheafRingModuleStalk_preservesFiniteColimits : |
| 41 | PreservesFiniteColimits (StalkPointModuleAdjunction.Local.sheafRingModuleStalk R x) := inferInstance |
| 42 | |
| 43 | end |
| 44 | |
| 45 | /-! Monomorphisms of actual sheaves of modules are detected by all |
| 46 | their native module stalks. -/ |
| 47 | |
| 48 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 49 | |
| 50 | variable {X : TopCat.{0}} {R : Sheaf (Opens.grothendieckTopology X) RingCat.{0}} |
| 51 | |
| 52 | theorem sheafModule_mono_of_stalk_mono {M N : SheafOfModules.{0} R} (f : M ⟶ N) |
| 53 | (hf : ∀ x, Mono ((StalkPointModuleAdjunction.Local.sheafRingModuleStalk R x).map f)) : Mono f := by |
| 54 | have hAb (x : X) : Mono ((TopCat.Presheaf.stalkFunctor AddCommGrpCat.{0} x).map |
| 55 | ((SheafOfModules.toSheaf.{0} R).map f).hom) := by |
| 56 | have := hf x |
| 57 | change Mono ((forget₂ (ModuleCat (TopCat.Presheaf.stalk (C := RingCat) (X := X) R.obj x)) |
| 58 | AddCommGrpCat.{0}).map ((StalkPointModuleAdjunction.Local.sheafRingModuleStalk R x).map f)) |
| 59 | infer_instance |
| 60 | exact (SheafOfModules.toSheaf.{0} R).mono_of_mono_map |
| 61 | (TopCat.Presheaf.mono_of_stalk_mono ((SheafOfModules.toSheaf.{0} R).map f)) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Comparison.Betti.Module.StalkExact.Local |