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.Functor |
| 2 | import Mathlib.CategoryTheory.Functor.Category |
| 3 | |
| 4 | /-! # Cochain Map -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Constant.CochainMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Postcomposition of an actual constant-presheaf cochain map. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | variable {C D E : Type*} [Category* C] [Category* D] [Category* E] |
| 15 | [HasZeroMorphisms D] [HasZeroMorphisms E] |
| 16 | (G : D ⥤ E) [G.PreservesZeroMorphisms] |
| 17 | |
| 18 | local instance const_zero_D : (Functor.const C : D ⥤ C ⥤ D).PreservesZeroMorphisms where |
| 19 | map_zero _ _ := rfl |
| 20 | local instance const_zero_E : (Functor.const C : E ⥤ C ⥤ E).PreservesZeroMorphisms where |
| 21 | map_zero _ _ := rfl |
| 22 | local instance whisker_zero : ((Functor.whiskeringRight C D E).obj G).PreservesZeroMorphisms where |
| 23 | map_zero X Y := by |
| 24 | apply NatTrans.ext |
| 25 | funext V |
| 26 | exact G.map_zero _ _ |
| 27 | |
| 28 | variable (M : CochainComplex D ℕ) (P : CochainComplex (C ⥤ D) ℕ) |
| 29 | (a : ((Functor.const C).mapHomologicalComplex (.up ℕ)).obj M ⟶ P) |
| 30 | |
| 31 | def map : ((Functor.const C).mapHomologicalComplex (.up ℕ)).obj |
| 32 | ((G.mapHomologicalComplex (.up ℕ)).obj M) ⟶ |
| 33 | ((((Functor.whiskeringRight C D E).obj G).mapHomologicalComplex (.up ℕ)).obj P) where |
| 34 | f q := |
| 35 | { app V := G.map ((a.f q).app V) |
| 36 | naturality V W f := by |
| 37 | change 𝟙 _ ≫ G.map ((a.f q).app W) = |
| 38 | G.map ((a.f q).app V) ≫ G.map ((P.X q).map f) |
| 39 | have h : (a.f q).app W = (a.f q).app V ≫ (P.X q).map f := |
| 40 | (Category.id_comp _).symm.trans ((a.f q).naturality f) |
| 41 | exact (Category.id_comp _).trans |
| 42 | ((congrArg G.map h).trans (G.map_comp _ _)) } |
| 43 | comm' i j _ := by |
| 44 | apply NatTrans.ext |
| 45 | funext V |
| 46 | change G.map ((a.f i).app V) ≫ G.map ((P.d i j).app V) = |
| 47 | G.map (M.d i j) ≫ G.map ((a.f j).app V) |
| 48 | exact (G.map_comp _ _).symm.trans |
| 49 | ((congrArg G.map (congrArg (fun b => b.app V) (a.comm i j))).trans |
| 50 | (G.map_comp _ _)) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Constant.CochainMap |