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.IntersectionTheory.ProjectionFormula.Tensor.SingleZero |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Monoidal.Closed |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Monoidal.Symmetric |
| 5 | import Mathlib.Algebra.Homology.BifunctorFlip |
| 6 | |
| 7 | /-! # Permutation -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Permutation |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Symmetry and permutations of the native total tensor complexes, |
| 14 | including the common total complex for the two iterated Tor computations. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 20 | |
| 21 | variable (R : Type) [CommRing R] |
| 22 | |
| 23 | local instance hasMapBifunctor (P Q : CochainComplex (ModuleCat.{0} R) ℤ) |
| 24 | (F : ModuleCat.{0} R ⥤ ModuleCat.{0} R ⥤ ModuleCat.{0} R) |
| 25 | [F.PreservesZeroMorphisms] [∀ X, (F.obj X).PreservesZeroMorphisms] : |
| 26 | HomologicalComplex.HasMapBifunctor P Q F (.up ℤ) := by |
| 27 | intro n |
| 28 | infer_instance |
| 29 | |
| 30 | local instance goodTensor₁₂ (P Q S : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 31 | HomologicalComplex.HasGoodTensor₁₂ P Q S := by |
| 32 | intro i j |
| 33 | exact CategoryTheory.Limits.preservesColimit_of_natIso _ |
| 34 | (BraidedCategory.tensorLeftIsoTensorRight (S.X j)) |
| 35 | |
| 36 | local instance goodTensor₂₃ (P Q S : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 37 | HomologicalComplex.HasGoodTensor₂₃ P Q S := by |
| 38 | intro i j |
| 39 | infer_instance |
| 40 | |
| 41 | def doubleBraidingIso (P Q : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 42 | (((curriedTensor (ModuleCat.{0} R)).mapBifunctorHomologicalComplex (.up ℤ) (.up ℤ)).obj P).obj Q ≅ |
| 43 | ((((curriedTensor (ModuleCat.{0} R)).flip).mapBifunctorHomologicalComplex (.up ℤ) (.up ℤ)).obj P).obj Q := |
| 44 | HomologicalComplex.Hom.isoOfComponents |
| 45 | (fun i => (NatIso.mapHomologicalComplex |
| 46 | ((BraidedCategory.curriedBraidingNatIso (ModuleCat.{0} R)).app (P.X i)) (.up ℤ)).app Q) (fun i j _ => by |
| 47 | apply HomologicalComplex.Hom.ext |
| 48 | funext k |
| 49 | exact (NatTrans.congr_app |
| 50 | ((BraidedCategory.curriedBraidingNatIso (ModuleCat.{0} R)).hom.naturality (P.d i j)) (Q.X k)).symm) |
| 51 | |
| 52 | def braiding (P Q : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 53 | HomologicalComplex.tensorObj P Q ≅ HomologicalComplex.tensorObj Q P := |
| 54 | HomologicalComplex₂.total.mapIso (doubleBraidingIso R P Q) (.up ℤ) ≪≫ |
| 55 | HomologicalComplex.mapBifunctorFlipIso Q P (curriedTensor (ModuleCat.{0} R)) (.up ℤ) |
| 56 | |
| 57 | def swapOuter (L N P : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 58 | HomologicalComplex.tensorObj L (HomologicalComplex.tensorObj N P) ≅ |
| 59 | HomologicalComplex.tensorObj P (HomologicalComplex.tensorObj N L) := |
| 60 | (HomologicalComplex.associator L N P).symm ≪≫ |
| 61 | braiding R (HomologicalComplex.tensorObj L N) P ≪≫ |
| 62 | ((curriedTensor (ModuleCat.{0} R)).map₂CochainComplex.obj P).mapIso (braiding R L N) |
| 63 | |
| 64 | def moduleMiddle (M : ModuleCat.{0} R) (P L : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 65 | HomologicalComplex.tensorObj L (((tensorLeft M).mapHomologicalComplex (.up ℤ)).obj P) ≅ |
| 66 | HomologicalComplex.tensorObj P (((tensorLeft M).mapHomologicalComplex (.up ℤ)).obj L) := |
| 67 | ((curriedTensor (ModuleCat.{0} R)).map₂CochainComplex.obj L).mapIso |
| 68 | (SingleZero.iso R M P).symm ≪≫ |
| 69 | swapOuter R L (SingleZero.singleZero R M) P ≪≫ |
| 70 | ((curriedTensor (ModuleCat.{0} R)).map₂CochainComplex.obj P).mapIso (SingleZero.iso R M L) |
| 71 | |
| 72 | def moduleMiddleHomology (M : ModuleCat.{0} R) (P L : CochainComplex (ModuleCat.{0} R) ℤ) (n : ℤ) : |
| 73 | (HomologicalComplex.tensorObj L (((tensorLeft M).mapHomologicalComplex (.up ℤ)).obj P)).homology n ≅ |
| 74 | (HomologicalComplex.tensorObj P (((tensorLeft M).mapHomologicalComplex (.up ℤ)).obj L)).homology n := |
| 75 | HomologicalComplex.homologyMapIso (moduleMiddle R M P L) n |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Permutation |