Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup and tests for covered schemes. #1632

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion experimental/Schemes/AffineSchemes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ base_ring_type(X::AbsSpec) = base_ring_type(typeof(X))
base_ring_elem_type(::Type{SpecType}) where {BRT, RT, SpecType<:AbsSpec{BRT, RT}} = elem_type(BRT)
base_ring_elem_type(X::AbsSpec) = base_ring_elem_type(typeof(X))

poly_type(::Type{SpecType}) where {BRT, RT<:MPolyRing, SpecType<:AbsSpec{BRT, RT}} = elem_type(RT)
poly_type(::Type{SpecType}) where {BRT, T, RT<:MPolyQuo{T}, SpecType<:AbsSpec{BRT, RT}} = T
poly_type(::Type{SpecType}) where {BRT, T, RT<:MPolyLocalizedRing{<:Any, <:Any, <:Any, T}, SpecType<:AbsSpec{BRT, RT}} = T
poly_type(::Type{SpecType}) where {BRT, T, RT<:MPolyQuoLocalizedRing{<:Any, <:Any, <:Any, T}, SpecType<:AbsSpec{BRT, RT}} = T
poly_type(X::AbsSpec) = poly_type(typeof(X))


### generically derived getters
@Markdown.doc """
base_ring(X::AbsSpec)
Expand Down Expand Up @@ -1035,7 +1042,17 @@ end

strict_modulus(X::Spec) = saturated_ideal(modulus(OO(X)))

function simplify(X::Spec)
@Markdown.doc """
simplify(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
the triple ``(Y, f, g)`` where ``Y = Spec(R')`` and ``f : Y ↔ X : g``
are the identifying isomorphisms.
"""
function simplify(X::AbsSpec{<:Field})
L, f, g = simplify(OO(X))
Y = Spec(L)
YtoX = SpecMor(Y, X, f)
Expand Down
Loading