# 集合的划分

集合的划分是该集合的一族非空、两两不相交的子集，它们的并集是整个集合；这些子集称为该划分的块（或部分）。<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup><sup> • </sup><sup>[2](https://openmathbooks.org/ecm/ecm/sec_adv-stirling.html)</sup> 集合中的每个元素恰好属于一个块。划分是离散数学的核心结构：它们把“将一个集合的元素分到无序的组中”这一想法形式化，并且与等价关系——即“被视为相同”的数学描述——可以互相转换。

| 关键事实 | 细节 |
|---|---|
| 定义 | 非空、两两不相交的子集（块），其并集为整个集合；每个元素恰好位于一个块中<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup> |
| 等价关系 | 集合的划分与其上的等价关系一一对应：各块恰好就是等价类<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup> |
| 计数 | n 元集合的划分数是贝尔数 B(n)；B(3) = 5，B(5) = 52，B(10) = 115975<sup>[3](https://dlmf.nist.gov/26.7)</sup> |
| 固定块数 | 恰好分成 k 个非空块的划分数是第二类斯特林数 S(n,k)，且 B(n) = Σ S(n,k)<sup>[3](https://dlmf.nist.gov/26.7)</sup><sup> • </sup><sup>[4](https://dlmf.nist.gov/draft1/26.8)</sup> |
| 生成函数 | 贝尔数的指数生成函数是 exp(e<sup>x</sup> − 1)<sup>[3](https://dlmf.nist.gov/26.7)</sup> |
| 递推 | B(n+1) = Σ C(n,k) B(k)，k 从 0 到 n<sup>[3](https://dlmf.nist.gov/26.7)</sup> |
| 标准编码 | {x₁, …, xₙ} 的每个划分恰好对应一个受限增长串，这种序列可用作数组索引<sup>[5](https://noexec.org/public/papers/partitions.pdf)</sup> |

## 定义与例子

形式上，集合 S 的划分是 S 的一族子集 P，满足：各块两两不相交（当 i ≠ j 时 Bᵢ ∩ Bⱼ = ∅），没有块为空，且所有块的并集为 S。<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup><sup> • </sup><sup>[6](https://www.combinatorics.org/files/Surveys/ds26/ds26v1-2023.pdf)</sup> 含有 n 个元素的块称为 n-块。<sup>[7](https://mathworld.wolfram.com/SetBlock.html)</sup>

集合 {1, 2, 3} 恰好有五个划分：{{1},{2},{3}}、{{1,2},{3}}、{{1,3},{2}}、{{1},{2,3}} 和 {{1,2,3}}。<sup>[8](https://mathshistory.st-andrews.ac.uk/Extras/Bell_Numbers/)</sup> 自然的划分随处可见：整数分成偶数与奇数，或者更一般地，按除以某个固定常数的余数分成若干类；4 位二进制串的集合则按置位的位数分成五个类。<sup>[2](https://openmathbooks.org/ecm/ecm/sec_adv-stirling.html)</sup> 划分也是计数证明中的常用工具：许多二项式恒等式都是通过把一组结果划分成若干块、再对每块分别计数来证明的。<sup>[2](https://openmathbooks.org/ecm/ecm/sec_adv-stirling.html)</sup>

## 等价关系

划分与等价关系是同一结构的两种视角。一个关系若满足自反性、对称性和传递性，就是等价关系。<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup> 给定一个等价关系，等价类 [x] = {y : y ∼ x} 构成一个划分：等价类非空、覆盖整个集合，且两个不同的类不可能共享元素，因为一旦共享某个元素，由传递性和对称性就会迫使这两个类相等。<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup> 反过来，一个划分通过规定“x ∼ y 当且仅当 x 与 y 位于同一个块中”来定义一个等价关系。<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup> 模整数 n 的同余是标准例子：等价类 [0], [1], …, [n−1] 构成整数集的一个划分。<sup>[1](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)</sup>

## 划分的计数：贝尔数与斯特林数

{1, 2, …, n} 的划分数是贝尔数 B(n)，其中 B(0) = 1，当 n 从 0 到 10 时，序列为 1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147, 115975。<sup>[3](https://dlmf.nist.gov/26.7)</sup><sup> • </sup><sup>[8](https://mathshistory.st-andrews.ac.uk/Extras/Bell_Numbers/)</sup> 这个数目增长极快：B(15) = 1382958545，B(19) = 5832742205057。<sup>[3](https://dlmf.nist.gov/26.7)</sup>

**斯特林数。** 第二类斯特林数 S(n,k) 计数的是把 {1, …, n} 恰好分成 k 个非空块的划分数，而贝尔数就是它们对 k 求和的结果。<sup>[3](https://dlmf.nist.gov/26.7)</sup><sup> • </sup><sup>[4](https://dlmf.nist.gov/draft1/26.8)</sup> 特殊值包括 S(n,1) = 1 和 S(n,2) = 2<sup>n−1</sup> − 1，后者反映的是在二块划分中选择哪些元素与元素 1 同块。<sup>[4](https://dlmf.nist.gov/draft1/26.8)</sup>

**公式。** 贝尔数满足递推 B(n+1) = Σ C(n,k) B(k)，指数生成函数 Σ B(n) xⁿ/n! = exp(eˣ − 1)，以及多宾斯基型求和 B(n) = e⁻¹ Σ kⁿ/k!（对正整数 k 求和）。<sup>[3](https://dlmf.nist.gov/26.7)</sup> 当 n → ∞ 时，B(n) 具有渐近形式 Nⁿ e^(N−n−1) / (1 + ln N)^(1/2)，其中 N 由 N ln N = n 定义，等价地 N = e^(W₀(n))，W₀ 为朗伯 W-函数的主支。<sup>[3](https://dlmf.nist.gov/26.7)</sup>

## 受限增长串与生成

在计算中，划分被编码为受限增长串（也称受限增长函数）：按各块的最小元素对块排序，然后按顺序为每个元素写出其所在块的编号。串 (k₁, …, kₙ) 满足 k₁ = 1 且对 i ≥ 2 有 kᵢ ≤ 1 + max(k₁, …, kᵢ₋₁)，而这个条件正是使该编码成为与划分集合之间双射的原因。<sup>[5](https://noexec.org/public/papers/partitions.pdf)</sup><sup> • </sup><sup>[9](https://research.google/pubs/restricted-growth-function-patterns-and-statistics/)</sup> 例如，串 (1, 2, 3, 2, 4, 4, 2, 5, 3, 3) 解码为划分 {x₁}, {x₂, x₄, x₇}, {x₃, x₉, x₁₀}, {x₅, x₆}, {x₈}。<sup>[5](https://noexec.org/public/papers/partitions.pdf)</sup>

这种编码支持高效的枚举。迈克尔·奥尔洛夫（Michael Orlov）2002 年的算法以常数空间和每个划分摊还常数时间遍历 n 元集合的所有划分，方法是维护该串以及一个前缀最大值数组，并直接由它们导出下一个或上一个划分。<sup>[5](https://noexec.org/public/papers/partitions.pdf)</sup> 受限增长串还支持对随机划分的统计量研究，例如记录数，其生成函数与整数划分及双色莫茨金路径相联系。<sup>[9](https://research.google/pubs/restricted-growth-function-patterns-and-statistics/)</sup>

## 划分格

n 元集合的所有划分构成的集合带有一个由加细给出的自然偏序：当 π 的每个块都包含在 σ 的某个块中时，称 π 加细 σ。在这个序下，划分构成一个格，其交与并分别由最粗的公共加细和最细的公共加粗给出。<sup>[10](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v7i1r5)</sup> 在这个格中，分成 n 个单元素块的离散划分是最小元，单块划分是最大元；该格是几何格。<sup>[11](https://webhomes.maths.ed.ac.uk/~v1ranick/papers/rota1.pdf)</sup>

该格的莫比乌斯函数最先由舒岑贝格尔（Schützenberger）确定，并由罗伯托·弗鲁赫特（Roberto Frucht）和詹卡洛·罗塔（Gian-Carlo Rota）独立地重新得到，它是组合计数中许多内容的基础。<sup>[11](https://webhomes.maths.ed.ac.uk/~v1ranick/papers/rota1.pdf)</sup> 罗塔 1964 年的论文《论组合理论的基础 I：莫比乌斯函数理论》及其姊妹篇《集合的划分数》（发表于《美国数学月刊》），通过在诸如该格这样的偏序集上做莫比乌斯反演，统一了容斥原理以及组合数学的许多内容。<sup>[11](https://webhomes.maths.ed.ac.uk/~v1ranick/papers/rota1.pdf)</sup><sup> • </sup><sup>[12](https://webhomes.maths.ed.ac.uk/~v1ranick/papers/rota2.pdf)</sup> 相对于单块划分，莫比乌斯函数为 m(τ, {[n]}) = (−1)^(#τ−1) (#τ − 1)!，其中 #τ 是 τ 的块数。<sup>[13](https://www.stat.berkeley.edu/~sandrine/Docs/TerrySelectedWorksSpringer/Version1/McCullagh/McCullagh.pdf)</sup>

该格上的随机划分表现出引人注目的不对称行为。鲍里斯·皮特尔（Boris Pittel）是一位以随机离散结构研究著称的概率学家，他证明了：若独立均匀随机地选取 [n] 的 r 个划分，则它们的最粗公共加细恰为最细划分的概率，在 r = 2 时趋于 0，而在 r ≥ 3 时趋于 1；而它们的最细公共加粗恰为单块划分的概率，对每个 r ≥ 2 都趋于 1。<sup>[10](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v7i1r5)</sup>

## 应用

**统计学。** 划分格组织了随机变量的矩与累积量。斯皮德（Speed）1983 年的论文是统计学文献中第一篇指出划分格在统计矩理论及其近亲累积量理论中重要性的文章，而格上的莫比乌斯反演给出了经典结果的简短证明：n 个变量的全乘积矩是累积量乘积在划分上的求和，而对高斯变量，这归结为伊瑟利斯（Isserlis）定理的配对，物理学家称之为威克（Wick）定理。<sup>[13](https://www.stat.berkeley.edu/~sandrine/Docs/TerrySelectedWorksSpringer/Version1/McCullagh/McCullagh.pdf)</sup> 在自由概率中，非交叉划分——划分格的一个子格——对自由累积量扮演相应的角色。<sup>[13](https://www.stat.berkeley.edu/~sandrine/Docs/TerrySelectedWorksSpringer/Version1/McCullagh/McCullagh.pdf)</sup>

**统计力学。** 随机集合划分上的分布提供了理想玻色气体、零程过程、粒子成团与空间置换之间的耦合；这些分布对于一个“中餐馆链”随机过程是不变的，并且关于最大分量大小的分布已有已知结果。<sup>[14](https://www.maths.tcd.ie/EMIS/journals/EJP-ECP/article/view/3244/0.html)</sup> 更广泛地说，整数划分与平面划分被应用于统计力学中格结构的计数，其中伊辛模型是主要的例子。<sup>[15](https://dlmf.nist.gov/26.20)</sup>

**计算。** 不相交集（并查集）数据结构在两种操作下动态地维护有限集合的一个划分：find(x)，返回包含 x 的块的首领；以及 unite(x, y)，若两者所在块不同则合并这两个块。<sup>[16](https://link.springer.com/article/10.1007/s00446-020-00388-x)</sup> 采用按大小或按秩链接，并结合路径压缩、路径分裂或路径减半，对 n 个元素进行 m 次操作需要 O(m α(n, m/n)) 时间，其中 α 是阿克曼函数的某种反函数。<sup>[16](https://link.springer.com/article/10.1007/s00446-020-00388-x)</sup> 其顺序应用包括克鲁斯卡尔最小生成树算法、在加边下维护图的连通分量、渗流测试，以及在有向图中寻找强连通分量。<sup>[16](https://link.springer.com/article/10.1007/s00446-020-00388-x)</sup>

## References

1. [Partitions of and Equivalence Relations on Sets, Mathematics LibreTexts (Sklar, First-Semester Abstract Algebra)](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/First-Semester_Abstract_Algebra%3A_A_Structural_Approach_%28Sklar%29/07%3A_The_Wonderful_World_of_Cosets/7.01%3A_Partitions_of_and_Equivalence_Relations_on_Sets)
2. [Partitions of Sets, Enumerative Combinatorics (OpenMathBooks)](https://openmathbooks.org/ecm/ecm/sec_adv-stirling.html)
3. [DLMF §26.7 Set Partitions: Bell Numbers, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/26.7)
4. [DLMF §26.8 Set Partitions: Stirling Numbers, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/draft1/26.8)
5. [Michael Orlov (2002). Efficient Generation of Set Partitions.](https://noexec.org/public/papers/partitions.pdf)
6. [Set Partitions survey, The Electronic Journal of Combinatorics DS26 (2023)](https://www.combinatorics.org/files/Surveys/ds26/ds26v1-2023.pdf)
7. [Set Block, Wolfram MathWorld](https://mathworld.wolfram.com/SetBlock.html)
8. [Bell number diagrams, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Extras/Bell_Numbers/)
9. [Campbell, Dahlberg, Dorward, Gerhard, Grubb, Purcell, Sagan (2018). Restricted growth function patterns and statistics. Advances in Applied Mathematics 100, 1–42.](https://research.google/pubs/restricted-growth-function-patterns-and-statistics/)
10. [Boris Pittel (2000). Where the Typical Set Partitions Meet and Join. The Electronic Journal of Combinatorics 7(1), #R5.](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v7i1r5)
11. [Gian-Carlo Rota (1964). On the Foundations of Combinatorial Theory I. Theory of Möbius Functions. Zeitschrift für Wahrscheinlichkeitstheorie und Verwandte Gebiete 2, 340–368.](https://webhomes.maths.ed.ac.uk/~v1ranick/papers/rota1.pdf)
12. [Gian-Carlo Rota (1964). The Number of Partitions of a Set. The American Mathematical Monthly 71(5), 498–504.](https://webhomes.maths.ed.ac.uk/~v1ranick/papers/rota2.pdf)
13. [P. McCullagh. Introduction to Cumulants and Partition Lattices (commentary on Speed, Austral. J. Statist. 25, 378–388).](https://www.stat.berkeley.edu/~sandrine/Docs/TerrySelectedWorksSpringer/Version1/McCullagh/McCullagh.pdf)
14. [Nicholas M. Ercolani, Sabine Jansen, Daniel Ueltschi. Random partitions in statistical mechanics. Electronic Journal of Probability, pages 1–37.](https://www.maths.tcd.ie/EMIS/journals/EJP-ECP/article/view/3244/0.html)
15. [DLMF §26.20 Physical Applications, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/26.20)
16. [Concurrent disjoint set union. Distributed Computing (Springer, 2020).](https://link.springer.com/article/10.1007/s00446-020-00388-x)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics › Algebraic and analytic combinatorics › Integer partitions and partition theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/partition-of-a-set

English original: https://www.edgepedia.org/partition-of-a-set
