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.MappedComplexExtensionIso |
| 8 | |
| 9 | /-! # Mapped Complex Extension Naturality -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MappedComplexExtensionNaturality.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 | lemma mapExtendIso_hom_f (K : CochainComplex C ℕ) (n : ℤ) : |
| 22 | (MappedComplexExtensionIso.DerivedSections.mapExtendIso (G := G) K).hom.f n = (MappedComplexExtension.DerivedSections.mapExtendXIso (G := G) K n).hom := |
| 23 | rfl |
| 24 | |
| 25 | lemma mapExtendIso_naturality {K L : CochainComplex C ℕ} (f : K ⟶ L) : |
| 26 | (G.mapHomologicalComplex (.up ℤ)).map |
| 27 | (HomologicalComplex.extendMap f ComplexShape.embeddingUpNat) ≫ |
| 28 | (MappedComplexExtensionIso.DerivedSections.mapExtendIso L).hom = |
| 29 | (MappedComplexExtensionIso.DerivedSections.mapExtendIso K).hom ≫ |
| 30 | HomologicalComplex.extendMap |
| 31 | ((G.mapHomologicalComplex (.up ℕ)).map f) ComplexShape.embeddingUpNat := by |
| 32 | classical |
| 33 | apply HomologicalComplex.Hom.ext |
| 34 | funext n |
| 35 | rw [HomologicalComplex.comp_f, HomologicalComplex.comp_f, |
| 36 | mapExtendIso_hom_f (G := G), mapExtendIso_hom_f (G := G), |
| 37 | Functor.mapHomologicalComplex_map_f] |
| 38 | by_cases h : ∃ k, ComplexShape.embeddingUpNat.f k = n |
| 39 | · obtain ⟨k, hk⟩ := h |
| 40 | have hk' : (k : ℤ) = n := (ComplexShape.embeddingUpNat_f k).symm.trans hk |
| 41 | clear hk |
| 42 | subst n |
| 43 | rw [HomologicalComplex.extendMap_f f ComplexShape.embeddingUpNat |
| 44 | (ComplexShape.embeddingUpNat_f k), |
| 45 | HomologicalComplex.extendMap_f |
| 46 | ((G.mapHomologicalComplex (.up ℕ)).map f) |
| 47 | ComplexShape.embeddingUpNat (ComplexShape.embeddingUpNat_f k)] |
| 48 | rw [MappedComplexExtension.DerivedSections.mapExtendXIso_natCast (G := G) K k, MappedComplexExtension.DerivedSections.mapExtendXIso_natCast (G := G) L k] |
| 49 | rw [Functor.mapHomologicalComplex_map_f] |
| 50 | simp only [G.map_comp, Iso.trans_hom, MappedComplexExtension.DerivedSections.mapXIso] |
| 51 | let eK := HomologicalComplex.extendXIso K ComplexShape.embeddingUpNat |
| 52 | (ComplexShape.embeddingUpNat_f k) |
| 53 | let eL := HomologicalComplex.extendXIso L ComplexShape.embeddingUpNat |
| 54 | (ComplexShape.embeddingUpNat_f k) |
| 55 | let gK := HomologicalComplex.extendXIso ((G.mapHomologicalComplex (.up ℕ)).obj K) |
| 56 | ComplexShape.embeddingUpNat (ComplexShape.embeddingUpNat_f k) |
| 57 | let gL := HomologicalComplex.extendXIso ((G.mapHomologicalComplex (.up ℕ)).obj L) |
| 58 | ComplexShape.embeddingUpNat (ComplexShape.embeddingUpNat_f k) |
| 59 | change (G.map eK.hom ≫ G.map (f.f k) ≫ G.map eL.inv) ≫ |
| 60 | (G.map eL.hom ≫ 𝟙 _ ≫ gL.inv) = |
| 61 | (G.map eK.hom ≫ 𝟙 _ ≫ gK.inv) ≫ |
| 62 | (gK.hom ≫ G.map (f.f k) ≫ gL.inv) |
| 63 | have heL : G.map eL.inv ≫ G.map eL.hom = 𝟙 _ := |
| 64 | (G.mapIso eL).inv_hom_id |
| 65 | have heLgL : G.map eL.inv ≫ G.map eL.hom ≫ gL.inv = gL.inv := |
| 66 | (G.mapIso eL).inv_hom_id_assoc gL.inv |
| 67 | have hgK : gK.inv ≫ gK.hom ≫ G.map (f.f k) ≫ gL.inv = |
| 68 | G.map (f.f k) ≫ gL.inv := by |
| 69 | exact gK.inv_hom_id_assoc (G.map (f.f k) ≫ gL.inv) |
| 70 | calc |
| 71 | _ = G.map eK.hom ≫ G.map (f.f k) ≫ gL.inv := by |
| 72 | have hunit : (𝟙 (G.obj (L.X k))) ≫ gL.inv = gL.inv := |
| 73 | Category.id_comp gL.inv |
| 74 | have htail₀ : G.map eL.hom ≫ 𝟙 _ ≫ gL.inv = |
| 75 | G.map eL.hom ≫ gL.inv := |
| 76 | congrArg (fun q ↦ G.map eL.hom ≫ q) hunit |
| 77 | have htail : G.map eL.inv ≫ |
| 78 | (G.map eL.hom ≫ 𝟙 _ ≫ gL.inv) = gL.inv := |
| 79 | (congrArg (fun q ↦ G.map eL.inv ≫ q) htail₀).trans heLgL |
| 80 | have houter := Category.assoc |
| 81 | (G.map eK.hom) (G.map (f.f k) ≫ G.map eL.inv) |
| 82 | (G.map eL.hom ≫ 𝟙 _ ≫ gL.inv) |
| 83 | have hinner := Category.assoc (G.map (f.f k)) (G.map eL.inv) |
| 84 | (G.map eL.hom ≫ 𝟙 _ ≫ gL.inv) |
| 85 | have hinnerWhisker := congrArg (fun q ↦ G.map eK.hom ≫ q) hinner |
| 86 | have hcancelWhisker := congrArg |
| 87 | (fun q ↦ G.map eK.hom ≫ G.map (f.f k) ≫ q) htail |
| 88 | exact houter.trans (hinnerWhisker.trans hcancelWhisker) |
| 89 | _ = _ := by |
| 90 | simp only [Category.assoc] |
| 91 | apply (cancel_epi (G.mapIso eK).hom).2 |
| 92 | exact hgK.symm |
| 93 | · exact (((G.mapHomologicalComplex (.up ℕ)).obj L).isZero_extend_X |
| 94 | ComplexShape.embeddingUpNat n (fun k hk ↦ h ⟨k, hk⟩) |>.eq_of_tgt _ _) |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MappedComplexExtensionNaturality.DerivedSections |