# 双射证明

双射证明是一种证明两个计数表达式相等的方法：它在被计数的两个集合之间构造一个显式的一一对应。它不是用代数方法计算两边，而是给出一个函数，把一类中的每个对象恰好与另一类中的一个对象配对，计数相等便立即随之成立。组合学家珍视这类证明，因为它们通常能让一个命题变得非常清晰，产生有趣的推广，并且往往具有美感。<sup>[1](https://math.mit.edu/~rstan/papers/comb.pdf)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7519258/)</sup> 用范畴论的话说，这种方法通过取结构集合之间一个同构的基数来证明一个自然数恒等式，是范畴化的一个特例。<sup>[3](https://ncatlab.org/nlab/show/bijective%20proof)</sup>

| 关键事实 | 细节 |
|---|---|
| 证明什么 | 通过一个单射且满射的函数 \( \varphi: S \to T \) 证明等式 \( \#S = \#T \)<sup>[1](https://math.mit.edu/~rstan/papers/comb.pdf)</sup> |
| 基数三分律 | 双射给出 \( \|A\| = \|B\| \)，单射给出 \( \|A\| \le \|B\| \)，满射给出 \( \|A\| \ge \|B\| \)<sup>[4](https://dspace.mit.edu/bitstream/handle/1721.1/70477/6-042j-fall-2002/contents/readings/ln8.pdf)</sup> |
| 验证套路 | 证明一个映射良定义、单射且满射；或给出两个映射 \( f, g \)，满足 \( g(f(a)) = a \) 与 \( f(g(b)) = b \)<sup>[5](https://enumeration.ca/toolbox/bijections/)</sup> |
| 经典例子 | 普吕弗（Prüfer）1918 年的双射：\( n \) 个结点的标号树与长度为 \( n-2 \) 的字符串之间的双射，由此证明凯莱（Cayley）计数 \( n^{n-2} \)<sup>[1](https://math.mit.edu/~rstan/papers/comb.pdf)</sup> |
| 里程碑结果 | 加西亚（Garsia）和米尔恩（Milne）1981 年通过对合原理（Involution Principle）给出的罗杰斯–拉马努金（Rogers–Ramanujan）恒等式双射证明<sup>[6](https://doi.org/10.1016/0097-3165%2881%2990062-5)</sup> |
| 自动化 | SageMath 10.0 包含一个用于发现或排除双射的工具箱<sup>[7](https://www.mat.univie.ac.at/~slc/wpapers/FPSAC2023/91.pdf)</sup> |
| 已知障碍 | 对于罗杰斯–拉马努金恒等式，尚不知道简单的（非迭代）双射，寻找一个真正漂亮的双射仍是未决问题<sup>[8](https://sites.math.rutgers.edu/~zeilberger/mamarim/mamarimPDF/gmipV2Sigma.pdf)</sup> |

## 工作原理

这一机制依赖于互不相交的有限集合上加法与乘法的集合论含义，而这是所有双射证明的基础。<sup>[1](https://math.mit.edu/~rstan/papers/comb.pdf)</sup> 要确定集合 \( S \) 的大小，就找一个大小已知的集合 \( T \)，以及一个双射 \( \varphi: S \to T \)，也就是说一个满足两个条件的函数：若 \( \varphi(a) = \varphi(b) \) 则 \( a = b \)（单射性），并且对每个 \( t \in T \) 都存在某个 \( a \in S \) 使 \( \varphi(a) = t \)（满射性）。由这两条性质，\( \#S = \#T \) 随之成立。<sup>[1](https://math.mit.edu/~rstan/papers/comb.pdf)</sup>

同一框架可推广到不等式。对于有限集合 \( A \) 和 \( B \) 以及函数 \( f: A \to B \)，双射给出 \( \|A\| = \|B\| \)，单射给出 \( \|A\| \le \|B\| \)，满射给出 \( \|A\| \ge \|B\| \)。<sup>[4](https://dspace.mit.edu/bitstream/handle/1721.1/70477/6-042j-fall-2002/contents/readings/ln8.pdf)</sup> 因此，一个显然不是满射的单射以双射方式证明了一个不等式，而一个满射则证明了反向不等式。

## 如何操作

实践者遵循两种标准套路之一。<sup>[5](https://enumeration.ca/toolbox/bijections/)</sup> 第一种是定义一个映射 \( f: A \to B \)，然后证明 \( f \) 良定义、\( f \) 是单射、\( f \) 是满射。第二种是定义两个映射 \( f \) 和 \( g \)，并证明对所有 \( a \in A \) 有 \( g(f(a)) = a \)，对所有 \( b \in B \) 有 \( f(g(b)) = b \)，这就表明每个映射都是另一个的逆。要直接验证满射性，可以从陪域中任意元素 \( b \) 出发，以满足 \( f(a) = b \) 为目标，构造一个定义域元素 \( a \)，并说明为什么 \( a \) 属于定义域。<sup>[9](https://cs22.io/assets/files/bijective_strategies.pdf)</sup>

经典范例展示了这一方法的适用范围。恒等式 \( \binom{n}{k} = \binom{n}{n-k} \) 由补集映射 \( f(S) = [n] \setminus S \) 证明，它的逆就是它自身。<sup>[5](https://enumeration.ca/toolbox/bijections/)</sup> Ferrers 图（Ferrers diagram）共轭——把杨图（Young diagram）沿对角线反射——给出一个双射，把恰有 \( k \) 个部分的 \( n \) 的分拆与最大部分为 \( k \) 的 \( n \) 的分拆对应起来；共轭是一个对合，而每个对合都是集合到自身的双射。<sup>[10](https://web.mit.edu/yufeiz/www/olympiad/bijections.pdf)</sup> 凯莱定理的双射证明——该定理用 \( n^{n-2} \) 计数 \( n \) 个结点上的标号树——使用标号树与各项取自 \( \{1, \ldots, n\} \) 的字符串 \( (a_1, \ldots, a_{n-2}) \) 之间的对应。<sup>[1](https://math.mit.edu/~rstan/papers/comb.pdf)</sup>

## 起源

大约在 1965 年，双射分拆证明的“黄金时代”开始了；在不到 20 年里，许多不同的人用组合方法证明了大量分拆恒等式。如今用于获得分拆双射的两项标准技术，其基础都在那时建立起来。<sup>[11](https://www.math.ucla.edu/~pak/papers/psurvey.pdf)</sup>

现代里程碑出现在 1981 年，阿德里亚诺·加西亚（Adriano Garsia）和史蒂夫·米尔恩（Steve Milne）找到了罗杰斯–拉马努金恒等式的第一个双射证明，并在《组合理论杂志 A 辑》（Journal of Combinatorial Theory Series A）上发表了一篇 50 页的论文，其中引入了一种他们称为对合原理的工具。<sup>[6](https://doi.org/10.1016/0097-3165%2881%2990062-5)</sup><sup> • </sup><sup>[8](https://sites.math.rutgers.edu/~zeilberger/mamarim/mamarimPDF/gmipV2Sigma.pdf)</sup> 一年后，戴维·M·布雷苏德（David M. Bressoud）和多伦·泽尔伯格（Doron Zeilberger）在《离散数学》（Discrete Mathematics）上发表了一个简短的罗杰斯–拉马努金双射。<sup>[12](https://doi.org/10.1016/0012-365x%2882%2990298-9)</sup>

## 变体

**变号对合。** 加西亚–米尔恩对合原理通过在两个集合 \( A \) 和 \( B \) 之间“乒乓往返”来构造两个不动点集 \( F_{\alpha} \) 与 \( F_{\beta} \) 之间的双射：它交替使用一个保号双射（及其逆）与两个集合上的变号对合；所得映射是 \( F_{\alpha} \) 与 \( F_{\beta} \) 之间的双射。<sup>[13](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)</sup> 在加西亚和米尔恩的应用中，该原理结合了三个已知的对合与双射，产生了期待已久的罗杰斯–拉马努金对应。<sup>[11](https://www.math.ucla.edu/~pak/papers/psurvey.pdf)</sup> 一个相关的带符号工具是符号双射（sijection），这是一种基于对合的构造，用来表明两个带符号集合具有相同的带符号基数。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7519258/)</sup> 该框架也推广到 \( q \)-恒等式：同样的“双射的基数”解释给出了 \( q \)-帕斯卡恒等式 \( \binom{n}{k}_{q} = \binom{n-1}{k}_{q} + q^{n-k} \binom{n-1}{k-1}_{q} \) 的双射证明，其中 \( q \)-二项式系数计数 \( \mathbb{F}_q^n \) 的 \( k \) 维子空间。

**什么使一个证明“更具双射性”。** 双射强度是有层次的。斯坦利（Stanley）的问题清单把规范设定在这一尺度的远端：命题应当用组合方式证明，在大多数情况下通过展示一个显式双射来证明，尽可能避免归纳、递推和生成函数。<sup>[14](https://math.mit.edu/~rstan/bij.pdf)</sup>

## 应用

**双重计数。** 最接近的相关技术用两种不同方式计数同一个集合：如果 \( f(n) \) 和 \( g(n) \) 通过两种不同的计数方法，计数关于 \( n \) 个对象的同一问题的解，那么它们对每个 \( n \) 都相等。<sup>[15](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/02%3A_Enumeration/04%3A_Bijections_and_Combinatorial_Proofs/4.02%3A_Combinatorial_Proofs)</sup> 两者界限模糊，因为一个组合恒等式既可以通过找到集合 \( A \) 和 \( B \)，使其 \( \|A\| \) 和 \( \|B\| \) 分别等于两边，并在它们之间建立双射来证明，也可以通过用两种方式计数同一个集合来证明。<sup>[5](https://enumeration.ca/toolbox/bijections/)</sup>

**形式验证。** 在 Lean 的《逻辑与证明》（Logic and Proof）开发中，有限集被定义为一个允许从 \( [n] \) 出发的双射的集合，而关键的计数原理指出，有限集合 \( A \) 与 \( B \) 之间的双射蕴涵 \( \|A\| = \|B\| \)，这正是双射证明所利用的性质。<sup>[16](https://leanprover-community.github.io/logic_and_proof/combinatorics.html)</sup>

**自动化。** SageMath 自 10.0 版起包含一个“双射学家工具箱”（bijectionist's toolkit）；它支持在各种约束下发现两个有限集合之间的显式双射，或证明这样的双射不可能存在，其方法是在那些可通过一个带有固定统计量的双射分解的函数中搜索。<sup>[7](https://www.mat.univie.ac.at/~slc/wpapers/FPSAC2023/91.pdf)</sup> 一个更早的分拆双射自动化方法从 20 世纪 80 年代末起在六篇论文中发展出来，能产生与人类找到的双射相匹配的结果。<sup>[13](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)</sup>

## 局限与替代方案

有些恒等式难以用双射处理。第一个罗杰斯–拉马努金恒等式把 \( n \) 的分拆中部分至少相差 2 的分拆数 \( A(n) \) 与 \( n \) 的分拆中部分模 5 同余于 1 或 4 的分拆数等同起来。<sup>[8](https://sites.math.rutgers.edu/~zeilberger/mamarim/mamarimPDF/gmipV2Sigma.pdf)</sup> 这些恒等式最早由罗杰斯于 1894 年证明，而寻找一个真正漂亮的双射证明仍是一个未决问题。<sup>[8](https://sites.math.rutgers.edu/~zeilberger/mamarim/mamarimPDF/gmipV2Sigma.pdf)</sup> 布雷苏德和泽尔伯格的简短证明是迭代的：反复应用一个简单映射，直到抵达目标集合；他们评论说，由于这两个分拆族如此不同，一个非迭代的双射不太可能被发现。<sup>[12](https://doi.org/10.1016/0012-365x%2882%2990298-9)</sup><sup> • </sup><sup>[17](https://sites.math.rutgers.edu/~zeilberger/mamarimY/rrDG.pdf)</sup>

教学材料中记录了常见的错误模式。说明集合 \( A \) 与 \( B \) 大小相同，并不能证明它们之间的映射 \( f \) 是双射，因为大小相同的集合之间有许多映射并不是双射。<sup>[9](https://cs22.io/assets/files/bijective_strategies.pdf)</sup> 另一种谬误是：因为 \( A \) 与 \( B \) 大小相同，就论证 \( A \) 与 \( B \) 之间的单射必定是满射；而大小相等恰恰正是这个双射所要确立的东西；单射性和满射性都必须直接证明。<sup>[9](https://cs22.io/assets/files/bijective_strategies.pdf)</sup>

## References

1. [A Combinatorial Miscellany (Stanley and Fomin)](https://math.mit.edu/~rstan/papers/comb.pdf)
2. [The mysterious story of square ice, piles of cubes, and bijections (PNAS)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7519258/)
3. [bijective proof in nLab](https://ncatlab.org/nlab/show/bijective%20proof)
4. [MIT 6.042J lecture notes, Counting (Theorem 2.1)](https://dspace.mit.edu/bitstream/handle/1721.1/70477/6-042j-fall-2002/contents/readings/ln8.pdf)
5. [Bijections | An Invitation to Enumeration](https://enumeration.ca/toolbox/bijections/)
6. [A Rogers-Ramanujan bijection (Journal of Combinatorial Theory Series A, 1981)](https://doi.org/10.1016/0097-3165%2881%2990062-5)
7. [A bijectionist's toolkit (Grosz, Kietreiber, Pfannerer, Rubey), FPSAC 2023](https://www.mat.univie.ac.at/~slc/wpapers/FPSAC2023/91.pdf)
8. [Experimenting with the Garsia–Milne Involution Principle (Ekhad and Zeilberger)](https://sites.math.rutgers.edu/~zeilberger/mamarim/mamarimPDF/gmipV2Sigma.pdf)
9. [Strategies for Bijective Proofs (Harvard CS 22 handout)](https://cs22.io/assets/files/bijective_strategies.pdf)
10. [Bijections (MIT olympiad notes)](https://web.mit.edu/yufeiz/www/olympiad/bijections.pdf)
11. [Partition Bijections, a Survey (Igor Pak)](https://www.math.ucla.edu/~pak/papers/psurvey.pdf)
12. [A short Rogers-Ramanujan bijection (Discrete Mathematics, 1982)](https://doi.org/10.1016/0012-365x%2882%2990298-9)
13. [Lectures on Integer Partitions](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)
14. [Bijective Proof Problems (Stanley)](https://math.mit.edu/~rstan/bij.pdf)
15. [4.02: Combinatorial Proofs (math.libretexts.org)](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/02%3A_Enumeration/04%3A_Bijections_and_Combinatorial_Proofs/4.02%3A_Combinatorial_Proofs)
16. [Combinatorics, Logic and Proof 3.18.4 documentation](https://leanprover-community.github.io/logic_and_proof/combinatorics.html)
17. [A Short Rogers-Ramanujan Bijection (D. M. Bressoud, D. Zeilberger)](https://sites.math.rutgers.edu/~zeilberger/mamarimY/rrDG.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics › Algebraic and analytic combinatorics › Bijective methods and combinatorial identities

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bijective-proof

English original: https://www.edgepedia.org/bijective-proof
