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.ResolutionHomologyData |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceExactFunctorModule |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ShortCyclesExactFunctor |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceMappedSequenceConnecting |
| 6 | |
| 7 | /-! # Exact Functor Homology -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorHomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual acyclic source-resolution homology data commute with exact functors and cycle transport. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | attribute [local instance] preservesFiniteLimits_op preservesFiniteColimits_op |
| 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 | (R : Type t) [CommRing R] [Linear R C] [Linear R D] [F.Linear R] (Y : C) |
| 27 | {T : ShortComplex Cᵒᵖ} {U : ShortComplex Dᵒᵖ} (φ : T.map F.op ⟶ U) |
| 28 | |
| 29 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R Y 0 |
| 30 | local notation "H" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ContravariantModuleFunctor.functor R (F.obj Y) 0 |
| 31 | |
| 32 | def shortMap : T.map G ⟶ U.map H := |
| 33 | IntegralComparison.Ext.SourceExactFunctorModule.shortMap F R Y 0 T ≫ (H).mapShortComplex.map φ |
| 34 | |
| 35 | theorem shortMap_id : shortMap F R Y (𝟙 (T.map F.op)) = IntegralComparison.Ext.SourceExactFunctorModule.shortMap F R Y 0 T := by |
| 36 | exact (congrArg (fun h => IntegralComparison.Ext.SourceExactFunctorModule.shortMap F R Y 0 T ≫ h) |
| 37 | ((H).mapShortComplex.map_id (T.map F.op))).trans (Category.comp_id _) |
| 38 | |
| 39 | variable {A : Cᵒᵖ} {B : Dᵒᵖ} (a : A ⟶ T.X₁) (b : B ⟶ U.X₁) |
| 40 | (ha : a ≫ T.toCycles = 0) (hb : b ≫ U.toCycles = 0) |
| 41 | (hT : (ShortComplex.mk a T.toCycles ha).ShortExact) |
| 42 | (hU : (ShortComplex.mk b U.toCycles hb).ShortExact) |
| 43 | [Subsingleton (Ext.{z} T.X₁.unop Y 1)] [Subsingleton (Ext.{z} U.X₁.unop (F.obj Y) 1)] |
| 44 | (g : F.op.obj A ⟶ B) (hg : g ≫ b = F.op.map a ≫ φ.τ₁) |
| 45 | |
| 46 | local notation "dT" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionHomologyData.data R Y T a ha hT |
| 47 | local notation "dU" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionHomologyData.data R (F.obj Y) U b hb hU |
| 48 | local notation "c" => OAI.NumberTheory.PadicHodge.IntegralComparison.ShortCyclesExactFunctor.cycleMap F.op φ |
| 49 | local notation "η" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 0 |
| 50 | |
| 51 | omit [Subsingleton (Ext.{z} T.X₁.unop Y 1)] [Subsingleton (Ext.{z} U.X₁.unop (F.obj Y) 1)] in |
| 52 | private theorem commi : (η T.cycles ≫ (H).map c) ≫ (H).map U.iCycles = |
| 53 | (G).map T.iCycles ≫ (η T.X₂ ≫ (H).map φ.τ₂) := by |
| 54 | calc |
| 55 | _ = η T.cycles ≫ (H).map (c ≫ U.iCycles) := by rw [Category.assoc, ← (H).map_comp] |
| 56 | _ = η T.cycles ≫ (H).map (F.op.map T.iCycles ≫ φ.τ₂) := by rw [ShortCyclesExactFunctor.cycleMap_i] |
| 57 | _ = (η T.cycles ≫ (H).map (F.op.map T.iCycles)) ≫ (H).map φ.τ₂ := |
| 58 | (congrArg (fun h => η T.cycles ≫ h) ((H).map_comp (F.op.map T.iCycles) φ.τ₂)).trans |
| 59 | (Category.assoc _ _ _).symm |
| 60 | _ = _ := by rw [← IntegralComparison.Ext.SourceExactFunctorModule.naturality, Category.assoc] |
| 61 | |
| 62 | omit [Subsingleton (Ext.{z} T.X₁.unop Y 1)] [Subsingleton (Ext.{z} U.X₁.unop (F.obj Y) 1)] in |
| 63 | private theorem commf : (G).map T.toCycles ≫ (η T.cycles ≫ (H).map c) = |
| 64 | (η T.X₁ ≫ (H).map φ.τ₁) ≫ (H).map U.toCycles := by |
| 65 | calc |
| 66 | _ = ((G).map T.toCycles ≫ η T.cycles) ≫ (H).map c := (Category.assoc _ _ _).symm |
| 67 | _ = (η T.X₁ ≫ (H).map (F.op.map T.toCycles)) ≫ (H).map c := by rw [IntegralComparison.Ext.SourceExactFunctorModule.naturality] |
| 68 | _ = η T.X₁ ≫ (H).map (F.op.map T.toCycles ≫ c) := by rw [Category.assoc, ← (H).map_comp] |
| 69 | _ = η T.X₁ ≫ (H).map (φ.τ₁ ≫ U.toCycles) := |
| 70 | congrArg (fun h => η T.X₁ ≫ (H).map h) (ShortCyclesExactFunctor.toCycles F.op φ) |
| 71 | _ = _ := (congrArg (fun h => η T.X₁ ≫ h) ((H).map_comp φ.τ₁ U.toCycles)).trans |
| 72 | (Category.assoc _ _ _).symm |
| 73 | |
| 74 | def data : ShortComplex.LeftHomologyMapData (shortMap F R Y φ) dT dU where |
| 75 | φK := η T.cycles ≫ (H).map c |
| 76 | φH := IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 1 A ≫ |
| 77 | (IntegralComparison.Ext.ContravariantModuleFunctor.functor R (F.obj Y) 1).map g |
| 78 | commi := ExactFunctorHomology.commi F R Y φ |
| 79 | commf' := by |
| 80 | have hs : (dT).f' = (G).map T.toCycles := IntegralComparison.Ext.SourceZeroKernels.cycleKernel_lift R Y T |
| 81 | have ht : (dU).f' = (H).map U.toCycles := IntegralComparison.Ext.SourceZeroKernels.cycleKernel_lift R (F.obj Y) U |
| 82 | exact (congrArg (fun f => f ≫ (η T.cycles ≫ (H).map c)) hs).trans |
| 83 | ((commf F R Y φ).trans (congrArg (fun f => (η T.X₁ ≫ (H).map φ.τ₁) ≫ f) ht.symm)) |
| 84 | commπ := by |
| 85 | apply ModuleCat.hom_ext |
| 86 | apply LinearMap.ext |
| 87 | intro α |
| 88 | exact (IntegralComparison.Ext.SourceMappedSequenceConnecting.connecting F Y hT hU |
| 89 | (ShortCyclesExactFunctor.sequenceMap F.op φ a b ha hb g hg) 0 α).symm |
| 90 | |
| 91 | include hg in |
| 92 | theorem homology : ShortComplex.homologyMap (shortMap F R Y φ) ≫ (dU).homologyIso.hom = |
| 93 | (dT).homologyIso.hom ≫ (IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 1 A ≫ |
| 94 | (IntegralComparison.Ext.ContravariantModuleFunctor.functor R (F.obj Y) 1).map g) := |
| 95 | (data F R Y φ a b ha hb hT hU g hg).homologyMap_comm |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorHomology |