Lemma 4.2 — the run of H_Y containing c(x) has E[W_x] = O(|x|) and E[W_x²] = O(|x|²), constant depending only on the load bound
ProvedCatalanHashing.Dynamic.lemma_4_2hashinglinear-probingp2o-gran-per-chapterp2o-plan-paperp2o-v1probability
Fix a load bound . There is a constant , depending only on , with the following property. Let be a finite set of items () in an -cell table with , the hashes independent and uniform, and let . Let , let be the simple Catalan table on (shorter items first, ties to the smaller hash), and let be the length of the run of containing . Then
The second-moment bound is used again for the erasure-coded tables of Sections 5-6 and their deletion variants.
Differences from the source:
- reading: E[W_x] = O(|x|) and E[W_x^2] = O(|x|^2), "a constant C (depending only on the load factor)" (p. 13) → ∀ α < 1, ∃ C, ∀ m ≥ 1, ι, len, load ≤ α, x: E[W_x] ≤ C|x| ∧ E[W_x^2] ≤ C|x|^2; reason: the O(·) constants depend on α only; one constant for both bounds is equivalent (take the maximum)
- encoding: h uniform on the continuous circle [0, m), canonical cell ⌊h(x)⌋ → h uniform on [0, 1] (unitInterval), canonical cell ⌊m h(x)⌋ capped at m - 1; reason: rescaling by m; [0, 1] and [0, 1) differ by a null set, and the cap only acts on the null event h = 1
- reading: "the run in H_Y containing c(x)" → runLength of the occupied cells of H_Y at c(x): the length of the maximal cyclic interval of occupied cells containing c(x) (m if every cell is occupied); reason: literal; the full-circle case cannot occur at load α < 1
- encoding: expectations → lintegrals over the product of uniform measures on the hashes; reason: W_x is a finite-valued measurable function of finitely many hashes
Preamble
import Mathlib import Definitions.Def_CatalanHashing_Dynamic_Static open MeasureTheory open scoped ENNReal
Formal statement
namespace CatalanHashing.Dynamic
/-- Lemma 4.2. For every load bound `α < 1` there is a constant `C` (depending on `α` only) such
that, for every table and every item set of load at most `α` with independent uniform hashes,
the length `W_x` of the run of `H_Y` containing `c(x)` satisfies `E[W_x] ≤ C |x|` and
`E[W_x²] ≤ C |x|²`. -/
theorem lemma_4_2 (α : ℝ) (hα : α < 1) :
∃ C : ℝ, ∀ (m : ℕ) [NeZero m] (ι : Type) [Fintype ι] (len : ι → ℕ), (∀ x, 1 ≤ len x) →
(∑ x, (len x : ℝ)) ≤ α * m → ∀ x : ι,
∫⁻ h : ι → unitInterval, (runLengthHY m len h x : ℝ≥0∞) ∂(Measure.pi fun _ => volume) ≤
ENNReal.ofReal (C * len x) ∧
∫⁻ h : ι → unitInterval, ((runLengthHY m len h x : ℝ≥0∞) ^ 2)
∂(Measure.pi fun _ => volume) ≤ ENNReal.ofReal (C * (len x : ℝ) ^ 2) := by sorry
end CatalanHashing.Dynamic
Source
Conway, Komlós, Kuszmaul, Catalan Hashing: Efficient Linear Probing for Variable-Length Items, arXiv:2611.05235 (copy sha256 e2048176…), p. 12, Lemma 4.2 (PDF 13)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.