# 不相交集合

**不相交集合**是指没有公共元素的集合：两个集合 \( A \) 与 \( B \) 不相交，当且仅当它们的交集为空，即 \( A \cap B = \varnothing \)。<sup>[1](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/03%3A_Sets/3.03%3A_Operations_on_sets)</sup> 这一性质可推广到集合族，是分拆概念的基础，并赋予普通并集以计数规则和概率规则。一个相关的构造——不交并——通过给每个元素标记其来源集合，从任意集合出发构造出单个集合。<sup>[2](https://encyclopediaofmath.org/wiki/Disjoint_union)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( A \) 与 \( B \) 不相交（互斥），当且仅当 \( A \cap B = \varnothing \)<sup>[1](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/03%3A_Sets/3.03%3A_Operations_on_sets)</sup> |
| 集合族 | 若对所有 \( i \neq j \) 都有 \( A_i \cap A_j = \varnothing \)，则 \( A_1, A_2, \ldots \) 两两不相交<sup>[3](https://www.nsm.buffalo.edu/~cowen/teaching/course_material/411_511/reviewsets.pdf)</sup> |
| 计数 | 若 \( A \) 与 \( B \) 不相交，则 \( \#(A \cup B) = \#A + \#B \)；一般地 \( \#(A \cup B) = \#A + \#B - \#(A \cap B) \)<sup>[4](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/09%3A_Cardinality/9.03%3A_Cardinality_of_a_union)</sup> |
| 分拆 | \( A \) 的分拆是一族非空、两两不相交的集合，其并集为 \( A \)<sup>[5](https://math.libretexts.org/Courses/Monroe_Community_College/MTH_220_Discrete_Math/4%253A_Sets/4.5%253A_Index_Sets_and_Partitions)</sup> |
| 不交并 | \( \coprod_{\lambda} X_{\lambda} = \bigcup_{\lambda} X_{\lambda} \times \{\lambda\} \)，即不相交的标记副本之并；它是集合范畴中的余积<sup>[2](https://encyclopediaofmath.org/wiki/Disjoint_union)</sup> |
| 概率 | 不相交的事件称为互斥事件，对它们有 \( P(E_1 \cup E_2) = P(E_1) + P(E_2) \)<sup>[6](https://web.stanford.edu/class/stats305c/lectures/Probability.html)</sup> |

## 定义与基本例子

两个集合不相交，是指它们不共享任何元素，即不存在 \( x \) 使得 \( x \in A \) 且 \( x \in B \)。<sup>[1](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/03%3A_Sets/3.03%3A_Operations_on_sets)</sup> 集合 \( \{1,3,5\} \) 与 \( \{2,4,6\} \) 不相交，而 \( \{1,3,5\} \) 与 \( \{2,3,4\} \) 则不然，因为 3 同时属于两者。<sup>[1](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/03%3A_Sets/3.03%3A_Operations_on_sets)</sup> 空集与任何集合都不相交，因为它与任何集合的交集都为空。<sup>[3](https://www.nsm.buffalo.edu/~cowen/teaching/course_material/411_511/reviewsets.pdf)</sup>

**集合族。** 对于多于两个集合的情形，条件按两两方式陈述：若只要 \( i \neq j \) 就有 \( A_i \cap A_j = \varnothing \)，则称集合 \( A_1, A_2, A_3, \ldots \) 互不相交，或两两不相交。<sup>[3](https://www.nsm.buffalo.edu/~cowen/teaching/course_material/411_511/reviewsets.pdf)</sup> 两两不相交比整个族的交集为空更强：一个族可以没有任何元素属于所有成员，而其中两个成员仍然有重叠。<sup>[7](https://planetmath.org/DisjointUnion)</sup> 例如，对 \( n \in \mathbb{N} \)，单元素集 \( \{n\} \) 构成一个两两不相交的族，其并集为 \( \mathbb{N} \)。<sup>[8](https://github.com/antoniolupetti/algebrica/blob/main/sets-and-numbers/sets.md)</sup>

## 分拆

集合 \( A \) 的分拆是一个由非空集合组成的有限或无限集合族 \( \{A_1, A_2, A_3, \ldots\} \)，使得 \( A \) 是所有 \( A_i \) 的并集，且这些 \( A_i \) 互不相交。<sup>[5](https://math.libretexts.org/Courses/Monroe_Community_College/MTH_220_Discrete_Math/4%253A_Sets/4.5%253A_Index_Sets_and_Partitions)</sup> 当一个不相交族的成员的并集为 \( Y \) 时，也说它们构成 \( Y \) 的一个分解。<sup>[2](https://encyclopediaofmath.org/wiki/Disjoint_union)</sup> 分拆在概率论中很重要：将样本空间分成不相交的部分，可以使任何事件 \( B \) 按分拆拆成若干部分，这正是贝叶斯定理所用的思想。<sup>[9](https://connect.gonzaga.edu/asset/file/1257/Chapter02_v07.html)</sup>

## 用不相交集合计数

不相交性使并集的大小等于各集合大小之和。对于有限集，当 \( A \) 与 \( B \) 不相交时，\( \#(A \cup B) = \#A + \#B \)，对任意有限个两两不相交的集合也同样成立。<sup>[4](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/09%3A_Cardinality/9.03%3A_Cardinality_of_a_union)</sup> 当集合有重叠时，一般公式 \( \#(A \cup B) = \#A + \#B - \#(A \cap B) \) 修正了对共享元素的重复计数；集合 \( A \backslash B \)、\( B \backslash A \) 与 \( A \cap B \) 总是两两不相交的，且它们的并集为 \( A \cup B \)。<sup>[4](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/09%3A_Cardinality/9.03%3A_Cardinality_of_a_union)</sup> 若 \( A \) 与 \( B \) 有限且并非不相交，则 \( \#(A \cup B) < \#A + \#B \)。<sup>[1](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/03%3A_Sets/3.03%3A_Operations_on_sets)</sup>

## 不交并

不交并一词，记作 \( A \sqcup B \) 或 \( \coprod \)，有两种不同的含义。<sup>[10](https://math.stackexchange.com/questions/1631396/what-is-the-difference-between-disjoint-union-and-union)</sup> 第一种是恰好不相交的普通并集：\( A \sqcup B \) 等于 \( A \cup B \)，但该记号只可在 \( A \cap B = \varnothing \) 时使用。<sup>[10](https://math.stackexchange.com/questions/1631396/what-is-the-difference-between-disjoint-union-and-union)</sup> 第二种是强制不相交的构造。对于由 \( \lambda \in \Lambda \) 索引的族 \( X_\lambda \)，外部不交并通过给每个元素标记其索引来构造：\( \coprod_{\lambda \in \Lambda} X_\lambda = \bigcup_{\lambda \in \Lambda} X_\lambda \times \{\lambda\} \)，其单射为 \( i_\lambda(x) = (x, \lambda) \)，且这些单射的像互不相交。<sup>[2](https://encyclopediaofmath.org/wiki/Disjoint_union)</sup> 对于两个集合，可以取 \( A \sqcup B = A \times \{0\} \cup B \times \{1\} \)。<sup>[10](https://math.stackexchange.com/questions/1631396/what-is-the-difference-between-disjoint-union-and-union)</sup> 如果原来的集合已经两两不相交，则标记构造与它们的普通并集同构。<sup>[7](https://planetmath.org/DisjointUnion)</sup>

不交并具有泛性质：对任意一族映射 \( f_\lambda : X_\lambda \to Z \)，存在从该不交并到 \( Z \) 的映射 \( F \)，其在每个副本上的限制为 \( f_\lambda \)。<sup>[2](https://encyclopediaofmath.org/wiki/Disjoint_union)</sup> 这使它成为集合范畴中的余积。<sup>[11](https://mathworld.wolfram.com/Coproduct.html)</sup> 同一对象在其他范畴中以不同名称出现：在拓扑空间中，余积是带相应拓扑的不交并；在阿贝尔群中，它是直和；在群中，它是自由积。<sup>[11](https://mathworld.wolfram.com/Coproduct.html)</sup> 花束或楔和是带点集合的不交并，其中各基点被等同。<sup>[2](https://encyclopediaofmath.org/wiki/Disjoint_union)</sup>

## 在概率论与计算中的应用

在概率论中，表示事件的集合若不相交，则称为互斥事件，互斥事件的概率相加：\( P(E_1 \cup E_2) = P(E_1) + P(E_2) \)，对 \( n \) 个互斥事件推广为 \( \sum_{i=1}^{n} P(E_i) \)。<sup>[6](https://web.stanford.edu/class/stats305c/lectures/Probability.html)</sup> 事件 \( E \) 与其补集 \( E^c \) 总是互斥的，且 \( S = E \cup E^c \)。<sup>[6](https://web.stanford.edu/class/stats305c/lectures/Probability.html)</sup>

编程中的处理用不交并来合并存放不同形式数据的集合，例如将一组带条形码的物品与一组称重物品的购买记录合并。<sup>[12](https://www.open.edu/openlearn/digital-computing/data-and-processes-computing/content-section-4.4)</sup>

## 历史

格奥尔格·康托尔（Georg Cantor）在 1878 年发表于《克莱尔数学杂志》（*Crelles Journal für Mathematik*）的论文《关于流形学说的一项贡献》（"Ein Beitrag zur Mannifaltigkeitslehre"）中使用了集合花括号 \( \{a, b\} \)，其含义与现代不同：在那里 \( \{a,b\} \) 表示集合 \( a \) 与 \( b \) 的不交并，而非含两个元素的集合。\( \{a,b\} \) 的现代二元素读法由恩斯特·策梅洛（Ernst Zermelo）于 1907 年引入。<sup>[13](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/set/)</sup>

## References

1. [3.3: Operations on Sets, Mathematics LibreTexts (Morris and Morris)](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/03%3A_Sets/3.03%3A_Operations_on_sets)
2. [Disjoint union, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Disjoint_union)
3. [MTH 411/511 review: sets, University at Buffalo](https://www.nsm.buffalo.edu/~cowen/teaching/course_material/411_511/reviewsets.pdf)
4. [9.3: Cardinality of a Union, Mathematics LibreTexts (Morris and Morris)](https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Proofs_and_Concepts_-_The_Fundamentals_of_Abstract_Mathematics_%28Morris_and_Morris%29/09%3A_Cardinality/9.03%3A_Cardinality_of_a_union)
5. [4.5: Index Sets and Partitions, Mathematics LibreTexts](https://math.libretexts.org/Courses/Monroe_Community_College/MTH_220_Discrete_Math/4%253A_Sets/4.5%253A_Index_Sets_and_Partitions)
6. [Probability, STATS305C, Stanford University](https://web.stanford.edu/class/stats305c/lectures/Probability.html)
7. [Disjoint union, PlanetMath](https://planetmath.org/DisjointUnion)
8. [Sets, algebrica (GitHub, antoniolupetti)](https://github.com/antoniolupetti/algebrica/blob/main/sets-and-numbers/sets.md)
9. [Math 321, Chapter 2: Counting and Probability, Gonzaga University](https://connect.gonzaga.edu/asset/file/1257/Chapter02_v07.html)
10. [What is the difference between disjoint union and union? Mathematics Stack Exchange, answer by Eric Wofsey](https://math.stackexchange.com/questions/1631396/what-is-the-difference-between-disjoint-union-and-union)
11. [Coproduct, Wolfram MathWorld](https://mathworld.wolfram.com/Coproduct.html)
12. [Data and processes in computing: 3.3 Mixing different forms of data, OpenLearn, The Open University](https://www.open.edu/openlearn/digital-computing/data-and-processes-computing/content-section-4.4)
13. [Earliest Uses of Symbols of Set Theory and Logic, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/set/)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Set theory › Elementary set theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/disjoint-sets

English original: https://www.edgepedia.org/disjoint-sets
