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.Abelian.Injective.Ext |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.Map |
| 3 | |
| 4 | /-! # Single Cocycle Functor -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.SingleCocycleFunctor.Ext |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual cocycle representatives commute with additive functors. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | open _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 14 | |
| 15 | variable {C : Type*} [Category* C] [Abelian C] |
| 16 | {D : Type*} [Category* D] [Abelian D] |
| 17 | {X : C} {K : CochainComplex C ℤ} {n : ℤ} |
| 18 | |
| 19 | def singleCocycleHom (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) : |
| 20 | (CochainComplex.singleFunctor C 0).obj X ⟶ K⟦n⟧ := |
| 21 | Cocycle.equivHomShift.symm (Cocycle.fromSingleMk f (zero_add n) (n + 1) rfl hf) |
| 22 | |
| 23 | theorem singleCocycleHom_f_zero (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) : |
| 24 | (singleCocycleHom f hf).f 0 = |
| 25 | (HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 X).hom ≫ f ≫ |
| 26 | (K.shiftFunctorObjXIso n 0 n (zero_add n).symm).inv := by |
| 27 | simp [singleCocycleHom, Cocycle.equivHomShift_symm_apply, Cochain.rightShift_v] |
| 28 | |
| 29 | variable (F : C ⥤ D) [F.Additive] |
| 30 | |
| 31 | theorem singleCocycleHom_map (f : X ⟶ K.X n) (hf : f ≫ K.d n (n + 1) = 0) : |
| 32 | (F.mapCochainComplexSingleFunctor 0).inv.app X ≫ |
| 33 | ShiftedHom.map (singleCocycleHom f hf) (F.mapHomologicalComplex (ComplexShape.up ℤ)) = |
| 34 | singleCocycleHom (K := (F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) |
| 35 | (F.map f) (by change F.map f ≫ F.map (K.d n (n + 1)) = 0; rw [← F.map_comp, hf, F.map_zero]) := by |
| 36 | apply HomologicalComplex.Hom.ext |
| 37 | funext i |
| 38 | by_cases hi : i = 0 |
| 39 | · subst i |
| 40 | simp only [ShiftedHom.map, HomologicalComplex.comp_f, |
| 41 | Functor.mapHomologicalComplex_map_f, Functor.mapHomologicalComplex_commShiftIso_hom_app_f] |
| 42 | erw [Category.comp_id, singleCocycleHom_f_zero f hf, |
| 43 | singleCocycleHom_f_zero (K := (F.mapHomologicalComplex (ComplexShape.up ℤ)).obj K) (F.map f)] |
| 44 | erw [HomologicalComplex.singleMapHomologicalComplex_inv_app_self] |
| 45 | let e := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 X |
| 46 | have hc : F.map e.inv ≫ F.map e.hom = 𝟙 (F.obj X) := |
| 47 | (F.map_comp e.inv e.hom).symm.trans |
| 48 | ((F.congr_map e.inv_hom_id).trans (F.map_id X)) |
| 49 | erw [F.map_comp e.hom (f ≫ (K.shiftFunctorObjXIso n 0 n (zero_add n).symm).inv), |
| 50 | Category.assoc, ← Category.assoc (F.map e.inv) (F.map e.hom), hc, Category.id_comp, |
| 51 | F.map_comp f (K.shiftFunctorObjXIso n 0 n (zero_add n).symm).inv] |
| 52 | congr 2 |
| 53 | simp [CochainComplex.shiftFunctorObjXIso, HomologicalComplex.XIsoOfEq] |
| 54 | exact eqToHom_map F _ |
| 55 | · exact (HomologicalComplex.isZero_single_obj_X (ComplexShape.up ℤ) 0 (F.obj X) i hi).eq_of_src _ _ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Comparison.Betti.SingleCocycleFunctor.Ext |