Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck pending
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.

Gauss-Newton linearized least-squares step with QR/SVD rank safeguards

Definition

Input a stored residual r∈Rm, a stored Jacobian J∈Rm×n with m,n≥1 (using the convention of The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case), a factorization mode QR or SVD, an arithmetic mode (exact or computed), and a declared singular-value threshold τ≥0. If m<n, immediately return unsupported-shape without requesting a factorization report; all remaining branches assume m≥n. A computed QR report may also carry a verified full-rank certificate s>0 asserting ∥Jv∥2≥s∥v∥2 for every v∈Rn. The target exact step, when it is returned, is the unique minimizer of 12∥r+Jp∥22 and hence solves JTJp=−JTr; this target is asserted only on a full-column-rank branch. Do not form JTJ in either solve path.

The threshold τ is used only by the SVD route. For QR mode the exact and computed routes are disjoint. Exact mode requires a supplied exact reduced factorization J=QR with QTQ=In; only this exact factorization may reach the exact-step branch. Computed mode either consumes the report produced from this input pair (J,−r) or forms it by setting C=[J∣−r] and, for k=1,…,n, applying Scaled Householder reflector formation and application to rows k,…,m of column k and all trailing columns of C, including its last right-hand-side column. Embed each returned active block in those rows, leaving earlier rows and columns unchanged, and propagate the first factorization failure. After a successful computed loop, the report consists of the computed upper-triangular block R^, the first n entries y^ of the transformed last column, and the ordered stored reflector records (including identity markers). The exact orthogonal representatives of those records define the Q used by the conditional backward-stability result; the rounded outputs themselves are not an exact factorization of J and cannot be supplied to the exact branch. In exact mode, a zero diagonal in R returns rank-deficient; otherwise solve Rp=QT(−r) by backward substitution and return exact-step(p). In computed mode, a zero diagonal returns rank-deficient-candidate. Otherwise initialize storage for p^0,…,p^n−1 with all components unassigned, then for i=n−1,n−2,…,0 compute si by setting si=0 and, for j=i+1,i+2,…,n−1 in increasing order, updating si←fl⁡(si+fl⁡(R^ijp^j)); then compute ti=fl⁡(y^i−si) and p^i=fl⁡(ti/R^ii). Any first arithmetic or range failure returns linear-solve-failure with its stage and indices. A nonzero computed diagonal without an independently verified full-rank certificate s>0 for the input matrix J returns rank-unverified with the computed candidate but no full-rank claim. With that certificate, return computed-candidate(p^). A nonzero computed diagonal alone is not a full-rank certificate. The computed-QR backward-stability conclusion of Computed reduced QR least squares is backward stable for full column rank is attached only when all of that theorem's successful-execution, arithmetic, and nonsingularity hypotheses are supplied; otherwise no backward-stability conclusion is returned.

For SVD mode, the input includes an exact factorization J=UΣVT, or a computed report with finite stored factors U^1∈Rm×n, Σ^=diag⁡(σ^1,…,σ^n)∈Rn×n whose entries are nonnegative, and V^∈Rn×n, together with certified intervals [ℓi,ui] satisfying 0≤ℓi≤σi(J)≤ui for each singular value i=1,…,n. In the exact case, if any σi≤τ, return rank-below-threshold and no Gauss-Newton step. If every σi>τ, return p=−V diag⁡(σ1−1,…,σn−1) U1Tr, where U1 consists of the corresponding n left singular vectors. For a computed report, if any ui≤τ, return rank-below-threshold; otherwise, if any interval satisfies ℓi≤τ<ui, return rank-unverified; if every lower endpoint exceeds τ but some stored σ^i=0, return factorization-failure. In the remaining branch, for i=1,…,n in increasing order initialize zi=0 and, for j=1,…,m in increasing order, set zi←fl⁡(zi+fl⁡(U^jirj)). After these dots, for i=1,…,n set wi=fl⁡(zi/σ^i). For each j=1,…,n initialize tj=0 and, for i=1,…,n in increasing order, set tj←fl⁡(tj+fl⁡(V^jiwi)); set p^j=−tj by exact sign change. Any first arithmetic or range failure returns linear-solve-failure with its stage and indices. Otherwise return the finite candidate p^=−V^ diag⁡(σ^1−1,…,σ^n−1) U^1Tr with status computed-candidate and make no accuracy claim beyond the supplied report. The displayed formula names the result of the preceding schedule; it is not a second computation. The certified intervals determine only the threshold branch; no computed-SVD accuracy bound is asserted. A computed SVD routine is not defined here; the SVD branch consumes its report.

