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.Functor.Category |
| 2 | import Mathlib.CategoryTheory.Iso |
| 3 | |
| 4 | /-! # Iso Middle Cancellation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Functor.IsoMiddleCancellation.FunctorIsoMiddleCancellation |
| 7 | |
| 8 | /-! Applying a functor cancels the same intermediate comparison |
| 9 | isomorphism in a composite of original comparison maps. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory |
| 12 | |
| 13 | variable {C D E : Type*} [Category* C] [Category* D] [Category* E] |
| 14 | (S : C ⥤ D) (H : D ⥤ E) {M : D} {X Y Z : C} |
| 15 | (a : M ⟶ S.obj Y) (e : X ≅ Y) (b : Y ⟶ Z) |
| 16 | |
| 17 | theorem square : H.map (a ≫ S.map e.inv) ≫ (S ⋙ H).map (e.hom ≫ b) = H.map a ≫ (S ⋙ H).map b := by |
| 18 | have h := ((S ⋙ H).mapIso e).inv_hom_id_assoc ((S ⋙ H).map b) |
| 19 | exact (congrArg₂ (fun x y => x ≫ y) (H.map_comp a (S.map e.inv)) |
| 20 | ((S ⋙ H).map_comp e.hom b)).trans |
| 21 | ((Category.assoc _ _ _).trans (congrArg (fun q => H.map a ≫ q) h)) |
| 22 | |
| 23 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Functor.IsoMiddleCancellation.FunctorIsoMiddleCancellation |