# 并集（集合论）

在集合论中，两个集合的**并集**是这样一种集合：其成员恰好是属于这两个集合中至少一个的所有对象。对于类或集合A与B，并集A ∪ B定义为A ∪ B = {x : (x ∈ A) ∨ (x ∈ B)}，因此x属于A ∪ B当且仅当x ∈ A或x ∈ B。<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup> 同样的思想可推广到整个集族：若A是一个由类构成的非空类，则并集⋃C∈A C恰好包含那些属于A中某个C的x。<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 二元定义 | A ∪ B = {x : (x ∈ A) ∨ (x ∈ B)}；隶属关系要求属于两个集合中的至少一个<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup> |
| 广义并集 | 对于集合的集合x，⋃x恰好包含x的诸成员的元素：z ∈ ⋃x ↔ ∃w ∈ x (z ∈ w)<sup>[2](https://math.ucla.edu/~marks/notes/set_theory_notes.pdf)</sup> |
| 公理基础 | 并集公理断言：对于每个集合的集合x，并集⋃x本身也是一个集合<sup>[2](https://math.ucla.edu/~marks/notes/set_theory_notes.pdf)</sup><sup> • </sup><sup>[3](https://cs.lmu.edu/~ray/notes/settheory/)</sup> |
| 由公理导出二元并集 | A ∪ B即⋃{A, B}；配对公理保证{A, B}存在，并集公理随即作用于它<sup>[3](https://cs.lmu.edu/~ray/notes/settheory/)</sup> |
| 代数定律 | 并集满足交换律（R ∪ S = S ∪ R）、结合律（(R ∪ S) ∪ T = R ∪ (S ∪ T)）和幂等律（R ∪ R = R）<sup>[4](https://www.onenoughtone.com/learn/set-operations/1)</sup> |
| 与逻辑的关系 | 并集对应逻辑或：x ∈ A ∪ B即公式(x ∈ A) ∨ (x ∈ B)<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup><sup> • </sup><sup>[5](https://web.sas.upenn.edu/ancoop/2018/10/10/set-operations-and-subsets/)</sup> |
| 在数据库中的用途 | 在关系代数中，并集用于合并结果表，支持诸如合并来自多个地区数据库的客户记录、同时查询活动记录与归档记录等任务<sup>[4](https://www.onenoughtone.com/learn/set-operations/1)</sup> |

## 定义与记号

二元并集通过隶属标准而非列举元素来定义：x ∈ A ∪ B当且仅当x ∈ A或x ∈ B。<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup>

对于集族，记号采用大并集：⋃C∈A C = {x : 对某个C ∈ A，x ∈ C}。<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup> 补运算、交集与并集共同构成基本的类运算，新的类和集合正是由此构造出来的；维恩图在解释这些运算时可作为直观的辅助工具。<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup>

## 并集公理

在公理化集合论中，并集不仅仅是被定义的对象，其存在性还得到公理的保证。并集公理指出：给定任意集合的集合x，存在一个集合恰好包含那些集合的所有元素，记作⋃x；确切地说，y = ⋃x意味着∀z[z ∈ y ↔ ∃w ∈ x (z ∈ w)]。<sup>[2](https://math.ucla.edu/~marks/notes/set_theory_notes.pdf)</sup> LMU的表述以一阶形式表达了同样的思想：∀A ∃U ∀x (x ∈ U ↔ ∃S ∈ A, x ∈ S)，即给定一个集合的集合，我们可以构造一个集合，它包含且仅包含那些集合的元素。<sup>[3](https://cs.lmu.edu/~ray/notes/settheory/)</sup>

二元并集则是其特例。集合{A, B}由配对公理保证存在，而既然它是一个集合，并集公理便可作用于它，得到⋃{A, B}；为方便起见，当只涉及两个集合时，人们将⋃{A, B}写作A ∪ B。<sup>[3](https://cs.lmu.edu/~ray/notes/settheory/)</sup> 在ZF集合论中，同样的构造表现为公理A5：A ∪ B，即集合{A, B}的并集，存在。<sup>[6](https://www.math.wustl.edu/~freiwald/ch1.pdf)</sup> 不同教材对这条公理的陈述方式各异：一种常见的表述中，并集公理声称一个集合的并集是一个集合；而另一种表述则仅仅声称⋃x存在。<sup>[7](https://sci.mu.edu.iq/wp-content/uploads/2021/08/Foundations-of-Mathematicsmathetal.net_.pdf)</sup>

并集公理还与其他公理相结合。与配对公理一起，它可证明对所有集合x和y，x ∪ y存在，因为x ∪ y = ⋃{x, y}。<sup>[2](https://math.ucla.edu/~marks/notes/set_theory_notes.pdf)</sup> 无穷公理断言存在一个包含∅且在y ↦ y ∪ {y}下封闭的归纳集，其陈述本身就使用了并集。<sup>[2](https://math.ucla.edu/~marks/notes/set_theory_notes.pdf)</sup>

## 代数定律

并集是一种代数运算。它满足交换律、结合律和幂等律：R ∪ S = S ∪ R，(R ∪ S) ∪ T = R ∪ (S ∪ T)，以及R ∪ R = R。<sup>[4](https://www.onenoughtone.com/learn/set-operations/1)</sup> 这些定律来自命题逻辑，因为并集是通过析取来定义的：(x ∈ A) ∨ (x ∈ B)等价于(x ∈ B) ∨ (x ∈ A)，这直接由定义给出交换律。<sup>[5](https://web.sas.upenn.edu/ancoop/2018/10/10/set-operations-and-subsets/)</sup>

并集与交集通过分配律和德摩根律相互作用，这些定律与基本的并集和交集运算一起，对类和集合均有陈述。<sup>[1](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)</sup>

## 并集在数学与应用中的体现

并集在整个数学中随处可见，它是从较小集合构造较大集合的一种方式。在描述集合论中，博雷尔集——即可定义集的首个层级体系，由埃米尔·博雷尔（Émile Borel）在1898年的著作中引入——是通过可数并集与补运算的迭代应用从开集得到的。<sup>[8](https://plato.stanford.edu/entries/settheory-early/)</sup> 在ZF的构造主义与直觉主义变体中，并集公理同样允许人们在给定集合X的情况下，构造一个集合Y，其元素是X的元素的元素。<sup>[9](https://plato.stanford.edu/archives/fall2024/entries/set-theory-constructive/axioms-CZF-IZF.html)</sup>

在计算领域，并集是关系代数的核心运算，而关系代数正是数据库查询语言的理论基础。实际应用包括：整合数据，例如合并存放在多个地区数据库中的客户记录；按时间聚合，例如将不同月份或季度的销售数据汇总在一起；跨多个数据源的查询，同时覆盖活动记录与归档记录；将复杂的逻辑或条件拆分为由并集连接的各个选择；合并分布式数据库中水平分区的表的结果；以及生成跨多个类别的报表。<sup>[4](https://www.onenoughtone.com/learn/set-operations/1)</sup> 集合论中的并集类型也出现在编程语言的类型系统中，其中并集、交集与否定类型连接词为分支、模式匹配和函数重载的精确类型化提供了支持。<sup>[10](https://arxiv.org/abs/2111.03354)</sup>

## References

1. [André, R. An Introduction to Axiomatic Reasoning, Chapter 3: Operations on classes and sets, University of Waterloo](https://www.math.uwaterloo.ca/~randre/sets/Axiom_Book_Proofread.pdf)
2. [Mark's Set Theory Notes, UCLA Department of Mathematics](https://math.ucla.edu/~marks/notes/set_theory_notes.pdf)
3. [Notes on Set Theory (axioms of pairing and union), Loyola Marymount University](https://cs.lmu.edu/~ray/notes/settheory/)
4. [Set Operations in Relational Algebra, OneNoughtOne](https://www.onenoughtone.com/learn/set-operations/1)
5. [Cooper, A. Set Operations and Subsets, University of Pennsylvania](https://web.sas.upenn.edu/ancoop/2018/10/10/set-operations-and-subsets/)
6. [Freiwald, J. Chapter 1: Sets, Washington University in St. Louis](https://www.math.wustl.edu/~freiwald/ch1.pdf)
7. [Foundations of Mathematics, Chapter 3: The Theory of Membership](https://sci.mu.edu.iq/wp-content/uploads/2021/08/Foundations-of-Mathematicsmathetal.net_.pdf)
8. [The Early Development of Set Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/settheory-early/)
9. [Set Theory: Constructive and Intuitionistic ZF, Axioms of CZF and IZF, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/archives/fall2024/entries/set-theory-constructive/axioms-CZF-IZF.html)
10. [Castagna, G. Programming with union, intersection, and negation types, arXiv:2111.03354](https://arxiv.org/abs/2111.03354)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 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/union-set-theory

English original: https://www.edgepedia.org/union-set-theory
