@@ -13,7 +13,7 @@ include("symbolic_pp.jl")
1313include (" linear_algebra.jl" )
1414
1515@doc Markdown. doc"""
16- sig_groebner_basis(sys::Vector{T}; info_level = 0, degbound = 0) where {T <: MPolyElem }
16+ sig_groebner_basis(sys::Vector{T}; info_level = 0, degbound = 0) where {T <: MPolyRingElem }
1717
1818Compute a Signature Gröbner basis of the sequence `sys` w.r.t. to the
1919degree reverse lexicographical monomial ordering and the degree
@@ -35,20 +35,20 @@ signature and the second the underlying polynomial.
3535julia> using AlgebraicSolving
3636
3737julia> R, vars = PolynomialRing(GF(17), ["x$i " for i in 1:4])
38- (Multivariate polynomial ring in 4 variables over GF(17), Nemo. fpMPolyRingElem[x1, x2, x3, x4])
38+ (Multivariate polynomial ring in 4 variables over GF(17), fpMPolyRingElem[x1, x2, x3, x4])
3939
4040julia> F = AlgebraicSolving.cyclic(R)
41- Nemo. fpMPolyRingElem[x1 + x2 + x3 + x4, x1*x2 + x1*x4 + x2*x3 + x3*x4, x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4, x1*x2*x3*x4 + 16]
41+ fpMPolyRingElem[x1 + x2 + x3 + x4, x1*x2 + x1*x4 + x2*x3 + x3*x4, x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4, x1*x2*x3*x4 + 16]
4242
4343julia> Fhom = AlgebraicSolving._homogenize(F.gens)
44- 4-element Vector{Nemo. fpMPolyRingElem}:
44+ 4-element Vector{fpMPolyRingElem}:
4545 x1 + x2 + x3 + x4
4646 x1*x2 + x2*x3 + x1*x4 + x3*x4
4747 x1*x2*x3 + x1*x2*x4 + x1*x3*x4 + x2*x3*x4
4848 x1*x2*x3*x4 + 16*x5^4
4949
5050julia> sig_groebner_basis(Fhom)
51- 7-element Vector{Tuple{Tuple{Int64, Nemo. fpMPolyRingElem}, Nemo. fpMPolyRingElem}}:
51+ 7-element Vector{Tuple{Tuple{Int64, fpMPolyRingElem}, fpMPolyRingElem}}:
5252 ((1, 1), x1 + x2 + x3 + x4)
5353 ((2, 1), x2^2 + 2*x2*x4 + x4^2)
5454 ((3, 1), x2*x3^2 + x3^2*x4 + 16*x2*x4^2 + 16*x4^3)
@@ -58,7 +58,7 @@ julia> sig_groebner_basis(Fhom)
5858 ((4, x2*x3), x3^2*x4^4 + x2*x3*x5^4 + 16*x2*x4*x5^4 + x3*x4*x5^4 + 15*x4^2*x5^4)
5959```
6060"""
61- function sig_groebner_basis (sys:: Vector{T} ; info_level:: Int = 0 , degbound:: Int = 0 ) where {T <: MPolyElem }
61+ function sig_groebner_basis (sys:: Vector{T} ; info_level:: Int = 0 , degbound:: Int = 0 ) where {T <: MPolyRingElem }
6262 R = first (sys). parent
6363 Rchar = characteristic (R)
6464
0 commit comments