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.ExactFunctorComplex |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionZero |
| 4 | |
| 5 | /-! # Exact Functor Zero -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorZero |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exact functors respect degree zero of the original acyclic source-resolution Ext comparison. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | attribute [local instance] preservesFiniteLimits_op preservesFiniteColimits_op |
| 16 | |
| 17 | open Abelian |
| 18 | |
| 19 | universe u v u' v' z t |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 22 | {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{z} D] |
| 23 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 24 | (R : Type t) [CommRing R] [Linear R C] [Linear R D] [F.Linear R] (Y : C) |
| 25 | (K : CochainComplex Cᵒᵖ ℕ) {Z : Cᵒᵖ} (ι : (CochainComplex.single₀ Cᵒᵖ).obj Z ⟶ K) |
| 26 | (κ : (CochainComplex.single₀ Dᵒᵖ).obj (F.op.obj Z) ⟶ |
| 27 | (F.op.mapHomologicalComplex (ComplexShape.up ℕ)).obj K) (hκ : κ.f 0 = F.op.map (ι.f 0)) |
| 28 | [QuasiIso ι] [QuasiIso κ] |
| 29 | |
| 30 | local notation "L" => Functor.obj (Functor.mapHomologicalComplex F.op (ComplexShape.up ℕ)) K |
| 31 | local notation "a" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionZero.augmentation R Y K ι |
| 32 | local notation "b" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionZero.augmentation R (F.obj Y) L κ |
| 33 | local notation "φ" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorComplex.map F R Y K |
| 34 | local notation "η" => OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.SourceExactFunctorModule.component F R Y 0 Z |
| 35 | |
| 36 | include hκ |
| 37 | |
| 38 | omit [QuasiIso ι] [QuasiIso κ] in |
| 39 | theorem augmentation : a ≫ φ = (CochainComplex.single₀ _).map η ≫ b := by |
| 40 | apply HomologicalComplex.from_single_hom_ext |
| 41 | change (a).f 0 ≫ (φ).f 0 = ((CochainComplex.single₀ _).map η).f 0 ≫ (b).f 0 |
| 42 | rw [ResolutionZero.augmentation_zero, |
| 43 | ResolutionZero.augmentation_zero, CochainComplex.single₀_map_f_zero] |
| 44 | exact (Ext.SourceExactFunctorModule.naturality F R Y 0 (ι.f 0)).trans |
| 45 | (congrArg (fun f => η ≫ (Ext.ContravariantModuleFunctor.functor R (F.obj Y) 0).map f) hκ.symm) |
| 46 | |
| 47 | theorem homology : HomologicalComplex.homologyMap φ 0 ≫ |
| 48 | (ResolutionZero.homologyIso R (F.obj Y) L κ).hom = |
| 49 | (ResolutionZero.homologyIso R Y K ι).hom ≫ η := by |
| 50 | have h : HomologicalComplex.homologyMap a 0 ≫ HomologicalComplex.homologyMap φ 0 = |
| 51 | HomologicalComplex.homologyMap ((CochainComplex.single₀ _).map η) 0 ≫ |
| 52 | HomologicalComplex.homologyMap b 0 := |
| 53 | (HomologicalComplex.homologyMap_comp a φ 0).symm.trans |
| 54 | ((congrArg (fun f => HomologicalComplex.homologyMap f 0) (augmentation F R Y K ι κ hκ)).trans |
| 55 | (HomologicalComplex.homologyMap_comp _ _ 0)) |
| 56 | apply (cancel_epi (HomologicalComplex.homologyMap a 0)).mp |
| 57 | change HomologicalComplex.homologyMap a 0 ≫ |
| 58 | (HomologicalComplex.homologyMap φ 0 ≫ ((isoOfQuasiIsoAt b 0).inv ≫ |
| 59 | (HomologicalComplex.singleObjHomologySelfIso (ComplexShape.up ℕ) 0 |
| 60 | ((Ext.ContravariantModuleFunctor.functor R (F.obj Y) 0).obj (F.op.obj Z))).hom)) = |
| 61 | HomologicalComplex.homologyMap a 0 ≫ (((isoOfQuasiIsoAt a 0).inv ≫ |
| 62 | (HomologicalComplex.singleObjHomologySelfIso (ComplexShape.up ℕ) 0 |
| 63 | ((Ext.ContravariantModuleFunctor.functor R Y 0).obj Z)).hom) ≫ η) |
| 64 | rw [← Category.assoc, h] |
| 65 | simp only [Category.assoc, isoOfQuasiIsoAt_hom_inv_id_assoc] |
| 66 | exact HomologicalComplex.singleObjHomologySelfIso_hom_naturality (ComplexShape.up ℕ) 0 η |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ExactFunctorZero |