Alphabeta Math
ExampleConstruction: Literature-sourcedVerification: AI-adaptedPipeline-generatedprecheck passaudited 2026-08-29
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 f(z)=11z at z=108 under the standard relative model with unit roundoff u (The standard relative floating-point model and unit roundoff). The direct formula 11z subtracts the nearby numbers 1 and 1z15109 and loses about eight decimal digits; the algebraically equivalent form

f(z)=z1+1z

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 z=108, the value w=1z>0, the unit roundoff u with 0<u<1/2, and the two formulas g(z)=11z and h(z)=z/(1+1z).

[L1]

The relative model: each operation obeys fl(t)=t(1+δ) with δu when t lies in the normal range (The standard relative floating-point model and unit roundoff).

[L2]

Relative forward error of a computed value y^ for the exact answer f(z) is y^f(z)/f(z) (Absolute and relative forward error for an approximate value of a problem map).

Verification

technique · direct
1.1

The two formulas agree exactly: z/(1+w)=(1w)(1+w)/(1+w)=1w, because z=1w2 and 1+w>0.

algebra
1.2

For z=108, the exact value is f(z)=1w5109: indeed (15109)2=1108+251018>1z, so w<15109, while (16109)2=112109+361018<1z, so w>16109; hence 1w(5109,6109).

algebra
1.3

The direct formula. By [L1] the computed values are fl(w)=w(1+δ1) and fl(1fl(w))=(1w(1+δ1))(1+δ2) with δ1,δ2u; subtracting the exact value 1w leaves an error of absolute value δ2(1w)δ1w(1+δ2)u(1w)+uw(1+u).

L1algebra
1.4

The reformulated formula. By [L1], the computed values are fl(1+w)=(1+w)(1+δ3) for the denominator and fl(z/fl(1+w))=z(1+w)(1+δ3)(1+δ4) for the quotient, with δ3,δ4u.

L1algebra
2.1

By [L2], the relative error of the direct formula is at most u+uw(1+u)/(1w); with w1 and 1w5109 this is about u(1+2108), roughly 2108u: with u=253 the relative forward error can reach about 2108, losing about eight of the roughly sixteen decimal digits of relative precision available in binary64.

L2step 1.3algebra
2.2

By [L2], the relative error of the reformulated value is (1+δ4)/(1+δ3)1=δ4δ3/1+δ32u/(1u), which is of order u, not of order 108u: no subtraction of nearby quantities occurs, and the reformulation evaluates f to full relative accuracy.

L2step 1.4algebra
3.1

Steps 2.1 and 2.2 compare the same function evaluated two ways: the direct formula amplifies roundoff by the cancellation factor 1/(1w)2108, while the rationalized formula keeps the error at order u.

step 2.1step 2.2

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