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 | import OAI.AlgebraicGeometry.CycleClass.Geometric.NormalChartPurity |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.SupportedStalk |
| 3 | |
| 4 | /-! # Normal Support Germ -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # Purity of actual supported singular-sheaf stalks |
| 14 | |
| 15 | The supported complex is the genuine kernel of sheaf restriction to the |
| 16 | open complement. Its verified relative-cohomology comparison, followed by |
| 17 | the cofinal normal-neighborhood computation, gives purity at an embedded |
| 18 | point. The normalized top class belongs to the actual supported stalk. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 22 | open _root_.TopCat.Presheaf OAI.AlgebraicTopology.Cohomology.Singular.SupportedStalk |
| 23 | |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | set_option backward.isDefEq.respectTransparency.types false |
| 26 | set_option backward.defeqAttrib.useBackward true |
| 27 | |
| 28 | variable {M N E F : Type} [TopologicalSpace N] [MetrizableSpace N] |
| 29 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] |
| 30 | {f : M → N} {x : M} (P : ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair E F f x) |
| 31 | |
| 32 | /-- The actual supported-stalk comparison with the relative-cohomology |
| 33 | stalk, after identifying the given open set with the image complement. -/ |
| 34 | def ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkRelativeRangeIso (O : Opens (TopCat.of N)) |
| 35 | (hO : (O : Set N) = (Set.range f)ᶜ) (n : ℕ) : |
| 36 | (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 37 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) (f x)).homology n ≅ |
| 38 | (AlgebraicTopology.Cohomology.Singular.RelativeOpenSupport.relativeCohomologyPresheaf (ModuleCat.of ℚ ℚ) (TopCat.of N) |
| 39 | (Set.range f)ᶜ n).stalk (f x) := |
| 40 | AlgebraicTopology.Cohomology.Singular.SupportedStalk.supportedStalkRelativeCohomologyIso ℚ (TopCat.of N) O (f x) n ≪≫ |
| 41 | eqToIso (congrArg (fun A : Set N => |
| 42 | (AlgebraicTopology.Cohomology.Singular.RelativeOpenSupport.relativeCohomologyPresheaf (ModuleCat.of ℚ ℚ) (TopCat.of N) A n).stalk (f x)) hO) |
| 43 | |
| 44 | /-- The actual supported singular-sheaf stalk has the cohomology of the |
| 45 | punctured normal vector space, via genuine germs and normal coordinates. -/ |
| 46 | def ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkNormalCohomologyIso (O : Opens (TopCat.of N)) |
| 47 | (hO : (O : Set N) = (Set.range f)ᶜ) (n : ℕ) : |
| 48 | (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 49 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) (f x)).homology n ≅ |
| 50 | AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) (TopCat.of F) ({0}ᶜ : Set F) n := |
| 51 | ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkRelativeRangeIso (f := f) (x := x) O hO n ≪≫ |
| 52 | (P.normalStalkCohomologyIso n).symm |
| 53 | |
| 54 | variable [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 55 | |
| 56 | /-- Top supported-stalk cohomology is the one-dimensional rational module, |
| 57 | with its normalization transported by the actual complex normal model. -/ |
| 58 | def ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkTopCohomologyIso (O : Opens (TopCat.of N)) |
| 59 | (hO : (O : Set N) = (Set.range f)ᶜ) : |
| 60 | (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 61 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 62 | (f x)).homology (2 * Module.finrank ℂ F) ≅ ModuleCat.of ℚ ℚ := |
| 63 | P.supportedStalkNormalCohomologyIso O hO (2 * Module.finrank ℂ F) ≪≫ |
| 64 | CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexTopCohomologyIso F |
| 65 | |
| 66 | /-- The normalized rational class in the actual supported stalk. -/ |
| 67 | def ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedRationalStalkClass (O : Opens (TopCat.of N)) |
| 68 | (hO : (O : Set N) = (Set.range f)ᶜ) : |
| 69 | (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 70 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 71 | (f x)).homology (2 * Module.finrank ℂ F) := |
| 72 | (P.supportedStalkTopCohomologyIso O hO).inv 1 |
| 73 | |
| 74 | @[simp] |
| 75 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedRationalStalkClass_normalization (O : Opens (TopCat.of N)) |
| 76 | (hO : (O : Set N) = (Set.range f)ᶜ) : |
| 77 | (P.supportedStalkTopCohomologyIso O hO).hom (P.supportedRationalStalkClass O hO) = 1 := |
| 78 | (P.supportedStalkTopCohomologyIso O hO).toLinearEquiv.apply_symm_apply 1 |
| 79 | |
| 80 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedRationalStalkClass_ne_zero (O : Opens (TopCat.of N)) |
| 81 | (hO : (O : Set N) = (Set.range f)ᶜ) : P.supportedRationalStalkClass O hO ≠ 0 := by |
| 82 | intro h |
| 83 | have hn := P.supportedRationalStalkClass_normalization O hO |
| 84 | rw [h, map_zero] at hn |
| 85 | exact zero_ne_one hn |
| 86 | |
| 87 | include P in |
| 88 | /-- The actual supported stalk is zero outside the top normal degree. -/ |
| 89 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalk_homology_isZero (O : Opens (TopCat.of N)) |
| 90 | (hO : (O : Set N) = (Set.range f)ᶜ) (n : ℕ) (hn : n ≠ 2 * Module.finrank ℂ F) : |
| 91 | IsZero ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 92 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 93 | (f x)).homology n) := |
| 94 | (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexLocalCohomology_isZero F n hn).of_iso |
| 95 | (P.supportedStalkNormalCohomologyIso O hO n) |
| 96 | |
| 97 | include P in |
| 98 | /-- In particular the actual supported stalk vanishes below real codimension. -/ |
| 99 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalk_homology_isZero_of_lt (O : Opens (TopCat.of N)) |
| 100 | (hO : (O : Set N) = (Set.range f)ᶜ) (n : ℕ) (hn : n < 2 * Module.finrank ℂ F) : |
| 101 | IsZero ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 102 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 103 | (f x)).homology n) := |
| 104 | P.supportedStalk_homology_isZero O hO n (Nat.ne_of_lt hn) |
| 105 | |
| 106 | include P in |
| 107 | /-- Purity also expresses genuine exactness of the supported stalk complex. -/ |
| 108 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalk_exactAt (O : Opens (TopCat.of N)) |
| 109 | (hO : (O : Set N) = (Set.range f)ᶜ) (n : ℕ) (hn : n ≠ 2 * Module.finrank ℂ F) : |
| 110 | (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 111 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) (f x)).ExactAt n := by |
| 112 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 113 | exact P.supportedStalk_homology_isZero O hO n hn |
| 114 | |
| 115 | include P in |
| 116 | /-- The top normal degree is the only nonzero supported-stalk degree. -/ |
| 117 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalk_homology_isZero_iff (O : Opens (TopCat.of N)) |
| 118 | (hO : (O : Set N) = (Set.range f)ᶜ) (n : ℕ) : |
| 119 | IsZero ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 120 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 121 | (f x)).homology n) ↔ n ≠ 2 * Module.finrank ℂ F := by |
| 122 | refine ⟨?_, P.supportedStalk_homology_isZero O hO n⟩ |
| 123 | intro hz hn |
| 124 | subst n |
| 125 | let : Subsingleton ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 126 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 127 | (f x)).homology (2 * Module.finrank ℂ F)) := ModuleCat.subsingleton_of_isZero hz |
| 128 | exact P.supportedRationalStalkClass_ne_zero O hO (Subsingleton.elim _ _) |
| 129 | |
| 130 | /-- Normalization one uniquely characterizes the actual top supported class. -/ |
| 131 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedRationalStalkClass_unique (O : Opens (TopCat.of N)) |
| 132 | (hO : (O : Set N) = (Set.range f)ᶜ) |
| 133 | (a : (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex |
| 134 | (CycleClass.Geometric.SupportStalkVanishes.Cohomology.supportedSingularSheafComplex (ModuleCat.of ℚ ℚ) (TopCat.of N) O) |
| 135 | (f x)).homology (2 * Module.finrank ℂ F)) |
| 136 | (ha : (P.supportedStalkTopCohomologyIso O hO).hom a = 1) : |
| 137 | a = P.supportedRationalStalkClass O hO := by |
| 138 | apply (P.supportedStalkTopCohomologyIso O hO).toLinearEquiv.injective |
| 139 | exact ha.trans (P.supportedRationalStalkClass_normalization O hO).symm |
| 140 | |
| 141 | /-- Shrinking a genuine normal neighborhood in the same chart leaves the |
| 142 | actual supported-stalk class unchanged. -/ |
| 143 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedRationalStalkClass_restrict (Q : ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair E F f x) |
| 144 | (hQP : Q.neighborhood ⊆ P.neighborhood) (hchart : Q.ambientChart = P.ambientChart) |
| 145 | (O : Opens (TopCat.of N)) (hO : (O : Set N) = (Set.range f)ᶜ) : |
| 146 | P.supportedRationalStalkClass O hO = Q.supportedRationalStalkClass O hO := by |
| 147 | have he : P.normalStalkCohomologyIso (2 * Module.finrank ℂ F) = |
| 148 | Q.normalStalkCohomologyIso (2 * Module.finrank ℂ F) := |
| 149 | Iso.ext (P.normalStalkCohomologyIso_hom_eq Q hQP hchart (2 * Module.finrank ℂ F)) |
| 150 | unfold ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedRationalStalkClass ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkTopCohomologyIso |
| 151 | ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkNormalCohomologyIso |
| 152 | rw [he] |
| 153 | |
| 154 | end |
| 155 | |
| 156 | /-! |
| 157 | # The normalized local normal class in the actual supported stalk |
| 158 | |
| 159 | The cohomology map of the genuine relative-to-supported cochain germ sends |
| 160 | the independently constructed rational normal class to the normalized |
| 161 | class in the actual supported stalk. The open complement is the literal |
| 162 | complement of the closed image, so the comparison introduces no transport |
| 163 | of the removed subset. |
| 164 | -/ |
| 165 | |
| 166 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 167 | open OAI.AlgebraicTopology.Cohomology.Singular.SupportedStalk |
| 168 | |
| 169 | set_option backward.isDefEq.respectTransparency false |
| 170 | set_option backward.isDefEq.respectTransparency.types false |
| 171 | set_option backward.defeqAttrib.useBackward true |
| 172 | |
| 173 | variable {M N E F : Type} [TopologicalSpace N] [MetrizableSpace N] |
| 174 | [NormedAddCommGroup E] [NormedAddCommGroup F] |
| 175 | {f : M → N} {x : M} (P : ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair E F f x) |
| 176 | (hclosed : IsClosed (Set.range f)) |
| 177 | |
| 178 | /-- The actual relative-to-supported cochain germ becomes precisely the |
| 179 | previously defined relative-cohomology germ under the supported-stalk comparison. -/ |
| 180 | @[reassoc] |
| 181 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.relativeToSupportedStalkCohomology_range (n : ℕ) : |
| 182 | HomologicalComplex.homologyMap |
| 183 | (AlgebraicTopology.Cohomology.Singular.SupportedStalk.relativeToSupportedStalkGerm (ModuleCat.of ℚ ℚ) (TopCat.of N) |
| 184 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ P.openNeighborhood |
| 185 | (f x) P.point_mem_neighborhood) n ≫ |
| 186 | (ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkRelativeRangeIso (f := f) (x := x) |
| 187 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ rfl n).hom = |
| 188 | P.relativeCohomologyGerm n := by |
| 189 | simp only [ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkRelativeRangeIso, Iso.trans_hom, |
| 190 | eqToIso_refl, Iso.refl_hom, Category.comp_id] |
| 191 | exact AlgebraicTopology.Cohomology.Singular.SupportedStalk.supportedStalkRelativeCohomologyIso_germ ℚ (TopCat.of N) |
| 192 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ P.openNeighborhood |
| 193 | (f x) P.point_mem_neighborhood n |
| 194 | |
| 195 | variable [NormedSpace ℝ E] |
| 196 | |
| 197 | /-- Pullback in genuine normal coordinates, followed by the actual |
| 198 | supported germ and the normal-model comparison, is the identity. -/ |
| 199 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.normalCohomologyMap_supportedStalkNormal (n : ℕ) : |
| 200 | P.normalCohomologyMap (ModuleCat.of ℚ ℚ) n ≫ |
| 201 | HomologicalComplex.homologyMap |
| 202 | (AlgebraicTopology.Cohomology.Singular.SupportedStalk.relativeToSupportedStalkGerm (ModuleCat.of ℚ ℚ) (TopCat.of N) |
| 203 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ P.openNeighborhood |
| 204 | (f x) P.point_mem_neighborhood) n ≫ |
| 205 | (P.supportedStalkNormalCohomologyIso |
| 206 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ rfl n).hom = |
| 207 | 𝟙 (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCohomology (ModuleCat.of ℚ ℚ) |
| 208 | (TopCat.of F) ({0}ᶜ : Set F) n) := by |
| 209 | dsimp only [ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.supportedStalkNormalCohomologyIso, Iso.trans_hom, Iso.symm_hom] |
| 210 | rw [← Category.assoc _ _ (P.normalStalkCohomologyIso n).inv, |
| 211 | P.relativeToSupportedStalkCohomology_range hclosed n, |
| 212 | ← Category.assoc, ← P.normalStalkCohomologyIso_hom n, Iso.hom_inv_id] |
| 213 | |
| 214 | variable [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 215 | |
| 216 | /-- The actual cohomology map of the relative-to-supported germ preserves |
| 217 | the independently defined rational normal-class normalization. -/ |
| 218 | theorem ComplexPoints.Analytic.NormalPairRecenter.ImmersionNormalPair.rationalClass_toSupportedStalk : |
| 219 | HomologicalComplex.homologyMap |
| 220 | (AlgebraicTopology.Cohomology.Singular.SupportedStalk.relativeToSupportedStalkGerm (ModuleCat.of ℚ ℚ) (TopCat.of N) |
| 221 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ P.openNeighborhood |
| 222 | (f x) P.point_mem_neighborhood) (2 * Module.finrank ℂ F) P.rationalClass = |
| 223 | P.supportedRationalStalkClass ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ rfl := by |
| 224 | apply P.supportedRationalStalkClass_unique ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ rfl |
| 225 | rw [P.rationalClass_eq_pullback] |
| 226 | change (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexTopCohomologyIso F).hom |
| 227 | ((P.supportedStalkNormalCohomologyIso |
| 228 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ rfl (2 * Module.finrank ℂ F)).hom |
| 229 | (HomologicalComplex.homologyMap |
| 230 | (AlgebraicTopology.Cohomology.Singular.SupportedStalk.relativeToSupportedStalkGerm (ModuleCat.of ℚ ℚ) (TopCat.of N) |
| 231 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ P.openNeighborhood |
| 232 | (f x) P.point_mem_neighborhood) (2 * Module.finrank ℂ F) |
| 233 | (P.normalCohomologyMap (ModuleCat.of ℚ ℚ) (2 * Module.finrank ℂ F) |
| 234 | (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexLocalClass F)))) = 1 |
| 235 | have h : (P.supportedStalkNormalCohomologyIso |
| 236 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ rfl (2 * Module.finrank ℂ F)).hom |
| 237 | (HomologicalComplex.homologyMap |
| 238 | (AlgebraicTopology.Cohomology.Singular.SupportedStalk.relativeToSupportedStalkGerm (ModuleCat.of ℚ ℚ) (TopCat.of N) |
| 239 | ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ P.openNeighborhood |
| 240 | (f x) P.point_mem_neighborhood) (2 * Module.finrank ℂ F) |
| 241 | (P.normalCohomologyMap (ModuleCat.of ℚ ℚ) (2 * Module.finrank ℂ F) |
| 242 | (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexLocalClass F))) = CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexLocalClass F := |
| 243 | ConcreteCategory.congr_hom |
| 244 | (P.normalCohomologyMap_supportedStalkNormal hclosed (2 * Module.finrank ℂ F)) |
| 245 | (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexLocalClass F) |
| 246 | exact (congrArg (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexTopCohomologyIso F).hom h).trans |
| 247 | (CycleClass.Geometric.FiniteComplexLocalPurity.Cycles.finiteComplexLocalClass_normalization F) |
| 248 | |
| 249 | end |
| 250 | |
| 251 | end OAI.AlgebraicGeometry |