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.Preadditive.Biproducts |
| 2 | |
| 3 | /-! # Coproduct Matrix Components -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.CoproductMatrixComponents |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Components determine maps between finite coproducts. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | universe u v w |
| 13 | variable {C : Type u} [Category.{v} C] [Preadditive C] |
| 14 | [HasFiniteBiproducts C] |
| 15 | |
| 16 | def finiteCoproductProjection {ι : Type w} [Fintype ι] (M : ι → C) (i : ι) : |
| 17 | (∐ M) ⟶ M i := (biproduct.isoCoproduct M).inv ≫ biproduct.π M i |
| 18 | |
| 19 | theorem finiteCoproductProjection_hom_ext {ι : Type w} [Fintype ι] (M : ι → C) |
| 20 | {N : C} {f g : N ⟶ ∐ M} |
| 21 | (h : ∀ i, f ≫ finiteCoproductProjection M i = g ≫ finiteCoproductProjection M i) : f = g := by |
| 22 | apply (cancel_mono (biproduct.isoCoproduct M).inv).mp |
| 23 | apply biproduct.hom_ext |
| 24 | intro i |
| 25 | exact (Category.assoc _ _ _).trans ((h i).trans (Category.assoc _ _ _).symm) |
| 26 | |
| 27 | theorem finiteCoproduct_matrix_ext {ι κ : Type w} [Fintype ι] [Fintype κ] |
| 28 | (M : ι → C) (N : κ → C) {f g : (∐ M) ⟶ ∐ N} |
| 29 | (h : ∀ i j, |
| 30 | Sigma.ι M i ≫ f ≫ finiteCoproductProjection N j = |
| 31 | Sigma.ι M i ≫ g ≫ finiteCoproductProjection N j) : f = g := by |
| 32 | apply Sigma.hom_ext |
| 33 | intro i |
| 34 | apply finiteCoproductProjection_hom_ext N |
| 35 | intro j |
| 36 | exact (Category.assoc _ _ _).trans ((h i j).trans (Category.assoc _ _ _).symm) |
| 37 | |
| 38 | def finiteCoproductEncodedMatrix {ι κ : Type w} [Fintype ι] [Fintype κ] |
| 39 | (M : ι → C) (N : κ → C) {P : κ → ι → Type*} |
| 40 | (e : ∀ j i, (M i ⟶ N j) ≃ P j i) (f : (∐ M) ⟶ ∐ N) : ∀ j i, P j i := |
| 41 | fun j i => e j i (Sigma.ι M i ≫ f ≫ finiteCoproductProjection N j) |
| 42 | |
| 43 | theorem finiteCoproductEncodedMatrix_injective {ι κ : Type w} [Fintype ι] [Fintype κ] |
| 44 | (M : ι → C) (N : κ → C) {P : κ → ι → Type*} |
| 45 | (e : ∀ j i, (M i ⟶ N j) ≃ P j i) : |
| 46 | Function.Injective (finiteCoproductEncodedMatrix M N e) := by |
| 47 | intro f g h |
| 48 | apply finiteCoproduct_matrix_ext M N |
| 49 | intro i j |
| 50 | apply (e j i).injective |
| 51 | exact congrArg (fun a => a j i) h |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.CoproductMatrixComponents |