Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

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

Computed singular values and rank revealing factorizations

1 · Prerequisites

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 R22 and rows of R11−1; 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

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Householder bidiagonalization and its finite precision status

Definition

Let A∈Fm×n, where F=R or C. Put p=min⁡(m,n) and M=max⁡(m,n). If m≥n, set C=A; if m<n, set C=A∗. Thus C∈FM×p.

Save the input as C0=C and initialize U=IM, V=Ip, and empty ordered lists of stored local left and right transformations. For k=1,…,p, in this order:

  1. Let x=Ck:M,k. If x=0, use the identity left transformation. Otherwise choose ϕ=x1/∣x1∣ when x1≠0 and ϕ=1 when x1=0, set α=−ϕ∥x∥2, v=x−αe1, and h=v/∥v∥2. Use the Householder reflector H=I−2hh∗ on rows k:M. Update C←H∗C on those rows and append this local transformation to the left list. In exact arithmetic update U←Udiag⁡(Ik−1,H). In finite precision update columns k:M of the dense accumulator U 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 U.
  2. If k<p, let y=Ck,k+1:p∗. If y=0, use the identity right transformation. Otherwise apply the same phase and normalization rule to y to form the Householder reflector G, then apply C←Cdiag⁡(Ik,G) and append this local transformation to the right list. In exact arithmetic update V←Vdiag⁡(Ik,G). In finite precision update columns k+1:p of the dense accumulator V 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 V.

Set B to the leading p×p block of the final work matrix C, and return B,U,V 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, B,U,V, the ordered stored local transformations, the reconstruction residual ∥C0−U[B0]V∗∥F, and the two orthogonality residuals ∥U∗U−I∥F and ∥V∗V−I∥F. The reconstruction uses the saved input C0, 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 ∥A∥F=(∑i,j∣aij∣2)1/2 on real or complex matrices.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Strong rank-revealing QR with finite swaps and explicit statuses

Definition

Input a real or complex matrix A∈Fm×n with m≥n, a target k with 0≤k<n, a factor f≥1, and a finite swap cap S∈N∪{0}. The exact-arithmetic version is specified below. In finite precision, A denotes the represented matrix: each real and imaginary component, and f, 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 A 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 r of pivots is the reported exact represented-input rank. Return rank-deficient-input if r<n; 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 F containing 0,1,−1 and closed under sign changes, a fixed rounding rule, and a certificate-pass budget C∈N0 (default 1; C=0 disables certification). Real and imaginary parts are stored separately. For a real rational result within the format's finite range, fl⁡ 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 z=a+ib and w=c+id, complex addition/subtraction round their two real components; multiplication returns fl⁡(fl⁡(ac)−fl⁡(bd))+ifl⁡(fl⁡(ad)+fl⁡(bc)). For division compute d0=fl⁡(c2)+fl⁡(d2) with the addition rounded, require d0>0, compute the rounded product zw‾, and divide its two real components by d0, 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 Π=In, with original labels 1,…,n. A rounded full QR sweep of a fixed current column order starts from B=AΠ, Q^=Im and an empty transformation record. During the initial pivoted sweep, at column j=1,…,n compute the rounded norms of B(j:m,ℓ) for ℓ=j,…,n, choose the largest, breaking ties by smallest original column label, and swap the full columns of B and their labels. A fixed-order sweep skips these pivot searches. In either sweep, if B(j+1:m,j)=0 entrywise, record no transformation and continue. Otherwise copy z=B(j:m,j), compute its rounded norm r>0, and set ϕ=1 if z1=0; if z1≠0, compute its rounded modulus a>0 and divide its two components by a to form ϕ. Set α=−fl⁡(rϕ), v1=fl⁡(z1−α) and vi=zi for i>1. Compute the rounded squared norm d^ of v, require d^>0, and put τ^=fl⁡(2/d^). Record the active index j and the exact dyadic components of this nonzero stored v before updating anything.

For each column ℓ=j,…,n, compute the rounded dot product aℓ=v∗B(j:m,ℓ) from the old column, set hℓ=fl⁡(τ^aℓ), then replace each active entry by fl⁡(Biℓ−fl⁡(vi−j+1hℓ)). For each row a=1,…,m of Q^, compute ba=Q^(a,j:m)v from its old row, set ga=fl⁡(τ^ba), and replace each active entry by fl⁡(Q^ai−fl⁡(gav‾i−j+1)). Finally set B(j+1:m,j) to exact zeros by assignment. At the end return R^=B, the full m×m candidate Q^, 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 n≤mn 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 A in its current order. Each fresh sweep resets Q^ and its transformation record. Before the triangular solves, decide singularity of its represented R^11 by the same exact rational elimination as the input rank test; if singular, return singular-selected-block. Otherwise solve R^11X=R^12 and R^11Y=Ik by rounded back-substitution: for each right-hand-side column, process rows i=k,…,1, sum R^ihxh in increasing h=i+1,…,k, subtract from the supplied right-hand side, check the diagonal divisor and use the complex division above. Compute ωi as the rounded norm of row i of Y, γj as the rounded norm of column j of R^22, and cij as the rounded modulus of Xij. Compute tij=fl⁡(ωiγj) and sij=fl⁡(fl⁡(fl⁡(cij2)+fl⁡(tij2))). Scan these finite candidate lists for the step-4 maxima and its stated tie rules. The diagnostics (X,Y,(ωi),(γj),(cij),(sij)) are rounded candidates, not exact inverse or score identities. For k=0 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.

  1. If A is not full column rank, return rank-deficient-input. Otherwise initialize a column permutation Π and the full column-pivoted QR factorization AΠ=QR, where Q∈Fm×m is unitary and R∈Fm×n is upper trapezoidal. At each pivot choose a remaining column of maximal residual 2-norm, resolving ties by the smallest original column index. Partition R=[R11R120R22] after the first k rows and columns. Do not return the reduced QR form. The selected first k columns then have a nonsingular leading block. For k=0, return this full factorization with success.
  2. For k>0, 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.
  3. Form X=R11−1R12. For 1≤i≤k let ωi=∥ei∗R11−1∥2; for 1≤j≤n−k let γj=∥R22(:,j)∥2. Define the swap score sij=(∣Xij∣2+(ωiγj)2)1/2.
  4. If max⁡i,j∣Xij∣>f, choose the lexicographically first pair attaining the largest ∣Xij∣. Otherwise, if max⁡i,jsij>f, choose the lexicographically first pair attaining the largest score. If neither inequality holds, return success and the factors, permutation, X, and maximum score. The first branch retains the usual coefficient-triggered swap; the second controls the trailing residual needed for the strong spectral comparison.
  5. When a violating pair was chosen, if the swap count is already S, return swap-budget-exhausted with 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 A 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 Q^ is never asserted to be unitary.

For each recorded active dyadic vector v, define the embedded exact rational matrix H=I−2vv∗v∗v on its active coordinates, with identity on the preceding coordinates. Its denominator is a strictly positive exact rational. It is exactly unitary: writing P=vv∗/(v∗v) gives P∗=P, P2=P and (I−2P)∗(I−2P)=I. Thus the ordered sweep record represents the exact unitary product W=H1⋯Ht; an empty record represents Im. This product corresponds to the final fresh sweep only, and is distinct from the rounded Q^ 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 C=0, assign uncertified. With C≥1 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 1,…,n, that R^ is exactly upper trapezoidal, and that each recorded vector has the declared active dimension and is nonzero. Reconstruct each H by the displayed rational formula, multiply them in the recorded order, and verify entrywise W∗W=Im. Any failed check sets uncertified.
  • For k>0, apply exact rational elimination to R^11. If singular, the certificate is uncertified. Otherwise compute its exact inverse Y0 by elimination on [R^11  Ik], normalizing each nonzero pivot and eliminating above and below it. Form Z=Y0R^12 and the exact nonnegative rational score squares qij=∣Zij∣2+(∑a=1k∣(Y0)ia∣2)(∑b=1m−k∣(R^22)bj∣2). Set bij=qij, stored as a symbolic nonnegative square root, and check the rational inequalities qij≤f2 for every i,j. These are equivalent to all bij≤f. They certify the exact scores of the represented blocks, independently of rounded X,Y,ω,γ,s. For k=0 this list and every inverse condition are absent.
  • Compute exactly E=AΠ−WR^ and e2=∑a,b∣Eab∣2. Set ε=e2, again a symbolic nonnegative square root; then ∥AΠ−WR^∥2≤∥E∥F=ε. If all structural and score checks passed, return certified with the rational record, reconstructed W, (qij), (bij), E,e2,ε and their check outcomes; otherwise return uncertified with 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 R^11 when k>0, rigorous combined-score bounds bij≤f, and an exact unitary representation W with the reported reconstruction bound. The bounds concern the represented input A; 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.

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

Singular values contract under left and right multiplication

Statement

Let X∈Fm×n, Y∈Fn×q, and Z∈Fr×m over F=R or C. For every 1≤i≤min⁡(m,n,q) and 1≤j≤min⁡(r,m,n), σi(XY)≤σi(X)∥Y∥2,σj(ZX)≤∥Z∥2σj(X).

Facts & Assumptions

Given: Compatible finite matrices X,Y,Z and indices in the displayed ranges.

[F1]

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 M to matrices of rank at most i−1 is σi(M), attained by its SVD truncation.

[F2]

The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: ∥Y∥2=sup⁡∥z∥2=1∥Yz∥2, so ∥ZY∥2≤∥Z∥2∥Y∥2 for every compatible Z.

Proof

1.1F1construct

Let Xi−1 be the rank-at-most-(i−1) SVD truncation in [F1]. Then Xi−1Y has rank at most i−1, and [F1] applied to XY gives σi(XY)≤∥(X−Xi−1)Y∥2.

2.1step 1.1F1F2algebra

For each unit vector z, [F2] gives ∥(X−Xi−1)Yz∥2≤∥X−Xi−1∥2∥Yz∥2≤∥X−Xi−1∥2∥Y∥2. Taking the supremum over such z and using [F1] yields ∥(X−Xi−1)Y∥2≤σi(X)∥Y∥2. Combining with step 1.1 proves the right-multiplication inequality.

3.1F1F2construct∎

Let Xj−1 be the rank-at-most-(j−1) SVD truncation of X. Then ZXj−1 has rank at most j−1, so [F1] gives σj(ZX)≤∥Z(X−Xj−1)∥2. For every unit vector v, [F2] gives ∥Z(X−Xj−1)v∥2≤∥Z∥2∥(X−Xj−1)v∥2. Taking the supremum and using [F1] yields ∥Z(X−Xj−1)∥2≤∥Z∥2σj(X), proving the left-multiplication inequality.

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

Singular values are Lipschitz in the spectral norm

Statement

Let A,E∈Fm×n, where F=R or C, and put p=min⁡(m,n). Then for every 1≤i≤p, ∣σi(A+E)−σi(A)∣≤∥E∥2.

Facts & Assumptions

Given: Matrices A,E∈Fm×n and 1≤i≤p.

[F1]

The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: σi(A) is the minimum of ∥A−Z∥2 over matrices Z of rank at most i−1; the same holds for A+E.

[F2]

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

1.1F1F2choose

Choose a rank-at-most-(i−1) SVD truncation Ai−1 of A. By [F1] and [F2], σi(A+E)≤∥A+E−Ai−1∥2≤∥A−Ai−1∥2+∥E∥2=σi(A)+∥E∥2.

2.1step 1.1algebra∎

Apply step 1.1 with A+E in place of A and −E in place of E. This gives σi(A)≤σi(A+E)+∥E∥2. The two one-sided inequalities give the stated absolute-value bound.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Spectral numerical rank counts singular values above threshold over R or C

Statement

Let m,n≥1, F∈{R,C}, A∈Fm×n, p=min⁡(m,n), and τ≥0. For the spectral norm, the numerical rank defined by Numerical rank relative to a declared norm, scale, and tolerance satisfies rank⁡τ(A)=#{i∈{1,…,p}:σi(A)>τ}.

Facts & Assumptions

Given: A real or complex matrix A, its ordered singular values, and a threshold τ≥0.

[F1]

Numerical rank relative to a declared norm, scale, and tolerance: rank⁡τ(A) is the least rank of a matrix within spectral-norm distance τ of A.

[F2]

The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: for 0≤k<p, the least spectral-norm distance from A to a matrix of rank at most k is σk+1(A); the rank-k SVD truncation attains it.

[F3]

The rank of a linear map is the number of its nonzero singular values: the rank of A is the number of its positive singular values, so it is at most p.

Proof

1.1F2F3algebra

Put q=#{i≤p:σi(A)>τ}. For every k<q, one has k<p and σk+1(A)≥σq(A)>τ (when q>0), so [F2] shows that no rank-at-most-k matrix lies within distance τ. If q<p, then σq+1(A)≤τ and the rank-q truncation from [F2] is within distance τ. If q=p, [F3] gives rank⁡A≤p=q, so A itself is an admissible matrix at distance zero. Thus the least admissible rank is q.

2.1step 1.1F1∎

By [F1], the least admissible rank is rank⁡τ(A); step 1.1 identifies it with the number of singular values strictly greater than τ. This proves the formula, including q=0 and thresholds equal to a singular value.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Finite budget implicit shifted QR for bidiagonal singular values

Definition

Input the original A∈Fm×n, the successful output record of Householder bidiagonalization and its finite precision status for C=A if m≥n and C=A∗ otherwise, a deflation tolerance τ≥0, and a finite nonnegative integer sweep budget N. The reduction record supplies the upper bidiagonal work matrix B0, dense accumulators UB,VB, and ordered stored local transformation data. Initialize B=B0, the sweep accumulators UΣ,VΣ to identities of order p=min⁡(m,n), empty ordered left/right transformation lists, an empty deflation record, a pass counter t=0, and a sweep counter s=0. Write the diagonal as di and superdiagonal as ei, and set e0=0.

