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.ExactFunctorShort |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorComplex |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cochain.HomologyTripleNaturality |
| 5 | |
| 6 | /-! # Exact Functor Positive -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorPositive |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Positive-degree homology of actual source section complexes computes the original exact-functor Ext map. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | attribute [local instance] preservesFiniteLimits_op preservesFiniteColimits_op |
| 17 | |
| 18 | open Abelian |
| 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 | (K : CochainComplex Cᵒᵖ ℕ) {Z : Cᵒᵖ} (ι : (CochainComplex.single₀ Cᵒᵖ).obj Z ⟶ K) |
| 27 | (κ : (CochainComplex.single₀ Dᵒᵖ).obj (F.op.obj Z) ⟶ |
| 28 | (F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K) (hκ : κ.f 0 = F.op.map (ι.f 0)) |
| 29 | [QuasiIso ι] [QuasiIso κ] |
| 30 | (hK : ∀ a q, Subsingleton (Ext.{z} (K.X a).unop Y (q + 1))) |
| 31 | (hL : ∀ a q, Subsingleton (Ext.{z} (((F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K).X a).unop (F.obj Y) (q + 1))) |
| 32 | |
| 33 | local notation "L" => Functor.obj (Functor.mapHomologicalComplex F.op (ComplexShape.up ℕ)) K |
| 34 | |
| 35 | include hκ in |
| 36 | theorem homology (n : ℕ) : HomologicalComplex.homologyMap (ExactFunctorComplex.map F R Y K) (n + 1) ≫ |
| 37 | (Resolution.Comparison.positiveHomologyIso R (F.obj Y) L κ hL n).hom = |
| 38 | (Resolution.Comparison.positiveHomologyIso R Y K ι hK n).hom ≫ |
| 39 | IntegralComparison.Ext.SourceExactFunctorModule.component F R Y (n + 1) Z := by |
| 40 | have h₁ := Cochain.HomologyTripleNaturality.naturality (ExactFunctorComplex.map F R Y K) n |
| 41 | have h₂ := ExactFunctorShort.short F R Y K ι κ hκ hK hL n |
| 42 | exact (Category.assoc _ _ _).symm.trans |
| 43 | ((congrArg (fun a => a ≫ (Resolution.Comparison.shortHomologyIso R (F.obj Y) L κ hL n).hom) h₁).trans |
| 44 | ((Category.assoc _ _ _).trans |
| 45 | ((congrArg (fun a => |
| 46 | ((Resolution.Comparison.complex R Y K).homologyIsoSc' n (n + 1) (n + 2) |
| 47 | (by simp) (by simp)).hom ≫ a) h₂).trans (Category.assoc _ _ _).symm))) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorPositive |