NLA-lib Explorer

NLAlib.HasSubspaceEmbedding.measureReal_norm_sub_mulVec_sketchAndPrecondition_sq_gt_le

Library · theorem

Headline of sketch-and-precondition-ls (provisional)

Sketch-and-precondition with a random embedding, sketch-and-solve start: if the random sketch \mathbf{S} is a subspace embedding of \operatorname{range}[\mathbf{A}\ \mathbf{y}] with constants a > 0, \mathbf{b} in squared norms (a\|\mathbf{v}\|^2 \le \|\mathbf{S}\mathbf{v}\|^2 \le b\|\mathbf{v}\|^2 on that range) e\mathbf{x}cept with pro\mathbf{b}a\mathbf{b}ility \delta, \mathbf{A} has full column rank and almost surely \mathbf{x}_0 minimizes \|\mathbf{S}(\mathbf{A}\mathbf{x} - \mathbf{y})\|, then \mathbb{P}\Bigl[\Bigl(1 + 4\Bigl(\frac{\mathbf{b}}{a} - 1\Bigr) \Bigl(\frac{\sqrt{\mathbf{b}/a} - 1}{\sqrt{\mathbf{b}/a} + 1}\Bigr)^{2q}\Bigr) \|(\mathbf{I} - \mathbf{P}_{\mathbf{A}})\mathbf{y}\|^2 < \|\mathbf{y} - \mathbf{A}\,\mathsf{sketchAndPrecondition}(\mathbf{A}, \mathbf{S}, \mathbf{y}, \mathbf{x}_0, q)\|^2\Bigr] \le \delta\,. Squared residuals; [MartinssonTropp2020, §10.5] states an unsquared 1 + \varepsilon. No law is assumed: any distribution with the embedding property qualifies. Result: sketch-and-precondition-ls

NLAlib.HasSubspaceEmbedding.measureReal_norm_sub_mulVec_sketchAndPrecondition_sq_gt_le.{u_1, u_2,
    u_3, u_4, u_6}
  {𝕜 : Type u_1} [RCLike 𝕜] {k : Type u_2} {m : Type u_3} {n : Type u_4} [Fintype k] [Fintype m]
  [Fintype n] [DecidableEq n] {A : Matrix m n 𝕜} {y : m → 𝕜} {a b : ℝ} {Ω : Type u_6}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {δ : ℝ} [DecidableEq m] [IsFiniteMeasure μ]
  {S : Ω → Matrix k m 𝕜} (h : HasSubspaceEmbedding S (A.fromCols (replicateCol Unit y)) a b δ μ)
  (ha : 0 < a) (hA : Function.Injective A.mulVec) {x₀ : Ω → n → 𝕜}
  (hx₀ : ∀ᵐ (ω : Ω) ∂μ, IsLeastSquaresSolution (S ω * A) (S ω *ᵥ y) (x₀ ω)) (q : ℕ) :
  μ.real
      {ω |
        (1 + 4 * (b / a - 1) * ((√(b / a) - 1) / (√(b / a) + 1)) ^ (2 * q)) *
            ‖WithLp.toLp 2 ((1 - rangeProjector A) *ᵥ y)‖ ^ 2 <
          ‖WithLp.toLp 2 (y - A *ᵥ sketchAndPrecondition A (S ω) y (x₀ ω) q)‖ ^ 2} ≤
    δ

Full source on GitHub

Import NLAlib.Regression.SketchAndPrecondition.