Alphabeta Math
Pipeline-generated
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.

✓ 10 results · all verified · 2 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 8 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Finite-precision direct factorizations and least squares

1 · Prerequisites

2 · Summary

This page gives operationwise finite-precision contracts for pairwise and compensated summation, TwoSum exact-sum recovery and FMA-assisted product residual computation, failure-aware rounded Cholesky, scaled Householder QR, mixed-precision refinement, and computed full-rank least squares. The real-column Householder procedure is followed by its termination and status lemma, including the zero-column return and exact orthogonality of successful stored reflectors. TwoProduct returns an exact product when the call succeeds and the exact FMA residual is zero or a representable normal number. The page reuses canonical exact factorization and least squares conventions. The Cholesky backward bound and refinement recurrence are proved here. The scaled Householder formation/update/column-zeroing bound, its QR aggregation, rounded triangular substitution, and computed least-squares theorem are proved locally with explicit constants. Certified linear and normal-equation residual allowances support concrete solver consumers. The full TwoSum exact-transform theorem is proved for binary nearest-even formats of precision p>=2 and every successful call, using local binary-grid and exact-subtraction lemmas. No numerical SVD algorithm or unconditional range-success claim is introduced.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add

Definition

At each precision, let the representable set, normal range, and unit roundoff be an instance of The standard relative floating-point model and unit roundoff specialized to a finite binary format of integer precision p≥2 and integer normal-exponent bounds jmin⁡≤j≤jmax⁡. Its normal values are ±m2j−p+1 for integers 2p−1≤m<2p and jmin⁡≤j≤jmax⁡, with Nmin⁡=2jmin⁡ and Nmax⁡=(2p−1)2jmax⁡−p+1. The rounding rule is round-to-nearest, ties-to-even by the parity of the normalized significand. Each precision in a mixed-precision procedure has its own format, range, and valid unit-roundoff bound. On every real exact result that is zero or normal, fl⁡ uses this rule; every other nonzero exact result (subnormal or overflow), NaN, infinity, invalid operation, or division by zero returns range-failure. A real add, subtract, multiply, or divide is one rounded operation. For positive in-range x, fl⁡(x) is correctly rounded to nearest, ties-to-even, and fails unless its result is positive and normal. A real fused multiply-add returns the correctly rounded value of the single exact expression ab+c; it is not two operations.

Complex addition and subtraction round real and imaginary components separately. A complex product (a+ib)(c+id) uses four rounded real products ac, bd, ad, bc, then rounded subtraction and addition, for six real operations. Conjugation and sign changes are exact. Scaling and division by a positive real scalar round each complex component separately; no other complex division primitive is used here.

A procedure succeeds only when each exact intermediate is zero or normal and every rounded output is finite; otherwise it returns the first range-failure with its operation or pivot index. For ku<1 write gamma_k=ku/(1-ku). This is a no-underflow success model, not the gradual-underflow model.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Finite arithmetic schedules terminate, with early failure counted separately

Statement

Fix an initialized finite state and an ordered list of M≥0 instructions, followed by a specified completion return. Each instruction reads only initialized data and deterministically either produces the next finite state or returns a specified early status in finite time. There are no backward jumps. Then execution terminates at the first early return, if any, or at the completion return, after at most M attempted instructions. A finite nesting of counted loops with bounds fixed by the finite input has the same property whenever unrolling the loops gives such a list.

In particular, consider d≥0 levels containing 2d−ℓ addition instructions at level ℓ=1,…,d, with each addition returning a rounded value or immediate failure. A successful execution attempts exactly 2d−1 additions; every execution attempts at most 2d−1. For d=0 there are no additions. These conclusions assert finite execution, not arithmetic success or accuracy.

Facts & Assumptions

Given: the finite ordered instruction list, its initialized state and completion return, and the per-instruction finite-return hypothesis in the Statement.

Proof

1.1givenalgebra

After the first j instructions have completed without an early return, the state needed by instruction j+1 is initialized by hypothesis. That instruction either returns an early status or finishes in finite time. Induction for j=0,…,M−1 therefore reaches an early return or completes all M instructions and the specified completion return. An early return stops before any later instruction, so it is the first one and at most M instructions are attempted. This includes M=0, when only the completion return is executed.

2.1givenstep 1.1algebra∎

Unroll counted loops in their prescribed order. A loop with zero iterations gives an empty list; a loop with a fixed finite number of iterations concatenates that many finite lists. Induction on the finite nesting depth gives a finite list with the same execution order, so step 1.1 applies. In the addition schedule the number of slots is Sd=∑ℓ=1d2d−ℓ. Here S0=0 and Sd+1=2Sd+1, whence induction gives Sd=2d−1. Success visits every slot, while failure visits only an initial segment, proving both counts.

Remarks

The source supplies background on rounded arithmetic and range limitations. The local argument proves the finite-schedule and counting assertions; it does not assume that a primitive operation can run indefinitely while searching for a certificate or a rounded answer.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Balanced pairwise summation with range-failure status

Definition

Input real floating-point values x1,…,xn, n≥1. Set d=⌈log⁡2n⌉, place these values in leaves 1,…,n from left to right, and append 2d−n exact zero leaves. At level ℓ=1,…,d, replace each consecutive pair of current nodes (aℓ−1,2j−1,aℓ−1,2j), in increasing j=1,…,2d−ℓ, by aℓ,j=fl⁡(aℓ−1,2j−1+aℓ−1,2j). If an operation fails, return range-failure with the first failing level ℓ and node j in this level-by-level, left-to-right order. For d=0, return x1 with no additions. Otherwise return the single node ad,1.

Remarks

For termination and the distinction between the successful full-tree addition count and a failing initial segment, apply Finite arithmetic schedules terminate, with early failure counted separately to the prescribed levels. The operationwise model supplies each addition's finite value-or-failure return. Accuracy bounds require successful arithmetic.

AlgorithmAlgorithm: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

TwoSum error-free transformation

Definition

For real floating-point a,b compute s=fl(a+b), z=fl(s-a), e=fl((a-(s-z))+(b-z)), with every operation separately rounded. Return the first range failure and operation index if an exact intermediate is nonzero subnormal, overflowed, or otherwise invalid; otherwise return (s,e). The fixed sequence terminates. Its general exact-transform claim is a separate theorem; this definition alone does not prove exact recovery.

Facts & Assumptions

Given: a finite input of the stated type and the operationwise arithmetic model.

[F1]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: each successful elementary operation returns a finite value, and an invalid or out-of-range operation returns a failure status.

Proof

1.1givenchoose

Every loop index ranges over the finite input length or matrix dimensions; any branch test in the definition is a comparison of already supplied finite values.

2.1step 1.1F1algebra∎

At each operation the model [F1] either returns a finite next value or the defined failure status, and every loop has its stated finite bound. Thus execution terminates with the specified output or first failure.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

TwoProduct product and residual computation using fused multiply-add

Definition

For real floating-point a,b compute p=fl(ab), then e=fma(a,b,-p). Return range-failure if the product overflows, the exact FMA residual is nonzero subnormal or overflow, or another operationwise range condition fails; otherwise return (p,e).

Remarks

The separate Finite arithmetic schedules terminate, with early failure counted separately applies to the ordered multiplication and FMA, each returning a finite result or immediate range failure. It gives at most two attempted rounded operations and exactly two on success. Exact recovery under representability of the residual as zero or a normal number is proved in TwoProduct with fused multiply-add returns the exact product residual.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Kahan compensated summation with range-failure status

Definition

For a finite list of n≥0 real floating-point inputs x1,…,xn, initialize s0=c0=0. For i=1,…,n compute yi=fl⁡(xi−ci−1), si=fl⁡(si−1+yi), di=fl⁡(si−si−1), and ci=fl⁡(di−yi), in that order. Return sn, or the first range-failure and its operation index.

Remarks

The separate Finite arithmetic schedules terminate, with early failure counted separately applies to the four ordered rounded operations at each input index. It gives finite execution with at most 4n attempted rounded operations and exactly 4n on success, including zero for n=0. The successful error identity is proved in Kahan and Neumaier summation satisfy explicit finite data-dependent error bounds.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Neumaier compensated summation with range-failure status

