It is a common goal in algebraic geometry to resolve singularities. Certainly, toric varieties and their subvarieties are no exception and we provide a growing set of functionality for such tasks.
We focus on toric blowups given by a star subdivision of a polyhedral fan along a primitive vector, see 11.1 Star Subdivisions in [CLS11].
Given a homogeneous ideal I in the Cox ring of X, it is also possible to reroute to covered schemes and construct the blowup by blow_up(ideal_sheaf(X, I)). Strict transforms (and similarly total transforms) of ideal sheaves J can be computed by strict_transform(phi, J). Ideal sheaves on toric varieties are currently (30 Jan 2025) considered experimental.
The main constructor returns the toric blowup induced by the star subdivision of the polyhedral fan along a primitive vector in the support of the fan (see 11.1 Star Subdivisions in [CLS11]):
Star subdivide the fan Σ of the toric variety X along the primitive vector r in the support of Σ (Section 11.1 Star Subdivisions in [CLS11]). This function returns the corresponding morphism.
By default, we pick "e" as the name of the homogeneous coordinate for the exceptional prime divisor. As optional argument one can supply a custom variable name.
Examples
julia> X = projective_space(NormalToricVariety, 3)
Normal toric variety
julia> phi = blow_up(X, [0, 2, 3])
Toric blowup morphism
julia> Y = domain(phi)
Normal toric variety
julia> cox_ring(Y)
Multivariate polynomial ring in 5 variables over QQ graded by
x1 -> [1 0]
x2 -> [1 2]
x3 -> [1 3]
x4 -> [1 0]
e -> [0 -1]
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.
The blowup along the n-th (nonzero) cone in the fan of the variety X is the morphism induced by the star subdivision along the barycenter of the cone (the primitive generator of the sum of its rays):
Blow up the toric variety X with polyhedral fan Σ by star subdivision along the barycenter of the n-th cone σ in the list of all the cones of Σ. We remind that the barycenter of a nonzero cone is the primitive generator of the sum of the primitive generators of the extremal rays of the cone (Exercise 11.1.10 in [CLS11]). In the case all the cones of Σ containing σ are smooth, this coincides with the star subdivision of Σ relative to σ (Definition 3.3.17 of [CLS11]). This function returns the corresponding morphism.
By default, we pick "e" as the name of the homogeneous coordinate for the exceptional prime divisor. As third optional argument one can supply a custom variable name.
Examples
julia> X = projective_space(NormalToricVariety, 3)
Normal toric variety
julia> phi = blow_up(X, 5)
Toric blowup morphism
julia> Y = domain(phi)
Normal toric variety
julia> cox_ring(Y)
Multivariate polynomial ring in 5 variables over QQ graded by
x1 -> [1 0]
x2 -> [0 1]
x3 -> [0 1]
x4 -> [1 0]
e -> [1 -1]
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.
Let φ:Y→X be the toric blowup corresponding to a star subdivision along a primitive vector r in the support of the fan of X. This function returns the minimal supercone coordinate vector of r (the output of minimal_supercone_coordinates(polyhedral_fan(X), r)).
Return the exceptional prime Weil divisor (as a toric divisor) of the ray used to construct the toric blowup. Note that this divisor need not be Cartier and this divisor need not coincide with the locus where the morphism is not an isomorphism.
Examples
julia> X = projective_space(NormalToricVariety, 3)
Normal toric variety
julia> phi = blow_up(X, [0, 2, 3])
Toric blowup morphism
julia> E = exceptional_prime_divisor(phi)
Torus-invariant, prime divisor on a normal toric variety
julia> is_cartier(E)
false
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.
Let φ:Y→X be the toric blowup corresponding to a star subdivision along a primitive vector in the support of the fan of X. Let R and S be the Cox rings of X and Y, respectively. Here "strict transform" means the "scheme-theoretic closure of the complement of the exceptional divisor in the scheme-theoretic inverse image". This function returns a homogeneous ideal (or a polynomial generating a principal ideal) in S corresponding to the strict transform under φ of the closed subscheme of X defined by the homogeneous ideal I (or by the homogeneous principal ideal generated by f) in R.
This is implemented under the following assumption:
the variety X has no torus factors (meaning the rays span NR).
Note
Computing strict_transform(phi, f) is faster than computing strict_transform(phi, ideal(f))[1] since it avoids creating an ideal.
Examples
julia> X = affine_space(NormalToricVariety, 2)
Normal toric variety
julia> phi = blow_up(X, [2, 3])
Toric blowup morphism
julia> R = cox_ring(X)
Multivariate polynomial ring in 2 variables over QQ graded by the trivial group
julia> (x1, x2) = gens(R)
2-element Vector{MPolyDecRingElem{QQFieldElem, QQMPolyRingElem}}:
x1
x2
julia> I = ideal(R, [x1 + x2])
Ideal generated by
x1 + x2
julia> strict_transform(phi, I)
Ideal generated by
x1 + x2*e
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.
Return the pair (J,k), where J coincides with strict_transform(phi, I) (or with strict_transform(phi, f)) and where k is the multiplicity of the total transform along the exceptional prime divisor.
This is implemented under the following assumptions:
the variety X has no torus factors (meaning the rays span NR), and
the variety X is smooth.
Note
If the multiplicity k is not needed, we recommend to use strict_transform(phi, I) which is typically faster.
Note
Computing strict_transform_with_index(phi, f) is faster than computing strict_transform_with_index(phi, ideal(f)) since it avoids creating an ideal.
Examples
julia> X = affine_space(NormalToricVariety, 2)
Normal toric variety
julia> phi = blow_up(X, [2, 3])
Toric blowup morphism
julia> R = cox_ring(X)
Multivariate polynomial ring in 2 variables over QQ graded by the trivial group
julia> (x1, x2) = gens(R)
2-element Vector{MPolyDecRingElem{QQFieldElem, QQMPolyRingElem}}:
x1
x2
julia> I = ideal(R, [x1 + x2])
Ideal generated by
x1 + x2
julia> strict_transform_with_index(phi, I)
(Ideal (x1 + x2*e), 2)
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.
Let φ:Y→X be the toric blowup corresponding to a star subdivision along a primitive vector in the support of the fan of X. Let R and S be the Cox rings of X and Y, respectively. Here "total transform" means the "scheme-theoretic inverse image". This function returns a homogeneous ideal (or a polynomial generating a principal ideal) in S corresponding to the total transform under φ of the closed subscheme of X defined by the homogeneous ideal I (or by the homogeneous principal ideal generated by f) in R.
This is implemented under the following assumptions:
the variety X has no torus factors (meaning the rays span NR), and
the variety X is an orbifold (meaning its fan is simplicial).
Note
Computing total_transform(phi, f) is faster than computing total_transform(phi, ideal(f))[1] since it avoids creating an ideal.
Examples
julia> X = affine_space(NormalToricVariety, 2)
Normal toric variety
julia> phi = blow_up(X, [2, 3])
Toric blowup morphism
julia> R = cox_ring(X)
Multivariate polynomial ring in 2 variables over QQ graded by the trivial group
julia> (x1, x2) = gens(R)
2-element Vector{MPolyDecRingElem{QQFieldElem, QQMPolyRingElem}}:
x1
x2
julia> I = ideal(R, [x1 + x2])
Ideal generated by
x1 + x2
julia> total_transform(phi, I)
Ideal generated by
x1*e^2 + x2*e^3
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.
The above functions are implemented using a C-module homomorphism between the Cox rings, considered as C-modules, that takes homogeneous ideals to homogeneous ideals:
Let φ:Y→X be the toric blowup corresponding to a star subdivision along a primitive vector r in the support of the fan of X. Let R and S be the Cox rings of X and Y, respectively. Let ρ be the ray generated by r. Considering R and S with their C-module structures, we construct a C-module homomorphism Φ:R→S sending a monomial g to edg, where e is the variable corresponding to ρ and where d=0 if ρ belongs to the fan of X and d=⌈a⋅p⌉ otherwise, where a is the exponent vector of g, p is the minimal supercone coordinate vector of r in the fan of X, as returned by minimal_supercone_coordinates_of_exceptional_ray(X, r), and where (⋅) denotes the scalar product.
The C-module homomorphism Φ sends homogeneous ideals to homogeneous ideals.
Examples
julia> X = affine_space(NormalToricVariety, 2)
Normal toric variety
julia> phi = blow_up(X, [2, 3])
Toric blowup morphism
julia> R = cox_ring(X)
Multivariate polynomial ring in 2 variables over QQ graded by the trivial group
julia> (x1, x2) = gens(R)
2-element Vector{MPolyDecRingElem{QQFieldElem, QQMPolyRingElem}}:
x1
x2
julia> cox_ring_module_homomorphism(phi, x1 + x2)
x1*e^2 + x2*e^3
Experimental
This function is part of the experimental code in Oscar. Please read here for more details.