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.CategoryTheory.Shift.SingleFunctors |
| 2 | import Mathlib.CategoryTheory.Shift.ShiftSequence |
| 3 | |
| 4 | /-! # Single Homology Shift -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SingleHomologyShift |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatibility between the canonical normalization of a single column |
| 11 | and the homology shift. This uses the native coherence laws for shifts. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | |
| 18 | variable {C D E : Type*} [Category* C] [Category* D] [Category* E] [HasShift D ℤ] |
| 19 | (F : SingleFunctors C D ℤ) (H : D ⥤ E) [H.ShiftSequence ℤ] (M : C) |
| 20 | |
| 21 | def iso (d n k : ℤ) (h : -d + n = k) : |
| 22 | (H.shift n).obj ((F.functor d).obj M) ≅ (H.shift k).obj ((F.functor 0).obj M) := |
| 23 | (H.shift n).mapIso ((F.shiftIso (-d) d 0 (neg_add_cancel d)).symm.app M) ≪≫ |
| 24 | (H.shiftIso (-d) n k h).app ((F.functor 0).obj M) |
| 25 | |
| 26 | theorem single_composition (a d e : ℤ) (he : a + d = e) : |
| 27 | (F.shiftIso a d e he).hom.app M ≫ (F.shiftIso (-d) d 0 (neg_add_cancel d)).inv.app M = |
| 28 | ((F.shiftIso (-e) e 0 (neg_add_cancel e)).inv.app M)⟦a⟧' ≫ |
| 29 | (shiftFunctorAdd' D (-e) a (-d) (by omega)).inv.app ((F.functor 0).obj M) := by |
| 30 | rw [SingleFunctors.shiftIso_add'_inv_app F a (-e) (-d) (by omega) d e 0 he (neg_add_cancel e) M] |
| 31 | rw [Iso.hom_inv_id_app_assoc] |
| 32 | |
| 33 | @[reassoc] |
| 34 | theorem shift (a d e n m k : ℤ) (he : a + d = e) (hm : a + n = m) (hk : -d + n = k) : |
| 35 | (H.shiftIso a n m hm).hom.app ((F.functor e).obj M) ≫ |
| 36 | (iso F H M e m k (by omega)).hom = |
| 37 | (H.shift n).map ((F.shiftIso a d e he).hom.app M) ≫ (iso F H M d n k hk).hom := by |
| 38 | change (H.shiftIso a n m hm).hom.app ((F.functor e).obj M) ≫ |
| 39 | H.shiftMap ((F.shiftIso (-e) e 0 (neg_add_cancel e)).inv.app M) m k (by omega) = |
| 40 | (H.shift n).map ((F.shiftIso a d e he).hom.app M) ≫ |
| 41 | H.shiftMap ((F.shiftIso (-d) d 0 (neg_add_cancel d)).inv.app M) n k hk |
| 42 | rw [CategoryTheory.Functor.shiftIso_hom_app_comp_shiftMap _ _ a (-d) (by omega)] |
| 43 | simp only [CategoryTheory.Functor.shiftMap, ← CategoryTheory.Functor.map_comp_assoc] |
| 44 | rw [single_composition] |
| 45 | |
| 46 | @[reassoc] |
| 47 | theorem naturality {N : C} (f : M ⟶ N) (d n k : ℤ) (h : -d + n = k) : |
| 48 | (H.shift n).map ((F.functor d).map f) ≫ (iso F H N d n k h).hom = |
| 49 | (iso F H M d n k h).hom ≫ (H.shift k).map ((F.functor 0).map f) := by |
| 50 | have hf : (F.functor d).map f ≫ (F.shiftIso (-d) d 0 (neg_add_cancel d)).inv.app N = |
| 51 | (F.shiftIso (-d) d 0 (neg_add_cancel d)).inv.app M ≫ ((F.functor 0).map f)⟦-d⟧' := |
| 52 | (F.shiftIso (-d) d 0 (neg_add_cancel d)).inv.naturality f |
| 53 | simp only [iso, Iso.trans_hom, CategoryTheory.Functor.mapIso_hom, Iso.symm_hom, Iso.app_hom] |
| 54 | rw [← CategoryTheory.Functor.map_comp_assoc, hf, CategoryTheory.Functor.map_comp] |
| 55 | simp only [Category.assoc, CategoryTheory.Functor.shiftIso_hom_naturality] |
| 56 | |
| 57 | @[reassoc] |
| 58 | theorem shiftMap {Z : D} (a d e n m k : ℤ) (he : a + d = e) (hm : a + n = m) |
| 59 | (hk : -d + n = k) (f : Z ⟶ ((F.functor e).obj M)⟦a⟧) : |
| 60 | H.shiftMap f n m hm ≫ (iso F H M e m k (by omega)).hom = |
| 61 | (H.shift n).map (f ≫ (F.shiftIso a d e he).hom.app M) ≫ (iso F H M d n k hk).hom := by |
| 62 | rw [CategoryTheory.Functor.shiftMap, Category.assoc, SingleHomologyShift.shift F H M a d e n m k he hm hk, |
| 63 | ← CategoryTheory.Functor.map_comp_assoc] |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SingleHomologyShift |