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