Documentation

CslibFrontier.DataStructure.Dictionary.CellProbe.OuterGame

Multi-Round Outer Communication Game and Outer Lemma #

Protocol 1, Claims 4.1–4.6, and Lemma 3.2 (OuterLemma) from Section 4 (with mode-parametric support for Section 8's update-only game) of Li, Liang, Yu, and Zhou ([LLYZ23b]; locators below follow arXiv:2306.02253v3, where printed page p is PDF page p + 1).

Pinned source: [LLYZ23b] (arXiv:2306.02253v3), Section 3, Lemma 3.2, p. 12 (PDF p. 13); Section 4.1, Eq. (1), pp. 13–14 (PDF pp. 14–15); Section 4.2, Protocol 1 and Eqs. (2)–(3), pp. 14–16 (PDF pp. 15–17); Section 4.3, Eq. (4), Claim 4.1, Eq. (5), Claim 4.2, Eq. (6), Definition 4.3, Lemma 4.4, Claim 4.6, Eq. (7), and Eqs. (8)–(9), pp. 16–20 (PDF pp. 17–21); Section 8, p. 27 (PDF p. 28).

Original formalization adaptations:

  1. Deterministic c = 1 probe cap (Sections 4.2, 5.1, and 5.2): MetaTree.IsGoodSeg, IsQualified, and IsCappedConsistent incorporate |S_A^{[i]}|, |S_B| ≤ m_ℓ * t directly, superseding Claim 4.5's per-segment expectation filtering while preventing conditional probe inflation on {W = 1} in Section 5.2 Eq. (11) and Section 8.1 Step 5 (≤ (1 / 16) * λ_{ℓ+1} probe-cap loss via Markov's inequality on nodeProbes in MetaTree.sum_prob_not_isGoodSeg_le).
  2. Independent R_outer and R_inner and child-segment m_ℓ alignment: outer_node_lower_bound and outer_lemma_insertQueryDelete separate Step 1's end-memory entropy budget R_outer from the inner-game redundancy R_inner, and state the inner-game hypotheses at child-segment length m_ℓ = T.blockSize ℓ (matching Section 5 Lemma 5.1, p. 21 / PDF p. 22, where Lemma 3.2/4.4 on pp. 12, 18 / PDF pp. 13, 19 wrote m_{ℓ+1}).
  3. Mode-parametric withQueries : Bool (stride = 3 vs. stride = 2): sharing kv : Fin U → Fin V in Bob's prior observation (as in Section 8, p. 27 / PDF p. 28) leaves Eq. (1)'s partition entropy log₂ m_{ℓ+1}! - λ_{ℓ+1} log₂ m_ℓ! unchanged while reconstructing S_end uniformly across both insertQueryDeleteDist and insertDeleteDist.

Main definitions #

Main results #

References #

Information-theoretic space benchmark log₂ C(U, n) + n * log₂ V in real bits ([LLYZ23b], Section 3, p. 11 / PDF p. 12 and Section 7, p. 26 / PDF p. 27).

Outer Game observations, Eq. (2) end-memory entropy, and Eq. (1) partition entropy #

Protocol 1 candidate sets, message encoding, and Claims 4.1–4.2 #

def Cslib.DataStructure.Dictionary.CellProbe.IsModeSeedConsistent (withQueries : Bool) {U V n cells w : ℕ} (D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w) (t₀ m : ℕ) (ht₀ : t₀ + m ≤ n) (γ t : ℝ) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :

Mode-parametric inner-game seed consistency (withQueries = true recovers IsSeedConsistent; withQueries = false gives the update-only consistency predicate of Section 8, p. 28 / PDF p. 29, adapted with the c = 1 deterministic probe cap).

@[simp]
theorem Cslib.DataStructure.Dictionary.CellProbe.isModeSeedConsistent_true_iff {U V n cells w : ℕ} (D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w) (t₀ m : ℕ) (ht₀ : t₀ + m ≤ n) (γ t : ℝ) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :
IsModeSeedConsistent true D_det t₀ m ht₀ γ t s B ↔ IsSeedConsistent D_det t₀ m ht₀ γ t s B
theorem Cslib.DataStructure.Dictionary.CellProbe.nodeStart_add_rest_le (T : MetaTree) {n ℓ b : ℕ} (ht_stop : T.nodeStop (ℓ + 1) b ≤ n) (k : ℕ) (hk : k ≤ T.fanout (ℓ + 1)) :
T.nodeStart (ℓ + 1) b + k * T.blockSize ℓ + (T.fanout (ℓ + 1) - k) * T.blockSize ℓ ≤ n

