# 功能分解

功能分解是一种将复杂函数拆解为若干更简单的子函数、分别计算后再通过复合重新组合的方法。在开关理论中，它将一个布尔函数分解为若干较小子函数构成的网络，是逻辑综合中的一项基本操作，应用于 FPGA 综合以及电路通信复杂度的最小化。<sup>[1](https://alcom.ee.ntu.edu.tw/assets/publications/iccad08-ad.pdf)</sup> 其输出是一种多级结构：将函数 F(A, B, C) 表示为 F = G[alpha(A, B), B, C] 的形式，其中任何无环电路都可由一系列这样的分解来描述。<sup>[2](https://www.computer.org/csdl/proceedings-article/focs/1961/00182/12OmNBOll4A)</sup> 同样的复合思想在机器学习中以 Kolmogorov-Arnold 网络的形式再次出现。<sup>[3](https://arxiv.org/pdf/2404.19756)</sup>

| 关键事实 | 陈述 |
|---|---|
| 输出形式 | 由子函数构成的树或网络，外加一个复合函数，而非单一公式；不相交分解写作 \( f(x, y) = g(d(x), y) \)，其中 \( x \) 为约束变量，\( y \) 为自由变量。<sup>[4](https://mpedram.com/Papers/func_decomp.pdf)</sup> |
| Ashenhurst 判据 | 简单不相交分解存在，当且仅当分解图至多有两种不同的列模式。<sup>[5](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/1994/dac94/pdffiles/26_1.pdf)</sup> |
| 一般判据 | 含 j 个子函数的分解存在，当且仅当分解图的列重数至多为 \( 2^{j} \)。<sup>[4](https://mpedram.com/Papers/func_decomp.pdf)</sup> |
| 码宽 | 子函数的最小数目 c 满足 \( 2^{c-1} < l \le 2^{c} \)，即 \( c = \lceil \log_{2} l \rceil \)，其中 l 为所需的不同编码数。<sup>[6](https://doi.org/10.1145/315773.315783)</sup> |
| 叠加定理 | 单位立方体 \( [0,1]^{n} \) 上的任何连续函数都是单变量函数与加法的有限复合：\( f(\mathbf{x}) = \sum_{q=1}^{2n+1} \Phi_{q}\left( \sum_{p=1}^{n} \phi_{q,p}(x_{p}) \right) \)。<sup>[3](https://arxiv.org/pdf/2404.19756)</sup> |
| 实际适用范围 | 分解图方法在输入数超过约 10 至 15 个时便不再实用；基于 BDD 的方法扩展了这一范围，已有约束变量多达 53 个的分解被报道。<sup>[5](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/1994/dac94/pdffiles/26_1.pdf)</sup><sup> • </sup><sup>[7](http://www.ecs.umass.edu/ece/labs/vlsicad/ece667/reading/legl-tvlsi98.pdf)</sup> |

## 工作原理

函数的变量被划分为约束集（被吸收进子函数的输入）和自由集（直接传递给顶层函数的输入）。若函数 f（定义在变量 \( x_{0}, \ldots, x_{n-1} \) 上）可变换为一种包含约束变量的内层子函数 \( g_{j-1} \) 的形式，则 f 在约束集 \( \{x_{0}, \ldots, x_{i-1}\} \) 和自由集 \( \{x_{i}, \ldots, x_{n-1}\} \) 下可分解；将共享变量数 s 设为零即得到析取分解，而只有一个子函数时即为简单分解。<sup>[4](https://mpedram.com/Papers/func_decomp.pdf)</sup>

可分解性的检验依据是分解图的列重数。分解图是[卡诺图](https://www.edgepedia.org/zh/karnaugh-map)的一种排布，其行对应自由集变量，列对应约束集变量；不同列向量的数目即列重数。<sup>[4](https://mpedram.com/Papers/func_decomp.pdf)</sup> Ashenhurst-Curtis 定理指出，变换为分解形式是可能的，当且仅当列重数至多为 \( 2^{j} \)，其中 j 为子函数数目；对于单个子函数，这退化为至多两个不同列。<sup>[4](https://mpedram.com/Papers/func_decomp.pdf)</sup><sup> • </sup><sup>[5](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/1994/dac94/pdffiles/26_1.pdf)</sup> 在另一条数学脉络中，Kolmogorov-Arnold 表示定理保证：有界域上的任何连续多元函数都是连续单变量函数与二元加法运算的有限复合。<sup>[3](https://arxiv.org/pdf/2404.19756)</sup>

## 如何实施

分解将[布尔函数](https://www.edgepedia.org/zh/boolean-function)拆分为复合函数与若干子函数，其中两个主要问题是：将输入变量划分为约束集与自由集，以及选择使用哪些子函数；一旦这两点确定，计算复合函数便很直接。<sup>[7](http://www.ecs.umass.edu/ece/labs/vlsicad/ece667/reading/legl-tvlsi98.pdf)</sup> 经典流程如下：

1. **选择变量划分。** 变量划分问题即确定最佳的自由变量集与约束变量集。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S1383762106000853)</sup>
2. **检验可分解性。** 可以构造分解图并统计不同列，或使用 Roth-Karp 相容类检验：若对每个自由集赋值，f 在两个约束集赋值上结果一致，则这两个赋值相容；简单析取分解存在，当且仅当约束集可划分为至多两个互相容的类。<sup>[4](https://mpedram.com/Papers/func_decomp.pdf)</sup>
3. **计算子函数。** 子函数通常依赖于全部约束变量，但每个约束变量只需至少供给一个子函数；计算支撑最小的子函数可减少查找表数量并改善 FPGA 的可布线性。<sup>[7](http://www.ecs.umass.edu/ece/labs/vlsicad/ece667/reading/legl-tvlsi98.pdf)</sup>
4. **重新组合** 子函数与复合函数，形成多级网络。

现代实现以二元决策图（BDD）取代显式分解图。一种方法在 BDD 中隐式枚举所有割集，以确定约束集与自由集。<sup>[9](https://www.cecs.uci.edu/~papers/compendium94-03/papers/1995/dac95/pdffiles/04_3.pdf)</sup> 集成系统先检测容易的分解，例如约束变量较少的不相交分解和双分解，再对剩余部分施加更重的算法。<sup>[10](https://www.lsi-cad.com/sasao/Papers/files/IWLS1998.pdf)</sup>

## 起源

布尔传统源自 20 世纪 50 年代末至 60 年代初 IBM 与哈佛大学的工作。论文《开关函数的分解》（The Decomposition of Switching Functions）被视为该脉络的奠基性文献，<sup>[11](https://dl.acm.org/doi/10.1145/217474.217506)</sup>《一种函数典范形式》（A functional canonical form）与之并列被引用。<sup>[12](https://epubs.siam.org/doi/10.1137/0111022)</sup> IBM 的论文《布尔树上的最小化》（Minimization Over Boolean Trees，IBM Journal of Research and Development，1962）给出了功能分解的一般方法，并配有检测分解的高效检验，每个布尔图对应其实现函数的一系列分解。<sup>[13](https://www.mirrorservice.org/sites/www.bitsavers.org/pdf/ibm/IBM_Journal_of_Research_and_Development/062/ibmrd0602H.pdf)</sup> 一篇 FOCS 论文描述了一个组合开关电路综合程序，其分解技术推广了 Ashenhurst 的方法，其流程则源自 Roth 的方法。<sup>[2](https://www.computer.org/csdl/proceedings-article/focs/1961/00182/12OmNBOll4A)</sup> Kolmogorov-Arnold 脉络是独立的：Kolmogorov-Arnold 网络由刘子鸣（Ziming Liu）及其同事在《KAN: Kolmogorov-Arnold Networks》中提出，该文于 2024 年首次发布于 arXiv，并在 ICLR 2025 上报告。<sup>[14](https://doi.org/10.48550/arxiv.2404.19756)</sup>

## 变体

综述文献区分了若干形式。简单析取分解使用一个子函数，且约束集与自由集不相交；当列重数超过二时，无法实现简单分解，结果一般为 Ashenhurst-Curtis 分解。<sup>[15](https://my.ece.utah.edu/~kalla/ECE5740/Functional-Decomposition.pdf)</sup> 在 Ashenhurst-Curtis 族中，块之间只有一条二元连线的分解称为 Ashenhurst 分解，有多条连线的称为 Curtis 分解；要求每块的输出数少于输入数，则得到严格意义上的 Ashenhurst-Curtis 分解。<sup>[16](https://web.cecs.pdx.edu/~mperkows/=PUBLICATIONS/PER/G1995/survey.pdf)</sup> Curtis 与 Roth-Karp 的扩展允许多值子函数 \( g \) 和 \( h \)，其中 g 由 \( k = \lceil \log_{2} m \rceil \) 个布尔函数编码。<sup>[17](http://web.cecs.pdx.edu/~mperkows/PerkowskiGoogle/A_BDD-based_fast_heuristic_algorithm_for_disjoint_decomposition.pdf)</sup>

不相交与非不相交：当一组函数中的每个函数都可写成共享集与约束集子函数的表达式时，该组函数相对于约束集、自由集与共享集的这一划分是可分解的；共享集为空时分解为不相交，否则为非不相交；单输出指一个函数，多输出指多个函数。<sup>[1](https://alcom.ee.ntu.edu.tw/assets/publications/iccad08-ad.pdf)</sup> 当某个子函数仅依赖一个约束变量时，不相交分解退化为非不相交分解，因此支撑最小子函数的计算涵盖了非不相交分解。<sup>[7](http://www.ecs.umass.edu/ece/labs/vlsicad/ece667/reading/legl-tvlsi98.pdf)</sup>

双分解将 \( f \) 写作 \( h(f_{A}(X_{A}, X_{C}), f_{B}(X_{B}, X_{C})) \)；其质量主要由变量划分决定，首选的是不相交分解（\( X_{C} \) 为空）与平衡分解（\( |X_{A}| \approx |X_{B}| \)）。<sup>[18](https://dl.acm.org/doi/10.1145/1391469.1391634)</sup> 非代数分解 \( F = A \; \mathrm{op} \; B \) 若支撑非不相交，当 A 或 B 的支撑等于 F 的支撑时称为弱双分解，否则称为强双分解；若支撑不相交，则称为简单代数双分解，或称不相交支撑双分解。<sup>[19](https://people.eecs.berkeley.edu/~alanmi/research/dec/decClassify.htm)</sup>

## 应用

不相交分解在基于 FPGA 的设计中居于核心地位：若一个函数可分解为若干较小子函数，且这些子函数能用基于查找表的 FPGA 中 k 输入可配置逻辑块实现，则该函数是 k-可行的。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S1383762106000853)</sup> 分解适合这一技术，因为它直接最小化了新函数的输入数。支撑最小子函数选择（ISODEC-S 流程）在 MCNC 基准上相较随机选取子函数平均减少 LUT 数量 28.4%，并在布局布线后平均降低焊盘到焊盘延迟 21.3%。<sup>[7](http://www.ecs.umass.edu/ece/labs/vlsicad/ece667/reading/legl-tvlsi98.pdf)</sup> 双分解方法将多输出不完全指定函数分解为二输入门构成的网表，产生紧凑、均衡且可证无冗余的网表。<sup>[20](https://people.eecs.berkeley.edu/~alanmi/publications/2001/dac01.pdf)</sup> 在机器学习中，Kolmogorov-Arnold 网络将叠加定理转化为由学习得到的单变量函数构成的两层可训练网络，且这一两层形式已被推广到任意深度。<sup>[3](https://arxiv.org/pdf/2404.19756)</sup><sup> • </sup><sup>[21](https://arxiv.org/pdf/2408.10205)</sup>

## 局限与替代方案

分解在若干情形下会失败或没有收益。当列重数超过二时，不存在简单分解。<sup>[15](https://my.ece.utah.edu/~kalla/ECE5740/Functional-Decomposition.pdf)</sup> 原始的分解图方法无法处理输入数超过约 10 至 15 个的函数，因为它需要构造分解图。<sup>[5](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/1994/dac94/pdffiles/26_1.pdf)</sup> 不同分解的数目为 \( 2^{n} \)，因此穷举检查所有划分并不现实；而当 n 很大时，统计上几乎所有 n 变量函数都不可分解。<sup>[10](https://www.lsi-cad.com/sasao/Papers/files/IWLS1998.pdf)</sup> 基于 BDD 的方法会遭遇内存爆炸，因为 BDD 在最坏情况下可随变量数指数增长，且早期的 BDD 工作通常要求事先指定变量划分。<sup>[1](https://alcom.ee.ntu.edu.tw/assets/publications/iccad08-ad.pdf)</sup>

与因式分解相比，代数因式分解 \( F = A \cdot B + C \) 要求支撑不相交，而布尔因式分解允许支撑非不相交；同样的不相交支撑区分也把简单代数分解与一般双分解区分开来。<sup>[19](https://people.eecs.berkeley.edu/~alanmi/research/dec/decClassify.htm)</sup>

## References

1. [Ashenhurst Decomposition in a Large Scale (ICCAD 2008)](https://alcom.ee.ntu.edu.tw/assets/publications/iccad08-ad.pdf)
2. [A computer program for the synthesis of combinational switching circuits (IEEE Symposium on Switching Circuit Theory and Logical Design, 1961)](https://www.computer.org/csdl/proceedings-article/focs/1961/00182/12OmNBOll4A)
3. [KAN: Kolmogorov-Arnold Networks (Liu et al., 2024)](https://arxiv.org/pdf/2404.19756)
4. [OBDD-Based Function Decomposition: Algorithms and Implementation](https://mpedram.com/Papers/func_decomp.pdf)
5. [Optimum Functional Decomposition Using Encoding (DAC 1994)](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/1994/dac94/pdffiles/26_1.pdf)
6. [Functional multiple-output decomposition with application to technology mapping for lookup table-based FPGAs](https://doi.org/10.1145/315773.315783)
7. [Computing Support-minimal Subfunctions During Functional Decomposition (IEEE TVLSI, 1998)](http://www.ecs.umass.edu/ece/labs/vlsicad/ece667/reading/legl-tvlsi98.pdf)
8. [An efficient variable partitioning approach for functional decomposition of circuits (Integration, the VLSI Journal)](https://www.sciencedirect.com/science/article/abs/pii/S1383762106000853)
9. [A Method for Finding Good Ashenhurst Decompositions and Its Application to FPGA Synthesis (DAC 1995)](https://www.cecs.uci.edu/~papers/compendium94-03/papers/1995/dac95/pdffiles/04_3.pdf)
10. [DECOMPOS: An Integrated System for Functional Decomposition (IWLS 1998)](https://www.lsi-cad.com/sasao/Papers/files/IWLS1998.pdf)
11. [Functional multiple-output decomposition: theory and an implicit algorithm (ACM TODAES)](https://dl.acm.org/doi/10.1145/217474.217506)
12. [Functional Decomposition and Switching Circuit Design (SIAM Journal)](https://epubs.siam.org/doi/10.1137/0111022)
13. [Minimization Over Boolean Trees (IBM Journal of Research and Development, 1962)](https://www.mirrorservice.org/sites/www.bitsavers.org/pdf/ibm/IBM_Journal_of_Research_and_Development/062/ibmrd0602H.pdf)
14. [Liu, Ziming and colleagues (2024). KAN: Kolmogorov-Arnold Networks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2404.19756)
15. [Functional Decomposition (course notes, Univ. of Utah ECE 5740)](https://my.ece.utah.edu/~kalla/ECE5740/Functional-Decomposition.pdf)
16. [A Survey of Literature on Function Decomposition (Version IV, November 1995)](https://web.cecs.pdx.edu/~mperkows/=PUBLICATIONS/PER/G1995/survey.pdf)
17. [A BDD-based fast heuristic algorithm for disjoint decomposition](http://web.cecs.pdx.edu/~mperkows/PerkowskiGoogle/A_BDD-based_fast_heuristic_algorithm_for_disjoint_decomposition.pdf)
18. [Bi-decomposing large Boolean functions via interpolation and satisfiability solving (ACM TCAD 2008)](https://dl.acm.org/doi/10.1145/1391469.1391634)
19. [Alan Mishchenko's Homepage - Classification of Decompositions](https://people.eecs.berkeley.edu/~alanmi/research/dec/decClassify.htm)
20. [An Algorithm for Bi-Decomposition of Logic Functions (Mishchenko & Brayton, DAC 2001)](https://people.eecs.berkeley.edu/~alanmi/publications/2001/dac01.pdf)
21. [A survey on KAN (2024)](https://arxiv.org/pdf/2408.10205)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming › Decomposition and distributed optimization

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/functional-decomposition

English original: https://www.edgepedia.org/functional-decomposition
