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.MappedComplexExtension |
| 8 | |
| 9 | /-! # Mapped Complex Extension Iso -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MappedComplexExtensionIso.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 mapExtendIso (K : CochainComplex C ℕ) : |
| 22 | (G.mapHomologicalComplex (.up ℤ)).obj (K.extend ComplexShape.embeddingUpNat) ≅ |
| 23 | ((G.mapHomologicalComplex (.up ℕ)).obj K).extend ComplexShape.embeddingUpNat := |
| 24 | HomologicalComplex.Hom.isoOfComponents (MappedComplexExtension.DerivedSections.mapExtendXIso K) fun i j hij ↦ by |
| 25 | clear hij |
| 26 | by_cases hi : ∃ k, ComplexShape.embeddingUpNat.f k = i |
| 27 | · obtain ⟨a, ha⟩ := hi |
| 28 | have ha' : (a : ℤ) = i := (ComplexShape.embeddingUpNat_f a).symm.trans ha |
| 29 | clear ha |
| 30 | subst i |
| 31 | by_cases hj : ∃ k, ComplexShape.embeddingUpNat.f k = j |
| 32 | · obtain ⟨b, hb⟩ := hj |
| 33 | have hb' : (b : ℤ) = j := (ComplexShape.embeddingUpNat_f b).symm.trans hb |
| 34 | clear hb |
| 35 | subst j |
| 36 | rw [MappedComplexExtension.DerivedSections.mapExtendXIso_natCast (G := G) K a, MappedComplexExtension.DerivedSections.mapExtendXIso_natCast (G := G) K b] |
| 37 | rw [Functor.mapHomologicalComplex_obj_d, |
| 38 | HomologicalComplex.extend_d_eq ((G.mapHomologicalComplex (.up ℕ)).obj K) |
| 39 | ComplexShape.embeddingUpNat (ComplexShape.embeddingUpNat_f a) |
| 40 | (ComplexShape.embeddingUpNat_f b), |
| 41 | HomologicalComplex.extend_d_eq K ComplexShape.embeddingUpNat |
| 42 | (ComplexShape.embeddingUpNat_f a) (ComplexShape.embeddingUpNat_f b)] |
| 43 | let eᵢ := HomologicalComplex.extendXIso K ComplexShape.embeddingUpNat |
| 44 | (ComplexShape.embeddingUpNat_f a) |
| 45 | let eⱼ := HomologicalComplex.extendXIso K ComplexShape.embeddingUpNat |
| 46 | (ComplexShape.embeddingUpNat_f b) |
| 47 | let fᵢ := HomologicalComplex.extendXIso ((G.mapHomologicalComplex (.up ℕ)).obj K) |
| 48 | ComplexShape.embeddingUpNat (ComplexShape.embeddingUpNat_f a) |
| 49 | let fⱼ := HomologicalComplex.extendXIso ((G.mapHomologicalComplex (.up ℕ)).obj K) |
| 50 | ComplexShape.embeddingUpNat (ComplexShape.embeddingUpNat_f b) |
| 51 | let mᵢ := MappedComplexExtension.DerivedSections.mapXIso (G := G) K a |
| 52 | let mⱼ := MappedComplexExtension.DerivedSections.mapXIso (G := G) K b |
| 53 | change (G.map eᵢ.hom ≫ mᵢ.hom ≫ fᵢ.inv) ≫ |
| 54 | (fᵢ.hom ≫ ((G.mapHomologicalComplex (.up ℕ)).obj K).d |
| 55 | a b ≫ fⱼ.inv) = |
| 56 | G.map (eᵢ.hom ≫ K.d a b ≫ eⱼ.inv) ≫ |
| 57 | (G.map eⱼ.hom ≫ mⱼ.hom ≫ fⱼ.inv) |
| 58 | calc |
| 59 | _ = G.map eᵢ.hom ≫ |
| 60 | (mᵢ.hom ≫ ((G.mapHomologicalComplex (.up ℕ)).obj K).d |
| 61 | a b) ≫ fⱼ.inv := by |
| 62 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 63 | _ = G.map eᵢ.hom ≫ |
| 64 | (G.map (K.d a b) ≫ mⱼ.hom) ≫ fⱼ.inv := by |
| 65 | rw [show mᵢ.hom ≫ ((G.mapHomologicalComplex (.up ℕ)).obj K).d |
| 66 | a b = G.map (K.d a b) ≫ mⱼ.hom by |
| 67 | exact MappedComplexExtension.DerivedSections.mapXIso_naturality K a b] |
| 68 | _ = _ := by simp [Functor.map_comp, Category.assoc] |
| 69 | · exact (((G.mapHomologicalComplex (.up ℕ)).obj K).isZero_extend_X |
| 70 | ComplexShape.embeddingUpNat j (fun k hk ↦ hj ⟨k, hk⟩) |>.eq_of_tgt _ _) |
| 71 | · exact (G.map_isZero (K.isZero_extend_X ComplexShape.embeddingUpNat i |
| 72 | (fun k hk ↦ hi ⟨k, hk⟩)) |>.eq_of_src _ _) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MappedComplexExtensionIso.DerivedSections |