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.ResolutionHom.InjectiveRow |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.HorizontalTotal |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.InjectiveSectionCohomology |
| 4 | |
| 5 | /-! # Total -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.Total |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The genuine mixed Hom total computes sections of an injective |
| 12 | coefficient resolution through its original source augmentation. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u v z t |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 19 | (R : Type t) [CommRing R] [Linear R C] (P : ChainComplex C ℕ) |
| 20 | {Z : C} (ε : P ⟶ (ChainComplex.single₀ C).obj Z) [QuasiIso ε] |
| 21 | (K : CochainComplex C ℕ) |
| 22 | |
| 23 | local instance moduleCoproducts : HasCoproducts.{0} (ModuleCat.{z} R) := |
| 24 | fun I => (ModuleCat.hasColimitsOfSize.{z, t, 0, 0} R).has_colimits_of_shape (Discrete I) |
| 25 | |
| 26 | def sections : CochainComplex (ModuleCat.{z} R) ℕ := |
| 27 | ((IntegralComparison.Ext.ModuleFunctor.functor R Z 0).mapHomologicalComplex (.up ℕ)).obj K |
| 28 | |
| 29 | def total : CochainComplex (ModuleCat.{z} R) ℕ := |
| 30 | (Bicomplex.bicomplex R P K).total (.up ℕ) |
| 31 | |
| 32 | def component (b : ℕ) : (sections R (Z := Z) K).X b ⟶ |
| 33 | ((Bicomplex.bicomplex R P K).X b).X 0 := |
| 34 | (IntegralComparison.Ext.ContravariantModuleFunctor.functor R (K.X b) 0).map (ε.f 0).op |
| 35 | |
| 36 | omit [QuasiIso ε] in |
| 37 | theorem vertical (b b' : ℕ) (_ : (ComplexShape.up ℕ).Rel b b') : |
| 38 | component R P ε K b ≫ ((Bicomplex.bicomplex R P K).d b b').f 0 = |
| 39 | (sections R (Z := Z) K).d b b' ≫ component R P ε K b' := |
| 40 | IntegralComparison.Ext.CoefficientNaturality.naturality R (K.d b b') 0 (ε.f 0).op |
| 41 | |
| 42 | omit [QuasiIso ε] in |
| 43 | theorem horizontal (b : ℕ) : component R P ε K b ≫ |
| 44 | ((Bicomplex.bicomplex R P K).X b).d 0 1 = 0 := by |
| 45 | have h := ((CochainComplex.fromSingle₀Equiv _ _) |
| 46 | (InjectiveRow.augmentation R P ε (K.X b))).property |
| 47 | change (InjectiveRow.augmentation R P ε (K.X b)).f 0 ≫ _ = 0 at h |
| 48 | rw [InjectiveRow.augmentation_zero] at h |
| 49 | exact h |
| 50 | |
| 51 | def edge : sections R (Z := Z) K ⟶ Total.total R P K := |
| 52 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂.totalUpNatHorizontalEdge (Bicomplex.bicomplex R P K)) |
| 53 | (sections R K) (component R P ε K) (vertical R P ε K) (horizontal R P ε K) |
| 54 | |
| 55 | variable (hK : ∀ b, Injective (K.X b)) |
| 56 | |
| 57 | include hK in |
| 58 | theorem augmented_row (b : ℕ) : |
| 59 | (ShortComplex.mk (component R P ε K b) |
| 60 | (((Bicomplex.bicomplex R P K).X b).d 0 1) (horizontal R P ε K b)).Exact ∧ |
| 61 | Mono (component R P ε K b) := by |
| 62 | let : Injective (K.X b) := hK b |
| 63 | let a := InjectiveRow.augmentation R P ε (K.X b) |
| 64 | let : QuasiIso a := InjectiveRow.augmentation_quasiIso R P ε (K.X b) |
| 65 | have h := Augmented.ResolutionCycles.augmentation_exact_and_mono |
| 66 | (Acyclic.ChainCohomology.complex R (K.X b) P) a |
| 67 | dsimp only [Augmented.ResolutionCycles.augmentation] at h |
| 68 | have ha : a.f 0 = component R P ε K b := |
| 69 | InjectiveRow.augmentation_zero R P ε (K.X b) |
| 70 | let S₀ := ShortComplex.mk (component R P ε K b) |
| 71 | (((Bicomplex.bicomplex R P K).X b).d 0 1) (horizontal R P ε K b) |
| 72 | let S₁ := ShortComplex.mk (a.f 0) ((Acyclic.ChainCohomology.complex R (K.X b) P).d 0 1) |
| 73 | (Augmented.ResolutionCycles.augmentation_condition (Acyclic.ChainCohomology.complex R (K.X b) P) a) |
| 74 | have e : S₀ ≅ S₁ := |
| 75 | ShortComplex.isoMk (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 76 | ((Category.id_comp _).trans (ha.trans (Category.comp_id _).symm)) |
| 77 | ((Category.id_comp _).trans (Category.comp_id _).symm) |
| 78 | exact (ShortComplex.exact_and_mono_f_iff_of_iso e).2 h |
| 79 | |
| 80 | include hK in |
| 81 | theorem edge_quasiIso : QuasiIso (edge R P ε K) := by |
| 82 | apply Module.HorizontalTotal.Comparison.quasiIso R |
| 83 | (Bicomplex.bicomplex R P K) (sections R K) |
| 84 | (component R P ε K) (vertical R P ε K) (horizontal R P ε K) |
| 85 | (fun b => (augmented_row R P ε K hK b).1) (fun b => (augmented_row R P ε K hK b).2) |
| 86 | intro b n |
| 87 | let : Injective (K.X b) := hK b |
| 88 | exact (HomologicalComplex.exactAt_iff_isZero_homology _ _).mpr |
| 89 | (InjectiveRow.positive_isZero R P ε (K.X b) n) |
| 90 | |
| 91 | omit K hK in |
| 92 | def homologyIso {Y : C} (I : InjectiveResolution Y) (i : ℕ) : |
| 93 | (Total.total R P I.cocomplex).homology i ≅ ModuleCat.of R (Abelian.Ext.{z} Z Y i) := by |
| 94 | let : QuasiIso (edge R P ε I.cocomplex) := edge_quasiIso R P ε I.cocomplex I.injective |
| 95 | exact (isoOfQuasiIsoAt (edge R P ε I.cocomplex) i).symm ≪≫ |
| 96 | InjectiveSectionCohomology.homologyIso R Z I i |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.Total |