Documentation

CslibFrontier.DataStructure.Dictionary.CellProbe.LowerBound.Query

Insert-Query-Delete Lower Bounds (Theorems 1.1 and 1.2) #

Public deterministic and zero-error randomized cell-probe lower bounds on insertQueryDeleteDist across all alphabet/value regimes (V ≤ U ^ 3 from OuterGame and V > U ^ 3 from Section 8.1 ModifiedInner): Theorem 1.1 / 3.1 (Ω(k) and Ω(log* n)), Theorem 1.2 / 6.1 (Ω(log(n / max R 1))), and their combined trade-off.

Main results #

theorem Cslib.DataStructure.Dictionary.CellProbe.det_expectedSeqProbes_ge_of_iterLog_redundancy {α c_R c_w : ℝ} (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n k cells w : ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), 1 ≤ k → k ≤ n.logStar → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + c_R * ↑n * ↑(max (k.iterLog n) 1) → ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w}, (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → c * ↑n * ↑k ≤ ∑' (ops : List (Dynamic.Op U)), ((insertQueryDeleteDist U V n ⋯ hV) ops).toReal * ↑(D_det.seqProbes ops)

Deterministic Theorem 1.1 / Theorem 3.1 ([LLYZ23b], Section 1, p. 1 / PDF p. 2 and Section 3, pp. 10–13 / PDF pp. 11–14; Section 7, pp. 26–27 / PDF pp. 27–28): for any α > 0, c_R ≥ 0, and c_w ≥ 0, there exists c > 0 such that any step-indexed IndexedScheme exact on admissible histories up to 4 * n + 1 with space ≤ benchmarkBits U V n + c_R * n * max 1 (log^{(k)} n) incurs at least c * n * k expected cell probes on insertQueryDeleteDist.

theorem Cslib.DataStructure.Dictionary.CellProbe.expectedSeqProbes_ge_of_iterLog_redundancy {α c_R c_w : ℝ} (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n k cells w : ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), 1 ≤ k → k ≤ n.logStar → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + c_R * ↑n * ↑(max (k.iterLog n) 1) → ∀ (P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)).Contract ops (PMF.map Prod.fst (P.runSeq ops))) → ENNReal.ofReal (c * ↑n * ↑k) ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n ⋯ hV) ops * P.expectedSeqProbes ops

Zero-error randomized Theorem 1.1 / Theorem 3.1 ([LLYZ23b], Section 1, p. 1 / PDF p. 2 and Section 3, pp. 10–13 / PDF pp. 11–14): any zero-error (Las Vegas) CellProbe.Randomized.Scheme on oblivious insertQueryDeleteDist storing n keys in [U] (U ≥ n ^ (1 + α)) with ≤ benchmarkBits U V n + c_R * n * max 1 (log^{(k)} n) bits of memory incurs ≥ c * n * k expected cell probes (bounded-error Monte Carlo schemes and adaptive adversaries are not covered).

theorem Cslib.DataStructure.Dictionary.CellProbe.det_expectedSeqProbes_ge_iterLogStar {α c_R c_w : ℝ} (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n cells w : ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + c_R * ↑n → ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w}, (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → c * ↑n * ↑n.logStar ≤ ∑' (ops : List (Dynamic.Op U)), ((insertQueryDeleteDist U V n ⋯ hV) ops).toReal * ↑(D_det.seqProbes ops)

Deterministic Ω(n * log* n) specialization of Theorem 1.1 at k = Nat.logStar n (O(n) redundancy).

theorem Cslib.DataStructure.Dictionary.CellProbe.expectedSeqProbes_ge_iterLogStar {α c_R c_w : ℝ} (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n cells w : ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + c_R * ↑n → ∀ (P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)).Contract ops (PMF.map Prod.fst (P.runSeq ops))) → ENNReal.ofReal (c * ↑n * ↑n.logStar) ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n ⋯ hV) ops * P.expectedSeqProbes ops

Zero-error randomized Ω(n * log* n) specialization of Theorem 1.1 at k = Nat.logStar n (O(n) bits of redundancy, Las Vegas oblivious model).

