Haar sketches as subspace embeddings
Library · Source module
Haar sketches as subspace embeddings
Fixed-subspace and oblivious subspace embeddings for the Haar sketch \mathbf{S} = \sqrt{\lvert n \rvert / \lvert k \rvert} \, \mathbf{Q}^{\mathsf{H}} of NLAlib/Sketching/Gaussian/Haar.lean. The Gram matrix of \mathbf{S} on \mathbf{U} has the law of (\lvert n \rvert / \lvert k \rvert) \, \mathbf{U}^{\mathsf{H}} \mathbf{P}_{\mathbf{G}} \mathbf{U} for an n \times k Gaussian \mathbf{G} (NLAlib.hasLaw_conjTranspose_mul_self_mul_of_hasLaw_haarFrame); the inverse-Gram identity \mathbf{U}^{\mathsf{H}} \mathbf{P}_{\mathbf{G}} \mathbf{U} = (\mathbf{G}^{\mathsf{H}}\mathbf{U})^{\mathsf{H}} (\mathbf{G}^{\mathsf{H}}\mathbf{G})^{-1} (\mathbf{G}^{\mathsf{H}}\mathbf{U}) and Gordon's tails then give the lower constant a_{\mathrm{H}} = \frac{(1 - (\sqrt{\lvert p \rvert} + t)/\sqrt{\lvert k \rvert})^2} {(1 + (\sqrt{\lvert k \rvert} + s)/\sqrt{\lvert n \rvert})^2} \,, with a tail in t for the subspace and one in s for the frame, and the upper constant \mathbf{b}_{\mathrm{H}} = \frac{(1 + (\sqrt{\lvert p \rvert} + t)/\sqrt{\lvert k \rvert})^2} {(1 - (\sqrt{\lvert k \rvert} + s)/\sqrt{\lvert n \rvert})^2} for s < \sqrt{\lvert n \rvert} - \sqrt{\lvert k \rvert}. Both are lossy near \lvert k \rvert = \lvert n \rvert; there the complement route is sharp: with c the codimension (\lvert k \rvert + c = \lvert n \rvert), \mathbf{Q} \sim \mathbf{P}\mathbf{V}_1 and \mathbf{Q}_{\perp} := \mathbf{P}\mathbf{V}_2 for a square Haar frame \mathbf{P}, \mathbf{U}^{\mathsf{H}}\mathbf{Q}\mathbf{Q}^{\mathsf{H}}\mathbf{U} = \mathbf{I} - \mathbf{U}^{\mathsf{H}}\mathbf{Q}_{\perp}\mathbf{Q}_{\perp}^{\mathsf{H}}\mathbf{U}, and the inverse-Gram step on the n \times c Gaussian behind \mathbf{Q}_{\perp} gives a = \frac{\lvert n \rvert}{\lvert k \rvert} \Bigl(1 - \frac{(\sqrt{c} + \sqrt{\lvert p \rvert} + t)^2} {(\sqrt{\lvert n \rvert} - \sqrt{c} - s)^2}\Bigr) \,, which tends to 1 as c / \lvert n \rvert \to 0. The upper half (\lvert n \rvert / \lvert k \rvert) \, \mathbf{U}^{\mathsf{H}}\mathbf{U} holds almost surely (NLAlib.ae_conjTranspose_mul_self_mul_le_smul_of_hasLaw_haarFrame).
Gordon's route cannot reach constants 1 \mp \varepsilon: its lower constant has the denominator (1 + \sqrt{\lvert k\rvert/\lvert n\rvert})^2. The JL route does, at every \lvert k\rvert \le \lvert n\rvert: the Haar JL tail (NLAlib.hasJLProperty_of_hasLaw_haarFrame) through JL plus a net at 4\varepsilon/5 (NLAlib.HasJLProperty.isObliviousSubspaceEmbedding) gives the failure probability 2 \cdot 21^d e^{-\lvert k\rvert(4\varepsilon^2/25 - 32\varepsilon^3/375)}, as for sign sketches, and O((d + \log(1/\delta))/\varepsilon^2) rows; no spectral input on Haar blocks is needed.
Degenerate cases: for empty p every event is null; for empty k the sketch is \mathbf{0}, hence [Nonempty k] on the OSI. Split from NLAlib/Sketching/Gaussian/Haar.lean (2026-10-15).
Main results
* NLAlib.HasOrthonormalCols.hasSubspaceInjection_of_hasLaw_haarFrame: the lower constant a_{\mathrm{H}}. * NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame, NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame_of_lt_sqrt_sub_sqrt, NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame_of_card_add_eq: three incomparable fixed-subspace embeddings. * NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame, NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame, NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame_of_lt_sqrt_sub_sqrt. * NLAlib.isObliviousSubspaceEmbedding_one_sub_one_add_of_hasLaw_haarFrame: the OSE with constants 1 \mp \varepsilon by JL and a net; its size forms NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame_of_jlDim_le, NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame_of_jlDim_le and asymptotic forms NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_haarFrame, NLAlib.exists_forall_isObliviousSubspaceInjection_of_hasLaw_haarFrame.
Declarations
- NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame
- NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame_of_card_add_eq
- NLAlib.HasOrthonormalCols.hasSubspaceEmbedding_of_hasLaw_haarFrame_of_lt_sqrt_sub_sqrt
- NLAlib.HasOrthonormalCols.hasSubspaceInjection_of_hasLaw_haarFrame
- NLAlib.HasOrthonormalCols.hasSubspaceInjection_of_hasLaw_haarFrame_of_card_add_eq
- NLAlib.exists_forall_isObliviousSubspaceEmbedding_of_hasLaw_haarFrame
- NLAlib.exists_forall_isObliviousSubspaceInjection_of_hasLaw_haarFrame
- NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame
- NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame_of_jlDim_le
- NLAlib.isObliviousSubspaceEmbedding_of_hasLaw_haarFrame_of_lt_sqrt_sub_sqrt
- NLAlib.isObliviousSubspaceEmbedding_one_sub_one_add_of_hasLaw_haarFrame
- NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame
- NLAlib.isObliviousSubspaceInjection_of_hasLaw_haarFrame_of_jlDim_le