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.Resolution.CoefficientShift |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionCohomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.HomologyTripleNaturality |
| 4 | |
| 5 | /-! # Coefficient Naturality -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Resolution.CoefficientNaturality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual augmented source-resolution comparison with Ext commutes |
| 12 | with coefficient morphisms in every degree. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | open Abelian OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ResolutionCycles OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.CoefficientNaturality |
| 17 | |
| 18 | universe u v z t |
| 19 | |
| 20 | private theorem comparison_square {D : Type*} [Category D] |
| 21 | {A B A' B' M M' : D} (e : A ≅ B) (e' : A' ≅ B') (s : A ≅ M) (s' : A' ≅ M') |
| 22 | (f : B ⟶ B') (a : A ⟶ A') (b : M ⟶ M') |
| 23 | (h : e.hom ≫ f = a ≫ e'.hom) (hs : a ≫ s'.hom = s.hom ≫ b) : |
| 24 | f ≫ (e'.inv ≫ s'.hom) = (e.inv ≫ s.hom) ≫ b := by |
| 25 | apply (cancel_epi e.hom).mp |
| 26 | calc |
| 27 | e.hom ≫ (f ≫ (e'.inv ≫ s'.hom)) = (e.hom ≫ f) ≫ (e'.inv ≫ s'.hom) := |
| 28 | (Category.assoc _ _ _).symm |
| 29 | _ = (a ≫ e'.hom) ≫ (e'.inv ≫ s'.hom) := congrArg (fun x => x ≫ (e'.inv ≫ s'.hom)) h |
| 30 | _ = a ≫ s'.hom := by simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 31 | _ = s.hom ≫ b := hs |
| 32 | _ = e.hom ≫ ((e.inv ≫ s.hom) ≫ b) := by simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 33 | |
| 34 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 35 | (R : Type t) [CommRing R] [Linear R C] {Y Y' : C} (g : Y ⟶ Y') |
| 36 | |
| 37 | private theorem transport_map {Z : C} {d d' : ℕ} (hd : d = d') |
| 38 | {U V : Type z} [AddCommGroup U] [Module R U] [AddCommGroup V] [Module R V] |
| 39 | (e : U ≃ₗ[R] Ext.{z} Z Y d) (e' : V ≃ₗ[R] Ext.{z} Z Y' d) |
| 40 | (a : ModuleCat.of R U ⟶ ModuleCat.of R V) |
| 41 | (h : a ≫ e'.toModuleIso.hom = e.toModuleIso.hom ≫ IntegralComparison.Ext.CoefficientNaturality.component R g d Z) : |
| 42 | a ≫ (hd ▸ e').toModuleIso.hom = (hd ▸ e).toModuleIso.hom ≫ IntegralComparison.Ext.CoefficientNaturality.component R g d' Z := by |
| 43 | subst d' |
| 44 | exact h |
| 45 | |
| 46 | variable (K : CochainComplex Cᵒᵖ ℕ) {Z : Cᵒᵖ} |
| 47 | (ι : (CochainComplex.single₀ Cᵒᵖ).obj Z ⟶ K) [QuasiIso ι] |
| 48 | (hK : ∀ a q, Subsingleton (Ext.{z} (K.X a).unop Y (q + 1))) |
| 49 | (hK' : ∀ a q, Subsingleton (Ext.{z} (K.X a).unop Y' (q + 1))) |
| 50 | |
| 51 | theorem short_zero : ShortComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.shortMap R g 0 (Augmented.ResolutionCycles.differentialSequence K 0)) ≫ |
| 52 | (Contravariant.Resolution.Comparison.shortHomologyIso R Y' K ι hK' 0).hom = |
| 53 | (Contravariant.Resolution.Comparison.shortHomologyIso R Y K ι hK 0).hom ≫ |
| 54 | IntegralComparison.Ext.CoefficientNaturality.component R g 1 Z.unop := by |
| 55 | let : Subsingleton (Ext.{z} (K.X 0).unop Y 1) := hK 0 0 |
| 56 | let : Subsingleton (Ext.{z} (K.X 0).unop Y' 1) := hK' 0 0 |
| 57 | exact IntegralComparison.Ext.CoefficientNaturality.short_homology R g (Augmented.ResolutionCycles.differentialSequence K 0) |
| 58 | (Augmented.ResolutionCycles.augmentation K ι) (Augmented.ResolutionCycles.initialSequence K ι).zero |
| 59 | (Augmented.ResolutionCycles.initialSequence_shortExact K ι) |
| 60 | |
| 61 | theorem short_succ (n : ℕ) : |
| 62 | ShortComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.shortMap R g 0 (Augmented.ResolutionCycles.differentialSequence K (n + 1))) ≫ |
| 63 | (Contravariant.Resolution.Comparison.shortHomologyIso R Y' K ι hK' (n + 1)).hom = |
| 64 | (Contravariant.Resolution.Comparison.shortHomologyIso R Y K ι hK (n + 1)).hom ≫ |
| 65 | IntegralComparison.Ext.CoefficientNaturality.component R g (n + 1 + 1) Z.unop := by |
| 66 | let : Subsingleton (Ext.{z} (K.X (n + 1)).unop Y 1) := hK (n + 1) 0 |
| 67 | let : Subsingleton (Ext.{z} (K.X (n + 1)).unop Y' 1) := hK' (n + 1) 0 |
| 68 | let eY := Contravariant.ResolutionShift.cycleExtEquiv R Y K ι hK n 0 |
| 69 | let eY' := Contravariant.ResolutionShift.cycleExtEquiv R Y' K ι hK' n 0 |
| 70 | let hc : n + 0 + 2 = n + 1 + 1 := by omega |
| 71 | have hs : IntegralComparison.Ext.CoefficientNaturality.component R g 1 (Augmented.ResolutionCycles.differentialSequence K n).cycles.unop ≫ |
| 72 | (hc ▸ eY').toModuleIso.hom = (hc ▸ eY).toModuleIso.hom ≫ |
| 73 | IntegralComparison.Ext.CoefficientNaturality.component R g (n + 1 + 1) Z.unop := by |
| 74 | apply transport_map R g hc eY eY' |
| 75 | apply ModuleCat.hom_ext |
| 76 | apply LinearMap.ext |
| 77 | intro α |
| 78 | exact CoefficientShift.cycles R g K ι hK hK' n 0 α |
| 79 | have hd := IntegralComparison.Ext.CoefficientNaturality.short_homology R g (Augmented.ResolutionCycles.differentialSequence K (n + 1)) |
| 80 | (Augmented.ResolutionCycles.successiveSequence K n).f (Augmented.ResolutionCycles.successiveSequence K n).zero |
| 81 | (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n) |
| 82 | exact (Category.assoc _ _ _).symm.trans |
| 83 | ((congrArg (fun a => a ≫ (hc ▸ eY').toModuleIso.hom) hd).trans |
| 84 | ((Category.assoc _ _ _).trans |
| 85 | ((congrArg (fun a => |
| 86 | (Contravariant.ResolutionHomologyData.homologyIso R Y (Augmented.ResolutionCycles.differentialSequence K (n + 1)) |
| 87 | (Augmented.ResolutionCycles.successiveSequence K n).f (Augmented.ResolutionCycles.successiveSequence K n).zero |
| 88 | (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n)).hom ≫ a) hs).trans |
| 89 | (Category.assoc _ _ _).symm))) |
| 90 | |
| 91 | theorem short (n : ℕ) : ShortComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.shortMap R g 0 (Augmented.ResolutionCycles.differentialSequence K n)) ≫ |
| 92 | (Contravariant.Resolution.Comparison.shortHomologyIso R Y' K ι hK' n).hom = |
| 93 | (Contravariant.Resolution.Comparison.shortHomologyIso R Y K ι hK n).hom ≫ |
| 94 | IntegralComparison.Ext.CoefficientNaturality.component R g (n + 1) Z.unop := by |
| 95 | cases n with |
| 96 | | zero => exact short_zero R g K ι hK hK' |
| 97 | | succ n => exact short_succ R g K ι hK hK' n |
| 98 | |
| 99 | theorem positive (n : ℕ) : HomologicalComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) (n + 1) ≫ |
| 100 | (Contravariant.Resolution.Comparison.positiveHomologyIso R Y' K ι hK' n).hom = |
| 101 | (Contravariant.Resolution.Comparison.positiveHomologyIso R Y K ι hK n).hom ≫ |
| 102 | IntegralComparison.Ext.CoefficientNaturality.component R g (n + 1) Z.unop := by |
| 103 | have h₁ := Cochain.HomologyTripleNaturality.naturality (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) n |
| 104 | have h₂ := short R g K ι hK hK' n |
| 105 | exact (Category.assoc _ _ _).symm.trans |
| 106 | ((congrArg (fun a => a ≫ (Contravariant.Resolution.Comparison.shortHomologyIso R Y' K ι hK' n).hom) h₁).trans |
| 107 | ((Category.assoc _ _ _).trans |
| 108 | ((congrArg (fun a => |
| 109 | ((Contravariant.Resolution.Comparison.complex R Y K).homologyIsoSc' n (n + 1) (n + 2) |
| 110 | (by simp) (by simp)).hom ≫ a) h₂).trans (Category.assoc _ _ _).symm))) |
| 111 | |
| 112 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 0 |
| 113 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y' 0 |
| 114 | local notation "aY" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionZero.augmentation R Y K ι |
| 115 | local notation "aY'" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionZero.augmentation R Y' K ι |
| 116 | local notation "η" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.CoefficientNaturality.component R g 0 Z.unop |
| 117 | |
| 118 | omit [QuasiIso ι] in |
| 119 | theorem augmentation : aY ≫ IntegralComparison.Ext.CoefficientNaturality.complexMap R g K = (CochainComplex.single₀ _).map η ≫ aY' := by |
| 120 | apply HomologicalComplex.from_single_hom_ext |
| 121 | change (aY).f 0 ≫ (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K).f 0 = |
| 122 | ((CochainComplex.single₀ _).map η).f 0 ≫ (aY').f 0 |
| 123 | rw [Contravariant.ResolutionZero.augmentation_zero, |
| 124 | Contravariant.ResolutionZero.augmentation_zero, CochainComplex.single₀_map_f_zero] |
| 125 | exact IntegralComparison.Ext.CoefficientNaturality.naturality R g 0 (Augmented.ResolutionCycles.augmentation K ι) |
| 126 | |
| 127 | theorem zero : HomologicalComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) 0 ≫ |
| 128 | (Contravariant.ResolutionZero.homologyIso R Y' K ι).hom = |
| 129 | (Contravariant.ResolutionZero.homologyIso R Y K ι).hom ≫ η := by |
| 130 | have h : HomologicalComplex.homologyMap aY 0 ≫ HomologicalComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) 0 = |
| 131 | HomologicalComplex.homologyMap ((CochainComplex.single₀ _).map η) 0 ≫ |
| 132 | HomologicalComplex.homologyMap aY' 0 := |
| 133 | (HomologicalComplex.homologyMap_comp aY (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) 0).symm.trans |
| 134 | ((congrArg (fun f => HomologicalComplex.homologyMap f 0) (augmentation R g K ι)).trans |
| 135 | (HomologicalComplex.homologyMap_comp _ _ 0)) |
| 136 | exact comparison_square (isoOfQuasiIsoAt aY 0) (isoOfQuasiIsoAt aY' 0) |
| 137 | (HomologicalComplex.singleObjHomologySelfIso (ComplexShape.up ℕ) 0 ((F).obj Z)) |
| 138 | (HomologicalComplex.singleObjHomologySelfIso (ComplexShape.up ℕ) 0 ((G).obj Z)) |
| 139 | (HomologicalComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) 0) |
| 140 | (HomologicalComplex.homologyMap ((CochainComplex.single₀ _).map η) 0) η h |
| 141 | (HomologicalComplex.singleObjHomologySelfIso_hom_naturality (ComplexShape.up ℕ) 0 η) |
| 142 | |
| 143 | theorem homology (i : ℕ) : HomologicalComplex.homologyMap (IntegralComparison.Ext.CoefficientNaturality.complexMap R g K) i ≫ |
| 144 | (Contravariant.ResolutionCohomology.homologyIso R Y' K ι hK' i).hom = |
| 145 | (Contravariant.ResolutionCohomology.homologyIso R Y K ι hK i).hom ≫ |
| 146 | IntegralComparison.Ext.CoefficientNaturality.component R g i Z.unop := by |
| 147 | cases i with |
| 148 | | zero => exact CoefficientNaturality.zero R g K ι |
| 149 | | succ n => exact positive R g K ι hK hK' n |
| 150 | |
| 151 | end |
| 152 | |
| 153 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Resolution.CoefficientNaturality |