theorem Cslib.DataStructure.Dictionary.CellProbe.det_expectedSeqProbes_ge_of_sublinear_redundancy {α c_w : ℝ} (hα : 0 < α) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n cells w : ℕ} {R : ℝ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ ↑n → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + R → ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w}, (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → c * ↑n * Real.logb 2 (↑n / max R 1) ≤ ∑' (ops : List (Dynamic.Op U)), ((insertQueryDeleteDist U V n ⋯ hV) ops).toReal * ↑(D_det.seqProbes ops)

Deterministic Theorem 1.2 / Theorem 6.1 ([LLYZ23b], Section 1, p. 2 / PDF p. 3 and Section 6, pp. 25–26 / PDF pp. 26–27): for any α > 0 and c_w ≥ 0, there exists c > 0 such that any step-indexed IndexedScheme exact on admissible histories up to 4 * n + 1 with R ≤ n bits of redundancy (cells * w ≤ benchmarkBits U V n + R) incurs at least c * n * log₂(n / max R 1) expected cell probes on insertQueryDeleteDist (at the R = n boundary log₂(n / max R 1) = 0; see det_expectedSeqProbes_ge_iterLogStar_add_log_div for the combined bound across R ≤ c_R * n).

theorem Cslib.DataStructure.Dictionary.CellProbe.expectedSeqProbes_ge_of_sublinear_redundancy {α c_w : ℝ} (hα : 0 < α) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n cells w : ℕ} {R : ℝ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ ↑n → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + R → ∀ (P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)).Contract ops (PMF.map Prod.fst (P.runSeq ops))) → ENNReal.ofReal (c * ↑n * Real.logb 2 (↑n / max R 1)) ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n ⋯ hV) ops * P.expectedSeqProbes ops

Zero-error randomized Theorem 1.2 / Theorem 6.1 ([LLYZ23b], Section 1, p. 2 / PDF p. 3 and Section 6, pp. 25–26 / PDF pp. 26–27): any zero-error (Las Vegas) CellProbe.Randomized.Scheme on oblivious insertQueryDeleteDist storing n keys in [U] (U ≥ n ^ (1 + α)) with R ≤ n bits of redundancy incurs at least c * n * log₂(n / max R 1) expected cell probes (vanishing at R = n).

theorem Cslib.DataStructure.Dictionary.CellProbe.det_expectedSeqProbes_ge_iterLogStar_add_log_div {α c_R c_w : ℝ} (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n cells w : ℕ} {R : ℝ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ c_R * ↑n → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + R → ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w}, (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → c * ↑n * (↑n.logStar + max 0 (Real.logb 2 (↑n / max R 1))) ≤ ∑' (ops : List (Dynamic.Op U)), ((insertQueryDeleteDist U V n ⋯ hV) ops).toReal * ↑(D_det.seqProbes ops)

Combined deterministic Theorems 1.1 & 1.2 (Ω(n * (log* n + log₂(n / max R 1)))) across all R ≤ c_R * n ([LLYZ23b], Section 1, pp. 1–2 / PDF pp. 2–3).

theorem Cslib.DataStructure.Dictionary.CellProbe.expectedSeqProbes_ge_iterLogStar_add_log_div {α c_R c_w : ℝ} (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {U V n cells w : ℕ} {R : ℝ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ c_R * ↑n → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑(cells * w) ≤ benchmarkBits U V n + R → ∀ (P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)).Contract ops (PMF.map Prod.fst (P.runSeq ops))) → ENNReal.ofReal (c * ↑n * (↑n.logStar + max 0 (Real.logb 2 (↑n / max R 1)))) ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n ⋯ hV) ops * P.expectedSeqProbes ops

Combined zero-error randomized Theorems 1.1 & 1.2 (Ω(n * (log* n + log₂(n / max R 1)))) across all R ≤ c_R * n in the Las Vegas oblivious model ([LLYZ23b], Section 1, pp. 1–2 / PDF pp. 2–3).