Definition

For a finite list of n≥0 real floating-point inputs x1,…,xn, initialize s0=c0=0. For each i=1,…,n, set ti=fl⁡(si−1+xi). If ∣si−1∣≥∣xi∣, set qi=fl⁡(si−1−ti) and ai=fl⁡(qi+xi); otherwise set qi=fl⁡(xi−ti) and ai=fl⁡(qi+si−1). Then set ci=fl⁡(ci−1+ai) and si=ti. Return fl⁡(sn+cn), or the first range-failure and operation index.

Remarks

The separate Finite arithmetic schedules terminate, with early failure counted separately applies to four rounded operations per input index, either branch, and the final addition. It gives finite execution with at most 4n+1 attempted rounded operations and exactly 4n+1 on success. The branch comparison is of initialized real values. Successful error properties are proved in Kahan and Neumaier summation satisfy explicit finite data-dependent error bounds.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Failure-aware rounded Cholesky factorization

Definition

Input a Hermitian positive-definite matrix A∈Cn×n, n≥1, whose real and imaginary components are in the floating-point system, using the convention of Hermitian positive-definite matrices and Cholesky factorisation A = LL* with positive diagonal; real matrices are included. Initialize every entry of L^ to zero. Process columns j=1,…,n in increasing order. For the diagonal, initialize s=0 and, for k=1,…,j−1 in increasing order, compute rk=fl⁡(ℜ(l^jk)2),tk=fl⁡(ℑ(l^jk)2),qk=fl⁡(rk+tk),s=fl⁡(s+qk), in that order. Then compute pj=fl⁡(ajj−s). If an operation fails, or if pj is not positive and normal, return failure with pivot j and the first failing operation location. Otherwise compute l^jj=fl⁡(pj); if it is not positive and normal, return failure at pivot j.

For each i=j+1,…,n in increasing order, initialize the complex accumulator cij=0. For k=1,…,j−1 in increasing order, compute the complex product wik=l^ikl^jk‾ using exactly the six real operations of the complex-product convention in Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add, then update ℜ(cij)←fl⁡(ℜ(cij)+ℜ(wik)),ℑ(cij)←fl⁡(ℑ(cij)+ℑ(wik)). After this dot product, compute rij=aij−cij by one rounded real subtraction for each component, then compute each component of l^ij=rij/l^jj by one rounded real division. The empty dot product is zero. On any failure return failure with pivot j and its first failing operation location (stage, column, row, inner index, component, and operation where applicable), with the diagonal and row loops ordered as stated. If all columns finish, return success(\widehat L). By A matrix admits a Cholesky factorisation with positive diagonal exactly when it is Hermitian positive definite, and that factor is unique, exact positive definiteness ensures an exact factor exists, but does not ensure the rounded algorithm succeeds.

Remarks

The finite column, row and inner-index loops unroll to an initialized arithmetic schedule. Each rounded operation returns a value or failure under the operationwise model, and each pivot test compares already computed values. The separate result Finite arithmetic schedules terminate, with early failure counted separately supplies termination with the specified completion or first-failure return; no arithmetic-success or backward-error conclusion follows from termination alone.

AlgorithmAlgorithm: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Scaled Householder reflector formation and application

Definition

Let F∈{R,C}. Input a real active column x∈Rr⊆Fr and trailing block B∈Fr×q with entries in the floating-point system, r≥1, q≥0. If every component of x is zero, return the identity action and a copy of B, with the active output column set to exact zeros, so that C+=[0e1  B]; return (v=0,τ^=0,α^=0,C+) marked identity. Otherwise compute s=max⁡1≤i≤r∣xi∣>0, and then, in increasing i, compute zi=fl⁡(xi/s). Initialize t=0 and, in increasing i, compute ai=fl⁡(zizi) followed by t=fl⁡(t+ai). Compute h=fl⁡(t) and then r^=fl⁡(sh). Set σ=1 if x1=0 and σ=sign⁡(x1) otherwise, and set α^=−σr^ using the exact sign change. Compute v1=fl⁡(x1−α^), then copy vi=xi exactly for i=2,…,r.

Initialize w=0 and, in increasing i, compute ai=fl⁡(vivi) followed by w=fl⁡(w+ai). Then compute τ^=fl⁡(2/w). For each column j=1,…,q in increasing order, initialize dj=0 and, in increasing i, compute aij=fl⁡(viBij) followed by dj=fl⁡(dj+aij). After all dj have been computed, in increasing i compute pi=fl⁡(τ^vi). Then, in increasing j and within each column in increasing i, compute Uij=fl⁡(pidj) and B^ij=fl⁡(Bij−Uij) in that order. The complete active output is C+=[α^e1  B^], with exact zeros written below its first diagonal entry. If any elementary operation fails, return the first range failure with its stage and indices in the order above. Also return failure if t, r^, or w is not positive normal, or any intermediate is nonfinite. Otherwise return (v,τ^,α^,C+) marked reflector. For a separate block Y∈Fr×q′, q′≥0, apply the stored reflector by computing its sequential column dots in increasing column order, then the vector pi=fl⁡(τ^vi) in increasing i, and then each rounded product and subtraction by increasing column and row; omit the target-column overwrite. Store reflector factors with their identity/reflector marker to represent the exact orthogonal product; a rounded explicit dense product is a separate output with its own arithmetic error. For a nonzero stored v, the associated exact reflector is H(v)=I−2vvT/(vTv), using Householder reflectors in real or complex inner-product spaces and the QR convention of Full, reduced, and column-pivoted computational QR factorisations. Since v is real, this matrix acts on Fr as an orthogonal reflector over R and a unitary reflector over C. This definition does not assert a local backward-error bound.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

The scaled real-column Householder procedure terminates with defined statuses

Statement

On every admitted finite input of Scaled Householder reflector formation and application, the formation and application procedure terminates with its specified identity, reflector or first-failure return. Each specified separate-block application also terminates with its output or first failure. The zero-column branch returns the identity action and the copied block without evaluating a reflector denominator. In a successful nonzero-column branch the stored vector is nonzero, so its associated exact real reflector is orthogonal and also acts unitarily on complex blocks. This statement asserts neither unconditional arithmetic success nor a backward-error bound for a successful call.

Facts & Assumptions

Given: The finite input dimensions and admitted arithmetic model of the procedure.

[F1]

Scaled Householder reflector formation and application specifies the finite indexed scalar schedule, componentwise zero test, first-failure returns and positive-normal test on the computed squared norm of the stored vector.

[F2]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add makes each elementary operation return a finite value or its failure; exact-zero operations, copies and sign changes are exact.

Proof

1.1givenF1F2algebra

The zero test scans a finite column. If it succeeds, [F1] returns its initialized identity record, zero target and copied finite block without forming any squared-vector norm or quotient. Otherwise the scaling maximum, the two norm sums, coefficient formation, column dots and ordered update products each use finitely many indices. By [F2], each attempted arithmetic operation returns its next value or a first failure. The extra finite positivity and normality tests either return failure or allow the next finite stage. Thus formation and application terminate with a declared record.

1.2givenF1F2algebra

A specified separate block has finitely many columns and rows. Its sequential dots, coefficient-vector products and ordered update products have finite bounds; [F2] again makes each attempt return or fail. Hence this additional application terminates, including zero columns of the separate block.

2.1F1F2step 1.1step 1.2algebra∎

In a successful nonzero-column branch, the stored squared-norm sum is positive by [F1]. If the stored vector were zero, every square and every sum in that computation would be exact zero by [F2], contradicting that positive test. Therefore v≠0 and d=vTv>0. For K=vvT/d, direct multiplication gives KT=K, K2=K and (I−2K)T(I−2K)=I. Its real entries give the same adjoint identity over C. Together with steps 1.1–1.2 this proves every stated status and representative property.

Remarks

The reference entries are inherited from the analyzed procedure as method context. This result extracts and composes its explicit finite schedule and representative algebra; no verbatim external theorem or additional external reading is claimed.

This is a local extraction of finite-loop and representative arguments from the existing procedure carrier. Its error estimates remain in lem-scaled-householder-step-meets-local-backward-error-premise under that lemma's distinct hypotheses; no external full-text reading is claimed.

