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 | /-! # Coordinate Square -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CoordinateSquare.Comparison |
| 6 | |
| 7 | /-! A comparison square is preserved when the two source objects are expressed in isomorphic coordinates. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory |
| 10 | |
| 11 | universe u v |
| 12 | |
| 13 | variable {C : Type u} [Category.{v} C] |
| 14 | {A A' B B' U V : C} (e : A ≅ A') (d : B ≅ B') |
| 15 | (f : A ⟶ B) (f' : A' ⟶ B') (a : A ⟶ U) (b : B ⟶ V) (g : U ⟶ V) |
| 16 | |
| 17 | theorem conjugate (hcoord : f ≫ d.hom = e.hom ≫ f') (hcmp : f ≫ b = a ≫ g) : |
| 18 | f' ≫ (d.inv ≫ b) = (e.inv ≫ a) ≫ g := by |
| 19 | apply (cancel_epi e.hom).mp |
| 20 | simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 21 | rw [← Category.assoc e.hom f', ← hcoord] |
| 22 | simpa only [Category.assoc, Iso.hom_inv_id_assoc] using hcmp |
| 23 | |
| 24 | theorem map_postcompose {D : Type*} [Category D] (H : C ⥤ D) |
| 25 | {P K L L' : C} {W : D} (a : P ⟶ K) (b : K ⟶ L) (e : L ≅ L') |
| 26 | (c : H.obj K ⟶ W) (d : H.obj L ⟶ W) (h : H.map b ≫ d = c) : |
| 27 | H.map (a ≫ b ≫ e.hom) ≫ (H.map e.inv ≫ d) = H.map a ≫ c := by |
| 28 | have he : H.map e.hom ≫ H.map e.inv ≫ d = d := |
| 29 | (Category.assoc _ _ _).symm.trans |
| 30 | ((congrArg (fun f => f ≫ d) (H.map_comp e.hom e.inv).symm).trans |
| 31 | ((congrArg (fun f => H.map f ≫ d) e.hom_inv_id).trans |
| 32 | ((congrArg (fun f => f ≫ d) (H.map_id L)).trans (Category.id_comp d)))) |
| 33 | rw [H.map_comp, H.map_comp] |
| 34 | simp only [Category.assoc] |
| 35 | rw [he, h] |
| 36 | |
| 37 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CoordinateSquare.Comparison |