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.
Computed singular values and rank revealing factorizations
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
- Finite-precision direct factorizations and least squares
- Foundations of the Real Numbers for Analysis
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- 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 Moore--Penrose Pseudoinverse and Regularised Least Squares
- 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 develops the computed SVD in two stages: Householder reduction to bidiagonal form, followed by finite-budget implicit shifted QR sweeps with explicit deflation, zero-pivot handling, residual reports, and an inconclusive status when the budget ends first. Exact unitary reduction and bulge-chase identities are proved locally. Conditional local-update bounds aggregate into a backward error; Weyl's inequality then gives absolute singular-value error. This absolute guarantee does not give relative accuracy for tiny values. A separate bidiagonal theorem gives a relative guarantee only under the stronger componentwise-relative backward-error hypothesis; the ordinary absolute reflector bound does not imply that hypothesis.
The rank-revealing section distinguishes greedy column-pivoted QR from strong RRQR. Strong RRQR retains the coefficient-triggered swaps and also checks a trailing-residual score involving the columns of and rows of ; both terms are needed for the stated block singular-value comparisons, which apply to exact-arithmetic success and extend to computed candidates when exact-score upper bounds and a represented-unitary reconstruction bound are certified, with an explicit residual allowance. Swaps have an explicit finite volume potential, while budget exhaustion and singular pivots return statuses. Rank-thresholded least squares solves the truncated SVD model and reports the residual for the original matrix; it is an original-matrix minimum-norm least-squares solution whenever all discarded singular values are zero.
The local scaled arithmetic lemma now proves the real/complex two-sided Householder and canonical Givens premises, including formation, zeroing and range conditions, for the aggregate backward bound. Rounded complex modulus readout has its explicit final allowance. The strong RRQR branch retains its separately reviewed combined-score contract.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Householder bidiagonalization and its finite precision status
Definition
Let , where or . Put and . If , set ; if , set . Thus .
Save the input as and initialize , , and empty ordered lists of stored local left and right transformations. For , in this order:
- Let . If , use the identity left transformation. Otherwise choose when and when , set , , and . Use the Householder reflector on rows . Update on those rows and append this local transformation to the left list. In exact arithmetic update . In finite precision update columns of the dense accumulator by right application of the same stored local reflector data, using the separate-block branch of Scaled real and complex Householder and Givens update arithmetic and making no target-zero write to .
- If , let . If , use the identity right transformation. Otherwise apply the same phase and normalization rule to to form the Householder reflector , then apply and append this local transformation to the right list. In exact arithmetic update . In finite precision update columns of the dense accumulator by right application of the same stored local reflector data, using the separate-block branch of Scaled real and complex Householder and Givens update arithmetic and making no target-zero write to .
Set to the leading block of the final work matrix , and return together with the ordered local transformation lists.
In finite precision, each left/right reflector uses Scaled real and complex Householder and Givens update arithmetic, including its real/complex scaled formation, range checks and exact target-column/row zero writes. This is the arithmetic realization of the exact steps above. A zero active vector takes the identity branch. Any helper range-failure, invalid operation, nonfinite value, or nonzero exact intermediate outside the normal range returns range-failure with the partial factors and stored local transformations; otherwise return success, , the ordered stored local transformations, the reconstruction residual , and the two orthogonality residuals and . The reconstruction uses the saved input , not the overwritten work matrix. The exact products of the stored unitary representatives are the theoretical factors; the dense finite-precision accumulators are rounded and their residuals are computed quantities, not certified bounds by themselves. Matrix residuals use the Frobenius norm defined in The Frobenius norm on real or complex matrices.
Strong rank-revealing QR with finite swaps and explicit statuses
Definition
Input a real or complex matrix with , a target with , a factor , and a finite swap cap . The exact-arithmetic version is specified below. In finite precision, denotes the represented matrix: each real and imaginary component, and , is a finite binary floating-point number, interpreted as its exact dyadic rational value. The arithmetic format and rounding rule are fixed for a run. A nonfinite input or required rounded intermediate returns range-failure. This mode makes no rank claim about an unspecified matrix before input rounding.
For the finite-precision rank test, copy the represented into exact rational complex arithmetic. Scan columns from left to right with a current pivot row, select the first nonzero entry at or below that row, interchange rows, and eliminate entries below it by exact rational row operations. If no such entry exists, skip that column. Increment the pivot row only after a nonzero pivot. The number of pivots is the reported exact represented-input rank. Return rank-deficient-input if ; otherwise continue with rank status full-column-rank. This test uses unbounded-size rational integers, not the rounded QR diagonal or a numerical-rank threshold. In exact mode, use the same finite row-elimination instructions over the exact input field to decide the rank condition in step 1.
The finite-precision mode additionally takes a finite real binary format containing and closed under sign changes, a fixed rounding rule, and a certificate-pass budget (default ; disables certification). Real and imaginary parts are stored separately. For a real rational result within the format's finite range, returns its specified nearest representable value, with a fixed tie rule, or its specified directed rounding; a result outside that range returns range-failure. Exact zeros are copied as zero. Real addition, subtraction, multiplication, and division mean their exact rational result followed by this rounding; check each divisor before dividing. A real square root of a nonnegative represented number is rounded by comparing that number with squares of the finitely many nonnegative format values: bracket its root, then use the selected directed endpoint or compare with the squared midpoint for nearest rounding. A negative argument or a root beyond the finite range returns range-failure. Thus no exact irrational arithmetic oracle or unbounded precision search is part of this mode. A nonfinite input or any failed required scalar operation immediately returns range-failure with any completed partial data.
Use the following fixed scalar conventions throughout the rounded core. For and , complex addition/subtraction round their two real components; multiplication returns . For division compute with the addition rounded, require , compute the rounded product , and divide its two real components by , rounding each. Conjugation and sign changes are exact copies. For a vector, compute its squared norm by rounding each real-component square and summing them with rounding in increasing coordinate order, real part before imaginary part; apply the rounded nonnegative square root. Dot products use the above rounded complex products and a left-to-right rounded sum. These rules specify every norm and score calculation below; a nonzero vector whose required computed norm is zero returns range-failure.
The initial permutation is , with original labels . A rounded full QR sweep of a fixed current column order starts from , and an empty transformation record. During the initial pivoted sweep, at column compute the rounded norms of for , choose the largest, breaking ties by smallest original column label, and swap the full columns of and their labels. A fixed-order sweep skips these pivot searches. In either sweep, if entrywise, record no transformation and continue. Otherwise copy , compute its rounded norm , and set if ; if , compute its rounded modulus and divide its two components by to form . Set , and for . Compute the rounded squared norm of , require , and put . Record the active index and the exact dyadic components of this nonzero stored before updating anything.
For each column , compute the rounded dot product from the old column, set , then replace each active entry by . For each row of , compute from its old row, set , and replace each active entry by . Finally set to exact zeros by assignment. At the end return , the full candidate , the final permutation and the ordered record. The imposed zeros are part of this rounded procedure, not a claim of exact annihilation; the certificate measures their effect as well as all rounding. There are at most reflector updates per sweep. Empty active tails are skipped, and no norm or quotient is required for them.
In finite precision step 1 uses this pivoted sweep, and step 2 uses a fresh fixed-order sweep on the represented input in its current order. Each fresh sweep resets and its transformation record. Before the triangular solves, decide singularity of its represented by the same exact rational elimination as the input rank test; if singular, return singular-selected-block. Otherwise solve and by rounded back-substitution: for each right-hand-side column, process rows , sum in increasing , subtract from the supplied right-hand side, check the diagonal divisor and use the complex division above. Compute as the rounded norm of row of , as the rounded norm of column of , and as the rounded modulus of . Compute and . Scan these finite candidate lists for the step-4 maxima and its stated tie rules. The diagnostics are rounded candidates, not exact inverse or score identities. For there are no such solves or score lists.
The numbered instructions below specify exact arithmetic; the preceding rounded instructions replace the corresponding factorization, solve and score operations in finite precision.
- If is not full column rank, return
rank-deficient-input. Otherwise initialize a column permutation and the full column-pivoted QR factorization , where is unitary and is upper trapezoidal. At each pivot choose a remaining column of maximal residual -norm, resolving ties by the smallest original column index. Partition after the first rows and columns. Do not return the reduced QR form. The selected first columns then have a nonsingular leading block. For , return this full factorization withsuccess. - For , refactor the current fixed column order in the full QR form, without further pivoting whenever needed, using unitary Householder or Givens transformations. If the selected leading block is singular, return
singular-selected-block. - Form . For let ; for let . Define the swap score .
- If , choose the lexicographically first pair attaining the largest . Otherwise, if , choose the lexicographically first pair attaining the largest score. If neither inequality holds, return
successand the factors, permutation, , and maximum score. The first branch retains the usual coefficient-triggered swap; the second controls the trailing residual needed for the strong spectral comparison. - When a violating pair was chosen, if the swap count is already , return
swap-budget-exhaustedwith the current partial factors. Otherwise interchange the chosen selected and trailing columns in the current permutation. In exact arithmetic restore triangular form with Givens rotations; in finite precision discard the old factors and record, since step 2 recomputes them from in the new fixed order. Increment the swap count and return to step 2.
The statuses are success, rank-deficient-input, singular-selected-block, swap-budget-exhausted, and range-failure. In particular, ordinary column-pivoted QR is only the initialization: the procedure does not assert that its output alone satisfies the strong bounds. Both modes return the full factor shape and available diagnostics. A finite-precision success is a candidate until the following separate certificate is verified. The rounded dense is never asserted to be unitary.
For each recorded active dyadic vector , define the embedded exact rational matrix on its active coordinates, with identity on the preceding coordinates. Its denominator is a strictly positive exact rational. It is exactly unitary: writing gives , and . Thus the ordered sweep record represents the exact unitary product ; an empty record represents . This product corresponds to the final fresh sweep only, and is distinct from the rounded and the nonunitary rounded update coefficients . Its rational representation requires no normalization by an irrational vector norm.
Certification is finite optional postprocessing, independent of the core status. For a nonsuccess status assign not-applicable. On success with , assign uncertified. With perform the following one exact rational pass, using unbounded-size integer numerators and denominators; no retry until success is allowed.
- Check factor dimensions, that is a permutation of , that is exactly upper trapezoidal, and that each recorded vector has the declared active dimension and is nonzero. Reconstruct each by the displayed rational formula, multiply them in the recorded order, and verify entrywise . Any failed check sets
uncertified. - For , apply exact rational elimination to . If singular, the certificate is
uncertified. Otherwise compute its exact inverse by elimination on , normalizing each nonzero pivot and eliminating above and below it. Form and the exact nonnegative rational score squares Set , stored as a symbolic nonnegative square root, and check the rational inequalities for every . These are equivalent to all . They certify the exact scores of the represented blocks, independently of rounded . For this list and every inverse condition are absent. - Compute exactly and . Set , again a symbolic nonnegative square root; then . If all structural and score checks passed, return
certifiedwith the rational record, reconstructed , , , and their check outcomes; otherwise returnuncertifiedwith any completed data. There is no extra residual tolerance implicit in the certificate: its actual residual bound is reported, however large, and any application requiring a small bound must check that separately.
This single finite pass uses at most the prescribed positive pass budget; a supplied certificate is accepted only by recomputing these exact checks. Certification does not change the core status or rounded candidates. It gives precisely a nonsingular when , rigorous combined-score bounds , and an exact unitary representation with the reported reconstruction bound. The bounds concern the represented input ; a claim about different intended data also needs its separately supplied input-error bound. Ordinary rounded score or residual evaluations do not establish this certificate.
Singular values contract under left and right multiplication
Statement
Let , , and over or . For every and ,
Facts & Assumptions
Given: Compatible finite matrices and indices in the displayed ranges.
The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: the spectral-norm distance from a matrix to matrices of rank at most is , attained by its SVD truncation.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: , so for every compatible .
Proof
Let be the rank-at-most- SVD truncation in [F1]. Then has rank at most , and [F1] applied to gives .
For each unit vector , [F2] gives . Taking the supremum over such and using [F1] yields . Combining with step 1.1 proves the right-multiplication inequality.
Let be the rank-at-most- SVD truncation of . Then has rank at most , so [F1] gives . For every unit vector , [F2] gives . Taking the supremum and using [F1] yields , proving the left-multiplication inequality.
Singular values are Lipschitz in the spectral norm
Statement
Let , where or , and put . Then for every ,
Facts & Assumptions
Given: Matrices and .
The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: is the minimum of over matrices of rank at most ; the same holds for .
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the spectral norm is a norm and satisfies the triangle inequality.
Proof
Choose a rank-at-most- SVD truncation of . By [F1] and [F2], .
Apply step 1.1 with in place of and in place of . This gives . The two one-sided inequalities give the stated absolute-value bound.
Spectral numerical rank counts singular values above threshold over R or C
Statement
Let , , , , and . For the spectral norm, the numerical rank defined by Numerical rank relative to a declared norm, scale, and tolerance satisfies
Facts & Assumptions
Given: A real or complex matrix , its ordered singular values, and a threshold .
Numerical rank relative to a declared norm, scale, and tolerance: is the least rank of a matrix within spectral-norm distance of .
The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: for , the least spectral-norm distance from to a matrix of rank at most is ; the rank- SVD truncation attains it.
The rank of a linear map is the number of its nonzero singular values: the rank of is the number of its positive singular values, so it is at most .
Proof
Put . For every , one has and (when ), so [F2] shows that no rank-at-most- matrix lies within distance . If , then and the rank- truncation from [F2] is within distance . If , [F3] gives , so itself is an admissible matrix at distance zero. Thus the least admissible rank is .
By [F1], the least admissible rank is ; step 1.1 identifies it with the number of singular values strictly greater than . This proves the formula, including and thresholds equal to a singular value.
Finite budget implicit shifted QR for bidiagonal singular values
Definition
Input the original , the successful output record of Householder bidiagonalization and its finite precision status for if and otherwise, a deflation tolerance , and a finite nonnegative integer sweep budget . The reduction record supplies the upper bidiagonal work matrix , dense accumulators , and ordered stored local transformation data. Initialize , the sweep accumulators to identities of order , empty ordered left/right transformation lists, an empty deflation record, a pass counter , and a sweep counter . Write the diagonal as and superdiagonal as , and set .
At the start of each pass, set , set to zero and append to the deflation record whenever . The corresponding additive matrix change has entry at and zero elsewhere. Record any later non-target sparsity cleanup the same way with its row, column, and old value. The zero entries split the active blocks. If every active block has size one, stop with converged. Otherwise process the active blocks in increasing order of , skipping singleton blocks. Before each block sweep, if , stop with budget-exhausted; otherwise form only the tridiagonal entries of on that block: and . Choose to be the eigenvalue of the trailing Hermitian block closest to , resolving a tie by the smaller eigenvalue. If the leading pivot is zero or has magnitude at most , use the zero-shift branch and choose the initial right Givens factor so that , avoiding division by the small or zero diagonal.
Finite-precision shift and comparison schedule. The preceding exact-arithmetic formulas retain their exact meaning. For finite precision use the scalar order, six-real-operation complex product, scaled real-component norm, and first-failing-primitive range policy of Scaled real and complex Householder and Givens update arithmetic also for the following stages. All assignments below are stored; do not fuse operations. Comparisons, maxima, copies, conjugations, sign changes, and real absolute values are exact operations on stored finite values. Evaluate each complex magnitude by that helper's scaled two-component norm, with zero magnitude returned exactly as zero. At each pass visit deflation indices increasingly; at index evaluate , , in that order, then and , and deflate exactly when .
For each nonsingleton block, form its Gram diagonal entries in increasing index order, followed by its upper off-diagonal entries in increasing index order. To form , square separately with rounding, add the first two rounded squares, add the last two, and add these two rounded sums, rounding each addition. Form by the helper's complex product for and copy its conjugate to the lower off-diagonal. No other Gram entries are formed. Write the stored trailing block as . In this order compute , , and by the helper's scaled norm on the ordered four-real-component list , corresponding to the complex vector , returning exact zero for the zero list. Then compute , , , and . Choose if and otherwise. In exact arithmetic these are the two Hermitian eigenvalues and the stated nearest-eigenvalue/tie rule; in finite precision they specify the shift estimates without asserting their accuracy.
Next evaluate , , and in that order and form . Use the zero-shift branch exactly when or . In the ordinary branch form the first shift-vector entry as and use the stored lower Gram entry as its second entry. If any of these primitives fails the helper's normal-range/finite-value requirements, return the existing range-failure record immediately, before any sweep transformation for that block. This rule permits range failure in shift formation and makes no unconditional progress claim. For or only singleton active blocks none of the block stages is requested.
In the ordinary branch choose the first right Givens factor so that , where . In either branch, apply , update columns of by right multiplication by this same stored rotation, and append its exact unitary representative to the right list. For , choose a left Givens factor so that ; apply it to rows , update columns of by right multiplication by this same stored rotation, and append its exact unitary representative to the left list. If , choose a right Givens factor so that ; apply it to columns , update the corresponding columns of by right multiplication by this same stored rotation, and append its exact unitary representative to the right list. Continue until the bulge reaches the active block endpoint. A zero annihilation vector uses the identity rotation. In finite precision each Givens formation/update uses Scaled real and complex Householder and Givens update arithmetic, conjugate-transposed as needed for the stated left/right orientation; accumulator multiplications use the same stored local data but omit all target-zero writes. The dense accumulator multiplications follow the operationwise arithmetic model, while the ordered lists retain the exact unitary representatives used in analysis. Target zero writes to are included in their local error bounds. The initial shift-vector rotation does not zero an unrelated entry of . Each Givens factor is chosen using Real Givens rotations and complex Givens transformations and its annihilation guarantee in Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries.
After each processed block, increment by one. Once all current active blocks have been processed, start a new pass. If any operation, norm or pivot is invalid or nonfinite, or a nonzero exact intermediate is outside the normal range, return range-failure with the partial , accumulators, transformation lists, deflation record, and available residual reports. On budget-exhausted, return the current , accumulators, transformation lists, deflation record, triplet residuals, and orthogonality residuals. On converged, set and return it with both dense accumulators, both transformation lists, the deflation record, triplet/orthogonality residuals, and its tall embedding .
For every exit other than range-failure, let be the current work matrix, and let . Obtain each candidate value as by the scaled two-component modulus evaluation (real absolute value is exact). On converged, the active-block condition makes diagonal; after budget-exhausted, the diagonal values are estimates only and carry no accuracy claim.
Let . In exact arithmetic the tall-orientation accumulated factors are and . In finite precision form each dense product by row-by-column multiplication, with six-real-operation complex products and sequential componentwise rounded additions under the operationwise model; return range-failure if any required intermediate is invalid, nonfinite, or outside the normal range. Their exact theoretical factors are the products represented by the ordered local transformation lists together with the bidiagonal-reduction lists. If , set and ; for each nonzero , multiply column of by in exact arithmetic, using componentwise division by the successful scaled modulus readout in finite precision. If , set and ; in this wide orientation multiply column of by instead. Sort the candidate values in nonincreasing order, breaking ties by their original diagonal index, and permute the corresponding columns of the returned triplet vectors in the same way; leave and the transformation lists in their algorithmic order. For every candidate triplet , report and . Also report and . The reports expose finite-budget and rounding behavior; they do not certify convergence by themselves. Matrix residuals use the Frobenius norm defined in The Frobenius norm on real or complex matrices. Any additional sparsity cleanup is recorded separately in the deflation record with its discarded-entry perturbation.
Exact unitary equivalence of Householder bidiagonalization
Statement
For over or , the exact-arithmetic algorithm Householder bidiagonalization and its finite precision status returns unitary and an upper bidiagonal , , such that if then , and if then .
Facts & Assumptions
Given: A matrix and the exact-arithmetic Householder bidiagonalization algorithm.
Householder bidiagonalization and its finite precision status applies a left Householder to the active column at step and, when , a right Householder to the conjugate transpose of the active row after column . For each nonzero active vector , it chooses when and otherwise, , , , and . A zero vector uses the identity.
Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries: every Householder reflector with a unit normal is unitary.
Proof
For any nonzero active vector , [F1] specifies , if and otherwise, , , and . Since , direct expansion gives and . Thus , , and satisfies and . It is unitary by [F2]. For the specified identity has the same zero-annihilation property. This verifies the actual negative-phase construction on both the column vector and the conjugate-transposed row vector.
At step , the left reflector acts only on rows . It therefore leaves all rows unchanged and maps the active part of column to its first coordinate, making entries below zero. The right reflector acts only on columns , so it preserves the zeros already made in column and maps the active part of row to its first coordinate, making entries beyond zero.
Inductively, before stage , each earlier column has zeros in rows , so the left update preserves those zeros. Each earlier row has zeros in columns , so the right update preserves those zeros as well; neither update touches its earlier retained entries. Step 2.1 supplies the new column and row zeros. At the last stage, column also has zeros below row . Induction therefore gives an upper bidiagonal leading block and zero bottom rows. For the work matrix is already the empty tall matrix and both initialized factors are identities.
The update rules in [F1] maintain the invariant , where is the initial tall-oriented matrix. Every factor is unitary by [F2], so the accumulated are unitary. Combining this invariant with step 3.1 gives the asserted tall reduction. In the wide case it applies to , and taking adjoints gives .
A strong RRQR column swap multiplies selected volume by its score
Statement
Let have full column rank, , and let be a full QR factorization, with unitary and upper trapezoidal. Partition after the first rows and columns, where is nonsingular and . Write , , and . Use local one-based QR positions and define the original column labels by . Let be the selected set of columns and define its volume by . For and , replacing selected column by trailing column changes this volume by the factor
Facts & Assumptions
Given: A full-column-rank matrix, its partitioned QR factorization, and indices as above.
Strong rank-revealing QR with finite swaps and explicit statuses defines , , , and the score used to select a swap.
Proof
Apply to the selected columns and the candidate trailing column. The selected matrix becomes in the top rows. After replacing column , the top block is , where is the identity with column replaced by column of ; the lower block has only column nonzero, equal to . Hence the replaced Gram matrix is . If , then is nonsingular, , and row of is row of divided by .
For any nonsingular Gram matrix and vector , factor . Multilinearity of the determinant gives : terms choosing two updated columns vanish because both are proportional to . Hence . Apply this identity to the Gram matrix in step 1.1 with and . Since has row equal to row of divided by , . The determinant is therefore . The original selected volume squared is , so taking the nonnegative square root gives the formula when .
Both squared volumes and the right-hand side in step 2.1 are continuous in . Perturbing to nonzero values and taking a limit proves the same identity when .
Componentwise relative perturbations of bidiagonal matrices control every singular value relatively
Statement
Let , and let be upper bidiagonal, or , with . Suppose each corresponding nonzero diagonal or superdiagonal entry is multiplied by a scalar whose modulus lies in , and every zero entry remains zero. Put . Then and have the same number of zero singular values, and for each positive singular value in descending order,
This is a relative perturbation theorem. A computed bidiagonal SVD inherits it only when a separate backward-error analysis verifies this componentwise relative assumption; an absolute normwise perturbation estimate by itself is not that verification.
Facts & Assumptions
Given: Two upper bidiagonal matrices satisfying the componentwise relative hypothesis and .
Singular values contract under left and right multiplication: both and hold for compatible matrices in their stated index ranges.
For diagonal , , with equality on a coordinate vector attaining the maximum; hence .
The rank of a linear map is the number of its nonzero singular values: a square matrix has as many zero singular values as its dimension minus its rank.
Proof
Write the diagonal ratios as when , and put when . Write the superdiagonal ratios as when , and put when . Set , , and, for , set . Then and are invertible and entrywise multiplication gives , including at zero entries because both matrices preserve each zero.
Since , each ratio lies in . Induction gives . From and , both and are at most ; the same bound holds for and . By [F2], .
First apply the right-multiplication inequality in [F1] to , then the left-multiplication inequality to : . Applying the same two inequalities to gives the reverse bound. Since are invertible, multiplication by them preserves rank; [F3] then shows the zero singular values agree.
Step 3.1 proves both inequalities and the zero-value assertion.
Strong RRQR block singular values compare to the full matrix spectrum
Statement
Let have full column rank, , and let the exact-arithmetic version of Strong rank-revealing QR with finite swaps and explicit statuses return success with full QR factorization
where is unitary and the displayed is upper trapezoidal with rows. Let the target satisfy and the factor satisfy . For , assume is nonsingular and put . Put . Then
For , the second comparison is the equality with . These conclusions use the combined score in the algorithm; the bound on alone is not used as a substitute for control of . For a computed candidate with the algorithm's verified certificate , put . No full-column-rank assumption on is required beyond nonsingularity of when . Then the corresponding residual-adjusted bounds are
For , these reduce to . Computed scores alone do not certify either conclusion.
Facts & Assumptions
Given: A full-column-rank matrix and a successful factorization returned by the finite-swap algorithm.
In the exact-arithmetic version of Strong rank-revealing QR with finite swaps and explicit statuses, success means for every , where and . The finite-precision branch tests computed scores and is not used here.
Singular values contract under left and right multiplication: for compatible matrices.
Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison: the spectral and Frobenius norms are unitarily invariant, , and .
Singular values are Lipschitz in the spectral norm bounds each singular-value change by the spectral norm of the perturbation.
Proof
First, square unitary factors preserve every ordered singular value: [F3] gives for a positive-dimensional unitary , and applying both inequalities of [F2] to gives ; applying them to gives the reverse inequality. Thus if , has the singular values of , proving that case. Assume henceforth . Write , , and . Summing the inequalities in [F1] gives Indeed, and .
Since has full column rank and , has full column rank: if for nonzero , then , contradicting full column rank of , since and are invertible. Thus . Since , one has , so step 1.1 gives .
By step 1.1, has the same singular values as . Define and , so . For vectors , is bounded by the quadratic form of at . For scalars its quadratic form is , so it is positive semidefinite and its largest eigenvalue is at most its trace; thus . Since , the ordered first singular values of are those of . By [F2], , proving for .
Define and , so . For vectors , is bounded by the quadratic form of at . Its determinant is and its diagonal entries are positive, so it is positive semidefinite; its largest eigenvalue is at most its trace. Thus . The smallest singular value of is , so the first singular values of are those of and its remaining singular values are those of . Therefore by [F2] and step 1.1.
The preceding block proof also applies to any upper trapezoidal whose is nonsingular and whose exact combined scores are at most , even when is rank deficient. If , and steps 2.1–3.2 apply without the full-column-rank argument. If , write . Directly with zero lower rows and . The product bound proves the first comparison, and the second is . Thus the certificate gives both comparisons with replaced by and blocks . Since , [F4] gives and . Combining proves the computed bounds. The case follows directly from unitary invariance and [F4].
Rank-thresholded least squares by the singular value decomposition
Definition
Input , , a rank threshold , and a finite nonnegative integer bidiagonal-QR sweep budget , with or ; vector residuals use the Euclidean norm of The norm induced by a real or complex inner product. First compute the Householder bidiagonal reduction. If it returns range-failure, stop with inconclusive, identify the failed stage as Householder reduction, and return its supplied partial factors and stored transformations, together with any available diagnostics; do not request a bidiagonal matrix or residual reports that the failed call did not supply. Only after successful reduction call the finite-budget bidiagonal QR procedure with deflation tolerance zero and no additional sparsity cleanup. If that call returns range-failure or budget-exhausted, stop with inconclusive, identify the failed stage as bidiagonal QR, and return its supplied partial work matrix, accumulators, transformation lists, deflation record, and available residual reports. No failure or budget-exhausted branch claims a least-squares solution.
On exact-arithmetic convergence, use the exact SVD record from the returned transformation products and diagonal candidates. Set , form and the canonical truncated pseudoinverse of The truncated singular-value pseudoinverse obtained by discarding singular values below a declared numerical-rank threshold, and compute . Return , the declared threshold, , the model residual , the original residual , and the discarded tail size (defined as for ). The strict comparison is used, so values equal to the threshold are discarded. In finite precision, use singular-value estimates to form , , and the coordinate candidate , where has diagonal entries for and zero otherwise; compute both residuals and label the threshold count unverified unless a certified error interval separates every compared value from . This finite-precision candidate is not called a certified numerical rank or a minimum-norm least-squares solution.
Bulge chase preserves bidiagonal singular values
Statement
Consider one exact-arithmetic sweep of Finite budget implicit shifted QR for bidiagonal singular values on an unreduced upper bidiagonal block, with no nonzero deflation. If its right rotations have product and its left rotations have product , the restored bidiagonal block is . Consequently and have the same singular values. If a set of superdiagonal entries is deflated, then the transformed output instead equals the corresponding unitary transform of , where has those entries negated and all other entries zero.
Facts & Assumptions
Given: An upper bidiagonal block, the Givens bulge-chase instructions, and exact unitary rotations.
Finite budget implicit shifted QR for bidiagonal singular values starts with a right rotation and alternates right rotations that remove generated second-superdiagonal bulges with left rotations that remove subdiagonal bulges; deflation occurs before the sweep rotations.
Householder reflectors and Givens transformations are unitary and can annihilate prescribed entries: each exact Givens rotation is unitary.
Proof
The first right rotation acts on the leading adjacent column pair of the active block and creates at most the first subdiagonal bulge. Each left rotation annihilates the current subdiagonal entry; because it mixes only two adjacent rows, it can create at most the next second-superdiagonal bulge. The following right rotation mixes only the adjacent columns supporting that bulge, annihilates it, and creates at most the next subdiagonal bulge. Induction along the block therefore keeps one bulge at a time and removes it at the next alternating rotation. The zero coupling at a deflated block endpoint prevents a bulge from leaving the block, so the final matrix is upper bidiagonal.
Every right operation multiplies on the right by a unitary Givens factor and every left operation multiplies on the left by the adjoint of a unitary Givens factor. Their products therefore give unitary and the final matrix is exactly .
Left and right unitary factors preserve singular values, since is unitarily similar to . Deflation occurs before the sweep rotations, and setting each listed superdiagonal entry to zero adds exactly its negative there; hence the matrix entering the unitary sweep is . With no deflation , so step 1.2 gives equal singular values for and .
The strong RRQR swap rule terminates after finitely many swaps
Statement
For a full-column-rank , , , and , run the exact-arithmetic version of Strong rank-revealing QR with finite swaps and explicit statuses. For the algorithm returns success without swaps. For , every accepted swap strictly increases the volume of the selected columns. Therefore the procedure makes at most swaps and returns success if its cap is at least that number. On exact-arithmetic success with , every score is at most and hence . If a smaller cap is reached while a violation remains, it returns swap-budget-exhausted; a smaller cap can still suffice when the criterion is met earlier.
Facts & Assumptions
Given: A full-column-rank matrix, target , factor , and the finite-swap procedure.
Strong rank-revealing QR with finite swaps and explicit statuses swaps only when the chosen score exceeds and returns success only when no score exceeds .
A strong RRQR column swap multiplies selected volume by its score: swapping the chosen columns multiplies selected volume by that score.
Proof
If , the algorithm's first branch returns success without a swap. Assume . Every accepted swap has score strictly greater than . By [F2] it multiplies the selected volume by a factor strictly greater than one. Thus the selected volume strictly increases at each swap, so no selected subset can recur because its volume is determined by the fixed input matrix and subset.
For , there are exactly possible selected -column subsets. The initial subset has positive volume by full column rank, and by step 1.1 no subset can recur after a strict increase. If swaps have occurred, all subsets have therefore been visited; a remaining violation would prescribe another swap to an already visited subset, contradicting step 1.1. Thus a cap at least cannot be reached with a violation remaining, and the algorithm returns success.
For the coefficient assertion is vacuous. For , success gives for all pairs. Since by the score definition, . If a smaller cap is reached while a violation remains, the algorithm returns swap-budget-exhausted; if no violation remains first, it returns success.
Local stable reflectors and rotations give an aggregate SVD backward error
Statement
Let , , be the tall orientation used by Householder bidiagonalization and its finite precision status, and let be the final bidiagonal-QR work matrix returned by Finite budget implicit shifted QR for bidiagonal singular values. Set . Suppose the computed bidiagonal reduction and QR sweeps perform stages, each either an elementary left/right unitary update or an identity update for a deflation/cleanup write. At stage , assume the actual active matrix obeys where are unitary and , , and is the additive representation of entries discarded by deflation or cleanup at that stage, with . A deflation/cleanup write is represented by , , and the recorded additive change . The deflation record returned by the algorithm identifies each such entry and its old value, so it determines . Then the returned tall transformed matrix satisfies for unitary accumulated factors and some with If no deflation or other cleanup is performed, every . For the successful scaled arithmetic realization Scaled real and complex Householder and Givens update arithmetic, assume also and for every Householder dimension . Under these arithmetic and dimension conditions, Scaled complex Householder and Givens steps have explicit local backward errors establishes these hypotheses: choose for Householder updates, for Givens updates with an actual target zero write, and its smaller separate-block coefficient when no matrix entry is overwritten. This covers real/complex left and right updates. Every additional discarded entry is included in . Rounded dense accumulators remain separate from these exact represented products.
Facts & Assumptions
Given: The two-sided computed updates and local error bounds in the statement, with in tall orientation.
Householder bidiagonalization and its finite precision status and Finite budget implicit shifted QR for bidiagonal singular values apply a finite sequence of left and right transformations and explicitly record each deflated entry.
Exact unitary equivalence of Householder bidiagonalization and Bulge chase preserves bidiagonal singular values: in exact arithmetic the transformations are unitary and maintain the stated matrix-factor relation.
The Frobenius norm on real or complex matrices: the Frobenius norm is the Euclidean norm of the matrix-entry list, hence satisfies the triangle inequality.
Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison: left and right unitary multiplication preserve the Frobenius norm.
For every computed elementary reflector or plane rotation, its active-block update has the displayed local perturbation form and bound. This is a required local arithmetic interface, not a consequence of the exact unitary identities in [F2].
Scaled complex Householder and Givens steps have explicit local backward errors supplies the local real/complex left/right arithmetic bounds for the specified successful implementation when and for each Householder dimension .
Proof
Iterating the norm inequality from [A1] gives . Induction from yields : the base case is equality, and the one-step inequality multiplies every prior term by and adds .
Set , , , , and . Multiplying the assumed stage equation by and gives . Thus induction gives with . Take . Unitary left/right multiplication preserves Frobenius norm, so . Substitute step 1.1. For the terms, . For a fixed , its contribution is . These identities give the stated bound.
The same coordinate unwinding gives for products of the unitary update factors, hence . Step 2.1 gives its error bound; setting every gives the no-deflation case.
For the specified finite-precision algorithm, the successful range checks and the explicit conditions and permit [F5] at every actual update. It gives exactly [A1], including each target-zero write. Deflation and any additional discarded entries remain , so steps 1.1, 2.1, and 3.1 prove the displayed aggregate bound for the concrete implementation. Shift rounding affects which rotation is chosen, not the validity of its unitary backward-error certificate; no unconditional convergence is asserted.
The SVD threshold solver gives the unique minimum-norm fit to its truncated model
Statement
Let , , and , where or . Let be an exact SVD. Define by retaining when and replacing each by zero, and set . Put , the spectral numerical rank of at threshold . The vector is the unique minimum-Euclidean-norm least-squares solution for the truncated model . An exact-arithmetic run of Rank-thresholded least squares by the singular value decomposition that converges within its supplied finite sweep budget and supplies this SVD record returns ; a failure or exhausted budget returns inconclusive. No convergence within an arbitrary budget is asserted. Moreover,
with when . If every discarded singular value is zero, then and is the unique minimum-norm least-squares solution for the original matrix. If a positive singular value is discarded, no original-matrix least-squares optimality is asserted.
Facts & Assumptions
Given: An exact SVD, threshold , right-hand side , and the associated truncated matrix and pseudoinverse.
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: with orthonormal singular vectors and nonnegative diagonal singular values.
The truncated singular-value pseudoinverse obtained by discarding singular values below a declared numerical-rank threshold: , where diagonal entries are for and zero otherwise.
For every right-hand side , is the unique least-squares solution of minimum Euclidean norm: for any matrix and right-hand side , is the unique least-squares solution of minimum Euclidean norm.
The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: for , the SVD truncation to rank at most has spectral residual , including the stated zero-tail convention.
Spectral numerical rank counts singular values above threshold over R or C: for , the spectral numerical rank at threshold counts precisely the singular values strictly greater than .
The Moore--Penrose pseudoinverse as the solution of the four Penrose equations and Every finite real or complex matrix has a unique Moore--Penrose pseudoinverse: the four Penrose equations define the Moore--Penrose pseudoinverse, and every finite real or complex matrix has a unique matrix satisfying them.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the matrix operator norm is zero on a zero domain and is the maximum of over unit vectors otherwise. Thus for every vector by scaling when , and directly when .
The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the Euclidean vector norm satisfies .
Numerical rank relative to a declared norm, scale, and tolerance defines numerical rank as the least rank of a matrix within the declared norm tolerance, for all finite matrix dimensions, including zero.
Rank-thresholded least squares by the singular value decomposition: on exact-arithmetic convergence with the returned SVD record the procedure computes ; a failure or exhausted sweep budget returns inconclusive.
Proof
Let . By [F1]–[F2], and . Orthonormality gives and , which are self-adjoint. Using in those sums verifies the two Penrose product equations. Together with self-adjointness, these are the four equations; by [F6], is the unique Moore--Penrose pseudoinverse of . The calculation includes , when both matrices and sums are zero.
If , the matrix has no singular-value terms, so , , and its spectral numerical rank is zero because has rank zero and distance zero from itself by [F9]. If , [F5] identifies with the spectral numerical rank retained by the strict threshold. When , one has , so [F4] applies with and gives . When , [F1] shows directly that all positive singular terms are retained, hence and the residual norm is zero, equal to the stated convention . This last branch also covers without applying [F4] or [F5] outside their dimension hypotheses.
Apply [F3] to . Its unique minimum-norm least-squares solution is , proving the truncated-model claim independently of any iteration budget. For an exact-arithmetic run converging within its supplied budget and returning the stated SVD record, [F10] identifies this vector as the returned solution; the failure branches return inconclusive.
By [F7], ; [F8] gives . Combining with step 1.2 proves the stated residual bound.
If every discarded singular value is zero, the SVD formula gives , so step 2.1 is the original-matrix solution. If any positive singular value is discarded, the proof has established optimality only for ; it supplies no normal-equation or minimum-residual claim for .
Steps 1.1, 1.2, 2.1, 2.2, and 3.1 prove all stated claims and the limitation.
Computed singular-value error is bounded by backward perturbation plus readout error
Statement
Let and put when , when . Suppose a successful computed SVD path in this tall orientation supplies , where and are the exact unitary products represented by the stored local transformations, , , and the returned square is the diagonal final bidiagonal matrix from Finite budget implicit shifted QR for bidiagonal singular values. These are the theoretical factors in Local stable reflectors and rotations give an aggregate SVD backward error, separate from the rounded dense accumulators returned for candidate triplets. If the returned values are the exact singular values of , then for every ,
For actual rounded modulus readout from a diagonal , let and for the successful scaled complex modulus algorithm; use zero for exact real absolute values. Thus when . After ordering the candidates, the bound is . This assertion applies to a successful, fully reduced result; a finite-budget budget-exhausted output has residual reports but no such accuracy conclusion.
Facts & Assumptions
Given: The successful nearby-factorization relation, exact values , and either exact readout or the specified rounded diagonal-modulus readout.
Local stable reflectors and rotations give an aggregate SVD backward error supplies under its local arithmetic hypotheses, with the same tall-orientation dimensions.
Singular values are Lipschitz in the spectral norm bounds each singular-value change by the spectral norm of the matrix perturbation.
Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison: unitary factors preserve singular values and .
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: taking the adjoint of an SVD interchanges its two orthonormal singular-vector bases and leaves the ordered singular values unchanged.
Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add supplies the successful real square-root and component-operation relative model.
Proof
By [F1], . The tall matrix has the singular values of , since its adjoint times itself is ; unitary invariance in [F3] therefore gives the ordered singular values for . By [F4], and have the same singular values.
Apply [F2] to and . It gives ; step 1.1 identifies these singular values with and , respectively, and [F3] gives .
A scaled modulus of two real components has relative norm factors between and , by expanding the two scaling operations, square products and sum, square root and rescaling. Hence each rounded magnitude differs from by at most . If two finite lists differ coordinatewise by at most , their ordered lists do too: otherwise at the violating rank the count of entries above or below the corresponding threshold contradicts the coordinatewise bounds. Apply this to the diagonal magnitudes and combine with step 2.1. For exact readout the first bound follows already from step 2.1; for rounded readout the additional modulus allowance gives the stated extension. Real sign removal is exact.
Scaled real and complex Householder and Givens update arithmetic
Definition
Scalar execution order. These conventions expand every arithmetic expression below into a fixed finite scalar schedule; they do not execute the exact theoretical representatives. Visit vector indices increasingly and matrix columns increasingly, with row indices increasing within each column. Visit the real component before the imaginary component. For a complex vector , its real-component list is . Evaluate displayed assignments in their written order and nested operations from the inside out, left operand before right operand. For inputs and with real components , a complex product uses rounded real products , in that order, followed by the rounded real subtraction and rounded imaginary addition . Do not fuse operations. Return immediately at the first failing primitive; indices refer to this expanded order. Copies, sign changes and conjugations are exact.
For a scaled norm, first form every rounded component divided by the common scale in list order. Then, in that same order, round each component square and accumulate it: copy the first square to the accumulator, and round each subsequent accumulator-plus-square addition. Use this same square-and-sum schedule for the stored-vector squared norm , without scaling. An empty sum is exact zero and requests no primitive. Apply square root and rescaling only at their prescribed subsequent stages. The two-component and four-component norm calls use their displayed component lists in this order.
For the Householder dot row , visit columns increasingly. For each column visit , form the declared complex product , copy the first product as the partial dot, then add each later product by rounded real-component addition followed by rounded imaginary-component addition. Finish all of before forming in increasing row order, then all of in the matrix order above, then all entries of in that order. Evaluate both components of the formation of and every scalar scaling or division in real-then-imaginary order. A separate block call uses already stored and the same stages, omitting formation and target overwrite.
For a Givens application, visit columns increasingly and copy the two old entries before changing either. Compute the upper output first, then the lower output, each by its two products in written order followed by its componentwise addition. Each of the prescribed two complex products uses the six-operation schedule above, including a real coefficient viewed as a complex number with zero imaginary component. Both outputs use the copied old entries. Perform an instructed target zero write only after these outputs. Right applications execute the stated conjugate-transpose reduction with these same conventions. No intermediate is reused across different expressions unless explicitly stored by the procedure.
Use the operationwise real/complex arithmetic model, with six-real-operation complex products and componentwise division by positive real scalars. A scaled norm of a nonzero complex vector first chooses the largest absolute real or imaginary component , rounds every real component divided by , sums their rounded squares sequentially, rounds the positive square root, and rounds multiplication by . A norm of already scaled components omits the last multiplication. Zero input has exact norm zero. Reject every nonzero exact intermediate outside the normal range, nonfinite/invalid operation, and nonpositive required norm; return the first range-failure. All sign changes and conjugations are exact.
For a Householder active block , , a zero copies the block with identity action. Otherwise compute by the scaled norm. If put ; otherwise compute its modulus by its own two-component scaled norm and divide its real and imaginary parts by . Set using real-scalar component multiplication, and . Compute by sequential summation of all rounded real component squares of , and . Compute , , , and . Return , writing exact zeros below the target diagonal, and store . Its theoretical representative is . For a separate block application omit the column overwrite. For a right step apply these instructions to the conjugate-transposed block and transpose back.
For a Givens target pair , use the identity when , including . Otherwise choose as the largest absolute real/imaginary component of , round and componentwise, and compute as the norm of their four already scaled components. If , compute as the norm of its two components, , and . If , set and . Store and apply it to the chosen two rows using two complex products and one rounded componentwise addition for each output entry. For an actual target column, set its intended annihilated entry to exact zero after the update. The initial shift-vector rotation is formed from the shift vector but applied to the matrix without zeroing an unrelated matrix entry. Right applications use the conjugate-transposed form. Its exact unitary representative is ; this normalization defines a mathematical representative and is not an additional rounded operation.
These are arithmetic realizations of the canonical Householder and Givens methods. Returned dense transformation accumulators may be rounded; the exact unitary products used in backward-error statements are represented by the stored local data. Additional discarded matrix entries must be recorded separately, including their magnitudes. Their omission is never implicit in a sparsity convention.
Scaled complex Householder and Givens steps have explicit local backward errors
Statement
Use Scaled real and complex Householder and Givens update arithmetic successfully, with and for every Householder dimension . For a nonzero Householder column define For a Givens step define Each complete left update, including its target zero write, has an exact unitary representative and perturbation with where or . Identity branches have . The corresponding right relation follows by conjugate transposition. For a Givens application without an annihilation overwrite use the smaller coefficient ; for a Householder separate-block application use . All coefficients are explicit and or for fixed dimensions.
Facts & Assumptions
Given: The stated real/complex arithmetic realization and successful no-underflow operations.
Scaled real and complex Householder and Givens update arithmetic fixes the scaled norm, coefficient formation, product order, zero branches and exact target writes.
If |delta_i| <= u and n u < 1, then prod (1+delta_i) = 1 + theta_n with |theta_n| <= gamma_n bounds products of rounding factors and sequential addition expansions.
Proof
A complex product's real/imaginary error is at most : bound each of its four real products and then its two component additions. A sequential complex dot of length therefore has error at most . These expansions include exact zeros.
A scaled norm with real components has its positive squared sum multiplied termwise by between and , including two scaling factors. Square root and rescaling give relative norm error at most . The independently scaled modulus of has lower/upper factors , so the phase division error relative to is at most ; when it is zero. Thus for , and , one has and . For exponents at least one the lower deviation is bounded by the upper by convexity, justifying these two-sided estimates.
The identity follows by multiplying . The exact phase choice gives and by direct inner-product expansion. Normalization gives ; expanding the difference of unit-vector projectors therefore gives . The target-column error is at most .
For Givens formation at stored , the norm has relative factors between and , since its unscaled four-component squared sum has at most four rounding factors per term. The norm has exponents two. Let be the exact canonical Givens annihilator for , with coefficients and when . The phase error is at most ; the coefficient numerator, denominator, six-operation complex product and division errors therefore give and . If , and ; the smaller bound applies. Hence .
The positive real sum defining has bounds . The final division gives . The dot-product error in step 1.1, the componentwise real multiplication by and the final complex multiplication bound the rank-one update error by . Final subtraction adds at most . Combine this with step 2.1 over disjoint columns to get the Householder bound. For the zero column take the identity exactly.
Put and . Direct multiplication gives , so is canonical unitary, and . Normalization also gives ; differences of canonical blocks have norm equal to the Euclidean norm of their coefficient differences. Each computed output entry has error at most , by two products and their addition. The absolute coefficient block has norm at most . Thus the raw update differs from by at most .
Scaling introduced . Because annihilates , its exact target residual for is at most ; under it is at most . Writing the rounded target to zero adds at most to the raw update discrepancy, so the total is at most . No unrelated matrix entry is zeroed for a shift-vector rotation. Identity branches have zero discrepancy.
In every left case choose , with or ; unitarity gives the stated equation and equal error norm. Right updates follow by conjugate transposition and invariance of Frobenius norm. All coefficients are finite explicit functions under the stated conditions, vanish at , and have first derivatives bounded by a fixed multiple of the active dimension, proving the asymptotics.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Wen-Wei Lin, Lecture Notes of Matrix Computations, §3.2.2, Algorithm 3.2.6
- James Demmel and W. Kahan, Accurate Singular Values of Bidiagonal Matrices, §1
- Ming Gu and Stanley C. Eisenstat, Efficient Algorithms for Computing a Strong Rank-Revealing QR Factorization, §§3–4
- Lecture Notes on Matrix Computations, Remark 3.2.2
- Wen-Wei Lin, Lecture Notes of Matrix Computations, §3.1
- Lecture Notes on Matrix Computations, Theorem 6.1.12
- James Demmel and W. Kahan, Accurate Singular Values of Bidiagonal Matrices, Theorem 3
- Wen-Wei Lin, Lecture Notes of Matrix Computations, §3.2.2
- Wen-Wei Lin, Lecture Notes of Matrix Computations, §6.3
- James Demmel and W. Kahan, Accurate Singular Values of Bidiagonal Matrices, §§2–5
- Ming Gu and Stanley C. Eisenstat, Efficient Algorithms for Computing a Strong Rank-Revealing QR Factorization, Lemma 3.1
- James Demmel and W. Kahan, Accurate Singular Values of Bidiagonal Matrices, Corollary 2
- Lecture Notes on Matrix Computations, §3.2.2
- Ming Gu and Stanley C. Eisenstat, Efficient Algorithms for Computing a Strong Rank-Revealing QR Factorization, Theorem 3.2
- James Demmel and W. Kahan, Accurate Singular Values of Bidiagonal Matrices, §3
- Wen-Wei Lin, Lecture Notes of Matrix Computations, §§3.2.2 and 6.3
- Stuart and Voss, Matrix Analysis and Algorithms