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.Comparison.Betti.TotalExists |
| 2 | |
| 3 | /-! # Total -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Finite.Total |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual total comparison for additive functors uses only finite coproducts on nonnegative diagonals. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex₂ |
| 12 | |
| 13 | open OAI.AlgebraicGeometry.Comparison.Betti.TotalExists |
| 14 | |
| 15 | local instance finiteTotalExists {E : Type*} [Category* E] [Preadditive E] |
| 16 | [HasFiniteCoproducts E] (B : HomologicalComplex₂ E (.up ℕ) (.up ℕ)) : B.HasTotal (.up ℕ) := |
| 17 | TotalExists.hasTotal_of_finiteCoproducts B |
| 18 | |
| 19 | variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D] |
| 20 | [HasFiniteCoproducts C] [HasFiniteCoproducts D] (F : C ⥤ D) [F.Additive] |
| 21 | (K : HomologicalComplex₂ C (.up ℕ) (.up ℕ)) |
| 22 | |
| 23 | def totalComparisonComponent (n : ℕ) : |
| 24 | ((TotalComplexFunctor.mapBicomplex F K).total (.up ℕ)).X n ⟶ F.obj ((K.total (.up ℕ)).X n) := by |
| 25 | have : Finite ((ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) ⁻¹' {n}) := by |
| 26 | change Finite {p : ℕ × ℕ // p.1 + p.2 = n} |
| 27 | exact TotalDiagonal.finiteTotalDiagonal n |
| 28 | exact sigmaComparison F (K.toGradedObject.mapObjFun (ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) n) |
| 29 | |
| 30 | theorem ι_totalComparisonComponent (q p n : ℕ) (h : q + p = n) : |
| 31 | (TotalComplexFunctor.mapBicomplex F K).ιTotal (.up ℕ) q p n h ≫ totalComparisonComponent F K n = |
| 32 | F.map (K.ιTotal (.up ℕ) q p n h) := by |
| 33 | have : Finite ((ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) ⁻¹' {n}) := by |
| 34 | change Finite {p : ℕ × ℕ // p.1 + p.2 = n} |
| 35 | exact TotalDiagonal.finiteTotalDiagonal n |
| 36 | exact ι_comp_sigmaComparison F |
| 37 | (K.toGradedObject.mapObjFun (ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) n) ⟨(q, p), h⟩ |
| 38 | |
| 39 | theorem totalComparisonComponent_comm (n : ℕ) : |
| 40 | totalComparisonComponent F K n ≫ F.map ((K.total (.up ℕ)).d n (n + 1)) = |
| 41 | ((TotalComplexFunctor.mapBicomplex F K).total (.up ℕ)).d n (n + 1) ≫ totalComparisonComponent F K (n + 1) := by |
| 42 | let M := TotalComplexFunctor.mapBicomplex F K |
| 43 | apply total.hom_ext |
| 44 | intro q p h |
| 45 | change q + p = n at h |
| 46 | subst n |
| 47 | erw [← Category.assoc, ι_totalComparisonComponent, ← F.map_comp, (SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat K)] |
| 48 | erw [← Category.assoc (M.ιTotal (.up ℕ) q p (q + p) rfl), (SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat M)] |
| 49 | simp only [Functor.map_add, Functor.map_units_smul, F.map_comp, Preadditive.add_comp, |
| 50 | Linear.units_smul_comp, Category.assoc] |
| 51 | dsimp only [M] |
| 52 | erw [ι_totalComparisonComponent, ι_totalComparisonComponent] |
| 53 | rfl |
| 54 | |
| 55 | def totalComparison : (TotalComplexFunctor.mapBicomplex F K).total (.up ℕ) ⟶ |
| 56 | (F.mapHomologicalComplex (.up ℕ)).obj (K.total (.up ℕ)) where |
| 57 | f := totalComparisonComponent F K |
| 58 | comm' n m h := by |
| 59 | change n + 1 = m at h |
| 60 | subst m |
| 61 | exact totalComparisonComponent_comm F K n |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Comparison.Betti.Finite.Total |