If the selected factorization reports failure, return factorization-failure; every status other than exact-step is explicitly not a certified exact full-rank Gauss-Newton step.

Facts & Assumptions

Given: The matrix J, residual r, threshold τ, chosen factorization report or computed factorization path, and the dimensions and statuses in the Definition.

[F1]

Full, reduced, and column-pivoted computational QR factorisations: a reduced QR factorization has J=QR, QTQ=In, and upper-triangular R.

[F2]

Reduced QR over the reals solves full-column-rank least squares without squaring the condition number: for full-column-rank J=QR, the unique least-squares solution is the solution of Rp=QTb.

[F3]

Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: a finite-dimensional real matrix has orthonormal left and right singular vectors and nonnegative singular values giving its SVD.

[F4]

The truncated singular-value pseudoinverse obtained by discarding singular values below a declared numerical-rank threshold: a declared threshold retains singular values strictly greater than τ and discards those at or below τ.

[F5]

Scaled Householder reflector formation and application: each reflector call has finite loops and returns either its stated transformed block or a failure status.

[F6]

Computed reduced QR least squares is backward stable for full column rank: after successful scaled Householder QR, reflector application, and triangular solve under its arithmetic bounds, a backward-stability conclusion is available only if the stated nonsingularity condition on the perturbed triangular factor also holds.

[F7]

Forward and backward substitution for triangular linear systems: for an upper-triangular matrix with nonzero diagonal, backward substitution solves its triangular system by a finite descending recursion.

[F8]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: every computed scalar operation either returns its correctly rounded finite result under the stated no-underflow model or its range-failure status; sign changes and exact copies are exact.

Proof

1.1givenF5F7F8construct

In computed QR mode the loop makes at most n calls, stopping at the first failure. Each call either returns its specified block or a failure by [F5]; after a successful loop the diagonal and solve branches have finite checks and a finite recursion by [F7]. Exact QR uses its supplied factorization and the same finite diagonal checks and triangular recursion. The SVD report is an input, and its branch has finitely many comparisons and at most mn+n2 scheduled dot-product updates. Every computed operation returns a rounded value or a failure by [F8], so every input returns one of the listed statuses in finite work.

2.1F1F2F3F4step 1.1algebra

In the exact full-rank QR branch, [F1] and [F2] show that the returned solution of Rp=QT(−r) uniquely minimizes ∥r+Jp∥2. In the exact SVD branch with all σi>τ≥0, orthogonality gives JTJ=VΣn2VT and JT(−r)=−VΣnU1Tr, so the displayed p solves the normal system; full column rank makes it unique, and [F3] gives the least-squares minimizer. If a threshold or rank test fails, the algorithm returns a status rather than asserting that minimizer.

3.1F4F5F6step 1.1step 2.1∎

The exact-step status is reachable only from a supplied exact factorization in the exact route (QR or SVD); a rounded Householder report reaches only the computed-status branches. There, a nonzero computed diagonal without a verified full-rank certificate is rank-unverified, and the backward-stability conclusion [F6] is attached only under its stated execution, arithmetic, and nonsingularity hypotheses. In the computed SVD route, any interval contained at or below τ yields rank-below-threshold; only if no such interval exists does an interval straddling τ yield rank-unverified. The report supports no accuracy claim in either case. Thus no computed branch silently strengthens the exact full-rank result of step 2.1.

Depends on

Used by

Dependency tree · two levels

36 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources