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.Cosimplicial.Cup |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChangeNaturality |
| 4 | |
| 5 | /-! # Cup -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.Cup |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The Alexander–Whitney product on the native nonempty-product Čech |
| 12 | complex. The forgetful comparison is the canonical product comparison. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | open scoped Simplicial |
| 16 | |
| 17 | universe u v w t |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 20 | {ι : Type w} (U : ι → C) [UnivLE.{w, t}] |
| 21 | |
| 22 | abbrev forgetRing : CommRingCat.{t} ⥤ AddCommGrpCat.{t} := |
| 23 | forget₂ CommRingCat RingCat ⋙ forget₂ RingCat AddCommGrpCat |
| 24 | |
| 25 | def cochainRing (P : Cᵒᵖ ⥤ CommRingCat.{t}) : |
| 26 | CosimplicialObject CommRingCat.{t} := |
| 27 | (FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve U)).obj P |
| 28 | |
| 29 | def nativeComplex (P : Cᵒᵖ ⥤ CommRingCat.{t}) : |
| 30 | CochainComplex AddCommGrpCat.{t} ℕ := |
| 31 | (NonemptyCechNerve.complexFunctor U).obj (P ⋙ forgetRing) |
| 32 | |
| 33 | def comparison (P : Cᵒᵖ ⥤ CommRingCat.{t}) : |
| 34 | Cosimplicial.Cup.complex (cochainRing U P) ≅ nativeComplex U P := |
| 35 | (AlgebraicTopology.alternatingCofaceMapComplex AddCommGrpCat).mapIso |
| 36 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.cosimplicialIso forgetRing |
| 37 | (NonemptyCechNerve.nerve U) P) |
| 38 | |
| 39 | def cup (P : Cᵒᵖ ⥤ CommRingCat.{t}) {p q : ℕ} |
| 40 | (x : (nativeComplex U P).X p) (y : (nativeComplex U P).X q) : |
| 41 | (nativeComplex U P).X (p + q) := |
| 42 | (comparison U P).hom.f (p + q) |
| 43 | (Cosimplicial.Cup.cup (cochainRing U P) |
| 44 | ((comparison U P).inv.f p x) ((comparison U P).inv.f q y)) |
| 45 | |
| 46 | def coefficientMap {P Q : Cᵒᵖ ⥤ CommRingCat.{t}} (f : P ⟶ Q) : |
| 47 | nativeComplex U P ⟶ nativeComplex U Q := |
| 48 | (NonemptyCechNerve.complexFunctor U).map (Functor.whiskerRight f forgetRing) |
| 49 | |
| 50 | def ringMap {P Q : Cᵒᵖ ⥤ CommRingCat.{t}} (f : P ⟶ Q) : |
| 51 | cochainRing U P ⟶ cochainRing U Q := |
| 52 | (FormalCoproduct.cosimplicialObjectFunctor (NonemptyCechNerve.nerve U)).map f |
| 53 | |
| 54 | theorem comparison_natural {P Q : Cᵒᵖ ⥤ CommRingCat.{t}} (f : P ⟶ Q) |
| 55 | (n : ℕ) : |
| 56 | forgetRing.map ((ringMap U f).app ⦋n⦌) ≫ (comparison U Q).hom.f n = |
| 57 | (comparison U P).hom.f n ≫ (coefficientMap U f).f n := by |
| 58 | exact AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChangeNaturality.CechCoefficientChangeNaturality.piComparison_map forgetRing |
| 59 | (fun i : ((NonemptyCechNerve.nerve U).obj (op ⦋n⦌)).I => |
| 60 | f.app (op (((NonemptyCechNerve.nerve U).obj (op ⦋n⦌)).obj i))) |
| 61 | |
| 62 | theorem comparison_inverse_natural {P Q : Cᵒᵖ ⥤ CommRingCat.{t}} (f : P ⟶ Q) |
| 63 | (n : ℕ) : |
| 64 | (comparison U P).inv.f n ≫ forgetRing.map ((ringMap U f).app ⦋n⦌) = |
| 65 | (coefficientMap U f).f n ≫ (comparison U Q).inv.f n := by |
| 66 | let eP := (HomologicalComplex.eval _ _ n).mapIso (comparison U P) |
| 67 | let eQ := (HomologicalComplex.eval _ _ n).mapIso (comparison U Q) |
| 68 | symm |
| 69 | apply (Iso.comp_inv_eq eQ).2 |
| 70 | change (coefficientMap U f).f n = |
| 71 | ((comparison U P).inv.f n ≫ forgetRing.map ((ringMap U f).app ⦋n⦌)) ≫ |
| 72 | (comparison U Q).hom.f n |
| 73 | exact (Iso.inv_hom_id_assoc eP _).symm.trans |
| 74 | ((congrArg (fun g => (comparison U P).inv.f n ≫ g) |
| 75 | (comparison_natural U f n).symm).trans (Category.assoc _ _ _).symm) |
| 76 | |
| 77 | theorem cup_natural {P Q : Cᵒᵖ ⥤ CommRingCat.{t}} (f : P ⟶ Q) |
| 78 | {p q : ℕ} (x : (nativeComplex U P).X p) (y : (nativeComplex U P).X q) : |
| 79 | (coefficientMap U f).f (p + q) (cup U P x y) = |
| 80 | cup U Q ((coefficientMap U f).f p x) ((coefficientMap U f).f q y) := by |
| 81 | have hp := ConcreteCategory.congr_hom (comparison_inverse_natural U f p) x |
| 82 | have hq := ConcreteCategory.congr_hom (comparison_inverse_natural U f q) y |
| 83 | have h := ConcreteCategory.congr_hom (comparison_natural U f (p + q)) |
| 84 | (Cosimplicial.Cup.cup (cochainRing U P) |
| 85 | ((comparison U P).inv.f p x) ((comparison U P).inv.f q y)) |
| 86 | change _ = (coefficientMap U f).f (p + q) (cup U P x y) at h |
| 87 | change (ringMap U f).app ⦋p⦌ ((comparison U P).inv.f p x) = _ at hp |
| 88 | change (ringMap U f).app ⦋q⦌ ((comparison U P).inv.f q y) = _ at hq |
| 89 | exact h.symm.trans ((congrArg ((comparison U Q).hom.f (p + q)) |
| 90 | (Cosimplicial.Cup.cup_natural (cochainRing U P) (ringMap U f) |
| 91 | ((comparison U P).inv.f p x) ((comparison U P).inv.f q y))).trans |
| 92 | (congrArg ((comparison U Q).hom.f (p + q)) |
| 93 | (congrArg₂ (Cosimplicial.Cup.cup (cochainRing U Q)) hp hq))) |
| 94 | |
| 95 | theorem cup_isCocycle (P : Cᵒᵖ ⥤ CommRingCat.{t}) {p q : ℕ} |
| 96 | (x : (nativeComplex U P).X p) (y : (nativeComplex U P).X q) |
| 97 | (hx : (nativeComplex U P).d p (p + 1) x = 0) |
| 98 | (hy : (nativeComplex U P).d q (q + 1) y = 0) : |
| 99 | (nativeComplex U P).d (p + q) (p + q + 1) (cup U P x y) = 0 := by |
| 100 | have hxp : Cosimplicial.Cup.differential (cochainRing U P) p |
| 101 | ((comparison U P).inv.f p x) = 0 := by |
| 102 | have h := ConcreteCategory.congr_hom ((comparison U P).inv.comm p (p + 1)) x |
| 103 | exact (Cosimplicial.Cup.complex_d_apply (cochainRing U P) p _).symm.trans |
| 104 | (h.trans ((congrArg ((comparison U P).inv.f (p + 1)) hx).trans (map_zero _))) |
| 105 | have hyp : Cosimplicial.Cup.differential (cochainRing U P) q |
| 106 | ((comparison U P).inv.f q y) = 0 := by |
| 107 | have h := ConcreteCategory.congr_hom ((comparison U P).inv.comm q (q + 1)) y |
| 108 | exact (Cosimplicial.Cup.complex_d_apply (cochainRing U P) q _).symm.trans |
| 109 | (h.trans ((congrArg ((comparison U P).inv.f (q + 1)) hy).trans (map_zero _))) |
| 110 | have hz := Cosimplicial.Cup.cup_isCocycle (cochainRing U P) _ _ hxp hyp |
| 111 | have hz' := (Cosimplicial.Cup.complex_d_apply (cochainRing U P) (p + q) _).trans hz |
| 112 | have h := ConcreteCategory.congr_hom ((comparison U P).hom.comm (p + q) (p + q + 1)) |
| 113 | (Cosimplicial.Cup.cup (cochainRing U P) |
| 114 | ((comparison U P).inv.f p x) ((comparison U P).inv.f q y)) |
| 115 | exact h.trans ((congrArg ((comparison U P).hom.f (p + q + 1)) hz').trans (map_zero _)) |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.Cup |