AlgorithmAlgorithm: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Bounded mixed-precision iterative refinement

Definition

Input nonsingular real A∈Rn×n, n≥1, exact data b∈Rn, and an initial iterate x0 stored at solve/update precision uw. Also input stored triangular factors L^,U^ formed at factorization precision uf, where L^ is lower triangular, U^ is upper triangular, both have nonzero diagonals, and A^:=L^U^ is the exact real product; thus A^ is nonsingular. Input residual precision ur, solve/update precision uw, finite update budget N≥0, tolerance τ≥0, a stagnation window Kstag≥1, nonnegative constants ηr,ξr,ηw,ξw, and a proposed contraction upper bound 0≤qcert<1. Let x∗=A−1b. Use the operationwise model of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add at each stated precision. Entries of the exact data A,b are available as real operands to the residual operations; the stored factors, iterates, residuals, and corrections are used as their exact represented values in those operations.

Certificates have the following fixed format: one real matrix B∈Rn×n before iteration, nonnegative real scalars ρk for 0≤k≤N, and nonnegative real scalars ωk for 0≤k<N. Each entry may instead be marked missing. All certificate checks use exact real addition, subtraction, multiplication, division by a positive number, nonnegative square roots, and comparisons; they are not rounded operations at ur or uw. Evaluate finite sums and products in increasing index order. In particular, evaluate ∥v∥2=∑ivi2 and ∥M∥F=∑i,jMij2 by these exact operations. This is an ideal exact-real certificate verifier, not a claim that arbitrary real inputs admit a finite-bit implementation.

Before iterating, check triangularity and nonzero diagonals of the factors; on failure return inconclusive with x0. A missing or incorrectly shaped B returns inconclusive with x0. Form A^=L^U^ exactly and check BA^=I entrywise. If this fails, return inconclusive with x0. Set a+=∥A∥F,a−=a+/n,h=∥B∥F,d=∥I−BA∥F. Accept the initial certificate precisely when d+h((1+ηw)ηr+ηw)a+≤qcert<1; otherwise return inconclusive with x0. Here B=A^−1, and the inequalities a−≤∥A∥2≤a+ and ∥M∥2≤∥M∥F from Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison make this a sufficient certificate for q=∥I−A^−1A∥2+∥A^−1∥2((1+ηw)ηr+ηw)∥A∥2≤qcert. These conservative tests may reject data for which sharper norm certificates exist.

Before entering the iteration loop, initialize the consecutive-equality counter cstag=0 and mark the preceding residual as undefined. Retain this counter and preceding residual across iterations; do not reinitialize them inside the loop. The counter records the number of consecutive equalities between adjacent successfully certified computed residual vectors.

For each k=0,…,N, compute the residual by rows in increasing i: initialize si=0, then for j=1,…,n in increasing order compute pij=fl⁡ur(Aijxk,j) and si=fl⁡ur(si+pij); finally set r^k,i=fl⁡ur(bi−si). Any operationwise range failure returns inconclusive with the current iterate and the first failing row, column, and operation. Define the exact residual defect δr,k=r^k−(b−Axk), so r^k=A(x∗−xk)+δr,k. Check that ρk is present and nonnegative and that ∑iδr,k,i2≤ρk2,ρk≤ηr(a−∥xk∥2+∥b∥2)+ξr. A missing scalar or failed comparison returns inconclusive with the current iterate. These exact tests imply ∥δr,k∥2≤ηr(∥A∥2∥xk∥2+∥b∥2)+ξr. Use the retained consecutive-equality counter and preceding residual. Use the exact Euclidean norm of the stored residual vector for the status comparison; this is a comparison of the already computed vector, not an additional rounded arithmetic operation. If ∥r^k∥2≤τ, return residual-tolerance with xk. If a preceding residual exists, compare its components exactly with those of r^k: if all are equal, increment cstag by one; otherwise reset it to zero. If cstag=Kstag, return successful-stagnation with xk. This status certifies only that the last Kstag successful updates produced identical computed residual vectors, with all range and contraction certificates accepted; it certifies neither a small exact error nor convergence. Before any further update, store r^k as the preceding residual.

If k=N and neither status above was returned, return budget-exhausted with xk. Otherwise solve L^yk=r^k by forward substitution, then U^z^k=yk by backward substitution, using precision uw. For forward substitution, visit rows i=1,…,n in increasing order, initialize si=0, and for j=1,…,i−1 in increasing order compute pij=fl⁡uw(L^ijyk,j) and si=fl⁡uw(si+pij), then ti=fl⁡uw(r^k,i−si) and yk,i=fl⁡uw(ti/L^ii). For backward substitution, visit rows i=n,…,1 in decreasing order, initialize si=0, and for j=i+1,…,n in increasing order compute pij=fl⁡uw(U^ijz^k,j) and si=fl⁡uw(si+pij), then ti=fl⁡uw(yk,i−si) and z^k,i=fl⁡uw(ti/U^ii). Update components in increasing order by xk+1,i=fl⁡uw(xk,i+z^k,i). A failed operation returns inconclusive with the current iterate and first failing operation location.

After a successful update, define the exact residual-equivalent update defect δw,k:=A^(xk+1−xk)−r^k, so xk+1=xk+A^−1(r^k+δw,k). Check that ωk is present and nonnegative and that ∑iδw,k,i2≤ωk2 and ωk≤ηw∥r^k∥2+ξw; otherwise return inconclusive with xk+1. These tests imply ∥δw,k∥2≤ηw∥r^k∥2+ξw. Continue until one of the stated statuses is returned. All loops are finite. The procedure does not claim exact termination or unconditional convergence.

Facts & Assumptions

Given: a finite input of the stated type and the operationwise arithmetic model.

[F1]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: each successful elementary operation returns a finite value, and an invalid or out-of-range operation returns a failure status.

Proof

1.1givenalgebra

The certificate checks use finite matrix products and sums, square roots of nonnegative sums of squares, and division by n>0. They compare exact real expressions and return inconclusive on a missing certificate or failed test. The residual, substitution and update loops have the stated finite bounds.

2.1step 1.1F1algebra∎

At each operation the model [F1] either returns a finite next value or the defined failure status, and every loop has its stated finite bound. Thus execution terminates with the specified output or first failure.

TheoremStatement: Literature-sourcedProof: Literature-sourcedprecheck passOpen item page →

Balanced pairwise summation has a depth-dependent error bound

Statement

Let x1,…,xn∈R, n≥1, be successfully processed by Balanced pairwise summation with range-failure status in the operationwise model. Put d=⌈log⁡2n⌉, assume du<1, and set γd=du/(1−du). Then ∣s^−∑i=1nxi∣≤γd∑i=1n∣xi∣. For n=1, d=0 and the error is zero.

Facts & Assumptions

Given: the successful padded balanced tree and operationwise model.

[F1]

Balanced pairwise summation with range-failure status: the tree has depth d and rounds each internal addition.

[F2]

If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n: a product of k relative factors is within gamma_k of 1 when ku<1.

Proof

1.1givenF1choose

Each original leaf contributes along one path of at most d rounded additions; zero padding contributes zero. Expanding the additions by the relative model writes s-hat=sum_i x_i product_{r=1}^{k_i}(1+delta_ir), with k_i<=d and |delta_ir|<=u.

2.1step 1.1F2algebra∎

For k_i=0 the product is 1. Otherwise [F2] bounds its difference from 1 by gamma_{k_i}<=gamma_d. Subtracting the exact sum and applying the triangle inequality proves the result; for d=0 every input is the sole exact leaf.

LemmaStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Binary rounding grids, exact subtraction, and ordered TwoSum

Statement