At the start of each pass, set t←t+1, set ei to zero and append (t,i,eiold) to the deflation record whenever ∣ei∣≤τ(∣di∣+∣di+1∣). The corresponding additive matrix change has entry −eiold at (i,i+1) 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 s=N, stop with budget-exhausted; otherwise form only the tridiagonal entries of T=B∗B on that block: Tii=∣di∣2+∣ei−1∣2 and Ti,i+1=di‾ei. Choose μ to be the eigenvalue of the trailing Hermitian block [Tr−1,r−1Tr−1,rTr,r−1Trr] closest to Trr, resolving a tie by the smaller eigenvalue. If the leading pivot dℓ is zero or has magnitude at most τmax⁡(∣eℓ−1∣,∣eℓ∣), use the zero-shift branch μ=0 and choose the initial right Givens factor Gℓ so that (dℓ,eℓ)Gℓ=(ρ,0), 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 i evaluate ai=∣ei∣, bi=∣di∣, ci=∣di+1∣ in that order, then hi=fl⁡(bi+ci) and ki=fl⁡(τhi), and deflate exactly when ai≤ki.

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 Tii, square ℜdi,ℑdi,ℜei−1,ℑei−1 separately with rounding, add the first two rounded squares, add the last two, and add these two rounded sums, rounding each addition. Form Ti,i+1 by the helper's complex product for di‾ei and copy its conjugate to the lower off-diagonal. No other Gram entries are formed. Write the stored trailing block as [azz‾c]. In this order compute h=fl⁡(fl⁡(a+c)/2), δ=fl⁡(fl⁡(a−c)/2), and k by the helper's scaled norm on the ordered four-real-component list (δ,0,ℜz,ℑz), corresponding to the complex vector (δ,z), returning exact zero for the zero list. Then compute μ−=fl⁡(h−k), μ+=fl⁡(h+k), q−=∣fl⁡(μ−−c)∣, and q+=∣fl⁡(μ+−c)∣. Choose μ=μ− if q−≤q+ 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 ∣dℓ∣, ∣eℓ−1∣, and ∣eℓ∣ in that order and form w=fl⁡(τmax⁡(∣eℓ−1∣,∣eℓ∣)). Use the zero-shift branch exactly when dℓ=0 or ∣dℓ∣≤w. In the ordinary branch form the first shift-vector entry as fl⁡(Tℓℓ−μ) 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 p=0 or only singleton active blocks none of the block stages is requested.

In the ordinary branch choose the first right Givens factor Gℓ so that Gℓ∗(Tℓℓ−μ,Tℓ+1,ℓ)T=(ρ,0)T, where Tℓ+1,ℓ=eℓ‾dℓ. In either branch, apply B←BGℓ, update columns ℓ,ℓ+1 of VΣ by right multiplication by this same stored rotation, and append its exact unitary representative to the right list. For j=ℓ,…,r−1, choose a left Givens factor Hj so that Hj∗(Bj,j,Bj+1,j)T=(ρ,0)T; apply it to rows j,j+1, update columns j,j+1 of UΣ by right multiplication by this same stored rotation, and append its exact unitary representative to the left list. If j<r−1, choose a right Givens factor Gj+1 so that (Bj,j+1,Bj,j+2)Gj+1=(ρ,0); apply it to columns j+1,j+2, update the corresponding columns of VΣ 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 B are included in their local error bounds. The initial shift-vector rotation does not zero an unrelated entry of B. 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 s 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 B, accumulators, transformation lists, deflation record, and available residual reports. On budget-exhausted, return the current B, accumulators, transformation lists, deflation record, triplet residuals, and orthogonality residuals. On converged, set Bfinal=B and return it with both dense accumulators, both transformation lists, the deflation record, triplet/orthogonality residuals, and its tall embedding B‾final=[Bfinal0M−p,p].

For every exit other than range-failure, let Bout be the current work matrix, and let di=(Bout)ii. Obtain each candidate value as σ^i=∣di∣ by the scaled two-component modulus evaluation (real absolute value is exact). On converged, the active-block condition makes Bout=Bfinal diagonal; after budget-exhausted, the diagonal values are estimates only and carry no accuracy claim.

Let WB=diag⁡(UΣ,IM−p). In exact arithmetic the tall-orientation accumulated factors are UC=UBWB and VC=VBVΣ. 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 m≥n, set U^=UC and V^=VC; for each nonzero di, multiply column i of U^ by di/∣di∣ in exact arithmetic, using componentwise division by the successful scaled modulus readout in finite precision. If m<n, set U^=VC and V^=UC; in this wide orientation multiply column i of V^ by di/∣di∣ 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 Bout and the transformation lists in their algorithmic order. For every candidate triplet (σ^i,u^i,v^i), report ∥Av^i−σ^iu^i∥2 and ∥A∗u^i−σ^iv^i∥2. Also report ∥U^∗U^−I∥F and ∥V^∗V^−I∥F. 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 ∥A∥F=(∑i,j∣aij∣2)1/2 on real or complex matrices. Any additional sparsity cleanup is recorded separately in the deflation record with its discarded-entry perturbation.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Exact unitary equivalence of Householder bidiagonalization

Statement

For A∈Fm×n over F=R or C, the exact-arithmetic algorithm Householder bidiagonalization and its finite precision status returns unitary U,V and an upper bidiagonal B∈Fp×p, p=min⁡(m,n), such that if m≥n then U∗AV=[B0], and if m<n then U∗A∗V=[B0].

Facts & Assumptions

Given: A matrix A∈Fm×n and the exact-arithmetic Householder bidiagonalization algorithm.

[F1]

Householder bidiagonalization and its finite precision status applies a left Householder to the active column at step k and, when k<p, a right Householder to the conjugate transpose of the active row after column k. For each nonzero active vector z, it chooses ϕ=z1/∣z1∣ when z1≠0 and ϕ=1 otherwise, α=−ϕ∥z∥2, v=z−αe1, h=v/∥v∥2, and H=I−2hh∗. A zero vector uses the identity.

Proof

1.1F1F2algebra

For any nonzero active vector z, [F1] specifies N=∥z∥2, ϕ=z1/∣z1∣ if z1≠0 and ϕ=1 otherwise, α=−ϕN, v=z−αe1, and h=v/∥v∥2. Since α‾z1=−N∣z1∣, direct expansion gives v∗z=N2+N∣z1∣>0 and v∗v=2(N2+N∣z1∣). Thus v≠0, h∗h=1, and H=I−2hh∗ satisfies H∗=H and Hz=z−2v(v∗z)/(v∗v)=αe1. It is unitary by [F2]. For z=0 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.

2.1F1step 1.1

At step k, the left reflector acts only on rows k:M. It therefore leaves all rows 1,…,k−1 unchanged and maps the active part of column k to its first coordinate, making entries below (k,k) zero. The right reflector acts only on columns k+1:p, so it preserves the zeros already made in column k and maps the active part of row k to its first coordinate, making entries beyond (k,k+1) zero.

3.1step 2.1F1induction

