Sentinel Padding and Bijective Multi-Level Coordinate Routing #
This file formalizes the sentinel-padded key space (Section 4, Footnote 5, PDF p. 12 / printed
p. 11; Section 5, PDF p. 26 / printed p. 25), forest node ancestry, and bijective level-by-level
(node, id, quot) coordinate pipeline (Sections 5.1 & 5.4, PDF pp. 27, 32 / printed pp. 26, 31)
for the subconstant-redundancy dictionary tree of Tianxiao Li, Jingxun Liang, Huacheng Yu, and
Renfei Zhou, Dynamic Dictionary with Subconstant Wasted Bits per Key ([LLYZ24]).
Main definitions #
TreeSchedule.embedReal,TreeSchedule.sentinelKey,TreeSchedule.PaddedDict: external and sentinel key embeddings intoFin paddedUniv.TreeSchedule.childNodeEquiv,TreeSchedule.parentNode,TreeSchedule.ancestorAt,TreeSchedule.InSubtree: forest node indexing, ancestor projections, and subtree membership.TreeSchedule.SeedAssignment: per-node hash seed assignmentg_uacross0 ≤ ℓ ≤ depth, with bijectionslevelCoordEquivandstepCoordEquiv.
Main results #
TreeSchedule.SeedAssignment.primCoordAt_congr_ancestors: routed primitive IDs at levelℓdepend strictly on ancestor seeds at levels< ℓ(Section 5.5).TreeSchedule.SeedAssignment.load_bounds_of_allGoodSeeds,TreeSchedule.SeedAssignment.injOn_idAt_activeAt: load bounds and ID injectivity.
References #
Section 1: Sentinel-padded key universe and external dictionary correspondence #
Embed an external dictionary key u : Fin P.univ into Fin P.paddedUniv.
i-th sentinel padding key P.univ + i in Fin P.paddedUniv (Section 4, Footnote 5,
arXiv:2310.20536v1, PDF p. 12 / printed p. 11).
Internal padded dictionary mapping Fin P.paddedUniv to bounded values Fin P.valBound.
Active key domain {x : Fin P.paddedUniv | (d x).isSome} of a PaddedDict.
Correspondence between an internal sentinel-padded dictionary d, active sentinel count
sentCount ≤ P.cap, and external dict : Dictionary.State P.univ.
Canonical empty-dictionary padded state containing all P.cap sentinel keys with value 0.
Section 2: Forest node indexing and ancestor topology #
Equivalence (parent, branch) ≃ child between level ℓ and level ℓ + 1.
Parent node of u : Fin (P.numNodes (ℓ + 1)) at level ℓ.
Branch index b ∈ Fin (2 ^ branchBits ℓ) of u : Fin (P.numNodes (ℓ + 1)) under its parent.
Ancestor of a level-ℓ node u at any level j ≤ ℓ.
Node (ℓ, u) lies in the subtree rooted at (ℓ₀, u₀) iff ℓ₀ ≤ ℓ and ancestorAt u = u₀.
Instances For
Section 3: Seed assignments and bijective coordinate pipeline #
Level-ℓ routed (node, primitiveId) coordinate (0 ≤ ℓ ≤ depth).
Level-ℓ routed (node, compressedId, quotient) coordinate (1 ≤ ℓ ≤ depth).
Node component of c : P.LevelCoord ℓ.
Compressed-ID component of c : P.LevelCoord ℓ.
Quotient component of c : P.LevelCoord ℓ.
Full-forest hash seed assignment storing g_u : P.NodeSeed ℓ at every node 0 ≤ ℓ ≤ depth.
Per-node hash seed
g_uat(ℓ, u).
Equivalence Fin P.paddedUniv ≃ P.PrimCoord 0 at the top router (numNodes 0 = 1).
Top-level routing bijection PrimCoord 0 ≃ PrimCoord 1 via topSeed = seeds.seed 0 _ 0.
Level-1 ID compression bijection PrimCoord 1 ≃ LevelCoord 1.
Full level-1 coordinate bijection Fin P.paddedUniv ≃ P.LevelCoord 1.
Child-routing bijection (u_m, x_id_m) ≃ (u_{m + 1}, prim_{m + 1}) on edge m → m + 1
(1 ≤ m < depth).
Level-(m + 1) ID compression bijection
PrimCoord (m + 1) ≃ Fin (numNodes (m + 1)) × Fin (2 ^ idBits (m + 1)) × Fin (2 ^ remBits m).
Quotient-remainder merge equivalence
Fin (quotUniv m) × Fin (2 ^ remBits m) ≃ Fin (quotUniv (m + 1)) for 1 ≤ m.
Single-edge coordinate bijection LevelCoord m ≃ LevelCoord (m + 1) (1 ≤ m < depth,
Section 5.1 & Algorithm 3 Line 14).
Multi-level coordinate bijection Fin P.paddedUniv ≃ P.LevelCoord ℓ for 1 ≤ ℓ ≤ depth.
Routed (node, primId) coordinate of x : Fin P.paddedUniv at level 0 ≤ ℓ ≤ depth.
Node reached by x : Fin P.paddedUniv at level 0 ≤ ℓ ≤ depth.
Compressed I_ℓ-bit ID of x : Fin P.paddedUniv at level 1 ≤ ℓ ≤ depth.
Quotient x_quot^[ℓ] of x : Fin P.paddedUniv at level 1 ≤ ℓ ≤ depth.
Section 4: Routed key sets, ancestor-only dependence, and AllGoodSeeds invariants #
Subset of S : Finset (Fin P.paddedUniv) routed to node u at level ℓ.
Primitive-ID finset S_prim arriving at node u at level ℓ (Section 5.5).
Ancestor-only dependence (Section 5.5 crucial property for Claim 5.4 & Lemma 5.3):
if two seed assignments s₁, s₂ agree at all strict ancestors (j, ancestorAt hj u) (j < ℓ) of
u, then s₁ and s₂ route the exact same keys to u with the exact same primitive IDs.
Level-ℓ coordinate congruence when s₁, s₂ agree along (0 .. ℓ) of u's path.
Global seed-goodness invariant on an active padded set S: #S ∈ [nLow 0, nHigh 0] and
every node (ℓ, u) (0 ≤ ℓ ≤ depth) satisfies IsGoodNodeSeed on primSetAt S ℓ hℓ u.
Ancestor-local routing invariants at (ℓ, u): whenever #S ∈ [nLow 0, nHigh 0] and every
strict ancestor j < ℓ of u satisfies IsGoodNodeSeed, (primCoordAt ℓ hℓ ·).2 is injective on
activeAt S ℓ hℓ u, nLow ℓ ≤ #(activeAt S ℓ hℓ u) ≤ nHigh ℓ, and (if u's seed is good) idAt ℓ
is injective on activeAt S ℓ hℓ u.