NLA-lib Explorer

SRHT rows suffice for a rank-d projection-cost-preserving sketch

Library · Result group

Theorem (exists_forall_hasProjectionCostPreserving_of_hasLaw_srht). SRHT rows suffice for a rank-d projection-cost-preserving sketch: O(\beta(d + \log(\lvert n\rvert/\delta))\log(d/\delta)/\varepsilon^2 + \beta^2(d+1)/(\varepsilon^2\delta)) rows give one: for a real bounded orthonormal \mathbf{F} with constant \beta and its SRHT \mathbf{S}, \mathbf{A}\mathbf{S}^{\mathsf{H}} is a rank-d projection-cost-preserving sketch of \mathbf{A} with constants 1 \mp \varepsilon and failure probability \delta, for \varepsilon and \delta below absolute constants; the constants come before every dimension and before \beta. Proved from NLAlib.hasProjectionCostPreserving_of_hasLaw_srht_of_le_card with \varepsilon_0 = 1 and \delta \le 1/2. [CohenElderMuscoMuscoPersu2015, proof of Theorem 12].

Headline (provisional) General form: sizes are index types

Lean statement and details
NLAlib.exists_forall_hasProjectionCostPreserving_of_hasLaw_srht :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω k m n : Type} [inst : MeasurableSpace Ω] [inst_1 : Fintype k] [inst_2 : Fintype m]
          [inst_3 : Fintype n] [inst_4 : DecidableEq n] (μ : Measure Ω) (S : Ω → Matrix k n ℝ)
          (F : Matrix n n ℝ) (β : ℝ) (A : Matrix m n ℝ) (d : ℕ) (ε δ : ℝ),
          IsBoundedOrthonormal F β →
            HasLaw S (srht k F) μ →
              0 < ε →
                ε ≤ ε₀ →
                  0 < δ →
                    δ ≤ 1 / 2 →
                      C *
                            (β * (↑d + Real.log (↑(Fintype.card n) / δ)) * Real.log (↑d / δ) /
                                ε ^ 2 +
                              β ^ 2 * (↑d + 1) / (ε ^ 2 * δ)) ≤
                          ↑(Fintype.card k) →
                        HasProjectionCostPreserving S A d (1 - ε) (1 + ε) δ μ

Full source on GitHub

Copy link

Other forms

Theorem (hasProjectionCostPreserving_of_hasLaw_srht_of_le_card). The SRHT is a projection-cost-preserving sketch, size form: for a real bounded orthonormal \mathbf{F} with constant \beta, the SRHT \mathbf{S} built from it (independent random signs and an independent uniform choice of \lvert k\rvert distinct rows), 0 < \varepsilon \le 2, \delta > 0, at least <!-- value samplingEmbeddingDim d L (\varepsilon/2) (\delta/4) --> \lvert k\rvert \ge \frac{3L\log(2d/(\delta/4))}{(\varepsilon/2)^2} rows, where the flattened coherence <!-- value srhtRowBound {\lvert n \rvert} d (\delta/4) --> L = \beta\,\bigl(d + 2\sqrt{d \log(\lvert n \rvert/(\delta/4))} + 2 \log(\lvert n \rvert/(\delta/4))\bigr) is \beta times NLAlib.srhtRowBound (Fintype.card n) d (δ / 4) (the size is NLAlib.samplingEmbeddingDim d L (ε / 2) (δ / 4), the OSE at (\varepsilon/2, \delta/2)), and at least <!-- value projectionCostTailDim {(3\beta^2 - 1)} d \varepsilon \delta --> 384 \cdot (3\beta^2 - 1) (d + 1)/(\varepsilon^2 \delta) rows (projectionCostTailDim (3 * β ^ 2 - 1) d ε δ), \mathbf{A}\mathbf{S}^{\mathsf{H}} is a rank-d projection-cost-preserving sketch of \mathbf{A} with constants 1 \mp \varepsilon, for every \mathbf{A}, except with probability \delta. The tail is the JL moment NLAlib.hasJLMoment_of_hasLaw_srht at \varepsilon/(8\sqrt{d+1}). [CohenElderMuscoMuscoPersu2015, proof of Theorem 12]; there the SRHT at dimension O(k) through stable-rank spectral approximate multiplication; here the JL moment at p = 2, so 1/\delta in the second size. Asymptotic form: NLAlib.exists_forall_hasProjectionCostPreserving_of_hasLaw_srht.

General form: sizes are index types

Lean statement and details
NLAlib.hasProjectionCostPreserving_of_hasLaw_srht_of_le_card.{u_1, u_3, u_4, u_5} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {k : Type u_3} {n : Type u_4} [Fintype k] [Fintype n]
  [DecidableEq n] {β ε δ : ℝ} {S : Ω → Matrix k n ℝ} {F : Matrix n n ℝ}
  (hF : IsBoundedOrthonormal F β) (hS : HasLaw S (srht k F) μ) {m : Type u_5} [Fintype m]
  (A : Matrix m n ℝ) (d : ℕ) (hε : 0 < ε) (hε2 : ε ≤ 2) (hδ : 0 < δ)
  (hk₁ :
    samplingEmbeddingDim d (β * srhtRowBound (Fintype.card n) d (δ / 4)) (ε / 2) (δ / 4) ≤
      ↑(Fintype.card k))
  (hk₂ : projectionCostTailDim (3 * β ^ 2 - 1) d ε δ ≤ ↑(Fintype.card k)) :
  HasProjectionCostPreserving S A d (1 - ε) (1 + ε) δ μ

Full source on GitHub

Copy link

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.