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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafDerivedGlobalSections.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtCocomplexHomology |
| 8 | |
| 9 | /-! # Represented Derived Functor -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedDerivedFunctor.DerivedSections |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian _root_.CategoryTheory.Abelian.Ext |
| 16 | universe v u |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 18 | variable {G : C ⥤ AddCommGrpCat.{v}} [G.Additive] |
| 19 | variable {Z F : C} |
| 20 | |
| 21 | def sectionsCocomplexHomologyAddEquivRightDerived |
| 22 | [HasInjectiveResolutions C] (R : InjectiveResolution F) (n : ℕ) : |
| 23 | ↑(((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).homology n) ≃+ |
| 24 | ↑((G.rightDerived n).obj F) := |
| 25 | (R.isoRightDerivedObj G n).symm.addCommGroupIsoToAddEquiv |
| 26 | |
| 27 | lemma sectionsCocomplexHomologyAddEquivRightDerived_naturality |
| 28 | [HasInjectiveResolutions C] |
| 29 | {F' : C} (R : InjectiveResolution F) (R' : InjectiveResolution F') |
| 30 | (g : F ⟶ F') (φ : InjectiveResolution.Hom R R' g) (n : ℕ) |
| 31 | (x : ↑(((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).homology n)) : |
| 32 | sectionsCocomplexHomologyAddEquivRightDerived R' n |
| 33 | (((HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℕ) n).map |
| 34 | ((G.mapHomologicalComplex (.up ℕ)).map φ.hom)).hom x) = |
| 35 | ((G.rightDerived n).map g).hom |
| 36 | (sectionsCocomplexHomologyAddEquivRightDerived R n x) := by |
| 37 | let HN := HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℕ) n |
| 38 | let fN := (G.mapHomologicalComplex (.up ℕ)).map φ.hom |
| 39 | have h := InjectiveResolution.isoRightDerivedObj_inv_naturality g R R' φ.hom |
| 40 | (by simpa using φ.ι_f_zero_comp_hom_f_zero) G n |
| 41 | have hx := ConcreteCategory.congr_hom h x |
| 42 | change (R'.isoRightDerivedObj G n).inv.hom ((HN.map fN).hom x) = |
| 43 | ((G.rightDerived n).map g).hom ((R.isoRightDerivedObj G n).inv.hom x) |
| 44 | exact hx.symm |
| 45 | |
| 46 | /-- If an additive functor is represented by `Z`, then `Extⁿ(Z, -)` agrees with its |
| 47 | right-derived functor in degree `n`. -/ |
| 48 | noncomputable def addEquivRightDerived |
| 49 | [HasExt.{v} C] [HasInjectiveResolutions C] |
| 50 | (G : C ⥤ AddCommGrpCat.{v}) [G.Additive] (Z F : C) |
| 51 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 52 | (he : ∀ {X Y : C} (f : Z ⟶ X) (g : X ⟶ Y), |
| 53 | e Y (f ≫ g) = G.map g (e X f)) (n : ℕ) : |
| 54 | Ext.{v} Z F n ≃+ ↑((G.rightDerived n).obj F) := |
| 55 | let R := injectiveResolution F |
| 56 | (ExtInjectiveHomology.DerivedSections.extAddEquivHomComplexHomology R n).trans |
| 57 | ((ExtRepresentedHomology.DerivedSections.homComplexHomologyAddEquivSections e he R n).trans |
| 58 | ((ExtCocomplexHomology.DerivedSections.sectionsCochainHomologyAddEquivCocomplex R n).trans |
| 59 | (sectionsCocomplexHomologyAddEquivRightDerived R n))) |
| 60 | |
| 61 | /-- The comparison between represented `Ext` and the right-derived functor is natural |
| 62 | in the derived variable. -/ |
| 63 | theorem addEquivRightDerived_naturality |
| 64 | [HasExt.{v} C] [HasInjectiveResolutions C] |
| 65 | (G : C ⥤ AddCommGrpCat.{v}) [G.Additive] (Z : C) |
| 66 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 67 | (he : ∀ {X Y : C} (a : Z ⟶ X) (b : X ⟶ Y), |
| 68 | e Y (a ≫ b) = G.map b (e X a)) |
| 69 | {F F' : C} (f : F ⟶ F') (n : ℕ) (x : Ext.{v} Z F n) : |
| 70 | addEquivRightDerived G Z F' e he n (((Ext.mk₀ f).postcomp Z (add_zero n)) x) = |
| 71 | ((G.rightDerived n).map f).hom (addEquivRightDerived G Z F e he n x) := by |
| 72 | let R := injectiveResolution F |
| 73 | let R' := injectiveResolution F' |
| 74 | let φ : InjectiveResolution.Hom R R' f := |
| 75 | { hom := InjectiveResolution.desc f R' R |
| 76 | ι_f_zero_comp_hom_f_zero := by |
| 77 | simpa using InjectiveResolution.desc_commutes_zero f R' R } |
| 78 | change sectionsCocomplexHomologyAddEquivRightDerived R' n |
| 79 | (ExtCocomplexHomology.DerivedSections.sectionsCochainHomologyAddEquivCocomplex R' n |
| 80 | (ExtRepresentedHomology.DerivedSections.homComplexHomologyAddEquivSections e he R' n |
| 81 | (ExtInjectiveHomology.DerivedSections.extAddEquivHomComplexHomology R' n (x.comp (Ext.mk₀ f) (add_zero n))))) = |
| 82 | ((G.rightDerived n).map f).hom |
| 83 | (sectionsCocomplexHomologyAddEquivRightDerived R n |
| 84 | (ExtCocomplexHomology.DerivedSections.sectionsCochainHomologyAddEquivCocomplex R n |
| 85 | (ExtRepresentedHomology.DerivedSections.homComplexHomologyAddEquivSections e he R n |
| 86 | (ExtInjectiveHomology.DerivedSections.extAddEquivHomComplexHomology R n x)))) |
| 87 | rw [ExtInjectiveHomology.DerivedSections.extAddEquivHomComplexHomology_naturality R R' f φ n x] |
| 88 | rw [ExtRepresentedHomology.DerivedSections.homComplexHomologyAddEquivSections_naturality e he R R' f φ n] |
| 89 | rw [ExtCocomplexHomology.DerivedSections.sectionsCochainHomologyAddEquivCocomplex_naturality R R' f φ n] |
| 90 | exact sectionsCocomplexHomologyAddEquivRightDerived_naturality R R' f φ n _ |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedDerivedFunctor.DerivedSections |