For an integer p≥2, let Bp={0}∪{±m2k:m,k∈Z, 2p−1≤m<2p}, with unbounded exponent. Let R round a real number to its nearest member of Bp, breaking ties by the even normalized significand; set R(0)=0. For x≠0 put E(x) be the unique integer with 2E(x)≤∣x∣<2E(x)+1, and set q(x)=2E(x)−p+1. The following hold.

  • R is monotone, odd, and fixes Bp. For R(t)≠0, ∣R(t)−t∣≤q(R(t))/2.
  • If x,y∈Bp, then ρ=R(x+y)−(x+y) belongs to Bp and ∣ρ∣≤min⁡(∣x∣,∣y∣). If ∣R(x+y)∣<min⁡(∣x∣,∣y∣), the sum is exact.
  • If x,y∈Bp have the same sign and ∣x∣/2≤∣y∣≤2∣x∣, then x−y∈Bp (Sterbenz exact subtraction).
  • If A,B∈Bp and ∣A∣≥∣B∣, then S=R(A+B), Z=R(S−A), T=R(B−Z) satisfy Z=S−A and T=A+B−S exactly.

Facts & Assumptions

Given: the binary set and nearest-even rounding just defined. All quantities in this lemma use unbounded exponents; finite-range success is handled separately by its consumers.

[F1]

Every complete ordered field is Archimedean: for every real number there is a larger natural number.

Proof

1.1givenF1algebra

Integer induction gives 2n≥n+1 for n≥0: the initial equality is immediate and 2n+1≥2(n+1)≥n+2. For t>0, [F1] supplies a natural N>max⁡(t,1/t,1), so 2−N<t<2N. The finite set of integers j∈[−N,N] with 2j≤t is nonempty and has a largest element E; it satisfies 2E≤t<2E+1. Strict increase of powers of two makes E unique. Thus the stated E(x) exists for every x≠0. In its binade, the finitely many points m2E−p+1, 2p−1≤m≤2p, bracket t; their adjacent neighbors determine its nearest point. Points outside that bracket cannot be nearer, and zero is farther than a positive grid point; negative arguments follow by reflection. On a binade [2j,2j+1], the nonnegative grid has spacing 2j−p+1. Its consecutive midpoints partition the real line into nearest-point cells, proving monotonicity and exactness on the grid; reflection preserves the even-significand tie rule, proving oddness. Every nonzero real number has two bracketing grid points, so a nearest point exists and is nonzero for a nonzero argument. The gaps on either side of a grid point c≠0 are at most q(c), including the half-sized lower gap at a power of two. Its rounding cell therefore gives ∣R(t)−t∣≤q(R(t))/2. Also, for any power of two h, every integer multiple nh with ∣n∣≤2p is in Bp: the integer has at most p significant bits, except ∣n∣=2p, which is a power of two.

2.1step 1.1algebra

Suppose x,y≠0 and ∣x∣≥∣y∣, and put h=q(y). Both operands and their exact sum t=x+y are integer multiples of h. Whenever ∣t∣≤∣y∣, step 1.1 makes t representable because ∣y∣<2ph. In particular, if ∣R(t)∣<∣y∣, monotonicity and the fixed grid points ±∣y∣ imply ∣t∣<∣y∣, so R(t)=t. Otherwise ∣R(t)∣≥∣y∣, hence its binade spacing is an integer multiple of h, so ρ=R(t)−t is an integer multiple of h. Since x and y themselves are candidate nearest points, ∣ρ∣≤min⁡(∣t−x∣,∣t−y∣)=∣y∣<2ph; step 1.1 makes ρ representable. The zero-operand cases have ρ=0, and interchange handles the other magnitude order. This proves the second assertion, including the strict small-rounded-sum case.

3.1step 2.1algebra

For the subtraction assertion, change both signs and interchange operands so that x≥y>0 and x≤2y. Then 0≤x−y≤y, and the grid argument in step 2.1, applied to x and −y, shows that x−y is representable. Reversing the transformations proves all same-sign cases; zero gives only the trivial zero pair.

4.1step 1.1step 2.1step 3.1algebra∎

For the ordered transform, if A=0 then B=0 and all outputs vanish. Otherwise oddness allows A>0. Since 0≤A+B≤2A and 2A is representable, monotonicity gives 0≤S≤2A. If B≥−A/2, it also gives S≥A/2; step 3.1 then makes S−A exact. If B<−A/2, the operands A and −B meet step 3.1, so S=A+B exactly and S−A=B is exact as well. Thus always Z=S−A=B+ρ, where ρ=S−(A+B). Step 2.1 makes −ρ representable, so T=R(B−Z)=−ρ=A+B−S exactly.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

TwoSum returns the exact rounding error of a floating point sum

Statement

Use a binary floating-point format of precision p≥2: its normal positive values are m2j−p+1 for integers 2p−1≤m<2p and emin⁡≤j≤emax⁡, with their negatives and zero. Any additional representable values below the normal range must belong to the unbounded binary set Bp of Binary rounding grids, exact subtraction, and ordered TwoSum (as ordinary binary subnormals do). Round each operation to nearest, ties to even, with the no-underflow success rule of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add.

For any representable real inputs a,b for which TwoSum error-free transformation succeeds, its output satisfies s=fl⁡(a+b),e=(a+b)−s,s+e=a+b exactly in real arithmetic. No ordering or sign condition on the inputs is required; zeros, exact cancellation, and all successful calls at either normal-range boundary are included.

Facts & Assumptions

Given: the binary format, rounding rule, representable inputs, and successful call in the Statement.

[F1]

TwoSum error-free transformation evaluates six separately rounded operations: s=fl⁡(a+b), z=fl⁡(s−a), v=fl⁡(s−z), w=fl⁡(a−v), t=fl⁡(b−z), and e=fl⁡(w+t).

[F2]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: success requires each exact intermediate to be zero or within the normal range, with finite rounded output.

[F3]

Binary rounding grids, exact subtraction, and ordered TwoSum supplies monotonicity, oddness, the grid error bound, representable addition errors, exact small cancellation, Sterbenz subtraction, and the ordered transform on Bp.

Proof

1.1givenF1F2F3algebra

Let R denote unbounded binary nearest-even rounding from [F3]. On the closed normal range, bounded-format rounding equals R: the normal grid is identical, its endpoints are representable, and a point beyond either endpoint cannot beat that endpoint for an exact argument inside the range. Additional subnormal values cannot alter a nearest choice there. At a boundary power of two the normalized even significand gives the same tie choice; zero is exact. All inputs belong to Bp. By [F2], induction over the six operations [F1] therefore identifies the actual successful computation with the same sequence using R. It suffices to prove its unbounded identity.

2.1step 1.1F3algebra

Put ρ=s−(a+b). If ∣a∣≥∣b∣, the ordered transform [F3] gives z=s−a and R(b−z)=−ρ exactly. Consequently v=R(s−z)=a, w=0, t=−ρ, and e=−ρ. This includes a=b=0.

2.2step 1.1F3algebra

Suppose ∣a∣<∣b∣. If ∣s∣<∣a∣, the small-rounded-sum assertion [F3] makes s=a+b exact. Then z=b, v=a, w=t=e=0 and ρ=0. For the remaining case ∣s∣≥∣a∣, apply the ordered transform to (s,−a): it says R(z−s)=z−s and R(−a−(z−s))=(s−a)−z. Oddness therefore gives v=R(s−z)=s−z and w=R(a−v)=z−(s−a) exactly. Writing σ=z−(s−a), we have w=σ and z=b+ρ+σ.

3.1step 2.2F3algebra

In this remaining case, oddness permits simultaneous sign reversal so that b>0. Since ∣a∣<b, we have 0<a+b<2b, and monotonicity gives 0<s≤2b. Thus q(s)≤q(2b)=2q(b) and the rounding bound yields ∣ρ∣≤q(b)≤b/2, since p≥2. Also ∣ρ∣≤∣a∣<b by the addition-error bound. Therefore b/2≤s−a=b+ρ<2b; monotonicity, fixing b/2 and 2b, gives b/2≤z≤2b. Sterbenz [F3] makes t=R(b−z)=b−z=−ρ−σ exact. Finally w+t=−ρ is representable by the addition-error assertion [F3], so e=R(w+t)=−ρ exactly. Oddness gives the same conclusion before sign reversal.

4.1step 1.1step 2.1step 2.2step 3.1F2algebra∎

The branches in steps 2.1, 2.2, and 3.1 cover every magnitude order and sign, and each gives e=−ρ=(a+b)−s. Step 1.1 transfers this identity to every successful finite-range call, proving s+e=a+b. A nonzero subnormal exact intermediate or overflow returns failure under [F2] and is outside the success conclusion; no extra hidden range assumption is used in any successful boundary case.

