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.CategoryTheory.Comma.Over.Basic |
| 2 | import Mathlib.CategoryTheory.Limits.IsConnected |
| 3 | |
| 4 | /-! # Over Post -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.OverPost.RingedModules |
| 7 | |
| 8 | /-! The functor on slices preserves their terminal objects and is therefore final. -/ |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 11 | |
| 12 | variable {C D : Type} [SmallCategory C] [SmallCategory D] (F : C ⥤ D) (U : C) |
| 13 | |
| 14 | theorem overPost_final : (Over.post (X := U) F).Final where |
| 15 | out V := by |
| 16 | let q : V ⟶ (Over.post (X := U) F).obj (Over.mk (𝟙 U)) := |
| 17 | Over.homMk V.hom (by |
| 18 | change V.hom ≫ F.map (𝟙 U) = V.hom |
| 19 | rw [F.map_id, Category.comp_id]) |
| 20 | let T : StructuredArrow V (Over.post (X := U) F) := StructuredArrow.mk q |
| 21 | have hT : IsTerminal T := IsTerminal.ofUniqueHom |
| 22 | (fun W => StructuredArrow.homMk (Over.homMk W.right.hom) (by |
| 23 | apply Over.OverMorphism.ext |
| 24 | exact Over.w W.hom)) |
| 25 | (fun W g => StructuredArrow.hom_ext _ _ (Over.mkIdTerminal.hom_ext _ _)) |
| 26 | exact CategoryTheory.isConnected_of_isTerminal _ hT |
| 27 | |
| 28 | end OAI.AlgebraicGeometry.Comparison.Betti.OverPost.RingedModules |