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.
Finite-precision direct factorizations and least squares
1 · Prerequisites
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Direct Matrix Factorisations: LU, Cholesky and QR
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Matrix Norms, Condition Numbers and Numerical Stability
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Splitting Fields
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
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
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 and integer normal-exponent bounds . Its normal values are for integers and , with and . 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, 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 , 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 ; 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.
Finite arithmetic schedules terminate, with early failure counted separately
Statement
Fix an initialized finite state and an ordered list of 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 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 levels containing addition instructions at level , with each addition returning a rounded value or immediate failure. A successful execution attempts exactly additions; every execution attempts at most . For 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
After the first instructions have completed without an early return, the state needed by instruction is initialized by hypothesis. That instruction either returns an early status or finishes in finite time. Induction for therefore reaches an early return or completes all instructions and the specified completion return. An early return stops before any later instruction, so it is the first one and at most instructions are attempted. This includes , when only the completion return is executed.
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 . Here and , whence induction gives . 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.
Balanced pairwise summation with range-failure status
Definition
Input real floating-point values , . Set , place these values in leaves from left to right, and append exact zero leaves. At level , replace each consecutive pair of current nodes , in increasing , by
If an operation fails, return range-failure with the first failing level and node in this level-by-level, left-to-right order. For , return with no additions. Otherwise return the single node .
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.
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.
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
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.
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.
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.
Kahan compensated summation with range-failure status
Definition
For a finite list of real floating-point inputs , initialize . For compute , , , and , in that order. Return , 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 attempted rounded operations and exactly on success, including zero for . The successful error identity is proved in Kahan and Neumaier summation satisfy explicit finite data-dependent error bounds.
Neumaier compensated summation with range-failure status
Definition
For a finite list of real floating-point inputs , initialize . For each , set . If , set and ; otherwise set and . Then set and . Return , 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 attempted rounded operations and exactly 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.
Failure-aware rounded Cholesky factorization
Definition
Input a Hermitian positive-definite matrix , , 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 to zero. Process columns in increasing order. For the diagonal, initialize and, for in increasing order, compute
in that order. Then compute . If an operation fails, or if is not positive and normal, return failure with pivot and the first failing operation location. Otherwise compute ; if it is not positive and normal, return failure at pivot .
For each in increasing order, initialize the complex accumulator . For in increasing order, compute the complex product 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
After this dot product, compute by one rounded real subtraction for each component, then compute each component of by one rounded real division. The empty dot product is zero. On any failure return failure with pivot 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.
Scaled Householder reflector formation and application
Definition
Let . Input a real active column and trailing block with entries in the floating-point system, , . If every component of is zero, return the identity action and a copy of , with the active output column set to exact zeros, so that ; return marked identity. Otherwise compute , and then, in increasing , compute . Initialize and, in increasing , compute followed by . Compute and then . Set if and otherwise, and set using the exact sign change. Compute , then copy exactly for .
Initialize and, in increasing , compute followed by . Then compute . For each column in increasing order, initialize and, in increasing , compute followed by . After all have been computed, in increasing compute . Then, in increasing and within each column in increasing , compute and in that order. The complete active output is , 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 , , or is not positive normal, or any intermediate is nonfinite. Otherwise return marked reflector. For a separate block , , apply the stored reflector by computing its sequential column dots in increasing column order, then the vector in increasing , 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 , the associated exact reflector is , using Householder reflectors in real or complex inner-product spaces and the QR convention of Full, reduced, and column-pivoted computational QR factorisations. Since is real, this matrix acts on as an orthogonal reflector over and a unitary reflector over . This definition does not assert a local backward-error bound.
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.
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.
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
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.
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.
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 and . For , direct multiplication gives , and . Its real entries give the same adjoint identity over . 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.
Bounded mixed-precision iterative refinement
Definition
Input nonsingular real , , exact data , and an initial iterate stored at solve/update precision . Also input stored triangular factors formed at factorization precision , where is lower triangular, is upper triangular, both have nonzero diagonals, and is the exact real product; thus is nonsingular. Input residual precision , solve/update precision , finite update budget , tolerance , a stagnation window , nonnegative constants , and a proposed contraction upper bound . Let . 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 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 before iteration, nonnegative real scalars for , and nonnegative real scalars for . 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 or . Evaluate finite sums and products in increasing index order. In particular, evaluate and 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 . A missing or incorrectly shaped returns inconclusive with . Form exactly and check entrywise. If this fails, return inconclusive with . Set
Accept the initial certificate precisely when
otherwise return inconclusive with . Here , and the inequalities and 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
These conservative tests may reject data for which sharper norm certificates exist.
Before entering the iteration loop, initialize the consecutive-equality counter 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 , compute the residual by rows in increasing : initialize , then for in increasing order compute and ; finally set . Any operationwise range failure returns inconclusive with the current iterate and the first failing row, column, and operation. Define the exact residual defect , so . Check that is present and nonnegative and that
A missing scalar or failed comparison returns inconclusive with the current iterate. These exact tests imply .
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 , return residual-tolerance with . If a preceding residual exists, compare its components exactly with those of : if all are equal, increment by one; otherwise reset it to zero. If , return successful-stagnation with . This status certifies only that the last 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 as the preceding residual.
If and neither status above was returned, return budget-exhausted with . Otherwise solve by forward substitution, then by backward substitution, using precision . For forward substitution, visit rows in increasing order, initialize , and for in increasing order compute and , then and . For backward substitution, visit rows in decreasing order, initialize , and for in increasing order compute and , then and . Update components in increasing order by . 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
so . Check that is present and nonnegative and that and ; otherwise return inconclusive with . These tests imply . 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.
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
The certificate checks use finite matrix products and sums, square roots of nonnegative sums of squares, and division by . 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.
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.
Balanced pairwise summation has a depth-dependent error bound
Statement
Let , , be successfully processed by Balanced pairwise summation with range-failure status in the operationwise model. Put , assume , and set . Then For , and the error is zero.
Facts & Assumptions
Given: the successful padded balanced tree and operationwise model.
Balanced pairwise summation with range-failure status: the tree has depth d and rounds each internal addition.
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
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.
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.
Binary rounding grids, exact subtraction, and ordered TwoSum
Statement
For an integer , let , with unbounded exponent. Let round a real number to its nearest member of , breaking ties by the even normalized significand; set . For put be the unique integer with , and set . The following hold.
- is monotone, odd, and fixes . For , .
- If , then belongs to and . If , the sum is exact.
- If have the same sign and , then (Sterbenz exact subtraction).
- If and , then , , satisfy and 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.
Every complete ordered field is Archimedean: for every real number there is a larger natural number.
Proof
Integer induction gives for : the initial equality is immediate and . For , [F1] supplies a natural , so . The finite set of integers with is nonempty and has a largest element ; it satisfies . Strict increase of powers of two makes unique. Thus the stated exists for every . In its binade, the finitely many points , , bracket ; 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 , the nonnegative grid has spacing . 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 are at most , including the half-sized lower gap at a power of two. Its rounding cell therefore gives . Also, for any power of two , every integer multiple with is in : the integer has at most significant bits, except , which is a power of two.
Suppose and , and put . Both operands and their exact sum are integer multiples of . Whenever , step 1.1 makes representable because . In particular, if , monotonicity and the fixed grid points imply , so . Otherwise , hence its binade spacing is an integer multiple of , so is an integer multiple of . Since and themselves are candidate nearest points, ; step 1.1 makes representable. The zero-operand cases have , and interchange handles the other magnitude order. This proves the second assertion, including the strict small-rounded-sum case.
For the subtraction assertion, change both signs and interchange operands so that and . Then , and the grid argument in step 2.1, applied to and , shows that is representable. Reversing the transformations proves all same-sign cases; zero gives only the trivial zero pair.
For the ordered transform, if then and all outputs vanish. Otherwise oddness allows . Since and is representable, monotonicity gives . If , it also gives ; step 3.1 then makes exact. If , the operands and meet step 3.1, so exactly and is exact as well. Thus always , where . Step 2.1 makes representable, so exactly.
TwoSum returns the exact rounding error of a floating point sum
Statement
Use a binary floating-point format of precision : its normal positive values are for integers and , with their negatives and zero. Any additional representable values below the normal range must belong to the unbounded binary set 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 for which TwoSum error-free transformation succeeds, its output satisfies 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.
TwoSum error-free transformation evaluates six separately rounded operations: , , , , , and .
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.
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 .
Proof
Let denote unbounded binary nearest-even rounding from [F3]. On the closed normal range, bounded-format rounding equals : 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 . By [F2], induction over the six operations [F1] therefore identifies the actual successful computation with the same sequence using . It suffices to prove its unbounded identity.
Put . If , the ordered transform [F3] gives and exactly. Consequently , , , and . This includes .
Suppose . If , the small-rounded-sum assertion [F3] makes exact. Then , , and . For the remaining case , apply the ordered transform to : it says and . Oddness therefore gives and exactly. Writing , we have and .
In this remaining case, oddness permits simultaneous sign reversal so that . Since , we have , and monotonicity gives . Thus and the rounding bound yields , since . Also by the addition-error bound. Therefore ; monotonicity, fixing and , gives . Sterbenz [F3] makes exact. Finally is representable by the addition-error assertion [F3], so exactly. Oddness gives the same conclusion before sign reversal.
The branches in steps 2.1, 2.2, and 3.1 cover every magnitude order and sign, and each gives . Step 1.1 transfers this identity to every successful finite-range call, proving . 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 ; step 3.1 uses the sharper bound on directly to include as well. The theorem retains unrestricted inputs and does not assume that the residual operations are exact: their exactness is proved above.
TwoProduct with fused multiply-add returns the exact product residual
Statement
Let be real floating-point numbers successfully processed by TwoProduct product and residual computation using fused multiply-add, and assume the exact residual is representable as zero or a normal number. Then the returned pair satisfies exactly.
Facts & Assumptions
Given: the returned product p and fused multiply-add residual.
TwoProduct product and residual computation using fused multiply-add: p=fl(ab) and e=fma(a,b,-p).
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
The exact value supplied to the FMA is ab-p. By the representability assumption and correct rounding in [F2], e=ab-p exactly.
Adding p gives p+e=ab. The addition here is in the real-number conclusion, not an extra rounded operation.
Kahan and Neumaier summation satisfy explicit finite data-dependent error bounds
Statement
Let the input length be . If , both algorithms return exactly zero, the sum of the empty input, and their absolute errors are zero. Kahan executes no loop operations and returns ; Neumaier executes no loop operations and its final addition returns , with final rounding error . The Kahan identity and bound below apply when ; no , , or is required in the empty branch.
For successfully processed real inputs , let be the signed errors in the four Kahan operations. Then hence For Neumaier, let be the signed errors at the actually executed operations and the final rounding error. Then The leading-sum error cancels from this exact identity; its nonnegative allowance may still be retained in the conservative bound below. For each , define by the branch-specific expression below. Then where the final term accounts for the last rounded addition. These are finite data-dependent bounds, not uniform relative-error claims.
Facts & Assumptions
Given: the successful recurrences and operationwise relative-error model.
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.
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.
Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: every successful real operation has absolute error at most times the absolute value of its exact result. An exact zero result is admissible and is rounded exactly to zero.
Proof
If , the loop index sets in [F1] and [F2] are empty, and their initial values are . Thus Kahan returns without a rounded operation. Neumaier's final exact sum is ; [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 ; the Neumaier formulas also specialize at to empty sums and .
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.
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.
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.
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.
A successful rounded Cholesky factorization has componentwise and normwise backward error bounds
Statement
Let and let be positive definite in . Suppose the rounded Cholesky algorithm succeeds with . Put and ; assume . For , which is Hermitian, and with denoting entrywise absolute value for matrices, Thus . If also , then 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.
Failure-aware rounded Cholesky factorization: success supplies positive rounded pivots and rounded updates using six-real-operation complex products.
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.
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.
Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation: finite-dimensional Euclidean vectors satisfy the Cauchy-Schwarz inequality.
Proof
For one complex product , write its real exact products as . Each rounded product has error at most times its operand product; each final rounded real sum or difference contributes at most times the sum of the two operand magnitudes. Hence the real-component error is at most and the imaginary-component error at most . Since , their Euclidean combination is at most . A sequential sum of at most complex products contributes at most times the absolute product sum; adding product errors gives . Each diagonal term uses two rounded squares and one rounded addition; sequentially summing at most terms uses at most rounded real operations, so the same expansion bounds the diagonal sum error by .
For , let , , and be the computed dot product. Step 1.1 gives and . The subtraction error is at most , and the two component divisions imply ; also . Therefore . Since , moving to the left gives . Here , , , and , so the numerator coefficient is less than and the denominator exceeds . The quotient is less than .
On the diagonal put . Step 1.1 and the pivot subtraction give with . The rounded square root has , , so . From we get . Since and , this implies . Also , so . Thus , using . Hermitian symmetry gives the corresponding conjugate entries, proving the componentwise estimate.
By [F5], Cauchy-Schwarz applied to each row-column inner product gives . The entrywise bound therefore yields , and [F4] gives the spectral bound. For the relative consequence, take traces in : . The additional condition gives , yielding both stated relative norm bounds.
The scaled computed Householder step satisfies the local backward error premise
Statement
Let , , , undergo a successful step of Scaled Householder reflector formation and application, with and . Define There is an exact orthogonal , the identity when and otherwise, and a perturbation such that The constants increase with and are for fixed as . The column overwrite is included. For any real separate block , , successful application of the same stored without an annihilation overwrite has discrepancy from at most .
Facts & Assumptions
Given: The stated successful real step; every nonzero exact intermediate is normal and all zero operations are exact.
Scaled Householder reflector formation and application fixes scaling, sequential dots, the two update multiplications, and the column overwrite.
Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add supplies relative errors at most , correctly rounded square roots, and exact zero/sign operations.
Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries gives the exact orthogonal Householder representative and exact annihilation.
If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n bounds products of rounded-operation factors by .
Cauchy–Schwarz: , with equality exactly for dependent pairs gives for real Euclidean vectors. Expanding and applying this inequality gives . Then , which yields (divide unless both vectors are zero). Cauchy-Schwarz also gives .
The Frobenius norm on real or complex matrices defines as the sum of squared entry magnitudes, so Frobenius squares add over disjoint columns.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv|| defines for a nonzero domain. Thus [F5] gives .
Proof
If , the algorithm copies and the zero column; take and . Otherwise put , , and . The nonnegative scaled squared-norm sum has each exact squared input multiplied by at most factors , : two from scaling and at most from squaring and subsequent additions. Thus the computed norm divided by lies between and after square root and rescaling. For exponent , convexity of on gives . Hence . Only the first stored coordinate can differ from , and subtraction gives . Success gives nonzero stored .
Put . The rounded positive dot product satisfies by expansion of its products and additions, including exact zeros. The division defining therefore gives ; the upper deviation dominates the lower by multiplying the positive denominators. A sequential signed dot product differs from its exact value by at most , by the same factor expansion, [F4], and Cauchy-Schwarz [F5].
For nonzero vectors , adding and subtracting and using the reverse triangle inequality from [F5] gives . For unit , expanding and applying [F5] and [F7] to the rank-one terms gives operator norm at most . Consequently . Since , the overwritten column differs from by at most .
The exact rank-one update has norm at most : for , each column satisfies 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 : successively the nonnegative majorants multiply by , , and , then subtract the exact majorant . Final subtraction adds at most . Thus . The same computation applies to any separate block .
The first-column and remaining-column errors occupy disjoint columns, so their squared Frobenius norms add by [F6]; the same entrywise formula gives . Steps 2.1 and 2.2 give . Choose ; orthogonality gives , and Frobenius norm invariance follows because preserves the Euclidean norm of each column and [F6] sums their squares. Each displayed coefficient increases with and has zero constant term and finite first derivative at , proving the stated asymptotics.
Remarks
The former 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.
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.
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.
Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1: the induced norm is compatible with matrix-vector products.
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
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.
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.
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.
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.
The scaled Householder QR implementation is backward stable
Statement
Let , , undergo successful QR steps of Scaled Householder reflector formation and application, with . Use from The scaled computed Householder step satisfies the local backward error premise and set . The exact orthogonal product represented by the stored reflectors has reduced first columns , and the computed triangular block is . Then If applying the stored reflectors in the same order to a separate vector , by their rounded rank-one updates without column overwrites, succeeds at every update, the resulting full vector satisfies The bounds are for fixed dimensions. An explicitly rounded dense product for is not asserted exactly orthogonal.
Facts & Assumptions
Given: Successful no-underflow QR and vector updates in the stated operationwise arithmetic.
The scaled computed Householder step satisfies the local backward error premise supplies each exact orthogonal representative and its local matrix and separate-block bound.
Successive Householder or Givens transformations produce full and reduced QR factorisations with the standard dense operation counts supplies exact orthogonal-product and triangular-block conventions.
Proof
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 , so [F1] bounds every local error by times the current active-block norm, hence by that times the current full-matrix norm. A completed full step therefore has norm at most times the preceding norm. Induction bounds the matrix before step by .
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 , and exact column overwrites make the final lower block zero. Thus [F2] identifies , with .
For the separate vector, [F1] bounds each update discrepancy by times its current norm. The identical norm induction and orthogonal transport argument bound its total discrepancy from the exact product by . Since for fixed , the claimed fixed-dimension backward and application bounds follow.
Computed reduced QR least squares is backward stable for full column rank
Statement
Let , , have full column rank. Successful scaled Householder QR gives the exactly orthonormal reduced representative and computed triangular with where is the proved local-step coefficient. Apply the stored reflectors to by rounded rank-one updates and let be the first coordinates. Set . Alternatively, if an explicitly supplied exactly orthonormal has entries admissible as arithmetic inputs and uses sequential rounded dots, set . Solve by successful rounded back substitution. Suppose and . There exist and upper triangular with If is nonsingular, is the unique least-squares solution for and . The relative matrix perturbation is at most ; the right-hand perturbation is at most . For fixed , both perturbation coefficients are . If additionally and , both relative data perturbation bounds are at most . These two coefficient comparisons are additional checks; they do not follow from and 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.
The scaled Householder QR implementation is backward stable supplies the proved QR bound and the stored-reflector application bound.
Rounded triangular substitution has a componentwise matrix backward error supplies the rounded triangular matrix perturbation, including the zero-solution branch.
Reduced QR over the reals solves full-column-rank least squares without squaring the condition number identifies exact full-rank reduced-QR least squares.
If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n bounds the coefficient errors of sequential real dots.
Cauchy–Schwarz: , with equality exactly for dependent pairs: for real Euclidean vectors, .
Proof
For stored-reflector evaluation, [F1] bounds by . In the explicit admissible-input alternative, dot expansion by [F4] gives coordinate errors at most by Cauchy-Schwarz and unit column norms; combining coordinates gives . In either case put and . Exact orthonormality gives and .
Apply [F2] to the actual rounded back substitution. It supplies upper triangular with and the displayed Frobenius estimate. This holds also when , since the same row identities force . Combined with step 1.1 this proves the perturbed normal-coordinate equation.
Under the stated nonsingularity hypothesis, has full column rank, and [F3] identifies as its unique least-squares minimizer for . Finally , and gives the stated relative matrix bound. At fixed dimensions, [F1] gives , and gives in either right-hand-side branch, so the displayed coefficients are . Under the additional coefficient checks, write ; then , while the assumed gives the right-hand bound. No comparison between and is inferred from arithmetic success alone.
Rounded triangular substitution has a componentwise matrix backward error
Statement
Let be upper triangular with stored floating-point entries and nonzero diagonal, and let have stored floating-point entries, where and . Use the operationwise arithmetic model of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add at unit roundoff . Compute descending substitution by the sequential rounded dot (empty sum zero), , and . 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 with In particular forces . Forward substitution has the transposed conclusion.
Facts & Assumptions
Given: The stated successful rounded recurrence, with no nonzero subnormal intermediate.
Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add gives each relative error at most and exact zeros.
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.
Forward and backward substitution are correct, unique, and quadratic in scalar operations supplies the descending and ascending exact triangular recurrences.
Proof
Expand the rounded dot to obtain , with , and use . Write subtraction and division errors as . The computed row identity is then . These identities also hold for zero intermediates by taking the corresponding error zero.
Choose and for , with zeros below the diagonal. Since , all denominators are positive and ; multiplying positive denominators verifies the last inequality. Thus every entry has the claimed bound.
Step 1.1 gives , and summing the squared entry bounds gives the Frobenius estimate. If , the same equation gives , including dimension one without a division by . Reversing the row order proves the lower-triangular version.
Rounded matrix products give certified linear and normal-equation residual allowances
Statement
Let , , have stored real or complex entries, with . Use the operationwise arithmetic model, successful sequential dot products, and with . Define For and , put and . Then For a stored real , also compute , and , rounding scalar multiplication componentwise. The exact intended normal residual satisfies 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 from stored basis-solve columns .
Facts & Assumptions
Given: The stated stored inputs, evaluation order and successful operations; every nonzero exact intermediate is normal, and zero operations are exact.
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.
If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n bounds sequential addition coefficient errors.
Cauchy–Schwarz: , with equality exactly for dependent pairs: for real or complex Euclidean vectors, . Applying this rowwise gives , also for .
Proof
For , each rounded real product has error at most times its absolute exact value. Each final real addition contributes at most times the two corresponding product magnitudes. The Euclidean norm of the resulting real/imaginary error is at most , since . Conjugation is exact. Real products obey this conservative bound as well.
In a length- dot product, each product error from step 1.1 is propagated through at most additions. Expansion of each real component and [F2] bound the dot discrepancy by , with . Combining rows and applying Cauchy-Schwarz gives . Componentwise subtraction has vector error at most , so the linear residual allowance is . Zeros cause no difficulty in this expansion.
Apply step 2.1 to to get . Transporting the earlier error through adds at most . The scalar product error is at most ; the last addition adds at most . 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 , which bounds its induced Euclidean norm by Cauchy-Schwarz.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Fundamentals of Numerical Computation, floating-point arithmetic
- Stuart and Voss, Matrix Analysis and Algorithms, Warwick lecture notes
- Shewchuk, Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates, §§2.1–2.3
- Driscoll and Braun, Fundamentals of Numerical Computation, floating-point numbers
- Higham, The Accuracy of Floating Point Summation
- Ogita, Rump, and Oishi, Accurate Sum and Dot Product
- Fundamentals of Numerical Computation, Cholesky factorization
- Fundamentals of Numerical Computation, Householder triangularization
- Fundamentals of Numerical Computation, QR factorization and least squares
- Higham and Mary, Mixed Precision Algorithms in Numerical Linear Algebra
- Shewchuk, Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates, sections 2.2–2.3
- Stuart and Voss, Matrix Analysis and Algorithms