# 弱序

弱序是集合上的一种二元关系，具有传递性和完全性：只要 x 与 y 相关、y 与 z 相关，则 x 与 z 相关；并且对任意两个元素，至少有一个与另一个相关。<sup>[1](https://oeis.org/A000670)</sup> 等价地说，它是一个全预序，即一个自反且传递、所有元素两两可比较的关系，而由此得到的等价类则被线性排序。<sup>[2](https://link.springer.com/article/10.1007/s10458-024-09656-7)</sup><sup> • </sup><sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC9550776/)</sup> 该术语还指代代数组合学中的一族偏序，即 Coxeter 群上的弱 Bruhat 序，及其在 permutohedron 的面和超平面配置上的推广。<sup>[3](https://ideas.repec.org/h/spr/sprchp/978-3-319-44236-5_10.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 序论定义 | 弱序是传递且完全的关系，也称全预序或完全预序。<sup>[1](https://oeis.org/A000670)</sup><sup> • </sup><sup>[2](https://link.springer.com/article/10.1007/s10458-024-09656-7)</sup> |
| 计数 | n 个带标号元素上的弱序个数是第 n 个 Fubini 数（有序 Bell 数）：1, 1, 3, 13, 75, 541, 4683, 47293, ...<sup>[1](https://oeis.org/A000670)</sup> |
| Coxeter 背景 | 有限 Coxeter 群上的弱序是一个格，同构于相应 Coxeter 配置的区域偏序集。<sup>[3](https://ideas.repec.org/h/spr/sprchp/978-3-319-44236-5_10.html)</sup> |
| A 型 | n 个字母的对称群上的弱 Bruhat 序是一个格，记作 P(n)，常称为 permutohedron，而 Tamari 格 A(n) 是它的一个格收缩。<sup>[4](https://ems.press/journals/jems/articles/15532)</sup> |
| 面推广 | 面弱序将弱序推广到 permutohedron 的所有面；只要区域偏序集是格，它就是格。<sup>[5](https://www.arxiv.symmetricfunctions.com/paper/1910.03511v1)</sup> |
| 计算 | C++20 形式化了概念 `strict_weak_order`，即传给 `std::sort`、`std::map` 及类似标准算法和容器的比较器所必需的性质。<sup>[6](https://en.cppreference.com/cpp/concepts/StrictWeakOrder)</sup> |

## 作为允许并列的排名的弱序

在序论意义上，弱序将一个集合划分为有序的等价类。不同类中的元素严格有序，同一类中的元素则并列。这正是允许并列的排名的结构：n 名参赛者在比赛中的排名方式的数目，恰好等于 n 个元素上弱序的个数。<sup>[1](https://oeis.org/A000670)</sup>

n 个带标号元素上的弱序个数构成 Fubini 数列，也称有序 Bell 数或马数：1, 1, 3, 13, 75, 541, 4683, 47293, 545835, 7087261, ...<sup>[1](https://oeis.org/A000670)</sup><sup> • </sup><sup>[7](https://cs.uwaterloo.ca/journals/JIS/VOL28/Schreyer/schreyer7.pdf)</sup> Comtet 以意大利数学家 Guido Fubini（1879–1943）之名命名它们，因为它们计数的是 Fubini 定理中多重求和交换求和次序时出现的公式。<sup>[1](https://oeis.org/A000670)</sup> 每个含 k 个类的弱序，都可以通过将 n 个元素划分为 k 个非空块（由第二类 Stirling 数计数），再对这些块排序而得到。<sup>[7](https://cs.uwaterloo.ca/journals/JIS/VOL28/Schreyer/schreyer7.pdf)</sup>

弱序贯穿于决策理论和社会选择理论。自反、传递且完全的偏好关系就是弱序，而线性序恰好是反对称的弱序。<sup>[8](https://www.dbai.tuwien.ac.at/staff/jmaly/thesis.pdf)</sup><sup> • </sup><sup>[2](https://link.springer.com/article/10.1007/s10458-024-09656-7)</sup> 集合 A 上的排名自然地等同于 A 上的弱序：一个排名诱导出一个弱序，其中 a 先于 b 恰好当 a 的排名至少与 b 一样好；反过来，每个弱序都确定一个排名，不同元素共享同一排名时即为并列。<sup>[2](https://link.springer.com/article/10.1007/s10458-024-09656-7)</sup> 在数据分析中，当不可比较关系具有传递性时，允许并列的排名才有良好定义，而这正是弱序条件；当不可比较关系不传递时，就不存在唯一合理的排名。<sup>[9](https://link.springer.com/article/10.1007/s41060-025-00722-1)</sup>

## 计算机科学中的严格弱序

计算机科学使用的是严格形式。严格弱序是一个非自反、传递的关系，其不可比较关系具有传递性：若 a 与 b 不可比较、b 与 c 不可比较，则 a 与 c 不可比较。<sup>[6](https://en.cppreference.com/cpp/concepts/StrictWeakOrder)</sup> 在这些条件下，不可比较关系是一个等价关系，而原来的严格弱序关系在这些等价类上诱导出一个严格全序，因此严格弱序是弱序的严格对应物。<sup>[6](https://en.cppreference.com/cpp/concepts/StrictWeakOrder)</sup> 等价地说，严格弱序将其定义域划分为有序的等价类，这一性质可表述为“a < b 蕴含 a < c 或 c < b”。<sup>[10](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0100r1.html)</sup>

C++ 标准中处理比较类型的算法和容器，包括 `std::sort`、`std::max_element` 和 `std::map`，都要求用户提供的比较器满足严格弱序。<sup>[11](https://en.cppreference.com/cpp/language/operator_comparison)</sup> 违反这一要求会有具体后果：不是严格弱序的比较器会使 `std::sort` 反复洗牌而非完成排序，记忆化也可能返回错误结果，或使缓存充斥着未使用的桶。<sup>[10](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0100r1.html)</sup> 浮点比较是标准的警示例子。由于 `NaN == NaN` 为假，浮点的 `operator<` 不是弱序，对含有 NaN 值的序列排序时，同一数据的不同输入排列可能产生不同输出。<sup>[10](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0100r1.html)</sup> C++20 引入了三路比较结果类型 `std::weak_ordering`，它允许全部六个关系运算符，允许等价但可区分的值，且绝不允许不可比较的值。<sup>[12](https://www.cppreference.com/cpp/utility/compare/weak_ordering)</sup>

## Coxeter 群上的弱序

在代数组合学中，弱序（也称弱 Bruhat 序）对 Coxeter 群的元素排序。Coxeter 群是由生成元 s 及关系 s² = 1 和辫关系 (st)^(m(s,t)) = 1 给出的群。<sup>[3](https://ideas.repec.org/h/spr/sprchp/978-3-319-44236-5_10.html)</sup> 在对称群 S_n 中，一个置换 u 位于另一个置换 w 之下，恰好当 u 的反演集包含于 w 的反演集，而覆盖关系则交换相邻元素。<sup>[13](https://math.mit.edu/~apost/courses/18.218_2017/pset1.pdf)</sup><sup> • </sup><sup>[14](https://math.mit.edu/~rstan/ec/ec1.pdf)</sup>

格性质是核心。Nathan Reading 是北卡罗来纳州立大学数学教授，研究 Coxeter 群与簇代数的组合学，他在《格论：专题与应用》中专门用一章说明，超平面配置的几何与格论构成了有限 Coxeter 群理论的基础：每个有限反射群定义一个超平面配置，其区域偏序集同构于该群上的弱序，而有限 Coxeter 群上的弱序是一个格。<sup>[3](https://ideas.repec.org/h/spr/sprchp/978-3-319-44236-5_10.html)</sup> 对对称群而言，这个格就是 permutohedron P(n)，而 Tamari 格 A(n) 是它的一个格收缩。<sup>[4](https://ems.press/journals/jems/articles/15532)</sup> 弱序的序维数在 A、B、D 型中等于 Coxeter 群的秩，其他有限型则有已知的界。<sup>[15](https://arxiv.org/abs/math/0305336)</sup>

**格商。** Reading 对区域偏序集的同余格的研究，给出了确定任意有限 Coxeter 群弱序的同余格的算法；而弱序的格商提供了一大类格论例子，包括 Cambrian 格，以及条带、对角矩形剖分和一般矩形剖分的格。<sup>[16](https://arxiv.org/abs/math/0401404)</sup><sup> • </sup><sup>[3](https://ideas.repec.org/h/spr/sprchp/978-3-319-44236-5_10.html)</sup> 有限 Coxeter 群的弱序之间存在满格同态，恰好当目标群的 Coxeter 图可由源群的 Coxeter 图通过删去顶点、删去边和/或减小边标号得到。<sup>[17](https://arxiv.org/abs/1712.01723)</sup> 在弱序与更粗的 Bruhat 序之间，坐落着分配中间序：在 A 型中，S_n 上有 C_(n−1) 个这样的序，每个含 n 个叶子的二叉树对应一个，且在该型中它们是这两个序之间仅有的分配格。<sup>[18](https://arxiv.org/abs/2606.12129)</sup>

## 向面与配置的推广

Coxeter 群上的弱序对相应超平面配置的区域排序，即余维为零的面。将其推广到所有面花了两步。2001 年，Krob、Latapy、Novelli、Phan 和 Schwer 将 A 型 Coxeter 群的弱序推广到其相应配置的所有面。<sup>[19](https://dermenjian.com/slides/Brisbane_2019_aram_dermenjian.pdf)</sup> Patricia Palacios 和 María O. Ronco 后来在 permutohedron 的面上定义了一个偏序，推广了对称群的弱 Bruhat 序，其限制给出 associahedron 的面上一个推广平面二叉有根树上 Tamari 序的序。<sup>[20](https://www.sciencedirect.com/science/article/pii/S0021869305006666)</sup>

随后，Aram Dermenjian、Christophe Hohlweg、Thomas McConville 和 Vincent Pilaud 将面弱序从有限 Coxeter 群推广到任意中心超平面配置，给出四种等价定义：通过面所关联的最小与最大区域之间的分离集比较；通过覆盖关系；通过相应定向拟阵的余向量；以及通过与该配置对应 zonotope 的几何相关的法向量集合。<sup>[5](https://www.arxiv.symmetricfunctions.com/paper/1910.03511v1)</sup> 他们证明了当区域偏序集是格时，面弱序是格；对单纯配置，这个格是半分配的，并且他们确定了其所有区间的同伦型。<sup>[5](https://www.arxiv.symmetricfunctions.com/paper/1910.03511v1)</sup>

## References

1. [A000670: Fubini numbers, The On-Line Encyclopedia of Integer Sequences](https://oeis.org/A000670)
2. [On preferences and reward policies over rankings, Autonomous Agents and Multi-Agent Systems (Springer)](https://link.springer.com/article/10.1007/s10458-024-09656-7)
3. [N. Reading (2016). Finite Coxeter Groups and the Weak Order, in Lattice Theory: Special Topics and Applications, pp. 489–561, Springer](https://ideas.repec.org/h/spr/sprchp/978-3-319-44236-5_10.html)
4. [L. Santocanale, F. Wehrung. The equational theory of the weak Bruhat order on finite symmetric groups, Journal of the EMS](https://ems.press/journals/jems/articles/15532)
5. [A. Dermenjian, C. Hohlweg, T. McConville, V. Pilaud. The facial weak order on hyperplane arrangements, Discrete Comput. Geom. 67(1):166–202, 2022](https://www.arxiv.symmetricfunctions.com/paper/1910.03511v1)
6. [std::strict_weak_order, cppreference.com](https://en.cppreference.com/cpp/concepts/StrictWeakOrder)
7. [Fubini numbers counting weak orderings, Journal of Integer Sequences, Vol. 28](https://cs.uwaterloo.ca/journals/JIS/VOL28/Schreyer/schreyer7.pdf)
8. [Ranking Sets of Objects: How to Deal with Impossibility Results, TU Wien](https://www.dbai.tuwien.ac.at/staff/jmaly/thesis.pdf)
9. [Ranking with ties based on noisy performance data, International Journal of Data Science and Analytics (Springer)](https://link.springer.com/article/10.1007/s41060-025-00722-1)
10. [Comparison in C++, P0100R1, WG21](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0100r1.html)
11. [Comparison operators, cppreference.com](https://en.cppreference.com/cpp/language/operator_comparison)
12. [std::weak_ordering, cppreference.com](https://www.cppreference.com/cpp/utility/compare/weak_ordering)
13. [Problem set, MIT 18.218 (2017)](https://math.mit.edu/~apost/courses/18.218_2017/pset1.pdf)
14. [R. P. Stanley, Enumerative Combinatorics, Volume 1](https://math.mit.edu/~rstan/ec/ec1.pdf)
15. [N. Reading. The Order Dimension of the Poset of Regions in a Hyperplane Arrangement, arXiv:math/0305336](https://arxiv.org/abs/math/0305336)
16. [N. Reading. Lattice congruences of the weak order, arXiv:math/0401404](https://arxiv.org/abs/math/0401404)
17. [N. Reading. Lattice homomorphisms between weak orders, arXiv:1712.01723](https://arxiv.org/abs/1712.01723)
18. [Middle orders: all distributive lattices between weak and Bruhat, arXiv:2606.12129](https://arxiv.org/abs/2606.12129)
19. [A. Dermenjian. The facial weak order in hyperplane arrangements (slides, Brisbane 2019)](https://dermenjian.com/slides/Brisbane_2019_aram_dermenjian.pdf)
20. [P. Palacios, M. O. Ronco. Weak Bruhat order on the set of faces of the permutohedron and the associahedron, Journal of Algebra 299(2):648–678, 2006](https://www.sciencedirect.com/science/article/pii/S0021869305006666)
21. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC9550776/)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics › Algebraic and analytic combinatorics › Partially ordered sets, lattices, and Möbius inversion

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/weak-ordering

English original: https://www.edgepedia.org/weak-ordering
