These are the human proofs of Lanczos algorithm, at full length.
The Lanczos recurrence gives an orthonormal Krylov basis and a tridiagonal projection full
This proof shows: correctness, termination.
Notation of the page: A=A∗∈Cn×n with eigenvalues λ1≥⋯≥λn and orthonormal eigenvectors vi; b=0; Kk(A,b)=span{b,Ab,…,Ak−1b}; Qk=[q1,…,qk]; Tk the k×k real symmetric tridiagonal matrix with diagonal α1,…,αk and off-diagonal β1,…,βk−1. Exact arithmetic unless stated; the reorthogonalization of line L5 then changes nothing, since it subtracts zero.
Theorem 1 (orthonormal basis and the Lanczos relation). Suppose the loop runs steps 1,…,k with β1,…,βk−1>0. Then q1,…,qk are orthonormal, span{q1,…,qj}=Kj(A,b) for j≤k, and
where βkqk+1 means the vector w of step k (which may be zero).
Proof. By induction on j. For j=1, q1=b/∥b∥2. Assume q1,…,qj are orthonormal, span Kj, and satisfy Aqi=βi−1qi−1+αiqi+βiqi+1 for i<j (with β0q0=0). Step j forms w=Aqj−βj−1qj−1−αjqj with αj=qj∗Aqj, real because A is Hermitian.
qj∗w=qj∗Aqj−αj=0, using qj∗qj−1=0.
qj−1∗w=qj−1∗Aqj−βj−1. By symmetry, qj−1∗Aqj=(Aqj−1)∗qj=(βj−2qj−2+αj−1qj−1+βj−1qj)∗qj=βj−1, as the β are real. So qj−1∗w=0.
For i≤j−2, qi∗w=(Aqi)∗qj=(βi−1qi−1+αiqi+βiqi+1)∗qj=0, because the indices are at most j−1.
This is the point where symmetry is used: w is orthogonal to all earlier vectors although only two are subtracted. If βj=∥w∥2>0, then qj+1=w/βj is a unit vector orthogonal to q1,…,qj, and Aqj=βj−1qj−1+αjqj+βjqj+1. As Aqj∈AKj⊆Kj+1, also qj+1∈Kj+1; the j+1 orthonormal vectors in Kj+1, which has dimension at most j+1, span it. Writing the relations for i=1,…,k as columns gives AQk=QkTk+wekT, and multiplying by Qk∗ gives Qk∗AQk=Tk. □
Theorem 2 (termination and breakdown). Let m be the number of distinct eigenvalues λ for which b has a nonzero component in the eigenspace of λ. Then β1,…,βm−1>0 and βm=0. At that step Km(A,b) is invariant under A, and the eigenvalues of Tm are exactly those m eigenvalues of A. So the loop stops after at most min(k,m)≤n steps.
Proof. Write b=∑ℓ=1mcℓzℓ with zℓ unit vectors in the eigenspaces of distinct eigenvalues μ1,…,μm, and cℓ=0. Then Kj={p(A)b:degp<j}, and p(A)b=∑ℓcℓp(μℓ)zℓ is zero only if p vanishes at all μℓ. So dimKj=j for j≤m and Km+1=Km. By Theorem 1, as long as βj>0, the basis has j+1 elements in Kj+1; this is impossible for j=m. So βj>0 for j<m (otherwise AKj⊆Kj, giving Kj+1=Kj of dimension j<j+1) and βm=0. With βm=0, AQm=QmTm, so Km is invariant and every eigenpair (θ,s) of Tm gives an eigenpair (θ,Qms) of A. The eigenvalues of Tm are distinct (an unreduced symmetric tridiagonal matrix has simple eigenvalues), and the restriction of A to Km=span{zℓ} has the eigenvalues μ1,…,μm. □
Theorem 3 (Ritz pairs and their residuals). Let Tksi=θisi with ∥si∥2=1, and let yi=Qksi. Then ∥yi∥2=1 and
∥Ayi−θiyi∥2=βk∣ekTsi∣.
So, by the residual bound for Hermitian matrices, each interval [θi−βk∣ekTsi∣,θi+βk∣ekTsi∣] contains an eigenvalue of A.
Proof.Ayi=AQksi=QkTksi+βkqk+1ekTsi=θiyi+βk(ekTsi)qk+1, and ∥qk+1∥2=1. For the interval: if ∥Ay−θy∥2=ρ with ∥y∥2=1, then expanding y in the eigenvectors gives ρ2=∑i∣vi∗y∣2(λi−θ)2≥mini(λi−θ)2. □
Theorem 4 (monotone extremal Ritz values and the Kaniel-Paige-Saad bound). The largest Ritz value θ1(k)=max0=x∈Kkx∗Ax/x∗x is nondecreasing in k and satisfies
where cosϕ1=∣v1∗b∣/∥b∥2>0, Ck−1 is the Chebyshev polynomial of degree k−1, and λ2>λn.
Proof. By Theorem 1, x=Qks ranges over Kk, and x∗Ax/x∗x=s∗Tks/s∗s, whose maximum is the largest eigenvalue of Tk (Courant-Fischer). Since Kk⊆Kk+1, the maximum does not decrease, and it is at most λ1. For the lower bound take x=p(A)b with p(t)=Ck−1(1+2(t−λ2)/(λ2−λn)), of degree k−1. Write b=∑icivi. Then
For i≥2 the argument of Ck−1 lies in [−1,1], so ∣p(λi)∣≤1, while p(λ1)=Ck−1(1+2γ1). Also ∑i≥2∣ci∣2/∣c1∣2=tan2ϕ1. □
As Ck−1(1+2γ)≥21(1+2γ)k−1 for γ≥0, the error decreases at least like (1+2γ1)−2(k−1), much faster than the (λ2/λ1)2k of power iteration for the same number of products. This is the bound of Kaniel (1966), corrected by Paige (1971) and Saad (1980); Golub and Van Loan give it in Section 10.1.
Termination of the implementation. The loop of line L2 runs at most k times. It also stops when βj falls below 10numax(∣αj∣,βj−1,1), the floating-point form of the breakdown of Theorem 2.
Floating point. Without line L5, rounding errors destroy the orthogonality of the qj, and Theorem 1 then fails. Paige (1971, 1976, 1980) proved that the computed quantities still satisfy AQk=QkTk+βkqk+1ekT+Fk with ∥Fk∥ of order u∥A∥. He also proved that the loss of orthogonality is tied to convergence: for a Ritz vector yi, ∣yi∗qk+1∣ is about u∥A∥/(βk∣ekTsi∣), so orthogonality is lost exactly in the direction of the Ritz vectors that have converged. Every Ritz value is still within a small multiple of the residual estimate of an eigenvalue, but converged eigenvalues reappear as extra copies ("ghosts"). With full reorthogonalization by classical Gram-Schmidt applied twice, the computed Qk satisfies ∥Qk∗Qk−I∥=O(u) for each step, and Theorems 1 to 3 hold up to errors of order u∥A∥.