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/SheafCechSheafComplex.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.Cech.SheafDifferential |
| 8 | |
| 9 | /-! # Sheaf Complex -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntrinsicCech.SheafComplex |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 16 | universe u |
| 17 | |
| 18 | variable {X : TopCat.{u}} |
| 19 | variable (F : TopCat.Sheaf AddCommGrpCat.{u} X) |
| 20 | |
| 21 | /-- The presheaf on opens whose value at `A` is the pushforward of the restriction of `F` |
| 22 | to `A`. -/ |
| 23 | noncomputable def cechFactorPresheaf : |
| 24 | (Opens X)ᵒᵖ ⥤ TopCat.Sheaf AddCommGrpCat.{u} X where |
| 25 | obj A := (TopologicalSheafRestriction.IntrinsicCech.restrict AddCommGrpCat A.unop.isOpenEmbedding ⋙ |
| 26 | TopCat.Sheaf.pushforward AddCommGrpCat A.unop.inclusion').obj F |
| 27 | map f := Cech.SheafFactorRestriction.IntrinsicCech.cechTermFactorRestriction F (leOfHom f.unop) |
| 28 | map_id A := by |
| 29 | apply CategoryTheory.Sheaf.hom_ext |
| 30 | apply NatTrans.ext |
| 31 | funext V |
| 32 | change F.obj.map _ = 𝟙 _ |
| 33 | rw [← F.obj.map_id] |
| 34 | exact congrArg F.obj.map (Subsingleton.elim _ _) |
| 35 | map_comp f g := by |
| 36 | apply CategoryTheory.Sheaf.hom_ext |
| 37 | apply NatTrans.ext |
| 38 | funext V |
| 39 | change F.obj.map _ = F.obj.map _ ≫ F.obj.map _ |
| 40 | rw [← F.obj.map_comp] |
| 41 | exact congrArg F.obj.map (Subsingleton.elim _ _) |
| 42 | |
| 43 | variable {ι : Type u} (U : ι → Opens X) |
| 44 | |
| 45 | /-- The sheaf-level Cech complex associated to the open family `U`. -/ |
| 46 | noncomputable def cechComplex : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℕ := |
| 47 | (cechComplexFunctor U).obj (cechFactorPresheaf F) |
| 48 | |
| 49 | /-- The degree-`n` object of the sheaf-level Cech complex is `cechTerm F U n`. -/ |
| 50 | theorem cechComplex_X (n : ℕ) : (cechComplex F U).X n = SheafTerms.cechTerm F U n := rfl |
| 51 | |
| 52 | theorem nativeCoface_eq_cechCoface (n : ℕ) (k : Fin (n + 2)) : |
| 53 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 54 | (FormalCoproduct.mk _ U).cech).obj (cechFactorPresheaf F)).δ k = |
| 55 | Cech.SheafCofaces.IntrinsicCech.cechCoface F U n k := by |
| 56 | rw [CosimplicialObject.δ, |
| 57 | FormalCoproduct.cosimplicialObjectFunctor_obj_map, |
| 58 | FormalCoproduct.cech_map] |
| 59 | rfl |
| 60 | |
| 61 | /-- The native differential of `cechComplex F U` is the alternating-sum map |
| 62 | `cechDifferential F U n`. -/ |
| 63 | theorem cechComplex_d (n : ℕ) : |
| 64 | (cechComplex F U).d n (n + 1) = Cech.SheafDifferential.IntrinsicCech.cechDifferential F U n := by |
| 65 | change ((FormalCoproduct.cochainComplexFunctor |
| 66 | (FormalCoproduct.mk _ U).cech).obj (cechFactorPresheaf F)).d n (n + 1) = _ |
| 67 | rw [FormalCoproduct.cochainComplexFunctor_obj_d] |
| 68 | refine (CochainComplex.of_d _ _ n).trans ?_ |
| 69 | rw [AlgebraicTopology.AlternatingCofaceMapComplex.objD, Cech.SheafDifferential.IntrinsicCech.cechDifferential] |
| 70 | apply Finset.sum_congr rfl |
| 71 | intro k _ |
| 72 | exact congrArg (fun f => (-1 : ℤ) ^ (k : ℕ) • f) |
| 73 | (nativeCoface_eq_cechCoface F U n k) |
| 74 | |
| 75 | /-- Consecutive sheaf-level Cech differentials compose to zero. -/ |
| 76 | theorem cechDifferential_comp (n : ℕ) : |
| 77 | Cech.SheafDifferential.IntrinsicCech.cechDifferential F U n ≫ Cech.SheafDifferential.IntrinsicCech.cechDifferential F U (n + 1) = 0 := by |
| 78 | rw [← cechComplex_d F U n, ← cechComplex_d F U (n + 1)] |
| 79 | exact (cechComplex F U).d_comp_d n (n + 1) (n + 2) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntrinsicCech.SheafComplex |