Remaining child-segments end bound nodeStart (ℓ + 1) b + k * blockSize ℓ + (fanout (ℓ + 1) - k) * blockSize ℓ ≤ n when nodeStop (ℓ + 1) b ≤ n and k ≤ fanout (ℓ + 1).

Protocol 1 decodability, Eq. (3), and Lemma 3.2 (OuterLemma) #

theorem Cslib.DataStructure.Dictionary.CellProbe.outer_node_lower_bound (withQueries : Bool) {U V n cells w : ℕ} {R_outer γ t : ℝ} (hU : 2 * n ≤ U) (hU2 : 2 ≤ U) (hV : 1 ≤ V) (hspace_outer : ↑(cells * w) ≤ benchmarkBits U V n + R_outer) (T : MetaTree) {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) (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))) (hinner : ∀ (i : Fin (T.fanout (ℓ + 1))), ↑i < T.fanout (ℓ + 1) / 2 → let t₀ := T.nodeStart (ℓ + 1) b + ↑i * T.blockSize ℓ; let r_rest := (T.fanout (ℓ + 1) - ↑i) * T.blockSize ℓ; have hrest := ⋯; have ht₀ := ⋯; ∑ s : HardKeyValSeed U V n, ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal * ↑(Finset.filter (IsModeSeedConsistent withQueries D_det t₀ (T.blockSize ℓ) ht₀ γ t s) ({B ∈ Finset.powersetCard (T.blockSize ℓ) (s.insertedSet t₀ r_rest hrest) | (s.insertedSet t₀ (T.blockSize ℓ) ht₀ ∩ B).card < T.blockSize ℓ / 2})).card ≤ ↑(r_rest.choose (T.blockSize ℓ)) * ↑U ^ (-γ * ↑(T.blockSize ℓ))) :
γ / 100 * ↑(T.blockSize (ℓ + 1)) ≤ ∑' (ops : List (Dynamic.Op U)), ((modeDist withQueries U V n hU hV) ops).toReal * ↑(T.nodeCost D_det n (modeStride withQueries) ops ℓ b) ∨ 1 / 16 * ↑(T.blockSize (ℓ + 1)) * t ≤ ∑' (ops : List (Dynamic.Op U)), ((modeDist withQueries U V n hU hV) ops).toReal * ↑(T.nodeProbes D_det n (modeStride withQueries) ops (ℓ + 1) b)

Mode-parametric Outer Lemma ([LLYZ23b], Section 3, Lemma 3.2, p. 12 / PDF p. 13 and Section 4, pp. 13–20 / PDF pp. 14–21): at any internal node (ℓ + 1, b) (1 ≤ ℓ, T.nodeStop (ℓ + 1) b ≤ n) with 2 ^ 64 ≤ λ_{ℓ+1} ≤ (γ / 2) * log₂ U and 100 * R_outer ≤ m_{ℓ+1} * log₂ λ_{ℓ+1}, if every first-half child segment satisfies the inner-game expected far-consistent candidate bound, then either E[nodeCost] ≥ (γ / 100) * m_{ℓ+1} or E[nodeProbes] ≥ (1 / 16) * m_{ℓ+1} * t.

theorem Cslib.DataStructure.Dictionary.CellProbe.outer_lemma_insertQueryDelete {U V n cells w : ℕ} {R_outer R_inner γ t : ℝ} (hU : 4 * 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) (hm_lo : ↑n ^ (1 - γ / 2) ≤ ↑(T.blockSize ℓ)) (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 : R_inner + 11 * ↑(T.blockSize ℓ) + 6 * ↑(T.blockSize ℓ) * t + γ * ↑(T.blockSize ℓ) * ↑w + 3 / 2 * γ * ↑(T.blockSize ℓ) * Real.logb 2 ↑U ≤ ↑(T.blockSize ℓ) / 2 * 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)

Lemma 3.2 (OuterLemma) on insertQueryDeleteDist ([LLYZ23b], Section 3, Lemma 3.2, p. 12 / PDF p. 13 and Section 4, pp. 13–20 / PDF pp. 14–21, with independent R_outer, R_inner, and child-segment m_ℓ alignment): either E[nodeCost] ≥ (γ / 100) * m_{ℓ+1} or E[nodeProbes] ≥ (1 / 16) * m_{ℓ+1} * t.