Theorem (HasOrthonormalCols.sketchAndSolve_eq_add).Core noise: for \mathbf{Q} with orthonormal columns and \operatorname{rank}(\mathbf{S}\mathbf{Q}) = \operatorname{rank}\mathbf{Q} (full column rank of \mathbf{S}\mathbf{Q}), the sketched core is the exact core plus noise, \mathsf{sketchAndSolve}(\mathbf{Q}, \mathbf{S}, \mathbf{B}) = \mathbf{Q}^{\mathsf{H}}\mathbf{B} + \mathsf{sketchAndSolve}(\mathbf{Q}, \mathbf{S}, (\mathbf{I}-\mathbf{Q}\mathbf{Q}^{\mathsf{H}})\mathbf{B})\,. [TroppYurtseverUdellCevher2017, Lemma A.4]; [CamanoEpperlyMeyerTropp2025, Lemma 2.6]; there with a complement frame.
Headline (provisional)
Lean statement and details
NLAlib.HasOrthonormalCols.sketchAndSolve_eq_add.{u_1, u_3, u_5, u_6, u_7} {๐ : Type u_1} [RCLike ๐]
{m : Type u_3} [Fintype m] {k : Type u_5} {p : Type u_6} {q : Type u_7} [Fintype k]
{S : Matrix k m ๐} [Fintype q] [DecidableEq m] [DecidableEq q] {Q : Matrix m q ๐}
(hQ : HasOrthonormalCols Q) (h : (S * Q).rank = Q.rank) (B : Matrix m p ๐) :
sketchAndSolve Q S B = Qแดด * B + sketchAndSolve Q S ((1 - Q * Qแดด) * B)
Theorem (sketchAndSolve_eq_pinv_mul_add).Sketch-and-solve error decomposition: when \operatorname{rank}(\mathbf{S}\mathbf{A}) = \operatorname{rank}\mathbf{A}, \mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{S}, \mathbf{B}) = \mathbf{A}^{+}\mathbf{B} + \mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{S}, (\mathbf{I}-\mathbf{P}_{\mathbf{A}})\mathbf{B})\,: the sketched solution is the exact minimum-norm solution plus the sketch-and-solve solution for the optimal residual. This is the exact identity beside the bound sketch-and-solve-ls (NLAlib.IsSubspaceInjection.frobNorm_sub_mul_pinv_mul_sq_le). [EpperlyWebber2026, Lemma 5.1, (5.1)]; there in a factorization \mathbf{A} = \mathbf{Q}\mathbf{R}, here basis-free.
Lean statement and details
NLAlib.sketchAndSolve_eq_pinv_mul_add.{u_1, u_3, u_4, u_5, u_6} {๐ : Type u_1} [RCLike ๐]
{m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n] {k : Type u_5} {p : Type u_6} [Fintype k]
{S : Matrix k m ๐} [DecidableEq m] {A : Matrix m n ๐} (h : (S * A).rank = A.rank)
(B : Matrix m p ๐) :
sketchAndSolve A S B = pinv A * B + sketchAndSolve A S ((1 - rangeProjector A) * B)