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.Algebra.Homology.DerivedCategory.Basic |
| 2 | import Mathlib.CategoryTheory.Localization.Adjunction |
| 3 | |
| 4 | /-! # Exact Derived -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ExactDerived.ExactDerivedAdjunction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Passing an exact additive adjunction to actual derived categories -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u₁ u₂ v₁ v₂ w₁ w₂ |
| 15 | |
| 16 | variable {C : Type u₁} [Category.{v₁} C] [Abelian C] |
| 17 | {D : Type u₂} [Category.{v₂} D] [Abelian D] |
| 18 | {F : C ⥤ D} [F.Additive] {G : D ⥤ C} [G.Additive] (adj : F ⊣ G) |
| 19 | |
| 20 | def onComplexes : F.mapHomologicalComplex (ComplexShape.up ℤ) ⊣ |
| 21 | G.mapHomologicalComplex (ComplexShape.up ℤ) where |
| 22 | unit := |
| 23 | { app := fun K => |
| 24 | { f := fun i => adj.unit.app (K.X i) |
| 25 | comm' := fun i j _ => (adj.unit.naturality (K.d i j)).symm } |
| 26 | naturality := fun K L φ => by |
| 27 | apply HomologicalComplex.Hom.ext |
| 28 | funext i |
| 29 | exact adj.unit.naturality (φ.f i) } |
| 30 | counit := |
| 31 | { app := fun K => |
| 32 | { f := fun i => adj.counit.app (K.X i) |
| 33 | comm' := fun i j _ => (adj.counit.naturality (K.d i j)).symm } |
| 34 | naturality := fun K L φ => by |
| 35 | apply HomologicalComplex.Hom.ext |
| 36 | funext i |
| 37 | exact adj.counit.naturality (φ.f i) } |
| 38 | left_triangle_components K := by |
| 39 | apply HomologicalComplex.Hom.ext |
| 40 | funext i |
| 41 | exact adj.left_triangle_components (K.X i) |
| 42 | right_triangle_components K := by |
| 43 | apply HomologicalComplex.Hom.ext |
| 44 | funext i |
| 45 | exact adj.right_triangle_components (K.X i) |
| 46 | |
| 47 | variable [HasDerivedCategory.{w₁} C] [HasDerivedCategory.{w₂} D] |
| 48 | |
| 49 | def map (F : C ⥤ D) [F.Additive] [F.PreservesHomology] : DerivedCategory C ⥤ DerivedCategory D := |
| 50 | F.mapHomologicalComplexUpToQuasiIso (ComplexShape.up ℤ) |
| 51 | |
| 52 | def mapFactors (F : C ⥤ D) [F.Additive] [F.PreservesHomology] : |
| 53 | DerivedCategory.Q ⋙ map F ≅ F.mapHomologicalComplex (ComplexShape.up ℤ) ⋙ DerivedCategory.Q := |
| 54 | F.mapHomologicalComplexUpToQuasiIsoFactors (ComplexShape.up ℤ) |
| 55 | |
| 56 | def onDerived [F.PreservesHomology] [G.PreservesHomology] : map F ⊣ map G := by |
| 57 | letI : CatCommSq (F.mapHomologicalComplex (ComplexShape.up ℤ)) |
| 58 | (DerivedCategory.Q (C := C)) (DerivedCategory.Q (C := D)) (map F) := |
| 59 | ⟨(mapFactors F).symm⟩ |
| 60 | letI : CatCommSq (G.mapHomologicalComplex (ComplexShape.up ℤ)) |
| 61 | (DerivedCategory.Q (C := D)) (DerivedCategory.Q (C := C)) (map G) := |
| 62 | ⟨(mapFactors G).symm⟩ |
| 63 | exact (onComplexes adj).localization DerivedCategory.Q (HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) |
| 64 | DerivedCategory.Q (HomologicalComplex.quasiIso D (ComplexShape.up ℤ)) (map F) (map G) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ExactDerived.ExactDerivedAdjunction |