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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.Algebra.Homology.Notation |
| 7 | import Mathlib.Algebra.Homology.DerivedCategory.RightDerivedFunctorPlus |
| 8 | |
| 9 | /-! # Derived Functor Plus Naturality -/ |
| 10 | |
| 11 | namespace OAI.Algebra.Homology.DerivedFunctorPlusNaturality |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | open _root_.CategoryTheory.NatTrans |
| 17 | |
| 18 | /-! |
| 19 | # Natural transformations on bounded-below right derived functors |
| 20 | |
| 21 | A natural transformation of additive functors induces a transformation of their |
| 22 | right derived functors. The construction uses the derived universal property, |
| 23 | and its compatibility with the derived units is proved. This supplies, for |
| 24 | example, the canonical support-enlargement and forget-support maps. |
| 25 | -/ |
| 26 | |
| 27 | namespace CategoryTheory.NatTrans |
| 28 | |
| 29 | variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 30 | {F G H : C ⥤ D} [F.Additive] [G.Additive] [H.Additive] |
| 31 | |
| 32 | set_option backward.isDefEq.respectTransparency false in |
| 33 | /-- Let `F,G: C → D` be additive functors between abelian categories and `α: F → G` a natural |
| 34 | transformation. Applying `α` in each degree of a bounded-below cochain complex gives this |
| 35 | transformation between the induced functors on bounded-below homotopy categories. -/ |
| 36 | def mapHomotopyCategoryPlus (α : F ⟶ G) : |
| 37 | F.mapHomotopyCategoryPlus ⟶ G.mapHomotopyCategoryPlus where |
| 38 | app K := ObjectProperty.homMk ((α.mapHomotopyCategory ℤᵘᵖ).app K.obj) |
| 39 | naturality K L f := by |
| 40 | ext |
| 41 | exact (α.mapHomotopyCategory ℤᵘᵖ).naturality f.hom |
| 42 | |
| 43 | @[simp] |
| 44 | theorem mapHomotopyCategoryPlus_id (F : C ⥤ D) [F.Additive] : |
| 45 | NatTrans.mapHomotopyCategoryPlus (𝟙 F) = 𝟙 F.mapHomotopyCategoryPlus := rfl |
| 46 | |
| 47 | @[simp] |
| 48 | theorem mapHomotopyCategoryPlus_comp (α : F ⟶ G) (β : G ⟶ H) : |
| 49 | NatTrans.mapHomotopyCategoryPlus (α ≫ β) = |
| 50 | NatTrans.mapHomotopyCategoryPlus α ≫ NatTrans.mapHomotopyCategoryPlus β := rfl |
| 51 | |
| 52 | variable [HasDerivedCategory C] [HasDerivedCategory D] [EnoughInjectives C] |
| 53 | |
| 54 | /-- Let `F,G: C → D` be additive functors between abelian categories with derived categories, and |
| 55 | assume `C` has enough injectives. A natural transformation `α: F → G` induces this |
| 56 | transformation `RF → RG` on bounded-below derived categories. It is computed by applying `α` |
| 57 | degreewise to an injective resolution. -/ |
| 58 | def rightDerivedFunctorPlus (α : F ⟶ G) : |
| 59 | F.rightDerivedFunctorPlus ⟶ G.rightDerivedFunctorPlus := |
| 60 | Functor.rightDerivedNatTrans F.rightDerivedFunctorPlus G.rightDerivedFunctorPlus |
| 61 | F.rightDerivedFunctorPlusUnith G.rightDerivedFunctorPlusUnith |
| 62 | (HomotopyCategory.Plus.quasiIso C) |
| 63 | (Functor.whiskerRight (NatTrans.mapHomotopyCategoryPlus α) DerivedCategory.Plus.Qh) |
| 64 | |
| 65 | /-- Compatibility with the derived units on every bounded-below homotopy complex. -/ |
| 66 | @[reassoc (attr := simp)] |
| 67 | theorem rightDerivedFunctorPlus_unit (α : F ⟶ G) : |
| 68 | F.rightDerivedFunctorPlusUnith ≫ |
| 69 | Functor.whiskerLeft DerivedCategory.Plus.Qh (NatTrans.rightDerivedFunctorPlus α) = |
| 70 | Functor.whiskerRight (NatTrans.mapHomotopyCategoryPlus α) DerivedCategory.Plus.Qh ≫ |
| 71 | G.rightDerivedFunctorPlusUnith := |
| 72 | Functor.rightDerivedNatTrans_fac _ _ _ _ _ _ |
| 73 | |
| 74 | /-- The pointwise form pins the derived transformation to the coefficient transformation |
| 75 | when computing on an injective resolution. -/ |
| 76 | @[reassoc (attr := simp)] |
| 77 | theorem rightDerivedFunctorPlus_unit_app (α : F ⟶ G) |
| 78 | (K : HomotopyCategory.Plus C) : |
| 79 | F.rightDerivedFunctorPlusUnith.app K ≫ |
| 80 | (NatTrans.rightDerivedFunctorPlus α).app (DerivedCategory.Plus.Qh.obj K) = |
| 81 | DerivedCategory.Plus.Qh.map ((NatTrans.mapHomotopyCategoryPlus α).app K) ≫ |
| 82 | G.rightDerivedFunctorPlusUnith.app K := |
| 83 | Functor.rightDerivedNatTrans_app _ _ _ _ _ _ _ |
| 84 | |
| 85 | @[simp] |
| 86 | theorem rightDerivedFunctorPlus_id (F : C ⥤ D) [F.Additive] : |
| 87 | NatTrans.rightDerivedFunctorPlus (𝟙 F) = 𝟙 F.rightDerivedFunctorPlus := by |
| 88 | simp [NatTrans.rightDerivedFunctorPlus] |
| 89 | |
| 90 | @[simp] |
| 91 | theorem rightDerivedFunctorPlus_comp (α : F ⟶ G) (β : G ⟶ H) : |
| 92 | NatTrans.rightDerivedFunctorPlus (α ≫ β) = |
| 93 | NatTrans.rightDerivedFunctorPlus α ≫ NatTrans.rightDerivedFunctorPlus β := by |
| 94 | simp [NatTrans.rightDerivedFunctorPlus] |
| 95 | |
| 96 | end CategoryTheory.NatTrans |
| 97 | |
| 98 | namespace CategoryTheory.NatIso |
| 99 | open _root_.CategoryTheory.NatIso |
| 100 | |
| 101 | variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 102 | [HasDerivedCategory C] [HasDerivedCategory D] [EnoughInjectives C] |
| 103 | {F G : C ⥤ D} [F.Additive] [G.Additive] |
| 104 | |
| 105 | /-- Let `F,G: C → D` be additive functors between abelian categories with derived categories, and |
| 106 | assume `C` has enough injectives. A natural isomorphism `e: F ≅ G` induces this isomorphism `RF |
| 107 | ≅ RG` on bounded-below derived categories, by applying `e` degreewise to injective resolutions. -/ |
| 108 | def rightDerivedFunctorPlus (e : F ≅ G) : |
| 109 | F.rightDerivedFunctorPlus ≅ G.rightDerivedFunctorPlus where |
| 110 | hom := (NatTrans.rightDerivedFunctorPlus e.hom) |
| 111 | inv := (NatTrans.rightDerivedFunctorPlus e.inv) |
| 112 | hom_inv_id := by |
| 113 | rw [← NatTrans.rightDerivedFunctorPlus_comp, e.hom_inv_id, |
| 114 | NatTrans.rightDerivedFunctorPlus_id] |
| 115 | inv_hom_id := by |
| 116 | rw [← NatTrans.rightDerivedFunctorPlus_comp, e.inv_hom_id, |
| 117 | NatTrans.rightDerivedFunctorPlus_id] |
| 118 | |
| 119 | end CategoryTheory.NatIso |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.Algebra.Homology.DerivedFunctorPlusNaturality |