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.RingModuleStalkFunctor |
| 2 | |
| 3 | /-! # Point Module Presheaf -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.PointModulePresheaf.Local |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Modules over a ring stalk give actual point-supported module |
| 10 | presheaves. Their sections are values indexed by proofs that the |
| 11 | chosen point belongs to the open set. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 14 | |
| 15 | variable {X : TopCat.{0}} (R : TopCat.Presheaf RingCat.{0} X) (x : X) |
| 16 | |
| 17 | def pointModuleSections (N : ModuleCat.{0} (R.stalk x)) (U : Opens X) : ModuleCat.{0} (R.obj (op U)) := |
| 18 | let (_h : PLift (x ∈ U)) : Module (R.obj (op U)) N := Module.compHom N (R.germ U x _h.down).hom |
| 19 | ModuleCat.of (R.obj (op U)) (PLift (x ∈ U) → N) |
| 20 | |
| 21 | def pointModulePresheaf (N : ModuleCat.{0} (R.stalk x)) : PresheafOfModules.{0} R where |
| 22 | obj U := pointModuleSections R x N U.unop |
| 23 | map {U V} h := ModuleCat.ofHom |
| 24 | (X := pointModuleSections R x N U.unop) |
| 25 | (Y := (ModuleCat.restrictScalars (R.map h).hom).obj (pointModuleSections R x N V.unop)) |
| 26 | { toFun a hx := a ⟨leOfHom h.unop hx.down⟩ |
| 27 | map_add' _ _ := rfl |
| 28 | map_smul' r a := by |
| 29 | funext hx |
| 30 | change R.germ U.unop x (leOfHom h.unop hx.down) r • a ⟨leOfHom h.unop hx.down⟩ = |
| 31 | R.germ V.unop x hx.down (R.map h r) • a ⟨leOfHom h.unop hx.down⟩ |
| 32 | rw [TopCat.Presheaf.germ_res_apply'] } |
| 33 | map_id U := by |
| 34 | apply ModuleCat.hom_ext |
| 35 | apply LinearMap.ext |
| 36 | intro a |
| 37 | funext hx |
| 38 | rfl |
| 39 | map_comp h k := by |
| 40 | apply ModuleCat.hom_ext |
| 41 | apply LinearMap.ext |
| 42 | intro a |
| 43 | funext hx |
| 44 | rfl |
| 45 | |
| 46 | def pointModulePresheafMap {N N' : ModuleCat.{0} (R.stalk x)} (f : N ⟶ N') : |
| 47 | pointModulePresheaf R x N ⟶ pointModulePresheaf R x N' where |
| 48 | app U := ModuleCat.ofHom |
| 49 | (X := pointModuleSections R x N U.unop) (Y := pointModuleSections R x N' U.unop) |
| 50 | { toFun a hx := f (a hx) |
| 51 | map_add' a b := by funext hx; exact map_add f.hom (a hx) (b hx) |
| 52 | map_smul' r a := by funext hx; exact f.hom.map_smul (R.germ U.unop x hx.down r) (a hx) } |
| 53 | naturality h := by |
| 54 | apply ModuleCat.hom_ext |
| 55 | apply LinearMap.ext |
| 56 | intro a |
| 57 | funext hx |
| 58 | rfl |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.Comparison.Betti.PointModulePresheaf.Local |