# 帕特·霍姆斯·斯特本茨

**帕特·霍姆斯·斯特本茨（Pat Holmes Sterbenz）**（生于1927年）于1974年出版了《浮点计算》（*Floating-Point Computation*，普伦蒂斯-霍尔出版社），书中首次发表了如今被称为斯特本茨引理的精确减法性质：对于具有渐进下溢的格式，若两个正浮点数中较大者不超过较小者的两倍，则其差本身就是一个浮点数，且无论采用何种舍入模式都能精确计算<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup><sup> • </sup><sup>[2](https://www-sop.inria.fr/marelle/Laurent.Thery/fast2018/drt.pdf)</sup>。斯特本茨于1953年在俄亥俄州立大学（The Ohio State University）获得数学博士学位，博士论文属于上同调理论方向<sup>[3](https://www.mathgenealogy.org/id.php?id=10170)</sup>。

| 关键事实 | 详情 |
|---|---|
| 博士学位 | 哲学博士，俄亥俄州立大学，1953年；论文《上同调理论中的若干专题》（*Some Topics In Cohomology Theory*），导师保罗·瓦伦丁·赖歇尔德费尔（Paul Valentine Reichelderfer）<sup>[3](https://www.mathgenealogy.org/id.php?id=10170)</sup> |
| 著作 | 《浮点计算》，普伦蒂斯-霍尔出版社，新泽西州恩格尔伍德克利夫斯，1974年，331页，以IBM System/360编程为依托<sup>[4](https://catalogue.library.cern/literature/xtgyg-a1y05)</sup><sup> • </sup><sup>[5](https://archive.org/details/floatingpointcom0000ster)</sup> |
| 斯特本茨引理 | 若正浮点数a、b在具有渐进下溢的格式中满足a/2 ≤ b ≤ 2a，则a − b是一个浮点数，因此在任何舍入函数下该减法都是精确的<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup> |
| 舍入无关性 | 该引理在任何舍入模式下均成立，且在存在双重舍入的情况下仍然成立<sup>[6](https://members.loria.fr/PZimmermann/talks/module2.pdf)</sup><sup> • </sup><sup>[7](https://perso.ens-lyon.fr/jean-michel.muller/ValenciaJune2012.pdf)</sup> |
| 因子2 | a/2和2a中的2必须保持为2；若替换为基数β，定理即失效<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup> |
| 主要用途 | 用于Fast2Sum等无误差变换的正确性证明，是补偿求和类算法的基础<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup><sup> • </sup><sup>[8](http://denif.ens-lyon.fr/data/validation_in_scientific_computing_enslyon/2007/cours/lecture-notes2.pdf)</sup> |
| 现代地位 | 已在多个经过验证的库中形式化，包括Flocq（Coq）以及FloatLib、FloatSpec和TorchLean（Lean 4）<sup>[9](https://flocq.gitlabpages.inria.fr/flocq/html/Flocq.Prop.Sterbenz.html)</sup><sup> • </sup><sup>[10](https://lean-dojo.github.io/FloatLib/)</sup><sup> • </sup><sup>[11](https://github.com/Beneficial-AI-Foundation/FloatSpec/)</sup> |

## 生平与职业

数学谱系项目（Mathematics Genealogy Project）记载其于1953年在俄亥俄州立大学获得博士学位，论文为《上同调理论中的若干专题》，导师为保罗·瓦伦丁·赖歇尔德费尔<sup>[3](https://www.mathgenealogy.org/id.php?id=10170)</sup>。[互联网档案馆](https://www.edgepedia.org/zh/internet-archive)对该书的记录给出其出生年份为1927年<sup>[5](https://archive.org/details/floatingpointcom0000ster)</sup>。

## 《浮点计算》（1974）

该书由普伦蒂斯-霍尔出版社在新泽西州恩格尔伍德克利夫斯出版；欧洲核子研究中心图书馆目录将该版本定为1974年，共331页；[开放图书馆](https://www.edgepedia.org/zh/open-library)记录定为1974年；互联网档案馆的记录则标注日期为1973年<sup>[4](https://catalogue.library.cern/literature/xtgyg-a1y05)</sup><sup> • </sup><sup>[12](https://openlibrary.org/books/OL19055450M/Floating-point_computation)</sup><sup> • </sup><sup>[5](https://archive.org/details/floatingpointcom0000ster)</sup>。其主题列表——IBM 360编程、浮点运算和编译——将其定位于[IBM System/360](https://www.edgepedia.org/zh/ibm-system-360)编程时代。[威廉·卡汉](https://www.edgepedia.org/zh/william-kahan)（William Kahan）后来写道，IEEE 754正式成为标准十三年后，各大微处理器制造商已经采纳了该标准，而1970年代令数值分析家忧心忡忡的舍入异常如今只困扰着CRAY X-MP和J90<sup>[13](https://people.eecs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF)</sup>。

## 斯特本茨引理

**陈述。** 设a和b为具有渐进下溢格式中的正浮点数。若a/2 ≤ b ≤ 2a，则a − b本身就是一个浮点数，因此在浮点运算中该减法被精确计算，无论选择何种舍入函数<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup>。有些表述将假设写为同精度值的a ≤ b ≤ 2a，在对两个操作数排序后，这对正数a而言是同一条件<sup>[6](https://members.loria.fr/PZimmermann/talks/module2.pdf)</sup>。

**为何成立。** 证明是对浮点网格的计数论证。若b ≤ a，则a和b都是ulp(b)的整数倍；若b ≥ a，则它们是ulp(a)的整数倍。无论哪种情况，它们的差是较小操作数的ulp的整数倍，且不大于该操作数，因此在该操作数的浮点网格上可表示<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup>。齐默尔曼（Zimmermann）的讲义以b − a是ulp(a)的整数倍且0 ≤ b − a ≤ a的形式给出了同样的机制<sup>[6](https://members.loria.fr/PZimmermann/talks/module2.pdf)</sup>。

**稳健性。** 有两个加强版本在实践中很重要。在渐进下溢运算中，该引理在任何舍入模式下都成立，因为精确性意味着对任何舍入而言舍入值等于真值<sup>[6](https://members.loria.fr/PZimmermann/talks/module2.pdf)</sup>。让-米歇尔·穆勒（Jean-Michel Muller）进一步指出，该引理在存在双重舍入的情况下仍然成立，即结果经过两种不同精度格式的情形<sup>[7](https://perso.ens-lyon.fr/jean-michel.muller/ValenciaJune2012.pdf)</sup>。最近一项Lean 4形式化补充了一个边界细化：精确差本身可能是次正规数，前提是格式像IEEE 754那样使用渐进下溢；对于置零运算（丢弃次正规数），该结果一般不会成立<sup>[14](https://arxiv.org/abs/2609.19352)</sup>。

**因子2。** 常数2不是自由参数。《数值学报》（*Acta Numerica*）综述明确指出，a/2和2a中的2必须保持为2，因为若替换为基数β，定理不再成立<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup>。这是一个现实中的混淆点：里多–泰里（Rideau–Théry）的Coq形式化指出，该结果通常只在二进制运算中给出和证明，因此在一般基数情形下2是否应变为β并不显然<sup>[2](https://www-sop.inria.fr/marelle/Laurent.Thery/fast2018/drt.pdf)</sup>。答案是否定的。

**精确性意味着什么、不意味着什么。** 这与人们熟悉的关于避免相近数相减的警告并不矛盾。计算出的差a − b是精确的，但若a和b是实数a*和b*的浮点近似，则精确差a − b可能只是a* − b*的不够准确的近似，因为输入的相对误差在减法中被放大了<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup>。该引理消除了减法本身的舍入误差；它无法修复操作数中已经存在的误差。

## 在误差分析中的用途

**Fast2Sum。** Fast2Sum算法由O. 默勒（O. Møller，1965）和T. J. 德克尔（T. J. Dekker，1971）提出，计算浮点和s = a ⊕ b以及一个修正量z，旨在精确满足s + z = a + b。在更强的假设|a| ≥ |b|下，正确性证明成为斯特本茨定理的直接推论<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup>。

**无误差变换。** 该引理支撑了一族无误差变换，补偿求和及相关算法均建立在其上。里昂高等师范学校的教学讲义阐述了其机制：在Fast2Sum的排序假设|x| ≥ |y|和就近舍入运算下，令s = x ⊕ y，则残差r = y ⊖ (s ⊖ x)精确等于(x + y) − s，而(x ⊕ y) ⊖ s为零；对于正操作数且x ≥ y，舍入和s满足x ≤ s ≤ 2x，因此修正步z = s − x本身由斯特本茨引理精确计算<sup>[8](http://denif.ens-lyon.fr/data/validation_in_scientific_computing_enslyon/2007/cours/lecture-notes2.pdf)</sup>。对于异号操作数且|x|/2 ≤ |y| ≤ 2|x|，斯特本茨引理直接使x ⊕ y精确，给出s = x + y和r = 0<sup>[8](http://denif.ens-lyon.fr/data/validation_in_scientific_computing_enslyon/2007/cours/lecture-notes2.pdf)</sup>。穆勒的双重舍入讲义在两步求和类算法中使用了同一步骤：当a和b同号时，|a| ≤ |s| ≤ 2|a|，因此z = s − a是精确的<sup>[7](https://perso.ens-lyon.fr/jean-michel.muller/ValenciaJune2012.pdf)</sup>。

## 与相关结果的比较

**超越标准误差模型。** 通常的舍入误差模型fl(x op y) = (x op y)(1 + δ)，其中|δ|以单位舍入误差为界，不足以推出斯特本茨定理：对数数系统满足标准模型但不满足斯特本茨性质<sup>[1](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)</sup>。该引理是关于浮点网格几何的陈述，而非小相对舍入误差的推论。

**弗格森与卡汉。** 尼古拉斯·海厄姆（Nicholas Higham）将斯特本茨定理作为《数值算法的精度与稳定性》（*Accuracy and Stability of Numerical Algorithms*）的定理2.5给出，条件为y/2 ≤ x ≤ 2y，并将其与弗格森定理2.4对比，后者是一个相关的精确性结果，但比较的是指数并要求减法器中有保护位：若e(x − y) < min(e(x), e(y))且减法带保护位执行，则x − y被精确计算<sup>[15](https://studizba.com/show/523152-15-higham-accuracy-and-stability-of.html)</sup>。同一摘录记载了卡汉的结果：他给出的三角形面积公式所得面积的相对误差以单位舍入误差的适度倍数为界，前提是减法中使用保护位<sup>[15](https://studizba.com/show/523152-15-higham-accuracy-and-stability-of.html)</sup>。斯特本茨的条件是对操作数的比值检验；弗格森的是指数检验；卡汉的保护位结果涵盖了两种精确性条件均不适用的情况。

**教学背景。** 该引理通常与大卫·戈德堡（David Goldberg）1991年发表于《ACM计算综述》（*ACM Computing Surveys*）的综述《每个计算机科学家都应该知道的浮点运算知识》（*What Every Computer Scientist Should Know About Floating-Point Arithmetic*）一同教授，后者是跨语言和硬件浮点行为的经典论述<sup>[16](https://dl.acm.org/doi/10.1145/103162.103163)</sup>。

## 近期发展

该引理已从教科书工具转变为机器验证的库组件。Flocq Coq库——经过验证的CompCert时代浮点推理所依赖的形式化基础——维护着一个专门的Sterbenz模块，其中包含sterbenz_aux引理和generic_format_plus_weak定理，后者给出x + y可表示的条件<sup>[9](https://flocq.gitlabpages.inria.fr/flocq/html/Flocq.Prop.Sterbenz.html)</sup>。在Lean 4方面，FloatLib在其舍入理论中包含了用于精确减法的斯特本茨引理，并与用于程序算术推理的可执行代码相连接<sup>[10](https://lean-dojo.github.io/FloatLib/)</sup>；FloatSpec是Flocq的Lean 4移植版，在其经典舍入误差定理中带有Sterbenz.lean模块<sup>[11](https://github.com/Beneficial-AI-Foundation/FloatSpec/)</sup>；一个TorchLean拉取请求添加了Analysis/SterbenzFLT.lean，为binary32等IEEE风格的FLT格式证明该引理，对于比值介于1/2与2之间的可表示u、v，有round32(u − v) = u − v<sup>[17](https://github.com/lean-dojo/TorchLean/pull/16)</sup>。更早之前，一篇POPL 2018关于自动证明math.h实现正确性的论文引用了斯特本茨定理（该文将其定年为1973），作为相近浮点数的关键精确性结果，并以0.5 − 0.25 = 0.25为例<sup>[18](https://theory.stanford.edu/~aiken/publications/papers/popl18.pdf)</sup>。

## References

1. [Floating-point arithmetic (Muller et al., Acta Numerica survey), Cambridge](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/287C4D5F6D4A43FBEEB1ABED2A405AAF/S0962492922000101a.pdf/floating-point-arithmetic.pdf)
2. [A Coq formalization of floating-point numbers (Rideau & Théry)](https://www-sop.inria.fr/marelle/Laurent.Thery/fast2018/drt.pdf)
3. [Pat Sterbenz, The Mathematics Genealogy Project](https://www.mathgenealogy.org/id.php?id=10170)
4. [CERN Library Catalogue: Floating-point computation](https://catalogue.library.cern/literature/xtgyg-a1y05)
5. [Floating-point computation, Internet Archive record](https://archive.org/details/floatingpointcom0000ster)
6. [Floating-Point Training Module 2: Math Fundamentals (Zimmermann, LORIA)](https://members.loria.fr/PZimmermann/talks/module2.pdf)
7. [Some issues related to double roundings (J.-M. Muller, ENS Lyon, 2012)](https://perso.ens-lyon.fr/jean-michel.muller/ValenciaJune2012.pdf)
8. [Validation for scientific computations, ENS Lyon lecture notes (2007)](http://denif.ens-lyon.fr/data/validation_in_scientific_computing_enslyon/2007/cours/lecture-notes2.pdf)
9. [Flocq.Prop.Sterbenz, Flocq documentation](https://flocq.gitlabpages.inria.fr/flocq/html/Flocq.Prop.Sterbenz.html)
10. [FloatLib: verified floating point in Lean 4](https://lean-dojo.github.io/FloatLib/)
11. [FloatSpec, Beneficial-AI-Foundation (GitHub)](https://github.com/Beneficial-AI-Foundation/FloatSpec/)
12. [Floating-point computation, Open Library record](https://openlibrary.org/books/OL19055450M/Floating-point_computation)
13. [IEEE Standard 754 for Binary Floating-Point Arithmetic (W. Kahan)](https://people.eecs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF)
14. [FloatLib: Verified Floating-Point Arithmetic in Lean (alphaXiv abstract)](https://arxiv.org/abs/2609.19352)
15. [Higham, Accuracy and Stability of Numerical Algorithms (excerpt)](https://studizba.com/show/523152-15-higham-accuracy-and-stability-of.html)
16. [What Every Computer Scientist Should Know About Floating-Point Arithmetic (Goldberg, ACM Computing Surveys, 1991)](https://dl.acm.org/doi/10.1145/103162.103163)
17. [TorchLean PR #16: Sterbenz exact subtraction for FLT/FP32 formats](https://github.com/lean-dojo/TorchLean/pull/16)
18. [On Automatically Proving the Correctness of math.h Implementations (POPL 2018)](https://theory.stanford.edu/~aiken/publications/papers/popl18.pdf)

---
*Initially written Oct 10, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 工程师与计算机科学家 › 计算机科学家与人工智能研究者 › Researchers in computer systems, networking, security, databases, and programming languages › Computer architecture

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pat-holmes-sterbenz

English original: https://www.edgepedia.org/pat-holmes-sterbenz