Inductively, before stage k, each earlier column ℓ<k has zeros in rows k:M, so the left update preserves those zeros. Each earlier row ℓ<k has zeros in columns k+1:p, 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 p also has zeros below row p. Induction therefore gives an upper bidiagonal leading p×p block and zero bottom M−p rows. For p=0 the work matrix is already the empty tall matrix and both initialized factors are identities.

4.1F1F2step 3.1algebra∎

The update rules in [F1] maintain the invariant C=U∗C0V, where C0 is the initial tall-oriented matrix. Every factor is unitary by [F2], so the accumulated U,V are unitary. Combining this invariant with step 3.1 gives the asserted tall reduction. In the wide case it applies to A∗, and taking adjoints gives A=V[B∗0]U∗.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

A strong RRQR column swap multiplies selected volume by its score

Statement

Let A∈Fm×n have full column rank, m≥n, and let AΠ=QR be a full QR factorization, with Q∈Fm×m unitary and R∈Fm×n upper trapezoidal. Partition R=[R11R120R22] after the first k rows and columns, where R11∈Fk×k is nonsingular and 1≤k<n. Write X=R11−1R12, ωi=∥ei∗R11−1∥2, and γj=∥R22(:,j)∥2. Use local one-based QR positions and define the original column labels π(s) by (AΠ)(:,s)=A(:,π(s)). Let J={π(1),…,π(k)} be the selected set of k columns and define its volume by vol⁡(A(:,J))=det⁡(A(:,J)∗A(:,J))1/2. For 1≤i≤k and 1≤j≤n−k, replacing selected column π(i) by trailing column π(k+j) changes this volume by the factor vol⁡(A(:,(J∖{π(i)})∪{π(k+j)}))vol⁡(A(:,J))=(∣Xij∣2+(ωiγj)2)1/2.

Facts & Assumptions

Given: A full-column-rank matrix, its partitioned QR factorization, and indices i,j as above.

[F1]

Strong rank-revealing QR with finite swaps and explicit statuses defines X, ωi, γj, and the score used to select a swap.

Proof

1.1F1construct

Apply Q∗ to the selected columns and the candidate trailing column. The selected matrix becomes C=R11 in the top k rows. After replacing column i, the top block is C′=R11S, where S is the identity with column i replaced by column j of X; the lower block has only column i nonzero, equal to c=R22(:,j). Hence the replaced Gram matrix is (C′)∗C′+∥c∥22eiei∗. If Xij≠0, then S is nonsingular, det⁡S=Xij, and row i of (C′)−1=S−1R11−1 is row i of R11−1 divided by Xij.

2.1step 1.1algebra

For any nonsingular Gram matrix G and vector u, factor G+uu∗=G(I+G−1uu∗). Multilinearity of the determinant gives det⁡(I+ab∗)=1+b∗a: terms choosing two updated columns vanish because both are proportional to a. Hence det⁡(G+uu∗)=det⁡(G)(1+u∗G−1u). Apply this identity to the Gram matrix in step 1.1 with G=(C′)∗C′ and u=∥c∥2ei. Since (C′)−1 has row i equal to row i of R11−1 divided by Xij, ei∗G−1ei=ωi2/∣Xij∣2. The determinant is therefore ∣det⁡R11∣2∣Xij∣2(1+∥c∥22ωi2/∣Xij∣2)=∣det⁡R11∣2(∣Xij∣2+(ωiγj)2). The original selected volume squared is ∣det⁡R11∣2, so taking the nonnegative square root gives the formula when Xij≠0.

3.1step 2.1algebra∎

Both squared volumes and the right-hand side in step 2.1 are continuous in Xij. Perturbing Xij to nonzero values and taking a limit proves the same identity when Xij=0.

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

Componentwise relative perturbations of bidiagonal matrices control every singular value relatively

Statement

Let n≥1, and let B,B~∈Fn×n be upper bidiagonal, F=R or C, with 0≤ϵ<1. Suppose each corresponding nonzero diagonal or superdiagonal entry is multiplied by a scalar whose modulus lies in [1−ϵ,1+ϵ], and every zero entry remains zero. Put q=(1+ϵ)/(1−ϵ). Then B and B~ have the same number of zero singular values, and for each positive singular value in descending order, q−2nσi(B)≤σi(B~)≤q2nσi(B).

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 q=(1+ϵ)/(1−ϵ).

[F1]

Singular values contract under left and right multiplication: both σi(XY)≤σi(X)∥Y∥2 and σi(ZX)≤∥Z∥2σi(X) hold for compatible matrices in their stated index ranges.

[F2]

For diagonal D=diag⁡(di), ∥Dx∥22=∑i∣di∣2∣xi∣2≤(max⁡i∣di∣)2∥x∥22, with equality on a coordinate vector attaining the maximum; hence ∥D∥2=max⁡i∣di∣.

[F3]

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

1.1givenconstruct

Write the diagonal ratios as si=d~i/di when di≠0, and put si=1 when di=0. Write the superdiagonal ratios as ti=e~i/ei when ei≠0, and put ti=1 when ei=0. Set r1=1, ℓi=si/ri, and, for i<n, set ri+1=riti/si. Then L=diag⁡(ℓi) and R=diag⁡(ri) are invertible and entrywise multiplication gives B~=LBR, including at zero entries because both matrices preserve each zero.

2.1step 1.1F2inductionalgebra

Since ∣si∣,∣ti∣∈[1−ϵ,1+ϵ], each ratio ∣ti/si∣ lies in [q−1,q]. Induction gives q−(i−1)≤∣ri∣≤qi−1. From ℓi=si/ri and q(1−ϵ)=1+ϵ, both ∣ℓi∣ and ∣ℓi∣−1 are at most qn; the same bound holds for ∣ri∣ and ∣ri∣−1. By [F2], ∥L∥2,∥L−1∥2,∥R∥2,∥R−1∥2≤qn.

3.1step 1.1step 2.1F1F3algebra

First apply the right-multiplication inequality in [F1] to (LB)R, then the left-multiplication inequality to LB: σi(B~)≤∥R∥2σi(LB)≤∥R∥2∥L∥2σi(B)≤q2nσi(B). Applying the same two inequalities to B=L−1B~R−1 gives the reverse bound. Since L,R are invertible, multiplication by them preserves rank; [F3] then shows the zero singular values agree.

4.1step 3.1∎

Step 3.1 proves both inequalities and the zero-value assertion.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Strong RRQR block singular values compare to the full matrix spectrum

Statement

Let A∈Fm×n have full column rank, m≥n, and let the exact-arithmetic version of Strong rank-revealing QR with finite swaps and explicit statuses return success with full QR factorization AΠ=Q[R11R120R22], where Q∈Fm×m is unitary and the displayed R is upper trapezoidal with m rows. Let the target satisfy 0≤k<n and the factor satisfy f≥1. For 1≤k<n, assume R11∈Fk×k is nonsingular and put X=R11−1R12. Put g=(1+f2k(n−k))1/2. Then σi(R11)≥σi(A)g(1≤i≤k),σj(R22)≤g σk+j(A)(1≤j≤n−k). For k=0, the second comparison is the equality R22=Q∗AΠ with g=1. These conclusions use the combined score in the algorithm; the bound on X alone is not used as a substitute for control of R22. For a computed candidate R^ with the algorithm's verified certificate (W,(bij),ε), put A~=WR^Π∗. No full-column-rank assumption on A~ is required beyond nonsingularity of R^11 when k>0. Then the corresponding residual-adjusted bounds are σi(R^11)≥σi(A)−εg(1≤i≤k),σj(R^22)≤g(σk+j(A)+ε)(1≤j≤n−k). For k=0, these reduce to σj(R^)≤σj(A)+ε. 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.

