Complex points of a scheme with the analytic topology, and rational Betti numbers
DefinitionFiniteFields_BettiNumbersThis file provides the objects needed to state the Betti number part of the Weil conjectures: the complex points of a scheme over a ring, with their classical (analytic) topology, and the rational Betti numbers of a topological space.
- Projective space over a ring. For a commutative ring and , (polynomial ring graded by total degree), with its structure morphism .
- Projectivity. A scheme is projective over if there are and a closed immersion over .
- Complex points. For a ring homomorphism , is the set of morphisms with , i.e. the -points of .
- Analytic topology. For an affine open , a section and an open , let
where is the value of at . These sets generate the topology of . For locally of finite type over this is the classical complex topology: on each it is induced by for generators of . 5. Rational homology and Betti numbers. For a topological space , is singular homology with rational coefficients, and
Formalization Note is Mathlib's Module.finrank, which is when is infinite-dimensional; statements using it assert finite-dimensionality separately. Singular homology is Mathlib's singularHomologyFunctor with coefficients . Schemes live in universe .
import Mathlib
/-!
Complex points of a scheme over a ring `R` along a ring map `σ : R → ℂ`, with their analytic
(complex) topology, and the rational Betti numbers of a topological space; together with
projective space `ℙ^N_R` over a commutative ring and projectivity over `R`.
* `ComplexPoints σ π` is the set of morphisms `Spec ℂ ⟶ Y` lying over `Spec σ : Spec ℂ ⟶ Spec R`,
i.e. the `ℂ`-points of the base change `Y ×_R ℂ`.
* Its topology is generated by the sets `{x | x ∈ U(ℂ) and s(x) ∈ V}` for `U ⊆ Y` an affine open,
`s ∈ Γ(Y, U)` and `V ⊆ ℂ` open. For `Y` locally of finite type over `R` this is the classical
(analytic) topology: on `U(ℂ)` it is induced by the embedding `x ↦ (s₁(x), …, s_m(x)) ∈ ℂ^m`
given by generators of `Γ(Y, U)`, and each `U(ℂ)` is open.
* `bettiNumber i T` is `dim_ℚ H_i(T; ℚ)`, singular homology with rational coefficients (Mathlib's
`AlgebraicTopology.singularHomologyFunctor`); it equals `dim_ℚ H^i(T; ℚ)` whenever finite.
-/
namespace FiniteFields.Betti
open AlgebraicGeometry CategoryTheory
attribute [local instance] MvPolynomial.gradedAlgebra
section Projective
variable (R : Type) [CommRing R]
/-- Projective `N`-space over a commutative ring `R`: `ℙ^N_R = Proj R[x₀, …, x_N]`, the
polynomial ring graded by total degree. -/
noncomputable abbrev projectiveSpaceOver (N : ℕ) : Scheme :=
Proj (MvPolynomial.homogeneousSubmodule (Fin (N + 1)) R)
/-- The structure morphism `ℙ^N_R ⟶ Spec R`. -/
noncomputable def projectiveSpaceOver.toSpec (N : ℕ) : projectiveSpaceOver R N ⟶ Spec (.of R) :=
Proj.toSpecZero (MvPolynomial.homogeneousSubmodule (Fin (N + 1)) R) ≫
Spec.map (CommRingCat.ofHom
(algebraMap R (MvPolynomial.homogeneousSubmodule (Fin (N + 1)) R 0)))
/-- An `R`-scheme `π : Y ⟶ Spec R` is projective if there is a closed immersion `Y ⟶ ℙ^N_R`
over `Spec R` for some `N`. -/
def IsProjectiveOverRing {Y : Scheme} (π : Y ⟶ Spec (.of R)) : Prop :=
∃ (N : ℕ) (i : Y ⟶ projectiveSpaceOver R N),
IsClosedImmersion i ∧ i ≫ projectiveSpaceOver.toSpec R N = π
end Projective
section ComplexPoints
variable {R : Type} [CommRing R] (σ : R →+* ℂ) {Y : Scheme.{0}} (π : Y ⟶ Spec (.of R))
/-- The complex points of `Y` along `σ : R → ℂ`: morphisms `Spec ℂ ⟶ Y` over `Spec σ`. -/
def ComplexPoints : Type :=
{x : Spec (.of ℂ) ⟶ Y // x ≫ π = Spec.map (CommRingCat.ofHom σ)}
/-- The subbasic set of complex points lying in the open `U` at which the section `s ∈ Γ(Y, U)`
takes a value in `V ⊆ ℂ`. -/
def ComplexPoints.basicSet (U : Y.Opens) (s : Γ(Y, U)) (V : Set ℂ) : Set (ComplexPoints σ π) :=
{x | ∃ h : ⊤ ≤ x.1 ⁻¹ᵁ U,
(Scheme.ΓSpecIso (CommRingCat.of ℂ)).hom ((x.1.appLE U ⊤ h) s) ∈ V}
/-- The analytic topology on complex points, generated by the sets `basicSet U s V` for `U`
affine open, `s ∈ Γ(Y, U)` and `V ⊆ ℂ` open. -/
instance : TopologicalSpace (ComplexPoints σ π) :=
TopologicalSpace.generateFrom
{S | ∃ (U : Y.Opens) (_ : IsAffineOpen U) (s : Γ(Y, U)) (V : Set ℂ),
IsOpen V ∧ S = ComplexPoints.basicSet σ π U s V}
end ComplexPoints
section Betti
/-- Rational singular homology `H_i(T; ℚ)` of a topological space, as a `ℚ`-module. -/
noncomputable def rationalHomology (i : ℕ) (T : Type) [TopologicalSpace T] : ModuleCat.{0} ℚ :=
((AlgebraicTopology.singularHomologyFunctor (ModuleCat.{0} ℚ) i).obj
(ModuleCat.of ℚ ℚ)).obj (TopCat.of T)
/-- The `i`-th Betti number `b_i(T) = dim_ℚ H_i(T; ℚ)` (`0` if infinite-dimensional). -/
noncomputable def bettiNumber (i : ℕ) (T : Type) [TopologicalSpace T] : ℕ :=
Module.finrank ℚ (rationalHomology i T)
end Betti
end FiniteFields.Betti