Skip to content

Add is_finitely_generated for FPModules and fix is_noetherian #2127

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
21 changes: 21 additions & 0 deletions src/Module.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ function check_parent(M::FPModule{T}, N::FPModule{T}) where T <: RingElement
end

is_finite(M::FPModule{<:FinFieldElem}) = true
is_finitely_generated(M::FPModule) = true
is_finitely_generated(M::Module) = isfinite(ngens(M)) || throw(NotImplementedError(:is_finitely_generated, M))

@doc raw"""
is_noetherian(M::Module)

Check if the module $M$ is Noetherian. This is currently implemented only for finitely generated modules
in which case it is sufficient to check whether the base ring is Noetherian.

# Examples
```jldoctest
julia> R, x = polynomial_ring(ZZ, [:x]);

julia> M = free_module(R, 2)
Free module of rank 2 over R

julia> is_noetherian(M)
true
```
"""
is_noetherian(M::Module) = (is_noetherian(base_ring(M)) && is_finitely_generated(M)) || throw(NotImplementedError(:is_noetherian, M))

function is_sub_with_data(M::FPModule{T}, N::FPModule{T}) where T <: RingElement
fl = is_submodule(N, M)
Expand Down
1 change: 0 additions & 1 deletion src/Rings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ is_noetherian(::Integers) = true
is_noetherian(R::Union{PolyRing, MPolyRing, LaurentPolyRing, LaurentMPolyRing}) = is_noetherian(coefficient_ring(R))
is_noetherian(R::Union{MSeriesRing, SeriesRing}) = is_noetherian(base_ring(R))
is_noetherian(R::ResidueRing) = is_noetherian(base_ring(R)) || throw(NotImplementedError(:is_noetherian, R))
is_noetherian(M::Module) = is_noetherian(base_ring(M)) || throw(NotImplementedError(:is_noetherian, M))

@doc raw"""
krull_dim(R::Ring)
Expand Down
1 change: 1 addition & 0 deletions src/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export is_even
export is_exact_type
export is_finite
export is_finite_order
export is_finitely_generated
export is_free
export is_gen
export is_hermitian
Expand Down
Loading