Solve a consistent system Ax=b, with A∈Cm×n of full rank and m≥n≥1. Kaczmarz's method (1937) projects the current iterate onto the solution hyperplane of one equation at a time. The cyclic version converges, but its rate depends on the order of the rows and has no clean bound in terms of a condition number.
Strohmer and Vershynin (2009) pick row i at random with probability ∥ai∥22/∥A∥F2 and prove
The rate does not depend on the number of equations m.
Setting
Rows.ai∈Cn is the conjugate of row i, so equation i reads ⟨ai,x⟩=bi.
Condition number.σmin(A)=inf∥z∥2=1∥Az∥2 and κ(A)=∥A∥F/σmin(A) (Demmel). It satisfies n≤κ(A)≤n∥A∥2/σmin(A).
Algorithm 1. From any x0, draw row r independently with probability pr=∥ar∥22/∥A∥F2 and set
xk+1=xk+∥ar∥22br−⟨ar,xk⟩ar.
Expectation.E∥xk−x∥22 is a finite sum over the mk possible row sequences.
Targets
Theorem 2 (goal): the bound above, for every x0 and k.
Theorem 3: some x0=x has E∥xk−x∥22≥(1−2k/κ(A)2)∥x0−x∥22 for all k≥1, so κ(A)−2 is sharp up to a constant. Caveat: the source's proof only reaches the unsquared bound E∥xk−x∥2≥… and then cites Jensen, which goes the wrong way. Its estimates give the squared bound with 4 in place of 2. Both forms are milestones.
Sharpness (§3.2): Theorem 2 is an equality when κ(A)=n.
Iteration count (§2.1):k≥2logε/log(1−κ(A)−2) steps give E∥xk−x∥22≤ε2∥x0−x∥22.
Proof idea
A single projection can barely reduce the error, when the error is almost orthogonal to the chosen row. On average it always does. If Z=aj/∥aj∥2 is drawn with probability pj, then
E∣⟨z,Z⟩∣2=∥A∥F2∥Az∥22≥κ(A)−2∥z∥22.
Pythagoras for one projection then gives E∥xk+1−x∥22≤(1−κ(A)−2)∥xk−x∥22; induct on k.
Formalization
Vectors live in EuclideanSpace ℂ (Fin n) and matrices in Matrix (Fin m) (Fin n) ℂ. Mathlib's inner product is conjugate-linear in its first argument, which is why ai is a conjugated row.
Full rank is stated as injectivity of z↦Az.
The expectation expErrSq is an explicit finite sum, so no measure theory is needed. The tower identity is a milestone.
A zero row makes the step the identity (Lean's division by zero) and has probability 0, so it is harmless.
Mathlib has no Kaczmarz iteration, scaled condition number or σmin lower bound; the mission builds them.
History
1937: Kaczmarz introduces the cyclic method and proves convergence, with no rate.
1970: Gordon, Bender and Herman rediscover it as ART for tomography.
2009: Strohmer and Vershynin give the first rate in terms of a condition number.
2010 onward: extensions to noisy systems, block methods, SGD and sketch-and-project (Needell; Needell–Tropp; Needell–Srebro–Ward; Gower–Richtárik).
References
S. Kaczmarz, Angenäherte Auflösung von Systemen linearer Gleichungen, Bull. Int. Acad. Polon. Sci. Lett. A 35 (1937), 355–357.
T. Strohmer and R. Vershynin, A randomized Kaczmarz algorithm with exponential convergence, J. Fourier Anal. Appl. 15 (2009), 262–278. arXiv:math/0702226
J. Demmel, The probability that a numerical analysis problem is difficult, Math. Comp. 50 (1988), 449–480. DOI
D. Needell, Randomized Kaczmarz solver for noisy linear systems, BIT Numer. Math. 50 (2010), 395–403. arXiv:0902.0958
D. Needell, N. Srebro and R. Ward, Stochastic gradient descent, weighted sampling, and the randomized Kaczmarz algorithm, Math. Program. 155 (2016), 549–573. arXiv:1310.5715
R. M. Gower and P. Richtárik, Randomized iterative methods for linear systems, SIAM J. Matrix Anal. Appl. 36 (2015), 1660–1690. arXiv:1506.03296
namespace RandKaczmarz
theorem randomized_kaczmarz_exp_convergence {m n : ℕ} (hn : 0 < n) (hmn : n ≤ m)
(A : Matrix (Fin m) (Fin n) ℂ) (b : Fin m → ℂ)
(hA : Function.Injective (mulVecE A))
(x x₀ : EuclideanSpace ℂ (Fin n)) (hx : A *ᵥ ofLp x = b) (k : ℕ) :
expErrSq A b x k x₀ ≤ (1 - (scaledCond A ^ 2)⁻¹) ^ k * ‖x₀ - x‖ ^ 2 := by sorry
end RandKaczmarz
Theorem 2. Let A∈Cm×n have full rank, m≥n≥1, and Ax=b. Run Algorithm 1 from any x0: each step draws row i independently with probability ∥ai∥22/∥A∥F2 and projects onto that equation's hyperplane. Then for every k≥0,
E∥xk−x∥22≤(1−κ(A)−2)k∥x0−x∥22,
where κ(A)=∥A∥F/σmin(A). The rate does not depend on m.
Formalization Note Full rank is stated as injectivity of z↦Az. The expectation is the finite sum over the mk row sequences.
Frontier · Open leaf nodes
Recent activity
Frontier · Open leaf nodes
No open leaves. Every sub-goal is proved or awaiting decomposition.