The package StrictlyPositiveCert implements Algorithm 4 in (Shang et
al. 2025), which computes certificates of strictly positive polynomials
over basic semialgebraic sets associated a set of generators
Use the make command at the root of the project to produce the maple
library file StrictlyPositiveCert.mla. Then, load the
StrictlyPositiveCert package by
adding the following two lines at the beginning of your maple file:
libname := libname, "<PATH-TO-STRICTLYPOSITIVECERT>/StrictlyPositiveCert.mla":
with(StrictlyPositiveCert):
When built with -DENABLE_DEBUGGING (for example,
make DEBUG_MODE=-DENABLE_DEBUGGING), the library prints its source branch
when loaded with with(StrictlyPositiveCert). The branch name and debug
setting are saved in the .mla; rebuild the library to change them.
The command spCertificate has the following inputs:
f: Denotes the input polynomialbasis: This is a list of polynomials (generators) in the free variablexx: Denotes the free variable of the ring of univariate polynomial
The directory tests contains benchmarks and examples reported in
(Shang et al. 2025).
For a simple example, we can execute
libname := libname, "../StrictlyPositiveCert.mla":
with(StrictlyPositiveCert);
spCertificates(x+1, [-x^2], x);
The output is
> libname := libname, "../StrictlyPositiveCert.mla":
> with(StrictlyPositiveCert);
[bound_info, dot_product, findEps, spCertificates]
> spCertificates(x+1, [-x^2], x);
2
[x + 1 + 9/10 x , 9/10]
We can verify
Shang, Weifeng, Chenqi Mou, Jose Abel Castellanos Joo, and Deepak Kapur. 2025. Computing Certificates of Strictly Positive Polynomials in Archimedean Quadratic Modules. https://arxiv.org/abs/2503.11119.