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.Iso |
| 2 | |
| 3 | /-! # Compared Family Morphism -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.ComparedFamilyMorphism |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A commuting morphism comparison retains its equation when both |
| 10 | source conventions are changed through a natural isomorphism. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | theorem compared_family_morphism {C : Type*} [Category* C] |
| 15 | {G H G' H' A D : C} (cA : G ≅ G') (cD : H ≅ H') (eA : G ≅ A) (eD : H ≅ D) |
| 16 | (m : G ⟶ H) (m' : G' ⟶ H') (f : A ⟶ D) |
| 17 | (hc : m ≫ cD.hom = cA.hom ≫ m') (he : eA.hom ≫ f = m ≫ eD.hom) : |
| 18 | (cA.symm ≪≫ eA).hom ≫ f = m' ≫ (cD.symm ≪≫ eD).hom := by |
| 19 | change (cA.inv ≫ eA.hom) ≫ f = m' ≫ (cD.inv ≫ eD.hom) |
| 20 | apply (cancel_epi cA.hom).mp |
| 21 | simp only [Category.assoc, cA.hom_inv_id_assoc] |
| 22 | rw [← Category.assoc cA.hom, ← hc, Category.assoc, cD.hom_inv_id_assoc] |
| 23 | exact he |
| 24 | |
| 25 | end |
| 26 | |
| 27 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.ComparedFamilyMorphism |