[F1]

In the exact-arithmetic version of Strong rank-revealing QR with finite swaps and explicit statuses, success means ∣Xij∣2+(ωiγj)2≤f2 for every i,j, where ωi=∥ei∗R11−1∥2 and γj=∥R22(:,j)∥2. The finite-precision branch tests computed scores and is not used here.

[F2]

Singular values contract under left and right multiplication: σi(XY)≤σi(X)∥Y∥2 for compatible matrices.

[F3]

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, ∥M∥2=σ1(M), and ∥M∥2≤∥M∥F.

[F4]

Singular values are Lipschitz in the spectral norm bounds each singular-value change by the spectral norm of the perturbation.

Proof

1.1F1F2F3algebra

First, square unitary factors preserve every ordered singular value: [F3] gives ∥T∥2=∥T∗∥2=1 for a positive-dimensional unitary T, and applying both inequalities of [F2] to PMT gives σi(PMT)≤σi(M); applying them to M=P∗(PMT)T∗ gives the reverse inequality. Thus if k=0, R22=Q∗AΠ has the singular values of A, proving that case. Assume henceforth 1≤k<n. Write A0=R11, C=R22, and X=A0−1R12. Summing the k(n−k) inequalities in [F1] gives ∥X∥F2+∥A0−1∥F2∥C∥F2≤f2k(n−k). Indeed, ∑iωi2=∥A0−1∥F2 and ∑jγj2=∥C∥F2.

2.1step 1.1F1F3algebra

Since A has full column rank and k<n, C has full column rank: if Cz=0 for nonzero z, then R(−A0−1R12zz)=0, contradicting full column rank of R=Q∗AΠ, since Q and Π are invertible. Thus α=∥C∥2/σk(A0)>0. Since σk(A0)=1/∥A0−1∥2, one has α2=∥C∥22∥A0−1∥22≤∥C∥F2∥A0−1∥F2, so step 1.1 gives ∥X∥F2+α2≤f2k(n−k).

3.1step 1.1step 2.1F2F3algebra

By step 1.1, R=Q∗AΠ has the same singular values as A. Define D1=diag⁡(A0,C/α) and W1=[IkX0αIn−k], so R=D1W1. For vectors x,y, ∥W1(x,y)∥22=∥x+Xy∥22+α2∥y∥22 is bounded by the quadratic form of M1=[1∥X∥2∥X∥2∥X∥22+α2] at (∥x∥2,∥y∥2). For scalars u,v its quadratic form is (u+∥X∥2v)2+α2v2≥0, so it is positive semidefinite and its largest eigenvalue is at most its trace; thus ∥W1∥22≤1+∥X∥F2+α2≤g2. Since ∥C/α∥2=σk(A0), the ordered first k singular values of D1 are those of A0. By [F2], σi(R)≤σi(D1)∥W1∥2, proving σi(A0)≥σi(A)/g for i≤k.

3.2step 1.1step 2.1F2F3algebra

Define D2=diag⁡(αA0,C) and W2=[αIk−X0In−k], so D2=RW2. For vectors x,y, ∥W2(x,y)∥22=∥αx−Xy∥22+∥y∥22 is bounded by the quadratic form of M2=[α2α∥X∥2α∥X∥2∥X∥22+1] at (∥x∥2,∥y∥2). Its determinant is α2>0 and its diagonal entries are positive, so it is positive semidefinite; its largest eigenvalue is at most its trace. Thus ∥W2∥22≤1+∥X∥F2+α2≤g2. The smallest singular value of αA0 is ∥C∥2, so the first k singular values of D2 are those of αA0 and its remaining n−k singular values are those of C. Therefore σj(C)=σk+j(D2)≤σk+j(R)∥W2∥2≤gσk+j(A) by [F2] and step 1.1.

4.1step 1.1step 2.1step 3.1step 3.2F2F3F4algebra∎

The preceding block proof also applies to any upper trapezoidal R whose R11 is nonsingular and whose exact combined scores are at most f, even when R is rank deficient. If C≠0, α>0 and steps 2.1–3.2 apply without the full-column-rank argument. If C=0, write R=diag⁡(A0,0)[IX0I]. Directly R=A0[I  X] with zero lower rows and ∥[I  X]∥22=1+∥X∥22≤g2. The product bound proves the first comparison, and the second is 0≤gσk+j(R). Thus the certificate gives both comparisons with A replaced by A~ and blocks R^11,R^22. Since ∥A−A~∥2≤ε, [F4] gives σi(A~)≥σi(A)−ε and σk+j(A~)≤σk+j(A)+ε. Combining proves the computed bounds. The k=0 case follows directly from unitary invariance and [F4].

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Rank-thresholded least squares by the singular value decomposition

Definition

Input A∈Fm×n, b∈Fm, a rank threshold τ≥0, and a finite nonnegative integer bidiagonal-QR sweep budget N, with F=R or C; vector residuals use the Euclidean norm of The norm ∥v∥=⟨v,v⟩ 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 A=UΣV∗ from the returned transformation products and diagonal candidates. Set q=#{i:σi>τ}, form Aτ=UΣτV∗ and the canonical truncated pseudoinverse Aτ+ of The truncated singular-value pseudoinverse obtained by discarding singular values below a declared numerical-rank threshold, and compute xτ=Aτ+b. Return xτ, the declared threshold, q, the model residual ∥Aτxτ−b∥2, the original residual ∥Axτ−b∥2, and the discarded tail size σq+1 (defined as 0 for q=p=min⁡(m,n)). The strict comparison σi>τ is used, so values equal to the threshold are discarded. In finite precision, use singular-value estimates (U^,Σ^,V^) to form I^={i:σ^i>τ}, A^τ=U^Σ^τV^∗, and the coordinate candidate x^=V^Σ^I^+U^∗b, where Σ^I^+ has diagonal entries 1/σ^i for i∈I^ 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.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

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 Vs and its left rotations have product Us, the restored bidiagonal block is B+=Us∗BVs. Consequently B+ and B have the same singular values. If a set D of superdiagonal entries is deflated, then the transformed output instead equals the corresponding unitary transform of B+ED, where ED 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.

[F1]

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.

Proof

1.1F1F2induction

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.

1.2F1F2algebra

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 Us,Vs and the final matrix is exactly Us∗BVs.

2.1step 1.2F1F2algebra∎

