# 商集

商集是集合在某个等价关系下所有等价类构成的集合，记作 \( A/\sim \)，其中 \( A \) 是一个集合，\( \sim \) 是一个关系。每个等价类把该关系判定为不可区分的元素聚在一起，因此商集把每个类视为一个单独的对象，从而将等价转化为相等。<sup>[1](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup><sup> • </sup><sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( A/\sim = \{[a] : a \in A\} \)，其中 \( [a] = \{b \in A : b \sim a\} \) 是 \( a \) 的等价类<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> |
| 划分性质 | 各等价类非空、两两不交，并且覆盖 \( A \)；任意两个类要么相等要么不交<sup>[1](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup> |
| 典范投影 | \( \pi : A \to A/\sim \)，\( a \mapsto [a] \)，是满射，其纤维恰好就是各等价类；它几乎从不是单射<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup><sup> • </sup><sup>[3](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Foundations%253A_An_Introduction_to_Topics_in_Discrete_Mathematics_%28Sylvestre%29/18%253A_Equivalence_relations/18.03%253A_Classes_partitions_and_quotients)</sup> |
| 标准例子 | \( \mathbb{Z} \) 上的模 \( n \) 同余给出 \( n \) 个类 \( [0], [1], \ldots, [n-1] \)，即模 \( n \) 的整数<sup>[4](https://www.maths.usyd.edu.au/u/bobh/UoS/rfwhole.pdf)</sup><sup> • </sup><sup>[5](https://www.math.ucla.edu/~sharifi/notes/algebra-ch01.html)</sup> |
| 数系 | 整数和有理数分别被构造为自然数对与整数对的商集<sup>[6](https://courses.grainger.illinois.edu/cs476/sp2012/sets.pdf)</sup> |
| 集合论地位 | \( A/\sim \) 是幂集 \( \mathcal{P}(A) \) 的子集，因此其存在性由幂集公理和分离公理推出<sup>[7](https://math.stackexchange.com/questions/4849441/axiomatic-justification-of-the-quotient-set-being-a-set-rather-than-a-class)</sup> |
| 计数用途 | 若一个含 \( p \) 个元素的集合被划分为 \( q \) 个大小均为 \( r \) 的块，则 \( q = p/r \)<sup>[8](https://discrete.openmathbooks.org/more/mdm/sec_basic-quotient.html)</sup> |

## 从等价关系到划分

集合 \( A \) 上的等价关系是满足自反、对称、传递的关系：\( a \sim a \)；\( a \sim b \) 蕴含 \( b \sim a \)；\( a \sim b \) 且 \( b \sim c \) 蕴含 \( a \sim c \)。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> 对每个 \( a \in A \)，其等价类为 \( [a] = \{b \in A : b \sim a\} \)。自反性保证 \( a \in [a] \)，所以没有类是空的，且各等价类覆盖 \( A \)。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup>

各等价类若相交则必然重合。若 \( c \in [a] \cap [b] \)，则 \( a \sim c \) 且 \( c \sim b \)，由传递性得 \( a \sim b \)，进而 \( d \in [a] \) 蕴含 \( d \sim a \sim b \)，从而 \( [a] = [b] \)。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> 因此各等价类构成 \( A \) 的一个划分：非空、两两不交的块覆盖整个集合。<sup>[1](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup> 这种对应是双向的。给定 \( A \) 的任意划分，规定两个元素恰好当它们位于同一块时等价，就定义了一个等价关系，其等价类正是这些块，因此 \( A \) 上的等价关系与 \( A \) 的划分之间存在双射对应。<sup>[3](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Foundations%253A_An_Introduction_to_Topics_in_Discrete_Mathematics_%28Sylvestre%29/18%253A_Equivalence_relations/18.03%253A_Classes_partitions_and_quotients)</sup>

## 标准例子

**模 n 同余。** 固定正整数 \( n \)，当 \( a - b \) 是 \( n \) 的倍数时称 \( a \equiv b \)。这是 \( \mathbb{Z} \) 上的等价关系，每个整数恰好与 \( 0, 1, \ldots, n-1 \) 中的一个同余，因此商集有 \( n \) 个类。<sup>[4](https://www.maths.usyd.edu.au/u/bobh/UoS/rfwhole.pdf)</sup> 模 2 时两个类是偶数与奇数；模 3 时是余数为 0、1、2 的整数。<sup>[9](https://math.berkeley.edu/~giventh/113/grf_sample.pdf)</sup> \( a \) 的等价类是集合 \( \{a + bn : b \in \mathbb{Z}\} \)，称为同余类，商集记作 \( \mathbb{Z}/n\mathbb{Z} \)，即模 \( n \) 的整数。<sup>[5](https://www.math.ucla.edu/~sharifi/notes/algebra-ch01.html)</sup>

**有理数。** 在 \( A = \mathbb{Z} \times (\mathbb{Z} - \{0\}) \) 上，当 \( ad = bc \) 时称 \( (a,b) \sim (c,d) \)。等价类 \( [(a,b)] \) 恰好由表示分数 \( a/b \) 的那些对组成，因此商集与 \( \mathbb{Q} \) 自然双射，而满足 \( b > 0 \) 且 \( \gcd(a,b) = 1 \) 的数对构成一个代表系。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup>

**从自然数构造整数。** 每个整数都是两个自然数之差，\( \mathbb{Z} \) 可定义为 \( \mathbb{N} \times \mathbb{N} \) 在如下等价关系下的商集：当 \( x + y' = x' + y \) 时，\( (x,y) \sim (x',y') \)；类 \( [(7,0)] = [(15,8)] \) 代表 7，而 \( [(0,7)] \) 代表 \( -7 \)。<sup>[6](https://courses.grainger.illinois.edu/cs476/sp2012/sets.pdf)</sup>

**几何例子。** 在平面上所有圆构成的集合上，全等是一个等价关系，商集通过半径与正实数区间 \( (0,\infty) \) 自然双射；这是模空间的一个简单实例——模空间是按某种选定的“相同”标准对对象进行分类的空间。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> 在拓扑学中，将区间 \( [0,1] \) 的两个端点宣布为等价，在商构造下就得到一个圆。<sup>[10](https://a-warded.org/open-book/university-topology/lesson-22)</sup>

## 典范投影与泛性质

每个商集都带有典范投影 \( \pi : A \to A/\sim \)，把 \( a \) 送到 \( [a] \)。它按构造是满射，其纤维恰好是各等价类；只有当关系本身就是相等时它才是单射，此时商集是单元素子集构成的集合。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup><sup> • </sup><sup>[11](https://webapps.math.uci.edu/~ndonalds/math13/notes.html)</sup>

该投影满足一个刻画商集的泛性质：对任意集合 \( Y \) 和任意尊重该关系的函数 \( f : A \to Y \)（即 \( a \sim b \) 蕴含 \( f(a) = f(b) \)），存在唯一的函数 \( \tilde{f} : A/\sim \to Y \) 使得 \( f = \tilde{f} \circ \pi \)。<sup>[12](https://dustbringer.github.io/notes/2023-03-18-cat-theory-universal-property/)</sup> 用范畴论的话说，商集是将 \( \sim \)-相关元素视为相同元素的泛方式，它可以描述为从关系 \( R \subseteq A \times A \) 到 \( A \) 的两个投影的余等化子。<sup>[13](https://mathstruct.org/CategoryTheory-ML-Wiki/Quotient-Set)</sup>

## 商集上的良定义函数

从商集出发定义函数需要小心，因为每个输入都有许多代表元。写成 \( [x] \mapsto f(x) \) 的规则只有当 \( x \sim y \) 蕴含 \( f(x) = f(y) \) 时才是良定义的；否则输出将依赖于所选的代表元，而函数不允许这样。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup>

反例很容易构造。从 \( \mathbb{Q} \) 到 \( \mathbb{Z} \) 的规则 \( a/b \mapsto a + b \) 不是良定义的，因为 \( 1/2 \) 和 \( (-2)/(-4) \) 表示同一个有理数，却给出输出 3 和 \( -6 \)。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> 相比之下，\( a/b \mapsto a^2/b^2 \) 是良定义的，因为 \( ad = bc \) 蕴含 \( a^2 d^2 = b^2 c^2 \)。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> 同样的检验也是 \( \mathbb{Z}/n\mathbb{Z} \) 上算术的基础，其中 \( [a] + [b] = [a+b] \) 和 \( [a] \cdot [b] = [ab] \) 必须针对代表元的选择加以验证。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup>

## 代表元与选择公理

类 \( C \) 的代表元是任意 \( a \in C \)，而代表系是 \( A \) 的一个子集，它与每个类恰好相交一次。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup> 对许多商集，代表系可以显式写出：模 \( n \) 同余用 \( \{0, 1, \ldots, n-1\} \)，\( \mathbb{Q} \) 用分母为正的既约分数。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup>

然而在完全一般的情形下，从任意等价关系的每个类中选出一个代表元等价于选择公理，没有它就无法保证这样的集合存在。<sup>[14](https://math.stackexchange.com/questions/4207745/how-to-think-about-a-quotient-sets-modulo-an-equivalence-relation-and-well-defi/4207793)</sup><sup> • </sup><sup>[15](https://math.stackexchange.com/questions/286602/equivalence-relations-and-the-axiom-of-choice)</sup> 商集本身不需要这种选择：由幂集公理和分离公理，它作为幂集 \( \mathcal{P}(A) \) 的子集存在，而从商集出发的函数可以通过泛性质定义，无需选取代表元。<sup>[7](https://math.stackexchange.com/questions/4849441/axiomatic-justification-of-the-quotient-set-being-a-set-rather-than-a-class)</sup><sup> • </sup><sup>[15](https://math.stackexchange.com/questions/286602/equivalence-relations-and-the-axiom-of-choice)</sup>

## 继承结构与用途

当 \( A \) 带有与该关系相容的代数或拓扑结构时，商集通常继承这种结构。模 \( n \) 的同余类构成环 \( \mathbb{Z}/n\mathbb{Z} \)；对群 \( G \) 和正规子群 \( N \)，当 \( gh^{-1} \in N \) 时称 \( g \sim h \) 的关系产生商群 \( G/N \)。<sup>[2](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)</sup><sup> • </sup><sup>[16](https://math-cs-compass.com/Mathematics/Discrete/sets_universal_constructions.html)</sup> 在拓扑学中，同样的集合层面构造配上商拓扑，产生商空间，例如从区间得到圆。<sup>[10](https://a-warded.org/open-book/university-topology/lesson-22)</sup> 在计算机科学中，商构造通过宣布某些具体值不可区分，从具体类型定义抽象类型；Lean 等证明助手实现了商类型，其元素是等价类，要求从商集出发的每个函数都证明它尊重该关系。<sup>[17](https://arxiv.org/abs/1907.07591)</sup><sup> • </sup><sup>[18](https://lean-lang.org/doc/reference/latest/The-Type-System/Quotients/)</sup>

这一构造也用于计数。若一个含 \( p \) 个元素的有限集合分裂为大小均为 \( r \) 的类，则商集有 \( q = p/r \) 个元素；计算排列数并除以每个类的大小，由此得到二项式系数。<sup>[8](https://discrete.openmathbooks.org/more/mdm/sec_basic-quotient.html)</sup>

## References

1. [Basic Set Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)
2. [Equivalence Relations and Quotient Sets, Math 55 handout, UC Berkeley](https://math.berkeley.edu/~hhao/teaching/N55%20Summer%202024/Equivalence%20Relations%20and%20Quotient%20Sets.pdf)
3. [Classes, partitions, and quotients, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Foundations%253A_An_Introduction_to_Topics_in_Discrete_Mathematics_%28Sylvestre%29/18%253A_Equivalence_relations/18.03%253A_Classes_partitions_and_quotients)
4. [Quotients of the ring of integers, University of Sydney course notes](https://www.maths.usyd.edu.au/u/bobh/UoS/rfwhole.pdf)
5. [Abstract Algebra, Chapter 1: Set theory, Romyar Sharifi, UCLA](https://www.math.ucla.edu/~sharifi/notes/algebra-ch01.html)
6. [Sets and relations course notes, University of Illinois CS 476](https://courses.grainger.illinois.edu/cs476/sp2012/sets.pdf)
7. [Axiomatic justification of the quotient set being a set, Mathematics Stack Exchange](https://math.stackexchange.com/questions/4849441/axiomatic-justification-of-the-quotient-set-being-a-set-rather-than-a-class)
8. [Counting with Equivalence, Open Math Books](https://discrete.openmathbooks.org/more/mdm/sec_basic-quotient.html)
9. [Groups, Rings, and Fields lecture notes, UC Berkeley](https://math.berkeley.edu/~giventh/113/grf_sample.pdf)
10. [The Quotient Topology, A-Warded university topology text](https://a-warded.org/open-book/university-topology/lesson-22)
11. [Math 13 notes, UC Irvine](https://webapps.math.uci.edu/~ndonalds/math13/notes.html)
12. [Universal property, dustbringer notes](https://dustbringer.github.io/notes/2023-03-18-cat-theory-universal-property/)
13. [Quotient Set, MathStruct wiki](https://mathstruct.org/CategoryTheory-ML-Wiki/Quotient-Set)
14. [Quotient sets modulo an equivalence relation and well-defined functions, Mathematics Stack Exchange](https://math.stackexchange.com/questions/4207745/how-to-think-about-a-quotient-sets-modulo-an-equivalence-relation-and-well-defi/4207793)
15. [Equivalence relations and the axiom of choice, Mathematics Stack Exchange](https://math.stackexchange.com/questions/286602/equivalence-relations-and-the-axiom-of-choice)
16. [Category of Sets, MATH-CS COMPASS](https://math-cs-compass.com/Mathematics/Discrete/sets_universal_constructions.html)
17. [Defining Functions on Equivalence Classes, arXiv:1907.07591](https://arxiv.org/abs/1907.07591)
18. [Quotients, Lean language reference](https://lean-lang.org/doc/reference/latest/The-Type-System/Quotients/)

---
*Initially written 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/quotient-set

English original: https://www.edgepedia.org/quotient-set
