Documentation

CslibFrontier.DataStructure.Dictionary.CellProbe.LowerBound.ModifiedInner

Section 8.1 Modified Inner Game and Outer Lemmas #

Public endpoints for the Section 8.1 query-free inner game of [LLYZ23b] (Lemma 8.1, pp. 28–30): queryFreeInnerDist, its consistency probability bound, segment-rest expectation bound, the update-only OuterLemma (outer_lemma_insertDelete), and the large-value OuterLemma (outer_lemma_largeVal_insertQueryDelete).

All internal replay, symmetry, target-fiber, and prefix-free message helpers are imported privately so downstream callers receive only these five public declarations.

Main definitions #

Main results #

Public Section 8.1 theorems (Lemma 8.1 and update-only / large-value OuterLemma) #

noncomputable def Cslib.DataStructure.Dictionary.CellProbe.queryFreeInnerDist {U V n : ℕ} (t₀ m g : ℕ) (hU : 3 * n ≤ U) (hV : 1 ≤ V) (hg : g ≤ m) (ht₀ : t₀ + m ≤ n) :

Query-free inner-game conditional (seed, B) distribution sampling B ⊆ Finset.univ \ K uniformly among m-subsets with (A ∩ B).card = g under 3 * n ≤ U ([LLYZ23b], Section 8.1, Lemma 8.1, p. 28 / PDF p. 29).

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_isModeSeedConsistent_queryFreeInnerDist_le (withQueries : Bool) {U V n t₀ m g cells w : ℕ} {γ R t : ℝ} (hU : 3 * n ≤ U) (hV : 1 ≤ V) (hm : 2 ≤ m) (hm_n : 2 * m ≤ n) (hg : g < m / 2) (ht₀ : t₀ + m ≤ n) (hspace : ↑(cells * w) ≤ benchmarkBits U V n + R) (hbudget : 2 * R + 7 * ↑m + 2 * ↑m * t + γ * ↑m * ↑w + 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 ↑V - ↑m * Real.logb 2 (↑U / ↑n)) {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w} (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (modeHorizon withQueries n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) :
((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (IsModeSeedConsistent withQueries D_det t₀ m ht₀ γ t sb.1 sb.2)) (queryFreeInnerDist t₀ m g hU hV ⋯ ht₀)) true).toReal ≤ ↑U ^ (-γ * ↑m)

Lemma 8.1 ([LLYZ23b], Section 8.1, pp. 28–30 / PDF pp. 29–31, adapted with the deterministic c = 1 probe cap and Step 6 internal Markov sub-conditioning): under 3 * n ≤ U, 2 ≤ m, 2 * m ≤ n, and g < m / 2, the probability of IsModeSeedConsistent on queryFreeInnerDist (|A ∩ B| = g) is at most U ^ (-γ * m).