Left and right unitary factors preserve singular values, since (Us∗(B+ED)Vs)∗(Us∗(B+ED)Vs)=Vs∗(B+ED)∗(B+ED)Vs is unitarily similar to (B+ED)∗(B+ED). 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 B+ED. With no deflation ED=0, so step 1.2 gives equal singular values for B+ and B.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

The strong RRQR swap rule terminates after finitely many swaps

Statement

For a full-column-rank A∈Fm×n, m≥n, 0≤k<n, and f≥1, run the exact-arithmetic version of Strong rank-revealing QR with finite swaps and explicit statuses. For k=0 the algorithm returns success without swaps. For 1≤k<n, every accepted swap strictly increases the volume of the selected k columns. Therefore the procedure makes at most (nk)−1 swaps and returns success if its cap is at least that number. On exact-arithmetic success with k≥1, every score is at most f and hence max⁡i,j∣(R11−1R12)ij∣≤f. 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 k, factor f≥1, and the finite-swap procedure.

[F1]

Strong rank-revealing QR with finite swaps and explicit statuses swaps only when the chosen score exceeds f and returns success only when no score exceeds f.

[F2]

A strong RRQR column swap multiplies selected volume by its score: swapping the chosen columns multiplies selected volume by that score.

Proof

1.1F1F2algebra

If k=0, the algorithm's first branch returns success without a swap. Assume 1≤k<n. Every accepted swap has score strictly greater than f≥1. 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.

2.1step 1.1F1algebra

For 1≤k<n, there are exactly (nk) possible selected k-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 (nk)−1 swaps have occurred, all (nk) 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 (nk)−1 cannot be reached with a violation remaining, and the algorithm returns success.

3.1F1algebra∎

For k=0 the coefficient assertion is vacuous. For 1≤k<n, success gives sij≤f for all pairs. Since ∣Xij∣≤sij by the score definition, max⁡i,j∣Xij∣≤f. If a smaller cap is reached while a violation remains, the algorithm returns swap-budget-exhausted; if no violation remains first, it returns success.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Local stable reflectors and rotations give an aggregate SVD backward error

Statement

Let C0∈FM×p, M≥p, be the tall orientation used by Householder bidiagonalization and its finite precision status, and let BJ∈Fp×p be the final bidiagonal-QR work matrix returned by Finite budget implicit shifted QR for bidiagonal singular values. Set CJ=[BJ0M−p,p]∈FM×p. Suppose the computed bidiagonal reduction and QR sweeps perform J stages, each either an elementary left/right unitary update or an identity update for a deflation/cleanup write. At stage j, assume the actual active matrix obeys Cj=Lj∗(Cj−1+Ej)Rj+Dj, where Lj,Rj are unitary and ηj≥0, ∥Ej∥F≤ηj∥Cj−1∥F, and Dj is the additive representation of entries discarded by deflation or cleanup at that stage, with δj=∥Dj∥F. A deflation/cleanup write is represented by Lj=Rj=I, Ej=0, and the recorded additive change Dj. The deflation record returned by the algorithm identifies each such entry and its old value, so it determines Dj. Then the returned tall transformed matrix CJ satisfies C0+E=LCJR∗ for unitary accumulated factors L,R and some E with ∥E∥F≤(∏j=1J(1+ηj)−1)∥C0∥F+∑j=1Jδj∏ℓ=j+1J(1+ηℓ). If no deflation or other cleanup is performed, every δj=0. For the successful scaled arithmetic realization Scaled real and complex Householder and Givens update arithmetic, assume also 0<u<1 and (rj−1)u<1 for every Householder dimension rj. Under these arithmetic and dimension conditions, Scaled complex Householder and Givens steps have explicit local backward errors establishes these hypotheses: choose ηj=ηH(rj) for Householder updates, ηj=ηG 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 Dj. 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 C0 in tall orientation.

[F1]

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.

[F2]

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.

[F3]

The Frobenius norm ∥A∥F=(∑i,j∣aij∣2)1/2 on real or complex matrices: the Frobenius norm is the Euclidean norm of the matrix-entry list, hence satisfies the triangle inequality.

[A1]

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].

[F5]

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 0<u<1 and (rj−1)u<1 for each Householder dimension rj.

Proof

1.1A1F3inductionalgebra

Iterating the norm inequality from [A1] gives ∥Cj∥F≤(1+ηj)∥Cj−1∥F+δj. Induction from C0 yields ∥Cj∥F≤(∏r=1j(1+ηr))∥C0∥F+∑r=1jδr∏s=r+1j(1+ηs): the base case j=0 is equality, and the one-step inequality multiplies every prior term by 1+ηj and adds δj.

2.1step 1.1F1F2F3F4algebra

Set P0=IM, Q0=Ip, Pj=Pj−1Lj, Qj=Qj−1Rj, and E0=0. Multiplying the assumed stage equation by Pj and Qj∗ gives PjCjQj∗=Pj−1Cj−1Qj−1∗+Pj−1EjQj−1∗+PjDjQj∗. Thus induction gives C0+Ej=PjCjQj∗ with Ej=Ej−1+Pj−1EjQj−1∗+PjDjQj∗. Take E=EJ. Unitary left/right multiplication preserves Frobenius norm, so ∥E∥F≤∑j=1Jηj∥Cj−1∥F+∑j=1Jδj. Substitute step 1.1. For the C0 terms, ∑jηj∏r<j(1+ηr)=∏r(1+ηr)−1. For a fixed δi, its contribution is δi(1+∑j>iηj∏i<r<j(1+ηr))=δi∏r>i(1+ηr). These identities give the stated bound.

3.1step 2.1F1F2algebra

The same coordinate unwinding gives CJ=L∗(C0+E)R for products L,R of the unitary update factors, hence C0+E=LCJR∗. Step 2.1 gives its error bound; setting every δj=0 gives the no-deflation case.

4.1F5step 3.1algebra∎

For the specified finite-precision algorithm, the successful range checks and the explicit conditions 0<u<1 and (rj−1)u<1 permit [F5] at every actual update. It gives exactly [A1], including each target-zero write. Deflation and any additional discarded entries remain Dj, 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

The SVD threshold solver gives the unique minimum-norm fit to its truncated model

Statement

Let A∈Fm×n, b∈Fm, and τ≥0, where F=R or C. Let A=UΣV∗ be an exact SVD. Define Στ by retaining σi when σi>τ and replacing each σi≤τ by zero, and set Aτ=UΣτV∗. Put q=#{i:σi>τ}, the spectral numerical rank of A at threshold τ. The vector xτ=Aτ+b is the unique minimum-Euclidean-norm least-squares solution for the truncated model Aτx≈b. 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 xτ; a failure or exhausted budget returns inconclusive. No convergence within an arbitrary budget is asserted. Moreover, ∥A−Aτ∥2=σq+1≤τ,∥Axτ−b∥2≤∥Aτxτ−b∥2+τ∥xτ∥2, with σp+1=0 when q=p=min⁡(m,n). If every discarded singular value is zero, then Aτ=A and xτ 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 b, and the associated truncated matrix and pseudoinverse.

[F1]

Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: A=UΣV∗ with orthonormal singular vectors and nonnegative diagonal singular values.

