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.RepresentedCochainSections |
| 8 | |
| 9 | /-! # Represented Cochain Naturality -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedCochainNaturality.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 homComplexPostcomp {K L : CochainComplex C ℤ} (f : K ⟶ L) : |
| 22 | ((CochainComplex.singleFunctor C 0).obj Z).HomComplex K ⟶ |
| 23 | ((CochainComplex.singleFunctor C 0).obj Z).HomComplex L where |
| 24 | f n := AddCommGrpCat.ofHom |
| 25 | { toFun := fun z ↦ z.comp (.ofHom f) (add_zero n) |
| 26 | map_zero' := by ext; simp |
| 27 | map_add' := by intros; ext; simp } |
| 28 | comm' i j _ := by |
| 29 | ext z |
| 30 | exact CochainComplex.HomComplex.δ_comp_ofHom z f j |
| 31 | |
| 32 | lemma homComplexPostcomp_f_apply {K L : CochainComplex C ℤ} (f : K ⟶ L) |
| 33 | (n : ℤ) |
| 34 | (z : CochainComplex.HomComplex.Cochain |
| 35 | ((CochainComplex.singleFunctor C 0).obj Z) K n) : |
| 36 | ((homComplexPostcomp f).f n).hom z = |
| 37 | z.comp (.ofHom f) (add_zero n) := |
| 38 | rfl |
| 39 | |
| 40 | lemma homComplexIsoSections_naturality |
| 41 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 42 | (he : ∀ {X Y : C} (a : Z ⟶ X) (b : X ⟶ Y), |
| 43 | e Y (a ≫ b) = G.map b (e X a)) |
| 44 | {K L : CochainComplex C ℤ} (f : K ⟶ L) : |
| 45 | homComplexPostcomp f ≫ (RepresentedCochainSections.DerivedSections.homComplexIsoSections e he L).hom = |
| 46 | (RepresentedCochainSections.DerivedSections.homComplexIsoSections e he K).hom ≫ |
| 47 | (G.mapHomologicalComplex (.up ℤ)).map f := by |
| 48 | ext n z |
| 49 | obtain ⟨a, rfl⟩ := |
| 50 | CochainComplex.HomComplex.Cochain.fromSingleMk_surjective z n (zero_add n) |
| 51 | let α := CochainComplex.HomComplex.Cochain.fromSingleMk a (zero_add n) |
| 52 | have hleft : |
| 53 | ((((homComplexPostcomp f ≫ |
| 54 | (RepresentedCochainSections.DerivedSections.homComplexIsoSections e he L).hom).f n).hom α) = |
| 55 | e (L.X n) (a ≫ f.f n)) := by |
| 56 | rw [HomologicalComplex.comp_f] |
| 57 | change ((RepresentedCochainSections.DerivedSections.homComplexIsoSections e he L).hom.f n).hom |
| 58 | (((homComplexPostcomp f).f n).hom α) = _ |
| 59 | change RepresentedCochainSections.DerivedSections.cochainToSectionsEquiv e L n |
| 60 | (α.comp (.ofHom f) (add_zero n)) = _ |
| 61 | rw [← CochainComplex.HomComplex.Cochain.fromSingleMk_postcomp] |
| 62 | exact RepresentedCochainSections.DerivedSections.cochainToSectionsEquiv_fromSingleMk e L n (a ≫ f.f n) |
| 63 | have hright : |
| 64 | (((((RepresentedCochainSections.DerivedSections.homComplexIsoSections e he K).hom ≫ |
| 65 | (G.mapHomologicalComplex (.up ℤ)).map f).f n).hom α) = |
| 66 | (G.map (f.f n)).hom (e (K.X n) a)) := by |
| 67 | rw [HomologicalComplex.comp_f] |
| 68 | change (((G.mapHomologicalComplex (.up ℤ)).map f).f n).hom |
| 69 | (((RepresentedCochainSections.DerivedSections.homComplexIsoSections e he K).hom.f n).hom α) = _ |
| 70 | rw [Functor.mapHomologicalComplex_map_f] |
| 71 | change (G.map (f.f n)).hom (RepresentedCochainSections.DerivedSections.cochainToSectionsEquiv e K n α) = _ |
| 72 | exact congrArg (G.map (f.f n)).hom |
| 73 | (RepresentedCochainSections.DerivedSections.cochainToSectionsEquiv_fromSingleMk e K n a) |
| 74 | exact hleft.trans ((he a (f.f n)).trans hright.symm) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedCochainNaturality.DerivedSections |