How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
A cancellation-prone formula can be replaced by a stable reformulation
Example
Evaluate at under the standard relative model with unit roundoff (The standard relative floating-point model and unit roundoff). The direct formula subtracts the nearby numbers and and loses about eight decimal digits; the algebraically equivalent form
subtracts nothing and evaluates to full accuracy. Cancellation is a property of the formula, and a stable reformulation removes it without changing the mathematical function.
Facts & Assumptions
Given: The parameter , the value , the unit roundoff with , and the two formulas and .
The relative model: each operation obeys with when lies in the normal range (The standard relative floating-point model and unit roundoff).
Relative forward error of a computed value for the exact answer is (Absolute and relative forward error for an approximate value of a problem map).
Verification
The two formulas agree exactly: , because and .
For , the exact value is : indeed , so , while , so ; hence .
The direct formula. By [L1] the computed values are and with ; subtracting the exact value leaves an error of absolute value .
The reformulated formula. By [L1], the computed values are for the denominator and for the quotient, with .
By [L2], the relative error of the direct formula is at most ; with and this is about , roughly : with the relative forward error can reach about , losing about eight of the roughly sixteen decimal digits of relative precision available in binary64.
By [L2], the relative error of the reformulated value is , which is of order , not of order : no subtraction of nearby quantities occurs, and the reformulation evaluates to full relative accuracy.
Steps 2.1 and 2.2 compare the same function evaluated two ways: the direct formula amplifies roundoff by the cancellation factor , while the rationalized formula keeps the error at order .
Depends on
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
4 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- David Bindel, CS 6210: Floating Point and Error Analysis (standard reference, not scraped)
- James Demmel, Math 221 Lecture 2: Floating Point Arithmetic (standard reference, not scraped)