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.LocalHomologyPresheaf |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteChainSeparation |
| 3 | import OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 4 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 5 | |
| 6 | /-! # Local Homology Stalk -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyStalk.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # The local-homology presheaf has the intended stalks |
| 14 | |
| 15 | For a Hausdorff space, a finite chain supported away from a point is supported |
| 16 | away from an open neighborhood of that point. This elementary compactness |
| 17 | fact lets actual relative cycles and bounding chains descend to sufficiently |
| 18 | small neighborhoods. It proves that the canonical stalk comparison for |
| 19 | `U ↦ H_n(X, X ∖ U; ℤ)` is an isomorphism with `H_n(X, X ∖ {x}; ℤ)`. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 23 | open OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 24 | |
| 25 | set_option backward.defeqAttrib.useBackward true |
| 26 | set_option backward.isDefEq.respectTransparency false |
| 27 | set_option backward.isDefEq.respectTransparency.types false |
| 28 | |
| 29 | variable (X : TopCat.{0}) |
| 30 | |
| 31 | /-- Every actual relative chain has an ordinary finite-chain representative. -/ |
| 32 | theorem relativeChainProjection_degree_surjective (A : Set X) (n : ℕ) : |
| 33 | Function.Surjective ((LocalHomology.Cycles.relativeChainProjection X A).f n) := |
| 34 | (ModuleCat.epi_iff_surjective _).1 |
| 35 | (LocalHomology.Cycles.relativeChainSequence_degreewiseShortExact X A n).epi_g |
| 36 | |
| 37 | private theorem projection_d (A : Set X) (i j : ℕ) |
| 38 | (c : (LocalHomology.Cycles.integralSingularChains X).X i) : |
| 39 | (LocalHomology.Cycles.relativeChainProjection X A).f j ((LocalHomology.Cycles.integralSingularChains X).d i j c) = |
| 40 | (LocalHomology.Cycles.relativeSingularChains X A).d i j ((LocalHomology.Cycles.relativeChainProjection X A).f i c) := |
| 41 | (ConcreteCategory.congr_hom ((LocalHomology.Cycles.relativeChainProjection X A).comm i j) c).symm |
| 42 | |
| 43 | private theorem pointMap_projection_apply (U : Set X) (x : X) (hx : x ∈ U) |
| 44 | (n : ℕ) (c : (LocalHomology.Cycles.integralSingularChains X).X n) : |
| 45 | (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint X U x hx).f n |
| 46 | ((LocalHomology.Cycles.relativeChainProjection X Uᶜ).f n c) = |
| 47 | (LocalHomology.Cycles.relativeChainProjection X ({x}ᶜ : Set X)).f n c := |
| 48 | ConcreteCategory.congr_hom |
| 49 | (HomologicalComplex.congr_hom (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint_projection X U x hx) n) c |
| 50 | |
| 51 | private theorem restriction_projection_apply {U V : Set X} (hUV : U ⊆ V) |
| 52 | (n : ℕ) (c : (LocalHomology.Cycles.integralSingularChains X).X n) : |
| 53 | (LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hUV).f n |
| 54 | ((LocalHomology.Cycles.relativeChainProjection X Vᶜ).f n c) = |
| 55 | (LocalHomology.Cycles.relativeChainProjection X Uᶜ).f n c := |
| 56 | ConcreteCategory.congr_hom |
| 57 | (HomologicalComplex.congr_hom (LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_projection X hUV) n) c |
| 58 | |
| 59 | variable [T2Space X] |
| 60 | |
| 61 | /-- Every local relative homology class is represented over an actual open |
| 62 | neighborhood, by shrinking away from the finite boundary support. -/ |
| 63 | theorem localHomologyStalkToPoint_surjective (x : X) (n : ℕ) : |
| 64 | Function.Surjective (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n) := by |
| 65 | intro y |
| 66 | obtain ⟨z, rfl⟩ := AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_surjective (LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X)) n y |
| 67 | obtain ⟨c, hc⟩ := relativeChainProjection_degree_surjective X ({x}ᶜ : Set X) n |
| 68 | (z : (LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X)).X n) |
| 69 | let j := (ComplexShape.down ℕ).next n |
| 70 | have hdc : (LocalHomology.Cycles.relativeChainProjection X ({x}ᶜ : Set X)).f j |
| 71 | ((LocalHomology.Cycles.integralSingularChains X).d n j c) = 0 := by |
| 72 | rw [projection_d, hc] |
| 73 | exact AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycle_d_eq_zero _ n j z |
| 74 | obtain ⟨U, hxU, hU⟩ := FiniteChainSeparation.Cycles.exists_open_relative_projection_eq_zero X x j |
| 75 | ((LocalHomology.Cycles.integralSingularChains X).d n j c) hdc |
| 76 | have hcycle : (LocalHomology.Cycles.relativeChainProjection X (U : Set X)ᶜ).f n c ∈ |
| 77 | AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n := by |
| 78 | change (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ).d n j |
| 79 | ((LocalHomology.Cycles.relativeChainProjection X (U : Set X)ᶜ).f n c) = 0 |
| 80 | rw [← projection_d] |
| 81 | exact hU |
| 82 | let zU : AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n := ⟨_, hcycle⟩ |
| 83 | have hzU : AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint X (U : Set X) x hxU) n zU = z := |
| 84 | Subtype.ext ((pointMap_projection_apply X (U : Set X) x hxU n c).trans hc) |
| 85 | refine ⟨(LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).germ U x hxU |
| 86 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n zU), ?_⟩ |
| 87 | calc |
| 88 | (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n) |
| 89 | ((LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).germ U x hxU |
| 90 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n zU)) = |
| 91 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X (U : Set X) x hxU n |
| 92 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n zU) := |
| 93 | ConcreteCategory.congr_hom (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint_germ X x n U hxU) _ |
| 94 | _ = AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X)) n |
| 95 | (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint X (U : Set X) x hxU) n zU) := |
| 96 | AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainClass_naturality _ n zU |
| 97 | _ = AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X)) n z := by rw [hzU] |
| 98 | |
| 99 | /-- A class becoming zero at the point becomes zero on a smaller neighborhood: |
| 100 | lift a bounding chain and shrink away from its finite relative error. -/ |
| 101 | theorem localHomologyStalkToPoint_injective (x : X) (n : ℕ) : |
| 102 | Function.Injective (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n) := by |
| 103 | change Function.Injective (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n).hom |
| 104 | apply (injective_iff_map_eq_zero (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n).hom).2 |
| 105 | intro y hy |
| 106 | obtain ⟨U, hxU, a, rfl⟩ := (LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).exists_germ_eq y |
| 107 | have ha : LocalHomologyPresheaf.Cycles.localHomologyToPoint X (U : Set X) x hxU n a = 0 := |
| 108 | (ConcreteCategory.congr_hom (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint_germ X x n U hxU) a).symm.trans hy |
| 109 | obtain ⟨z, rfl⟩ := AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_surjective (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n a |
| 110 | change (HomologicalComplex.homologyMap |
| 111 | (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint X (U : Set X) x hxU) n) |
| 112 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n z) = 0 at ha |
| 113 | rw [AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainClass_naturality] at ha |
| 114 | obtain ⟨b, hb⟩ := (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_eq_zero_iff_exists |
| 115 | (LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X)) n _).1 ha |
| 116 | change (LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X)).d (n + 1) n b = |
| 117 | (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint X (U : Set X) x hxU).f n |
| 118 | (z : (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ).X n) at hb |
| 119 | obtain ⟨c, hc⟩ := relativeChainProjection_degree_surjective X (U : Set X)ᶜ n |
| 120 | (z : (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ).X n) |
| 121 | obtain ⟨b', hb'⟩ := relativeChainProjection_degree_surjective X ({x}ᶜ : Set X) (n + 1) b |
| 122 | let e := (LocalHomology.Cycles.integralSingularChains X).d (n + 1) n b' - c |
| 123 | have hcpoint : (LocalHomology.Cycles.relativeChainProjection X ({x}ᶜ : Set X)).f n c = |
| 124 | (LocalHomologyPresheaf.Cycles.relativeComplementChainToPoint X (U : Set X) x hxU).f n |
| 125 | (z : (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ).X n) := by |
| 126 | rw [← pointMap_projection_apply X (U : Set X) x hxU n c, hc] |
| 127 | have he : (LocalHomology.Cycles.relativeChainProjection X ({x}ᶜ : Set X)).f n e = 0 := by |
| 128 | change (LocalHomology.Cycles.relativeChainProjection X ({x}ᶜ : Set X)).f n |
| 129 | ((LocalHomology.Cycles.integralSingularChains X).d (n + 1) n b' - c) = 0 |
| 130 | rw [map_sub, projection_d, hb', hb, hcpoint, sub_self] |
| 131 | obtain ⟨V, hxV, hVU, hV⟩ := |
| 132 | FiniteChainSeparation.Cycles.exists_open_relative_projection_eq_zero_within X x n e he U hxU |
| 133 | let r := LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X (show (V : Set X) ⊆ (U : Set X) from hVU) |
| 134 | have heq : (LocalHomology.Cycles.relativeChainProjection X (V : Set X)ᶜ).f n |
| 135 | ((LocalHomology.Cycles.integralSingularChains X).d (n + 1) n b') = |
| 136 | (LocalHomology.Cycles.relativeChainProjection X (V : Set X)ᶜ).f n c := by |
| 137 | apply sub_eq_zero.mp |
| 138 | simpa only [e, map_sub] using hV |
| 139 | have hbound : (LocalHomology.Cycles.relativeSingularChains X (V : Set X)ᶜ).d (n + 1) n |
| 140 | ((LocalHomology.Cycles.relativeChainProjection X (V : Set X)ᶜ).f (n + 1) b') = |
| 141 | r.f n (z : (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ).X n) := by |
| 142 | calc |
| 143 | _ = (LocalHomology.Cycles.relativeChainProjection X (V : Set X)ᶜ).f n |
| 144 | ((LocalHomology.Cycles.integralSingularChains X).d (n + 1) n b') := (projection_d X _ _ _ _).symm |
| 145 | _ = (LocalHomology.Cycles.relativeChainProjection X (V : Set X)ᶜ).f n c := heq |
| 146 | _ = r.f n ((LocalHomology.Cycles.relativeChainProjection X (U : Set X)ᶜ).f n c) := |
| 147 | (restriction_projection_apply X hVU n c).symm |
| 148 | _ = r.f n (z : (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ).X n) := by rw [hc] |
| 149 | have hzV : (HomologicalComplex.homologyMap r n) |
| 150 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n z) = 0 := by |
| 151 | rw [AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainClass_naturality] |
| 152 | exact (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_eq_zero_iff_exists _ n _).2 |
| 153 | ⟨(LocalHomology.Cycles.relativeChainProjection X (V : Set X)ᶜ).f (n + 1) b', hbound⟩ |
| 154 | have hgerm := (LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).germ_res_apply |
| 155 | (homOfLE hVU) x hxV (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n z) |
| 156 | change (LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).germ V x hxV |
| 157 | ((HomologicalComplex.homologyMap r n) |
| 158 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n z)) = |
| 159 | (LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).germ U x hxU |
| 160 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (LocalHomology.Cycles.relativeSingularChains X (U : Set X)ᶜ) n z) at hgerm |
| 161 | rw [hzV, map_zero] at hgerm |
| 162 | exact hgerm.symm |
| 163 | |
| 164 | /-- The canonical stalk comparison is an isomorphism for Hausdorff spaces. -/ |
| 165 | instance localHomologyStalkToPoint_isIso (x : X) (n : ℕ) : |
| 166 | IsIso (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n) := |
| 167 | (ConcreteCategory.isIso_iff_bijective _).2 |
| 168 | ⟨localHomologyStalkToPoint_injective X x n, localHomologyStalkToPoint_surjective X x n⟩ |
| 169 | |
| 170 | /-- The actual local-homology presheaf has the expected local relative groups as stalks. -/ |
| 171 | def localHomologyStalkIso (x : X) (n : ℕ) : |
| 172 | (LocalHomologyPresheaf.Cycles.localHomologyPresheaf X n).stalk x ≅ LocalHomology.Cycles.localSingularHomology X x n := |
| 173 | asIso (LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n) |
| 174 | |
| 175 | @[simp] |
| 176 | theorem localHomologyStalkIso_hom (x : X) (n : ℕ) : |
| 177 | (localHomologyStalkIso X x n).hom = LocalHomologyPresheaf.Cycles.localHomologyStalkToPoint X x n := rfl |
| 178 | |
| 179 | end |
| 180 | |
| 181 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyStalk.Cycles |