Divisibility-Free Meta-Operation Tree, LCA Probe Attribution, and Mixed-State Replay #
This module formalizes the hierarchical meta-operation tree, lowest-common-ancestor (LCA) probe
accounting, bad-cell intersection inequality, and mixed-memory interval replay used in the dynamic
succinct dictionary cell-probe lower bounds of Li, Liang, Yu, and Zhou ([LLYZ23b];
locators below follow arXiv:2306.02253v3, where printed page p is PDF page p + 1).
- Divisibility-free bottom-up
MetaTreeand forest-top height adaptation: In [LLYZ23b], Section 3 (p. 11 / PDF p. 12), the authors assumem_{ℓ-1} ∣ m_ℓfor simplicity and terminate at a single root withm_h = ncovering allnmeta-operations (and in Section 6, p. 25 / PDF p. 26, Footnote 6, assume all parameters are integers for simplicity). Our local formalization adaptationMetaTreespecifies positive even integer fanoutsfanout ℓ(λ_ℓ) from the leaves up, settingblockSize 0 = 1andblockSize (ℓ + 1) = blockSize ℓ * fanout (ℓ + 1)(m_ℓ), soblockSize ℓ ∣ blockSize (ℓ + 1)holds definitionally and2 ∣ blockSize ℓholds for everyℓ ≥ 1. Because exact bottom-up products need not equalhorizon,MetaTree.ofFanoutchoosesheightas the largest level withblockSize height ≤ horizon / 2(so there is no single root covering allhorizonmeta-operations as inm_h = n, and eachblockSize ℓforℓ ≤ heightalso fits Lemma 5.1'sm < n / 2regime up to equality). At each levelℓ,nodeCount ℓ := horizon / blockSize ℓdisjoint full intervals[b * blockSize ℓ, (b + 1) * blockSize ℓ)are packed into[0, horizon), retaining at least half of[0, horizon)(horizon ≤ 2 * (nodeCount ℓ * blockSize ℓ)) wheneverblockSize ℓ ≤ horizon(any< blockSize ℓtrailing meta-operations are simply omitted from that level's full-block sum). - Iterated-log and geometric schedules (
iterLogMetaTreeandgeomMetaTree):iterLogMetaTree n k c([LLYZ23b], Section 3, p. 11 / PDF p. 12, for Theorems 1.1 and 1.3(1)): usesNat.iterLogwith evenm_1andλ_ℓ = 2 * max (2 ^ 63) (Nat.iterLog (ℓ - 1) n / (2 * Nat.iterLog ℓ n))forℓ ≥ 2, preservingblockSize ℓ * Nat.iterLog ℓ n = Θ(c * n * Nat.iterLog k n)across levels with71 ≤ Nat.iterLog ℓ nwithout exponential rounding loss and achievingheight ≥ k - O_c(1).geomMetaTree n m₁_half([LLYZ23b], Section 6, pp. 25–26 / PDF pp. 26–27, for Theorems 1.2 and 1.3(2)): uses constant even fanoutλ = 2 ^ 64abovem_1 = 2 * max 1 m₁_halfwithn < 4 * max 1 m₁_half * (2 ^ 64) ^ height.
- LCA probe accounting, Eq. (5) bad-cell bound, and memory qualification:
Over any step-indexed
D_det : IndexedScheme Op Result cells wwhere meta-operationtrunsstrideelementary steps starting atinitLen + stride * t:nodeCost(cost_u, [LLYZ23b], Section 3, p. 11 / PDF p. 12) assignss - 1units to internal node(ℓ + 1, b)for each cell probed insdistinct child segments, telescoping across all levels to≤ D_det.seqProbes ops(sum_nodeCost_le_seqProbes).badCells(S_bad, [LLYZ23b], Section 4.2, p. 14 / PDF p. 15) collects cells probed in at least two distinct child segments, satisfying Eq. (5) ([LLYZ23b], Section 4.3, Claim 4.1, p. 17 / PDF p. 18:∑ i, (segProbedCells ... i ∩ badCells ...).card ≤ 2 * nodeCost ...), post-memory qualification soundness (mem_badCells_of_seg_postMem_ne_node_postMem, Section 4.2, pp. 14–15 / PDF pp. 15–16 and Section 4.3, Claim 4.2, p. 17 / PDF p. 18), and its local symmetric pre-memory counterpart (mem_badCells_of_seg_preMem_ne_node_preMem).mixMemwrapsIndexedScheme.runInterval_eq_of_eq_on_probedCellsIntervalfor mixed-state segment replayC_mix([LLYZ23b], Section 5.1, p. 22 / PDF p. 23 and Section 8, p. 29 / PDF p. 30).
Main definitions #
Cslib.DataStructure.Dictionary.CellProbe.MetaTree,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.blockSize,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.nodeCount,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.ofFanout: divisibility-free meta-operation tree.Cslib.DataStructure.Dictionary.CellProbe.iterLogMetaTree,Cslib.DataStructure.Dictionary.CellProbe.geomMetaTree: iterated-logarithm and geometric tree schedules.Cslib.DataStructure.Dictionary.CellProbe.memAt,Cslib.DataStructure.Dictionary.CellProbe.metaProbedCells,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.nodeProbes,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.segProbedCells,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.badCells,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.nodeCost: step-indexed execution snapshots, probed-cell sets, bad cells, and LCA probe cost.Cslib.DataStructure.Dictionary.CellProbe.mixMem: mixed memoryC_mixfor segment replay.
Main results #
Cslib.DataStructure.Dictionary.CellProbe.MetaTree.blockSize_dvd_of_le,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.even_blockSize,Cslib.DataStructure.Dictionary.CellProbe.MetaTree.horizon_le_two_mul_nodeCount_mul_blockSize: divisibility, evenness, and packing bounds.Cslib.DataStructure.Dictionary.CellProbe.blockSize_mul_iterLog_le_iterLogMetaTree,Cslib.DataStructure.Dictionary.CellProbe.blockSize_one_mul_iterLog_le_two_mul_iterLogMetaTree,Cslib.DataStructure.Dictionary.CellProbe.le_height_iterLogMetaTree_add,Cslib.DataStructure.Dictionary.CellProbe.lt_mul_pow_height_geomMetaTree: ratio and height bounds foriterLogMetaTreeandgeomMetaTree.MetaTree.sum_nodeCost_le_seqProbes,MetaTree.sum_nodeProbes_le_seqProbes,MetaTree.sum_card_segProbedCells_inter_badCells_le_two_mul_nodeCost,MetaTree.mem_badCells_of_seg_preMem_ne_node_preMem, andMetaTree.mem_badCells_of_seg_postMem_ne_node_postMem: global probe conservation, Eq. (5) bad-cell intersection bound, and pre- and post-memory qualification.Cslib.DataStructure.Dictionary.CellProbe.runInterval_mixMem_eq_of_probedCellsInterval_subset,Cslib.DataStructure.Dictionary.CellProbe.mixMem_eq_postMem_of_notMem_inter: mixed-memory replay equivalence and non-intersection cell recovery.
References #
- T. Li, J. Liang, H. Yu and R. Zhou, Tight Cell-Probe Lower Bounds for Dynamic Succinct
Dictionaries, Sections 3, 4.2, 4.3, 5.1, 6, and 8 (
arXiv:2306.02253v3). - P. B. Miltersen, Cell Probe Complexity — a Survey
- A. C.-C. Yao, Probabilistic Computations: Toward a Unified Measure of Complexity
Divisibility-free bottom-up meta-operation tree #
Number of consecutive meta-operations m_ℓ represented by each level-ℓ node.
Divisibility-free packing lower bound: whenever blockSize ℓ ≤ horizon, full level-ℓ nodes
cover at least half of [0, horizon) (horizon ≤ 2 * (nodeCount ℓ * blockSize ℓ)).
Canonical ofFanout constructor, geomMetaTree, and iterLogMetaTree #
Build a MetaTree over horizon meta-operations from any positive even fanout, choosing
height as the largest level h with blockSize h ≤ horizon / 2 (or 0 when horizon < 2).
Unlike the paper's single-root convention m_h = n, stopping at horizon / 2 avoids assuming that
bottom-up integer products divide horizon while ensuring at least two full blocks at level
height when 2 ≤ horizon.
Fanout schedule for geomMetaTree: fanout 1 = 2 * max 1 m₁_half and fanout ℓ = 2 ^ 64 for
ℓ ≥ 2.
Multiplicative height lower bound for geomMetaTree:
n < 4 * max 1 m₁_half * (2 ^ 64) ^ (geomMetaTree n m₁_half).height.
Logarithmic level-count lower bound for geomMetaTree.
Fanout schedule for iterLogMetaTree:
fanout 1 = 2 * max 1 ((c * n * iterLog k n) / (2 * iterLog 1 n)) and
fanout ℓ = 2 * max (2 ^ 63) (iterLog (ℓ - 1) n / (2 * iterLog ℓ n)) for ℓ ≥ 2.
Iterated-logarithm meta-operation tree ([LLYZ23b], Section 3, p. 11 / PDF p. 12, for Theorems 1.1 and 1.3(1)).
At any level ℓ ≥ 2 with 71 ≤ Nat.iterLog ℓ n, the level-ℓ fanout of iterLogMetaTree
satisfies fanout ℓ * iterLog ℓ n ≤ iterLog (ℓ - 1) n.
Upper bound on blockSize ℓ * iterLog ℓ n for iterLogMetaTree: for all 1 ≤ ℓ with
71 ≤ iterLog ℓ n, blockSize ℓ * iterLog ℓ n ≤ max (2 * iterLog 1 n) (c * n * iterLog k n).
Lower bound on blockSize 1 * iterLog 1 n for iterLogMetaTree when 2 ≤ n:
c * n * iterLog k n ≤ blockSize 1 * iterLog 1 n + 2 * iterLog 1 n.
Telescoping ratio preservation for iterLogMetaTree: at every level 1 ≤ ℓ with
71 ≤ iterLog ℓ n, floor truncation across intermediate fanouts loses in total at most a factor
of 2 (blockSize 1 * iterLog 1 n ≤ 2 * (blockSize ℓ * iterLog ℓ n)).
Height lower bound for iterLogMetaTree: whenever 2 ≤ n, 1 ≤ iterLog k n, and
2 * iterLog 1 n ≤ c * n * iterLog k n, the tree height is within an O(log* c) additive
constant of k.
Step-indexed meta-operation execution and LCA probe accounting #
Cell memory snapshot right after executing the first stepIdx elementary operations of ops
from (0, D.init).
Elementary operation slice corresponding to meta-operation range [t₁, t₂) when initLen
initial operations precede the meta-operations and each meta-operation spans stride elementary
operations (stride = 3 for insertQueryDeleteDist, stride = 2 for insertDeleteDist).
Set of distinct cells probed during meta-operation range [t₁, t₂).
Number of cell probes executed during meta-operation range [t₁, t₂).
Number of cell probes executed during single meta-operation t.
Running elemSlice initLen stride ops t₁ t₂ from (initLen + stride * t₁, memAt ...) reaches
exact post-memory memAt D ops (initLen + stride * t₂) whenever t₁ ≤ t₂.
Additivity of rangeProbes across contiguous meta-operation intervals [t₁, t₂) and
[t₂, t₃).
Union law for rangeProbedCells across contiguous meta-operation intervals [t₁, t₂) and
[t₂, t₃).
Distinct cells probed during the b-th level-ℓ node [nodeStart ℓ b, nodeStop ℓ b).
Total cell probes incurred during the b-th level-ℓ node (probe_u in
[LLYZ23b], Section 3, p. 11 / PDF p. 12).
Distinct cells probed during the i-th child segment of internal node (ℓ + 1, b), i.e.,
level-ℓ node b * T.fanout (ℓ + 1) + i.1 (S_A^{[i]} in [LLYZ23b], Section 4.2,
p. 14 / PDF p. 15).
Cell probes incurred during the i-th child segment of internal node (ℓ + 1, b).
Number of distinct child segments of internal node (ℓ + 1, b) in which cell j is probed.
Bad cells of internal node (ℓ + 1, b) (S_bad in [LLYZ23b], Section 4.2, p. 14 /
PDF p. 15): cells probed in at least two distinct child segments of (ℓ + 1, b).
LCA probe cost cost_u assigned to internal node (ℓ + 1, b) ([LLYZ23b], Section 3,
p. 11 / PDF p. 12): a cell probed in s distinct child segments has s - 1 consecutive
cross-segment re-visits whose LCA is (ℓ + 1, b).
A cell belongs to badCells if and only if it is probed in two distinct child segments of
(ℓ + 1, b).
Level-wise probe bound: the sum of nodeProbes across all packed nodes at any single level ℓ
never exceeds D.seqProbes ops.
Probes at internal node (ℓ + 1, b) decompose into the sum over its T.fanout (ℓ + 1) child
segments.
Probed cells at internal node (ℓ + 1, b) equal the union over its T.fanout (ℓ + 1) child
segments.
Bad-cell intersection bound ([LLYZ23b], Section 4.3, Claim 4.1, Eq. (5), p. 17 /
PDF p. 18): across all λ_{ℓ+1} child segments of internal node (ℓ + 1, b), the sum of
|S_A^{[i]} ∩ S_bad| is at most 2 * nodeCost, since every cell probed in s ≥ 2 segments
contributes s to the left-hand side and s - 1 ≥ s / 2 to nodeCost.
Exact per-node telescoping identity: nodeCost plus the number of distinct cells probed in
(ℓ + 1, b) equals the sum of distinct cells probed across its T.fanout (ℓ + 1) children.
Global LCA probe conservation ([LLYZ23b], Section 3, p. 11 / PDF p. 12):
summing nodeCost across all packed internal nodes in the first H internal levels never exceeds
D.seqProbes ops (instantiating H = T.height covers the entire MetaTree).
Global LCA probe conservation across all active internal levels 1, …, T.height of T.
Pre-memory qualification soundness (local symmetric counterpart to post-memory qualification
in [LLYZ23b], Section 4.2, pp. 14–15 / PDF pp. 15–16 and Section 4.3, Claim 4.2, p. 17 /
PDF p. 18, which argues the post-memory direction): if cell j is probed during child segment i
of internal node (ℓ + 1, b) and segment i's pre-memory disagrees with the node's start-of-block
memory at j, then j must also have been probed in an earlier child segment i' < i, so
j ∈ T.badCells D initLen stride ops ℓ b.
Corollary of mem_badCells_of_seg_preMem_ne_node_preMem (local symmetric counterpart to
post-memory qualification): on child segment i, the number of probed cells whose pre-segment
value differs from the start-of-node memory is at most |S_A^{[i]} ∩ S_bad|.
Post-memory qualification soundness ([LLYZ23b], Section 4.2, pp. 14–15 /
PDF pp. 15–16 and Section 4.3, Claim 4.2, p. 17 / PDF p. 18): if cell j is probed during child
segment i of internal node (ℓ + 1, b) and segment i's post-memory disagrees with the node's
end-of-block memory at j, then j must also be probed in a later child segment i' > i, so
j ∈ T.badCells D initLen stride ops ℓ b.
Corollary of mem_badCells_of_seg_postMem_ne_node_postMem: on child segment i, the number of
probed cells whose post-segment value differs from the end-of-node memory is at most
|S_A^{[i]} ∩ S_bad|.
Artificial mixed memory state C_mix ([LLYZ23b], Section 5.1, p. 22 / PDF p. 23 and
Section 8, p. 29 / PDF p. 30): takes pre-segment memory m_bef on mask (S_B ⊆ mask) and
post-segment memory m_after outside mask.
Mixed-memory interval replay: whenever D.probedCellsInterval t₀ m_bef ops_B ⊆ mask,
simulating ops_B from (t₀, mixMem m_bef m_after mask) produces the exact same transcript,
probe count, probed-cell set S_B, and post-memory values on S_B as simulating ops_B from
(t₀, m_bef).
Non-intersection cell recovery from mixMem ([LLYZ23b], Section 5.1, p. 23 /
PDF p. 24 and Section 8, p. 29 / PDF p. 30): if m_A = (D.runInterval t₀ m_bef ops_A).2 with
probed-cell set S_A := D.probedCellsInterval t₀ m_bef ops_A, and mask avoids S_A \ S_B
(mask ∩ S_A ⊆ S_B), then mixMem m_bef m_A mask already equals m_A at every cell outside
S_A ∩ S_B.