[Paper Review] An implementation of CAD in Maple utilising McCallum projection
This paper presents a full implementation of McCallum's CADW algorithm in Maple, utilizing his improved projection operator with delineating polynomials to produce order-invariant cylindrical algebraic decompositions. It is the only complete implementation of CADW, enabling solutions to problems where other tools like Qepcad fail due to nullification issues, and supports minimal CADs for specialized applications.
Cylindrical algebraic decomposition (CAD) is an important tool for the investigation of semi-algebraic sets. Originally introduced by Collins in the 1970s for use in quantifier elimination it has since found numerous applications within algebraic geometry and beyond. Following from his original work in 1988, McCallum presented an improved algorithm, CADW, which offered a huge increase in the practical utility of CAD. In 2009 a team based at the University of Western Ontario presented a new and quite separate algorithm for CAD, which was implemented and included in the computer algebra system Maple. As part of a wider project at Bath investigating CAD and its applications, Collins and McCallum's CAD algorithms have been implemented in Maple. This report details these implementations and compares them to Qepcad and the Ontario algorithm. The implementations were originally undertaken to facilitate research into the connections between the algorithms. However, the ability of the code to guarantee order-invariant output has led to its use in new research on CADs which are minimal for certain problems. In addition, the implementation described here is of interest as the only full implementation of CADW, (since Qepcad does not currently make use of McCallum's delineating polynomials), and hence can solve problems not admissible to other CAD implementations.
Motivation & Objective
- To implement McCallum’s CADW algorithm in Maple, providing a full, working version of his improved projection operator with delineating polynomials.
- To enable research into the structural and algorithmic connections between different CAD computation approaches, particularly between projection-lifting and regular chains methods.
- To support new applications requiring order-invariant CADs, such as minimal decompositions for specific logical problems.
- To address limitations in existing tools like Qepcad, which do not implement McCallum’s delineating polynomials and may fail on certain inputs.
- To provide a reliable, extensible CAD framework in Maple for both research and practical use, with support for customizable variable ordering and output control.
Proposed method
- Adapt McCallum’s 1988 CADW algorithm for implementation in Maple, using the same projection operator based on the theory of delineability and minimal delineating polynomials.
- Integrate the use of Brown’s minimal delineating polynomials to ensure order-invariance in the final CAD output, a key feature for advanced applications.
- Implement a full projection-lifting pipeline in Maple, with support for variable ordering, cell construction, and stack formation over each cell.
- Enable user control over output type, including the option to enforce order-invariance even when not strictly required by the input polynomials.
- Compare the implementation (PCAD) with Qepcad (QCAD) and the RegularChains-based CAD (TCAD) on a suite of benchmark problems to evaluate performance and correctness.
- Handle cases of nullification during lifting by allowing continuation of computation, avoiding premature failure when safe to proceed.
Experimental results
Research questions
- RQ1Can McCallum’s CADW algorithm be fully and correctly implemented in Maple, including the use of delineating polynomials to ensure order-invariance?
- RQ2Are there problems for which Qepcad fails due to nullification issues but the new Maple implementation of CADW can still succeed?
- RQ3To what extent does the order-invariant output of the implementation support new applications, such as minimal CADs for specific logical problems?
- RQ4How does the performance of the new Maple-based CADW implementation compare to Qepcad and the RegularChains CAD in terms of cell count and computation time?
- RQ5Can the implementation be extended to incorporate further improvements, such as the Brown-McCallum operator, to reduce cell counts and improve efficiency?
Key findings
- The implementation is the only full, working version of McCallum’s CADW algorithm, as Qepcad does not implement his delineating polynomials.
- For the Whitney umbrella and x-axis ellipse problem, the implementation successfully computes CADs where Qepcad fails due to nullification, demonstrating its robustness.
- In the x-axis ellipse problem, the Maple implementation produced 20,225 cells, matching Qepcad’s output, while Qepcad reported failure due to nullification.
- The implementation correctly computes 23 cells for the example $f = zy - x^2$ when order-invariance is enforced, compared to 21 cells in sign-invariant mode.
- On average, Qepcad outperforms the Maple implementation in terms of speed and cell count, but the Maple version is essential for problems where Qepcad fails.
- The implementation supports the generation of minimal CADs for specific problems, as required in recent research, due to its guaranteed order-invariance and correct handling of delineating polynomials.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.