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.ExtRepresentedHomology |
| 8 | |
| 9 | /-! # Ext Cocomplex Homology -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtCocomplexHomology.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 sectionsCochainHomologyAddEquivCocomplex |
| 22 | (R : InjectiveResolution F) (n : ℕ) : |
| 23 | ↑(((G.mapHomologicalComplex (.up ℤ)).obj R.cochainComplex).homology n) ≃+ |
| 24 | ↑(((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).homology n) := |
| 25 | ((HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℤ) n).mapIso |
| 26 | (MappedComplexExtensionIso.DerivedSections.mapExtendIso R.cocomplex)).addCommGroupIsoToAddEquiv.trans |
| 27 | (((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).extendHomologyIso |
| 28 | ComplexShape.embeddingUpNat |
| 29 | (show ComplexShape.embeddingUpNat.f n = (n : ℤ) from rfl)).addCommGroupIsoToAddEquiv |
| 30 | |
| 31 | lemma sectionsCochainHomologyAddEquivCocomplex_naturality |
| 32 | {F' : C} (R : InjectiveResolution F) (R' : InjectiveResolution F') |
| 33 | (g : F ⟶ F') (φ : InjectiveResolution.Hom R R' g) (n : ℕ) |
| 34 | (x : ↑(((G.mapHomologicalComplex (.up ℤ)).obj R.cochainComplex).homology n)) : |
| 35 | sectionsCochainHomologyAddEquivCocomplex R' n |
| 36 | (((HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℤ) n).map |
| 37 | ((G.mapHomologicalComplex (.up ℤ)).map φ.hom')).hom x) = |
| 38 | ((HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℕ) n).map |
| 39 | ((G.mapHomologicalComplex (.up ℕ)).map φ.hom)).hom |
| 40 | (sectionsCochainHomologyAddEquivCocomplex R n x) := by |
| 41 | let HZ := HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℤ) n |
| 42 | let HN := HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℕ) n |
| 43 | let fN := (G.mapHomologicalComplex (.up ℕ)).map φ.hom |
| 44 | let fE := HomologicalComplex.extendMap fN ComplexShape.embeddingUpNat |
| 45 | have hmap : |
| 46 | (G.mapHomologicalComplex (.up ℤ)).map φ.hom' ≫ (MappedComplexExtensionIso.DerivedSections.mapExtendIso R'.cocomplex).hom = |
| 47 | (MappedComplexExtensionIso.DerivedSections.mapExtendIso R.cocomplex).hom ≫ fE := by |
| 48 | simpa [InjectiveResolution.cochainComplex, InjectiveResolution.Hom.hom', fN, fE] using |
| 49 | MappedComplexExtensionNaturality.DerivedSections.mapExtendIso_naturality (G := G) φ.hom |
| 50 | have hmapH : |
| 51 | HZ.map ((G.mapHomologicalComplex (.up ℤ)).map φ.hom') ≫ |
| 52 | HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso R'.cocomplex).hom = |
| 53 | HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso R.cocomplex).hom ≫ HZ.map fE := by |
| 54 | exact (HZ.map_comp _ _).symm.trans |
| 55 | ((congrArg HZ.map hmap).trans (HZ.map_comp _ _)) |
| 56 | have hext : HZ.map fE ≫ |
| 57 | (((G.mapHomologicalComplex (.up ℕ)).obj R'.cocomplex).extendHomologyIso |
| 58 | ComplexShape.embeddingUpNat rfl).hom = |
| 59 | (((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).extendHomologyIso |
| 60 | ComplexShape.embeddingUpNat rfl).hom ≫ HN.map fN := by |
| 61 | change HomologicalComplex.homologyMap fE (n : ℤ) ≫ |
| 62 | (((G.mapHomologicalComplex (.up ℕ)).obj R'.cocomplex).extendHomologyIso |
| 63 | ComplexShape.embeddingUpNat rfl).hom = |
| 64 | (((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).extendHomologyIso |
| 65 | ComplexShape.embeddingUpNat rfl).hom ≫ HomologicalComplex.homologyMap fN n |
| 66 | exact HomologicalComplex.extendHomologyIso_hom_naturality fN |
| 67 | ComplexShape.embeddingUpNat (show ComplexShape.embeddingUpNat.f n = (n : ℤ) from rfl) |
| 68 | have htotal : |
| 69 | (HZ.map ((G.mapHomologicalComplex (.up ℤ)).map φ.hom') ≫ |
| 70 | HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso R'.cocomplex).hom) ≫ |
| 71 | (((G.mapHomologicalComplex (.up ℕ)).obj R'.cocomplex).extendHomologyIso |
| 72 | ComplexShape.embeddingUpNat rfl).hom = |
| 73 | (HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso R.cocomplex).hom ≫ |
| 74 | (((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).extendHomologyIso |
| 75 | ComplexShape.embeddingUpNat rfl).hom) ≫ HN.map fN := by |
| 76 | let A := HZ.map ((G.mapHomologicalComplex (.up ℤ)).map φ.hom') |
| 77 | let B := HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso (G := G) R'.cocomplex).hom |
| 78 | let C₀ := HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso (G := G) R.cocomplex).hom |
| 79 | let D := HZ.map fE |
| 80 | let E' := (((G.mapHomologicalComplex (.up ℕ)).obj |
| 81 | R'.cocomplex).extendHomologyIso ComplexShape.embeddingUpNat |
| 82 | (show ComplexShape.embeddingUpNat.f n = (n : ℤ) from rfl)).hom |
| 83 | let E := (((G.mapHomologicalComplex (.up ℕ)).obj |
| 84 | R.cocomplex).extendHomologyIso ComplexShape.embeddingUpNat |
| 85 | (show ComplexShape.embeddingUpNat.f n = (n : ℤ) from rfl)).hom |
| 86 | let F₀ := HN.map fN |
| 87 | have hmapH' : A ≫ B = C₀ ≫ D := hmapH |
| 88 | have hext' : D ≫ E' = E ≫ F₀ := hext |
| 89 | change (A ≫ B) ≫ E' = (C₀ ≫ E) ≫ F₀ |
| 90 | have h₀ := congrArg (fun q ↦ q ≫ E') hmapH' |
| 91 | have h₁ := Category.assoc C₀ D E' |
| 92 | have h₂ := congrArg (fun q ↦ C₀ ≫ q) hext' |
| 93 | have h₃ := (Category.assoc C₀ E F₀).symm |
| 94 | exact h₀.trans (h₁.trans (h₂.trans h₃)) |
| 95 | have hx := ConcreteCategory.congr_hom htotal x |
| 96 | change (((G.mapHomologicalComplex (.up ℕ)).obj R'.cocomplex).extendHomologyIso |
| 97 | ComplexShape.embeddingUpNat rfl).hom.hom |
| 98 | ((HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso R'.cocomplex).hom).hom |
| 99 | ((HZ.map ((G.mapHomologicalComplex (.up ℤ)).map φ.hom')).hom x)) = |
| 100 | (HN.map fN).hom |
| 101 | ((((G.mapHomologicalComplex (.up ℕ)).obj R.cocomplex).extendHomologyIso |
| 102 | ComplexShape.embeddingUpNat rfl).hom.hom |
| 103 | ((HZ.map (MappedComplexExtensionIso.DerivedSections.mapExtendIso R.cocomplex).hom).hom x)) |
| 104 | exact hx |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtCocomplexHomology.DerivedSections |