TOPICS
Search

Cylindrical Algebraic Decomposition


A cylindrical algebraic decomposition of S subset R^n is a finite set partition of S into cells, with a fixed ordering of the coordinates, such that the coordinate projections of any two cells onto the first k coordinates are either identical or disjoint for each 1<=k<n (Basu 2017). The cells are connected semialgebraic sets built recursively as follows.

A cell in R is an open interval or a point. A cell in R^(k+1) has one of the forms

 {(x,y):x in C, f(x)<y<g(x)}
(1)

or

 {(x,y):x in C, y=f(x)},
(2)

where x=(x_1,...,x_k) and C is a cell in R^k. The finite bounds are continuous semialgebraic functions on C. The lower bound of the first form may also be -infty, and its upper bound may be infty, with f(x)<g(x) throughout C. The second form requires a finite-valued f.

For a finite set F of polynomials, a decomposition is called F-invariant if every polynomial in F has a constant sign, positive, negative, or zero, on each cell. Such a decomposition of R^n can be computed algorithmically. Any Boolean function of the corresponding polynomial equalities and inequalities then has a constant truth value on each cell, so its solution set is a union of cells. The cylindrical structure makes this useful for quantifier elimination.

For example, the open ball

 x^2+y^2+z^2<1
(3)

is a single cell described by the simultaneous inequalities

 {-1<x<1; -sqrt(1-x^2)<y<sqrt(1-x^2); -sqrt(1-x^2-y^2)<z<sqrt(1-x^2-y^2).
(4)
CylindricalAlgebraicDecompositionCircle

The figure above shows a decomposition of the unit circle into four cells, the two endpoint cells P_-={(-1,0)} and P_+={(1,0)} together with the two arcs

 C_+/-={(x,y):-1<x<1, y=+/-sqrt(1-x^2)}.
(5)

The two arcs have the same projection onto the x-axis, the open interval (-1,1). The endpoint cells project onto {-1} and {1}. These lower-dimensional cells are needed to include the entire boundary of the closed disk. Reversing the coordinate order instead separates the top and bottom endpoints (Trott 2006).

CylindricalAlgebraicDecompositionPolyhedron

A three-dimensional example comes from integration over a regular octahedron P of unit edge length, with vertices (+/-1/2,0,+/-1/2) and (0,+/-1/sqrt(2),0). The coordinate planes split its interior into eight congruent full-dimensional cells. The figure above shows their closures separated for visibility and one cell with its projection onto the xy-plane. The positive-octant cell has bounds

 {0<x<1/2; 0<y<(1-2x)/sqrt(2); 0<z<1/2-y/sqrt(2).
(6)

Lower-dimensional cells complete the decomposition on the splitting planes and boundary. They have zero volume and do not affect these volume integrals.

For a point chosen from the uniform distribution on P, the mean of its Euclidean distance from the origin is

 r^_=8/(V(P))int_0^(1/2)int_0^((1-2x)/sqrt(2))int_0^(1/2-y/sqrt(2))sqrt(x^2+y^2+z^2)dzdydx,
(7)

where V(P)=sqrt(2)/3 is the volume. Replacing the integrand by sqrt(x^2+y^2) gives the mean distance from the z-axis. The factor 8 uses reflection symmetry of both the region and the integrand.

TriangleTrianglePickingCAD

A planar slice of the integration for triangle triangle picking is illustrated above by fixing two of the chosen points at A=(3/5,8/15) and B=(9/10,19/30) in the triangle T={(x,y):0<y<x<1}. For the moving point C=(x,y), the signed triangle area is

 Delta=(3y-x-1)/(20).
(8)

The three full-dimensional cells shown are

C_1={(x,y):0<x<1/2,0<y<x}
(9)
C_2={(x,y):1/2<x<1,0<y<(x+1)/3}
(10)
C_3={(x,y):1/2<x<1,(x+1)/3<y<x}.
(11)

The determinant has negative sign on C_1 and C_2 and positive sign on C_3. The absolute value in the integrand can therefore be replaced by the appropriate signed expression on each cell. The vertical split at x=1/2 makes the projections of the cells onto the x-axis identical or disjoint. Lower-dimensional cell boundaries have zero area. The full picking integral ranges over all six vertex coordinates.

A generic cylindrical algebraic decomposition describes the full-dimensional behavior of a semialgebraic set, allowing differences on an exceptional set of lower dimension. For example, a generic decomposition of the closed disk x^2+y^2<=1 can retain the open disk x^2+y^2<1 and omit its boundary. The unit circle alone has no full-dimensional cell in R^2.

The command CylindricalDecomposition[ineqs, {x1, x2, ...}] performs cylindrical algebraic decompositions in the Wolfram Language. Although the process is algorithmic, it can become computationally expensive as the number of variables increases.


See also

Cylindrical Parts, Generic Cylindrical Algebraic Decomposition, Quantifier Elimination, Semialgebraic Function, Semialgebraic Set, Tarski's Theorem

Portions of this entry contributed by Adam Strzebonski

Explore with Wolfram|Alpha

References

Arnborg, S. and Feng, H. "Algebraic Decomposition of Regular Curves." J. Symb. Comput. 5, 131-140, 1988. https://doi.org/10.1016/S0747-7171(88)80009-9.Arnon, D. S.; Collins, G. E.; and McCallum, S. "Cylindrical Algebraic Decomposition I: The Basic Algorithm." SIAM J. Comput. 13, 865-877, 1984. https://doi.org/10.1137/0213054.Arnon, D. S. and Mignotte, M. "On Mechanical Quantifier Elimination for Elementary Algebra and Geometry." J. Symb. Comput. 5, 237-259, 1988. https://doi.org/10.1016/S0747-7171(88)80014-2.Basu, S. "Algorithms in Real Algebraic Geometry: A Survey." In Real Algebraic Geometry (Ed. K. Bekka, G. Fichou, J.-P. Monnier, and R. Quarez). Paris, France: Soc. Math. France, pp. 107-153, 2017. https://smf.emath.fr/node/44883. https://www.math.purdue.edu/~sbasu/raag_survey2011_final-sep4-2014.pdf.Basu, S.; Pollack, R.; and Roy, M.-F. Algorithms in Real Algebraic Geometry, 2nd ed. Berlin, Germany: Springer-Verlag, 2006. https://doi.org/10.1007/3-540-33099-2.Brown, C. W. "Simple CAD Construction and Its Applications." J. Symb. Comput. 31, 521-547, 2001. https://doi.org/10.1006/jsco.2000.0394.Buchberger, B.; Collins, G. E.; and Kutzler, B. "Algebraic Methods for Geometric Reasoning." Ann. Rev. Comput. Sci. 3, 85-119, 1988. https://doi.org/10.1146/annurev.cs.03.060188.000505.Caviness, B. F. and Johnson, J. R. (Ed.). Quantifier Elimination and Cylindrical Algebraic Decomposition. Vienna, Austria: Springer-Verlag, 1998. https://doi.org/10.1007/978-3-7091-9459-1.Chen, F. and Wang, D. (Ed.). Geometric Computation. Singapore: World Scientific, 2004.Collins, G. E. "Quantifier Elimination for Real Closed Fields by Cylindrical Algebraic Decomposition." In Automata Theory and Formal Languages: 2nd GI Conference, Kaiserslautern, May 20-23, 1975 (Ed. H. Brakhage). Berlin, Germany: Springer-Verlag, pp. 134-183, 1975. https://doi.org/10.1007/3-540-07407-4_17.Collins, G. E. "Quantifier Elimination by Cylindrical Algebraic Decomposition--Twenty Years of Progress." In Quantifier Elimination and Cylindrical Algebraic Decomposition (Ed. B. F. Caviness and J. R. Johnson). New York: Springer-Verlag, pp. 8-23, 1998.Collins, G. E. and Hong, H. "Partial Cylindrical Algebraic Decomposition for Quantifier Elimination." J. Symb. Comput. 12, 299-328, 1991.Dolzmann, A. and Sturm, T. "Simplification of Quantifier-Free Formulae over Ordered Fields." J. Symb. Comput. 24, 209-231, 1997.Dolzmann, A.; Sturm, T.; and Weispfenning, V. "Real Quantifier Elimination in Practice." In Algorithmic Algebra and Number Theory (Ed. B. H. Matzat, G.-M. Greuel, and G. Hiss). Berlin, Germany: Springer-Verlag, pp. 221-247, 1999. https://doi.org/10.1007/978-3-642-59932-3_11.Faugere, J. C.; Gianni, P.; Lazard, D.; and Mora, T. "Efficient Computation of Zero-Dimensional Groebner Bases by Change of Ordering." J. Symb. Comput. 16, 329-344, 1993.Hong, H. "An Improvement of the Projection Operator in Cylindrical Algebraic Decomposition." In ISSAC '90: Proceedings of the International Symposium on Symbolic and Algebraic Computation, August 20-24, 1990, Tokyo, Japan (Ed. S. Watanabe and M. Nagata). New York: ACM Press, pp. 261-264, 1990.Loos, R. and Weispfenning, V. "Applying Lattice Quantifier Elimination." Comput. J. 36, 450-461, 1993.McCallum, S. "An Improved Projection for Cylindrical Algebraic Decomposition of Three Dimensional Space." J. Symb. Comput. 5, 141-161, 1988.McCallum, S. "Solving Polynomial Strict Inequalities Using Cylindrical Algebraic Decomposition." Comput. J. 36, 432-438, 1993. https://doi.org/10.1093/comjnl/36.5.432.McCallum, S. "Recent Progress on Consistency Testing for Polynomial Systems." In Computational Algebra and Number Theory (Ed. W. Bosma and A. van der Poorten). Dordrecht, Netherlands: Kluwer Academic Publishers, pp. 243-253, 1995. https://doi.org/10.1007/978-94-017-1108-1_17.McCallum, S. "An Improved Projection for Cylindrical Algebraic Decomposition." In Quantifier Elimination and Cylindrical Algebraic Decomposition (Ed. B. F. Caviness and J. R. Johnson). New York: Springer-Verlag, pp. 242-268, 1998.McCallum, S. and Collins, G. E. "Local Box Adjacency Algorithms for Cylindrical Algebraic Decompositions." J. Symb. Comput. 33, 321-342, 2002.Mishra, B. "Computational Real Algebraic Geometry." In Handbook of Discrete and Computational Geometry (Ed. J. E. Goodman and J. O'Rourke). Boca Raton, FL: CRC Press, pp. 537-558, 1997.Rulf, F. "Bestimmung der neuen Integrationsgrenzen für ein vielfaches Integral bei Vertauschung der Integrationsfolge mittels der Aussagentheorie der Algebra der Logik." Monatsh. Math. Phys. 29, 268-276, 1918. https://doi.org/10.1007/BF01700490.Strzebonski, A. "An Algorithm for Systems of Strong Polynomial Inequalities." Mathematica J. 4, 74-77, 1994.Strzebonski, A. "A Real Polynomial Decision Algorithm Using Arbitrary-Precision Floating Point Arithmetic." Reliable Comput. 5, 337-346, 1999.Strzebonski, A. "Solving Algebraic Inequalities." Mathematica J. 7, 525-541, 2000.Trott, M. "Polynomials in Inequalities." §1.2.3 in The Mathematica GuideBook for Symbolics. New York: Springer-Verlag, pp. 50-78, 2006. https://www.mathematicaguidebooks.org/.Wolfram Research. "GenericCylindricalDecomposition." 2007. https://reference.wolfram.com/language/ref/GenericCylindricalDecomposition.html.

Referenced on Wolfram|Alpha

Cylindrical Algebraic Decomposition

Cite this as:

Weisstein, Eric W., with contributions by Adam Strzebonski. "Cylindrical Algebraic Decomposition." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CylindricalAlgebraicDecomposition.html

Subject classifications