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.AlgebraicTopology.Cohomology.Singular.UniversalCoefficient |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 3 | import Mathlib.LinearAlgebra.Isomorphisms |
| 4 | import Mathlib.LinearAlgebra.FiniteDimensional.Defs |
| 5 | import Mathlib.LinearAlgebra.Dual.Basis |
| 6 | |
| 7 | /-! # Duality -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.Coefficient.Duality.CM |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Universal coefficients with vector-valued coefficients |
| 15 | |
| 16 | The actual evaluation map identifies cohomology with linear maps out of |
| 17 | homology over a field. Coefficients may be any vector space, including an |
| 18 | extension field of infinite degree. This is a step toward coefficient |
| 19 | extension for the CM theorem's actual singular cohomology. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory |
| 23 | |
| 24 | variable {F : Type} [Field F] |
| 25 | |
| 26 | /-- A vector-valued linear map vanishing on a kernel factors through the map. |
| 27 | The map on the image extends to the whole target by extending a basis. -/ |
| 28 | theorem linearMapFactors_of_vanishesOnKernel |
| 29 | {V W M : Type} [AddCommGroup V] [Module F V] [AddCommGroup W] [Module F W] |
| 30 | [AddCommGroup M] [Module F M] |
| 31 | (f : V →ₗ[F] W) (φ : V →ₗ[F] M) |
| 32 | (hφ : ∀ v : V, f v = 0 → φ v = 0) : |
| 33 | ∃ ψ : W →ₗ[F] M, ψ.comp f = φ := by |
| 34 | let q : V ⧸ LinearMap.ker f →ₗ[F] M := |
| 35 | (LinearMap.ker f).liftQ φ hφ |
| 36 | let r : LinearMap.range f →ₗ[F] M := q.comp f.quotKerEquivRange.symm.toLinearMap |
| 37 | obtain ⟨ψ, hψ⟩ := r.exists_extend |
| 38 | refine ⟨ψ, ?_⟩ |
| 39 | ext v |
| 40 | have hv := LinearMap.congr_fun hψ (f.rangeRestrict v) |
| 41 | change ψ (f v) = q (f.quotKerEquivRange.symm ⟨f v, _⟩) at hv |
| 42 | rw [LinearMap.quotKerEquivRange_symm_apply_image] at hv |
| 43 | exact hv |
| 44 | |
| 45 | /-- A vector-valued cocycle which evaluates to zero on every cycle is a coboundary. |
| 46 | This uses the actual chain and cochain complexes in every degree, including zero. -/ |
| 47 | theorem cochainClass_eq_zero_of_vanishesOnCycles_withCoefficients |
| 48 | (K : SSet.{0}) (M : ModuleCat.{0} F) (n : ℕ) |
| 49 | (c : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M) n) |
| 50 | (hc : ∀ z : AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K) n, |
| 51 | AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n c.val z.val = 0) : |
| 52 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M) n c = 0 := by |
| 53 | let C := AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K |
| 54 | let D := AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M |
| 55 | let φ : C.X n →ₗ[F] M := AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n c.val |
| 56 | obtain ⟨ψ, hψ⟩ := linearMapFactors_of_vanishesOnKernel (C.sc n).g.hom φ |
| 57 | (fun z hz => hc ⟨z, hz⟩) |
| 58 | let p : (D.sc n).X₁ := |
| 59 | (AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M ((ComplexShape.up ℕ).prev n)).symm ψ |
| 60 | have hp : (D.sc n).f p = (c : D.X n) := by |
| 61 | apply (AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n).injective |
| 62 | change AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n |
| 63 | (D.d ((ComplexShape.up ℕ).prev n) n p) = φ |
| 64 | rw [AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv_d] |
| 65 | have he : AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M |
| 66 | ((ComplexShape.up ℕ).prev n) p = ψ := |
| 67 | (AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M |
| 68 | ((ComplexShape.up ℕ).prev n)).apply_symm_apply ψ |
| 69 | rw [he] |
| 70 | exact hψ |
| 71 | apply (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_zero_iff D n c).mpr |
| 72 | exact ⟨p, Subtype.ext hp⟩ |
| 73 | |
| 74 | /-- Every linear map on actual scalar homology is evaluation by a vector-valued cocycle. |
| 75 | The necessary extension from the cycle subspace is proved by mathlib's basis extension. -/ |
| 76 | theorem exists_cocycle_realizing_homologyMap (K : SSet.{0}) (M : ModuleCat.{0} F) (n : ℕ) |
| 77 | (L : (AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K).homology n →ₗ[F] M) : |
| 78 | ∃ c : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M) n, |
| 79 | ∀ z : AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles (AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K) n, |
| 80 | AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n c.val z.val = |
| 81 | L (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass (AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K) n z) := by |
| 82 | let C := AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K |
| 83 | let D := AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M |
| 84 | obtain ⟨φ, hφ⟩ := (L.comp (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n)).exists_extend |
| 85 | let c : D.X n := (AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n).symm φ |
| 86 | have hbound : φ.comp (C.sc n).f.hom = 0 := by |
| 87 | ext z |
| 88 | have hz := LinearMap.congr_fun hφ (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainBoundaryMap C n z) |
| 89 | change φ ((C.sc n).f z) = L (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainBoundaryMap C n z)) at hz |
| 90 | rw [AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_boundary, map_zero] at hz |
| 91 | change φ ((C.sc n).f z) = 0 |
| 92 | exact hz |
| 93 | have hc : c ∈ AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles D n := by |
| 94 | change (D.d n ((ComplexShape.up ℕ).next n)) c = 0 |
| 95 | apply (AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M ((ComplexShape.up ℕ).next n)).injective |
| 96 | rw [AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv_d, map_zero] |
| 97 | have he : AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n c = φ := |
| 98 | (AlgebraicTopology.Cohomology.Singular.ChainDual.degreewiseChainDualEquiv K M n).apply_symm_apply φ |
| 99 | rw [he] |
| 100 | exact hbound |
| 101 | refine ⟨⟨c, hc⟩, fun z => ?_⟩ |
| 102 | have hz := LinearMap.congr_fun hφ z |
| 103 | simpa only [c, LinearEquiv.apply_symm_apply, LinearMap.comp_apply, |
| 104 | Submodule.subtype_apply] using hz |
| 105 | |
| 106 | /-- Over a field, two cohomology classes are equal whenever their canonical |
| 107 | evaluations on all homology classes agree. -/ |
| 108 | theorem simplicialEvaluationWithCoefficients_injective (K : SSet.{0}) (M : ModuleCat.{0} F) (n : ℕ) : |
| 109 | Function.Injective (AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation K M n) := by |
| 110 | intro a b hab |
| 111 | let C := AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K |
| 112 | let D := AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M |
| 113 | have hzero : AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation K M n (a - b) = 0 := by |
| 114 | rw [map_sub, hab, sub_self] |
| 115 | obtain ⟨c, hc⟩ := AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_surjective D n (a - b) |
| 116 | have hc0 : AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass D n c = 0 := by |
| 117 | apply cochainClass_eq_zero_of_vanishesOnCycles_withCoefficients K M n c |
| 118 | intro z |
| 119 | have hz : AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation K M n |
| 120 | (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass D n c) (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n z) = 0 := by |
| 121 | rw [hc, hzero] |
| 122 | rfl |
| 123 | exact (AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation_class_class K M n c z).symm.trans hz |
| 124 | exact sub_eq_zero.mp (hc.symm.trans hc0) |
| 125 | |
| 126 | /-- Every linear map on homology is canonical evaluation by a |
| 127 | cohomology class when the coefficient ring is a field. -/ |
| 128 | theorem simplicialEvaluationWithCoefficients_surjective (K : SSet.{0}) (M : ModuleCat.{0} F) (n : ℕ) : |
| 129 | Function.Surjective (AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation K M n) := by |
| 130 | intro L |
| 131 | obtain ⟨c, hc⟩ := exists_cocycle_realizing_homologyMap K M n L |
| 132 | refine ⟨AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M) n c, ?_⟩ |
| 133 | ext h |
| 134 | obtain ⟨z, rfl⟩ := AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_surjective (AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K) n h |
| 135 | rw [AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation_class_class] |
| 136 | exact hc z |
| 137 | |
| 138 | /-- Universal-coefficient duality with arbitrary vector-space coefficients. -/ |
| 139 | def simplicialEvaluationWithCoefficientsEquiv (K : SSet.{0}) |
| 140 | (M : ModuleCat.{0} F) (n : ℕ) : |
| 141 | (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains K M).homology n ≃ₗ[F] |
| 142 | ((AlgebraicTopology.Cohomology.Singular.ChainDual.simplicialScalarChains (R := F) K).homology n →ₗ[F] M) := |
| 143 | LinearEquiv.ofBijective (AlgebraicTopology.Cohomology.Singular.Evaluation.simplicialHomologyEvaluation K M n) |
| 144 | ⟨simplicialEvaluationWithCoefficients_injective K M n, |
| 145 | simplicialEvaluationWithCoefficients_surjective K M n⟩ |
| 146 | |
| 147 | /-- The forward map is the existing evaluation on genuine singular chains. -/ |
| 148 | def singularEvaluationWithCoefficientsEquiv (M : ModuleCat.{0} F) |
| 149 | (X : TopCat.{0}) (n : ℕ) : |
| 150 | AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology M X n ≃ₗ[F] |
| 151 | ((AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := F) X).homology n →ₗ[F] M) := |
| 152 | simplicialEvaluationWithCoefficientsEquiv (TopCat.toSSet.obj X) M n |
| 153 | |
| 154 | @[simp] |
| 155 | theorem singularEvaluationWithCoefficientsEquiv_apply (M : ModuleCat.{0} F) |
| 156 | (X : TopCat.{0}) (n : ℕ) (c : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology M X n) : |
| 157 | singularEvaluationWithCoefficientsEquiv M X n c = |
| 158 | AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation M X n c := rfl |
| 159 | |
| 160 | /-- Finite-dimensional scalar cohomology forces finite-dimensional homology. |
| 161 | This follows from actual evaluation duality, without a finite-chain model. -/ |
| 162 | theorem finite_homology_of_finite_cohomology (X : TopCat.{0}) (n : ℕ) |
| 163 | [Module.Finite F (AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of F F) X n)] : |
| 164 | Module.Finite F ((AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := F) X).homology n) := by |
| 165 | let : Module.Finite F (Module.Dual F |
| 166 | ((AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := F) X).homology n)) := |
| 167 | Module.Finite.of_surjective (AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv X n).toLinearMap |
| 168 | (AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv X n).surjective |
| 169 | exact (Module.finite_dual_iff F).mp inferInstance |
| 170 | |
| 171 | /-- A finite homology basis expands every class with arbitrary vector-valued |
| 172 | coefficients as a sum of actual changes of coefficients of scalar classes. -/ |
| 173 | theorem coefficient_expansion_in_homology_basis (M : ModuleCat.{0} F) |
| 174 | (X : TopCat.{0}) (n : ℕ) {ι : Type} [Fintype ι] |
| 175 | (b : Module.Basis ι F ((AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := F) X).homology n)) |
| 176 | (c : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology M X n) : |
| 177 | c = ∑ i, AlgebraicTopology.Cohomology.Singular.Coefficients.coefficientMap |
| 178 | (ModuleCat.ofHom (LinearMap.toSpanSingleton F M |
| 179 | (AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation M X n c (b i)))) X n |
| 180 | ((AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv X n).symm (b.coord i)) := by |
| 181 | apply (singularEvaluationWithCoefficientsEquiv M X n).injective |
| 182 | ext z |
| 183 | change AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation M X n c z = _ |
| 184 | simp only [map_sum, singularEvaluationWithCoefficientsEquiv_apply, |
| 185 | LinearMap.sum_apply, AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularEvaluation_coefficient] |
| 186 | have he (i : ι) : AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation (ModuleCat.of F F) X n |
| 187 | ((AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv X n).symm (b.coord i)) = b.coord i := |
| 188 | (AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv X n).apply_symm_apply (b.coord i) |
| 189 | simp only [he] |
| 190 | change AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation M X n c z = |
| 191 | ∑ i, b.coord i z • AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation M X n c (b i) |
| 192 | have hz := congrArg (AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation M X n c) (b.sum_repr z) |
| 193 | simpa only [map_sum, map_smul, Module.Basis.coord_apply] using hz.symm |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI.AlgebraicGeometry.ComplexMultiplication.Coefficient.Duality.CM |