# 三角不等式

三角不等式是这样一条命题：对任意三点，第一点到第三点的距离至多等于第一点到第二点与第二点到第三点距离之和。在具有距离函数 \( d \) 的度量空间中，它写作：对所有点 \( x, y, z \)，有 \( d(x, z) \le d(x, y) + d(y, z) \)，并且它是度量的定义性公理之一，其他公理包括正定性、对称性以及仅当 \( x = y \) 时 \( d(x, y) = 0 \) 的要求<sup>[1](https://math.libretexts.org/Bookshelves/Geometry/Euclidean_Plane_and_its_Relatives_(Petrunin)/01:_Preliminaries/1.03:_Metric_spaces)</sup>。在其几何形式中，它说的是：在任意三角形中，任意两边长度之和大于第三边的长度<sup>[2](https://mathcs.clarku.edu/~djoyce/elements/bookI/propI20.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 度量形式 | 对所有 \( x, y, z \)，\( d(x, z) \le d(x, y) + d(y, z) \)；四条度量公理之一<sup>[1](https://math.libretexts.org/Bookshelves/Geometry/Euclidean_Plane_and_its_Relatives_(Petrunin)/01:_Preliminaries/1.03:_Metric_spaces)</sup> |
| 经典表述 | 欧几里得《几何原本》I.20：在任意三角形中，任意两边之和大于第三边<sup>[2](https://mathcs.clarku.edu/~djoyce/elements/bookI/propI20.html)</sup> |
| 范数形式 | \( \|x + y\| \le \|x\| + \|y\| \)；对向量还有 \( |x| - |y| \le |x + y| \le |x| + |y| \)<sup>[3](https://mathworld.wolfram.com/TriangleInequality.html)</sup> |
| 反向形式 | \( \bigl\| \|x\| - \|y\| \bigr\| \le \|x - y\| \)，通过将三角不等式应用于 \( x = (x - y) + y \) 推出<sup>[3](https://mathworld.wolfram.com/TriangleInequality.html)</sup> |
| 强（超度量）形式 | \( d(x, z) \le \max(d(x, y), d(y, z)) \)，p进度量满足此式<sup>[4](https://citeseerx.ist.psu.edu/document?doi=f6161c198767047d0e720b0b03a87487f7af97a2&repid=rep1&type=pdf)</sup> |
| 松弛形式 | 对常数 \( \sigma \ge 1 \)，\( d(x, y) \le \sigma (d(x, z) + d(z, y)) \)，定义拟度量空间<sup>[5](https://arxiv.org/abs/0807.3377)</sup> |
| 等号成立条件 | 在 \( L^p \) 的闵可夫斯基不等式中，等号成立当且仅当两个序列成比例<sup>[6](https://encyclopediaofmath.org/wiki/Minkowski_inequality)</sup> |

## 欧几里得的表述与证明

欧几里得《几何原本》第一卷命题20建立了三角不等式：在任意三角形中，任意两边之和大于第三边<sup>[2](https://mathcs.clarku.edu/~djoyce/elements/bookI/propI20.html)</sup>。证明将边 \( BA \) 从 \( A \) 延长至点 \( D \)，使 \( DA = AC \)。于是三角形 \( ACD \) 是等腰的，故由命题I.5，角 \( \angle ACD \) 与 \( \angle ADC \) 相等；由于 \( \angle BCD \) 大于 \( \angle ACD \)，它大于 \( \angle BDC \)，再由命题I.19，较大角所对的边较长，得到 \( BD > BC \)。因为 \( BD = BA + AD = BA + AC \)，所以和 \( BA + AC \) 大于 \( BC \)<sup>[7](https://www.maths.tcd.ie/~dwilkins/Courses/MAU23302/EuclidStudyNotes/StudyNote_EuclidElementsBk01Prop20.pdf)</sup>。

该命题是“两点之间最短路径为直线”这一陈述的一部分：借助它，可以证明在两点之间的所有折线路径中，最短的是连接它们的单一线段<sup>[2](https://mathcs.clarku.edu/~djoyce/elements/bookI/propI20.html)</sup>。结合关于对顶角的命题I.15，它还可解决归功于亚历山大的希罗（Heron of Alexandria，约10—约70）的最小距离问题：从一点 \( A \) 到一条直线、再到同侧一点 \( B \) 的最短折线路径，与直线相交于入射角等于反射角之处<sup>[2](https://mathcs.clarku.edu/~djoyce/elements/bookI/propI20.html)</sup>。

该定理并非普遍被认为需要证明。普罗克洛斯（Proclus）由托马斯·泰勒（Thomas Taylor）于1792年译出的一段记载说，伊壁鸠鲁学派反对该命题，断言它甚至对驴子来说也是显而易见的，因为驴子觅食时会沿着三角形的一边走，而不是另外两边；对此的回应是：该定理对感觉是明显的，但对产生科学的理性则不然<sup>[7](https://www.maths.tcd.ie/~dwilkins/Courses/MAU23302/EuclidStudyNotes/StudyNote_EuclidElementsBk01Prop20.pdf)</sup>。

## 度量与范数

在现代公理框架中，三角不等式是集合 \( \mathcal{X} \) 上度量的第四条公理：函数 \( d \) 满足 \( d(A, B) \ge 0 \)，当且仅当 \( A = B \) 时 \( d(A, B) = 0 \)，\( d(A, B) = d(B, A) \)，以及 \( d(A, C) \le d(A, B) + d(B, C) \)<sup>[1](https://math.libretexts.org/Bookshelves/Geometry/Euclidean_Plane_and_its_Relatives_(Petrunin)/01:_Preliminaries/1.03:_Metric_spaces)</sup>。在那些差一点就能成为度量的例子中，不满足的正是这条公理：在实轴上，\( d(A, B) = |A - B|^2 \) 满足其他条件，却不是度量，因为取 \( A = 0 \)、\( B = 1 \)、\( C = 2 \) 时，它给出 \( d(A, C) = 4 \)，而 \( d(A, B) + d(B, C) = 2 \)<sup>[1](https://math.libretexts.org/Bookshelves/Geometry/Euclidean_Plane_and_its_Relatives_(Petrunin)/01:_Preliminaries/1.03:_Metric_spaces)</sup>。

平面上常见的度量都满足它。欧几里得度量 \( d_2 \)、曼哈顿度量或出租车度量 \( d_1(A, B) = |x_A - x_B| + |y_A - y_B| \)，以及最大值度量 \( d_\infty \)，各自都需要证明三角不等式，但除此之外别无他求<sup>[1](https://math.libretexts.org/Bookshelves/Geometry/Euclidean_Plane_and_its_Relatives_(Petrunin)/01:_Preliminaries/1.03:_Metric_spaces)</sup>。对出租车度量，该不等式由绝对值的次可加性推出，即 \( |x + y|_t \le |x|_t + |y|_t \)，而度量性质则完全如同欧几里得情形一样随之成立<sup>[8](https://www.mscsnet.mu.edu/~paul/Paper/112042text.pdf)</sup>。

在向量空间上，范数的同一不等式 \( \|x + y\| \le \|x\| + \|y\| \) 是范数公理之一；带有这种范数的向量空间是赋范空间<sup>[9](https://abel.math.harvard.edu/archive/212a_fall_04/lectures/2120403.pdf)</sup>。对向量而言，该不等式还伴随一个下界：\( |x| - |y| \le |x + y| \le |x| + |y| \)，将右半部分应用于 \( x = (x - y) + y \) 并交换 \( x \) 与 \( y \)，便得到反向三角不等式 \( \bigl\| |x| - |y| \bigr\| \le |x - y| \)<sup>[3](https://mathworld.wolfram.com/TriangleInequality.html)</sup>。该不等式还可从两项推广到任意有限和：\( \left| \sum_{k=1}^{n} a_k \right| \le \sum_{k=1}^{n} |a_k| \)<sup>[3](https://mathworld.wolfram.com/TriangleInequality.html)</sup>。

## 分析中不等式的来源

在内积空间中，诱导范数 \( \|v\| = \sqrt{\langle v, v \rangle} \) 的三角不等式是柯西–施瓦茨不等式的推论：展开 \( \|v + w\|^2 \)，并用 \( \|v\| \|w\| \) 界定交叉项 \( \langle v, w \rangle \)，便得到 \( \|v + w\|^2 \le (\|v\| + \|w\|)^2 \)<sup>[10](https://math.libretexts.org/Courses/De_Anza_College/Linear_Algebra:_A_First_Course/07:_Vector_Spaces/7.12:_Inner_Product_Spaces)</sup>。实数上的普通不等式 \( |r + s| \le |r| + |s| \)，是 \( V = \mathbb{R} \) 配以点积的特殊情形<sup>[10](https://math.libretexts.org/Courses/De_Anza_College/Linear_Algebra:_A_First_Course/07:_Vector_Spaces/7.12:_Inner_Product_Spaces)</sup>。

对 \( p > 1 \) 的 \( L^p \) 范数，三角不等式就是闵可夫斯基不等式，由赫尔曼·闵可夫斯基（Hermann Minkowski）导出：\( \|f + g\|_p \le \|f\|_p + \|g\|_p \)，等号成立当且仅当两个函数或序列成比例<sup>[6](https://encyclopediaofmath.org/wiki/Minkowski_inequality)</sup><sup> • </sup><sup>[11](https://mathworld.wolfram.com/MinkowskisInequalities.html)</sup>。对 \( p < 1 \)、\( p \ne 0 \)，不等式反向，这就是为什么 \( p < 1 \) 的 \( L^p \) 空间不能由通常表达式赋范<sup>[6](https://encyclopediaofmath.org/wiki/Minkowski_inequality)</sup>。

## 更强与更弱的形式

有些空间满足更强的条件。超度量将求和替换为取最大值：\( d(x, z) \le \max(d(x, y), d(y, z)) \)，等价地说，三个距离中不可能有两个都严格小于第三个<sup>[4](https://citeseerx.ist.psu.edu/document?doi=f6161c198767047d0e720b0b03a87487f7af97a2&repid=rep1&type=pdf)</sup>。实轴上的标准度量不具有此性质，但p进度量具有：p进绝对值满足 \( |x + y|_p \le \max\{|x|_p, |y|_p\} \)，称为强三角不等式或超度量不等式，具有此性质的绝对值被称为非阿基米德的<sup>[4](https://citeseerx.ist.psu.edu/document?doi=f6161c198767047d0e720b0b03a87487f7af97a2&repid=rep1&type=pdf)</sup><sup> • </sup><sup>[12](https://math.ou.edu/~kmartin/quaint/ch1.pdf)</sup>。

其他应用则削弱该公理。拟度量空间只要求松弛的三角不等式：对某个常数 \( \sigma \ge 1 \)，\( d(x, y) \le \sigma (d(x, z) + d(z, y)) \)；每个度量空间都是 \( \sigma = 1 \) 的拟度量空间，而许多经典结果如阿斯科利–阿尔泽拉定理在这种一般性下仍然成立<sup>[5](https://arxiv.org/abs/0807.3377)</sup>。松弛在实践中很有用，例如在图像匹配中，允许松弛不等式会扩大可组合度量的聚合函数类<sup>[13](https://globals.ieice.org/en_transactions/fundamentals/10.1587/transfun.E101.A.1404/_p)</sup>。更一般的双参数“幂三角不等式”将普通、松弛和次度量不等式作为特例涵盖在内<sup>[14](https://arxiv.org/abs/1610.07594)</sup>。

该不等式也标出了度量行为的边界。伪度量保留三角不等式，但放弃 \( d(x, y) = 0 \) 蕴含 \( x = y \) 的要求<sup>[15](https://encyclopediaofmath.org/wiki/Pseudo-metric)</sup>。伪欧几里得空间的标量积是不定的，它根本不是度量空间，因为三角不等式不成立；指标为1的平面中的向量反而满足反向三角不等式 \( |a + b| \ge |a| + |b| \)<sup>[16](https://encyclopediaofmath.org/wiki/Pseudo-Euclidean_space)</sup>。

## 结构作用

三角不等式使度量距离表现得像路径长度：它保证经过中间点绝不会缩短行程，并且它是数值分析中误差界的基础，使一个解的已知误差范围能够圈定精确解相对于另一个解的位置<sup>[17](https://arxiv.org/abs/1708.04604)</sup>。用范畴论的话说，劳维尔（Lawvere）在1973年观察到，三角不等式可以读作一条复合律，从而允许将度量空间视为在成本幺半群上富化的范畴<sup>[18](https://math.libretexts.org/Bookshelves/Applied_Mathematics/Seven_Sketches_in_Compositionality:_An_Invitation_to_Applied_Category_Theory_(Fong_and_Spivak)/02:_Resources_-_Monoidal_Preorders_and_Enrichment/2.03:_Enrichment)</sup>。

## References

1. [Metric spaces, Mathematics LibreTexts (Petrunin, *Euclidean Plane and its Relatives*)](https://math.libretexts.org/Bookshelves/Geometry/Euclidean_Plane_and_its_Relatives_(Petrunin)/01:_Preliminaries/1.03:_Metric_spaces)
2. [Euclid's Elements, Book I, Proposition 20, David E. Joyce, Clark University](https://mathcs.clarku.edu/~djoyce/elements/bookI/propI20.html)
3. [Triangle Inequality, Wolfram MathWorld](https://mathworld.wolfram.com/TriangleInequality.html)
4. [An introduction to the geometry of p-adic numbers (ultrametric triangle inequality), CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=f6161c198767047d0e720b0b03a87487f7af97a2&repid=rep1&type=pdf)
5. [Qinglan Xia (2008). The geodesic problem in quasimetric spaces. arXiv.](https://arxiv.org/abs/0807.3377)
6. [Minkowski inequality, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Minkowski_inequality)
7. [David R. Wilkins. Study Note: Euclid's Elements, Book I, Proposition 20. Trinity College Dublin](https://www.maths.tcd.ie/~dwilkins/Courses/MAU23302/EuclidStudyNotes/StudyNote_EuclidElementsBk01Prop20.pdf)
8. [Metrics on the plane (taxicab distance), Marquette University course notes](https://www.mscsnet.mu.edu/~paul/Paper/112042text.pdf)
9. [Review: The triangle inequality, norms. Math 212a, Harvard University](https://abel.math.harvard.edu/archive/212a_fall_04/lectures/2120403.pdf)
10. [Inner Product Spaces, Mathematics LibreTexts](https://math.libretexts.org/Courses/De_Anza_College/Linear_Algebra:_A_First_Course/07:_Vector_Spaces/7.12:_Inner_Product_Spaces)
11. [Minkowski's Inequalities, Wolfram MathWorld](https://mathworld.wolfram.com/MinkowskisInequalities.html)
12. [Kimball Martin. QUAINT, Chapter 1: Some algebraic number theory. University of Oklahoma](https://math.ou.edu/~kmartin/quaint/ch1.pdf)
13. [Toshiya Itoh, Yoshinori Takei (2018). On Aggregating Two Metrics with Relaxed Triangle Inequalities by the Weighted Harmonic Mean. IEICE Transactions on Fundamentals E101-A, 1404–1411.](https://globals.ieice.org/en_transactions/fundamentals/10.1587/transfun.E101.A.1404/_p)
14. [Properties of distance spaces with power triangle inequalities. arXiv.](https://arxiv.org/abs/1610.07594)
15. [Pseudo-metric, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Pseudo-metric)
16. [Pseudo-Euclidean space, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Pseudo-Euclidean_space)
17. [A. K. Alekseev, A. E. Bondarev, I. M. Navon (2017). On Triangle Inequality Based Approximation Error Estimation. arXiv.](https://arxiv.org/abs/1708.04604)
18. [Enrichment (Lawvere metric spaces), Fong and Spivak, *Seven Sketches in Compositionality*, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Applied_Mathematics/Seven_Sketches_in_Compositionality:_An_Invitation_to_Applied_Category_Theory_(Fong_and_Spivak)/02:_Resources_-_Monoidal_Preorders_and_Enrichment/2.03:_Enrichment)

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

Topic: 物质世界与数学 › 数学与统计学 › 几何学与拓扑学 › Metric, convex, and discrete geometry

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/triangle-inequality

English original: https://www.edgepedia.org/triangle-inequality
