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 |
| 2 | |
| 3 | /-! # Product Hom Equiv -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ProductHomEquiv.Disjoint |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The linear universal property of products and normalization of adjoint images. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | variable {R : Type*} [CommRing R] {C : Type*} [Category* C] [Preadditive C] [Linear R C] |
| 14 | {ι : Type*} (A : C) (B : ι → C) [HasProduct B] |
| 15 | |
| 16 | def homProductLinearEquiv : (A ⟶ ∏ᶜ B) ≃ₗ[R] (∀ i, A ⟶ B i) where |
| 17 | toFun a i := a ≫ Pi.π B i |
| 18 | invFun a := Pi.lift a |
| 19 | left_inv a := by |
| 20 | apply Pi.hom_ext |
| 21 | intro i |
| 22 | exact Pi.lift_comp_π _ i |
| 23 | right_inv a := funext fun i => Pi.lift_comp_π a i |
| 24 | map_add' a b := by |
| 25 | funext i |
| 26 | change (a + b) ≫ Pi.π B i = a ≫ Pi.π B i + b ≫ Pi.π B i |
| 27 | simp only [Preadditive.add_comp] |
| 28 | map_smul' c a := by |
| 29 | funext i |
| 30 | change (c • a) ≫ Pi.π B i = c • (a ≫ Pi.π B i) |
| 31 | simp only [Linear.smul_comp] |
| 32 | |
| 33 | theorem homProductLinearEquiv_apply (a : A ⟶ ∏ᶜ B) (i : ι) : |
| 34 | homProductLinearEquiv (R := R) A B a i = a ≫ Pi.π B i := rfl |
| 35 | |
| 36 | variable {D : Type*} [Category* D] {F : C ⥤ D} {G : D ⥤ C} (adj : F ⊣ G) |
| 37 | |
| 38 | omit [Preadditive C] in |
| 39 | theorem homEquiv_map {X Y : C} (a : X ⟶ Y) : |
| 40 | adj.homEquiv X (F.obj Y) (F.map a) = a ≫ adj.unit.app Y := by |
| 41 | simpa only [Category.comp_id, adj.homEquiv_id] using |
| 42 | adj.homEquiv_naturality_left a (𝟙 (F.obj Y)) |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.Comparison.Betti.ProductHomEquiv.Disjoint |