Remarks

The binary digit hypothesis supplies exactness information absent from the relative-error model alone. Shewchuk's Theorem 7 states the binary result for p≥3; step 3.1 uses the sharper bound on s−a directly to include p=2 as well. The theorem retains unrestricted inputs and does not assume that the residual operations are exact: their exactness is proved above.

TheoremStatement: Literature-sourcedProof: Literature-sourcedprecheck passOpen item page →

TwoProduct with fused multiply-add returns the exact product residual

Statement

Let a,b be real floating-point numbers successfully processed by TwoProduct product and residual computation using fused multiply-add, and assume the exact residual ab−p is representable as zero or a normal number. Then the returned pair satisfies p+e=ab exactly.

Facts & Assumptions

Given: the returned product p and fused multiply-add residual.

[F2]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: fused multiply-add rounds the single exact expression ab+c to nearest.

Proof

1.1givenF1F2algebra

The exact value supplied to the FMA is ab-p. By the representability assumption and correct rounding in [F2], e=ab-p exactly.

2.1step 1.1algebra∎

Adding p gives p+e=ab. The addition here is in the real-number conclusion, not an extra rounded operation.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Kahan and Neumaier summation satisfy explicit finite data-dependent error bounds

Statement

Let the input length be n∈N0. If n=0, both algorithms return exactly zero, the sum of the empty input, and their absolute errors are zero. Kahan executes no loop operations and returns s0=0; Neumaier executes no loop operations and its final addition returns fl⁡(s0+c0)=0, with final rounding error ϵf=0. The Kahan identity and bound below apply when n≥1; no y0, s−1, or ϵ0s is required in the empty branch.

For n≥1 successfully processed real inputs x1,…,xn, let ϵiy,ϵis,ϵid,ϵic be the signed errors in the four Kahan operations. Then sn−∑i=1nxi=∑i=1nϵiy+ϵns−∑i=1n−1(ϵid+ϵic), hence ∣sn−∑ixi∣≤u∑i∣xi−ci−1∣+u∣sn−1+yn∣+u∑i<n(∣si−si−1∣+∣di−yi∣). For Neumaier, let ϵit,ϵiq,ϵia,ϵic be the signed errors at the actually executed operations and ϵf the final rounding error. Then s^−∑ixi=∑i(ϵiq+ϵia+ϵic)+ϵf. The leading-sum error ϵit cancels from this exact identity; its nonnegative allowance may still be retained in the conservative bound below. For each i, define Pi by the branch-specific expression below. Then ∣s^−∑ixi∣≤u∑iPi+u∣sn+cn∣, where the final term accounts for the last rounded addition. These are finite data-dependent bounds, not uniform relative-error claims.

