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.Complex.Extension |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.Derived.ResolutionFunctor |
| 3 | import Mathlib.CategoryTheory.Abelian.Injective.Extend |
| 4 | |
| 5 | /-! # Resolution Map Extension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ResolutionMapExtension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Extending the constructed maps of pulled-back resolutions to integer degrees. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | namespace Complex |
| 16 | open _root_.Complex |
| 17 | |
| 18 | variable {C : Type*} [Category* C] [Abelian C] |
| 19 | {D : Type*} [Category* D] [Abelian D] (F : C ⥤ D) [F.Additive] |
| 20 | {ι ι' : Type*} {c : ComplexShape ι} {c' : ComplexShape ι'} |
| 21 | |
| 22 | theorem mapXIso_XIso (K : HomologicalComplex C c) {i : Option ι} {j : ι} (h : i = some j) : |
| 23 | (Complex.Extension.mapXIso F K i).hom ≫ (HomologicalComplex.extend.XIso |
| 24 | ((F.mapHomologicalComplex c).obj K) h).hom = |
| 25 | F.map (HomologicalComplex.extend.XIso K h).hom := by |
| 26 | subst h |
| 27 | change 𝟙 (F.obj (K.X j)) ≫ 𝟙 (F.obj (K.X j)) = F.map (𝟙 (K.X j)) |
| 28 | rw [Category.id_comp, F.map_id] |
| 29 | |
| 30 | theorem mapExtendIso_hom_f (e : c.Embedding c') (K : HomologicalComplex C c) |
| 31 | {i : ι} {i' : ι'} (h : e.f i = i') : |
| 32 | ((Complex.Extension.mapExtendIso F e K).hom.f i') ≫ |
| 33 | (((F.mapHomologicalComplex c).obj K).extendXIso e h).hom = |
| 34 | F.map (K.extendXIso e h).hom := |
| 35 | mapXIso_XIso F K (e.r_eq_some h) |
| 36 | |
| 37 | end Complex |
| 38 | |
| 39 | namespace Ext |
| 40 | |
| 41 | variable {C : Type*} [Category* C] [Abelian C] |
| 42 | {D : Type*} [Category* D] [Abelian D] (F : C ⥤ D) [F.Additive] |
| 43 | {Y : C} {Y' : D} (I : InjectiveResolution Y) (J : InjectiveResolution Y') |
| 44 | (φ : (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj I.cocomplex ⟶ J.cocomplex) |
| 45 | |
| 46 | def extendedResolutionMap : |
| 47 | (F.mapHomologicalComplex (ComplexShape.up ℤ)).obj I.cochainComplex ⟶ J.cochainComplex := |
| 48 | (Complex.Extension.mapExtendIso F ComplexShape.embeddingUpNat I.cocomplex).hom ≫ |
| 49 | HomologicalComplex.extendMap φ ComplexShape.embeddingUpNat |
| 50 | |
| 51 | theorem extendedResolutionMap_f (n : ℕ) : |
| 52 | (extendedResolutionMap F I J φ).f (n : ℤ) = |
| 53 | F.map (I.cochainComplexXIso n n rfl).hom ≫ φ.f n ≫ (J.cochainComplexXIso n n rfl).inv := by |
| 54 | change ((Complex.Extension.mapExtendIso F ComplexShape.embeddingUpNat I.cocomplex).hom.f (n : ℤ)) ≫ |
| 55 | (HomologicalComplex.extendMap φ ComplexShape.embeddingUpNat).f (n : ℤ) = _ |
| 56 | erw [HomologicalComplex.extendMap_f φ ComplexShape.embeddingUpNat (i := n) rfl] |
| 57 | erw [← Category.assoc, Complex.mapExtendIso_hom_f] |
| 58 | rfl |
| 59 | |
| 60 | theorem extendedResolutionMap_augmentation (u : F.obj Y ⟶ Y') |
| 61 | (h : F.map (I.ι.f 0) ≫ φ.f 0 = u ≫ J.ι.f 0) : |
| 62 | Derived.ResolutionFunctor.Ext.mappedAugmentation F I.ι' ≫ extendedResolutionMap F I J φ = |
| 63 | (CochainComplex.singleFunctor D 0).map u ≫ J.ι' := by |
| 64 | apply HomologicalComplex.Hom.ext |
| 65 | funext i |
| 66 | by_cases hi : i = 0 |
| 67 | · subst i |
| 68 | change (((F.mapCochainComplexSingleFunctor 0).inv.app Y).f 0 ≫ F.map (I.ι'.f 0)) ≫ |
| 69 | (extendedResolutionMap F I J φ).f 0 = |
| 70 | ((CochainComplex.singleFunctor D 0).map u).f 0 ≫ J.ι'.f 0 |
| 71 | erw [extendedResolutionMap_f F I J φ 0, I.ι'_f_zero, J.ι'_f_zero, |
| 72 | HomologicalComplex.singleMapHomologicalComplex_inv_app_self, |
| 73 | HomologicalComplex.single_map_f_self] |
| 74 | let eY := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 Y |
| 75 | let eFY := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 (F.obj Y) |
| 76 | let eY' := HomologicalComplex.singleObjXSelf (ComplexShape.up ℤ) 0 Y' |
| 77 | let eI := I.cochainComplexXIso 0 0 rfl |
| 78 | let eJ := J.cochainComplexXIso 0 0 rfl |
| 79 | let φ₀ : F.obj (I.cocomplex.X 0) ⟶ J.cocomplex.X 0 := φ.f 0 |
| 80 | let i₀ : Y ⟶ I.cocomplex.X 0 := I.ι.f 0 |
| 81 | let j₀ : Y' ⟶ J.cocomplex.X 0 := J.ι.f 0 |
| 82 | have h₀ : F.map i₀ ≫ φ₀ = u ≫ j₀ := h |
| 83 | change ((eFY.hom ≫ F.map eY.inv) ≫ F.map (eY.hom ≫ i₀ ≫ eI.inv)) ≫ |
| 84 | (F.map eI.hom ≫ φ₀ ≫ eJ.inv) = |
| 85 | (eFY.hom ≫ u ≫ eY'.inv) ≫ (eY'.hom ≫ j₀ ≫ eJ.inv) |
| 86 | simp only [F.map_comp, Category.assoc, Iso.map_inv_hom_id_assoc, Iso.inv_hom_id_assoc] |
| 87 | rw [← Category.assoc (F.map i₀) φ₀, h₀, Category.assoc] |
| 88 | · exact (HomologicalComplex.isZero_single_obj_X (ComplexShape.up ℤ) 0 (F.obj Y) i hi).eq_of_src _ _ |
| 89 | |
| 90 | theorem extendedResolutionMap_cocycle {X : C} (n : ℕ) (f : X ⟶ I.cocomplex.X n) : |
| 91 | F.map (f ≫ (I.cochainComplexXIso n n rfl).inv) ≫ (extendedResolutionMap F I J φ).f (n : ℤ) = |
| 92 | (F.map f ≫ φ.f n) ≫ (J.cochainComplexXIso n n rfl).inv := by |
| 93 | erw [extendedResolutionMap_f F I J φ n, F.map_comp] |
| 94 | let eI := I.cochainComplexXIso n n rfl |
| 95 | let eJ := J.cochainComplexXIso n n rfl |
| 96 | let φₙ : F.obj (I.cocomplex.X n) ⟶ J.cocomplex.X n := φ.f n |
| 97 | change (F.map f ≫ F.map eI.inv) ≫ (F.map eI.hom ≫ φₙ ≫ eJ.inv) = (F.map f ≫ φₙ) ≫ eJ.inv |
| 98 | simp only [Category.assoc, Iso.map_inv_hom_id_assoc] |
| 99 | |
| 100 | end Ext |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.Comparison.Betti.ResolutionMapExtension |