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.AlgebraicGeometry.Comparison.Betti.HomQuasiIso |
| 2 | import Mathlib.Algebra.Homology.Factorizations.CM5a |
| 3 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughInjectives |
| 4 | import Mathlib.Algebra.Homology.DerivedCategory.KInjective |
| 5 | |
| 6 | /-! # Injective Replacement -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Acyclic.InjectiveReplacement.Ext |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual bounded-below injective replacements and their Hom cohomology comparison. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Abelian Opposite _root_.HomologicalComplex |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] [EnoughInjectives C] |
| 19 | (K : CochainComplex C ℤ) (n : ℤ) [K.IsStrictlyGE n] |
| 20 | |
| 21 | def boundedInjectiveReplacement : CochainComplex C ℤ := |
| 22 | (CochainComplex.Plus.modelCategoryQuillen.exists_quasiIso_injective K n).choose |
| 23 | |
| 24 | def boundedInjectiveReplacementMap : K ⟶ boundedInjectiveReplacement K n := |
| 25 | (CochainComplex.Plus.modelCategoryQuillen.exists_quasiIso_injective K n).choose_spec.choose |
| 26 | |
| 27 | instance boundedInjectiveReplacementMap_quasiIso : |
| 28 | QuasiIso (boundedInjectiveReplacementMap K n) := |
| 29 | (CochainComplex.Plus.modelCategoryQuillen.exists_quasiIso_injective K n).choose_spec.choose_spec.choose |
| 30 | |
| 31 | instance boundedInjectiveReplacement_injective (p : ℤ) : |
| 32 | Injective ((boundedInjectiveReplacement K n).X p) := |
| 33 | (CochainComplex.Plus.modelCategoryQuillen.exists_quasiIso_injective K n).choose_spec.choose_spec.choose_spec.choose p |
| 34 | |
| 35 | instance boundedInjectiveReplacement_bound : (boundedInjectiveReplacement K n).IsStrictlyGE n := |
| 36 | (CochainComplex.Plus.modelCategoryQuillen.exists_quasiIso_injective K n).choose_spec.choose_spec.choose_spec.choose_spec |
| 37 | |
| 38 | instance boundedInjectiveReplacement_isKInjective : |
| 39 | (boundedInjectiveReplacement K n).IsKInjective := |
| 40 | CochainComplex.isKInjective_of_injective _ n |
| 41 | |
| 42 | variable [HasExt.{w} C] (A : C) |
| 43 | |
| 44 | theorem boundedInjectiveReplacementMap_hom_quasiIso |
| 45 | (hExt : ∀ p q, Subsingleton (Ext A (K.X p) (q + 1))) : |
| 46 | QuasiIso (((preadditiveCoyoneda.obj (op A)).mapHomologicalComplex (.up ℤ)).map |
| 47 | (boundedInjectiveReplacementMap K n)) := |
| 48 | HomQuasiIso.Ext.integerHomComplex_map_quasiIso A (boundedInjectiveReplacementMap K n) n hExt |
| 49 | (fun p q => Ext.subsingleton_of_injective A ((boundedInjectiveReplacement K n).X p) q) |
| 50 | |
| 51 | def boundedInjectiveReplacementHomologyIso |
| 52 | (hExt : ∀ p q, Subsingleton (Ext A (K.X p) (q + 1))) (p : ℤ) : |
| 53 | (IntegerAcyclicHomComplex.Ext.integerHomComplex A K).homology p ≅ |
| 54 | (IntegerAcyclicHomComplex.Ext.integerHomComplex A (boundedInjectiveReplacement K n)).homology p := by |
| 55 | let f : IntegerAcyclicHomComplex.Ext.integerHomComplex A K ⟶ IntegerAcyclicHomComplex.Ext.integerHomComplex A (boundedInjectiveReplacement K n) := |
| 56 | ((preadditiveCoyoneda.obj (op A)).mapHomologicalComplex (.up ℤ)).map |
| 57 | (boundedInjectiveReplacementMap K n) |
| 58 | have : QuasiIso f := boundedInjectiveReplacementMap_hom_quasiIso K n A hExt |
| 59 | have : IsIso (homologyMap f p) := |
| 60 | (quasiIsoAt_iff_isIso_homologyMap f p).mp inferInstance |
| 61 | exact asIso (homologyMap f p) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Comparison.Betti.Acyclic.InjectiveReplacement.Ext |