[F2]

The truncated singular-value pseudoinverse obtained by discarding singular values below a declared numerical-rank threshold: Aτ+=VΣτ+U∗, where diagonal entries are 1/σi for σi>τ and zero otherwise.

[F3]

For every right-hand side b, A+b is the unique least-squares solution of minimum Euclidean norm: for any matrix M and right-hand side b, M+b is the unique least-squares solution of minimum Euclidean norm.

[F4]

The best rank-at-most-k approximation in operator norm is the rank-k truncation of a singular value decomposition: for 0≤q<n, the SVD truncation to rank at most q has spectral residual σq+1, including the stated zero-tail convention.

[F5]

Spectral numerical rank counts singular values above threshold over R or C: for m,n≥1, the spectral numerical rank at threshold τ counts precisely the singular values strictly greater than τ.

[F6]

The Moore--Penrose pseudoinverse A+ 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.

[F7]

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 ∥Mx∥2 over unit vectors otherwise. Thus ∥Mx∥2≤∥M∥2∥x∥2 for every vector x by scaling when x≠0, and directly when x=0.

[F8]

The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the Euclidean vector norm satisfies ∥u+v∥2≤∥u∥2+∥v∥2.

[F9]

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.

[F10]

Rank-thresholded least squares by the singular value decomposition: on exact-arithmetic convergence with the returned SVD record the procedure computes xτ=Aτ+b; a failure or exhausted sweep budget returns inconclusive.

Proof

1.1F1F2F6algebra

Let I={i≤p:σi>τ}. By [F1]–[F2], Aτ=∑i∈Iσiuivi∗ and Aτ+=∑i∈Iσi−1viui∗. Orthonormality gives AτAτ+=∑i∈Iuiui∗ and Aτ+Aτ=∑i∈Ivivi∗, which are self-adjoint. Using ui∗uj=vi∗vj=δij in those sums verifies the two Penrose product equations. Together with self-adjointness, these are the four equations; by [F6], Aτ+ is the unique Moore--Penrose pseudoinverse of Aτ. The calculation includes I=∅, when both matrices and sums are zero.

1.2F1F4F5F7F9algebra

If p=0, the matrix has no singular-value terms, so Aτ=A, q=0, and its spectral numerical rank is zero because A has rank zero and distance zero from itself by [F9]. If p>0, [F5] identifies q with the spectral numerical rank retained by the strict threshold. When q<p, one has q<p≤n, so [F4] applies with k=q and gives ∥A−Aτ∥2=σq+1≤τ. When q=p, [F1] shows directly that all positive singular terms are retained, hence Aτ=A and the residual norm is zero, equal to the stated convention σp+1=0. This last branch also covers p=0 without applying [F4] or [F5] outside their dimension hypotheses.

2.1step 1.1F3F10

Apply [F3] to M=Aτ. Its unique minimum-norm least-squares solution is Aτ+b=xτ, 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.

2.2step 1.2F7F8algebra

By [F7], ∥(A−Aτ)xτ∥2≤∥A−Aτ∥2∥xτ∥2; [F8] gives ∥Axτ−b∥2≤∥Aτxτ−b∥2+∥(A−Aτ)xτ∥2. Combining with step 1.2 proves the stated residual bound.

3.1step 2.1step 1.2algebra

If every discarded singular value is zero, the SVD formula gives A=Aτ, so step 2.1 is the original-matrix solution. If any positive singular value is discarded, the proof has established optimality only for Aτ; it supplies no normal-equation or minimum-residual claim for A.

4.1step 1.1step 1.2step 2.1step 2.2step 3.1∎

Steps 1.1, 1.2, 2.1, 2.2, and 3.1 prove all stated claims and the limitation.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Computed singular-value error is bounded by backward perturbation plus readout error

Statement

Let A∈Fm×n and put C=A when m≥n, C=A∗ when m<n. Suppose a successful computed SVD path in this tall orientation supplies C+E=U^[B^0]V^∗, where U^∈FM×M and V^∈Fp×p are the exact unitary products represented by the stored local transformations, M=max⁡(m,n), p=min⁡(m,n), and the returned square B^∈Fp×p 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 B^, then for every 1≤i≤p, ∣σ^i−σi(A)∣≤∥E∥2≤∥E∥F. For actual rounded modulus readout from a diagonal B^, let di=B^ii and ϵread=((1+u)4−1)max⁡({0}∪{∣di∣:1≤i≤p}) for the successful scaled complex modulus algorithm; use zero for exact real absolute values. Thus ϵread=0 when p=0. After ordering the candidates, the bound is ∣σ^i−σi(A)∣≤∥E∥2+ϵread. 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 si=σi(B^), and either exact readout σ^i=si or the specified rounded diagonal-modulus readout.

[F1]

Local stable reflectors and rotations give an aggregate SVD backward error supplies C+E=U^[B^0]V^∗ under its local arithmetic hypotheses, with the same tall-orientation dimensions.

[F2]

Singular values are Lipschitz in the spectral norm bounds each singular-value change by the spectral norm of the matrix perturbation.

[F3]

Spectral and Frobenius norms are unitarily invariant, are given by singular values, and satisfy the sharp rank comparison: unitary factors preserve singular values and ∥E∥2≤∥E∥F.

[F4]

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 p ordered singular values unchanged.

[F5]

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

1.1F1F3F4algebra

By [F1], C+E=U^[B^0]V^∗. The tall matrix [B^0] has the singular values of B^, since its adjoint times itself is B^∗B^; unitary invariance in [F3] therefore gives the ordered singular values si for C+E. By [F4], C and A have the same p singular values.

2.1step 1.1F2F3algebra

Apply [F2] to C and C+E. It gives ∣σi(C+E)−σi(C)∣≤∥E∥2; step 1.1 identifies these singular values with si and σi(A), respectively, and [F3] gives ∥E∥2≤∥E∥F.

3.1F5step 2.1algebra∎

