We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e649f2 commit a67b157Copy full SHA for a67b157
src/siggb/siggb.jl
@@ -242,3 +242,15 @@ function _homogenize(F::Vector{P}) where {P <: MPolyRingElem}
242
end
243
return res
244
245
+
246
+# test against msolve
247
+function _is_gb(gb::Vector{Tuple{Tuple{Int, P}, P}}) where {P <: MPolyRingElem}
248
+ gb_pols = [p[2] for p in gb]
249
+ gb_msolve = groebner_basis(Ideal(gb_pols), complete_reduction = true)
250
251
+ lms_gb = (Nemo.leading_monomial).(gb_pols)
252
+ lms_msolve = (Nemo.leading_monomial).(gb_msolve)
253
+ res1 = all(u -> any(v -> divides(u, v)[1], lms_gb), lms_msolve)
254
+ res2 = all(u -> any(v -> divides(u, v)[1], lms_msolve), lms_gb)
255
+ return res1 && res2
256
+end
0 commit comments