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 | /-! # Iso Section Square -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.IsoSectionSquare |
| 6 | |
| 7 | /-! A section comparison square transported through the given chart isomorphisms. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory |
| 10 | |
| 11 | variable {D : Type*} [Category* D] {AU GU AC GC AV GV N U V : D} |
| 12 | (a : AU ≅ GU) (b : AC ≅ GC) (c : AV ≅ GV) |
| 13 | (e : AC ⟶ AV) (s : AU ⟶ AC) (r : GU ⟶ N) (q : N ⟶ GC) (t : GC ⟶ GV) |
| 14 | (u : AU ⟶ U) (v : AV ⟶ V) (w : AC ⟶ V) (k : U ⟶ V) |
| 15 | |
| 16 | theorem square (h₁ : a.hom ≫ r ≫ q = s ≫ b.hom) |
| 17 | (h₂ : b.hom ≫ t = e ≫ c.hom) (h₃ : u ≫ k = s ≫ w) (h₄ : e ≫ v = w) : |
| 18 | (a.inv ≫ u) ≫ k = r ≫ q ≫ t ≫ c.inv ≫ v := by |
| 19 | have h₂' : b.hom ≫ t ≫ c.inv ≫ v = e ≫ v := by |
| 20 | simpa only [Category.assoc, Iso.hom_inv_id_assoc] using |
| 21 | congrArg (fun z => z ≫ c.inv ≫ v) h₂ |
| 22 | have h' : a.hom ≫ r ≫ q ≫ t ≫ c.inv ≫ v = s ≫ w := by |
| 23 | calc |
| 24 | _ = s ≫ b.hom ≫ t ≫ c.inv ≫ v := by |
| 25 | simpa only [Category.assoc] using congrArg (fun z => z ≫ t ≫ c.inv ≫ v) h₁ |
| 26 | _ = s ≫ w := by rw [h₂', h₄] |
| 27 | exact (Category.assoc _ _ _).trans (a.inv_comp_eq.mpr (h₃.trans h'.symm)) |
| 28 | |
| 29 | end OAI.NumberTheory.PadicHodge.IntegralComparison.IsoSectionSquare |