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 OAI.AlgebraicGeometry.Comparison.Betti.ResolutionCocycleClass |
| 2 | |
| 3 | /-! # Resolution Cocycle Naturality -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ResolutionCocycleNaturality.Ext |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual normalized maps of resolutions preserve their derived cocycle classes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | open _root_.CochainComplex.HomComplex |
| 13 | |
| 14 | universe w u v |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasDerivedCategory.{w} C] |
| 17 | {X Y Y' : C} {K L : CochainComplex C ℤ} {n : ℤ} |
| 18 | |
| 19 | omit [HasDerivedCategory C] in |
| 20 | theorem singleCocycleHom_postcomp (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) |
| 21 | (g : K ⟶ L) : |
| 22 | SingleCocycleFunctor.Ext.singleCocycleHom (f ≫ g.f n) |
| 23 | (by rw [Category.assoc, g.comm, ← Category.assoc, hf, zero_comp]) = |
| 24 | SingleCocycleFunctor.Ext.singleCocycleHom f hf ≫ g⟦n⟧' := |
| 25 | (congrArg Cocycle.equivHomShift.symm |
| 26 | (Cocycle.fromSingleMk_postcomp f (zero_add n) (n + 1) rfl hf g)).trans |
| 27 | (Cocycle.equivHomShift_symm_postcomp _ g) |
| 28 | |
| 29 | theorem resolutionCocycleHom_postcomp |
| 30 | (a : (CochainComplex.singleFunctor C 0).obj Y ⟶ K) [QuasiIso a] |
| 31 | (b : (CochainComplex.singleFunctor C 0).obj Y' ⟶ L) [QuasiIso b] |
| 32 | (g : K ⟶ L) (u : Y ⟶ Y') (h : a ≫ g = (CochainComplex.singleFunctor C 0).map u ≫ b) |
| 33 | (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) : |
| 34 | ResolutionCocycleClass.Ext.resolutionCocycleHom b (f ≫ g.f n) |
| 35 | (by rw [Category.assoc, g.comm, ← Category.assoc, hf, zero_comp]) = |
| 36 | ResolutionCocycleClass.Ext.resolutionCocycleHom a f hf ≫ ((DerivedCategory.singleFunctor C 0).map u)⟦n⟧' := by |
| 37 | let Q : CochainComplex C ℤ ⥤ DerivedCategory C := DerivedCategory.Q |
| 38 | have ha : IsIso (Q.map a) := (DerivedCategory.isIso_Q_map_iff_quasiIso C a).mpr inferInstance |
| 39 | have hb : IsIso (Q.map b) := (DerivedCategory.isIso_Q_map_iff_quasiIso C b).mpr inferInstance |
| 40 | have hq : Q.map g ≫ inv (Q.map b) = inv (Q.map a) ≫ |
| 41 | (DerivedCategory.singleFunctor C 0).map u := by |
| 42 | apply (cancel_epi (Q.map a)).mp |
| 43 | erw [← Category.assoc, ← Q.map_comp, h, Q.map_comp, Category.assoc, |
| 44 | IsIso.hom_inv_id, Category.comp_id, ← Category.assoc, IsIso.hom_inv_id, Category.id_comp] |
| 45 | rfl |
| 46 | let c := SingleCocycleFunctor.Ext.singleCocycleHom f hf |
| 47 | have hm : ShiftedHom.map (c ≫ g⟦n⟧') Q = |
| 48 | ShiftedHom.map c Q ≫ (Q.map g)⟦n⟧' := by |
| 49 | have h' := ShiftedHom.map_comp c (ShiftedHom.mk₀ (0 : ℤ) rfl g) (zero_add n) Q |
| 50 | simpa only [ShiftedHom.comp_mk₀, ShiftedHom.map_mk₀] using h' |
| 51 | change ShiftedHom.map (SingleCocycleFunctor.Ext.singleCocycleHom (f ≫ g.f n) _) Q ≫ (inv (Q.map b))⟦n⟧' = |
| 52 | (ShiftedHom.map c Q ≫ (inv (Q.map a))⟦n⟧') ≫ |
| 53 | ((DerivedCategory.singleFunctor C 0).map u)⟦n⟧' |
| 54 | erw [singleCocycleHom_postcomp f hf g, hm, Category.assoc, ← Functor.map_comp, hq, Functor.map_comp] |
| 55 | exact (Category.assoc _ _ _).symm |
| 56 | |
| 57 | omit [HasDerivedCategory C] in |
| 58 | theorem singleCocycleHom_precomp {X' : C} (v : X' ⟶ X) |
| 59 | (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) : |
| 60 | SingleCocycleFunctor.Ext.singleCocycleHom (v ≫ f) (by rw [Category.assoc, hf, comp_zero]) = |
| 61 | (CochainComplex.singleFunctor C 0).map v ≫ SingleCocycleFunctor.Ext.singleCocycleHom f hf := |
| 62 | (congrArg Cocycle.equivHomShift.symm |
| 63 | (Cocycle.fromSingleMk_precomp v f (zero_add n) (n + 1) rfl hf)).trans |
| 64 | (Cocycle.equivHomShift_symm_precomp _ _) |
| 65 | |
| 66 | theorem resolutionCocycleHom_precomp |
| 67 | (a : (CochainComplex.singleFunctor C 0).obj Y ⟶ K) [QuasiIso a] |
| 68 | {X' : C} (v : X' ⟶ X) (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) : |
| 69 | ResolutionCocycleClass.Ext.resolutionCocycleHom a (v ≫ f) (by rw [Category.assoc, hf, comp_zero]) = |
| 70 | (DerivedCategory.singleFunctor C 0).map v ≫ ResolutionCocycleClass.Ext.resolutionCocycleHom a f hf := by |
| 71 | let Q : CochainComplex C ℤ ⥤ DerivedCategory C := DerivedCategory.Q |
| 72 | have ha : IsIso (Q.map a) := (DerivedCategory.isIso_Q_map_iff_quasiIso C a).mpr inferInstance |
| 73 | change ShiftedHom.map (SingleCocycleFunctor.Ext.singleCocycleHom (v ≫ f) _) Q ≫ (inv (Q.map a))⟦n⟧' = _ |
| 74 | erw [singleCocycleHom_precomp v f hf] |
| 75 | dsimp only [ShiftedHom.map] |
| 76 | erw [Q.map_comp ((CochainComplex.singleFunctor C 0).map v) (SingleCocycleFunctor.Ext.singleCocycleHom f hf)] |
| 77 | change (((DerivedCategory.singleFunctor C 0).map v ≫ |
| 78 | Q.map (SingleCocycleFunctor.Ext.singleCocycleHom f hf)) ≫ (Q.commShiftIso n).hom.app K) ≫ (inv (Q.map a))⟦n⟧' = _ |
| 79 | erw [Category.assoc ((DerivedCategory.singleFunctor C 0).map v) |
| 80 | (Q.map (SingleCocycleFunctor.Ext.singleCocycleHom f hf)) ((Q.commShiftIso n).hom.app K)] |
| 81 | exact Category.assoc _ _ _ |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Comparison.Betti.ResolutionCocycleNaturality.Ext |