Pi=∣si−1∣+∣xi∣+{∣si−1∣+∣ti∣,∣si−1∣≥∣xi∣,∣xi∣+∣ti∣,∣si−1∣<∣xi∣+{∣qi∣+∣xi∣,∣si−1∣≥∣xi∣,∣qi∣+∣si−1∣,∣si−1∣<∣xi∣+∣ci−1∣+∣ai∣.

Facts & Assumptions

Given: the successful recurrences and operationwise relative-error model.

[F1]

Kahan compensated summation with range-failure status: its four rounded operations are y_i, s_i, d_i, and c_i in the stated order.

[F2]

Neumaier compensated summation with range-failure status: each step forms t_i, a branch-dependent q_i and a_i, updates c_i, then rounds the final s_n+c_n.

[F3]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: every successful real operation has absolute error at most u times the absolute value of its exact result. An exact zero result is admissible and is rounded exactly to zero.

Proof

1.1givenF1F2F3algebra

If n=0, the loop index sets in [F1] and [F2] are empty, and their initial values are s0=c0=0. Thus Kahan returns s0=0 without a rounded operation. Neumaier's final exact sum is s0+c0=0; [F3] rounds this representable zero exactly and does not fail, so its returned value and final rounding error are both zero. The exact sum of the empty input is zero, proving both zero-error claims. For the remaining Kahan indexed formulas assume n≥1; the Neumaier formulas also specialize at n=0 to empty sums and ϵf=0.

1.2givenF1F3algebra

For Kahan write y_i=x_i-c_{i-1}+epsilon_i^y and s_i=s_{i-1}+y_i+epsilon_i^s. Then d_i=s_i-s_{i-1}+epsilon_i^d and c_i=d_i-y_i+epsilon_i^c=epsilon_i^s+epsilon_i^d+epsilon_i^c.

1.3givenF2F3algebra

In the first Neumaier branch, q_i=s_{i-1}-t_i+epsilon_i^q and a_i=q_i+x_i+epsilon_i^a, so t_i+a_i=s_{i-1}+x_i+epsilon_i^q+epsilon_i^a. In the second branch, q_i=x_i-t_i+epsilon_i^q and a_i=q_i+s_{i-1}+epsilon_i^a give the same identity. Thus the error in forming t_i cancels in both branches. Since s_i=t_i and c_i=c_{i-1}+a_i+epsilon_i^c, summing s_i+c_i-(s_{i-1}+c_{i-1}) telescopes to the corrected Neumaier identity before final rounding; the returned addition contributes epsilon^f.

2.1step 1.2F3algebra

Summing s_i-s_{i-1}=x_i-c_{i-1}+epsilon_i^y+epsilon_i^s and substituting the formula for c_{i-1} cancels epsilon_i^s for i<n and gives the displayed Kahan identity. Bounding the remaining local errors by [F3] yields its stated finite bound.

3.1step 1.3F3algebra∎

Take absolute values in the corrected identity. By [F3], the q_i error is bounded by u times the sum of the magnitudes in the first branch-specific term of P_i, the a_i error by u times the second branch-specific term, and the c_i error by u(|c_{i-1}|+|a_i|). Their sum is at most uP_i because the remaining term u(|s_{i-1}|+|x_i|) is nonnegative. The final addition contributes at most u|s_n+c_n|. This proves the unchanged conservative Neumaier bound. No step divides by the exact sum, so no uniform relative bound follows.

TheoremStatement: Literature-sourcedProof: Literature-sourcedprecheck passOpen item page →

A successful rounded Cholesky factorization has componentwise and normwise backward error bounds

Statement

Let n≥1 and let A=A∗ be positive definite in Cn×n. Suppose the rounded Cholesky algorithm succeeds with L^. Put m=20n+20 and g=γm=mu1−mu; assume mu<1/5. For E=L^L^∗−A, which is Hermitian, and with ∣M∣ denoting entrywise absolute value for matrices, ∣E∣≤100g ∣L^∣ ∣L^∣∗entrywise,∥E∥F≤100g∥L^∥F2,∥E∥2≤100g∥L^∥F2. Thus cn(u)u=100mu1−mu. If also 100n g≤1/2, then ∥E∥F≤200n g∥A∥F,∥E∥2≤200n g∥A∥F. These bounds apply on success only; positive definiteness does not guarantee rounded success.

Facts & Assumptions

Given: successful rounded recurrences, the normal-range model, and the exact Cholesky convention.

[F1]

Failure-aware rounded Cholesky factorization: success supplies positive rounded pivots and rounded updates using six-real-operation complex products.

[F2]

A matrix admits a Cholesky factorisation with positive diagonal exactly when it is Hermitian positive definite, and that factor is unique: Hermitian positive-definite input has an exact lower triangular factor with positive diagonal.

[F3]

If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n: a chain of k successful operations has the gamma_k relative bound when ku<1.

Proof

1.1givenF1F3algebra

For one complex product zw, write its real exact products as ac,bd,ad,bc. Each rounded product has error at most u times its operand product; each final rounded real sum or difference contributes at most u times the sum of the two operand magnitudes. Hence the real-component error is at most (2u+u2)(∣ac∣+∣bd∣) and the imaginary-component error at most (2u+u2)(∣ad∣+∣bc∣). Since u<1/200, their Euclidean combination is at most 6u∣z∣∣w∣. A sequential sum of at most n complex products contributes at most γn(1+6u) times the absolute product sum; adding product errors gives 6u+γn(1+6u)=(n+6)u1−nu≤γn+6≤g. Each diagonal term ∣l^jk∣2 uses two rounded squares and one rounded addition; sequentially summing at most n terms uses at most 4n rounded real operations, so the same expansion bounds the diagonal sum error by γ4nSj≤gSj.

2.1step 1.1F1algebra

For i>j, let Sij=∑k<jl^ikl^jk‾, Tij=∑k≤j∣l^ik∣∣l^jk∣, and S^ij be the computed dot product. Step 1.1 gives ∣S^ij−Sij∣≤gTij and ∣S^ij∣≤(1+g)Tij. The subtraction error is at most u(∣aij∣+∣S^ij∣), and the two component divisions imply ∣l^ijl^jj−r^ij∣≤u∣r^ij∣; also ∣r^ij∣≤(1+u)(∣aij∣+∣S^ij∣). Therefore ∣Eij∣≤gTij+u(2+u)(∣aij∣+(1+g)Tij). Since ∣aij∣≤Tij+∣Eij∣, moving u(2+u)∣Eij∣ to the left gives ∣Eij∣≤g+u(2+u)(2+g)1−u(2+u)Tij. Here u≤g/m, g<1/4, m≥40, and u<1/200, so the numerator coefficient is less than 1.12g and the denominator exceeds 0.989. The quotient is less than 1.14g<100g.

2.2step 1.1F1F3algebra

On the diagonal put Sj=∑k<j∣l^jk∣2. Step 1.1 and the pivot subtraction give pj=ajj−Sj+ϵj with ∣ϵj∣≤u∣ajj∣+(g+u(1+g))Sj≤u∣ajj∣+1.26gSj. The rounded square root has l^jj=pj(1+δj), ∣δj∣≤u, so ∣l^jj2−pj∣≤(2u+u2)pj≤3upj. From ∣ajj∣≤Sj+pj+∣ϵj∣ we get (1−u)∣ajj∣≤(1+1.26g)Sj+pj. Since u<1/200 and g<1/4, this implies ∣ajj∣≤1.33Sj+1.01pj≤2110(Sj+pj). Also pj=l^jj2/(1+δj)2≤1.011l^jj2, so 2110(Sj+pj)≤115(Sj+l^jj2). Thus ∣Ejj∣≤u∣ajj∣+1.26gSj+3upj≤1.32gSj+0.14gl^jj2≤100g(Sj+l^jj2), using u≤g/40. Hermitian symmetry gives the corresponding conjugate entries, proving the componentwise estimate.

3.1step 2.1step 2.2F2F4F5algebra∎

By [F5], Cauchy-Schwarz applied to each row-column inner product gives ∥∣L^∣∣L^∣∗∥F2≤∑i,j(∑k∣l^ik∣2)(∑k∣l^jk∣2)=∥L^∥F4. The entrywise bound therefore yields ∥E∥F≤100g∥L^∥F2, and [F4] gives the spectral bound. For the relative consequence, take traces in L^L^∗=A+E: ∥L^∥F2≤n∥A∥F+n∥E∥F≤n∥A∥F+100n g∥L^∥F2. The additional condition gives ∥L^∥F2≤2n∥A∥F, yielding both stated relative norm bounds.

LemmaStatement: Literature-sourcedProof: Literature-sourcedOpen item page →

The scaled computed Householder step satisfies the local backward error premise

Statement

Let C=[x  B]∈Rr×(q+1), r≥1, q≥0, undergo a successful step of Scaled Householder reflector formation and application, with 0<u<1 and ru<1. Define gr=ru1−ru,er=(1+u)r/2+3−1,dr=er+u(2+er),ar=1+u(1−u)r−1, cr=2((1+ar)(1+u)2(1+gr)−1),κr=max⁡{er+8dr,(1+u)cr+3u}. There is an exact orthogonal H, the identity when x=0 and H(v)=I−2vvT/(vTv) otherwise, and a perturbation E such that H(C+E)=C+,∥E∥F≤κr∥C∥F. The constants increase with r and are O(ru) for fixed r as u→0. The column overwrite is included. For any real separate block Y∈Rr×t, t≥0, successful application of the same stored (v,τ^) without an annihilation overwrite has discrepancy from H(v)Y at most ((1+u)cr+3u)∥Y∥F.

Facts & Assumptions

Given: The stated successful real step; every nonzero exact intermediate is normal and all zero operations are exact.

[F1]

Scaled Householder reflector formation and application fixes scaling, sequential dots, the two update multiplications, and the column overwrite.

[F2]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add supplies relative errors at most u, correctly rounded square roots, and exact zero/sign operations.

[F3]

Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries gives the exact orthogonal Householder representative and exact annihilation.

[F4]
[F5]

Cauchy–Schwarz: ∣⟨x,y⟩∣≤∥x∥ ∥y∥, with equality exactly for dependent pairs gives ∣⟨a,b⟩∣≤∥a∥2∥b∥2 for real Euclidean vectors. Expanding ∥a+b∥22 and applying this inequality gives ∥a+b∥2≤∥a∥2+∥b∥2. Then ∣∥a∥22−∥b∥22∣=∣⟨a−b,a+b⟩∣≤∥a−b∥2(∥a∥2+∥b∥2), which yields ∣∥a∥2−∥b∥2∣≤∥a−b∥2 (divide unless both vectors are zero). Cauchy-Schwarz also gives ∑i∣viBij∣≤∥v∥2∥B:j∥2.

[F6]

The Frobenius norm ∥A∥F=(∑i,j∣aij∣2)1/2 on real or complex matrices defines ∥M∥F2 as the sum of squared entry magnitudes, so Frobenius squares add over disjoint columns.

[F7]

The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv|| defines ∥M∥2=max⁡∥y∥2=1∥My∥2 for a nonzero domain. Thus [F5] gives ∥abT∥2=max⁡∥y∥2=1∥a(bTy)∥2≤∥a∥2∥b∥2.

Proof

1.1givenF1F2algebra

If x=0, the algorithm copies B and the zero column; take H=I and E=0. Otherwise put N=∥x∥2, α0=−σN, v0=x−α0e1 and V0=∥v0∥2≥N. The nonnegative scaled squared-norm sum has each exact squared input multiplied by at most r+2 factors 1+δ, ∣δ∣≤u: two from scaling and at most r from squaring and subsequent additions. Thus the computed norm divided by N lies between (1−u)r/2+3 and (1+u)r/2+3 after square root and rescaling. For exponent p≥1, convexity of tp on t>0 gives 1−(1−u)p≤(1+u)p−1. Hence ∣α^−α0∣≤erN. Only the first stored coordinate can differ from v0, and subtraction gives ∥v−v0∥2≤(er+u(2+er))N=drN. Success gives nonzero stored v.

1.2givenF1F2F4F5algebra

Put V=∥v∥2. The rounded positive dot product satisfies (1−u)rV2≤w≤(1+u)rV2 by expansion of its products and additions, including exact zeros. The division defining τ^ therefore gives ∣τ^V2/2−1∣≤ar; the upper deviation dominates the lower by multiplying the positive denominators. A sequential signed dot product differs from its exact value by at most gr∑i∣viBij∣≤grV∥B:j∥2, by the same factor expansion, [F4], and Cauchy-Schwarz [F5].

2.1F3F5F7step 1.1algebra

For nonzero vectors a,b, adding and subtracting a/∥b∥ and using the reverse triangle inequality from [F5] gives ∥a/∥a∥−b/∥b∥∥≤2∥a−b∥/∥b∥. For unit z,w, expanding zzT−wwT=(z−w)zT+w(z−w)T and applying [F5] and [F7] to the rank-one terms gives operator norm at most 2∥z−w∥. Consequently ∥H(v)−H(v0)∥2≤8∥v−v0∥/V0≤8dr. Since H(v0)x=α0e1, the overwritten column differs from H(v)x by at most (er+8dr)N.

2.2F1F2F5F6step 1.2algebra

The exact rank-one update has norm at most 2∥B∥F: for z=v/V, each column satisfies ∥zzTB:j∥2=∣zTB:j∣≤∥B:j∥2 by [F5], and summing the squared column bounds gives the Frobenius estimate by [F6]. Replacing its coefficient by τ^, its dot by the computed dot, and its two multiplications by rounded multiplications bounds the update error by cr∥B∥F: successively the nonnegative majorants multiply by 1+ar, 1+gr, and (1+u)2, then subtract the exact majorant 2. Final subtraction adds at most u(∥B∥F+∥U∥F)≤u(3+cr)∥B∥F. Thus ∥B^−H(v)B∥F≤((1+u)cr+3u)∥B∥F. The same computation applies to any separate block Y.

3.1F3F6step 2.1step 2.2algebra∎

The first-column and remaining-column errors occupy disjoint columns, so their squared Frobenius norms add by [F6]; the same entrywise formula gives ∥C∥F2=∥x∥22+∥B∥F2. Steps 2.1 and 2.2 give ∥C+−H(v)C∥F≤κr∥C∥F. Choose E=H(v)C+−C; orthogonality gives H(C+E)=C+, and Frobenius norm invariance follows because H preserves the Euclidean norm of each column and [F6] sums their squares. Each displayed coefficient increases with r and has zero constant term and finite first derivative at u=0, proving the stated asymptotics.

Remarks

The former 3γr constant is false for this evaluation order; an exact binary counterexample is preserved in the run's owner rounded-derivative escalation evidence. This lemma supplies its own explicit bound and does not assert the distinct premise of the published conditional QR theorem.

TheoremStatement: Literature-sourcedProof: Literature-sourcedprecheck passjudge pass (gpt-6-luna)Open item page →

Mixed-precision refinement has an error recurrence and a finite precision floor

Statement

Let A be nonsingular, Ax_=b, A-hat nonsingular, and e_k=x_-x_k. Suppose the successful refinement algorithm has r-hat_k=Ae_k+delta_r,k with ||delta_r,k||_2<=eta_r(||A||_2||x_k||_2+||b||_2)+xi_r and combined solve/update residual-equivalent error ||delta_w,k||_2<=eta_w||r-hat_k||_2+xi_w. Set rho_0=xi_r+eta_r(||A||2||x*||_2+||b||_2), q=||I-A-hat^{-1}A||_2+||A-hat^{-1}||_2((1+eta_w)eta_r+eta_w)||A||_2, eta=||A-hat^{-1}||2((1+eta_w)rho_0+xi_w). Then e{k+1}=(I-A-hat^{-1}A)e_k-A-hat^{-1}(delta_r,k+delta_w,k). If q<1 then ||e_k||_2<=q^k||e_0||_2+eta(1-q^k)/(1-q) for every executed k<=N. The precision floor is eta/(1-q); this is conditional and does not promise exact termination.

Facts & Assumptions

Given: residual and combined solve/update certificates at distinct precisions u_r, u_f, and u_w.

[F1]

Bounded mixed-precision iterative refinement: residual, factorization, and update precisions are distinct; the algorithm represents solve/update error by delta_w and fails inconclusively on missing certificates.

[F3]

Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison: the finite-dimensional spectral norm is the operator norm used in the estimates.

Proof

1.1givenF1algebra

By the residual-equivalent update certificate, e_{k+1}=e_k-A-hat^{-1}(r-hat_k+delta_w,k). Substituting r-hat_k=Ae_k+delta_r,k gives the exact recurrence.

2.1step 1.1F1F2F3algebra

Since ||x_k||2<=||x*||_2+||e_k||_2, the residual certificate yields ||delta_r,k||_2<=eta_r||A||_2||e_k||_2+rho_0 and ||r-hat_k||_2<= (1+eta_r)||A||_2||e_k||_2+rho_0. Therefore ||delta_w,k||_2<=eta_w(1+eta_r)||A||_2||e_k||_2+eta_w rho_0+xi_w.

3.1step 1.1step 2.1F2algebra

Apply compatibility and the triangle inequality to the recurrence. The error coefficient is q because eta_r+eta_w(1+eta_r)=(1+eta_w)eta_r+eta_w; the additive term is eta. Thus ||e_{k+1}||_2<=q||e_k||_2+eta.

4.1step 3.1inductionalgebra∎

If q<1, induction gives ||e_k||_2<=q^k||e_0||2+eta sum{j=0}^{k-1}q^j. The finite geometric sum is (1-q^k)/(1-q), proving the assertion.

TheoremStatement: Literature-sourcedProof: Literature-sourcedprecheck passOpen item page →

The scaled Householder QR implementation is backward stable

Statement

Let A∈Rm×n, m≥n≥1, undergo successful QR steps of Scaled Householder reflector formation and application, with mu<1. Use κm from The scaled computed Householder step satisfies the local backward error premise and set βQ=(1+κm)n−1. The exact orthogonal product represented by the stored reflectors has reduced first n columns Q^, and the computed triangular block is R^. Then A+ΔA=Q^R^,∥ΔA∥F≤βQ∥A∥F. If applying the stored reflectors in the same order to a separate vector b, by their rounded rank-one updates without column overwrites, succeeds at every update, the resulting full vector c^ satisfies ∥c^−QfullTb∥2≤βQ∥b∥2. The bounds are O(u) for fixed dimensions. An explicitly rounded dense product for Qfull is not asserted exactly orthogonal.

Facts & Assumptions

Given: Successful no-underflow QR and vector updates in the stated operationwise arithmetic.

[F1]

The scaled computed Householder step satisfies the local backward error premise supplies each exact orthogonal representative and its local matrix and separate-block bound.

Proof

1.1givenF1algebrainduction

Embed each active orthogonal representative into the full row dimension and each local perturbation by zeros outside its active block. All active row counts are at most m, so [F1] bounds every local error by κm times the current active-block norm, hence by that times the current full-matrix norm. A completed full step therefore has norm at most 1+κm times the preceding norm. Induction bounds the matrix before step k by (1+κm)k∥A∥F.

2.1F1F2step 1.1algebra

Transport each local error back through the preceding orthogonal factors. Orthogonal multiplication preserves Frobenius norm, as follows by summing the preserved squared column norms. The transported errors sum to ΔA, and exact column overwrites make the final lower block zero. Thus [F2] identifies A+ΔA=Q^R^, with ∥ΔA∥F≤κm∑k=0n−1(1+κm)k∥A∥F=βQ∥A∥F.

3.1F1step 1.1step 2.1algebra∎

For the separate vector, [F1] bounds each update discrepancy by κm times its current norm. The identical norm induction and orthogonal transport argument bound its total discrepancy from the exact product by κm∑k=0n−1(1+κm)k∥b∥2=βQ∥b∥2. Since κm=O(u) for fixed m, the claimed fixed-dimension backward and application bounds follow.

TheoremStatement: Literature-sourcedProof: Literature-sourcedOpen item page →

Computed reduced QR least squares is backward stable for full column rank

Statement

Let A∈Rm×n, m≥n≥1, have full column rank. Successful scaled Householder QR gives the exactly orthonormal reduced representative Q^ and computed triangular R^ with A+ΔQ=Q^R^,∥ΔQ∥F≤βQ∥A∥F,βQ=(1+κm)n−1, where κm is the proved local-step coefficient. Apply the stored reflectors to b by rounded rank-one updates and let y^ be the first n coordinates. Set βb=βQ. Alternatively, if an explicitly supplied exactly orthonormal Q^ has entries admissible as arithmetic inputs and y^=fl⁡(Q^Tb) uses sequential rounded dots, set βb=n γm. Solve R^x^=y^ by successful rounded back substitution. Suppose mu<1 and γn+3<1/8. There exist δb and upper triangular ΔR with (R^+ΔR)x^=Q^T(b+δb),∥δb∥2≤βb∥b∥2,∥ΔR∥F≤γn+3∥R^∥F. If R^+ΔR is nonsingular, x^ is the unique least-squares solution for A~=Q^(R^+ΔR) and b~=b+δb. The relative matrix perturbation is at most βQ+γn+3(1+βQ); the right-hand perturbation is at most βb. For fixed m,n, both perturbation coefficients are O(u). If additionally βQ≤19γn+3/(1+γn+3) and βb≤20γn+3, both relative data perturbation bounds are at most 20γn+3. These two coefficient comparisons are additional checks; they do not follow from mu<1 and γn+3<1/8 alone. Success and nonsingularity are explicit hypotheses.

Facts & Assumptions

Given: The stated successful QR, right-hand-side evaluation, and triangular solve; all nonzero exact intermediates are normal.

[F1]

The scaled Householder QR implementation is backward stable supplies the proved QR bound and the stored-reflector application bound.

[F2]

Rounded triangular substitution has a componentwise matrix backward error supplies the rounded triangular matrix perturbation, including the zero-solution branch.

[F5]

Cauchy–Schwarz: ∣⟨x,y⟩∣≤∥x∥ ∥y∥, with equality exactly for dependent pairs: for real Euclidean vectors, ∣⟨v,w⟩∣≤∥v∥2∥w∥2.

Proof

1.1givenF1F4F5algebraconstruct

For stored-reflector evaluation, [F1] bounds ∥y^−Q^Tb∥2 by βQ∥b∥2. In the explicit admissible-input alternative, dot expansion by [F4] gives coordinate errors at most γm∑i∣q^ijbi∣≤γm∥b∥2 by Cauchy-Schwarz and unit column norms; combining coordinates gives nγm∥b∥2. In either case put z=y^−Q^Tb and δb=Q^z. Exact orthonormality gives Q^Tδb=z and ∥δb∥2=∥z∥2.

2.1F2step 1.1algebra

Apply [F2] to the actual rounded back substitution. It supplies upper triangular ΔR with (R^+ΔR)x^=y^ and the displayed Frobenius estimate. This holds also when x^=0, since the same row identities force y^=0. Combined with step 1.1 this proves the perturbed normal-coordinate equation.

3.1F1F3step 1.1step 2.1algebra∎

Under the stated nonsingularity hypothesis, A~=Q^(R^+ΔR) has full column rank, and [F3] identifies x^ as its unique least-squares minimizer for b+δb. Finally ∥R^∥F=∥A+ΔQ∥F≤(1+βQ)∥A∥F, and A~−A=ΔQ+Q^ΔR gives the stated relative matrix bound. At fixed dimensions, [F1] gives βQ=O(u), and γm=O(u) gives βb=O(u) in either right-hand-side branch, so the displayed coefficients are O(u). Under the additional coefficient checks, write g=γn+3; then βQ+g(1+βQ)=(1+g)βQ+g≤19g+g=20g, while the assumed βb≤20g gives the right-hand bound. No comparison between βQ and g is inferred from arithmetic success alone.

LemmaStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Rounded triangular substitution has a componentwise matrix backward error

Statement

Let R∈Rn×n be upper triangular with stored floating-point entries and nonzero diagonal, and let y∈Rn have stored floating-point entries, where n≥1 and (n+3)u<1. Use the operationwise arithmetic model of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add at unit roundoff u. Compute descending substitution by the sequential rounded dot si=fl⁡(∑j>iRijx^j) (empty sum zero), ti=fl⁡(yi−si), and x^i=fl⁡(ti/Rii). Assume each exact intermediate is zero or normal and each rounded result is finite, so every operation succeeds under that model. Then there is upper triangular ΔR with (R+ΔR)x^=y,∣ΔR∣≤γn+3∣R∣,∥ΔR∥F≤γn+3∥R∥F. In particular x^=0 forces y=0. Forward substitution has the transposed conclusion.

Facts & Assumptions

Given: The stated successful rounded recurrence, with no nonzero subnormal intermediate.

[F2]

If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n bounds each dot-product coefficient error by its accumulated γ factor.

[F3]

Forward and backward substitution are correct, unique, and quadratic in scalar operations supplies the descending and ascending exact triangular recurrences.

Proof

1.1givenF1F2F3algebra

Expand the rounded dot to obtain si=∑j>iRijx^j(1+θij), with ∣θij∣≤γn−i, and use sn=0. Write subtraction and division errors as αi,βi∈[−u,u]. The computed row identity is then Riix^i/((1+αi)(1+βi))+∑j>iRijx^j(1+θij)=yi. These identities also hold for zero intermediates by taking the corresponding error zero.

2.1F1step 1.1algebraconstruct

Choose ΔRii=Rii(((1+αi)(1+βi))−1−1) and ΔRij=Rijθij for j>i, with zeros below the diagonal. Since u<1/(n+3)≤1/4, all denominators are positive and ∣((1+αi)(1+βi))−1−1∣≤(1−u)−2−1≤3u/(1−3u)=γ3; multiplying positive denominators verifies the last inequality. Thus every entry has the claimed bound.

3.1step 1.1step 2.1algebra∎

Step 1.1 gives (R+ΔR)x^=y, and summing the squared entry bounds gives the Frobenius estimate. If x^=0, the same equation gives y=0, including dimension one without a division by ∥x^∥. Reversing the row order proves the lower-triangular version.

LemmaStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Rounded matrix products give certified linear and normal-equation residual allowances

Statement

Let A∈Fm×n, x∈Fn, y∈Fm have stored real or complex entries, with m,n≥1. Use the operationwise arithmetic model, successful sequential dot products, and 0<u<1 with (max⁡(m,n)−1)u<1. Define gk=1+6u1−(k−1)u−1,F=∥A∥F,X=∥x∥2,Y=∥y∥2. For v^=fl⁡(Ax) and w^=fl⁡(v^−y), put V=gnFX and W=V+u(∥v^∥2+Y). Then ∥w^−(Ax−y)∥2≤W. For a stored real λ>0, also compute z^=fl⁡(A∗w^), l^=fl⁡(λx) and r^=fl⁡(z^+l^), rounding scalar multiplication componentwise. The exact intended normal residual r=A∗(Ax−y)+λx satisfies ∥r^−r∥2≤ρ:=FW+gmF∥w^∥2+uλX+u(∥z^∥2+∥l^∥2). Norms in these certificates mean exact norms or certified upper bounds. Uncontrolled rounding of the certificate itself is not authorized. The linear bound applies columnwise to certify ∥I−AB∥2≤∥I−AB∥F from stored basis-solve columns B.

Facts & Assumptions

Given: The stated stored inputs, evaluation order and successful operations; every nonzero exact intermediate is normal, and zero operations are exact.

[F1]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add specifies real component operations and six-real-operation complex multiplication.

[F3]

Cauchy–Schwarz: ∣⟨x,y⟩∣≤∥x∥ ∥y∥, with equality exactly for dependent pairs: for real or complex Euclidean vectors, ∣⟨v,w⟩∣≤∥v∥2∥w∥2. Applying this rowwise gives ∥Mz∥2≤∥M∥F∥z∥2, also for M=A∗.

Proof

1.1givenF1algebra

For (a+ib)(c+id), each rounded real product has error at most u times its absolute exact value. Each final real addition contributes at most u(1+u) times the two corresponding product magnitudes. The Euclidean norm of the resulting real/imaginary error is at most 2(2u+u2)∣a+ib∣∣c+id∣≤6u∣a+ib∣∣c+id∣, since u<1. Conjugation is exact. Real products obey this conservative bound as well.

2.1F1F2F3step 1.1algebra

In a length-k dot product, each product error from step 1.1 is propagated through at most k−1 additions. Expansion of each real component and [F2] bound the dot discrepancy by [6u+γk−1(1+6u)]∑i∣ai∣∣xi∣=gk∑i∣ai∣∣xi∣, with γ0=0. Combining rows and applying Cauchy-Schwarz gives ∥v^−Ax∥2≤gnFX=V. Componentwise subtraction has vector error at most u(∥v^∥2+Y), so the linear residual allowance is W. Zeros cause no difficulty in this expansion.

3.1F1F3step 2.1algebra∎

Apply step 2.1 to A∗w^ to get ∥z^−A∗w^∥2≤gmF∥w^∥2. Transporting the earlier error through A∗ adds at most FW. The scalar product error is at most uλX; the last addition adds at most u(∥z^∥2+∥l^∥2). Their sum proves ρ. For basis columns, the triangle inequality combines each computed linear residual with its allowance; summing the squared column bounds gives a Frobenius certificate for I−AB, which bounds its induced Euclidean norm by Cauchy-Schwarz.

5 · Examples, counterexamples and false statements

None yet.

Sources