Documentation

CslibFrontier.DataStructure.NearNeighbor.PStable

Probabilistic p-stable LSH query-failure step in \ell_2 and \ell_1 #

This module formalizes the ρ < 1 exponent bounds and probabilistic candidate-collision / query-failure step on unbucketed point-set filtering for the p = 2 (Gaussian) and p = 1 (Cauchy) p-stable LSH families (after [DIIM04] and [HPIM12], Section 3; not a bucketed sublinear approximate near-neighbour data structure, tracked in #3361).

Because both p2StableProb w d and p1StableProb w d are strictly positive and strictly decreasing in d ≥ 0 for any bucket width w > 0, choosing p₁ = p(d) and p₂ = p(c d) with 0 < d and 1 < c yields 0 < p₂ < p₁ ≤ 1, exponent ρ < 1, and unbucketed query failure at most e⁻¹ + 1 / 3 using numHashes, numTables, and the 3 L candidate stopping rule. Word-RAM hash buckets, seed storage, and sublinear O(n ^ ρ) query running time remain open in #3361.

Main results #

References #

p = 2: Euclidean query-failure step #

theorem Cslib.DataStructure.NearNeighbor.rho_p2Stable_lt_one {w d c : ℝ} (hw : 0 < w) (hd : 0 < d) (hc : 1 < c) :

Parameter-exponent step for Gaussian p = 2 hashing (after [DIIM04]; #3361): rho (p2StableProb w d) (p2StableProb w (c * d)) < 1 whenever w > 0, d > 0, and c > 1.

Probabilistic query-failure step for Gaussian p = 2 p-stable LSH on unbucketed point-set filtering in Euclidean space (after [DIIM04] and [HPIM12], Section 3; not a bucketed sublinear near-neighbour data structure, #3361). Using p2StableHash w on E with 0 < w, 0 < d, 1 < c, p₁ = p2StableProb w d, p₂ = p2StableProb w (c d), k = numHashes n p₂, L = numTables n p₁ p₂, and T = 3 L, if some x₀ ∈ P is within distance d of q, query returns none with probability at most e⁻¹ + 1 / 3; any returned point is within distance c d (query_eq_some).

p = 1: \ell_1 query-failure step #

theorem Cslib.DataStructure.NearNeighbor.rho_p1Stable_lt_one {w d c : ℝ} (hw : 0 < w) (hd : 0 < d) (hc : 1 < c) :

Parameter-exponent step for Cauchy p = 1 hashing (after [DIIM04]; #3361): rho (p1StableProb w d) (p1StableProb w (c * d)) < 1 whenever w > 0, d > 0, and c > 1.

theorem Cslib.DataStructure.NearNeighbor.measureReal_query_p1Stable_eq_none_le {ι : Type u_1} [Fintype ι] {w d c : ℝ} (hw : 0 < w) (hd : 0 < d) (hc : 1 < c) {P : List (ι → ℝ)} {q x₀ : ι → ℝ} (hx₀ : x₀ ∈ P) (hnear : ∑ i : ι, |x₀ i - q i| ≤ d) :

Probabilistic query-failure step for Cauchy p = 1 p-stable LSH on unbucketed point-set filtering in \ell_1 (after [DIIM04] and [HPIM12], Section 3; not a bucketed sublinear near-neighbour data structure, #3361). Using p1StableHash w on ι → ℝ with 0 < w, 0 < d, 1 < c, p₁ = p1StableProb w d, p₂ = p1StableProb w (c d), k = numHashes n p₂, L = numTables n p₁ p₂, and T = 3 L, if some x₀ ∈ P has \ell_1 distance at most d to q, query returns none with probability at most e⁻¹ + 1 / 3; any returned point has \ell_1 distance below c d (query_eq_some).