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.CocycleHomology |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SplitSequenceCochain |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.CochainShift |
| 4 | import Mathlib.Algebra.Homology.HomotopyCategory.Triangulated |
| 5 | |
| 6 | /-! # Connecting Homology -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.ConnectingHomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The native tensor cone boundary agrees on homology with the boundary |
| 13 | of the split sequence, through its canonical cone-to-quotient map. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 19 | |
| 20 | variable (R : Type) [CommRing R] |
| 21 | (S : ShortComplex (CochainComplex (ModuleCat.{0} R) ℤ)) |
| 22 | (σ : ∀ n, (S.map (HomologicalComplex.eval _ _ n)).Splitting) |
| 23 | (K : CochainComplex (ModuleCat.{0} R) ℤ) |
| 24 | |
| 25 | theorem connecting (n m : ℤ) (h : 1 + n = m) : |
| 26 | CocycleHomology.map R (Tensor.Cochain.mapCocycle R K (-mappingCone.fst S.f)) n m h = |
| 27 | HomologicalComplex.homologyMap |
| 28 | ((Homotopy.complexFunctor R K).map (mappingCone.descShortComplex S)) n ≫ |
| 29 | CocycleHomology.map R (Tensor.Cochain.mapCocycle R K (cocycleOfDegreewiseSplit S σ)) n m h := by |
| 30 | rw [← CocycleHomology.precomp] |
| 31 | apply CocycleHomology.map_eq R _ _ |
| 32 | (Tensor.Cochain.map R K (SplitSequenceCochain.comparisonHomotopy R S σ)) |
| 33 | change Tensor.Cochain.map R K (-mappingCone.fst S.f).1 = |
| 34 | (Cochain.ofHom ((Homotopy.complexFunctor R K).map (mappingCone.descShortComplex S))).comp |
| 35 | (Tensor.Cochain.map R K (cocycleOfDegreewiseSplit S σ).1) (zero_add 1) + |
| 36 | δ 0 1 (Tensor.Cochain.map R K (SplitSequenceCochain.comparisonHomotopy R S σ)) |
| 37 | simpa only [Cocycle.coe_neg, Tensor.Cochain.map_neg] using |
| 38 | SplitSequenceCochain.tensor_cone_connecting R S σ K |
| 39 | |
| 40 | theorem mapCocycle_postcomp {P Q U : CochainComplex (ModuleCat.{0} R) ℤ} {a : ℤ} |
| 41 | (z : Cocycle P Q a) (f : Q ⟶ U) : |
| 42 | Tensor.Cochain.mapCocycle R K (z.postcomp f) = |
| 43 | (Tensor.Cochain.mapCocycle R K z).postcomp ((Homotopy.complexFunctor R K).map f) := by |
| 44 | apply Subtype.ext |
| 45 | simp only [Tensor.Cochain.mapCocycle_coe, Cocycle.postcomp, Cocycle.mk_coe, |
| 46 | Tensor.Cochain.map_comp, Tensor.Cochain.map_ofHom] |
| 47 | |
| 48 | theorem comp_triangle {P Q U : CochainComplex (ModuleCat.{0} R) ℤ} |
| 49 | (f : P ⟶ Q) (g : Q ⟶ U) (n m : ℤ) (h : 1 + n = m) : |
| 50 | (HomologicalComplex.homologyFunctor (ModuleCat.{0} R) (.up ℤ) 0).shiftMap |
| 51 | (ShiftedHom.map (mappingConeCompTriangle f g).mor₃ |
| 52 | (Homotopy.complexFunctor R K)) n m h = |
| 53 | CocycleHomology.map R (Tensor.Cochain.mapCocycle R K (-mappingCone.fst g)) n m h ≫ |
| 54 | HomologicalComplex.homologyMap ((Homotopy.complexFunctor R K).map (mappingCone.inr f)) m := by |
| 55 | have he : ShiftedHom.map (mappingConeCompTriangle f g).mor₃ |
| 56 | (Homotopy.complexFunctor R K) = |
| 57 | Cocycle.equivHomShift.symm (Tensor.Cochain.mapCocycle R K (-mappingCone.fst g)) ≫ |
| 58 | ((Homotopy.complexFunctor R K).map (mappingCone.inr f))⟦(1 : ℤ)⟧' := by |
| 59 | change (Homotopy.complexFunctor R K).map |
| 60 | ((mappingCone.triangle g).mor₃ ≫ (mappingCone.inr f)⟦(1 : ℤ)⟧') ≫ |
| 61 | ((Homotopy.complexFunctor R K).commShiftIso (1 : ℤ)).hom.app (mappingCone f) = _ |
| 62 | rw [CategoryTheory.Functor.map_comp, Category.assoc, |
| 63 | CategoryTheory.Functor.commShiftIso_hom_naturality, ← Category.assoc] |
| 64 | change ((Homotopy.complexFunctor R K).map |
| 65 | (Cocycle.homOf ((-mappingCone.fst g).rightShift 1 0 (zero_add 1))) ≫ _) ≫ _ = _ |
| 66 | congr 1 |
| 67 | exact CochainShift.homOf_rightShift R K (-mappingCone.fst g) |
| 68 | rw [he, CategoryTheory.Functor.shiftMap_comp] |
| 69 | rfl |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.ConnectingHomology |