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.TotalAdditiveFunctor |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexMap |
| 3 | import Mathlib.Algebra.Category.Grp.ZModuleEquivalence |
| 4 | import Mathlib.Algebra.Homology.Embedding.Extend |
| 5 | import Mathlib.Algebra.Homology.TotalComplexSymmetry |
| 6 | |
| 7 | /-! # Additive Total Column -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Comparison.Betti.AdditiveTotalColumn |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! Column quasi-isomorphisms imply a quasi-isomorphism of the actual additive total complexes. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex _root_.HomologicalComplex₂ |
| 18 | |
| 19 | theorem additive_total_map_quasiIso_of_columns |
| 20 | {K L : HomologicalComplex₂ AddCommGrpCat.{0} (.up ℕ) (.up ℕ)} (φ : K ⟶ L) |
| 21 | (hφ : ∀ p : ℕ, QuasiIso (φ.f p)) : QuasiIso (total.map φ (.up ℕ)) := by |
| 22 | let E := (forget₂ (ModuleCat.{0} ℤ) AddCommGrpCat.{0}).asEquivalence |
| 23 | let F := E.inverse |
| 24 | let : E.functor.Additive := inferInstanceAs (forget₂ (ModuleCat.{0} ℤ) AddCommGrpCat.{0}).Additive |
| 25 | let : F.Additive := E.inverse_additive |
| 26 | let : F.PreservesHomology := inferInstance |
| 27 | let : F.ReflectsIsomorphisms := inferInstance |
| 28 | let ψ := TotalAdditiveFunctor.mapBicomplexMap F φ |
| 29 | have hψ (p : ℕ) : QuasiIso (ψ.f p) := |
| 30 | quasiIso_map_of_preservesHomology (φ.f p) F (hφ := hφ p) |
| 31 | have ht : QuasiIso (total.map ψ (.up ℕ)) := |
| 32 | AlgebraicTopology.DeRham.Comparison.DoubleComplexMap.DoubleComplex.total_map_quasiIso_of_columns ψ hψ |
| 33 | let A := TotalAdditiveFunctor.totalComparisonIsoOfAdditive F K |
| 34 | let B := TotalAdditiveFunctor.totalComparisonIsoOfAdditive F L |
| 35 | let g := (F.mapHomologicalComplex (.up ℕ)).map (total.map φ (.up ℕ)) |
| 36 | have h : total.map ψ (.up ℕ) ≫ B.hom = A.hom ≫ g := TotalAdditiveFunctor.totalComparison_naturality F φ |
| 37 | have hA : QuasiIso A.hom := quasiIso_of_isIso A.hom |
| 38 | have hB : QuasiIso B.hom := quasiIso_of_isIso B.hom |
| 39 | have hc : QuasiIso (A.hom ≫ g) := by |
| 40 | rw [← h] |
| 41 | exact quasiIso_comp (total.map ψ (.up ℕ)) B.hom (hφ := ht) (hφ' := hB) |
| 42 | have hg : QuasiIso g := quasiIso_of_comp_left A.hom g (hφ := hA) (hφφ' := hc) |
| 43 | exact (quasiIso_map_iff_of_preservesHomology (total.map φ (.up ℕ)) F).mp hg |
| 44 | |
| 45 | end |
| 46 | |
| 47 | /-! The interchange sign is natural for actual first-quadrant bicomplex maps. -/ |
| 48 | |
| 49 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex₂ |
| 50 | |
| 51 | variable {C : Type*} [Category* C] [Preadditive C] [HasCoproducts.{0} C] |
| 52 | {K L : HomologicalComplex₂ C (.up ℕ) (.up ℕ)} (φ : K ⟶ L) |
| 53 | |
| 54 | theorem totalFlipIso_naturality : |
| 55 | total.map ((flipFunctor C (.up ℕ) (.up ℕ)).map φ) (.up ℕ) ≫ (L.totalFlipIso (.up ℕ)).hom = |
| 56 | (K.totalFlipIso (.up ℕ)).hom ≫ total.map φ (.up ℕ) := by |
| 57 | apply HomologicalComplex.Hom.ext |
| 58 | funext n |
| 59 | apply total.hom_ext |
| 60 | intro p q h |
| 61 | change K.flip.ιTotal (.up ℕ) p q n h ≫ |
| 62 | ((total.map ((flipFunctor C (.up ℕ) (.up ℕ)).map φ) (.up ℕ)).f n ≫ |
| 63 | (L.totalFlipIso (.up ℕ)).hom.f n) = |
| 64 | K.flip.ιTotal (.up ℕ) p q n h ≫ |
| 65 | ((K.totalFlipIso (.up ℕ)).hom.f n ≫ (total.map φ (.up ℕ)).f n) |
| 66 | erw [← Category.assoc, ιTotal_map, Category.assoc, ιTotal_totalFlipIso_f_hom, |
| 67 | ← Category.assoc, ιTotal_totalFlipIso_f_hom, Linear.comp_units_smul, Linear.units_smul_comp, |
| 68 | ιTotal_map] |
| 69 | rfl |
| 70 | |
| 71 | theorem additive_total_map_quasiIso_of_rows |
| 72 | {K L : HomologicalComplex₂ AddCommGrpCat.{0} (.up ℕ) (.up ℕ)} (φ : K ⟶ L) |
| 73 | (hφ : ∀ p, QuasiIso (((flipFunctor AddCommGrpCat (.up ℕ) (.up ℕ)).map φ).f p)) : |
| 74 | QuasiIso (total.map φ (.up ℕ)) := by |
| 75 | let ψ := (flipFunctor AddCommGrpCat (.up ℕ) (.up ℕ)).map φ |
| 76 | have hψ : QuasiIso (total.map ψ (.up ℕ)) := additive_total_map_quasiIso_of_columns ψ hφ |
| 77 | have hK : QuasiIso (K.totalFlipIso (.up ℕ)).hom := quasiIso_of_isIso _ |
| 78 | have hL : QuasiIso (L.totalFlipIso (.up ℕ)).hom := quasiIso_of_isIso _ |
| 79 | have hc : QuasiIso ((K.totalFlipIso (.up ℕ)).hom ≫ total.map φ (.up ℕ)) := by |
| 80 | rw [← totalFlipIso_naturality φ] |
| 81 | exact quasiIso_comp (total.map ψ (.up ℕ)) (L.totalFlipIso (.up ℕ)).hom (hφ := hψ) (hφ' := hL) |
| 82 | exact quasiIso_of_comp_left (K.totalFlipIso (.up ℕ)).hom (total.map φ (.up ℕ)) |
| 83 | (hφ := hK) (hφφ' := hc) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.Comparison.Betti.AdditiveTotalColumn |