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.PELModuli.IntegralModel.ProductGeometry |
| 2 | import OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe |
| 3 | import Mathlib.AlgebraicTopology.SingularHomology.HomologyZero |
| 4 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 5 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 6 | |
| 7 | /-! # Product Dimensions -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.ProductDimensions |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | The actual Künneth theorem gives the dimension of H¹ of a finite product. |
| 15 | Together with the already proved splitting, this proves bijectivity of the |
| 16 | canonical sum of projection pullbacks. Connectedness and finiteness are |
| 17 | ordinary geometric/topological properties, not comparison assumptions. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | open _root_.CategoryTheory.MonoidalCategory |
| 22 | open scoped DirectSum TensorProduct |
| 23 | |
| 24 | open OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe.Construction.CohomologyDecomposition |
| 25 | |
| 26 | def bettiIso {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} (e : X ≅ Y) (n : ℕ) : |
| 27 | Product.bettiQ Y n ≃ₗ[ℚ] Product.bettiQ X n := |
| 28 | ((Betti.Scheme.schemeBettiFunctor (ModuleCat.of ℚ ℚ) n).mapIso e.op).toLinearEquiv |
| 29 | |
| 30 | theorem betti_finite_of_iso {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} (e : X ≅ Y) (n : ℕ) |
| 31 | [FiniteDimensional ℚ (Product.bettiQ Y n)] : FiniteDimensional ℚ (Product.bettiQ X n) := |
| 32 | Module.Finite.of_surjective (bettiIso e n).toLinearMap (bettiIso e n).surjective |
| 33 | |
| 34 | def h0HomologyEquiv (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 35 | [PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] : |
| 36 | (OAI.AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := ℚ) (Betti.Scheme.schemePointSpace X)).homology 0 ≃ₗ[ℚ] ℚ := by |
| 37 | let : PathConnectedSpace (Betti.Scheme.schemePointSpace X) := |
| 38 | inferInstanceAs (PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) |
| 39 | exact (asIso ((Betti.Scheme.schemePointSpace X).singularHomology₀ε |
| 40 | (C := ModuleCat.{0} ℚ) (ModuleCat.of ℚ ℚ))).toLinearEquiv |
| 41 | |
| 42 | theorem betti_zero_finite (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 43 | [PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] : FiniteDimensional ℚ (Product.bettiQ X 0) := by |
| 44 | let : FiniteDimensional ℚ |
| 45 | ((OAI.AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := ℚ) (Betti.Scheme.schemePointSpace X)).homology 0) := |
| 46 | Module.Finite.of_injective (h0HomologyEquiv X).toLinearMap (h0HomologyEquiv X).injective |
| 47 | exact Module.Finite.of_injective |
| 48 | (OAI.AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv (F := ℚ) (Betti.Scheme.schemePointSpace X) 0).toLinearMap |
| 49 | (OAI.AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv (F := ℚ) (Betti.Scheme.schemePointSpace X) 0).injective |
| 50 | |
| 51 | theorem betti_zero_finrank (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 52 | [PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] : Module.finrank ℚ (Product.bettiQ X 0) = 1 := by |
| 53 | let : FiniteDimensional ℚ |
| 54 | ((OAI.AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := ℚ) (Betti.Scheme.schemePointSpace X)).homology 0) := |
| 55 | Module.Finite.of_injective (h0HomologyEquiv X).toLinearMap (h0HomologyEquiv X).injective |
| 56 | rw [(OAI.AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv (F := ℚ) (Betti.Scheme.schemePointSpace X) 0).finrank_eq, |
| 57 | Subspace.dual_finrank_eq, (h0HomologyEquiv X).finrank_eq] |
| 58 | exact Module.finrank_self ℚ |
| 59 | |
| 60 | def tensorKunnethEquiv (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 61 | [∀ n, FiniteDimensional ℚ (Product.bettiQ X n)] |
| 62 | [∀ n, FiniteDimensional ℚ (Product.bettiQ Y n)] (n : ℕ) : |
| 63 | OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe.Construction.CohomologyDecomposition.CohomologySum (k := ℚ) (Betti.Scheme.schemePointSpace X) (Betti.Scheme.schemePointSpace Y) n ≃ₗ[ℚ] |
| 64 | Product.bettiQ (X ⊗ Y) n := by |
| 65 | let : ∀ m, FiniteDimensional ℚ |
| 66 | ((OAI.AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := ℚ) (Betti.Scheme.schemePointSpace X)).homology m) := fun m => |
| 67 | OAI.AlgebraicTopology.Kunneth.ProjectiveFinitenessLe.Construction.ProjectiveFiniteness.finite_homology_of_finite_cohomology (Betti.Scheme.schemePointSpace X) m |
| 68 | let : ∀ m, FiniteDimensional ℚ |
| 69 | ((OAI.AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := ℚ) (Betti.Scheme.schemePointSpace Y)).homology m) := fun m => |
| 70 | OAI.AlgebraicTopology.Kunneth.ProjectiveFinitenessLe.Construction.ProjectiveFiniteness.finite_homology_of_finite_cohomology (Betti.Scheme.schemePointSpace Y) m |
| 71 | exact (OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe.Construction.CohomologyDecomposition.cohomologyKunnethEquiv (Betti.Scheme.schemePointSpace X) (Betti.Scheme.schemePointSpace Y) n).trans |
| 72 | (((OAI.AlgebraicTopology.Cohomology.Singular.Functor.singularCohomologyFunctor (ModuleCat.of ℚ ℚ) n).mapIso |
| 73 | (TopCat.isoOfHomeo (AbelianVariety.AnalyticGroup.Constructions.ExteriorCohomology.schemePointProductHomeomorph X Y)).op).toLinearEquiv) |
| 74 | |
| 75 | theorem tensorBetti_finite (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 76 | [∀ n, FiniteDimensional ℚ (Product.bettiQ X n)] |
| 77 | [∀ n, FiniteDimensional ℚ (Product.bettiQ Y n)] (n : ℕ) : |
| 78 | FiniteDimensional ℚ (Product.bettiQ (X ⊗ Y) n) := |
| 79 | Module.Finite.of_surjective (tensorKunnethEquiv X Y n).toLinearMap |
| 80 | (tensorKunnethEquiv X Y n).surjective |
| 81 | |
| 82 | theorem tensorBetti_one_finrank (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 83 | [∀ n, FiniteDimensional ℚ (Product.bettiQ X n)] |
| 84 | [∀ n, FiniteDimensional ℚ (Product.bettiQ Y n)] |
| 85 | [PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)] [PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints Y)] : |
| 86 | Module.finrank ℚ (Product.bettiQ (X ⊗ Y) 1) = |
| 87 | Module.finrank ℚ (Product.bettiQ X 1) + Module.finrank ℚ (Product.bettiQ Y 1) := by |
| 88 | rw [← (tensorKunnethEquiv X Y 1).finrank_eq] |
| 89 | unfold OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe.Construction.CohomologyDecomposition.CohomologySum |
| 90 | rw [Module.finrank_directSum] |
| 91 | simp only [Module.finrank_tensorProduct] |
| 92 | rw [← Equiv.sum_comp (OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe.Construction.CohomologyDecomposition.degreePairsEquiv 1)] |
| 93 | simp [OAI.AlgebraicTopology.Kunneth.CohomologyTensorNe.Construction.CohomologyDecomposition.degreePairsEquiv, Fin.sum_univ_succ] |
| 94 | change Module.finrank ℚ (Product.bettiQ X 0) * Module.finrank ℚ (Product.bettiQ Y 1) + |
| 95 | Module.finrank ℚ (Product.bettiQ X 1) * Module.finrank ℚ (Product.bettiQ Y 0) = _ |
| 96 | rw [betti_zero_finrank, betti_zero_finrank] |
| 97 | omega |
| 98 | |
| 99 | theorem unitBetti_subsingleton (n : ℕ) (hn : n ≠ 0) : |
| 100 | Subsingleton (Product.bettiQ (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase)) n) := by |
| 101 | let : Subsingleton (Betti.Scheme.schemePointSpace (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase))) := |
| 102 | inferInstanceAs (Subsingleton (Over.mk (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) ⟶ 𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase))) |
| 103 | exact ModuleCat.subsingleton_of_isZero |
| 104 | (OAI.AlgebraicTopology.Cohomology.Singular.Contractible.isZero_singularCohomology_of_totallyDisconnected (ModuleCat.of ℚ ℚ) |
| 105 | (Betti.Scheme.schemePointSpace (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase))) n hn) |
| 106 | |
| 107 | theorem unitBetti_finite (n : ℕ) : FiniteDimensional ℚ (Product.bettiQ (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase)) n) := by |
| 108 | by_cases hn : n = 0 |
| 109 | · subst n |
| 110 | let : PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase))) := |
| 111 | ProductGeometry.unitPoints_pathConnected |
| 112 | exact betti_zero_finite _ |
| 113 | · let : Subsingleton (Product.bettiQ (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase)) n) := unitBetti_subsingleton n hn |
| 114 | infer_instance |
| 115 | |
| 116 | theorem piBetti_finite (n : ℕ) (X : Fin n → Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 117 | [∀ i m, FiniteDimensional ℚ (Product.bettiQ (X i) m)] : |
| 118 | ∀ m, FiniteDimensional ℚ (Product.bettiQ (∏ᶜ X) m) := by |
| 119 | induction n with |
| 120 | | zero => |
| 121 | intro m |
| 122 | let : FiniteDimensional ℚ (Product.bettiQ (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase)) m) := unitBetti_finite m |
| 123 | exact betti_finite_of_iso (ProductGeometry.piZeroIso X) m |
| 124 | | succ n ih => |
| 125 | let : ∀ m, FiniteDimensional ℚ (Product.bettiQ (∏ᶜ (fun i : Fin n => X i.succ)) m) := |
| 126 | ih (fun i => X i.succ) |
| 127 | intro m |
| 128 | let : FiniteDimensional ℚ (Product.bettiQ (X 0 ⊗ ∏ᶜ (fun i : Fin n => X i.succ)) m) := |
| 129 | tensorBetti_finite _ _ m |
| 130 | exact betti_finite_of_iso (ProductGeometry.piSuccIso X) m |
| 131 | |
| 132 | theorem piBetti_one_finrank (n : ℕ) (X : Fin n → Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 133 | [∀ i m, FiniteDimensional ℚ (Product.bettiQ (X i) m)] |
| 134 | [∀ i, PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (X i))] : |
| 135 | Module.finrank ℚ (Product.bettiQ (∏ᶜ X) 1) = |
| 136 | ∑ i, Module.finrank ℚ (Product.bettiQ (X i) 1) := by |
| 137 | induction n with |
| 138 | | zero => |
| 139 | let : Subsingleton (Product.bettiQ (𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase)) 1) := unitBetti_subsingleton 1 (by decide) |
| 140 | rw [← (bettiIso (ProductGeometry.piZeroIso X) 1).finrank_eq] |
| 141 | simp [Module.finrank_zero_of_subsingleton] |
| 142 | | succ n ih => |
| 143 | let : ∀ m, FiniteDimensional ℚ (Product.bettiQ (∏ᶜ (fun i : Fin n => X i.succ)) m) := |
| 144 | piBetti_finite n (fun i => X i.succ) |
| 145 | let : PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (∏ᶜ (fun i : Fin n => X i.succ))) := |
| 146 | ProductGeometry.piPoints_pathConnected n (fun i => X i.succ) |
| 147 | rw [← (bettiIso (ProductGeometry.piSuccIso X) 1).finrank_eq, tensorBetti_one_finrank, |
| 148 | ih (fun i => X i.succ), Fin.sum_univ_succ] |
| 149 | |
| 150 | /-- The canonical degree-one projection-sum map is a genuine isomorphism. -/ |
| 151 | theorem ProductBetti.projectionSum_bijective {r : ℕ} |
| 152 | (A : Fin r → CommGrp (Over Foundations.Scheme.ProjectiveSpace.complexBase)) |
| 153 | [∀ i m, FiniteDimensional ℚ (Product.bettiQ (A i).X m)] |
| 154 | [∀ i, PathConnectedSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (A i).X)] : |
| 155 | Function.Bijective (Product.ProductBetti.projectionSum A 1) := by |
| 156 | let : FiniteDimensional ℚ (Product.bettiQ (Product.ProductBetti.scheme A) 1) := |
| 157 | piBetti_finite r (fun i => (A i).X) 1 |
| 158 | have hdim : Module.finrank ℚ (∀ i, Product.bettiQ (A i).X 1) = |
| 159 | Module.finrank ℚ (Product.bettiQ (Product.ProductBetti.scheme A) 1) := by |
| 160 | rw [Module.finrank_pi_fintype, piBetti_one_finrank] |
| 161 | have hinj := Product.ProductBetti.projectionSum_injective A 1 (by decide) |
| 162 | exact ⟨hinj, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mp hinj⟩ |
| 163 | |
| 164 | end |
| 165 | |
| 166 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.ProductDimensions |