Skip to content

Commit

Permalink
More AbsWeilDivisor.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Oct 8, 2024
1 parent 929ddac commit 1e85bd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ function pushforward(Phi::MorphismFromRationalFunctions, D::AbsAlgebraicCycle)
error("not implemented")
end

function pushforward(Phi::MorphismFromRationalFunctions, D::WeilDivisor)
function pushforward(Phi::MorphismFromRationalFunctions, D::AbsWeilDivisor)
is_isomorphism(Phi) || error("method not implemented unless for the case of an isomorphism")
#is_proper(Phi) || error("morphism must be proper")
all(is_prime, components(D)) || error("divisor must be given in terms of irreducible components")
Expand Down
16 changes: 8 additions & 8 deletions src/AlgebraicGeometry/Schemes/Divisors/WeilDivisor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ underlying_cycle(D::AbsWeilDivisor) = underlying_cycle(underlying_divisor(D))
underlying_cycle(D::WeilDivisor) = D.C

### type getters
scheme_type(D::WeilDivisor{S, U, V}) where{S, U, V} = S
scheme_type(::Type{WeilDivisor{S, U, V}}) where{S, U, V} = S
coefficient_ring_type(D::WeilDivisor{S, U, V}) where{S, U, V} = U
coefficient_ring_type(::Type{WeilDivisor{S, U, V}}) where{S, U, V} = U
coefficient_type(D::WeilDivisor{S, U, V}) where{S, U, V} = V
coefficient_type(::Type{WeilDivisor{S, U, V}}) where{S, U, V} = V
scheme_type(D::AbsWeilDivisor{S, U}) where{S, U} = S
scheme_type(::Type{AbsWeilDivisor{S, U}}) where{S, U} = S
coefficient_ring_type(D::AbsWeilDivisor{S, U}) where{S, U} = U
coefficient_ring_type(::Type{AbsWeilDivisor{S, U}}) where{S, U} = U
coefficient_type(D::AbsWeilDivisor{S, U}) where{S, U} = elem_type(U)
coefficient_type(::Type{AbsWeilDivisor{S, U}}) where{S, U} = elem_type(U)

@doc raw"""
WeilDivisor(X::CoveredScheme, R::Ring)
Expand Down Expand Up @@ -352,7 +352,7 @@ function intersect(D::AbsWeilDivisor, E::AbsWeilDivisor;
end


function pushforward(inc::CoveredClosedEmbedding, W::WeilDivisor)
function pushforward(inc::CoveredClosedEmbedding, W::AbsWeilDivisor)
X = domain(inc)
Y = codomain(inc)
X === ambient_scheme(W) || error("divisor not defined on the domain")
Expand Down Expand Up @@ -420,7 +420,7 @@ end


@doc raw"""
is_in_linear_system(f::VarietyFunctionFieldElem, D::WeilDivisor; regular_on_complement::Bool=true, check::Bool=true) -> Bool
is_in_linear_system(f::VarietyFunctionFieldElem, D::AbsWeilDivisor; regular_on_complement::Bool=true, check::Bool=true) -> Bool
Return whether the rational function `f` is in the linear system ``|D|``, i.e. if $(f) + D \geq 0$.
Expand Down

0 comments on commit 1e85bd3

Please sign in to comment.