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.PointModulePresheaf |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf |
| 3 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 4 | |
| 5 | /-! # Point Module Functor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.PointModuleFunctor.Local |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The actual point-supported module presheaf satisfies the sheaf |
| 14 | condition: compatible local point values glue uniquely. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 17 | |
| 18 | variable {X : TopCat.{0}} (R : TopCat.Presheaf RingCat.{0} X) (x : X) |
| 19 | |
| 20 | theorem pointModulePresheaf_isSheaf (N : ModuleCat.{0} (R.stalk x)) : |
| 21 | TopCat.Presheaf.IsSheaf (C := AddCommGrpCat) (X := X) (PointModulePresheaf.Local.pointModulePresheaf R x N).presheaf := by |
| 22 | classical |
| 23 | apply (TopCat.Presheaf.isSheaf_iff_isSheafUniqueGluing (PointModulePresheaf.Local.pointModulePresheaf R x N).presheaf).2 |
| 24 | intro ι U a ha |
| 25 | let s : ∀ i, (x ∈ U i) → N := fun i hi => a i ⟨hi⟩ |
| 26 | have hs : ∀ i j (hi : x ∈ U i) (hj : x ∈ U j), s i hi = s j hj := by |
| 27 | intro i j hi hj |
| 28 | exact congrArg (fun b : PLift (x ∈ U i ⊓ U j) → N => b ⟨⟨hi, hj⟩⟩) (ha i j) |
| 29 | let idx (h : x ∈ iSup U) : ι := (Opens.mem_iSup.mp h).choose |
| 30 | have hidx (h : x ∈ iSup U) : x ∈ U (idx h) := (Opens.mem_iSup.mp h).choose_spec |
| 31 | let b : PLift (x ∈ iSup U) → N := fun h => s (idx h.down) (hidx h.down) |
| 32 | refine ⟨b, ?_, ?_⟩ |
| 33 | · intro i |
| 34 | funext hi |
| 35 | exact hs (idx ((le_iSup U i) hi.down)) i (hidx ((le_iSup U i) hi.down)) hi.down |
| 36 | · intro c hc |
| 37 | change PLift (x ∈ iSup U) → N at c |
| 38 | funext h |
| 39 | have hh := congrArg (fun v : PLift (x ∈ U (idx h.down)) → N => v ⟨hidx h.down⟩) (hc (idx h.down)) |
| 40 | exact hh |
| 41 | |
| 42 | def pointModuleSheaf (S : TopCat.Sheaf RingCat.{0} X) (x : X) |
| 43 | (N : ModuleCat.{0} (TopCat.Presheaf.stalk (C := RingCat) (X := X) S.obj x)) : |
| 44 | SheafOfModules.{0} S := |
| 45 | ⟨PointModulePresheaf.Local.pointModulePresheaf S.obj x N, pointModulePresheaf_isSheaf S.obj x N⟩ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | /-! The actual point-supported module constructions are functorial |
| 50 | in the module over the local ring. -/ |
| 51 | |
| 52 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 53 | |
| 54 | variable {X : TopCat.{0}} |
| 55 | |
| 56 | def pointModulePresheafFunctor (R : TopCat.Presheaf RingCat.{0} X) (x : X) : |
| 57 | ModuleCat.{0} (R.stalk x) ⥤ PresheafOfModules.{0} R where |
| 58 | obj := PointModulePresheaf.Local.pointModulePresheaf R x |
| 59 | map := PointModulePresheaf.Local.pointModulePresheafMap R x |
| 60 | map_id N := by |
| 61 | apply PresheafOfModules.hom_ext |
| 62 | intro U |
| 63 | apply ModuleCat.hom_ext |
| 64 | apply LinearMap.ext |
| 65 | intro a |
| 66 | funext hx |
| 67 | rfl |
| 68 | map_comp f g := by |
| 69 | apply PresheafOfModules.hom_ext |
| 70 | intro U |
| 71 | apply ModuleCat.hom_ext |
| 72 | apply LinearMap.ext |
| 73 | intro a |
| 74 | funext hx |
| 75 | rfl |
| 76 | |
| 77 | def pointModuleSheafFunctor (R : Sheaf (Opens.grothendieckTopology X) RingCat.{0}) (x : X) : |
| 78 | ModuleCat.{0} (TopCat.Presheaf.stalk (C := RingCat) (X := X) R.obj x) ⥤ SheafOfModules.{0} R where |
| 79 | obj := pointModuleSheaf R x |
| 80 | map f := ⟨PointModulePresheaf.Local.pointModulePresheafMap R.obj x f⟩ |
| 81 | map_id N := SheafOfModules.Hom.ext ((pointModulePresheafFunctor R.obj x).map_id N) |
| 82 | map_comp f g := SheafOfModules.Hom.ext ((pointModulePresheafFunctor R.obj x).map_comp f g) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.Comparison.Betti.PointModuleFunctor.Local |