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 Mathlib.Algebra.Homology.Embedding.ExtendHomology |
| 8 | import Mathlib.CategoryTheory.Abelian.Injective.Ext |
| 9 | import Mathlib.CategoryTheory.Abelian.RightDerived |
| 10 | import Mathlib.CategoryTheory.Sites.GlobalSections |
| 11 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Zariski.Cohomology |
| 12 | |
| 13 | /-! # Represented Cochain Sections -/ |
| 14 | |
| 15 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedCochainSections.DerivedSections |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian _root_.CategoryTheory.Abelian.Ext |
| 20 | universe v u |
| 21 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 22 | variable {G : C ⥤ AddCommGrpCat.{v}} [G.Additive] |
| 23 | variable {Z F : C} |
| 24 | |
| 25 | def cochainToSectionsEquiv |
| 26 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 27 | (K : CochainComplex C ℤ) (n : ℤ) : |
| 28 | CochainComplex.HomComplex.Cochain |
| 29 | ((CochainComplex.singleFunctor C 0).obj Z) K n ≃+ |
| 30 | ↑(G.obj (K.X n)) := |
| 31 | (CochainComplex.HomComplex.Cochain.fromSingleEquiv (zero_add n)).trans (e (K.X n)) |
| 32 | |
| 33 | def cochainToSectionsIso |
| 34 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 35 | (K : CochainComplex C ℤ) (n : ℤ) : |
| 36 | (((CochainComplex.singleFunctor C 0).obj Z).HomComplex K).X n ≅ |
| 37 | ((G.mapHomologicalComplex (.up ℤ)).obj K).X n := |
| 38 | (cochainToSectionsEquiv e K n).toAddCommGrpIso |
| 39 | |
| 40 | omit [G.Additive] in |
| 41 | lemma cochainToSectionsEquiv_fromSingleMk |
| 42 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 43 | (K : CochainComplex C ℤ) (n : ℤ) (f : Z ⟶ K.X n) : |
| 44 | cochainToSectionsEquiv e K n |
| 45 | (CochainComplex.HomComplex.Cochain.fromSingleMk f (zero_add n)) = e (K.X n) f := by |
| 46 | exact congrArg (e (K.X n)) |
| 47 | (CochainComplex.HomComplex.Cochain.fromSingleEquiv_fromSingleMk f (zero_add n)) |
| 48 | |
| 49 | lemma cochainToSectionsIso_hom_apply |
| 50 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 51 | (K : CochainComplex C ℤ) (n : ℤ) |
| 52 | (α : CochainComplex.HomComplex.Cochain |
| 53 | ((CochainComplex.singleFunctor C 0).obj Z) K n) : |
| 54 | (cochainToSectionsIso e K n).hom.hom α = cochainToSectionsEquiv e K n α := |
| 55 | rfl |
| 56 | |
| 57 | lemma homComplex_d_apply |
| 58 | (K : CochainComplex C ℤ) (i j : ℤ) |
| 59 | (α : CochainComplex.HomComplex.Cochain |
| 60 | ((CochainComplex.singleFunctor C 0).obj Z) K i) : |
| 61 | ((((CochainComplex.singleFunctor C 0).obj Z).HomComplex K).d i j).hom α = |
| 62 | CochainComplex.HomComplex.δ i j α := |
| 63 | rfl |
| 64 | |
| 65 | def homComplexIsoSections |
| 66 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 67 | (he : ∀ {X Y : C} (f : Z ⟶ X) (g : X ⟶ Y), |
| 68 | e Y (f ≫ g) = G.map g (e X f)) |
| 69 | (K : CochainComplex C ℤ) : |
| 70 | ((CochainComplex.singleFunctor C 0).obj Z).HomComplex K ≅ |
| 71 | (G.mapHomologicalComplex (.up ℤ)).obj K := |
| 72 | HomologicalComplex.Hom.isoOfComponents (cochainToSectionsIso e K) fun i j hij ↦ by |
| 73 | ext α |
| 74 | obtain ⟨f, rfl⟩ := |
| 75 | CochainComplex.HomComplex.Cochain.fromSingleMk_surjective α i (zero_add i) |
| 76 | let α := CochainComplex.HomComplex.Cochain.fromSingleMk f (zero_add i) |
| 77 | have hleft : |
| 78 | (((cochainToSectionsIso e K i).hom ≫ |
| 79 | ((G.mapHomologicalComplex (.up ℤ)).obj K).d i j).hom α) = |
| 80 | (G.map (K.d i j)).hom (e (K.X i) f) := by |
| 81 | change (((G.mapHomologicalComplex (.up ℤ)).obj K).d i j).hom |
| 82 | ((cochainToSectionsIso e K i).hom.hom α) = _ |
| 83 | rw [Functor.mapHomologicalComplex_obj_d] |
| 84 | rw [cochainToSectionsIso_hom_apply] |
| 85 | exact congrArg (G.map (K.d i j)).hom |
| 86 | (cochainToSectionsEquiv_fromSingleMk e K i f) |
| 87 | have hright : |
| 88 | (((((CochainComplex.singleFunctor C 0).obj Z).HomComplex K).d i j ≫ |
| 89 | (cochainToSectionsIso e K j).hom).hom α) = |
| 90 | e (K.X j) (f ≫ K.d i j) := by |
| 91 | change (cochainToSectionsIso e K j).hom.hom |
| 92 | (((((CochainComplex.singleFunctor C 0).obj Z).HomComplex K).d i j).hom α) = _ |
| 93 | change cochainToSectionsEquiv e K j |
| 94 | (CochainComplex.HomComplex.δ i j α) = _ |
| 95 | rw [CochainComplex.HomComplex.Cochain.δ_fromSingleMk f (zero_add i) j j |
| 96 | (zero_add j)] |
| 97 | exact cochainToSectionsEquiv_fromSingleMk e K j (f ≫ K.d i j) |
| 98 | exact hleft.trans ((he f (K.d i j)).symm.trans hright.symm) |
| 99 | |
| 100 | lemma homComplexIsoSections_hom_f_apply |
| 101 | (e : ∀ X : C, (Z ⟶ X) ≃+ ↑(G.obj X)) |
| 102 | (he : ∀ {X Y : C} (a : Z ⟶ X) (b : X ⟶ Y), |
| 103 | e Y (a ≫ b) = G.map b (e X a)) |
| 104 | (K : CochainComplex C ℤ) (n : ℤ) |
| 105 | (z : CochainComplex.HomComplex.Cochain |
| 106 | ((CochainComplex.singleFunctor C 0).obj Z) K n) : |
| 107 | ((homComplexIsoSections e he K).hom.f n).hom z = |
| 108 | cochainToSectionsEquiv e K n z := |
| 109 | rfl |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RepresentedCochainSections.DerivedSections |