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.NatIso |
| 2 | |
| 3 | /-! # Nat Iso Local Naturality -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.NatIsoLocalNaturality |
| 6 | |
| 7 | /-! A local naturality square is preserved by the given natural isomorphisms. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory |
| 10 | |
| 11 | variable {C A : Type*} [Category* C] [Category* A] {F F' G G' : C ⥤ A} |
| 12 | (eF : F ≅ F') (eG : G ≅ G') {c d : C} (f : c ⟶ d) |
| 13 | (a : F.obj c ⟶ G.obj c) (b : F.obj d ⟶ G.obj d) |
| 14 | |
| 15 | theorem square (h : F.map f ≫ b = a ≫ G.map f) : |
| 16 | F'.map f ≫ (eF.app d).inv ≫ b ≫ (eG.app d).hom = |
| 17 | (eF.app c).inv ≫ a ≫ (eG.app c).hom ≫ G'.map f := by |
| 18 | calc |
| 19 | _ = (F'.map f ≫ (eF.app d).inv) ≫ b ≫ (eG.app d).hom := by simp only [Category.assoc] |
| 20 | _ = ((eF.app c).inv ≫ F.map f) ≫ b ≫ (eG.app d).hom := |
| 21 | congrArg (fun t => t ≫ b ≫ (eG.app d).hom) (eF.inv.naturality f) |
| 22 | _ = (eF.app c).inv ≫ (F.map f ≫ b) ≫ (eG.app d).hom := by simp only [Category.assoc] |
| 23 | _ = (eF.app c).inv ≫ (a ≫ G.map f) ≫ (eG.app d).hom := by rw [h] |
| 24 | _ = (eF.app c).inv ≫ a ≫ (G.map f ≫ (eG.app d).hom) := by simp only [Category.assoc] |
| 25 | _ = (eF.app c).inv ≫ a ≫ (eG.app c).hom ≫ G'.map f := |
| 26 | congrArg (fun t => (eF.app c).inv ≫ a ≫ t) (eG.hom.naturality f) |
| 27 | |
| 28 | end OAI.NumberTheory.PadicHodge.IntegralComparison.NatIsoLocalNaturality |