Morphisms of affine schemes
Constructors
General constructors
SpecMor — MethodSpecMor(X::AbsSpec, Y::AbsSpec, f::Vector{<:RingElem}; check::Bool=true)This method constructs a morphism from the scheme $X$ to the scheme $Y$. For this one has to specify the images of the coordinates (the generators of ambient_coordinate_ring(Y)) under the pullback map $𝒪(Y) → 𝒪(X)$ as third argument.
Note that expensive checks can be turned off by setting check=false.
Examples
julia> X = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> Y = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> SpecMor(X, Y, gens(OO(X)));Special constructors
identity_map — Methodidentity_map(X::AbsSpec{<:Any, <:MPolyRing})This method constructs the identity morphism from an affine scheme to itself.
Examples
julia> X = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> identity_map(X);inclusion_morphism — Methodinclusion_morphism(X::AbsSpec, Y::AbsSpec; check::Bool=true)Return the inclusion map from $X$ to $Y$.
Examples
julia> X = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(X)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> Y = subscheme(X, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> f = inclusion_morphism(Y, X);
julia> I = kernel(pullback(f)) # this is a way to obtain the ideal ``I ⊆ O(X)`` cutting out ``Y`` from ``X``.
ideal(x1)
julia> base_ring(I) == OO(X)
truecompose — Methodcompose(f::AbsSpecMor, g::AbsSpecMor)This method computes the composition of two morphisms.
Examples
julia> X = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(X)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> Y = subscheme(X, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> m1 = inclusion_morphism(Y, X);
julia> m2 = identity_map(X);
julia> compose(m1, m2) == m1
truerestrict — Methodrestrict(f::SpecMor, U::AbsSpec, V::AbsSpec)This method restricts the domain of the morphism $f$ to $U$ and its codomain to $V$.
Examples
julia> X = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(X)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> Y = subscheme(X, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> restrict(identity_map(X), Y, Y) == identity_map(Y)
trueAttributes
General attributes
domain — Methoddomain(f::AbsSpecMor)On a morphism $f : X → Y$ of affine schemes, this returns $X$.
Examples
julia> Y = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(Y)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> X = subscheme(Y, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> f = inclusion_morphism(X, Y);
julia> domain(f)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generatorcodomain — Methodcodomain(f::AbsSpecMor)On a morphism $f : X → Y$ of affine schemes, this returns $Y$.
Examples
julia> Y = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(Y)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> X = subscheme(Y, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> f = inclusion_morphism(X, Y);
julia> codomain(f)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational fieldpullback — Methodpullback(f::AbsSpecMor)On a morphism $f : X → Y$ of affine schemes $X = Spec(S)$ and $Y = Spec(R)$, this returns the ring homomorphism $f^* : R → S$.
Examples
julia> Y = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(Y)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> X = subscheme(Y, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> pullback(inclusion_morphism(X, Y))
Map with following data
Domain:
=======
Multivariate polynomial ring in 3 variables over QQ
Codomain:
=========
Quotient of multivariate polynomial ring by ideal with 1 generatorgraph — Methodgraph(f::AbsSpecMor)Return the graph of $f : X → Y$ as a subscheme of $X×Y$ as well as the two projections to $X$ and $Y$.
Examples
julia> Y = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(Y)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> X = subscheme(Y, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> f = inclusion_morphism(X, Y);
julia> graph(f);Special attributes
In addition to the standard getters and methods for instances of SpecMor, we also have
image_ideal — Methodimage_ideal(f::ClosedEmbedding)For a closed embedding $f : X → Y$ of affine schemes $X = Spec(S)$ into $Y = Spec(R)$ such that $S ≅ R/I$ via $f$ for some ideal $I ⊂ R$ this returns $I$.
Undocumented
The following functions do exist but are currently undocumented:
underlying_morphism,complement_ideal,complement_scheme,preimage,inverse,- various type getters.
Properties
is_isomorphism — Methodis_isomorphism(f::AbsSpecMor)This method checks if a morphism is an isomorphism.
is_inverse_of — Methodis_inverse_of(f::AbsSpecMor, g::AbsSpecMor)This method checks if a morphism $f$ is the inverse of a morphism $g$.
is_identity_map — Methodis_identity_map(f::AbsSpecMor)This method checks if a morphism is the identity map.
Examples
julia> X = affine_space(QQ,3)
Affine space of dimension 3
with coordinates x1 x2 x3
over Rational field
julia> R = OO(X)
Multivariate polynomial ring in 3 variables x1, x2, x3
over rational field
julia> (x1,x2,x3) = gens(R)
3-element Vector{QQMPolyRingElem}:
x1
x2
x3
julia> Y = subscheme(X, x1)
Spec of Quotient of multivariate polynomial ring by ideal with 1 generator
julia> is_identity_map(inclusion_morphism(Y, X))
falseMethods
fiber_product — Methodfiber_product(f::SpecMor{SpecType, SpecType, <:Any}, g::SpecMor{SpecType, SpecType, <:Any}) where {SpecType<:StdSpec}For morphisms $f : Y → X$ and $g : Z → X$ return the fiber product $Y×Z$ over $X$ together with its two canonical projections.
product — Methodproduct(X::AbsSpec, Y::AbsSpec)Return a triple $(X×Y, p₁, p₂)$ consisting of the product $X×Y$ over the common base ring $𝕜$ and the two projections $p₁ : X×Y → X$ and $p₂ : X×Y → Y$.
simplify — Methodsimplify(X::AbsSpec{<:Field})Given an affine scheme $X$ with coordinate ring $R = 𝕜[x₁,…,xₙ]/I$ (or a localization thereof), use Singular's elimpart to try to eliminate variables $xᵢ$ to arrive at a simpler presentation $R ≅ R' = 𝕜[y₁,…,yₘ]/J$ for some ideal $J$; return a SimplifiedSpec $Y$ with $X$ as its original.
***Note:*** The ambient_coordinate_ring of the output Y will be different from the one of X and hence the two schemes will not compare using ==.