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 |
| 2 | |
| 3 | /-! # Shift Coherence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Derived.ShiftCoherence |
| 6 | |
| 7 | /-! Shift compatibility for the canonical comparisons used in derived naturality. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory |
| 10 | |
| 11 | section Cochains |
| 12 | |
| 13 | variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D] |
| 14 | {F G : C ⥤ D} [F.Additive] [G.Additive] |
| 15 | |
| 16 | instance mapCochainNatTransCommShift (τ : F ⟶ G) : |
| 17 | NatTrans.CommShift (NatTrans.mapHomologicalComplex τ (ComplexShape.up ℤ)) ℤ where |
| 18 | shift_comm n := by |
| 19 | apply NatTrans.ext |
| 20 | funext K |
| 21 | apply HomologicalComplex.Hom.ext |
| 22 | funext i |
| 23 | change 𝟙 _ ≫ τ.app (K.X (i + n)) = τ.app (K.X (i + n)) ≫ 𝟙 _ |
| 24 | simp only [Category.id_comp, Category.comp_id] |
| 25 | |
| 26 | end Cochains |
| 27 | |
| 28 | variable {C D E : Type*} [Category* C] [Category* D] [Category* E] |
| 29 | [HasShift C ℤ] [HasShift D ℤ] [HasShift E ℤ] |
| 30 | (L : C ⥤ D) (W : MorphismProperty C) [L.IsLocalization W] [L.CommShift ℤ] |
| 31 | {F G : D ⥤ E} [F.CommShift ℤ] [G.CommShift ℤ] (τ : F ⟶ G) |
| 32 | [NatTrans.CommShift (Functor.whiskerLeft L τ) ℤ] |
| 33 | |
| 34 | include L W in |
| 35 | theorem commShift_of_localization : NatTrans.CommShift τ ℤ := by |
| 36 | refine ⟨fun n => ?_⟩ |
| 37 | apply Localization.natTrans_ext L W |
| 38 | intro X |
| 39 | change (F.commShiftIso n).hom.app (L.obj X) ≫ (τ.app (L.obj X))⟦n⟧' = |
| 40 | τ.app ((L.obj X)⟦n⟧) ≫ (G.commShiftIso n).hom.app (L.obj X) |
| 41 | let t := (L.commShiftIso n).hom.app X |
| 42 | have h := NatTrans.shift_app_comm (Functor.whiskerLeft L τ) n X |
| 43 | simp only [Functor.commShiftIso_comp_hom_app, Functor.whiskerLeft_app] at h |
| 44 | change (F.map t ≫ (F.commShiftIso n).hom.app (L.obj X)) ≫ (τ.app (L.obj X))⟦n⟧' = |
| 45 | τ.app (L.obj (X⟦n⟧)) ≫ G.map t ≫ (G.commShiftIso n).hom.app (L.obj X) at h |
| 46 | erw [← Category.assoc (τ.app (L.obj (X⟦n⟧))) (G.map t), ← τ.naturality t, |
| 47 | Category.assoc, Category.assoc] at h |
| 48 | exact (cancel_epi (F.map t)).mp h |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.Comparison.Betti.Derived.ShiftCoherence |