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 Mathlib.Algebra.Category.ModuleCat.Presheaf |
| 2 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 3 | |
| 4 | /-! # Algebra Presheaf Scalars -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AlgebraPresheafScalars |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: restriction from coordinate-module presheaves to their actual base-ring scalars |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v w z |
| 17 | |
| 18 | variable (k : Type u) [CommRing k] {C : Type v} [Category.{w} C] |
| 19 | (H : Cᵒᵖ ⥤ CommAlgCat.{u} k) |
| 20 | |
| 21 | abbrev rings : Cᵒᵖ ⥤ RingCat.{u} := |
| 22 | H ⋙ forget₂ (CommAlgCat.{u} k) CommRingCat ⋙ forget₂ CommRingCat RingCat |
| 23 | |
| 24 | def obj (M : PresheafOfModules.{z} (rings k H)) : Cᵒᵖ ⥤ ModuleCat.{z} k where |
| 25 | obj U := (ModuleCat.restrictScalars (algebraMap k (H.obj U))).obj (M.obj U) |
| 26 | map {U V} f := ModuleCat.ofHom |
| 27 | (X := (ModuleCat.restrictScalars (algebraMap k (H.obj U))).obj (M.obj U)) |
| 28 | (Y := (ModuleCat.restrictScalars (algebraMap k (H.obj V))).obj (M.obj V)) |
| 29 | { toFun := fun x => M.map f x |
| 30 | map_add' := (M.map f).hom.map_add |
| 31 | map_smul' := by |
| 32 | intro r x |
| 33 | exact (M.map_smul f (algebraMap k (H.obj U) r) x).trans |
| 34 | (congrArg (fun a : H.obj V => a • (show M.obj V from M.map f x)) ((H.map f).hom.commutes r)) } |
| 35 | map_id U := by |
| 36 | apply ModuleCat.hom_ext |
| 37 | apply LinearMap.ext |
| 38 | intro x |
| 39 | change M.map (𝟙 U) x = x |
| 40 | rw [M.map_id] |
| 41 | rfl |
| 42 | map_comp f g := by |
| 43 | apply ModuleCat.hom_ext |
| 44 | apply LinearMap.ext |
| 45 | intro x |
| 46 | exact M.map_comp_apply f g x |
| 47 | |
| 48 | def map {M N : PresheafOfModules.{z} (rings k H)} (φ : M ⟶ N) : AlgebraPresheafScalars.obj k H M ⟶ AlgebraPresheafScalars.obj k H N where |
| 49 | app U := (ModuleCat.restrictScalars (algebraMap k (H.obj U))).map (φ.app U) |
| 50 | naturality _ _ f := by |
| 51 | apply ModuleCat.hom_ext |
| 52 | apply LinearMap.ext |
| 53 | intro x |
| 54 | exact PresheafOfModules.naturality_apply φ f x |
| 55 | |
| 56 | def functor : PresheafOfModules.{z} (rings k H) ⥤ (Cᵒᵖ ⥤ ModuleCat.{z} k) where |
| 57 | obj := AlgebraPresheafScalars.obj k H |
| 58 | map := AlgebraPresheafScalars.map k H |
| 59 | |
| 60 | instance additive : (functor k H).Additive where |
| 61 | map_add := rfl |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AlgebraPresheafScalars |