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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.TensorFunctor |
| 2 | import Mathlib.Algebra.Homology.HomologicalBicomplex |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 4 | import Mathlib.Algebra.Category.Grp.Abelian |
| 5 | |
| 6 | /-! # Cochain Bicomplex -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.CochainBicomplex |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual tensor bicomplex of two cochain complexes, with its underlying additive bicomplex. -/ |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped TensorProduct |
| 15 | universe u |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | |
| 19 | def tensorCochainMap (D : CochainComplex (ModuleCat.{u} R) ℕ) |
| 20 | {M N : ModuleCat.{u} R} (f : M ⟶ N) : |
| 21 | Module.TensorFunctor.ModuleTensorFunctor.complex M D ⟶ Module.TensorFunctor.ModuleTensorFunctor.complex N D where |
| 22 | f n := ModuleCat.ofHom (f.hom.rTensor (D.X n)) |
| 23 | comm' _ _ _ := by |
| 24 | apply ModuleCat.hom_ext |
| 25 | apply TensorProduct.ext |
| 26 | ext x y |
| 27 | rfl |
| 28 | |
| 29 | def tensorCochainFunctor (D : CochainComplex (ModuleCat.{u} R) ℕ) : |
| 30 | ModuleCat.{u} R ⥤ CochainComplex (ModuleCat.{u} R) ℕ where |
| 31 | obj M := Module.TensorFunctor.ModuleTensorFunctor.complex M D |
| 32 | map f := tensorCochainMap D f |
| 33 | map_id _ := by |
| 34 | apply HomologicalComplex.Hom.ext |
| 35 | funext n |
| 36 | apply ModuleCat.hom_ext |
| 37 | apply TensorProduct.ext |
| 38 | ext x y |
| 39 | rfl |
| 40 | map_comp _ _ := by |
| 41 | apply HomologicalComplex.Hom.ext |
| 42 | funext n |
| 43 | apply ModuleCat.hom_ext |
| 44 | apply TensorProduct.ext |
| 45 | ext x y |
| 46 | rfl |
| 47 | |
| 48 | instance tensorCochainFunctor_additive (D : CochainComplex (ModuleCat.{u} R) ℕ) : |
| 49 | (tensorCochainFunctor D).Additive where |
| 50 | map_add := by |
| 51 | intros |
| 52 | apply HomologicalComplex.Hom.ext |
| 53 | funext n |
| 54 | apply ModuleCat.hom_ext |
| 55 | apply TensorProduct.ext |
| 56 | ext x y |
| 57 | exact TensorProduct.add_tmul _ _ _ |
| 58 | |
| 59 | def tensorCochainBicomplex (C D : CochainComplex (ModuleCat.{u} R) ℕ) : |
| 60 | HomologicalComplex₂ (ModuleCat.{u} R) (.up ℕ) (.up ℕ) := |
| 61 | ((tensorCochainFunctor D).mapHomologicalComplex (.up ℕ)).obj C |
| 62 | |
| 63 | def tensorCochainBicomplexAb (C D : CochainComplex (ModuleCat.{u} R) ℕ) : |
| 64 | HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ) := |
| 65 | (((forget₂ (ModuleCat.{u} R) AddCommGrpCat.{u}).mapHomologicalComplex (.up ℕ)).mapHomologicalComplex |
| 66 | (.up ℕ)).obj (tensorCochainBicomplex C D) |
| 67 | |
| 68 | theorem tensorCochainBicomplexAb_row (C D : CochainComplex (ModuleCat.{u} R) ℕ) (p : ℕ) : |
| 69 | (tensorCochainBicomplexAb C D).X p = |
| 70 | ((forget₂ (ModuleCat.{u} R) AddCommGrpCat.{u}).mapHomologicalComplex (.up ℕ)).obj |
| 71 | (Module.TensorFunctor.ModuleTensorFunctor.complex (C.X p) D) := rfl |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.CochainBicomplex |