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.MappingCone |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 3 | import Mathlib.Algebra.Homology.HomotopyCategory.ShortExact |
| 4 | |
| 5 | /-! # Split Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.SplitSequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tensoring preserves degreewise split short exact sequences, with the |
| 12 | splittings obtained from the actual homogeneous cochain tensor map. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 18 | |
| 19 | variable (R : Type) [CommRing R] (K : CochainComplex (ModuleCat.{0} R) ℤ) |
| 20 | (S : ShortComplex (CochainComplex (ModuleCat.{0} R) ℤ)) |
| 21 | (σ : ∀ n, (S.map (HomologicalComplex.eval _ _ n)).Splitting) |
| 22 | |
| 23 | def retraction : Cochain S.X₂ S.X₁ 0 := Cochain.ofHoms (fun n => (σ n).r) |
| 24 | |
| 25 | def sectionCochain : Cochain S.X₃ S.X₂ 0 := Cochain.ofHoms (fun n => (σ n).s) |
| 26 | |
| 27 | theorem f_retraction : (Cochain.ofHom S.f).comp (retraction R S σ) (zero_add 0) = Cochain.ofHom (𝟙 _) := by |
| 28 | apply Cochain.ext₀ |
| 29 | intro n |
| 30 | simp only [Cochain.comp_zero_cochain_v, Cochain.ofHom_v, retraction, |
| 31 | Cochain.ofHoms_v, HomologicalComplex.id_f] |
| 32 | exact (σ n).f_r |
| 33 | |
| 34 | theorem section_g : (sectionCochain R S σ).comp (Cochain.ofHom S.g) (zero_add 0) = Cochain.ofHom (𝟙 _) := by |
| 35 | apply Cochain.ext₀ |
| 36 | intro n |
| 37 | simp only [Cochain.comp_zero_cochain_v, Cochain.ofHom_v, sectionCochain, |
| 38 | Cochain.ofHoms_v, HomologicalComplex.id_f] |
| 39 | exact (σ n).s_g |
| 40 | |
| 41 | theorem decomposition : |
| 42 | (retraction R S σ).comp (Cochain.ofHom S.f) (zero_add 0) + |
| 43 | (Cochain.ofHom S.g).comp (sectionCochain R S σ) (zero_add 0) = Cochain.ofHom (𝟙 _) := by |
| 44 | apply Cochain.ext₀ |
| 45 | intro n |
| 46 | simp only [Cochain.add_v, Cochain.comp_zero_cochain_v, Cochain.ofHom_v, |
| 47 | retraction, sectionCochain, Cochain.ofHoms_v, HomologicalComplex.id_f] |
| 48 | exact (σ n).id |
| 49 | |
| 50 | def mappedSequence : ShortComplex (CochainComplex (ModuleCat.{0} R) ℤ) := |
| 51 | S.map (Homotopy.complexFunctor R K) |
| 52 | |
| 53 | def splitting (n : ℤ) : |
| 54 | ((mappedSequence R K S).map (HomologicalComplex.eval _ _ n)).Splitting where |
| 55 | r := (Tensor.Cochain.map R K (retraction R S σ)).v n n (add_zero n) |
| 56 | s := (Tensor.Cochain.map R K (sectionCochain R S σ)).v n n (add_zero n) |
| 57 | f_r := by |
| 58 | change ((Homotopy.complexFunctor R K).map S.f).f n ≫ _ = |
| 59 | 𝟙 (((Homotopy.complexFunctor R K).obj S.X₁).X n) |
| 60 | have h := congrArg (Tensor.Cochain.map R K) (f_retraction R S σ) |
| 61 | rw [Tensor.Cochain.map_comp, Tensor.Cochain.map_ofHom, |
| 62 | Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_id] at h |
| 63 | simpa only [Cochain.comp_zero_cochain_v, Cochain.ofHom_v, HomologicalComplex.id_f] |
| 64 | using Cochain.congr_v h n n (add_zero n) |
| 65 | s_g := by |
| 66 | change _ ≫ ((Homotopy.complexFunctor R K).map S.g).f n = |
| 67 | 𝟙 (((Homotopy.complexFunctor R K).obj S.X₃).X n) |
| 68 | have h := congrArg (Tensor.Cochain.map R K) (section_g R S σ) |
| 69 | rw [Tensor.Cochain.map_comp, Tensor.Cochain.map_ofHom, |
| 70 | Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_id] at h |
| 71 | simpa only [Cochain.comp_zero_cochain_v, Cochain.ofHom_v, HomologicalComplex.id_f] |
| 72 | using Cochain.congr_v h n n (add_zero n) |
| 73 | id := by |
| 74 | change (Tensor.Cochain.map R K (retraction R S σ)).v n n (add_zero n) ≫ |
| 75 | ((Homotopy.complexFunctor R K).map S.f).f n + |
| 76 | ((Homotopy.complexFunctor R K).map S.g).f n ≫ |
| 77 | (Tensor.Cochain.map R K (sectionCochain R S σ)).v n n (add_zero n) = |
| 78 | 𝟙 (((Homotopy.complexFunctor R K).obj S.X₂).X n) |
| 79 | have h := congrArg (Tensor.Cochain.map R K) (decomposition R S σ) |
| 80 | rw [Tensor.Cochain.map_add, Tensor.Cochain.map_comp, |
| 81 | Tensor.Cochain.map_comp, Tensor.Cochain.map_ofHom, |
| 82 | Tensor.Cochain.map_ofHom, Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_id] at h |
| 83 | simpa only [Cochain.add_v, Cochain.comp_zero_cochain_v, Cochain.ofHom_v, HomologicalComplex.id_f] |
| 84 | using Cochain.congr_v h n n (add_zero n) |
| 85 | |
| 86 | include σ in |
| 87 | theorem shortExact : (mappedSequence R K S).ShortExact := |
| 88 | HomologicalComplex.shortExact_of_degreewise_shortExact _ (fun n => (splitting R K S σ n).shortExact) |
| 89 | |
| 90 | theorem inl_descShortComplex : |
| 91 | (mappingCone.inl S.f).comp (Cochain.ofHom (mappingCone.descShortComplex S)) (add_zero (-1)) = 0 := by |
| 92 | rw [mappingCone.descShortComplex, mappingCone.inl_desc] |
| 93 | |
| 94 | theorem inv_descShortComplex : |
| 95 | (MappingCone.iso R K S.f).inv ≫ |
| 96 | (Homotopy.complexFunctor R K).map (mappingCone.descShortComplex S) = |
| 97 | mappingCone.descShortComplex (mappedSequence R K S) := by |
| 98 | change MappingCone.inv R K S.f ≫ _ = _ |
| 99 | apply Cochain.ofHom_injective |
| 100 | rw [Cochain.ofHom_comp, MappingCone.inv_ofHom] |
| 101 | apply (mappingCone.ext_cochain_from_iff _ (-1) 0 (neg_add_cancel 1)).2 |
| 102 | constructor |
| 103 | · rw [← Cochain.comp_assoc_of_second_is_zero_cochain, |
| 104 | mappingCone.inl_descCochain, ← Tensor.Cochain.map_ofHom, |
| 105 | ← Tensor.Cochain.map_comp, inl_descShortComplex, Tensor.Cochain.map_zero] |
| 106 | exact (inl_descShortComplex R (mappedSequence R K S)).symm |
| 107 | · rw [← Cochain.comp_assoc_of_second_is_zero_cochain, |
| 108 | mappingCone.inr_descCochain, ← Tensor.Cochain.map_ofHom, |
| 109 | ← Tensor.Cochain.map_comp, ← Cochain.ofHom_comp, |
| 110 | mappingCone.inr_descShortComplex, Tensor.Cochain.map_ofHom, |
| 111 | ← Cochain.ofHom_comp] |
| 112 | exact (congrArg Cochain.ofHom (mappingCone.inr_descShortComplex (mappedSequence R K S))).symm |
| 113 | |
| 114 | theorem hom_descShortComplex : |
| 115 | (MappingCone.iso R K S.f).hom ≫ |
| 116 | mappingCone.descShortComplex (mappedSequence R K S) = |
| 117 | (Homotopy.complexFunctor R K).map (mappingCone.descShortComplex S) := by |
| 118 | rw [← cancel_epi (MappingCone.iso R K S.f).inv, |
| 119 | Iso.inv_hom_id_assoc, inv_descShortComplex] |
| 120 | |
| 121 | include σ in |
| 122 | theorem quasiIso_descShortComplex : |
| 123 | QuasiIso |
| 124 | ((Homotopy.complexFunctor R K).map (mappingCone.descShortComplex S)) := by |
| 125 | let := mappingCone.quasiIso_descShortComplex (SplitSequence.shortExact R K S σ) |
| 126 | rw [← hom_descShortComplex] |
| 127 | infer_instance |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.SplitSequence |