Pure Subtree Reconstruction and Local-Splice Step of Algorithm 4 #
This file formalizes the pure reconstruction and local-splice step of Algorithm 4
(Rehash(u)) under supplied validated seeds of Tianxiao Li, Jingxun Liang, Huacheng Yu, and
Renfei Zhou, Dynamic Dictionary with Subconstant Wasted Bits per Key
([LiLiangYuZhou2024, Section 5.5, Algorithm 4];
arXiv:2310.20536v1, PDF p. 34 / printed p. 33).
Given replacement subtree seeds seeds' agreeing with st.seeds outside InSubtree ℓ₀ u₀ and
validated by hgood' : seeds'.AllGoodSeeds (P.paddedDom d), rehashSubtree builds a canonical
tree, splices InSubtree ℓ₀ u₀, updates only the ℓ₀ - 1 strict ancestor nodes
(j, ancestorAt u₀) (1 ≤ j < ℓ₀), and leaves all other root trees and sibling subtrees
untouched. Uniform seed sampling, failed-seed rejection, recursive Algorithm 4 sampling, and
randomized-history / expected-work obligations belong to Stage 3 under #5349.
Main definitions #
TreeSchedule.TreeState.rehashSubtree: pure subtree reconstruction and local splice under supplied validated seeds (Algorithm 4reconstruction step).
Main results #
TreeSchedule.TreeState.seeds_rehashSubtree,TreeSchedule.TreeState.sentCount_rehashSubtree: exact seed assignment and sentinel-count preservation.TreeSchedule.TreeState.rehashSubtree_untouched_roots,TreeSchedule.TreeState.rehashSubtree_untouched_inner,TreeSchedule.TreeState.rehashSubtree_untouched_leaves: strict locality outsideu₀'s subtree and ancestor path.TreeSchedule.TreeState.wellFormedPadded_rehashSubtree: preservation ofWellFormedPadded.
References #
Outside-subtree seed agreement helpers #
Storage-level assignment rehashStoreLvlTwo (2 ≤ ℓ₀) #
Pure reconstruction and local-splice step of Algorithm 4 (Rehash(u₀)) under supplied
validated seeds ([LiLiangYuZhou2024, Section 5.5], PDF p. 34 / printed p. 33): given replacement
seeds seeds' agreeing with st.seeds outside InSubtree ℓ₀ u₀ and validated by
hgood' : seeds'.AllGoodSeeds (P.paddedDom d), builds a canonical tree and splices
InSubtree ℓ₀ u₀ while rebuilding only the ℓ₀ - 1 strict ancestor nodes (j, ancestorAt u₀)
(1 ≤ j < ℓ₀) and leaving sibling subtrees untouched. Uniform seed sampling, failed-seed
rejection, and recursive Algorithm 4 sampling remain in Stage 3 (#5349).
Non-ancestor root trees (u₁ ≠ ancestorAt u₀, 1 ≤ ℓ₀) are untouched by rehashSubtree.
Inner nodes outside InSubtree ℓ₀ u₀ and off u₀'s ancestor path are untouched.
Leaf nodes outside InSubtree ℓ₀ u₀ (1 ≤ ℓ₀) are untouched by rehashSubtree.
Subtree reconstruction (rehashSubtree, the pure local-splice step of Algorithm 4 under
supplied validated seeds) preserves WellFormedPadded.