# 圆柱代数分解

**圆柱代数分解**（Cylindrical algebraic decomposition，CAD）是计算机代数中的一种算法，它将实 \( n \) 维空间 \( \mathbb{R}^{n} \) 划分为有限多个连通半代数子集，称为胞腔，使得给定输入集合中的每个多项式在每个胞腔上符号恒定，且胞腔以圆柱方式排列：任意两个胞腔到低维空间的投影要么完全相同，要么不相交。乔治·E·柯林斯（George E. Collins）于1975年引入该方法，作为实闭域上量词消去的首个实用程序，至今仍是非线性实算术的核心完备算法。<sup>[1](https://arxiv.org/abs/2407.19781)</sup><sup> • </sup><sup>[2](https://www.dagstuhl.de/storage/media/0006/6020/2024_Dagstuhl-Proceedings.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由乔治·E·柯林斯于1975年为实闭域上的量词消去而引入，发表于 Springer LNCS 33，第134–183页<sup>[1](https://arxiv.org/abs/2407.19781)</sup><sup> • </sup><sup>[3](https://explore.openaire.eu/search/publication?pid=10.1007%2F3-540-07407-4_17)</sup> |
| 输出 | 将 \( \mathbb{R}^{n} \) 分解为连通胞腔，每个胞腔是半代数集，对输入多项式符号不变，并在声明的变量顺序下呈圆柱排列<sup>[1](https://arxiv.org/abs/2407.19781)</sup> |
| 复杂度 | 关于变量个数为双指数；每增加一个等式约束，双指数中的内层指数可减少一<sup>[1](https://arxiv.org/abs/2407.19781)</sup><sup> • </sup><sup>[4](https://www.sciencedirect.com/science/article/pii/S0747717119300859)</sup> |
| 构造 | 经典算法分两个阶段：投影（反复消去变量）与提升（逐维构建分解）<sup>[5](https://davidjohnwilson.github.io/publications/djwthesis.pdf)</sup> |
| 应用 | 量词消去、多项式约束的可满足性、机器人运动规划、控制与稳定性分析、几何约束求解 |
| 实现 | QEPCAD、Maple 的 RegularChains 库、Mathematica 的 CylindricalDecomposition，以及 cvc5 和 SMT-RAT 等 SMT 系统中基于 CAD 的理论求解器<sup>[6](https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html)</sup><sup> • </sup><sup>[7](https://www.maplesoft.com/products/maple/new_features/Maple2020/regularchains.aspx)</sup><sup> • </sup><sup>[8](https://theory.stanford.edu/~barrett/pubs/KRB%2B22.pdf)</sup> |

## 背景与定义

实数上的量词消去（QE）接收一个由多项式约束构建的逻辑命题——其中可能含有“存在”或“任意”等量词——并产生一个不含量词的等价命题。阿尔弗雷德·塔斯基（Alfred Tarski）于1948年证明实闭域理论是可判定的，但他的程序计算量过大，除平凡问题外不切实用。<sup>[3](https://explore.openaire.eu/search/publication?pid=10.1007%2F3-540-07407-4_17)</sup>柯林斯的 CAD 给出了首个计算上可行的完备方法，正如塔斯基所指出的，该理论的任何量词消去方法同时也为该理论的语句提供了判定方法。<sup>[3](https://explore.openaire.eu/search/publication?pid=10.1007%2F3-540-07407-4_17)</sup>

其定义性结构性质是圆柱性。固定变量顺序 \( x_{1}, \ldots, x_{n} \)。胞腔的构建使得对每个 \( j \)，胞腔到 \( \mathbb{R}^{j} \) 的投影构成一个分解，其中任意两个胞腔要么相等要么不相交，且在每个低维胞腔之上，纤维按有序方式堆叠。每个胞腔由每个输入多项式的一个恒定符号（正、负或零）来描述，这使得多项式约束的任意布尔组合在每个胞腔上真值恒定。<sup>[1](https://arxiv.org/abs/2407.19781)</sup><sup> • </sup><sup>[9](https://passagemath.org/docs/10.8/html/en/reference/interfaces/sage/interfaces/qepcad.html)</sup>

## 经典算法

柯林斯的原始构造及大多数后续工作都通过投影与提升来进行。<sup>[5](https://davidjohnwilson.github.io/publications/djwthesis.pdf)</sup>

1. **投影。** 从 \( n \) 个变量的输入多项式出发，投影算子反复产生少一个变量的多项式集合，直至 \( x_{1} \) 上的单变量多项式。投影后多项式的零点构成原集合临界点的“影子”。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0747717188800105)</sup>
2. **提升。** 实直线 \( \mathbb{R}^{1} \) 按单变量多项式的实根进行分解。然后，在 \( \mathbb{R}^{j} \) 的每个胞腔之上，利用在样本点处求值的双变量多项式，将上方的 \( (j+1) \) 维圆柱分解为截面与扇区，逐步构建 \( \mathbb{R}^{n} \) 的完整分解。<sup>[5](https://davidjohnwilson.github.io/publications/djwthesis.pdf)</sup>
3. **解公式构造。** 对于量词消去，自由变量空间的胞腔按公式的真值分类，并由公式成立的胞腔组装出等价的无量词公式。<sup>[11](https://www.usna.edu/Users/cs/wcbrown/research/qebycad/Tutorial/node3.html)</sup>

柯林斯原始投影算子的选取使得所得分解对输入多项式符号不变，但代价高昂。斯科特·麦卡勒姆（Scott McCallum）于1988年利用复解析几何中的一个定理证明，三变量多项式的投影集可以大幅缩减而不失去其本质性质，观察表明这显著减少了计算时间。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0747717188800105)</sup>后来的投影算子包括 Hong（1990）、Lazard（1994）、麦卡勒姆（1998）和 Brown（2001）等人的工作。<sup>[12](https://www.sciencedirect.com/science/article/abs/pii/S0747717126000556)</sup>

## 复杂度与双指数之墙

CAD 关于变量个数具有双指数复杂度，这在实践中形成一堵墙，超出之后直接应用便不可行。<sup>[1](https://arxiv.org/abs/2407.19781)</sup>这种增长并非算法的产物：实代数中的量词消去本身即具有双指数复杂度，即使只有一个自由变量且所有量词化多项式均为线性时也是如此。<sup>[13](https://www.researchgate.net/publication/221564722_The_Complexity_of_Quantifier_Elimination_and_Cylindrical_Algebraic_Decomposition)</sup>

变量顺序影响巨大。存在这样的 CAD 构造问题：一种顺序产生常数个胞腔，而另一种顺序产生双指数个胞腔；也存在其他问题，其每种顺序都产生双指数个胞腔。<sup>[13](https://www.researchgate.net/publication/221564722_The_Complexity_of_Quantifier_Elimination_and_Cylindrical_Algebraic_Decomposition)</sup>因此，选择顺序已成为该方法的核心启发式问题。

**等式约束。** 等式约束（EC）是输入公式逻辑上蕴含的等式。由于原算法按多项式符号进行分解，而应用通常只需公式的真值，利用 EC 可产生更粗糙、更廉价的分解。England、Bradford 和 Davenport 的工作表明，最坏情况复杂度界中的双指数随 EC 数量相应降低，同时影响所产生的多项式数量及其次数。<sup>[4](https://www.sciencedirect.com/science/article/pii/S0747717119300859)</sup>一个相关的改进是真值表不变 CAD（TTICAD），它构建一个分解，使得一组公式中的每一个在每个胞腔上真值恒定，推广了等式约束的使用。<sup>[14](https://arxiv.org/abs/1401.0645)</sup>

## 应用

在量词消去之外，CAD 还可用于判定多项式等式与不等式系统是否可满足、分类实根、证明定理、分析控制与稳定性、规划机器人运动以及求解几何约束。在应用力学中，它已被用于求解涉及几何、载荷和强度参数的量词消去问题。<sup>[15](https://www.researchgate.net/publication/222126314_Quantifier_elimination_in_applied_mechanics_problems_with_cylindrical_algebraic_decomposition)</sup>

在机器人学中，Schwartz 和 Sharir 证明圆柱代数分解可解决广义钢琴搬运工问题，即多个可能相互连接的机器人（以半代数集描述）必须在构型之间移动，而不彼此相交或与半代数障碍物相交。后续工作通过在 CAD 上构造向量场来建立光滑反馈规划，该向量场除在一个测度零集上外处处光滑，其积分曲线在有限时间内到达目标状态的邻域。<sup>[16](https://www.roboticsproceedings.org/rss02/p27.html)</sup>

## 可满足性检验中的 CAD

CAD 理论已成为非线性实算术的模理论可满足性（SMT）求解的基础，其中 SAT 求解器为公式的布尔骨架提出候选解，理论求解器对其进行检验。<sup>[1](https://arxiv.org/abs/2407.19781)</sup>若干源自 CAD 的算法承担这一角色：

- **NLSAT**，首个此类改编，在模型构造搜索中使用 CAD 进行解释。<sup>[17](https://arxiv.org/abs/2508.00505)</sup>
- **圆柱代数覆盖（CAlC）** 构建空间不满足区域的覆盖而非完整分解，使用更少、更大的胞腔和更少的计算；冲突驱动的变体 CDCAC 已在 SMT 求解器 cvc5 和 SMT-RAT 以及 Maple 中实现。<sup>[1](https://arxiv.org/abs/2407.19781)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2003.05633)</sup><sup> • </sup><sup>[19](https://arxiv.org/abs/2601.14424)</sup>圆柱代数覆盖与增量线性化的集成帮助 cvc5 赢得了 SMT-COMP 2021 的非线性实算术类别，这是自2013年以来非 MCSAT 技术首次夺冠。<sup>[8](https://theory.stanford.edu/~barrett/pubs/KRB%2B22.pdf)</sup>
- **非均匀 CAD（NuCAD）** 放宽了全局圆柱结构；它最初仅为量词消去设计，2025年出现了同时面向量词消去和 SMT 求解的完整实现，并与 CAlC 进行了实验比较。<sup>[17](https://arxiv.org/abs/2508.00505)</sup>

覆盖思想也被扩展回量词消去，支持量词、布尔结构和量词交替。<sup>[20](https://arxiv.org/abs/2411.03070)</sup>

## 混合方法与机器学习

由于 CAD 是双指数的，而虚拟项代换（VTS）在适用时单次应用即可将 \( n \) 个变量的 QE 问题归约为 \( n-1 \) 个变量的问题，混合多算法方法在可能时应用 VTS，否则回退到 CAD。这样的实现是 Maple 的 RegularChains 库中的 QuantifierElimination 包，与 Maplesoft 合作开发。<sup>[21](https://arxiv.org/abs/2302.06814)</sup><sup> • </sup><sup>[22](https://researchportal.bath.ac.uk/en/studentTheses/poly-algorithmic-techniques-in-real-quantifier-elimination/)</sup>格罗布纳基也可利用混合系统中的等式为 CAD 进行预处理，这通常（但并非总是）有益。<sup>[23](https://arxiv.org/abs/1205.6285)</sup>

机器学习已成为主要的优化途径。首次将机器学习应用于调优任何计算机代数算法的研究是2014年的一项工作，它在三种人工设计的 CAD 变量顺序启发式之间进行选择；此后十年间，变量顺序选择成为计算机代数中机器学习的案例研究，实验使用了不同模型、嵌入、深度学习和强化学习。<sup>[1](https://arxiv.org/abs/2407.19781)</sup>剑桥大学一项使用支持向量机的研究报告称，机器学习选择在变量顺序和判断问题是否受益于格罗布纳基预处理两方面均优于人工开发的启发式。<sup>[24](https://www.repository.cam.ac.uk/items/fc089c82-000e-4e10-9969-596246f75331)</sup>此后，可解释 AI 技术被用于识别顺序决策中最重要的特征，目标是改进计算机代数软件，而不在最终代码中依赖机器学习。<sup>[1](https://arxiv.org/abs/2407.19781)</sup>

## 软件

独立与集成实现包括：QEPCAD，一个基于 SACLIB 构建的交互式命令行程序，通过部分 CAD 实现量词消去，现随 Tarski系统分发；<sup>[6](https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html)</sup>Maple 中的 RegularChains 库，其 QuantifierElimination 命令运行 VTS/CAD 多算法，2023 版新增了首个带等式约束的 Lazard 投影实现；<sup>[7](https://www.maplesoft.com/products/maple/new_features/Maple2020/regularchains.aspx)</sup><sup> • </sup><sup>[25](https://www.maplesoft.com/products/maple/new_features/Maple2023/PDFs/Maple2023-QuantifierElimination.pdf)</sup>Mathematica 的 CylindricalDecomposition 函数；<sup>[26](https://reference.wolfram.com/language/ref/CylindricalDecomposition.html?view=all)</sup>以及 SageMath 到 QEPCAD 的接口。<sup>[9](https://passagemath.org/docs/10.8/html/en/reference/interfaces/sage/interfaces/qepcad.html)</sup>

## References

1. [Matthew England (2024). Recent Developments in Real Quantifier Elimination and Cylindrical Algebraic Decomposition. arXiv.](https://arxiv.org/abs/2407.19781)
2. [Algebraic Methods in SMT-Solving, Dagstuhl Proceedings](https://www.dagstuhl.de/storage/media/0006/6020/2024_Dagstuhl-Proceedings.pdf)
3. [George E. Collins (1975). Quantifier elimination for real closed fields by cylindrical algebraic decomposition, OpenAIRE record](https://explore.openaire.eu/search/publication?pid=10.1007%2F3-540-07407-4_17)
4. [England, Bradford, Davenport (2020). Cylindrical algebraic decomposition with equational constraints. Journal of Symbolic Computation.](https://www.sciencedirect.com/science/article/pii/S0747717119300859)
5. [David J. Wilson, PhD thesis, Advances in Cylindrical Algebraic Decomposition, University of Bath](https://davidjohnwilson.github.io/publications/djwthesis.pdf)
6. [QEPCAD B documentation, US Naval Academy](https://www.usna.edu/Users/cs/wcbrown/qepcad/B/QEPCAD.html)
7. [Maple 2020 RegularChains new features, Maplesoft](https://www.maplesoft.com/products/maple/new_features/Maple2020/regularchains.aspx)
8. [Kremer, Reynolds, Barrett et al. (2022). Cooperating Techniques for Solving Nonlinear Real Arithmetic in the cvc5 SMT Solver.](https://theory.stanford.edu/~barrett/pubs/KRB%2B22.pdf)
9. [Interface to QEPCAD, SageMath documentation](https://passagemath.org/docs/10.8/html/en/reference/interfaces/sage/interfaces/qepcad.html)
10. [Scott McCallum (1988). An improved projection operation for cylindrical algebraic decomposition of three-dimensional space. Journal of Symbolic Computation 5(1–2):141–161.](https://www.sciencedirect.com/science/article/pii/S0747717188800105)
11. [An overview of quantifier elimination by CAD, US Naval Academy tutorial](https://www.usna.edu/Users/cs/wcbrown/research/qebycad/Tutorial/node3.html)
12. [Jing, Zhao, Chen. Breaking the data barrier in learning symbolic computation: variable ordering suggestion for CAD. Journal of Symbolic Computation.](https://www.sciencedirect.com/science/article/abs/pii/S0747717126000556)
13. [Christopher Brown, James H. Davenport (2007). The Complexity of Quantifier Elimination and Cylindrical Algebraic Decomposition. ISSAC 2007.](https://www.researchgate.net/publication/221564722_The_Complexity_of_Quantifier_Elimination_and_Cylindrical_Algebraic_Decomposition)
14. [Bradford, Davenport, England, McCallum, Wilson. Truth Table Invariant Cylindrical Algebraic Decomposition. arXiv.](https://arxiv.org/abs/1401.0645)
15. [Quantifier elimination in applied mechanics problems with cylindrical algebraic decomposition](https://www.researchgate.net/publication/222126314_Quantifier_elimination_in_applied_mechanics_problems_with_cylindrical_algebraic_decomposition)
16. [Lindemann, LaValle (2006). Computing Smooth Feedback Plans Over Cylindrical Algebraic Decompositions. Robotics: Science and Systems II.](https://www.roboticsproceedings.org/rss02/p27.html)
17. [Jasper Nalbach, Erika Ábrahám (2025). A Variant of Non-uniform Cylindrical Algebraic Decomposition for Real Quantifier Elimination. arXiv.](https://arxiv.org/abs/2508.00505)
18. [Ábrahám, Davenport, England, Kremer (2020). Deciding the Consistency of Non-Linear Real Arithmetic Constraints with a Conflict Driven Search Using Cylindrical Algebraic Coverings. arXiv.](https://arxiv.org/abs/2003.05633)
19. [Optimising Cylindrical Algebraic Coverings for use in SMT by Solving a Set Covering Problem with Reasons. arXiv.](https://arxiv.org/abs/2601.14424)
20. [Nalbach, Kremer (2024). Extensions of the Cylindrical Algebraic Covering Method for Quantifiers. arXiv.](https://arxiv.org/abs/2411.03070)
21. [Davenport, Tonks, Uncu (2023). A Poly-algorithmic Approach to Quantifier Elimination. arXiv.](https://arxiv.org/abs/2302.06814)
22. [Zak Tonks, PhD thesis, Poly-algorithmic Techniques in Real Quantifier Elimination, University of Bath](https://researchportal.bath.ac.uk/en/studentTheses/poly-algorithmic-techniques-in-real-quantifier-elimination/)
23. [Wilson, Bradford, Davenport (2012). Speeding up Cylindrical Algebraic Decomposition by Gröbner Bases. arXiv.](https://arxiv.org/abs/1205.6285)
24. [Using Machine Learning to Improve Cylindrical Algebraic Decomposition, Mathematics in Computer Science, Cambridge repository](https://www.repository.cam.ac.uk/items/fc089c82-000e-4e10-9969-596246f75331)
25. [Quantifier Elimination in Maple 2023, Maplesoft](https://www.maplesoft.com/products/maple/new_features/Maple2023/PDFs/Maple2023-QuantifierElimination.pdf)
26. [CylindricalDecomposition, Wolfram Documentation](https://reference.wolfram.com/language/ref/CylindricalDecomposition.html?view=all)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Symbolic and algebraic algorithms › Computational algebraic geometry and real algebraic algorithms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/cylindrical-algebraic-decomposition

English original: https://www.edgepedia.org/cylindrical-algebraic-decomposition
