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 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicTopology.Sheaf.OpenSheafification |
| 7 | import OAI.AlgebraicTopology.Singular.SheafSubdivisionCochain |
| 8 | |
| 9 | /-! # Sheaf Cochain Open Restriction -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicTopology.Singular.SheafCochainOpenRestriction |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicTopology |
| 16 | |
| 17 | /-! # Singular cochains and restriction to open subspaces -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) (U : Opens X) |
| 24 | |
| 25 | /-- Let `U` be open in a topological space `X` and `V` open in the subspace `U`. This is the |
| 26 | isomorphism of topological spaces between `V` regarded as a subspace of `U` and its image |
| 27 | regarded as a subspace of `X`. Both maps preserve the underlying point of `X`. -/ |
| 28 | def openSubspaceImageIso (V : Opens U) : |
| 29 | (Opens.toTopCat (TopCat.of U)).obj V ≅ |
| 30 | (Opens.toTopCat X).obj (U.isOpenEmbedding.functor.obj V) := |
| 31 | TopCat.isoOfHomeo (U.isOpenEmbedding.toIsEmbedding.homeomorphImage (V : Set U)) |
| 32 | |
| 33 | @[reassoc] |
| 34 | lemma openSubspaceImageIso_naturality {V W : Opens U} (f : V ⟶ W) : |
| 35 | (Opens.toTopCat (TopCat.of U)).map f ≫ (openSubspaceImageIso X U W).hom = |
| 36 | (openSubspaceImageIso X U V).hom ≫ |
| 37 | (Opens.toTopCat X).map (U.isOpenEmbedding.functor.map f) := |
| 38 | TopCat.hom_ext rfl |
| 39 | |
| 40 | /-- Let `X` be a topological space, `U ⊆ X` open, and `R` a commutative ring. For an open `V` of the |
| 41 | subspace `U`, the identification of `V` with its image in `X` induces this isomorphism of |
| 42 | singular chain complexes with coefficients in `R`. -/ |
| 43 | def openSubspaceImageChainIso (V : Opens U) : |
| 44 | (SheafCochain.openSingularChainComplexFunctor R (TopCat.of U)).obj V ≅ |
| 45 | (SheafCochain.openSingularChainComplexFunctor R X).obj (U.isOpenEmbedding.functor.obj V) := |
| 46 | ((singularChainComplexFunctor (ModuleCat.{u} R)).obj (ModuleCat.of R R)).mapIso |
| 47 | (openSubspaceImageIso X U V) |
| 48 | |
| 49 | @[reassoc] |
| 50 | lemma openSubspaceImageChainIso_naturality {V W : Opens U} (f : V ⟶ W) : |
| 51 | (SheafCochain.openSingularChainComplexFunctor R (TopCat.of U)).map f ≫ |
| 52 | (openSubspaceImageChainIso R X U W).hom = |
| 53 | (openSubspaceImageChainIso R X U V).hom ≫ |
| 54 | (SheafCochain.openSingularChainComplexFunctor R X).map (U.isOpenEmbedding.functor.map f) := by |
| 55 | dsimp only [openSubspaceImageChainIso, SheafCochain.openSingularChainComplexFunctor, |
| 56 | Functor.comp_map, Functor.mapIso_hom] |
| 57 | rw [← Functor.map_comp, ← Functor.map_comp, openSubspaceImageIso_naturality] |
| 58 | |
| 59 | /-- Let `X` be a topological space, `U ⊆ X` open, and `R` a commutative ring. For each nonnegative |
| 60 | degree `n`, this isomorphism identifies the restriction to `U` of the presheaf of singular |
| 61 | `R`-valued `n`-cochains on `X` with the singular cochain presheaf defined on `U` itself. It is |
| 62 | induced by identifying each open subset of `U` with its image in `X`. -/ |
| 63 | def singularCochainPresheafOpenRestrictionIso (n : ℕ) : |
| 64 | U.isOpenEmbedding.functor.op ⋙ SheafCochain.singularCochainPresheaf R X n ≅ |
| 65 | SheafCochain.singularCochainPresheaf R (TopCat.of U) n := |
| 66 | NatIso.ofComponents |
| 67 | (fun V => (forget₂ (ModuleCat.{u} R) AddCommGrpCat).mapIso |
| 68 | ((HomologicalComplex.eval (ModuleCat.{u} R) (.up ℕ) n).mapIso |
| 69 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualIso (openSubspaceImageChainIso R X U V.unop)))) |
| 70 | (by |
| 71 | intro V W f |
| 72 | ext φ |
| 73 | change SheafCochain.OpenCochains R X (.op (U.isOpenEmbedding.functor.obj V.unop)) n at φ |
| 74 | apply LinearMap.ext |
| 75 | intro c |
| 76 | exact congrArg φ (ConcreteCategory.congr_hom |
| 77 | (congrArg (fun g => g.f n) |
| 78 | (openSubspaceImageChainIso_naturality R X U f.unop)).symm c)) |
| 79 | |
| 80 | lemma singularCochainPresheafOpenRestrictionIso_coboundary (n : ℕ) : |
| 81 | Functor.whiskerLeft U.isOpenEmbedding.functor.op (SheafCochain.singularCochainCoboundary R X n) ≫ |
| 82 | (singularCochainPresheafOpenRestrictionIso R X U (n + 1)).hom = |
| 83 | (singularCochainPresheafOpenRestrictionIso R X U n).hom ≫ |
| 84 | SheafCochain.singularCochainCoboundary R (TopCat.of U) n := by |
| 85 | apply NatTrans.ext |
| 86 | funext V |
| 87 | ext φ |
| 88 | change SheafCochain.OpenCochains R X (.op (U.isOpenEmbedding.functor.obj V.unop)) n at φ |
| 89 | apply LinearMap.ext |
| 90 | intro c |
| 91 | exact congrArg φ (ConcreteCategory.congr_hom |
| 92 | ((openSubspaceImageChainIso R X U V.unop).hom.comm (n + 1) n) c) |
| 93 | |
| 94 | set_option backward.defeqAttrib.useBackward true in |
| 95 | set_option backward.isDefEq.respectTransparency false in |
| 96 | set_option backward.isDefEq.respectTransparency.types false in |
| 97 | /-- Let `X` be a topological space, `U ⊆ X` open, and `R` a commutative ring. This isomorphism of |
| 98 | presheaf complexes identifies singular cochains on `X` restricted to `U` with singular cochains |
| 99 | defined on `U`. In each degree it uses the homeomorphism from an open subset of `U` to its image |
| 100 | in `X`; these identifications commute with the coboundary. -/ |
| 101 | def singularCochainPresheafComplexOpenRestrictionIso : |
| 102 | (Functor.mapHomologicalComplex |
| 103 | ((Functor.whiskeringLeft _ _ AddCommGrpCat).obj U.isOpenEmbedding.functor.op) |
| 104 | (.up ℕ)).obj (SheafCochain.singularCochainPresheafComplex R X) ≅ |
| 105 | SheafCochain.singularCochainPresheafComplex R (TopCat.of U) := |
| 106 | HomologicalComplex.Hom.isoOfComponents (singularCochainPresheafOpenRestrictionIso R X U) |
| 107 | (by |
| 108 | intro i j hij |
| 109 | obtain rfl := hij |
| 110 | rw [Functor.mapHomologicalComplex_obj_d, SheafCochain.singularCochainPresheafComplex_d, |
| 111 | SheafCochain.singularCochainPresheafComplex_d] |
| 112 | exact (singularCochainPresheafOpenRestrictionIso_coboundary R X U i).symm) |
| 113 | |
| 114 | /-- Restriction of the ambient singular cochain sheaf is the intrinsic |
| 115 | singular cochain sheaf of the open subspace, with its unit normalization. -/ |
| 116 | def singularCochainSheafOpenRestrictionIso (n : ℕ) : |
| 117 | (U.isOpenEmbedding.sheafPullback AddCommGrpCat).obj (SheafCochain.singularCochainSheaf R X n) ≅ |
| 118 | SheafCochain.singularCochainSheaf R (TopCat.of U) n := |
| 119 | (Sheaf.OpenSheafification.TopCat.openRestrictionSheafificationIso X U (SheafCochain.singularCochainPresheaf R X n)).symm ≪≫ |
| 120 | (presheafToSheaf (Opens.grothendieckTopology (TopCat.of U)) AddCommGrpCat).mapIso |
| 121 | (singularCochainPresheafOpenRestrictionIso R X U n) |
| 122 | |
| 123 | set_option backward.defeqAttrib.useBackward true in |
| 124 | set_option backward.isDefEq.respectTransparency false in |
| 125 | lemma singularCochainSheafOpenRestrictionIso_coboundary (n : ℕ) : |
| 126 | (U.isOpenEmbedding.sheafPullback AddCommGrpCat).map |
| 127 | (SheafCochain.singularCochainSheafCoboundary R X n) ≫ |
| 128 | (singularCochainSheafOpenRestrictionIso R X U (n + 1)).hom = |
| 129 | (singularCochainSheafOpenRestrictionIso R X U n).hom ≫ |
| 130 | SheafCochain.singularCochainSheafCoboundary R (TopCat.of U) n := by |
| 131 | apply (cancel_epi (Sheaf.OpenSheafification.TopCat.openRestrictionSheafificationIso X U |
| 132 | (SheafCochain.singularCochainPresheaf R X n)).hom).1 |
| 133 | dsimp only [singularCochainSheafOpenRestrictionIso, SheafCochain.singularCochainSheafCoboundary] |
| 134 | simp only [Iso.trans_hom, Iso.symm_hom, Functor.mapIso_hom, Category.assoc, |
| 135 | Iso.hom_inv_id_assoc] |
| 136 | rw [← Sheaf.OpenSheafification.TopCat.openRestrictionSheafificationIso_naturality_assoc, |
| 137 | Iso.hom_inv_id_assoc, ← Functor.map_comp, ← Functor.map_comp, |
| 138 | singularCochainPresheafOpenRestrictionIso_coboundary] |
| 139 | |
| 140 | set_option backward.defeqAttrib.useBackward true in |
| 141 | set_option backward.isDefEq.respectTransparency false in |
| 142 | /-- Let `X` be a topological space, `U ⊆ X` open, and `R` a commutative ring. Let `C_X` and `C_U` be |
| 143 | the degreewise sheafifications of the presheaf complexes of singular `R`-cochains on `X` and |
| 144 | `U`. This isomorphism `C_X|_U ≅ C_U` follows from the identification of open-subspace cochains |
| 145 | and the compatibility of sheafification with open restriction. -/ |
| 146 | def singularCochainSheafComplexOpenRestrictionIso : |
| 147 | ((U.isOpenEmbedding.sheafPullback AddCommGrpCat).mapHomologicalComplex (.up ℕ)).obj |
| 148 | (SheafCochain.singularCochainSheafComplex R X) ≅ |
| 149 | SheafCochain.singularCochainSheafComplex R (TopCat.of U) := |
| 150 | HomologicalComplex.Hom.isoOfComponents (singularCochainSheafOpenRestrictionIso R X U) |
| 151 | (by |
| 152 | intro i j hij |
| 153 | obtain rfl := hij |
| 154 | simpa only [Functor.mapHomologicalComplex_obj_d, SheafCochain.singularCochainSheafComplex_d] using |
| 155 | (singularCochainSheafOpenRestrictionIso_coboundary R X U i).symm) |
| 156 | |
| 157 | set_option backward.defeqAttrib.useBackward true in |
| 158 | set_option backward.isDefEq.respectTransparency false in |
| 159 | /-- Unit normalization of the intrinsic/ambient singular sheaf comparison. -/ |
| 160 | @[reassoc] |
| 161 | lemma toSheafify_singularCochainSheafOpenRestrictionIso (n : ℕ) : |
| 162 | Functor.whiskerLeft U.isOpenEmbedding.functor.op |
| 163 | (toSheafify (Opens.grothendieckTopology X) (SheafCochain.singularCochainPresheaf R X n)) ≫ |
| 164 | (singularCochainSheafOpenRestrictionIso R X U n).hom.hom = |
| 165 | (singularCochainPresheafOpenRestrictionIso R X U n).hom ≫ |
| 166 | toSheafify (Opens.grothendieckTopology (TopCat.of U)) |
| 167 | (SheafCochain.singularCochainPresheaf R (TopCat.of U) n) := by |
| 168 | rw [← Sheaf.OpenSheafification.TopCat.toSheafify_openRestrictionSheafificationIso] |
| 169 | dsimp only [singularCochainSheafOpenRestrictionIso] |
| 170 | rw [Iso.trans_hom, ObjectProperty.FullSubcategory.comp_hom, Category.assoc] |
| 171 | simp only [Iso.symm_hom, Functor.mapIso_hom, ← Category.assoc, |
| 172 | ← ObjectProperty.FullSubcategory.comp_hom, Iso.hom_inv_id] |
| 173 | exact (toSheafify_naturality (Opens.grothendieckTopology (TopCat.of U)) |
| 174 | (singularCochainPresheafOpenRestrictionIso R X U n).hom).symm |
| 175 | |
| 176 | end |
| 177 | |
| 178 | end OAI.AlgebraicTopology.Singular.SheafCochainOpenRestriction |