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.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |
| 2 | |
| 3 | /-! # Contravariant Module Functor -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The original Ext groups, with their coefficient modules, are contravariant in their first argument. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory Opposite |
| 12 | |
| 13 | open Abelian |
| 14 | |
| 15 | universe u v z t |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 18 | (R : Type t) [CommRing R] [Linear R C] (Y : C) (n : ℕ) |
| 19 | |
| 20 | def functor : Cᵒᵖ ⥤ ModuleCat.{z} R where |
| 21 | obj X := ModuleCat.of R (Ext.{z} X.unop Y n) |
| 22 | map f := ModuleCat.ofHom ((Ext.mk₀ f.unop).precompOfLinear R Y (zero_add n)) |
| 23 | map_id X := by |
| 24 | apply ModuleCat.hom_ext |
| 25 | apply LinearMap.ext |
| 26 | intro α |
| 27 | exact Ext.mk₀_id_comp α |
| 28 | map_comp f g := by |
| 29 | apply ModuleCat.hom_ext |
| 30 | apply LinearMap.ext |
| 31 | intro α |
| 32 | exact (Ext.mk₀_comp_mk₀_assoc g.unop f.unop α).symm |
| 33 | |
| 34 | instance additive : (functor R Y n).Additive where |
| 35 | map_add {X X'} f g := by |
| 36 | apply ModuleCat.hom_ext |
| 37 | apply LinearMap.ext |
| 38 | intro α |
| 39 | change Ext.{z} X.unop Y n at α |
| 40 | change (Ext.mk₀ (f.unop + g.unop)).comp α (zero_add n) = |
| 41 | (Ext.mk₀ f.unop).comp α (zero_add n) + (Ext.mk₀ g.unop).comp α (zero_add n) |
| 42 | rw [Ext.mk₀_add, Ext.add_comp] |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor |