Documentation

CslibFrontier.DataStructure.Dictionary.CellProbe.InnerGame

Inner Communication Game and Consistency Probability Bound #

Section 5's single-segment inner communication game and entropy compression argument from Li, Liang, Yu, and Zhou ([LLYZ23b]; locators follow arXiv:2306.02253v3, printed page p = PDF page p + 1), proving Lemma 5.1, Lemma 4.4, and Claim 4.2's far-candidate expectation bound.

Pinned source: [LLYZ23b] (arXiv:2306.02253v3), Section 4.2, pp. 14–16 (PDF pp. 15–17); Section 4.3, Claim 4.2, pp. 17–18 (PDF pp. 18–19), Definition 4.3, p. 17 (PDF p. 18), and Lemma 4.4, p. 18 (PDF p. 19); Section 5, Lemma 5.1, p. 21 (PDF p. 22); Section 5.1, Steps 1–6 and Eq. (10), pp. 22–23 (PDF pp. 23–24); Section 5.2, Eqs. (11)–(14) and binomial log estimates, pp. 24–25 (PDF pp. 25–26).

Original formalization adaptations: (1) IsCappedConsistent and IsSeedConsistent incorporate the deterministic c = 1 probe cap |S_A|, |S_B| ≤ m * t on {W = 1}, avoiding conditional probe inflation in Eq. (11); (2) Step 3 uses exists_prefixFree_separator_code (β = 2, expected length ≤ 4 * m * t + 7), yielding 6 * m * t in hbudget; (3) key-value assignments are tracked on Fin V (1 ≤ V) so the + (n + m) * log₂ V value entropy cancels in Eq. (12).

Main definitions #

Main results #

References #

def Cslib.DataStructure.Dictionary.CellProbe.IsSeedConsistent {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)) :

Single-segment probe-capped consistency on HardKeyValSeed ([LLYZ23b], Definition 4.3 and Section 5.1, adapted with the deterministic c = 1 probe cap |S_A|, |S_B| ≤ m * t).

noncomputable def Cslib.DataStructure.Dictionary.CellProbe.innerPoolDist {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (F : HardKeyValSeed U V n → Finset (Finset (Fin U))) (hne : ∀ (s : HardKeyValSeed U V n), (F s).Nonempty) :

Joint (seed, B) distribution drawing s uniformly from HardKeyValSeed U V n and B uniformly from a nonempty candidate pool F s.

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_innerPoolDist_eq {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (F : HardKeyValSeed U V n → Finset (Finset (Fin U))) {C : ℕ} (hC : ∀ (s : HardKeyValSeed U V n), (F s).card = C) (hne : ∀ (s : HardKeyValSeed U V n), (F s).Nonempty) (ev : HardKeyValSeed U V n → Finset (Fin U) → Prop) :
((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (ev sb.1 sb.2)) (innerPoolDist hU hV F hne)) true).toReal = (↑C)⁻¹ * ∑ s : HardKeyValSeed U V n, ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal * ↑(Finset.filter (ev s) (F s)).card

Event probability under innerPoolDist when every pool F s has constant cardinality C.

theorem Cslib.DataStructure.Dictionary.CellProbe.toReal_innerPoolDist_apply {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (F : HardKeyValSeed U V n → Finset (Finset (Fin U))) (hne : ∀ (s : HardKeyValSeed U V n), (F s).Nonempty) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :
((innerPoolDist hU hV F hne) (s, B)).toReal = if B ∈ F s then ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal / ↑(F s).card else 0

Pointwise probability mass of innerPoolDist at (s, B).

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_and_expect_innerPoolDist_lt_half_le {U V n t₀ m P_size : ℕ} {Bnd : ℝ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (ht₀ : t₀ + m ≤ n) (hP_ge : 2 * m ≤ P_size) (hBnd_nn : 0 ≤ Bnd) (pool : HardKeyValSeed U V n → Finset (Fin U)) (hcard_pool : ∀ (s : HardKeyValSeed U V n), (pool s).card = P_size) (hA_pool : ∀ (s : HardKeyValSeed U V n), s.insertedSet t₀ m ht₀ ⊆ pool s) (ev : HardKeyValSeed U V n → Finset (Fin U) → Prop) (hprob_eq : ∀ g < m / 2, ∀ (hne_g : ∀ (s : HardKeyValSeed U V n), {B ∈ Finset.powersetCard m (pool s) | (s.insertedSet t₀ m ht₀ ∩ B).card = g}.Nonempty), ((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (ev sb.1 sb.2)) (innerPoolDist hU hV (fun (s : HardKeyValSeed U V n) => {B ∈ Finset.powersetCard m (pool s) | (s.insertedSet t₀ m ht₀ ∩ B).card = g}) hne_g)) true).toReal ≤ Bnd) :
have F_lt := fun (s : HardKeyValSeed U V n) => {B ∈ Finset.powersetCard m (pool s) | (s.insertedSet t₀ m ht₀ ∩ B).card < m / 2}; ∀ (hne : ∀ (s : HardKeyValSeed U V n), (F_lt s).Nonempty), ((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (ev sb.1 sb.2)) (innerPoolDist hU hV F_lt hne)) true).toReal ≤ Bnd ∧ ∑ s : HardKeyValSeed U V n, ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal * ↑(Finset.filter (ev s) (F_lt s)).card ≤ ↑(P_size.choose m) * Bnd

Generic < m / 2 intersection aggregation over innerPoolDist: if an event ev has probability at most Bnd on every fixed-intersection slice |A ∩ B| = g (g < m / 2) of (pool s).powersetCard m ((pool s).card = P_size ≥ 2 * m, A ⊆ pool s), then ev has probability at most Bnd on the < m / 2 pool and expected count at most C(P_size, m) * Bnd.

noncomputable def Cslib.DataStructure.Dictionary.CellProbe.section5Dist {U V n : ℕ} (t₀ m g : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (_hm_n : 2 * m ≤ n) (hg : g < m / 2) (ht₀ : t₀ + m ≤ n) :

Conditional joint distribution of (seed, B) in the Section 5 Inner Game ([LLYZ23b], Section 5, p. 21 / PDF p. 22): seed is uniform on HardKeyValSeed U V n and B is uniform among size-m subsets of Finset.univ \ s.activeKeys t₀ with |A ∩ B| = g.

noncomputable def Cslib.DataStructure.Dictionary.CellProbe.section5LtHalfDist {U V n : ℕ} (t₀ m : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm : 2 ≤ m) (_hm_n : 2 * m ≤ n) (ht₀ : t₀ + m ≤ n) :

Conditional joint distribution of (seed, B) in the Section 5 Inner Game conditioned on |A ∩ B| < m / 2 ([LLYZ23b], Section 4.3, Lemma 4.4, p. 18 / PDF p. 19 and Section 5, p. 20 / PDF p. 21).

noncomputable def Cslib.DataStructure.Dictionary.CellProbe.segmentRestDist {U V n : ℕ} (t₀ m r_rest g : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hg : g < m / 2) (_hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) :

Conditional joint distribution of (seed, B) when B is drawn uniformly from size-m subsets of the remaining multi-round pool s.insertedSet t₀ r_rest with |A ∩ B| = g ([LLYZ23b], Section 4.2, p. 15 / PDF p. 16 and Section 4.3, Lemma 4.4, p. 18 / PDF p. 19).

noncomputable def Cslib.DataStructure.Dictionary.CellProbe.segmentRestLtHalfDist {U V n : ℕ} (t₀ m r_rest : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm : 2 ≤ m) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) :

Conditional joint distribution of (seed, B) when B is drawn uniformly from size-m subsets of s.insertedSet t₀ r_rest with |A ∩ B| < m / 2 ([LLYZ23b], Section 4.3, Lemma 4.4, p. 18 / PDF p. 19).

theorem Cslib.DataStructure.Dictionary.CellProbe.toReal_section5Dist_apply {U V n : ℕ} (t₀ m g : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm_n : 2 * m ≤ n) (hg : g < m / 2) (ht₀ : t₀ + m ≤ n) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :
have pool := {B' ∈ Finset.powersetCard m (Finset.univ \ s.activeKeys t₀ ⋯) | (s.insertedSet t₀ m ht₀ ∩ B').card = g}; ((section5Dist t₀ m g hU hV hm_n hg ht₀) (s, B)).toReal = if B ∈ pool then ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal / ↑pool.card else 0

Pointwise probability density of section5Dist on seed-candidate pair (s, B).

theorem Cslib.DataStructure.Dictionary.CellProbe.toReal_section5LtHalfDist_apply {U V n : ℕ} (t₀ m : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm : 2 ≤ m) (hm_n : 2 * m ≤ n) (ht₀ : t₀ + m ≤ n) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :
have pool := {B' ∈ Finset.powersetCard m (Finset.univ \ s.activeKeys t₀ ⋯) | (s.insertedSet t₀ m ht₀ ∩ B').card < m / 2}; ((section5LtHalfDist t₀ m hU hV hm hm_n ht₀) (s, B)).toReal = if B ∈ pool then ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal / ↑pool.card else 0

Pointwise probability density of section5LtHalfDist on seed-candidate pair (s, B).

theorem Cslib.DataStructure.Dictionary.CellProbe.toReal_segmentRestDist_apply {U V n : ℕ} (t₀ m r_rest g : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hg : g < m / 2) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :
have pool := {B' ∈ Finset.powersetCard m (s.insertedSet t₀ r_rest hrest) | (s.insertedSet t₀ m ⋯ ∩ B').card = g}; ((segmentRestDist t₀ m r_rest g hU hV hg hrest_ge hrest) (s, B)).toReal = if B ∈ pool then ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal / ↑pool.card else 0

Pointwise probability density of segmentRestDist on seed-candidate pair (s, B).

theorem Cslib.DataStructure.Dictionary.CellProbe.toReal_segmentRestLtHalfDist_apply {U V n : ℕ} (t₀ m r_rest : ℕ) (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm : 2 ≤ m) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) (s : HardKeyValSeed U V n) (B : Finset (Fin U)) :
have pool := {B' ∈ Finset.powersetCard m (s.insertedSet t₀ r_rest hrest) | (s.insertedSet t₀ m ⋯ ∩ B').card < m / 2}; ((segmentRestLtHalfDist t₀ m r_rest hU hV hm hrest_ge hrest) (s, B)).toReal = if B ∈ pool then ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal / ↑pool.card else 0

Pointwise probability density of segmentRestLtHalfDist on seed-candidate pair (s, B).

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_isCappedConsistent_section5_le {U V n t₀ m cells w : ℕ} {γ R t : ℝ} (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm_n : 2 * m ≤ n) (hγ : 0 < γ) (hm_lo : ↑n ^ (1 - γ / 2) ≤ ↑m) (hspace : ↑(cells * w) ≤ Real.logb 2 ↑(U.choose n) + ↑n * Real.logb 2 ↑V + R) (hbudget : R + 11 * ↑m + 6 * ↑m * t + γ * ↑m * ↑w + 3 / 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 (↑U / ↑n)) {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) {g : ℕ} (hg : g < m / 2) (ht₀ : t₀ + m ≤ n) :
((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (IsSeedConsistent D_det t₀ m ht₀ γ t sb.1 sb.2)) (section5Dist t₀ m g hU hV hm_n hg ht₀)) true).toReal ≤ ↑U ^ (-γ * ↑m)

Inner Lemma ([LLYZ23b], Section 5, Lemma 5.1, p. 21 / PDF p. 22, adapted with the c = 1 deterministic probe cap and Elias-gamma β = 2 separator): conditioned on |A ∩ B| = g (g < m / 2) for uniform size-m B ⊆ Finset.univ \ K, Pr[IsSeedConsistent] ≤ U ^ (-γ * m).

In the paper setting where w = Θ(log U), hypothesis hbudget corresponds to Lemma 5.1's premise (1/2) * γ * m * log₂ U ≥ R + 5 * m + 2 * (β + 1) * m * t (p. 21 / PDF p. 22) and Eq. (14) (p. 24 / PDF p. 25) with 6 * m * t + 11 * m separator and prefix-free overhead, which holds for sufficiently small constant γ > 0.

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_isCappedConsistent_section5_lt_half_le {U V n t₀ m cells w : ℕ} {γ R t : ℝ} (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm_n : 2 * m ≤ n) (hγ : 0 < γ) (hm_lo : ↑n ^ (1 - γ / 2) ≤ ↑m) (hspace : ↑(cells * w) ≤ Real.logb 2 ↑(U.choose n) + ↑n * Real.logb 2 ↑V + R) (hbudget : R + 11 * ↑m + 6 * ↑m * t + γ * ↑m * ↑w + 3 / 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 (↑U / ↑n)) {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) (hm : 2 ≤ m) (ht₀ : t₀ + m ≤ n) :
((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (IsSeedConsistent D_det t₀ m ht₀ γ t sb.1 sb.2)) (section5LtHalfDist t₀ m hU hV hm hm_n ht₀)) true).toReal ≤ ↑U ^ (-γ * ↑m)

Inner Lemma for |A ∩ B| < m / 2 ([LLYZ23b], Section 4.3, Lemma 4.4, p. 18 / PDF p. 19 and Section 5.2, p. 25 / PDF p. 26): over B ⊆ Finset.univ \ K conditioned on |A ∩ B| < m / 2, Pr[IsSeedConsistent] ≤ U ^ (-γ * m).

Under w = Θ(log U), hbudget reflects Lemma 5.1's premise (1/2) * γ * m * log₂ U ≥ R + 5 * m + 2 * (β + 1) * m * t (p. 21 / PDF p. 22) and Eq. (14) (p. 24 / PDF p. 25).

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_isCappedConsistent_segmentRest_le {U V n t₀ m cells w : ℕ} {γ R t : ℝ} (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm_n : 2 * m ≤ n) (hγ : 0 < γ) (hm_lo : ↑n ^ (1 - γ / 2) ≤ ↑m) (hspace : ↑(cells * w) ≤ Real.logb 2 ↑(U.choose n) + ↑n * Real.logb 2 ↑V + R) (hbudget : R + 11 * ↑m + 6 * ↑m * t + γ * ↑m * ↑w + 3 / 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 (↑U / ↑n)) {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) {r_rest g : ℕ} (hg : g < m / 2) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) :
((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (IsSeedConsistent D_det t₀ m ⋯ γ t sb.1 sb.2)) (segmentRestDist t₀ m r_rest g hU hV hg hrest_ge hrest)) true).toReal ≤ ↑U ^ (-γ * ↑m)

Inner Lemma on the multi-round remaining pool ([LLYZ23b], Section 4.2, p. 15 / PDF p. 16 and Section 5, Lemma 5.1, p. 21 / PDF p. 22): conditioned on |A ∩ B| = g (g < m / 2) for uniform B ⊆ s.insertedSet t₀ r_rest (2 * m ≤ r_rest), Pr[IsSeedConsistent] ≤ U ^ (-γ * m).

theorem Cslib.DataStructure.Dictionary.CellProbe.prob_isCappedConsistent_segmentRest_lt_half_le {U V n t₀ m cells w : ℕ} {γ R t : ℝ} (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm_n : 2 * m ≤ n) (hγ : 0 < γ) (hm_lo : ↑n ^ (1 - γ / 2) ≤ ↑m) (hspace : ↑(cells * w) ≤ Real.logb 2 ↑(U.choose n) + ↑n * Real.logb 2 ↑V + R) (hbudget : R + 11 * ↑m + 6 * ↑m * t + γ * ↑m * ↑w + 3 / 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 (↑U / ↑n)) {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) {r_rest : ℕ} (hm : 2 ≤ m) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) :
((PMF.map (fun (sb : HardKeyValSeed U V n × Finset (Fin U)) => decide (IsSeedConsistent D_det t₀ m ⋯ γ t sb.1 sb.2)) (segmentRestLtHalfDist t₀ m r_rest hU hV hm hrest_ge hrest)) true).toReal ≤ ↑U ^ (-γ * ↑m)

Inner Lemma on the multi-round remaining pool for |A ∩ B| < m / 2 ([LLYZ23b], Section 4.3, Lemma 4.4, p. 18 / PDF p. 19): conditioned on |A ∩ B| < m / 2 for uniform B ⊆ s.insertedSet t₀ r_rest (2 * m ≤ r_rest), Pr[IsSeedConsistent] ≤ U ^ (-γ * m).

theorem Cslib.DataStructure.Dictionary.CellProbe.expected_card_cappedConsistent_segmentRest_lt_half_le {U V n t₀ m cells w : ℕ} {γ R t : ℝ} (hU : 4 * n ≤ U) (hV : 1 ≤ V) (hm_n : 2 * m ≤ n) (hγ : 0 < γ) (hm_lo : ↑n ^ (1 - γ / 2) ≤ ↑m) (hspace : ↑(cells * w) ≤ Real.logb 2 ↑(U.choose n) + ↑n * Real.logb 2 ↑V + R) (hbudget : R + 11 * ↑m + 6 * ↑m * t + γ * ↑m * ↑w + 3 / 2 * γ * ↑m * Real.logb 2 ↑U ≤ ↑m / 2 * Real.logb 2 (↑U / ↑n)) {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) {r_rest : ℕ} (hm : 2 ≤ m) (hrest_ge : 2 * m ≤ r_rest) (hrest : t₀ + r_rest ≤ n) :
∑ s : HardKeyValSeed U V n, ((Probability.PMF.uniformOfFintype (HardKeyValSeed U V n)) s).toReal * ↑(Finset.filter (IsSeedConsistent D_det t₀ m ⋯ γ t s) ({B ∈ Finset.powersetCard m (s.insertedSet t₀ r_rest hrest) | (s.insertedSet t₀ m ⋯ ∩ B).card < m / 2})).card ≤ ↑(r_rest.choose m) * ↑U ^ (-γ * ↑m)

Expected far-consistent candidate count ([LLYZ23b], Section 4.3, Claim 4.2 and Lemma 4.4, pp. 17–18 / PDF pp. 18–19): over uniform s : HardKeyValSeed U V n, the expected number of size-m subsets B ⊆ s.insertedSet t₀ r_rest with |A ∩ B| < m / 2 that satisfy IsSeedConsistent is at most (r_rest.choose m : ℝ) * (U : ℝ) ^ (-γ * m).