NLAlib.hutchpp_eq_trace_of_rank_eq
Library 路 theorem
Hutch++ is exact when the sketch captures the range: if \operatorname{rank}(\mathbf{A}\mathbf{S}) = \operatorname{rank}\mathbf{A}, then \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) = \operatorname{tr}\mathbf{A} for every residual test matrix \mathbf{G}: the randomized SVD recovers \mathbf{A} (NLAlib.rsvd_eq_self_of_rank_eq) and the compressed residual is \mathbf{0}.
NLAlib.hutchpp_eq_trace_of_rank_eq.{u_2, u_3, u_4, u_5} {饾暅 : Type u_2} [RCLike 饾暅] {n : Type u_3}
{s : Type u_4} {t : Type u_5} [Fintype n] [Fintype s] [Fintype t] [DecidableEq n]
{A : Matrix n n 饾暅} {S : Matrix n s 饾暅} (h : (A * S).rank = A.rank) (G : Matrix n t 饾暅) :
hutchpp A S G = A.traceImport NLAlib.Estimation.Trace.HutchPlusPlus.