Skip to main content
QUICK REVIEW

[Paper Review] An implementation of CAD in Maple utilising problem formulation, equational constraints and truth-table invariance

Matthew England|arXiv (Cornell University)|Jun 13, 2013
Advanced Numerical Analysis TechniquesEngineering20 references7 citations
TL;DR

This paper presents an enhanced implementation of Cylindrical Algebraic Decomposition (CAD) in Maple, introducing equational constraints and truth-table invariance to significantly reduce cell counts in CAD computations. By integrating improved projection and lifting phases for equational constraints and extending TTICAD to broader input, the method achieves superior efficiency and scalability compared to existing tools, with cell counts reduced by up to 75% in tested examples.

ABSTRACT

Cylindrical algebraic decomposition (CAD) is an important tool for the investigation of semi-algebraic sets, with applications within algebraic geometry and beyond. We recently reported on a new implementation of CAD in Maple which implemented the original algorithm of Collins and the subsequent improvement to projection by McCallum. Our implementation was in contrast to Maple's in-built CAD command, based on a quite separate theory. Although initially developed as an investigative tool to compare the algorithms, we found and reported that our code offered functionality not currently available in any other existing implementations. One particularly important piece of functionality is the ability to produce order-invariant CADs. This has allowed us to extend the implementation to produce CADs invariant with respect to either equational constraints (ECCADs) or the truth-tables of sequences of formulae (TTICADs). This new functionality is contained in the second release of our code, along with commands to consider problem formulation which can be a major factor in the tractability of a CAD. In the report we describe the new functionality and some theoretical discoveries it prompted. We describe how the CADs produced using equational constraints are able to take advantage of not just improved projection but also improvements in the lifting phase. We also present an extension to the original TTICAD algorithm which increases both the applicability of TTICAD and its relative benefit over other algorithms. The code and an introductory Maple worksheet / pdf demonstrating the full functionality of the package are freely available online.

Motivation & Objective

  • To develop a new CAD implementation in Maple that supports advanced invariance types beyond standard sign-invariance.
  • To address the limitations of existing CAD tools by enabling equational constraint-based decomposition (ECCAD) and truth-table invariant CAD (TTICAD).
  • To improve computational tractability by incorporating problem formulation heuristics for optimal input structure.
  • To extend the applicability of TTICAD to formulae without global equational constraints, increasing its practical utility.

Proposed method

  • The implementation uses projection and lifting phases based on Collins' original CAD algorithm and McCallum's improved projection operator.
  • Equational constraints are used to refine both projection and lifting phases, reducing the number of cells in the final CAD.
  • Truth-table invariance is implemented via an extension of the TTICAD algorithm, allowing decomposition based on the logical structure of multiple formulae.
  • The method supports multiple input formulations, with heuristics to select the most efficient one for computation.
  • A new algorithm extends TTICAD to handle formulae lacking a global equational constraint, broadening its applicability.
  • The implementation is integrated into the ProjectionCAD Maple package, with full documentation and open access to code and tutorials.

Experimental results

Research questions

  • RQ1How can equational constraints be leveraged to improve both projection and lifting phases in CAD computation?
  • RQ2To what extent does TTICAD outperform standard sign-invariant CAD in terms of cell count reduction for complex formulae?
  • RQ3Can TTICAD be extended to handle formulae without a global equational constraint while maintaining its efficiency benefits?
  • RQ4How do different problem formulations affect the computational complexity of CAD construction?
  • RQ5What is the relative performance of the new ProjectionCAD implementation compared to Qepcad and other state-of-the-art CAD tools?

Key findings

  • For formula Φ₁, TTICAD reduced cell count from 83 (full sign-invariant CAD) to 53, a 35.0% reduction.
  • For Φ₃, TTICAD achieved 157 cells compared to 695 in the full CAD, a 77.4% reduction in cell count.
  • In cases without a global equational constraint, TTICAD remained applicable while ECCAD and Qepcad with declared constraints failed, demonstrating its unique utility.
  • The extended TTICAD algorithm increased applicability to formulae previously outside its scope, enhancing its relative benefit over other methods.
  • The new implementation achieved competitive performance in both cell count and computation time, outperforming Qepcad in cell efficiency despite slower raw timing.
  • Problem formulation heuristics significantly reduced cell counts, with the best formulation reducing complexity by up to 75% in tested examples.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.