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.HodgeConjecture.DegreeTwo.RegularThomCupStalk |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.LocalStalkQuasiIso |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.NormalSourceSheafComparison |
| 4 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.ClosedSourceResolution |
| 5 | import OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.RegularTopGysin |
| 6 | |
| 7 | /-! # Regular Thom Source Sheaf -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.RegularThomSourceSheaf.Constructions |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The normalized Thom sheaf is canonically the independently constructed source cohomology sheaf. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | theorem sheafHomologyMap_stalk_isIso {R : Type} [Ring R] {X : TopCat.{0}} |
| 22 | {K L : CochainComplex (TopCat.Sheaf (ModuleCat.{0} R) X) ℕ} |
| 23 | (f : K ⟶ L) (x : X) (n : ℕ) [QuasiIsoAt (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainMap f x) n] : |
| 24 | IsIso ((LocalStalkQuasiIso.Constructions.moduleSheafStalk x).map (HomologicalComplex.homologyMap f n)) := by |
| 25 | have : IsIso ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCohomologyIso K x n).hom ≫ |
| 26 | (LocalStalkQuasiIso.Constructions.moduleSheafStalk x).map (HomologicalComplex.homologyMap f n)) := by |
| 27 | change IsIso ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCohomologyIso K x n).hom ≫ |
| 28 | (TopCat.Presheaf.stalkFunctor (ModuleCat.{0} R) x).map |
| 29 | (HomologicalComplex.homologyMap f n).hom) |
| 30 | rw [← AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCohomologyIso_naturality] |
| 31 | infer_instance |
| 32 | exact IsIso.of_isIso_comp_left (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCohomologyIso K x n).hom _ |
| 33 | |
| 34 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V 1) |
| 35 | |
| 36 | abbrev regularSourceSheafComplex := |
| 37 | SingularSheafPullback.Constructions.singularPushforwardSheafComplex (ModuleCat.of ℚ ℚ) (RegularTopGysin.Constructions.regularSourceInclusionMap V Z) |
| 38 | |
| 39 | def regularSourceZeroSheafMap := |
| 40 | HomologicalComplex.homologyMap |
| 41 | (SingularSheafPullback.Constructions.singularSheafPullbackMap (ModuleCat.of ℚ ℚ) (RegularTopGysin.Constructions.regularSourceInclusionMap V Z)) 0 |
| 42 | |
| 43 | theorem regularSourceZeroSheafMap_stalk_isIso (x : Z.regularAnalyticSpace) : |
| 44 | IsIso ((LocalStalkQuasiIso.Constructions.moduleSheafStalk (Z.regularComplementInclusion x)).map (regularSourceZeroSheafMap Z)) := by |
| 45 | have := NormalSourceSheafComparison.Constructions.normalPairSourceSheafPullback_stalk_quasiIso |
| 46 | (f := RegularTopGysin.Constructions.regularSourceInclusionMap V Z) (Z.regularFixedNormalPair x) |
| 47 | Z.isClosedEmbedding_regularComplementInclusion.isEmbedding |
| 48 | exact sheafHomologyMap_stalk_isIso _ _ 0 |
| 49 | |
| 50 | theorem regularSourceZeroSheaf_stalk_isZero (y : Z.regularAmbientSpace) |
| 51 | (hy : y ∉ Set.range Z.regularComplementInclusion) : |
| 52 | IsZero ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).obj ((regularSourceSheafComplex Z).homology 0)) := by |
| 53 | have hz : IsZero ((AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCochainComplex (regularSourceSheafComplex Z) y).homology 0) := |
| 54 | (ClosedPushforwardExactness.Constructions.closedPushforwardSheafComplex_stalk_exactAt (RegularTopGysin.Constructions.regularSourceInclusionMap V Z) |
| 55 | Z.isClosedEmbedding_regularComplementInclusion (SingularSheafZeroResolution.Constructions.rationalSingularSheafComplex |
| 56 | (TopCat.of Z.regularAnalyticSpace)) y hy 0).isZero_homology |
| 57 | exact hz.of_iso (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCohomologyIso (regularSourceSheafComplex Z) y 0).symm |
| 58 | |
| 59 | theorem regularThomGoodShiftZeroSheaf_stalk_isZero (y : Z.regularAmbientSpace) |
| 60 | (hy : y ∉ Set.range Z.regularComplementInclusion) : |
| 61 | IsZero ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).obj ((GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z).homology 0)) := by |
| 62 | have hz : IsZero ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).obj (Z.regularThomSheafComplex.homology 2)) := |
| 63 | (CycleClass.Geometric.SupportStalkVanishes.Cycles.supportedSingularSheaf_stalk_homology_isZero_of_mem |
| 64 | (X := TopCat.of Z.regularAmbientSpace) (ModuleCat.of ℚ ℚ) |
| 65 | Z.regularThomComplementOpen y hy 2).of_iso |
| 66 | (AlgebraicTopology.Cohomology.Singular.SheafQuasiIso.sheafStalkCohomologyIso Z.regularThomSheafComplex y 2).symm |
| 67 | exact hz.of_iso ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).mapIso (GoodShiftCohomology.Constructions.regularThomGoodShift_zeroHomologyIso Z)) |
| 68 | |
| 69 | variable (a : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles (AlgebraicTopology.Cohomology.Singular.RelativeSequence.relativeSingularCochains (ModuleCat.of ℚ ℚ) |
| 70 | (TopCat.of Z.regularAmbientSpace) (Z.regularThomComplementOpen : Set Z.regularAmbientSpace)) 2) |
| 71 | variable (ha : AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ 2 a = Z.regularThomClass) |
| 72 | |
| 73 | def regularThomZeroSheafMap := |
| 74 | HomologicalComplex.homologyMap (RelativeCupSheaf.Constructions.relativeTwoCupGoodShiftSheafMap |
| 75 | (TopCat.of Z.regularAmbientSpace) Z.regularThomComplementOpen a) 0 |
| 76 | |
| 77 | include ha |
| 78 | |
| 79 | theorem regularThomZeroSheafMap_stalk_isIso (x : Z.regularAnalyticSpace) : |
| 80 | IsIso ((LocalStalkQuasiIso.Constructions.moduleSheafStalk (Z.regularComplementInclusion x)).map (regularThomZeroSheafMap Z a)) := by |
| 81 | have := RegularThomCupStalk.Constructions.regularThomCupGoodShiftSheaf_stalk_quasiIso Z a ha x |
| 82 | exact sheafHomologyMap_stalk_isIso _ _ 0 |
| 83 | |
| 84 | theorem regularSourceThom_localQuotients (y : Z.regularAmbientSpace) : |
| 85 | (IsIso ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).map (regularSourceZeroSheafMap Z)) ∧ |
| 86 | IsIso ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).map (regularThomZeroSheafMap Z a))) ∨ |
| 87 | (IsZero ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).obj ((regularSourceSheafComplex Z).homology 0)) ∧ |
| 88 | IsZero ((LocalStalkQuasiIso.Constructions.moduleSheafStalk y).obj ((GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z).homology 0))) := by |
| 89 | by_cases hy : y ∈ Set.range Z.regularComplementInclusion |
| 90 | · obtain ⟨x,rfl⟩ := hy |
| 91 | exact Or.inl ⟨regularSourceZeroSheafMap_stalk_isIso Z x, |
| 92 | regularThomZeroSheafMap_stalk_isIso Z a ha x⟩ |
| 93 | · exact Or.inr ⟨regularSourceZeroSheaf_stalk_isZero Z y hy, |
| 94 | regularThomGoodShiftZeroSheaf_stalk_isZero Z y hy⟩ |
| 95 | |
| 96 | /-- Both sides were constructed independently; the actual normalized cup identifies them. -/ |
| 97 | def regularSourceThomZeroSheafIso : |
| 98 | (regularSourceSheafComplex Z).homology 0 ≅ (GoodShiftCohomology.Constructions.regularThomGoodShiftSheafComplex Z).homology 0 := |
| 99 | LocalStalkQuasiIso.Constructions.moduleSheafLocalQuotientIso (regularSourceZeroSheafMap Z) (regularThomZeroSheafMap Z a) |
| 100 | (regularSourceThom_localQuotients Z a ha) |
| 101 | |
| 102 | theorem regularSourceThomZeroSheafIso_comm : |
| 103 | regularSourceZeroSheafMap Z ≫ (regularSourceThomZeroSheafIso Z a ha).hom = |
| 104 | regularThomZeroSheafMap Z a := |
| 105 | LocalStalkQuasiIso.Constructions.moduleSheafLocalQuotientIso_comm _ _ _ |
| 106 | |
| 107 | def regularSourceThomSheafIso : |
| 108 | (regularSourceSheafComplex Z).homology 0 ≅ Z.regularThomSheafComplex.homology 2 := |
| 109 | regularSourceThomZeroSheafIso Z a ha ≪≫ GoodShiftCohomology.Constructions.regularThomGoodShift_zeroHomologyIso Z |
| 110 | |
| 111 | end |
| 112 | |
| 113 | /-! Left exact section functors preserve degree-zero cohomology and its actual comparison maps. -/ |
| 114 | |
| 115 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 116 | |
| 117 | set_option backward.isDefEq.respectTransparency false |
| 118 | |
| 119 | variable {C D : Type*} [Category C] [Category D] [Abelian C] [Abelian D] |
| 120 | variable (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] |
| 121 | |
| 122 | theorem cochain_zero_incoming (K : CochainComplex C ℕ) : (K.sc 0).f=0 := by |
| 123 | change K.d ((ComplexShape.up ℕ).prev 0) 0 = 0 |
| 124 | simp |
| 125 | |
| 126 | local instance zeroLeftHomology (K : CochainComplex C ℕ) : F.PreservesLeftHomologyOf (K.sc 0) := |
| 127 | F.preservesLeftHomology_of_zero_f (K.sc 0) (cochain_zero_incoming K) |
| 128 | |
| 129 | local instance zeroRightHomology (K : CochainComplex C ℕ) : F.PreservesRightHomologyOf (K.sc 0) := |
| 130 | F.preservesRightHomology_of_zero_f (K.sc 0) (cochain_zero_incoming K) |
| 131 | |
| 132 | def leftExactZeroCohomologyIso (K : CochainComplex C ℕ) : |
| 133 | ((F.mapHomologicalComplex (ComplexShape.up ℕ)).obj K).homology 0 ≅ F.obj (K.homology 0) := |
| 134 | (K.sc 0).mapHomologyIso F |
| 135 | |
| 136 | theorem leftExactZeroCohomologyIso_naturality {K L : CochainComplex C ℕ} (f : K ⟶ L) : |
| 137 | HomologicalComplex.homologyMap ((F.mapHomologicalComplex (ComplexShape.up ℕ)).map f) 0 ≫ |
| 138 | (leftExactZeroCohomologyIso F L).hom = |
| 139 | (leftExactZeroCohomologyIso F K).hom ≫ F.map (HomologicalComplex.homologyMap f 0) := |
| 140 | ShortComplex.mapHomologyIso_hom_naturality |
| 141 | ((HomologicalComplex.shortComplexFunctor C (ComplexShape.up ℕ) 0).map f) F |
| 142 | |
| 143 | def zeroSectionComparisonIso (K L : CochainComplex C ℕ) (e : K.homology 0 ≅ L.homology 0) : |
| 144 | ((F.mapHomologicalComplex (ComplexShape.up ℕ)).obj K).homology 0 ≅ |
| 145 | ((F.mapHomologicalComplex (ComplexShape.up ℕ)).obj L).homology 0 := |
| 146 | leftExactZeroCohomologyIso F K ≪≫ F.mapIso e ≪≫ (leftExactZeroCohomologyIso F L).symm |
| 147 | |
| 148 | theorem zeroSectionComparisonIso_comm {A K L : CochainComplex C ℕ} |
| 149 | (f : A ⟶ K) (g : A ⟶ L) (e : K.homology 0 ≅ L.homology 0) |
| 150 | (he : HomologicalComplex.homologyMap f 0 ≫ e.hom = HomologicalComplex.homologyMap g 0) : |
| 151 | HomologicalComplex.homologyMap ((F.mapHomologicalComplex (ComplexShape.up ℕ)).map f) 0 ≫ |
| 152 | (zeroSectionComparisonIso F K L e).hom = |
| 153 | HomologicalComplex.homologyMap ((F.mapHomologicalComplex (ComplexShape.up ℕ)).map g) 0 := by |
| 154 | apply (cancel_mono (leftExactZeroCohomologyIso F L).hom).mp |
| 155 | simp only [zeroSectionComparisonIso, Iso.trans_hom, Iso.symm_hom, |
| 156 | Category.assoc, Iso.inv_hom_id, Category.comp_id, Functor.mapIso_hom] |
| 157 | rw [← Category.assoc, leftExactZeroCohomologyIso_naturality, |
| 158 | Category.assoc, ← Functor.map_comp, he, leftExactZeroCohomologyIso_naturality] |
| 159 | |
| 160 | end |
| 161 | |
| 162 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.RegularThomSourceSheaf.Constructions |