theorem Cslib.DataStructure.Dictionary.CellProbe.expected_card_modeConsistent_segmentRest_lt_half_le (withQueries : Bool) {U V n t₀ m r_rest cells w : ℕ} {γ R t : ℝ} (hU : 3 * n ≤ U) (hV : 1 ≤ V) (hm : 2 ≤ m) (hm_n : 2 * m ≤ n) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) (hspace : ↑(cells * w) ≤ benchmarkBits U V n + R) (hbudget : 2 * R + 7 * ↑m + 2 * ↑m * t + γ * ↑m * ↑w + 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 ↑V - ↑m * Real.logb 2 (↑U / ↑n)) {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w} (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (modeHorizon withQueries n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) :
have ht₀ := ⋯; ∑ s : HardKeyValSeed U V n, ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal * ↑(Finset.filter (IsModeSeedConsistent withQueries D_det t₀ m ht₀ γ t s) ({B ∈ Finset.powersetCard m (s.insertedSet t₀ r_rest hrest) | (s.insertedSet t₀ m ht₀ ∩ B).card < m / 2})).card ≤ ↑(r_rest.choose m) * ↑U ^ (-γ * ↑m)

Claim 4.2 far-candidate expectation bound for IsModeSeedConsistent over the remaining inserted-key pool s.insertedSet t₀ r_rest hrest ([LLYZ23b], Section 4.3, Claim 4.2, p. 17 / PDF p. 18 and Section 8.1, Lemma 8.1, p. 28 / PDF p. 29).

theorem Cslib.DataStructure.Dictionary.CellProbe.outer_lemma_insertDelete {U V n cells w : ℕ} {R_outer R_inner γ t : ℝ} (hU : 3 * n ≤ U) (hV : 1 ≤ V) (hspace_outer : ↑(cells * w) ≤ benchmarkBits U V n + R_outer) (hspace_inner : ↑(cells * w) ≤ benchmarkBits U V n + R_inner) (T : MetaTree) {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w} (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (3 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) (hγ : 0 < γ) (ht : 0 < t) {ℓ b : ℕ} (hℓ : 1 ≤ ℓ) (ht_stop : T.nodeStop (ℓ + 1) b ≤ n) (hF_lo : 2 ^ 64 ≤ T.fanout (ℓ + 1)) (hF_hi : ↑(T.fanout (ℓ + 1)) ≤ γ / 2 * Real.logb 2 ↑U) (hR_outer : 100 * R_outer ≤ ↑(T.blockSize (ℓ + 1)) * Real.logb 2 ↑(T.fanout (ℓ + 1))) (hbudget_inner : 2 * R_inner + 7 * ↑(T.blockSize ℓ) + 2 * ↑(T.blockSize ℓ) * t + γ * ↑(T.blockSize ℓ) * ↑w + 2 * γ * ↑(T.blockSize ℓ) * Real.logb 2 ↑U ≤ ↑(T.blockSize ℓ) / 2 * Real.logb 2 ↑V - ↑(T.blockSize ℓ) * Real.logb 2 (↑U / ↑n)) :
γ / 100 * ↑(T.blockSize (ℓ + 1)) ≤ ∑' (ops : List (Dynamic.Op U)), ((insertDeleteDist U V n ⋯ hV) ops).toReal * ↑(T.nodeCost D_det n 2 ops ℓ b) ∨ 1 / 16 * ↑(T.blockSize (ℓ + 1)) * t ≤ ∑' (ops : List (Dynamic.Op U)), ((insertDeleteDist U V n ⋯ hV) ops).toReal * ↑(T.nodeProbes D_det n 2 ops (ℓ + 1) b)

Update-only Outer Lemma on insertDeleteDist ([LLYZ23b], Section 8.1, pp. 27–30 / PDF pp. 28–31, combining Protocol 1 outer_node_lower_bound false with Lemma 8.1).

theorem Cslib.DataStructure.Dictionary.CellProbe.outer_lemma_largeVal_insertQueryDelete {U V n cells w : ℕ} {R_outer R_inner γ t : ℝ} (hU : 3 * n ≤ U) (hV : 1 ≤ V) (hspace_outer : ↑(cells * w) ≤ benchmarkBits U V n + R_outer) (hspace_inner : ↑(cells * w) ≤ benchmarkBits U V n + R_inner) (T : MetaTree) {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w} (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) (hγ : 0 < γ) (ht : 0 < t) {ℓ b : ℕ} (hℓ : 1 ≤ ℓ) (ht_stop : T.nodeStop (ℓ + 1) b ≤ n) (hF_lo : 2 ^ 64 ≤ T.fanout (ℓ + 1)) (hF_hi : ↑(T.fanout (ℓ + 1)) ≤ γ / 2 * Real.logb 2 ↑U) (hR_outer : 100 * R_outer ≤ ↑(T.blockSize (ℓ + 1)) * Real.logb 2 ↑(T.fanout (ℓ + 1))) (hbudget_inner : 2 * R_inner + 7 * ↑(T.blockSize ℓ) + 2 * ↑(T.blockSize ℓ) * t + γ * ↑(T.blockSize ℓ) * ↑w + 2 * γ * ↑(T.blockSize ℓ) * Real.logb 2 ↑U ≤ ↑(T.blockSize ℓ) / 2 * Real.logb 2 ↑V - ↑(T.blockSize ℓ) * Real.logb 2 (↑U / ↑n)) :
γ / 100 * ↑(T.blockSize (ℓ + 1)) ≤ ∑' (ops : List (Dynamic.Op U)), ((insertQueryDeleteDist U V n ⋯ hV) ops).toReal * ↑(T.nodeCost D_det n 3 ops ℓ b) ∨ 1 / 16 * ↑(T.blockSize (ℓ + 1)) * t ≤ ∑' (ops : List (Dynamic.Op U)), ((insertQueryDeleteDist U V n ⋯ hV) ops).toReal * ↑(T.nodeProbes D_det n 3 ops (ℓ + 1) b)

Large-value Outer Lemma on insertQueryDeleteDist ([LLYZ23b], Sections 7 and 8.1, combining outer_node_lower_bound true with Lemma 8.1 so word sizes w = Θ(log U + log V) remain covered when V > U ^ 3 without secondary hash-table reductions).