A scaled modulus of two real components has relative norm factors between (1−u)4 and (1+u)4, by expanding the two scaling operations, square products and sum, square root and rescaling. Hence each rounded magnitude differs from ∣di∣ by at most ϵread. 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 σ^i=si 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.

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

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 z, its real-component list is (ℜz1,ℑz1,…,ℜzr,ℑzr). Evaluate displayed assignments in their written order and nested operations from the inside out, left operand before right operand. For inputs a+ib and c+id with real components a,b,c,d, a complex product uses rounded real products ac,bd,ad,bc, in that order, followed by the rounded real subtraction ac−bd and rounded imaginary addition ad+bc. 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 w, 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 d, visit columns j increasingly. For each column visit i=1,…,r, form the declared complex product v‾iBij, 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 d before forming p in increasing row order, then all of Z in the matrix order above, then all entries of B−Z in that order. Evaluate both components of the formation of v and every scalar scaling or division in real-then-imaginary order. A separate block call uses already stored v,τ^ and the same d,p,Z,B−Z 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 s>0, rounds every real component divided by s, sums their rounded squares sequentially, rounds the positive square root, and rounds multiplication by s. 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 C=[x  B], x∈Cr, a zero x copies the block with identity action. Otherwise compute N^ by the scaled norm. If x1=0 put ϕ^=1; otherwise compute its modulus a^ by its own two-component scaled norm and divide its real and imaginary parts by a^. Set α^=−fl⁡(ϕ^N^) using real-scalar component multiplication, and v=fl⁡(x−α^e1). Compute w by sequential summation of all 2r rounded real component squares of v, and τ^=fl⁡(2/w). Compute d=fl⁡(v∗B), p=fl⁡(τ^v), Z=fl⁡(pd), and B^=fl⁡(B−Z). Return C+=[α^e1  B^], writing exact zeros below the target diagonal, and store v,τ^. Its theoretical representative is H(v)=I−2vv∗/(v∗v). 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 (a,b), use the identity when b=0, including (0,0). Otherwise choose λ as the largest absolute real/imaginary component of (a,b), round z=a/λ and w=b/λ componentwise, and compute h as the norm of their four already scaled components. If z≠0, compute nz as the norm of its two components, ϕ^=fl⁡(z/nz), c=fl⁡(nz/h) and s=fl⁡(fl⁡(ϕ^w‾)/h). If z=0, set c=0 and s=fl⁡(w‾/h). Store T=(cs−s‾c) 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 Q=T/c2+∣s∣2; 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.

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

Scaled complex Householder and Givens steps have explicit local backward errors

Statement

Use Scaled real and complex Householder and Givens update arithmetic successfully, with 0<u<1 and (r−1)u<1 for every Householder dimension r. For a nonzero Householder column define e=(1+u)r+3−1,aϕ=1+u(1−u)4−1,aα=(1+aϕ)(1+e)(1+u)−1,dv=aα+u(2+aα), aτ=1+u(1−u)2r−1,g=1+6u1−(r−1)u−1,cU=2((1+aτ)(1+u)(1+6u)(1+g)−1), ηH(r)=max⁡{aα+8dv,(1+u)cU+3u}. For a Givens step define a2=1+u(1−u)2−1,q=max⁡{(1+u1−u)3−1,(1+a2)(1+6u)(1+u)(1−u)3−1}, ϵ=2(7u+6u2)(1+q),v=q+ϵ,ηG=2v+u+2q. Each complete left update, including its target zero write, has an exact unitary representative W and perturbation E with W(C+E)=C+,∥E∥F≤η∥C∥F, where η=ηH(r) or ηG. Identity branches have E=0. The corresponding right relation follows by conjugate transposition. For a Givens application without an annihilation overwrite use the smaller coefficient v; for a Householder separate-block application use (1+u)cU+3u. All coefficients are explicit and O(ru) or O(u) for fixed dimensions.

Facts & Assumptions

Given: The stated real/complex arithmetic realization and successful no-underflow operations.

[F1]

Scaled real and complex Householder and Givens update arithmetic fixes the scaled norm, coefficient formation, product order, zero branches and exact target writes.

[F2]

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

1.1givenF1F2algebra

A complex product's real/imaginary error is at most 2(2u+u2)∣z∣∣w∣≤6u∣z∣∣w∣: bound each of its four real products and then its two component additions. A sequential complex dot of length r therefore has error at most [6u+γr−1(1+6u)]∑i∣zi∣∣wi∣=g∑i∣zi∣∣wi∣. These expansions include exact zeros.

1.2F1F2algebra

A scaled norm with 2r real components has its positive squared sum multiplied termwise by between (1−u)2r+2 and (1+u)2r+2, including two scaling factors. Square root and rescaling give relative norm error at most e. The independently scaled modulus of x1 has lower/upper factors (1−u)4,(1+u)4, so the phase division error relative to x1/∣x1∣ is at most aϕ; when x1=0 it is zero. Thus for N=∥x∥, α0=−phase⁡(x1)N and v0=x−α0e1, one has ∣α^−α0∣≤aαN and ∥v−v0∥≤dvN. For exponents at least one the lower deviation is bounded by the upper by convexity, justifying these two-sided estimates.

2.1step 1.2algebra

The identity H(v)∗H(v)=I follows by multiplying I−2vv∗/(v∗v). The exact phase choice gives H(v0)x=α0e1 and ∥v0∥≥N by direct inner-product expansion. Normalization gives ∥a/∥a∥−b/∥b∥∥≤2∥a−b∥/∥b∥; expanding the difference of unit-vector projectors therefore gives ∥H(v)−H(v0)∥≤8dv. The target-column error is at most (aα+8dv)N.

2.2F1step 1.1algebra

For Givens formation at stored z,w, the norm h has relative factors between (1−u)3 and (1+u)3, since its unscaled four-component squared sum has at most four rounding factors per term. The norm nz has exponents two. Let G0 be the exact canonical Givens annihilator for (z,w), with coefficients c0=∣z∣/∥(z,w)∥ and s0=(z/∣z∣)w‾/∥(z,w)∥ when z≠0. The phase error is at most a2; the coefficient numerator, denominator, six-operation complex product and division errors therefore give ∣c−c0∣≤qc0 and ∣s−s0∣≤q∣s0∣. If z=0, c=0 and s0=w‾/∣w∣; the smaller bound (1+u)/(1−u)3−1≤q applies. Hence ∥(c,s)−(c0,s0)∥≤q.

3.1F1step 1.1step 2.1algebra

The positive real sum defining w has bounds (1−u)2r∥v∥2≤w≤(1+u)2r∥v∥2. The final division gives ∣τ^∥v∥2/2−1∣≤aτ. 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 cU∥B∥F. Final subtraction adds at most u(3+cU)∥B∥F. Combine this with step 2.1 over disjoint columns to get the Householder bound. For the zero column take the identity exactly.

3.2step 2.2algebra

Put t=c2+∣s∣2>0 and Q=T/t. Direct multiplication gives T∗T=t2I, so Q is canonical unitary, ∥T−Q∥=∣t−1∣≤q and ∥T∥≤1+q. Normalization also gives ∥Q−G0∥≤2q; differences of canonical blocks have norm equal to the Euclidean norm of their coefficient differences. Each computed output entry has error at most (7u+6u2)(∣c∣∣C1j∣+∣s∣∣C2j∣), by two products and their addition. The absolute coefficient block has norm at most 2t. Thus the raw update differs from QC by at most v∥C∥F.

4.1F1step 2.2step 3.2algebra

Scaling introduced ∥λ(z,w)−(a,b)∥≤u∥(a,b)∥. Because G0 annihilates (z,w), its exact target residual for (a,b) is at most u∥(a,b)∥; under Q it is at most (u+2q)∥(a,b)∥. Writing the rounded target to zero adds at most (u+2q+v)∥(a,b)∥ to the raw update discrepancy, so the total is at most ηG∥C∥F. No unrelated matrix entry is zeroed for a shift-vector rotation. Identity branches have zero discrepancy.

5.1step 3.1step 4.1algebraconstruct∎

In every left case choose E=W∗C+−C, with W=H(v) or Q; 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 u=0, 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