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.Homology.DerivedCategory.Ext.Linear |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Basic |
| 3 | |
| 4 | /-! # Module Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the original Ext groups as a coefficient-module-valued functor |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | open Abelian |
| 17 | |
| 18 | universe u v z t |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 21 | (R : Type t) [CommRing R] [Linear R C] (X : C) (n : ℕ) |
| 22 | |
| 23 | def functor : C ⥤ ModuleCat.{z} R where |
| 24 | obj Y := ModuleCat.of R (Ext.{z} X Y n) |
| 25 | map f := ModuleCat.ofHom ((Ext.mk₀ f).postcompOfLinear R X (add_zero n)) |
| 26 | map_id Y := by |
| 27 | apply ModuleCat.hom_ext |
| 28 | apply LinearMap.ext |
| 29 | intro α |
| 30 | exact congrArg (fun g : AddCommGrpCat.of (Ext.{z} X Y n) ⟶ AddCommGrpCat.of (Ext.{z} X Y n) => g α) |
| 31 | ((extFunctorObj X n).map_id Y) |
| 32 | map_comp {Y Z T} f g := by |
| 33 | apply ModuleCat.hom_ext |
| 34 | apply LinearMap.ext |
| 35 | intro α |
| 36 | exact congrArg (fun h : AddCommGrpCat.of (Ext.{z} X Y n) ⟶ AddCommGrpCat.of (Ext.{z} X T n) => h α) |
| 37 | ((extFunctorObj X n).map_comp f g) |
| 38 | |
| 39 | instance additive : (functor R X n).Additive where |
| 40 | map_add {Y Z} f g := by |
| 41 | apply ModuleCat.hom_ext |
| 42 | apply LinearMap.ext |
| 43 | intro α |
| 44 | exact congrArg (fun h : AddCommGrpCat.of (Ext.{z} X Y n) ⟶ AddCommGrpCat.of (Ext.{z} X Z n) => h α) |
| 45 | ((extFunctorObj X n).map_add (f := f) (g := g)) |
| 46 | |
| 47 | def forgetIso : functor R X n ⋙ forget₂ (ModuleCat.{z} R) AddCommGrpCat ≅ extFunctorObj X n := |
| 48 | NatIso.ofComponents (fun Y => (AddEquiv.refl (Ext.{z} X Y n)).toAddCommGrpIso) (by |
| 49 | intro Y Z f |
| 50 | apply AddCommGrpCat.hom_ext |
| 51 | ext α |
| 52 | rfl) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |