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.FlatModuleKanExtension |
| 2 | |
| 3 | /-! # Slice Kan Components -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SliceKanComponents |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: pointwise slice extension is indexed by discrete components |
| 11 | |
| 12 | The category computing left Kan extension from a slice has one terminal |
| 13 | object for every arrow into the slicing object. Its colimits therefore |
| 14 | reduce to coproducts. This gives exact module extension without any |
| 15 | assumption that the slice-forgetful functor preserves products. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable {C : Type u} [Category.{v} C] (U : C) (X : Cᵒᵖ) |
| 23 | |
| 24 | abbrev Index := CostructuredArrow (Over.forget U).op X |
| 25 | |
| 26 | def arrow (Y : Index U X) : X.unop ⟶ U := Y.hom.unop ≫ Y.left.unop.hom |
| 27 | |
| 28 | theorem arrow_map {Y Z : Index U X} (a : Y ⟶ Z) : arrow U X Y = arrow U X Z := by |
| 29 | have h := congrArg Quiver.Hom.unop (CostructuredArrow.w a) |
| 30 | change Z.hom.unop ≫ a.left.unop.left = Y.hom.unop at h |
| 31 | exact (congrArg (fun t => t ≫ Y.left.unop.hom) h.symm).trans |
| 32 | ((Category.assoc _ _ _).trans (congrArg (fun t => Z.hom.unop ≫ t) (Over.w a.left.unop))) |
| 33 | |
| 34 | def projection : Index U X ⥤ Discrete (X.unop ⟶ U) where |
| 35 | obj Y := ⟨arrow U X Y⟩ |
| 36 | map a := Discrete.eqToHom (arrow_map U X a) |
| 37 | |
| 38 | def inclusion : Discrete (X.unop ⟶ U) ⥤ Index U X := |
| 39 | Discrete.functor (fun β => CostructuredArrow.mk (Y := op (Over.mk β)) (𝟙 X)) |
| 40 | |
| 41 | def unitHom (Y : Index U X) : Y ⟶ (inclusion U X).obj ((projection U X).obj Y) := |
| 42 | CostructuredArrow.homMk (Over.homMk Y.hom.unop rfl).op (by |
| 43 | change Y.hom ≫ 𝟙 X = Y.hom |
| 44 | exact Category.comp_id _) |
| 45 | |
| 46 | theorem hom_unique {Y : Index U X} {β : Discrete (X.unop ⟶ U)} |
| 47 | (a b : Y ⟶ (inclusion U X).obj β) : a = b := by |
| 48 | apply CostructuredArrow.hom_ext |
| 49 | apply Quiver.Hom.unop_inj |
| 50 | apply (Over.forget U).map_injective |
| 51 | have ha := congrArg Quiver.Hom.unop (CostructuredArrow.w a) |
| 52 | have hb := congrArg Quiver.Hom.unop (CostructuredArrow.w b) |
| 53 | change 𝟙 X.unop ≫ a.left.unop.left = Y.hom.unop at ha |
| 54 | change 𝟙 X.unop ≫ b.left.unop.left = Y.hom.unop at hb |
| 55 | exact (Category.id_comp _).symm.trans (ha.trans (hb.symm.trans (Category.id_comp _))) |
| 56 | |
| 57 | def unit : 𝟭 (Index U X) ⟶ projection U X ⋙ inclusion U X where |
| 58 | app := unitHom U X |
| 59 | naturality _ _ _ := hom_unique U X _ _ |
| 60 | |
| 61 | def counit : inclusion U X ⋙ projection U X ⟶ 𝟭 (Discrete (X.unop ⟶ U)) where |
| 62 | app β := Discrete.eqToHom (by change 𝟙 X.unop ≫ β.as = β.as; exact Category.id_comp _) |
| 63 | |
| 64 | def adjunction : projection U X ⊣ inclusion U X where |
| 65 | unit := SliceKanComponents.unit U X |
| 66 | counit := SliceKanComponents.counit U X |
| 67 | left_triangle_components _ := Subsingleton.elim _ _ |
| 68 | right_triangle_components _ := hom_unique U X _ _ |
| 69 | |
| 70 | instance inclusion_final : (inclusion U X).Final := Functor.final_of_adjunction (adjunction U X) |
| 71 | |
| 72 | variable (R : Type (max u v)) [Ring R] |
| 73 | |
| 74 | theorem exact_colimits : HasExactColimitsOfShape (Index U X) (ModuleCat.{max u v} R) := by |
| 75 | have : AB4OfSize.{v} (ModuleCat.{max u v} R) := AB4OfSize_shrink _ |
| 76 | exact hasExactColimitsOfShape_of_final (ModuleCat.{max u v} R) (inclusion U X) |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SliceKanComponents |