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.MappedComplexExtensionNaturality |
| 8 | |
| 9 | /-! # Ext Injective Homology -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtInjectiveHomology.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 extAddEquivHomComplexHomology |
| 22 | [HasExt.{v} C] (R : InjectiveResolution F) (n : ℕ) : |
| 23 | Ext.{v} Z F n ≃+ |
| 24 | ↑((((CochainComplex.singleFunctor C 0).obj Z).HomComplex R.cochainComplex).homology n) := |
| 25 | (R.extAddEquivCohomologyClass (X := Z)).trans |
| 26 | (CochainComplex.HomComplex.homologyAddEquiv |
| 27 | ((CochainComplex.singleFunctor C 0).obj Z) R.cochainComplex n).symm |
| 28 | |
| 29 | lemma extAddEquivHomComplexHomology_naturality |
| 30 | [HasExt.{v} C] {F' : C} (R : InjectiveResolution F) (R' : InjectiveResolution F') |
| 31 | (g : F ⟶ F') (φ : InjectiveResolution.Hom R R' g) (n : ℕ) (x : Ext.{v} Z F n) : |
| 32 | extAddEquivHomComplexHomology R' n (x.comp (Ext.mk₀ g) (add_zero n)) = |
| 33 | ((HomologicalComplex.homologyFunctor AddCommGrpCat.{v} (.up ℤ) n).map |
| 34 | (RepresentedCochainNaturality.DerivedSections.homComplexPostcomp φ.hom')).hom (extAddEquivHomComplexHomology R n x) := by |
| 35 | obtain ⟨a, ha, rfl⟩ := R.extMk_surjective x (n + 1) rfl |
| 36 | rw [R.extMk_comp_mk₀ a (n + 1) rfl ha φ] |
| 37 | apply (CochainComplex.HomComplex.homologyAddEquiv |
| 38 | ((CochainComplex.singleFunctor C 0).obj Z) R'.cochainComplex n).injective |
| 39 | rw [RepresentedCohomologyMaps.DerivedSections.homologyAddEquiv_homComplexPostcomp] |
| 40 | simp only [extAddEquivHomComplexHomology, AddEquiv.trans_apply, |
| 41 | AddEquiv.apply_symm_apply, InjectiveResolution.extAddEquivCohomologyClass_apply, |
| 42 | InjectiveResolution.extEquivCohomologyClass_extMk, RepresentedCohomologyMaps.DerivedSections.cohomologyClassPostcomp_mk] |
| 43 | congr 1 |
| 44 | have hcomp : (a ≫ φ.hom.f n) ≫ (R'.cochainComplexXIso n n (by lia)).inv = |
| 45 | (a ≫ (R.cochainComplexXIso n n (by lia)).inv) ≫ φ.hom'.f n := by |
| 46 | simp [φ.hom'_f n n rfl] |
| 47 | rw [← CochainComplex.HomComplex.Cocycle.fromSingleMk_postcomp |
| 48 | (a ≫ (R.cochainComplexXIso n n rfl).inv) (zero_add (n : ℤ)) |
| 49 | ((n + 1 : ℕ) : ℤ) (by lia) (by |
| 50 | rw [R.cochainComplex_d (n : ℤ) ((n + 1 : ℕ) : ℤ) n (n + 1) rfl rfl] |
| 51 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 52 | rw [← Category.assoc, ha] |
| 53 | simp) φ.hom'] |
| 54 | ext : 1 |
| 55 | simp only [CochainComplex.HomComplex.Cocycle.fromSingleMk_coe] |
| 56 | exact congrArg |
| 57 | (fun t ↦ CochainComplex.HomComplex.Cochain.fromSingleMk t (zero_add (n : ℤ))) hcomp |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtInjectiveHomology.DerivedSections |