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 Mathlib.CategoryTheory.Limits.Preserves.Opposites |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorHomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorShift |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.Resolution |
| 5 | |
| 6 | /-! # Exact Functor Short -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorShort |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Exact functors preserve the original positive-degree Ext comparison on consecutive terms. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | attribute [local instance] preservesFiniteLimits_op preservesFiniteColimits_op |
| 17 | |
| 18 | open Abelian OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ResolutionCycles |
| 19 | |
| 20 | universe u v u' v' z t |
| 21 | |
| 22 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 23 | {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{z} D] |
| 24 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 25 | (R : Type t) [CommRing R] [Linear R C] [Linear R D] [F.Linear R] (Y : C) |
| 26 | |
| 27 | private theorem transport {Z : Cᵒᵖ} {d d' : ℕ} (hd : d = d') |
| 28 | {U V : Type z} [AddCommGroup U] [Module R U] [AddCommGroup V] [Module R V] |
| 29 | (e : U ≃ₗ[R] Ext.{z} Z.unop Y d) (e' : V ≃ₗ[R] Ext.{z} (F.op.obj Z).unop (F.obj Y) d) |
| 30 | (a : ModuleCat.of R U ⟶ ModuleCat.of R V) |
| 31 | (h : a ≫ e'.toModuleIso.hom = e.toModuleIso.hom ≫ IntegralComparison.Ext.SourceExactFunctorModule.component F R Y d Z) : |
| 32 | a ≫ (hd ▸ e').toModuleIso.hom = |
| 33 | (hd ▸ e).toModuleIso.hom ≫ IntegralComparison.Ext.SourceExactFunctorModule.component F R Y d' Z := by |
| 34 | subst d' |
| 35 | exact h |
| 36 | |
| 37 | variable (K : CochainComplex Cᵒᵖ ℕ) {Z : Cᵒᵖ} (ι : (CochainComplex.single₀ Cᵒᵖ).obj Z ⟶ K) |
| 38 | (κ : (CochainComplex.single₀ Dᵒᵖ).obj (F.op.obj Z) ⟶ |
| 39 | (F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K) (hκ : κ.f 0 = F.op.map (ι.f 0)) |
| 40 | [QuasiIso ι] [QuasiIso κ] |
| 41 | (hK : ∀ a q, Subsingleton (Ext.{z} (K.X a).unop Y (q + 1))) |
| 42 | (hL : ∀ a q, Subsingleton (Ext.{z} (((F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K).X a).unop (F.obj Y) (q + 1))) |
| 43 | |
| 44 | local notation "L" => Functor.obj (Functor.mapHomologicalComplex F.op (ComplexShape.up ℕ)) K |
| 45 | |
| 46 | include hκ |
| 47 | |
| 48 | theorem short_zero : ShortComplex.homologyMap |
| 49 | (IntegralComparison.Ext.SourceExactFunctorModule.shortMap F R Y 0 (Augmented.ResolutionCycles.differentialSequence K 0)) ≫ |
| 50 | (Resolution.Comparison.shortHomologyIso R (F.obj Y) L κ hL 0).hom = |
| 51 | (Resolution.Comparison.shortHomologyIso R Y K ι hK 0).hom ≫ |
| 52 | IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 1 Z := by |
| 53 | let : Subsingleton (Ext.{z} (K.X 0).unop Y 1) := hK 0 0 |
| 54 | let : Subsingleton (Ext.{z} ((L).X 0).unop (F.obj Y) 1) := hL 0 0 |
| 55 | let : Subsingleton (Ext.{z} ((Augmented.ResolutionCycles.differentialSequence K 0).map F.op).X₁.unop (F.obj Y) 1) := hL 0 0 |
| 56 | have h := ExactFunctorHomology.homology F R Y (𝟙 ((Augmented.ResolutionCycles.differentialSequence K 0).map F.op)) |
| 57 | (Augmented.ResolutionCycles.augmentation K ι) (Augmented.ResolutionCycles.augmentation L κ) (Augmented.ResolutionCycles.initialSequence K ι).zero (Augmented.ResolutionCycles.initialSequence L κ).zero |
| 58 | (Augmented.ResolutionCycles.initialSequence_shortExact K ι) (Augmented.ResolutionCycles.initialSequence_shortExact L κ) (𝟙 (F.op.obj Z)) |
| 59 | ((Category.id_comp _).trans (hκ.trans (Category.comp_id _).symm)) |
| 60 | rw [ExactFunctorHomology.shortMap_id] at h |
| 61 | exact h.trans (congrArg (fun a => |
| 62 | (Resolution.Comparison.shortHomologyIso R Y K ι hK 0).hom ≫ a) |
| 63 | ((congrArg (fun a => IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 1 Z ≫ a) |
| 64 | ((IntegralComparison.Ext.ContravariantModuleFunctor.functor R (F.obj Y) 1).map_id (F.op.obj Z))).trans (Category.comp_id _))) |
| 65 | |
| 66 | theorem short_succ (n : ℕ) : ShortComplex.homologyMap |
| 67 | (IntegralComparison.Ext.SourceExactFunctorModule.shortMap F R Y 0 (Augmented.ResolutionCycles.differentialSequence K (n + 1))) ≫ |
| 68 | (Resolution.Comparison.shortHomologyIso R (F.obj Y) L κ hL (n + 1)).hom = |
| 69 | (Resolution.Comparison.shortHomologyIso R Y K ι hK (n + 1)).hom ≫ |
| 70 | IntegralComparison.Ext.SourceExactFunctorModule.component F R Y (n + 1 + 1) Z := by |
| 71 | let : Subsingleton (Ext.{z} (K.X (n + 1)).unop Y 1) := hK (n + 1) 0 |
| 72 | let : Subsingleton (Ext.{z} ((L).X (n + 1)).unop (F.obj Y) 1) := hL (n + 1) 0 |
| 73 | let : Subsingleton (Ext.{z} ((Augmented.ResolutionCycles.differentialSequence K (n + 1)).map F.op).X₁.unop (F.obj Y) 1) := hL (n + 1) 0 |
| 74 | let eK := ResolutionShift.cycleExtEquiv R Y K ι hK n 0 |
| 75 | let eL := ResolutionShift.cycleExtEquiv R (F.obj Y) L κ hL n 0 |
| 76 | let hc : n + 0 + 2 = n + 1 + 1 := by omega |
| 77 | let a := IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 1 (Augmented.ResolutionCycles.differentialSequence K n).cycles ≫ |
| 78 | (IntegralComparison.Ext.ContravariantModuleFunctor.functor R (F.obj Y) 1).map (Augmented.CyclesExactFunctor.cyclesIso F.op K n).hom |
| 79 | have hs : a ≫ (hc ▸ eL).toModuleIso.hom = |
| 80 | (hc ▸ eK).toModuleIso.hom ≫ IntegralComparison.Ext.SourceExactFunctorModule.component F R Y (n + 1 + 1) Z := by |
| 81 | apply transport F R Y hc eK eL |
| 82 | apply ModuleCat.hom_ext |
| 83 | apply LinearMap.ext |
| 84 | intro α |
| 85 | exact ExactFunctorShift.cycles F R Y K ι κ hκ hK hL n 0 α |
| 86 | have hd := ExactFunctorHomology.homology F R Y |
| 87 | (𝟙 ((Augmented.ResolutionCycles.differentialSequence K (n + 1)).map F.op)) |
| 88 | (Augmented.ResolutionCycles.differentialSequence K n).iCycles (Augmented.ResolutionCycles.differentialSequence L n).iCycles |
| 89 | (Augmented.ResolutionCycles.successiveSequence K n).zero (Augmented.ResolutionCycles.successiveSequence L n).zero |
| 90 | (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n) (Augmented.ResolutionCycles.successiveSequence_shortExact L κ n) |
| 91 | (Augmented.CyclesExactFunctor.cyclesIso F.op K n).hom |
| 92 | ((Augmented.CyclesExactFunctor.cycles_i F.op K n).trans (Category.comp_id _).symm) |
| 93 | rw [ExactFunctorHomology.shortMap_id] at hd |
| 94 | exact (Category.assoc _ _ _).symm.trans |
| 95 | ((congrArg (fun b => b ≫ (hc ▸ eL).toModuleIso.hom) hd).trans |
| 96 | ((Category.assoc _ _ _).trans |
| 97 | ((congrArg (fun b => |
| 98 | (ResolutionHomologyData.homologyIso R Y (Augmented.ResolutionCycles.differentialSequence K (n + 1)) |
| 99 | (Augmented.ResolutionCycles.successiveSequence K n).f (Augmented.ResolutionCycles.successiveSequence K n).zero |
| 100 | (Augmented.ResolutionCycles.successiveSequence_shortExact K ι n)).hom ≫ b) hs).trans |
| 101 | (Category.assoc _ _ _).symm))) |
| 102 | |
| 103 | theorem short (n : ℕ) : ShortComplex.homologyMap |
| 104 | (IntegralComparison.Ext.SourceExactFunctorModule.shortMap F R Y 0 (Augmented.ResolutionCycles.differentialSequence K n)) ≫ |
| 105 | (Resolution.Comparison.shortHomologyIso R (F.obj Y) L κ hL n).hom = |
| 106 | (Resolution.Comparison.shortHomologyIso R Y K ι hK n).hom ≫ |
| 107 | IntegralComparison.Ext.SourceExactFunctorModule.component F R Y (n + 1) Z := by |
| 108 | cases n with |
| 109 | | zero => exact short_zero F R Y K ι κ hκ hK hL |
| 110 | | succ n => exact short_succ F R Y K ι κ hκ hK hL n |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorShort |