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.RelativeChainSupport |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf |
| 3 | import Mathlib.LinearAlgebra.Finsupp.Supported |
| 4 | import Mathlib.LinearAlgebra.Isomorphisms |
| 5 | |
| 6 | /-! # Relative Chain Coefficients -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeChainCoefficients.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Coefficients of relative singular chains with support |
| 14 | |
| 15 | The actual relative group `C_n(X, X ∖ K; ℤ)` is freely generated by the |
| 16 | global singular simplices whose images meet `K`. Its coefficient module is |
| 17 | realized as a supported submodule on the fixed set of all global simplices. |
| 18 | The quotient projection and restriction to a smaller support set are the |
| 19 | corresponding coefficient truncations. No condition on `K` is required. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 23 | open scoped Simplicial Classical |
| 24 | |
| 25 | set_option backward.isDefEq.respectTransparency false |
| 26 | set_option backward.isDefEq.respectTransparency.types false |
| 27 | |
| 28 | variable (X : TopCat.{0}) (K : Set X) (n : ℕ) |
| 29 | |
| 30 | /-- Keep precisely the coefficients of global singular simplices meeting `K`. -/ |
| 31 | def relativeChainCoefficientTruncation : |
| 32 | (LocalHomology.Cycles.integralSingularChains X).X n →ₗ[ℤ] |
| 33 | Finsupp.supported ℤ ℤ |
| 34 | {σ | (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty} := by |
| 35 | classical |
| 36 | exact (Finsupp.restrictDom ℤ ℤ _).comp |
| 37 | (LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n).toLinearMap |
| 38 | |
| 39 | theorem relativeChainCoefficientTruncation_apply |
| 40 | (c : (LocalHomology.Cycles.integralSingularChains X).X n) |
| 41 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : |
| 42 | (relativeChainCoefficientTruncation X K n c).val σ = |
| 43 | if (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty then |
| 44 | LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n c σ else 0 := by |
| 45 | classical |
| 46 | rfl |
| 47 | |
| 48 | /-- Every supported coefficient function is the truncation of an ordinary chain. -/ |
| 49 | theorem relativeChainCoefficientTruncation_surjective : |
| 50 | Function.Surjective (relativeChainCoefficientTruncation X K n) := by |
| 51 | classical |
| 52 | intro c |
| 53 | refine ⟨(LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n).symm c.val, ?_⟩ |
| 54 | change Finsupp.restrictDom ℤ ℤ _ |
| 55 | (LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n |
| 56 | ((LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n).symm c.val)) = c |
| 57 | rw [LinearEquiv.apply_symm_apply] |
| 58 | exact LinearMap.congr_fun (Finsupp.restrictDom_comp_subtype _) c |
| 59 | |
| 60 | /-- Truncation vanishes exactly on chains supported in the complement. -/ |
| 61 | theorem relativeChainCoefficientTruncation_eq_zero_iff |
| 62 | (c : (LocalHomology.Cycles.integralSingularChains X).X n) : |
| 63 | relativeChainCoefficientTruncation X K n c = 0 ↔ |
| 64 | ∀ σ, LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n c σ ≠ 0 → |
| 65 | LocallyFiniteChains.Cycles.singularSimplexImage X n σ ⊆ Kᶜ := by |
| 66 | classical |
| 67 | constructor |
| 68 | · intro hc σ hσ x hx hxK |
| 69 | have he := congrArg |
| 70 | (fun d : Finsupp.supported ℤ ℤ |
| 71 | {σ | (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty} => d.val σ) hc |
| 72 | have hm : (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty := ⟨x, hx, hxK⟩ |
| 73 | rw [relativeChainCoefficientTruncation_apply, ite_eq_left hm] at he |
| 74 | exact hσ he |
| 75 | · intro hc |
| 76 | apply Subtype.ext |
| 77 | apply Finsupp.ext |
| 78 | intro σ |
| 79 | change (relativeChainCoefficientTruncation X K n c).val σ = 0 |
| 80 | rw [relativeChainCoefficientTruncation_apply] |
| 81 | split_ifs with hσ |
| 82 | · by_contra hne |
| 83 | obtain ⟨x, hx, hxK⟩ := hσ |
| 84 | exact hc σ hne hx hxK |
| 85 | · rfl |
| 86 | |
| 87 | /-- The genuine quotient projection and coefficient truncation have the same kernel. -/ |
| 88 | theorem relativeChainProjection_ker_eq_coefficientTruncation : |
| 89 | LinearMap.ker ((LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n).hom = |
| 90 | LinearMap.ker (relativeChainCoefficientTruncation X K n) := by |
| 91 | ext c |
| 92 | change (LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n c = 0 ↔ |
| 93 | relativeChainCoefficientTruncation X K n c = 0 |
| 94 | rw [RelativeChainSupport.Cycles.relativeChainProjection_eq_zero_iff_supported, |
| 95 | relativeChainCoefficientTruncation_eq_zero_iff] |
| 96 | |
| 97 | private theorem projection_surjective : |
| 98 | Function.Surjective ((LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n) := |
| 99 | (ModuleCat.epi_iff_surjective _).1 |
| 100 | (LocalHomology.Cycles.relativeChainSequence_degreewiseShortExact X Kᶜ n).epi_g |
| 101 | |
| 102 | /-- Actual relative singular chains identified with finite global coefficients |
| 103 | supported on simplices whose images meet `K`. -/ |
| 104 | def relativeChainCoefficients : |
| 105 | (LocalHomology.Cycles.relativeSingularChains X Kᶜ).X n ≃ₗ[ℤ] |
| 106 | Finsupp.supported ℤ ℤ |
| 107 | {σ | (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty} := |
| 108 | ((((LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n).hom.quotKerEquivOfSurjective |
| 109 | (projection_surjective X K n)).symm.trans |
| 110 | (Submodule.quotEquivOfEq _ _ |
| 111 | (relativeChainProjection_ker_eq_coefficientTruncation X K n))).trans |
| 112 | ((relativeChainCoefficientTruncation X K n).quotKerEquivOfSurjective |
| 113 | (relativeChainCoefficientTruncation_surjective X K n)) |
| 114 | |
| 115 | /-- The relative quotient projection is precisely coefficient truncation. -/ |
| 116 | theorem relativeChainCoefficients_projection |
| 117 | (c : (LocalHomology.Cycles.integralSingularChains X).X n) : |
| 118 | relativeChainCoefficients X K n ((LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n c) = |
| 119 | relativeChainCoefficientTruncation X K n c := by |
| 120 | simp only [relativeChainCoefficients, LinearEquiv.trans_apply, |
| 121 | LinearMap.quotKerEquivOfSurjective_symm_apply, Submodule.quotEquivOfEq_mk, |
| 122 | LinearMap.quotKerEquivOfSurjective_apply_mk] |
| 123 | |
| 124 | /-- The coefficient of a projected chain is unchanged exactly when its simplex meets `K`. -/ |
| 125 | theorem relativeChainCoefficients_projection_apply |
| 126 | (c : (LocalHomology.Cycles.integralSingularChains X).X n) |
| 127 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : |
| 128 | (relativeChainCoefficients X K n |
| 129 | ((LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n c)).val σ = |
| 130 | if (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty then |
| 131 | LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n c σ else 0 := by |
| 132 | classical |
| 133 | rw [relativeChainCoefficients_projection, relativeChainCoefficientTruncation_apply] |
| 134 | |
| 135 | /-- The inverse equivalence projects the ordinary chain with those same coefficients. -/ |
| 136 | theorem relativeChainCoefficients_symm_apply |
| 137 | (c : Finsupp.supported ℤ ℤ |
| 138 | {σ | (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty}) : |
| 139 | (relativeChainCoefficients X K n).symm c = |
| 140 | (LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n |
| 141 | ((LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n).symm c.val) := by |
| 142 | classical |
| 143 | apply (relativeChainCoefficients X K n).injective |
| 144 | rw [LinearEquiv.apply_symm_apply, relativeChainCoefficients_projection] |
| 145 | change c = Finsupp.restrictDom ℤ ℤ _ |
| 146 | (LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n |
| 147 | ((LocallyFiniteCompact.Cycles.ordinarySingularChainCoefficients ℤ X n).symm c.val)) |
| 148 | rw [LinearEquiv.apply_symm_apply] |
| 149 | exact (LinearMap.congr_fun (Finsupp.restrictDom_comp_subtype _) c).symm |
| 150 | |
| 151 | variable {K} {L : Set X} |
| 152 | |
| 153 | /-- Restricting the support set truncates the relative coefficients once more. -/ |
| 154 | theorem relativeChainCoefficients_restriction_apply |
| 155 | (hKL : K ⊆ L) (c : (LocalHomology.Cycles.relativeSingularChains X Lᶜ).X n) |
| 156 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) : |
| 157 | (relativeChainCoefficients X K n |
| 158 | ((LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL).f n c)).val σ = |
| 159 | if (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty then |
| 160 | (relativeChainCoefficients X L n c).val σ else 0 := by |
| 161 | classical |
| 162 | obtain ⟨a, rfl⟩ := projection_surjective X L n c |
| 163 | have hproj := ConcreteCategory.congr_hom |
| 164 | (HomologicalComplex.congr_hom |
| 165 | (LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_projection X hKL) n) a |
| 166 | change (LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL).f n |
| 167 | ((LocalHomology.Cycles.relativeChainProjection X Lᶜ).f n a) = |
| 168 | (LocalHomology.Cycles.relativeChainProjection X Kᶜ).f n a at hproj |
| 169 | rw [hproj, relativeChainCoefficients_projection_apply, |
| 170 | relativeChainCoefficients_projection_apply] |
| 171 | by_cases hσ : (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty |
| 172 | · have hσL : (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ L).Nonempty := by |
| 173 | obtain ⟨x, hx, hxK⟩ := hσ |
| 174 | exact ⟨x, hx, hKL hxK⟩ |
| 175 | simp only [ite_eq_left hσ, ite_eq_left hσL] |
| 176 | · simp only [ite_eq_right hσ] |
| 177 | |
| 178 | /-- On every simplex meeting the smaller set, support restriction preserves its coefficient. -/ |
| 179 | theorem relativeChainCoefficients_restriction_of_meets |
| 180 | (hKL : K ⊆ L) (c : (LocalHomology.Cycles.relativeSingularChains X Lᶜ).X n) |
| 181 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) |
| 182 | (hσ : (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty) : |
| 183 | (relativeChainCoefficients X K n |
| 184 | ((LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL).f n c)).val σ = |
| 185 | (relativeChainCoefficients X L n c).val σ := by |
| 186 | rw [relativeChainCoefficients_restriction_apply, ite_eq_left hσ] |
| 187 | |
| 188 | /-- Support restriction as equality of supported coefficient functions. -/ |
| 189 | theorem relativeChainCoefficients_restriction |
| 190 | (hKL : K ⊆ L) (c : (LocalHomology.Cycles.relativeSingularChains X Lᶜ).X n) : |
| 191 | relativeChainCoefficients X K n |
| 192 | ((LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL).f n c) = |
| 193 | Finsupp.restrictDom ℤ ℤ |
| 194 | {σ | (LocallyFiniteChains.Cycles.singularSimplexImage X n σ ∩ K).Nonempty} |
| 195 | (relativeChainCoefficients X L n c).val := by |
| 196 | classical |
| 197 | apply Subtype.ext |
| 198 | apply Finsupp.ext |
| 199 | intro σ |
| 200 | exact relativeChainCoefficients_restriction_apply X n hKL c σ |
| 201 | |
| 202 | end |
| 203 | |
| 204 | end OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeChainCoefficients.Cycles |