# AC0

**AC0**（也写作AC⁰）是一个电路复杂性类，由常数深度、多项式大小的布尔电路族所识别的语言组成，这些电路的门是扇入无界的AND、OR和NOT门，即单个门可以接受任意数量的输入。<sup>[1](https://www.sciencedirect.com/topics/computer-science/circuit-complexity)</sup> 名称缩写自深度为0（常数深度）的“交替电路”（alternating circuits）。<sup>[2](https://people.csail.mit.edu/rrw/cs294-2018/ac0-switching-lemma.pdf)</sup> 它是最小的标准电路类之一，也是计算复杂性中一些最强的无条件下界所在的场景，尤其是奇偶函数不可由此类电路计算的证明。<sup>[1](https://www.sciencedirect.com/topics/computer-science/circuit-complexity)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 由一致、常数深度、多项式大小、扇入无界的AND、OR和NOT门电路可判定的语言<sup>[1](https://www.sciencedirect.com/topics/computer-science/circuit-complexity)</sup> |
| 核心下界 | 奇偶函数不在AC0中；在常数深度下需要指数大小（Ajtai 1983；Furst、Saxe、Sipser 1984；Yao 1990）<sup>[1](https://www.sciencedirect.com/topics/computer-science/circuit-complexity)</sup> |
| 紧确界 | 计算n个输入上奇偶函数的深度为d的电路需要至少\( 2^{\Omega(n^{1/(d-1)})} \)的大小（Håstad 1986）<sup>[3](https://theory.stanford.edu/~trevisan/cs254-14/lecture12.pdf)</sup> |
| 主要工具 | Håstad切换引理，通过随机限制方法证明<sup>[3](https://theory.stanford.edu/~trevisan/cs254-14/lecture12.pdf)</sup> |
| 逻辑刻画 | DLOGTIME一致的AC0等于带内置序和BIT的一阶逻辑FO<sup>[4](https://drops.dagstuhl.de/storage/00lipics/lipics-vol062-csl2016/LIPIcs.CSL.2016.20/LIPIcs.CSL.2016.20.pdf)</sup> |
| 障碍 | 在密码学假设下，自然证明无法证明超多项式的AC0下界；一个无条件障碍将AC0-自然证明限制在深度d的\( 2^{n^{7/(d-5)}} \)<sup>[5](https://arxiv.org/abs/2606.12631)</sup> |

## 定义及其在电路类中的地位

布尔电路是一个有向无环图，其门计算输入的AND、OR或NOT；深度是从输入到输出的最长路径长度，大小是门的数量。电路族为每个输入长度n分配一个电路，如果每个电路在该长度的输入上计算该语言的特征函数，则它判定一个语言。<sup>[4](https://drops.dagstuhl.de/storage/00lipics/lipics-vol062-csl2016/LIPIcs.CSL.2016.20/LIPIcs.CSL.2016.20.pdf)</sup> 如果不限制每个n的电路如何产生，电路族是非一致的，甚至可以计算非递归函数，因此标准定义施加一致性条件，如DLOGTIME一致性或其等价的一阶表述。<sup>[4](https://drops.dagstuhl.de/storage/00lipics/lipics-vol062-csl2016/LIPIcs.CSL.2016.20/LIPIcs.CSL.2016.20.pdf)</sup>

AC0位于电路类层次结构的低端。加入扇入无界的MOD_q门得到AC0[q]，对所有模数q的AC0[q]取并集得到ACC；加入阈值门得到严格更强的[TC0](https://www.edgepedia.org/zh/tc0)，它包含奇偶函数。<sup>[6](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)</sup><sup> • </sup><sup>[7](https://upcommons.upc.edu/bitstreams/36fa85b7-51c5-4650-8a83-146fd217e764/download)</sup> AC0包含于NC1，即多项式大小、对数深度、有界扇入电路的类。<sup>[8](https://alphabetamath.cc/computability-theory/boolean-circuits-and-nonuniform-complexity)</sup>

## 奇偶函数下界

AC0的里程碑式结果是，奇偶函数——当输入包含奇数个1时输出1——不能由任何常数深度多项式大小的电路族计算。这由Merrick Furst、James B. Saxe和Michael Sipser于1984年证明，[Miklós Ajtai](https://www.edgepedia.org/zh/miklos-ajtai)于1983年独立证明，Yao后来表明奇偶函数在AC0中实际上需要指数大小。<sup>[1](https://www.sciencedirect.com/topics/computer-science/circuit-complexity)</sup><sup> • </sup><sup>[9](https://www.cs.cmu.edu/~15455/pdf/240-circuits.pdf)</sup>

**切换引理。** 定量核心是[Johan Håstad](https://www.edgepedia.org/zh/johan-hastad)的切换引理，通过随机限制方法证明：限制将电路的一些输入固定为常数，让其他输入自由，引理表明在适当的随机限制下，浅电路以高概率坍缩为更浅的电路。<sup>[3](https://theory.stanford.edu/~trevisan/cs254-14/lecture12.pdf)</sup><sup> • </sup><sup>[10](https://users.cs.duke.edu/~reif/courses/complectures/books/AB/circuitlbchap.pdf)</sup> 证明首先将电路规范化，使NOT门只出现在输入处（以因子2的大小代价），层在AND和OR门之间交替，然后反复应用限制，每次将深度坍缩一层。<sup>[3](https://theory.stanford.edu/~trevisan/cs254-14/lecture12.pdf)</sup> 由此得到的紧下界是：计算n个输入上奇偶函数的深度为d、大小为S的电路满足\( S \ge 2^{\Omega(n^{1/(d-1)})} \)；早期论证给出较弱的\( 2^{\Omega(n^{2-d})} \)，Håstad 1986年更强的引理版本弥合了这一差距。<sup>[3](https://theory.stanford.edu/~trevisan/cs254-14/lecture12.pdf)</sup><sup> • </sup><sup>[11](https://ocw.mit.edu/courses/18-405j-advanced-complexity-theory-spring-2016/58dc824e8cb5dc4f83f7d6201459b941_MIT18_405JS16_AC0Lower.pdf)</sup>

同样的机制超越普通AC0。AC0的切换引理下界无参数损失地扩展到更大的类GC0，AC0[p]的多项式方法下界扩展到GC0[p]；多数函数需要深度为d、大小为\( 2^{\Omega(n^{1/2(d-1)})} \)的GC0[p]电路，与已知最好的AC0[p]界相匹配。<sup>[12](https://arxiv.org/abs/2408.16406)</sup> GC0(k)电路的多重切换引理让许多深度为d的AC0结果无参数损失地提升到大小为s^.99的GC0(.01 log s)电路。<sup>[13](https://arxiv.org/abs/2304.02770)</sup>

## 更好下界的障碍

AC0下界的进展既有上界也有下界。[Alexander Razborov](https://www.edgepedia.org/zh/alexander-razborov)和[Steven Rudich](https://www.edgepedia.org/zh/steven-rudich)在1997年观察到，已知的下界证明共享一个模式：在表明函数F困难的同时，证明提供了一个区分器——一种将容易函数与随机函数分开的高效算法。他们称此类证明为自然证明，并表明在标准密码学假设下，自然证明无法对一般布尔电路建立超多项式下界。<sup>[5](https://arxiv.org/abs/2606.12631)</sup> 应用于常数深度，在适当的密码学假设下，没有自然证明能显著改进当前技术水平：切换引理对深度d给出\( 2^{n^{1/(d-1)}} \)，而没有自然证明能证明\( 2^{n^{c/d}} \)，其中c是某个大常数。<sup>[5](https://arxiv.org/abs/2606.12631)</sup>

Bruno Loff、Suhail Sherif、Navid Talebanfard和Francesca Ugazio在2026年的一篇论文中，对AC0-自然证明这一受限类使障碍成为无条件的，AC0-自然证明是指其区分器可由AC0电路计算的证明。Razborov和Rudich曾观察到基于切换引理的下界是AC0-自然的，新工作表明这对大多数针对常数深度电路的已知下界技术都成立。通过局部化Trevisan–Xue伪随机生成器，他们证明没有AC0-自然证明能对深度为d的电路建立大于\( 2^{n^{7/(d-5)}} \)的下界，与切换引理前沿处于相同的定量范围。论证是自指的：Trevisan–Xue生成器的安全性证明依赖于切换引理，因此引理被用来表明AC0-自然证明——包括引理自身的使用——无法超越引理的界。<sup>[5](https://arxiv.org/abs/2606.12631)</sup>

## 逻辑刻画

在描述复杂性中，DLOGTIME一致的AC0与有限有序结构上的一阶逻辑重合：一个语言在一致AC0中，当且仅当它可在带内置线性序和BIT的FO中定义。<sup>[4](https://drops.dagstuhl.de/storage/00lipics/lipics-vol062-csl2016/LIPIcs.CSL.2016.20/LIPIcs.CSL.2016.20.pdf)</sup><sup> • </sup><sup>[14](https://courses.cs.washington.edu/courses/cse599c/18sp/lectures/unit3-beamer.pdf)</sup> 等价地，它等于对数时间层次和并发读、并发写并行随机存取机上的常数并行时间。<sup>[15](https://people.cs.umass.edu/~immerman/descriptive_complexity.html)</sup> 在有界算术中，一致AC0对应于理论V0，或一阶设置中的IΔ0。<sup>[16](https://www.cs.mun.ca/~kol/papers/cie.pdf)</sup> 计数类#AC0——计数AC0电路证明树个数的函数——有一个匹配的模型论刻画，即固定一阶公式的Skolem函数个数。<sup>[4](https://drops.dagstuhl.de/storage/00lipics/lipics-vol062-csl2016/LIPIcs.CSL.2016.20/LIPIcs.CSL.2016.20.pdf)</sup>

## 相关结果与应用

切换引理及其衍生物支撑了广泛的工作。Rossman的临界性概念——最小的λ，使得在p-随机限制下受限函数的决策树深度超过t的概率至多为\( (p\lambda)^t \)——对任何大小为S、深度为d+1的AC0公式满足界\( O((\frac{1}{d} \cdot \log S)^d) \)，解决了Rossman的一个猜想，并蕴含了他关于奇偶函数深度为d的AC0公式大小的最优下界，以及紧相关界、紧傅里叶集中和改进的AC0公式#SAT算法。<sup>[17](https://eccc.weizmann.ac.il/report/2022/182/)</sup> 在密码学中，AC0既作为限制也作为设计空间出现：Razborov–Smolensky多项式逼近方法表明AC0[2]无法支持在攻击者可获得拟多项式数量样本的情况下具有次指数安全性的强伪随机函数，这推动了受限查询模型中候选弱PRF的研究，而AC0提取器已被用于在合理计算假设下构建AC0中的伪随机生成器。<sup>[18](https://ir.cwi.nl/pub/35800)</sup><sup> • </sup><sup>[19](https://arxiv.org/abs/1602.01530)</sup>

## References

1. [Circuit Complexity – an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/circuit-complexity)
2. [Lower Bounds (CS294-152, UC Berkeley, Fall 2018): AC0 and the Switching Lemma](https://people.csail.mit.edu/rrw/cs294-2018/ac0-switching-lemma.pdf)
3. [Luca Trevisan, CS254 Computational Complexity, Notes 12: Circuit Lower Bounds for Parity Using the Switching Lemma](https://theory.stanford.edu/~trevisan/cs254-14/lecture12.pdf)
4. [Durand, Haak, Kontinen, Vollmer (2016). Descriptive Complexity of #AC0 Functions, LIPIcs CSL 2016](https://drops.dagstuhl.de/storage/00lipics/lipics-vol062-csl2016/LIPIcs.CSL.2016.20/LIPIcs.CSL.2016.20.pdf)
5. [Loff, Sherif, Talebanfard, Ugazio. The Switching Lemma shows what the Switching Lemma cannot prove: an unconditional natural-proofs barrier, arXiv](https://arxiv.org/abs/2606.12631)
6. [Saturated Transformers are Constant-Depth Threshold Circuits, Transactions of the Association for Computational Linguistics](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00493/112604/Saturated-Transformers-are-Constant-Depth)
7. [First Order Extensions of Residue Classes and Uniform Circuit Complexity (UPC copy)](https://upcommons.upc.edu/bitstreams/36fa85b7-51c5-4650-8a83-146fd217e764/download)
8. [Boolean Circuits and Nonuniform Complexity, Alphabeta Math](https://alphabetamath.cc/computability-theory/boolean-circuits-and-nonuniform-complexity)
9. [Carnegie Mellon 15-455 course notes: circuits](https://www.cs.cmu.edu/~15455/pdf/240-circuits.pdf)
10. [Allender et al., chapter: AC0 and Håstad's Switching Lemma (Duke course notes)](https://users.cs.duke.edu/~reif/courses/complectures/books/AB/circuitlbchap.pdf)
11. [MIT 18.405J S16 Lecture 6: AC0 Lower Bounds and Switching Lemma](https://ocw.mit.edu/courses/18-405j-advanced-complexity-theory-spring-2016/58dc824e8cb5dc4f83f7d6201459b941_MIT18_405JS16_AC0Lower.pdf)
12. [Improved Circuit Lower Bounds and Quantum-Classical Separations, arXiv:2408.16406](https://arxiv.org/abs/2408.16406)
13. [Tight Correlation Bounds for Circuits Between AC0 and TC0, arXiv:2304.02770](https://arxiv.org/abs/2304.02770)
14. [Finite Model Theory Unit 3, University of Washington CSE 599C](https://courses.cs.washington.edu/courses/cse599c/18sp/lectures/unit3-beamer.pdf)
15. [Neil Immerman, Descriptive Complexity](https://people.cs.umass.edu/~immerman/descriptive_complexity.html)
16. [Kolaitis, Many facets of complexity in logic](https://www.cs.mun.ca/~kol/papers/cie.pdf)
17. [Harsha, Molli, Shankar. Criticality of AC0-Formulae, ECCC TR22-182](https://eccc.weizmann.ac.il/report/2022/182/)
18. [Ball, Ducros, Erabelli, Kohl, Resch. Strong pseudorandom functions in AC0[2] in the bounded-query setting, CWI](https://ir.cwi.nl/pub/35800)
19. [Cheng, Li. Randomness Extraction in AC0 and with Small Locality, arXiv:1602.01530](https://arxiv.org/abs/1602.01530)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Computational complexity › Circuit complexity

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/ac0

English original: https://www.edgepedia.org/ac0
