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.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexFamilyRefinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexTotal |
| 3 | |
| 4 | /-! # Reindex Family Total -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexFamilyTotal |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The literal cover-family identifications extend to ordered total |
| 11 | complexes and their original common-cover homology comparisons. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.HomologicalComplex |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u v |
| 16 | variable {C D : Type u} [Preorder C] [HasFiniteProducts C] [Preorder D] [HasFiniteProducts D] |
| 17 | (r : C ⥤ D) [PreservesFiniteLimits r] |
| 18 | {A : Type v} [Category A] [Abelian A] [HasProducts.{u} A] [HasCoproducts.{0} A] |
| 19 | |
| 20 | section Single |
| 21 | variable {ι : Type u} [LinearOrder ι] (U : ι → C) (U' : ι → D) (hU : r.obj ∘ U = U') |
| 22 | (K : CochainComplex (Dᵒᵖ ⥤ A) ℕ) |
| 23 | |
| 24 | def familyBicomplexIso : |
| 25 | ((Functor.Projection.functor U).mapHomologicalComplex (.up ℕ)).obj |
| 26 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K) ≅ |
| 27 | ((Functor.Projection.functor U').mapHomologicalComplex (.up ℕ)).obj K := |
| 28 | HomologicalComplex.Hom.isoOfComponents |
| 29 | (fun q => ReindexCoordinates.familyIso r U U' hU (K.X q)) |
| 30 | (fun q q' _ => (ReindexCoordinates.family_naturality r U U' hU (K.X q) (K.d q q')).symm) |
| 31 | |
| 32 | def familyTotalIso : |
| 33 | (TotalProjection.ordered U).obj |
| 34 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K) ≅ |
| 35 | (TotalProjection.ordered U').obj K := |
| 36 | HomologicalComplex₂.total.mapIso (familyBicomplexIso r U U' hU K) (.up ℕ) |
| 37 | |
| 38 | omit [HasCoproducts A] in |
| 39 | theorem familyBicomplexIso_refl : |
| 40 | familyBicomplexIso r U (r.obj ∘ U) rfl K = ReindexTotal.bicomplexIso r U K := by |
| 41 | apply Iso.ext |
| 42 | apply HomologicalComplex.Hom.ext |
| 43 | funext q |
| 44 | change (Reindex.iso r U (K.X q)).hom ≫ 𝟙 _ = |
| 45 | (Reindex.iso r U (K.X q)).hom |
| 46 | exact Category.comp_id _ |
| 47 | |
| 48 | theorem familyTotalIso_refl : familyTotalIso r U (r.obj ∘ U) rfl K = ReindexTotal.totalIso r U K := by |
| 49 | dsimp only [familyTotalIso] |
| 50 | rw [familyBicomplexIso_refl] |
| 51 | rfl |
| 52 | end Single |
| 53 | |
| 54 | section Refinement |
| 55 | variable {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] (U : ι → C) (V : κ → C) |
| 56 | (ρ : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) |
| 57 | (U' : ι → D) (V' : κ → D) (hU : r.obj ∘ U = U') (hV : r.obj ∘ V = V') |
| 58 | (K : CochainComplex (Dᵒᵖ ⥤ A) ℕ) |
| 59 | |
| 60 | omit [HasCoproducts A] in |
| 61 | theorem family_bicomplex_refinement : |
| 62 | OrderedCech.Refinement.bicomplexMap U V ρ |
| 63 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K) ≫ |
| 64 | (familyBicomplexIso r V V' hV K).hom = |
| 65 | (familyBicomplexIso r U U' hU K).hom ≫ OrderedCech.Refinement.bicomplexMap U' V' |
| 66 | (ReindexFamilyRefinement.familyRefinement r U V ρ U' V' hU hV) K := by |
| 67 | apply HomologicalComplex.Hom.ext |
| 68 | funext q |
| 69 | exact ReindexFamilyRefinement.family_refinement r U V ρ U' V' hU hV (K.X q) |
| 70 | |
| 71 | theorem family_total_refinement : |
| 72 | OrderedCech.Refinement.totalMap U V ρ |
| 73 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K) ≫ |
| 74 | (familyTotalIso r V V' hV K).hom = |
| 75 | (familyTotalIso r U U' hU K).hom ≫ OrderedCech.Refinement.totalMap U' V' |
| 76 | (ReindexFamilyRefinement.familyRefinement r U V ρ U' V' hU hV) K := by |
| 77 | let T := HomologicalComplex₂.totalFunctor A (.up ℕ) (.up ℕ) (.up ℕ) |
| 78 | exact (T.map_comp _ _).symm.trans |
| 79 | ((congrArg T.map (family_bicomplex_refinement r U V ρ U' V' hU hV K)).trans (T.map_comp _ _)) |
| 80 | |
| 81 | theorem family_homology_refinement (q : ℕ) : |
| 82 | homologyMap (OrderedCech.Refinement.totalMap U V ρ |
| 83 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q ≫ |
| 84 | homologyMap (familyTotalIso r V V' hV K).hom q = |
| 85 | homologyMap (familyTotalIso r U U' hU K).hom q ≫ |
| 86 | homologyMap (OrderedCech.Refinement.totalMap U' V' |
| 87 | (ReindexFamilyRefinement.familyRefinement r U V ρ U' V' hU hV) K) q := by |
| 88 | simpa only [homologyMap_comp] using |
| 89 | congrArg (fun a => homologyMap a q) (family_total_refinement r U V ρ U' V' hU hV K) |
| 90 | end Refinement |
| 91 | |
| 92 | variable {ι κ ν : Type u} [LinearOrder ι] [LinearOrder κ] [LinearOrder ν] |
| 93 | (U : ι → C) (V : κ → C) (W : ν → C) |
| 94 | (s : FormalCoproduct.mk ν W ⟶ FormalCoproduct.mk ι U) |
| 95 | (t : FormalCoproduct.mk ν W ⟶ FormalCoproduct.mk κ V) |
| 96 | (U' : ι → D) (V' : κ → D) (W' : ν → D) |
| 97 | (hU : r.obj ∘ U = U') (hV : r.obj ∘ V = V') (hW : r.obj ∘ W = W') |
| 98 | (K : CochainComplex (Dᵒᵖ ⥤ A) ℕ) (q : ℕ) |
| 99 | [IsIso (homologyMap (OrderedCech.Refinement.totalMap V W t |
| 100 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q)] |
| 101 | [IsIso (homologyMap (OrderedCech.Refinement.totalMap V' W' |
| 102 | (ReindexFamilyRefinement.familyRefinement r V W t V' W' hV hW) K) q)] |
| 103 | |
| 104 | theorem family_comparison : |
| 105 | (homologyMap (OrderedCech.Refinement.totalMap U W s |
| 106 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q ≫ |
| 107 | inv (homologyMap (OrderedCech.Refinement.totalMap V W t |
| 108 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q)) ≫ |
| 109 | homologyMap (familyTotalIso r V V' hV K).hom q = |
| 110 | homologyMap (familyTotalIso r U U' hU K).hom q ≫ |
| 111 | homologyMap (OrderedCech.Refinement.totalMap U' W' |
| 112 | (ReindexFamilyRefinement.familyRefinement r U W s U' W' hU hW) K) q ≫ |
| 113 | inv (homologyMap (OrderedCech.Refinement.totalMap V' W' |
| 114 | (ReindexFamilyRefinement.familyRefinement r V W t V' W' hV hW) K) q) := by |
| 115 | apply (cancel_mono (homologyMap (OrderedCech.Refinement.totalMap V' W' |
| 116 | (ReindexFamilyRefinement.familyRefinement r V W t V' W' hV hW) K) q)).mp |
| 117 | simp only [Category.assoc, IsIso.inv_hom_id, Category.comp_id] |
| 118 | rw [← family_homology_refinement r V W t V' W' hV hW K q, IsIso.inv_hom_id_assoc] |
| 119 | exact family_homology_refinement r U W s U' W' hU hW K q |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexFamilyTotal |