Alphabeta Math
ExampleConstruction: AI-generatedVerification: AI-generatedPipeline-generatedprecheck pass
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.

Dot-product cancellation under normal-range rounding

Example

In radix-two binary64 arithmetic with precision 53 and round-to-nearest, ties-to-even, compute the left-to-right dot product of x=(1016,1,−9999999999999998) and y=(1,1,1). The unit roundoff is u=2−53. All three products and all intermediate sums are in the normal range. Define the dot-product condition ratio for this nonzero exact result by κ:=∑j=13∣xjyj∣∣x⋅y∣. This example checks an absolute roundoff bound and illustrates why a bound small relative to the sum of term magnitudes need not mean small relative error in the result when cancellation makes κ large.

Facts & Assumptions

Given: The vectors, binary64 round-to-nearest ties-to-even arithmetic, unit roundoff u=2−53, and the left-to-right evaluation order. Check the exact result, computed result, normal-range hypotheses, and gamma bound.

[F1]

If n≥1, nu<1, and every exact product xjyj, rounded product pj:=fl⁡(xjyj), and intermediate sum lies in the normal range, the computed left-to-right dot product satisfies ∣fl⁡(x⋅y)−x⋅y∣≤γn∑j∣xjyj∣, where γn=nu/(1−nu). (The computed floating-point dot product obeys componentwise and normwise error bounds)

[F2]

The floating-point model uses relative error at most u only on its stated normal-range operation domain; exact zero is handled separately. (The standard relative floating-point model and unit roundoff)

[F3]

The final numerical error is efp=r~−rm for the error ledger. (Successive statistical and computational error targets)

[F4]

The total error along a finite scalar reference chain is the sum of its signed adjacent-stage errors. (Pathwise error decomposition along a reference chain)

[A1]

In the binade [253,254), a radix-two format with precision 53 has spacing 2. Since 253<1016<254, 1016 and 1016+2 are adjacent representable values. The lower significand is 1016/2=5000000000000000, an even integer, whereas the upper significand is odd; therefore the exact midpoint 1016+1 rounds to 1016 under ties-to-even.

Verification

1.1givenalgebra

The exact dot product is 1016+1−(1016−2)=3, and each product by a component of y is exact.

1.2givenA1F2algebra

By [A1], the first rounded partial sum is fl⁡(1016+1)=1016; the next exact sum is 1016−(1016−2)=2, which is represented exactly. The exact intermediate sums are 1016+1 and 2, and the rounded partial sums are 1016 and 2. Together with the exact products of magnitudes 1016,1,1016−2, all lie between the binary64 smallest and largest normal magnitudes stated in [F2].

2.1givenF1step 1.1step 1.2algebra

Here 3u<1, γ3=3/(253−3), and ∑j∣xjyj∣=19999999999999999. The bound is 3(19999999999999999)/(253−3)>1, since its numerator exceeds its denominator; this is consistent with the computed error ∣2−3∣=1.

3.1F3F4step 1.1step 1.2algebra∎

The condition ratio is 19999999999999999/3, while the relative forward error is 1/3. In the ledger take m=0, θ=3, and r~=2; [F3] gives the sole error efp=−1, and [F4] identifies it with the total error. No sampling or simulation stage occurs.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

11 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