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.PeriodInvariants.ExtFunctoriality |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.Frobenius |
| 3 | |
| 4 | /-! # Ext Transport -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.ExtTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Coherent transport of Ext with identified coefficient objects |
| 12 | |
| 13 | The transport maps use the actual exact functor and object isomorphisms. |
| 14 | Their composition law follows from the checked functoriality of Ext. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian |
| 18 | |
| 19 | universe w₁ w₂ w₃ |
| 20 | |
| 21 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.ExtFunctoriality OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.Frobenius |
| 22 | |
| 23 | variable (R : Type*) [CommRing R] |
| 24 | variable {C D E : Type*} [Category C] [Category D] [Category E] |
| 25 | [Abelian C] [Abelian D] [Abelian E] |
| 26 | [Linear R C] [Linear R D] [Linear R E] |
| 27 | [HasExt.{w₁} C] [HasExt.{w₂} D] [HasExt.{w₃} E] |
| 28 | |
| 29 | section Transport |
| 30 | |
| 31 | variable (F : C ⥤ D) [F.Additive] [F.Linear R] |
| 32 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 33 | |
| 34 | /-- Exact-functor transport followed by the specified identifications of both objects. -/ |
| 35 | def exactTransport {A B : C} {A' B' : D} (iA : F.obj A ≅ A') (iB : F.obj B ≅ B') (n : ℕ) : |
| 36 | Ext A B n →ₗ[R] Ext A' B' n := |
| 37 | (IntegralComparison.Etale.Frobenius.extIsoCongr R iA iB n).toLinearMap.comp (F.mapExtLinearMap R A B n) |
| 38 | |
| 39 | theorem exactTransport_apply {A B : C} {A' B' : D} (iA : F.obj A ≅ A') (iB : F.obj B ≅ B') |
| 40 | {n : ℕ} (α : Ext A B n) : |
| 41 | exactTransport R F iA iB n α = |
| 42 | ((Ext.mk₀ iA.inv).comp (α.mapExactFunctor F) (Nat.zero_add n)).comp |
| 43 | (Ext.mk₀ iB.hom) (Nat.add_zero n) := rfl |
| 44 | |
| 45 | end Transport |
| 46 | |
| 47 | section Composition |
| 48 | |
| 49 | variable [EnoughInjectives C] |
| 50 | variable (F : C ⥤ D) (G : D ⥤ E) [F.Additive] [G.Additive] [F.Linear R] [G.Linear R] |
| 51 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 52 | [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 53 | |
| 54 | theorem exactTransport_comp {A B : C} {A' B' : D} {A'' B'' : E} |
| 55 | (iA : F.obj A ≅ A') (iB : F.obj B ≅ B') |
| 56 | (jA : G.obj A' ≅ A'') (jB : G.obj B' ≅ B'') {n : ℕ} (α : Ext A B n) : |
| 57 | exactTransport R G jA jB n (exactTransport R F iA iB n α) = |
| 58 | exactTransport R (F ⋙ G) (G.mapIso iA ≪≫ jA) (G.mapIso iB ≪≫ jB) n α := by |
| 59 | simp only [exactTransport_apply, Ext.mapExactFunctor_comp, Ext.mapExactFunctor_mk₀, |
| 60 | Iso.trans_inv, Iso.trans_hom, Functor.mapIso_inv, Functor.mapIso_hom, |
| 61 | ExtFunctoriality.mapExactFunctor_compFunctor] |
| 62 | simp only [Ext.comp_assoc_of_second_deg_zero, Ext.comp_assoc_of_third_deg_zero, |
| 63 | Ext.mk₀_comp_mk₀] |
| 64 | rw [← Ext.comp_assoc_of_second_deg_zero, Ext.mk₀_comp_mk₀] |
| 65 | |
| 66 | end Composition |
| 67 | |
| 68 | variable [EnoughInjectives C] |
| 69 | variable {F G : C ⥤ D} [F.Additive] [G.Additive] [F.Linear R] [G.Linear R] |
| 70 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 71 | [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 72 | |
| 73 | theorem exactTransport_natIso (e : F ≅ G) {A B : C} {A' B' : D} |
| 74 | (iA : G.obj A ≅ A') (iB : G.obj B ≅ B') {n : ℕ} (α : Ext A B n) : |
| 75 | exactTransport R F (e.app A ≪≫ iA) (e.app B ≪≫ iB) n α = |
| 76 | exactTransport R G iA iB n α := by |
| 77 | have hn : (Ext.mk₀ (e.inv.app A)).comp |
| 78 | ((α.mapExactFunctor F).comp (Ext.mk₀ (e.hom.app B)) (Nat.add_zero n)) (Nat.zero_add n) = |
| 79 | α.mapExactFunctor G := by |
| 80 | rw [ExtFunctoriality.mapExactFunctor_naturality e.hom α, |
| 81 | ← Ext.comp_assoc_of_second_deg_zero, Ext.mk₀_comp_mk₀] |
| 82 | simp only [Iso.inv_hom_id_app, Ext.mk₀_id_comp] |
| 83 | have hh := congrArg (fun β : Ext (G.obj A) (G.obj B) n => |
| 84 | ((Ext.mk₀ iA.inv).comp β (Nat.zero_add n)).comp (Ext.mk₀ iB.hom) (Nat.add_zero n)) hn |
| 85 | simp only [Ext.comp_assoc_of_third_deg_zero, |
| 86 | Ext.mk₀_comp_mk₀] at hh |
| 87 | rw [← Ext.comp_assoc_of_second_deg_zero, Ext.mk₀_comp_mk₀] at hh |
| 88 | simp only [exactTransport_apply, Iso.trans_inv, Iso.trans_hom, Iso.app_inv, Iso.app_hom, |
| 89 | Ext.comp_assoc_of_third_deg_zero] |
| 90 | exact hh |
| 91 | |
| 92 | theorem exactTransport_id {A B : C} {n : ℕ} (α : Ext A B n) : |
| 93 | exactTransport R (𝟭 C) (Iso.refl A) (Iso.refl B) n α = α := by |
| 94 | simp only [exactTransport_apply, ExtFunctoriality.mapExactFunctor_id, Iso.refl_inv, Iso.refl_hom, |
| 95 | Ext.mk₀_id_comp] |
| 96 | exact Ext.comp_mk₀_id α |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.ExtTransport |