# 笛卡尔积

对于任意两个集合 \( A \) 和 \( B \)，它们的笛卡尔积记作 \( A \times B \)，由所有有序对 \( (a, b) \) 组成，其中 \( a \) 是 \( A \) 的元素，\( b \) 是 \( B \) 的元素：\( A \times B = \{(a, b) : a \in A,\ b \in B\} \)<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup>。它也称为积集、集合直积或叉积<sup>[2](https://mathworld.wolfram.com/CartesianProduct.html)</sup>，其名称来自勒内·笛卡尔（René Descartes）对解析几何的表述，尽管历史学家对这一归属有所保留<sup>[2](https://mathworld.wolfram.com/CartesianProduct.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( A \times B = \{(a,b) : a \in A,\ b \in B\} \)，即所有第一个分量属于 \( A \)、第二个分量属于 \( B \) 的有序对构成的集合<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup> |
| 有序对性质 | \( (x,y) = (x',y') \) 当且仅当 \( x = x' \) 且 \( y = y' \)；因此 \( (3,5) \neq (5,3) \)，这与集合 \( \{3,5\} \) 和 \( \{5,3\} \) 不同<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup> |
| 集合论构造 | 有序对 \( (a,b) \) 可定义为集合 \( \{\{a\},\{a,b\}\} \)<sup>[3](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup> |
| 大小 | \( |A \times B| = |A| \, |B| \)；若任一因子为空，则积为空<sup>[4](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch2.S5.html)</sup><sup> • </sup><sup>[5](https://encyclopediaofmath.org/wiki/Direct_product)</sup> |
| 非交换性 | 一般来说 \( A \times B \neq B \times A \)，尽管两个集合的元素个数总是相同<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup> |
| 无限积 | 任意多个非空集合的笛卡尔积非空这一陈述等价于选择公理<sup>[6](https://www.math.ucla.edu/~rse/algebra_book.pdf)</sup> |
| 数据库应用 | 在 SQL 中，`CROSS JOIN` 产生两个表的笛卡尔积；连接 \( N \) 行和 \( M \) 行的表得到 \( N \cdot M \) 行<sup>[7](https://www.postgresql.org/files/documentation/pdf/9.3/postgresql-9.3-A4.pdf)</sup> |

## 有序对

积建立在有序对的概念之上，有序对是具有第一个分量和第二个分量的对象。两个有序对相等，当且仅当对应的两个分量都相等：\( (x, y) = (x', y') \) 当且仅当 \( x = x' \) 且 \( y = y' \)<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup>。这正是有序对与无序集合的区别所在，在无序集合中 \( \{3, 5\} \) 和 \( \{5, 3\} \) 是同一个集合<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup>。

由于集合论中的一切事物都必须是集合，有序对本身也被定义为一个集合。标准定义由卡齐米日·库拉托夫斯基（Kazimierz Kuratowski）给出，令 \( (a, b) = \{\{a\}, \{a, b\}\} \)；可以验证，两个这样的集合相等当且仅当它们的第一坐标相等且第二坐标相等，因此该定义恰好具有有序对所需的那种性质<sup>[3](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup>。诺伯特·维纳（Norbert Wiener）在1914年给出的更早的构造用集合捕捉了同样的排序思想，\( \langle x, y \rangle = \{\{\{x\}, \emptyset\}, \{\{y\}\}\} \)<sup>[8](https://plato.stanford.edu/entries/principia-mathematica/)</sup>。

## 定义与基本行为

有了有序对，积的定义便顺理成章。例如，若 \( X = \{1, 2\} \) 且 \( Y = \{3, 4, 5\} \)，则 \( X \times Y = \{(1,3), (1,4), (1,5), (2,3), (2,4), (2,5)\} \)，而 \( Y \times X = \{(3,1), (4,1), (5,1), (3,2), (4,2), (5,2)\} \)<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup>。这两个积是不同的集合，因为其中的对不同，但它们的元素个数总是相同<sup>[1](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)</sup>。

**大小与空性。** 对于有限集，大小相乘：\( |A \times B| = |A|\,|B| \)<sup>[4](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch2.S5.html)</sup>。若任一因子为空，则积为空，因为无法形成任何对<sup>[5](https://encyclopediaofmath.org/wiki/Direct_product)</sup>。反过来，两个非空集合的积非空，由任意一对 \( (x, y) \) 见证；同样的直接论证适用于三个、四个或任意有限多个因子<sup>[9](https://www.math.ucla.edu/~biskup/131bh.1.23s/PDFs/131AH-notes.pdf)</sup>。

## 多个集合的积

有序对可推广到有序三元组 \( (a, b, c) \)，定义为 \( (a, (b, c)) \)，并一般地推广到有序 \( n \)-元组 \( (a_1, \ldots, a_n) \)，定义为 \( (a_1, (a_2, \ldots, a_n)) \)<sup>[3](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup>。积 \( A_1 \times \cdots \times A_n \) 是所有满足对每个 \( i \) 都有 \( a_i \in A_i \) 的 \( n \)-元组构成的集合，集合 \( A \) 与自身的 \( n \) 重积写作 \( A^n \)<sup>[3](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup>。

主要的几何例子是平面 \( \mathbb{R} \times \mathbb{R} \) 和欧几里得三维空间 \( \mathbb{R} \times \mathbb{R} \times \mathbb{R} \)<sup>[2](https://mathworld.wolfram.com/CartesianProduct.html)</sup>。平面是实数轴与自身的笛卡尔积，这种将点与有序数对等同起来的做法是一般概念的历史根源<sup>[10](https://proofwiki.org/wiki/Definition%3ACartesian_Product)</sup>。

对于任意指标集 \( I \)，且对每个 \( i \in I \) 都有一个集合 \( A_i \)，积 \( \prod_{i \in I} A_i \) 定义为所有函数 \( f : I \to \bigcup_{i \in I} A_i \) 构成的集合，其中对每个 \( i \) 都有 \( f(i) \in A_i \)<sup>[6](https://www.math.ucla.edu/~rse/algebra_book.pdf)</sup>。在此定义下，\( \prod_{\alpha \in \mathbb{Z}} \mathbb{R} \) 的元素既可视为实数的无限序列，也可视为从 \( \mathbb{Z} \) 到 \( \mathbb{R} \) 的函数，而 \( \mathbb{R}^{\mathbb{R}} \) 是从 \( \mathbb{R} \) 到 \( \mathbb{R} \) 的所有函数构成的集合<sup>[11](https://www.math.ucla.edu/~tao/resource/general/121.1.00s/product.pdf)</sup>。

## 关系与函数

积为关系和函数的集合论定义提供了框架。集合 \( A \) 上的二元关系是 \( A \times A \) 的子集，\( n \) 元关系是 \( A^n \) 的子集<sup>[3](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup>。从 \( A \) 到 \( B \) 的函数是一种特殊的关系，即 \( A \times B \) 的一个子集，其中 \( A \) 的每个元素恰好出现一次作为某个对的第一个分量<sup>[3](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)</sup>。这正是使得函数、关系及其图像可以统一作为集合来处理的原因。

## 选择公理

对于有限积，非空性很容易证明。对于无限指标集 \( I \)，要产生 \( \prod_{i \in I} A_i \) 的一个元素，意味着同时从每个 \( A_i \) 中选取一个元素，而对于不可数的 \( I \)，这可能需要不可数多次选择<sup>[12](https://www.math.ucla.edu/~sharifi/notes/topology-ch02.html)</sup>。事实上，选择公理正是说非空集合的笛卡尔积永远不会为空，而这一陈述与选择公理等价；该公理的一种标准表述是：只要每个 \( i \in I \) 对应的集合 \( A_i \) 非空，则所有满足对每个 \( i \in I \) 都有 \( f(i) \in A_i \) 的选择函数 \( f : I \to \bigcup_{I} A_i \) 构成的集合非空。<sup>[6](https://www.math.ucla.edu/~rse/algebra_book.pdf)</sup> 没有某种形式的选择，可能存在无限多个非空集合，其积不含任何元素<sup>[12](https://www.math.ucla.edu/~sharifi/notes/topology-ch02.html)</sup>。

## 数学其他领域中的积

只要集合带有额外结构，这一构造便可推广。在拓扑学中，一族拓扑空间的积以底层集合的笛卡尔积为底层集合，配以积拓扑，即使所有自然投影都连续的最弱拓扑<sup>[13](https://encyclopediaofmath.org/wiki/Product_topology)</sup>。在图论中，图的笛卡尔积 \( G_1 \times G_2 \) 以 \( V_1 \times V_2 \) 为顶点集，邻接规则由因子的邻接规则构建<sup>[14](https://encyclopediaofmath.org/wiki/Graph)</sup>。

在数据库中，积表现为关系上的一个算子。关系代数的积算子，也称笛卡尔积或叉积，返回两个关系中元组的所有可能组合<sup>[15](https://openstax.org/books/introduction-computer-science/pages/8-3-relational-database-management-systems)</sup>。在 SQL 中，`CROSS JOIN` 和 `INNER JOIN` 产生简单的笛卡尔积，后者受连接条件的限制，而 \( N \) 行和 \( M \) 行的表的交叉连接产生 \( N \cdot M \) 行<sup>[7](https://www.postgresql.org/files/documentation/pdf/9.3/postgresql-9.3-A4.pdf)</sup>。

## 名称与历史

积以勒内·笛卡尔命名，因为它起源于他对解析几何的表述<sup>[2](https://mathworld.wolfram.com/CartesianProduct.html)</sup>。这一归属需要加以限定：斯坦福哲学百科全书指出，笛卡尔的《几何学》中并未发展笛卡尔坐标系，他也不是以他名字命名的概念（如笛卡尔积）的创始者<sup>[16](https://plato.stanford.edu/entries/descartes-works/)</sup>。历史学家卡尔·博耶（Carl Boyer）认为这一术语是时代错置，因为笛卡尔从未将他的坐标视为数对；相反，将每个点与有序对 \( (x, y) \) 等同起来的现代坐标系是从笛卡尔的几何思想中发展出来的，随后又反过来催生了将任意两个集合相乘的更广泛概念<sup>[17](https://www.themathdoctors.org/cartesian-product-of-sets/)</sup>。

## 基数注记

对于无限集，积的行为方式超出有限直觉的预料。非空集合的可数无限笛卡尔积是不可数的，只要其中无限多个因子至少有两个元素，即使每个因子恰好有两个元素时也是如此<sup>[18](https://www.math.cmu.edu/users/math/math/jmackey/summer/bws_book.pdf)</sup><sup> • </sup><sup>[19](https://planetmath.org/thecartesianproductofafinitenumberofcountablesetsiscountable)</sup>。

## References

1. [Terence Tao, *An Introduction to Measure Theory* course notes / Math 401 set theory notes, Definition 3.5.4, University of New Mexico](https://www.math.unm.edu/~crisp/courses/math401/tao.pdf)
2. [Cartesian Product, Wolfram MathWorld](https://mathworld.wolfram.com/CartesianProduct.html)
3. [Set Theory: Basic Set Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/set-theory/basic-set-theory.html)
4. [MATH0005 Algebra 1, Chapter 2.5 Cartesian products, University College London](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch2.S5.html)
5. [Direct product, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Direct_product)
6. [R. S. (author), algebra text, Appendix A: Axiom of Choice and Zorn's Lemma, UCLA](https://www.math.ucla.edu/~rse/algebra_book.pdf)
7. [PostgreSQL 9.3 Documentation, Chapter 7: Queries](https://www.postgresql.org/files/documentation/pdf/9.3/postgresql-9.3-A4.pdf)
8. [Principia Mathematica, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/principia-mathematica/)
9. [MATH 131AH lecture notes, UCLA](https://www.math.ucla.edu/~biskup/131bh.1.23s/PDFs/131AH-notes.pdf)
10. [Definition: Cartesian Product, ProofWiki](https://proofwiki.org/wiki/Definition%3ACartesian_Product)
11. [Terence Tao, class notes week 8, infinite Cartesian products, UCLA](https://www.math.ucla.edu/~tao/resource/general/121.1.00s/product.pdf)
12. [Romyar Sharifi, Point-Set Topology notes, Chapter 2, UCLA](https://www.math.ucla.edu/~sharifi/notes/topology-ch02.html)
13. [Topological product, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Product_topology)
14. [Graph, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Graph)
15. [Relational Database Management Systems, OpenStax Introduction to Computer Science](https://openstax.org/books/introduction-computer-science/pages/8-3-relational-database-management-systems)
16. [Descartes' Life and Works, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/descartes-works/)
17. [Cartesian Product of Sets, The Math Doctors](https://www.themathdoctors.org/cartesian-product-of-sets/)
18. [J. Mackey, *Everything You Always Wanted To Know About ...*, Carnegie Mellon University](https://www.math.cmu.edu/users/math/math/jmackey/summer/bws_book.pdf)
19. [the Cartesian product of a finite number of countable sets is countable](https://planetmath.org/thecartesianproductofafinitenumberofcountablesetsiscountable)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; 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/cartesian-product

English original: https://www.edgepedia.org/cartesian-product
