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 OAI.Algebra.Homology.DerivedFunctorPlusNaturality |
| 8 | import OAI.Algebra.Homology.DerivedFunctorPlusShift |
| 9 | |
| 10 | /-! # Functor Plus Shift Naturality -/ |
| 11 | |
| 12 | namespace OAI.Algebra.Homology.FunctorPlusShiftNaturality.CategoryTheory.NatTrans |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open _root_.CategoryTheory.NatTrans |
| 18 | |
| 19 | /-! |
| 20 | # Shift compatibility of derived natural transformations |
| 21 | |
| 22 | The transformations induced by coefficient maps commute with the coherent |
| 23 | shifts. This is needed to compare support enlargement before and after orientation duality. The |
| 24 | compatibility is proved on complexes and descended through the injective-resolution |
| 25 | comparison. |
| 26 | -/ |
| 27 | |
| 28 | section Detect |
| 29 | |
| 30 | variable {B C D : Type*} [Category* B] [Category* C] [Category* D] |
| 31 | (A : Type*) [AddMonoid A] [HasShift B A] [HasShift C A] [HasShift D A] |
| 32 | |
| 33 | /-- Shift compatibility can be checked after essentially surjective precomposition. -/ |
| 34 | lemma commShift_of_whiskerLeft (L : B ⥤ C) [L.EssSurj] [L.CommShift A] |
| 35 | {F G : C ⥤ D} [F.CommShift A] [G.CommShift A] (α : F ⟶ G) |
| 36 | [CommShift (Functor.whiskerLeft L α) A] : CommShift α A where |
| 37 | shift_comm a := by |
| 38 | let τ := (F.commShiftIso a).hom ≫ Functor.whiskerRight α _ |
| 39 | let τ' := Functor.whiskerLeft _ α ≫ (G.commShiftIso a).hom |
| 40 | have h (X : B) : τ.app (L.obj X) = τ'.app (L.obj X) := by |
| 41 | have h := shift_app_comm (Functor.whiskerLeft L α) a X |
| 42 | simp only [Functor.commShiftIso_comp_hom_app, Functor.whiskerLeft_app, |
| 43 | Category.assoc] at h |
| 44 | rw [← α.naturality_assoc] at h |
| 45 | exact (cancel_epi (F.map ((L.commShiftIso a).hom.app X))).1 h |
| 46 | ext Y : 2 |
| 47 | rw [← cancel_epi ((shiftFunctor C a ⋙ F).map (L.objObjPreimageIso Y).hom), |
| 48 | τ.naturality, τ'.naturality, h] |
| 49 | |
| 50 | /-- Shift compatibility can be checked after faithful postcomposition. -/ |
| 51 | lemma commShift_of_whiskerRight (L : C ⥤ D) [L.Faithful] [L.CommShift A] |
| 52 | {F G : B ⥤ C} [F.CommShift A] [G.CommShift A] (α : F ⟶ G) |
| 53 | [CommShift (Functor.whiskerRight α L) A] : CommShift α A where |
| 54 | shift_comm a := by |
| 55 | ext X : 2 |
| 56 | apply L.map_injective |
| 57 | apply (cancel_mono ((L.commShiftIso a).hom.app (G.obj X))).1 |
| 58 | have h := shift_app_comm (Functor.whiskerRight α L) a X |
| 59 | simp only [Functor.commShiftIso_comp_hom_app, Functor.whiskerRight_app, |
| 60 | Category.assoc] at h |
| 61 | rw [← L.commShiftIso_hom_naturality] at h |
| 62 | simpa only [NatTrans.comp_app, Functor.whiskerRight_app, |
| 63 | Functor.whiskerLeft_app, L.map_comp, Category.assoc] using h |
| 64 | |
| 65 | end Detect |
| 66 | |
| 67 | variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 68 | {F G : C ⥤ D} [F.Additive] [G.Additive] (α : F ⟶ G) |
| 69 | |
| 70 | set_option backward.isDefEq.respectTransparency false in |
| 71 | set_option backward.defeqAttrib.useBackward true in |
| 72 | /-- Termwise coefficient transformations commute with cohomological shifts. -/ |
| 73 | instance mapCochainComplexCommShift : CommShift (α.mapHomologicalComplex ℤᵘᵖ) ℤ where |
| 74 | shift_comm a := by |
| 75 | ext K i |
| 76 | simp |
| 77 | |
| 78 | set_option backward.isDefEq.respectTransparency false in |
| 79 | set_option backward.defeqAttrib.useBackward true in |
| 80 | /-- The induced transformation on homotopy categories retains the shifts. -/ |
| 81 | instance mapHomotopyCategoryCommShift : CommShift (α.mapHomotopyCategory ℤᵘᵖ) ℤ := by |
| 82 | have h : Functor.whiskerLeft (HomotopyCategory.quotient C ℤᵘᵖ) |
| 83 | (α.mapHomotopyCategory ℤᵘᵖ) = |
| 84 | (F.mapHomotopyCategoryFactors ℤᵘᵖ).hom ≫ |
| 85 | Functor.whiskerRight (α.mapHomologicalComplex ℤᵘᵖ) |
| 86 | (HomotopyCategory.quotient D ℤᵘᵖ) ≫ |
| 87 | (G.mapHomotopyCategoryFactors ℤᵘᵖ).inv := by |
| 88 | ext K |
| 89 | simp [Functor.mapHomotopyCategoryFactors, mapHomotopyCategory] |
| 90 | exact (Category.id_comp _).symm |
| 91 | have : CommShift (Functor.whiskerLeft (HomotopyCategory.quotient C ℤᵘᵖ) |
| 92 | (α.mapHomotopyCategory ℤᵘᵖ)) ℤ := by |
| 93 | rw [h] |
| 94 | infer_instance |
| 95 | exact commShift_of_whiskerLeft ℤ (HomotopyCategory.quotient C ℤᵘᵖ) _ |
| 96 | |
| 97 | set_option backward.isDefEq.respectTransparency false in |
| 98 | set_option backward.defeqAttrib.useBackward true in |
| 99 | /-- Restricting to bounded-below homotopy complexes preserves shift compatibility. -/ |
| 100 | instance mapHomotopyCategoryPlusCommShift : CommShift (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.mapHomotopyCategoryPlus α) ℤ := by |
| 101 | let eF : F.mapHomotopyCategoryPlus ⋙ HomotopyCategory.Plus.ι D ≅ |
| 102 | HomotopyCategory.Plus.ι C ⋙ F.mapHomotopyCategory ℤᵘᵖ := |
| 103 | (HomotopyCategory.plus D).liftCompιIso _ _ |
| 104 | let eG : G.mapHomotopyCategoryPlus ⋙ HomotopyCategory.Plus.ι D ≅ |
| 105 | HomotopyCategory.Plus.ι C ⋙ G.mapHomotopyCategory ℤᵘᵖ := |
| 106 | (HomotopyCategory.plus D).liftCompιIso _ _ |
| 107 | have : CommShift eF.hom ℤ := by dsimp [eF]; infer_instance |
| 108 | have : CommShift eG.hom ℤ := by dsimp [eG]; infer_instance |
| 109 | have h : Functor.whiskerRight (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.mapHomotopyCategoryPlus α) (HomotopyCategory.Plus.ι D) = |
| 110 | eF.hom ≫ Functor.whiskerLeft (HomotopyCategory.Plus.ι C) |
| 111 | (α.mapHomotopyCategory ℤᵘᵖ) ≫ eG.inv := by |
| 112 | ext K |
| 113 | simp [eF, eG, DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.mapHomotopyCategoryPlus, ObjectProperty.liftCompιIso] |
| 114 | exact (Category.id_comp _).symm |
| 115 | have : CommShift (Functor.whiskerRight (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.mapHomotopyCategoryPlus α) |
| 116 | (HomotopyCategory.Plus.ι D)) ℤ := by |
| 117 | rw [h] |
| 118 | infer_instance |
| 119 | exact commShift_of_whiskerRight ℤ (HomotopyCategory.Plus.ι D) _ |
| 120 | |
| 121 | variable [HasDerivedCategory C] [HasDerivedCategory D] [EnoughInjectives C] |
| 122 | |
| 123 | set_option backward.isDefEq.respectTransparency false in |
| 124 | set_option backward.defeqAttrib.useBackward true in |
| 125 | /-- On injective complexes the derived transformation is the termwise map, |
| 126 | conjugated by the canonical derived-unit isomorphisms. -/ |
| 127 | theorem rightDerivedFunctorPlus_onInjectives : |
| 128 | Functor.whiskerLeft (DerivedFunctorPlusShift.HomotopyCategory.Plus.injectiveToDerived C) |
| 129 | (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus α) = |
| 130 | (DerivedFunctorPlusShift.CategoryTheory.Functor.rightDerivedFunctorPlusOnInjectivesIso F).hom ≫ |
| 131 | Functor.whiskerLeft (InjectiveObject.ι C).mapHomotopyCategoryPlus |
| 132 | (Functor.whiskerRight (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.mapHomotopyCategoryPlus α) DerivedCategory.Plus.Qh) ≫ |
| 133 | (DerivedFunctorPlusShift.CategoryTheory.Functor.rightDerivedFunctorPlusOnInjectivesIso G).inv := by |
| 134 | ext K : 2 |
| 135 | simp [DerivedFunctorPlusShift.CategoryTheory.Functor.rightDerivedFunctorPlusOnInjectivesIso, |
| 136 | DerivedFunctorPlusShift.CategoryTheory.Functor.rightDerivedFunctorPlusOnInjectivesUnit, |
| 137 | DerivedFunctorPlusShift.HomotopyCategory.Plus.injectiveToDerived] |
| 138 | |
| 139 | set_option backward.isDefEq.respectTransparency false in |
| 140 | set_option backward.defeqAttrib.useBackward true in |
| 141 | /-- Coherent shift compatibility of the derived transformation, from the termwise compatibility |
| 142 | of the coefficient map proved above. -/ |
| 143 | instance rightDerivedFunctorPlusCommShift : CommShift (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus α) ℤ := by |
| 144 | have : CommShift (Functor.whiskerLeft (DerivedFunctorPlusShift.HomotopyCategory.Plus.injectiveToDerived C) |
| 145 | (DerivedFunctorPlusNaturality.CategoryTheory.NatTrans.rightDerivedFunctorPlus α)) ℤ := by |
| 146 | rw [rightDerivedFunctorPlus_onInjectives] |
| 147 | infer_instance |
| 148 | exact commShift_of_whiskerLeft ℤ (DerivedFunctorPlusShift.HomotopyCategory.Plus.injectiveToDerived C) _ |
| 149 | |
| 150 | end |
| 151 | |
| 152 | end OAI.Algebra.Homology.FunctorPlusShiftNaturality.CategoryTheory.NatTrans |