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.Transport |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.CoefficientEdge |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BicomplexCoefficientEdge |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BicomplexHorizontalEdge |
| 5 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Acyclic.TransportNaturality |
| 6 | |
| 7 | /-! # Transport Edges -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.TransportEdges |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Both literal augmentation-edge squares for geometric transport of |
| 14 | the original mixed Hom total. These statements impose no injectivity |
| 15 | condition on the transported coefficient complex. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | open Abelian |
| 20 | |
| 21 | universe u v u' v' z t |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 24 | {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{z} D] |
| 25 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 26 | |
| 27 | private theorem source_formula {U Z Y : C} {V W Y' : D} |
| 28 | (e : U ⟶ Z) (b : V ⟶ F.obj U) (h : V ⟶ W) (g : W ⟶ F.obj Z) |
| 29 | (c : F.obj Y ⟶ Y') (hb : b ≫ F.map e = h ≫ g) (x : Ext.{z} Z Y 0) : |
| 30 | (Ext.mk₀ b).comp ((((Ext.mk₀ e).comp x (zero_add 0)).mapExactFunctor F).comp |
| 31 | (Ext.mk₀ c) (add_zero 0)) (zero_add 0) = |
| 32 | (Ext.mk₀ h).comp ((Ext.mk₀ g).comp |
| 33 | ((x.mapExactFunctor F).comp (Ext.mk₀ c) (add_zero 0)) (zero_add 0)) (zero_add 0) := by |
| 34 | obtain ⟨a, rfl⟩ := (Ext.mk₀_bijective Z Y).surjective x |
| 35 | simp only [Ext.mk₀_comp_mk₀, Ext.mapExactFunctor_mk₀, F.map_comp] |
| 36 | apply congrArg Ext.mk₀ |
| 37 | simp only [Category.assoc] |
| 38 | rw [← Category.assoc b (F.map e), hb, Category.assoc] |
| 39 | |
| 40 | private theorem coefficient_formula {U Y Z : C} {V Y' Z' : D} |
| 41 | (b : V ⟶ F.obj U) (i : Y ⟶ Z) (c : F.obj Z ⟶ Z') |
| 42 | (a : F.obj Y ⟶ Y') (j : Y' ⟶ Z') (hc : F.map i ≫ c = a ≫ j) |
| 43 | (x : Ext.{z} U Y 0) : |
| 44 | (Ext.mk₀ b).comp (((x.comp (Ext.mk₀ i) (add_zero 0)).mapExactFunctor F).comp |
| 45 | (Ext.mk₀ c) (add_zero 0)) (zero_add 0) = |
| 46 | ((Ext.mk₀ b).comp ((x.mapExactFunctor F).comp (Ext.mk₀ a) (add_zero 0)) |
| 47 | (zero_add 0)).comp (Ext.mk₀ j) (add_zero 0) := by |
| 48 | obtain ⟨x, rfl⟩ := (Ext.mk₀_bijective U Y).surjective x |
| 49 | simp only [Ext.mk₀_comp_mk₀, Ext.mapExactFunctor_mk₀, F.map_comp] |
| 50 | apply congrArg Ext.mk₀ |
| 51 | simp only [Category.assoc] |
| 52 | rw [hc] |
| 53 | |
| 54 | variable (R : Type t) [CommRing R] [Linear R C] [Linear R D] [F.Linear R] |
| 55 | (P : ChainComplex C ℕ) (Q : ChainComplex D ℕ) |
| 56 | (β : Q ⟶ (F.mapHomologicalComplex (.down ℕ)).obj P) |
| 57 | {K : CochainComplex C ℕ} {L : CochainComplex D ℕ} |
| 58 | (γ : (F.mapHomologicalComplex (.up ℕ)).obj K ⟶ L) |
| 59 | |
| 60 | local instance moduleCoproducts : HasCoproducts.{0} (ModuleCat.{z} R) := |
| 61 | fun I => (ModuleCat.hasColimitsOfSize.{z, t, 0, 0} R).has_colimits_of_shape (Discrete I) |
| 62 | |
| 63 | local notation "m" => OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.Transport.map F R P Q β γ |
| 64 | |
| 65 | def totalMap : Total.total R P K ⟶ Total.total R Q L := |
| 66 | HomologicalComplex₂.total.map m (.up ℕ) |
| 67 | |
| 68 | variable {Z : C} {W : D} (ε : P ⟶ (ChainComplex.single₀ C).obj Z) |
| 69 | (η : Q ⟶ (ChainComplex.single₀ D).obj W) |
| 70 | (g : W ⟶ F.obj Z) (hβ : β.f 0 ≫ F.map (ε.f 0) = η.f 0 ≫ g) |
| 71 | |
| 72 | include hβ in |
| 73 | theorem source_component (b : ℕ) : |
| 74 | Total.component R P ε K b ≫ ((m).f b).f 0 = |
| 75 | (AlgebraicGeometry.Crystalline.Cohomology.Acyclic.TransportNaturality.AcyclicTransportNaturality.sectionMap R F Z g γ).f b ≫ |
| 76 | Total.component R Q η L b := by |
| 77 | apply ModuleCat.hom_ext |
| 78 | apply LinearMap.ext |
| 79 | intro x |
| 80 | exact (Transport.map_apply F R P Q β γ b 0 |
| 81 | ((Ext.mk₀ (ε.f 0)).comp x (zero_add 0))).trans |
| 82 | (source_formula F (ε.f 0) (β.f 0) (η.f 0) g (γ.f b) hβ x) |
| 83 | |
| 84 | include hβ in |
| 85 | theorem source_edge : Total.edge R P ε K ≫ totalMap F R P Q β γ = |
| 86 | AlgebraicGeometry.Crystalline.Cohomology.Acyclic.TransportNaturality.AcyclicTransportNaturality.sectionMap R F Z g γ ≫ |
| 87 | Total.edge R Q η L := |
| 88 | BicomplexHorizontalEdge.naturality _ _ |
| 89 | (Total.component R P ε K) (Total.vertical R P ε K) |
| 90 | (Total.horizontal R P ε K) _ _ |
| 91 | (Total.component R Q η L) (Total.vertical R Q η L) |
| 92 | (Total.horizontal R Q η L) m |
| 93 | (AlgebraicGeometry.Crystalline.Cohomology.Acyclic.TransportNaturality.AcyclicTransportNaturality.sectionMap R F Z g γ) |
| 94 | (source_component F R P Q β γ ε η g hβ) |
| 95 | |
| 96 | variable {Y : C} {Y' : D} (ι : (CochainComplex.single₀ C).obj Y ⟶ K) |
| 97 | (κ : (CochainComplex.single₀ D).obj Y' ⟶ L) |
| 98 | (a : F.obj Y ⟶ Y') (hγ : F.map (ι.f 0) ≫ γ.f 0 = a ≫ κ.f 0) |
| 99 | |
| 100 | def coefficientMap : Acyclic.ChainCohomology.complex R Y P ⟶ |
| 101 | Acyclic.ChainCohomology.complex R Y' Q := |
| 102 | Transport.rowMap F R P Q β Y ≫ |
| 103 | Acyclic.ChainCoefficientNaturality.complexMap R a Q |
| 104 | |
| 105 | theorem coefficientMap_apply (b : ℕ) (x : Ext.{z} (P.X b) Y 0) : |
| 106 | (coefficientMap F R P Q β a).f b x = |
| 107 | (Ext.mk₀ (β.f b)).comp ((x.mapExactFunctor F).comp (Ext.mk₀ a) (add_zero 0)) (zero_add 0) := |
| 108 | Ext.comp_assoc_of_third_deg_zero (Ext.mk₀ (β.f b)) (x.mapExactFunctor F) |
| 109 | (Ext.mk₀ a) (zero_add 0) |
| 110 | |
| 111 | include hγ in |
| 112 | theorem coefficient_row : CoefficientEdge.rowMap R P K ι ≫ (m).f 0 = |
| 113 | coefficientMap F R P Q β a ≫ CoefficientEdge.rowMap R Q L κ := by |
| 114 | apply HomologicalComplex.Hom.ext |
| 115 | funext b |
| 116 | apply ModuleCat.hom_ext |
| 117 | apply LinearMap.ext |
| 118 | intro x |
| 119 | exact (Transport.map_apply F R P Q β γ 0 b |
| 120 | (x.comp (Ext.mk₀ (ι.f 0)) (add_zero 0))).trans |
| 121 | ((coefficient_formula F (β.f b) (ι.f 0) (γ.f 0) a (κ.f 0) hγ x).trans |
| 122 | (congrArg (fun e : Ext.{z} (Q.X b) Y' 0 => e.comp (Ext.mk₀ (κ.f 0)) (add_zero 0)) |
| 123 | (coefficientMap_apply F R P Q β a b x).symm)) |
| 124 | |
| 125 | include hγ in |
| 126 | theorem coefficient_edge : CoefficientEdge.edge R P K ι ≫ totalMap F R P Q β γ = |
| 127 | coefficientMap F R P Q β a ≫ CoefficientEdge.edge R Q L κ := |
| 128 | BicomplexCoefficientEdge.naturality _ _ |
| 129 | (CoefficientEdge.rowMap R P K ι) (CoefficientEdge.closed R P K ι) |
| 130 | _ (CoefficientEdge.rowMap R Q L κ) (CoefficientEdge.closed R Q L κ) |
| 131 | m (coefficientMap F R P Q β a) (coefficient_row F R P Q β γ ι κ a hγ) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.TransportEdges |