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.SheafCohomology.Projective.LinearHom |
| 2 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 3 | |
| 4 | /-! # Module Hom Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.ModuleHomGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Gluing compatible local module maps on a covering family of opens. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.TopologicalSpace |
| 14 | universe u v |
| 15 | |
| 16 | def linearHomLocalSection {X : Scheme.{u}} (M N : X.Modules) (U : X.Opens) |
| 17 | (f : M.over U ⟶ N.over U) : (LinearHom.linearHomSheaf X.ringCatSheaf M N).obj.obj (.op U) := |
| 18 | ⟨LinearHom.linearHomToAmbient X.ringCatSheaf M N U f, ⟨f, rfl⟩⟩ |
| 19 | |
| 20 | def typeSectionsOfTop {X : TopCat.{u}} (F : X.Presheaf (Type u)) |
| 21 | (x : F.obj (.op ⊤)) : F.sections := |
| 22 | ⟨fun U => F.map U.unop.leTop.op x, fun {_ _} f => by |
| 23 | rw [← F.map_comp_apply] |
| 24 | congr 1⟩ |
| 25 | |
| 26 | theorem exists_moduleHom_of_compatible_localMaps {X : Scheme.{u}} |
| 27 | (M N : X.Modules) {ι : Type v} (U : ι → X.Opens) (hU : iSup U = ⊤) |
| 28 | (f : ∀ i, M.over (U i) ⟶ N.over (U i)) |
| 29 | (hf : TopCat.Presheaf.IsCompatible |
| 30 | (LinearHom.linearHomSheaf X.ringCatSheaf M N).obj U |
| 31 | (fun i => linearHomLocalSection M N (U i) (f i))) : |
| 32 | ∃ g : M ⟶ N, ∀ i, g.over (U i) = f i := by |
| 33 | let F : TopCat.Sheaf (Type u) X := LinearHom.linearHomSheaf X.ringCatSheaf M N |
| 34 | obtain ⟨x, hx, _⟩ := F.existsUnique_gluing' U ⊤ (fun i => (U i).leTop) |
| 35 | (by rw [hU]) (fun i => linearHomLocalSection M N (U i) (f i)) hf |
| 36 | let s := typeSectionsOfTop F.obj x |
| 37 | let g := LinearHom.moduleHomOfSections X.ringCatSheaf M N s |
| 38 | refine ⟨g, fun i => ?_⟩ |
| 39 | apply (_root_.SheafOfModules.toSheaf (X.ringCatSheaf.over (U i))).map_injective |
| 40 | have hi := LinearHom.moduleHomOfSections_over X.ringCatSheaf M N s (U i) |
| 41 | have hs := congrArg Subtype.val (hx i) |
| 42 | exact hi.trans hs |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.ModuleHomGluing |