Quotient modules
AbstractAlgebra allows the construction of quotient modules/spaces of AbstractAlgebra modules over euclidean domains. These are given as the quotient of a module by a submodule of that module.
We define two quotient modules to be equal if they are quotients of the same module $M$ by two equal submodules.
As well as implementing the entire Module interface, AbstractAlgebra submodules also provide the following interface.
Constructors
AbstractAlgebra.quo
— Method.quo(m::Module{T}, N::Module{T}) where T <: RingElement
Return the quotient
Q
of the modulem
by the submoduleN
ofm
, and a map which is a lift of elements ofQ
tom
.
Note that a preimage of the canonical projection can be obtained using the preimage function described in the section on module homomorphisms. Note that a preimage element of the canonical projection is not unique and has no special properties.
Examples
julia> M = FreeModule(ZZ, 2)
Free module of rank 2 over Integers
julia> m = M([ZZ(1), ZZ(2)])
(1, 2)
julia> N, f = sub(M, [m])
(Submodule over Integers with 1 generator and no relations
, Module homomorphism with
Domain: Submodule over Integers with 1 generator and no relations
Codomain: Free module of rank 2 over Integers)
julia> Q, g = quo(M, N)
(Quotient module over Integers with 1 generator and no relations
, Module homomorphism with
Domain: Free module of rank 2 over Integers
Codomain: Quotient module over Integers with 1 generator and no relations
)
julia> p = M([ZZ(3), ZZ(1)])
(3, 1)
julia> v2 = g(p)
(-5)
julia> V = VectorSpace(QQ, 2)
Vector space of dimension 2 over Rationals
julia> m = V([QQ(1), QQ(2)])
(1//1, 2//1)
julia> N, f = sub(V, [m])
(Subspace over Rationals with 1 generator and no relations
, Module homomorphism with
Domain: Subspace over Rationals with 1 generator and no relations
Codomain: Vector space of dimension 2 over Rationals)
julia> Q, g = quo(V, N)
(Quotient space over:
Rationals with 1 generator and no relations
, Module homomorphism with
Domain: Vector space of dimension 2 over Rationals
Codomain: Quotient space over:
Rationals with 1 generator and no relations
)
Functionality for submodules
In addition to the Module interface, AbstractAlgebra submodules implement the following functionality.
Basic manipulation
AbstractAlgebra.Generic.supermodule
— Method.supermodule(M::QuotientModule{T}) where T <: RingElement
Return the module that this module is a quotient of.
AbstractAlgebra.Generic.dim
— Method.dim(N::AbstractAlgebra.Generic.QuotientModule{T}) where T <: FieldElement
Return the dimension of the given vector quotient space.
Examples
julia> M = FreeModule(ZZ, 2)
Free module of rank 2 over Integers
julia> m = M([ZZ(2), ZZ(3)])
(2, 3)
julia> N, g = sub(M, [m])
(Submodule over Integers with 1 generator and no relations
, Module homomorphism with
Domain: Submodule over Integers with 1 generator and no relations
Codomain: Free module of rank 2 over Integers)
julia> Q, h = quo(M, N)
(Quotient module over Integers with 2 generators and relations:
[2 3], Module homomorphism with
Domain: Free module of rank 2 over Integers
Codomain: Quotient module over Integers with 2 generators and relations:
[2 3])
julia> supermodule(Q) == M
true
julia> V = VectorSpace(QQ, 2)
Vector space of dimension 2 over Rationals
julia> m = V([QQ(1), QQ(2)])
(1//1, 2//1)
julia> N, f = sub(V, [m])
(Subspace over Rationals with 1 generator and no relations
, Module homomorphism with
Domain: Subspace over Rationals with 1 generator and no relations
Codomain: Vector space of dimension 2 over Rationals)
julia> Q, g = quo(V, N)
(Quotient space over:
Rationals with 1 generator and no relations
, Module homomorphism with
Domain: Vector space of dimension 2 over Rationals
Codomain: Quotient space over:
Rationals with 1 generator and no relations
)
julia> dim(V)
2
julia> dim(Q)
1