Root-to-Leaf Query and In-Place Payload Overwrite #
This file formalizes deterministic root-to-leaf lookup (rawQuery, query) and in-place value
overwrite (overwriteAtNode, rawOverwrite) for the subconstant-redundancy dictionary tree of
Tianxiao Li, Jingxun Liang, Huacheng Yu, and Renfei Zhou, Dynamic Dictionary with Subconstant
Wasted Bits per Key ([LiLiangYuZhou2024, Section 5.3];
arXiv:2310.20536v1, PDF pp. 30–31 / printed pp. 29–30).
Main definitions #
TreeSchedule.TreeState.rawQuery,TreeSchedule.TreeState.query: iterative root-to-leaf lookup.TreeSchedule.TreeState.overwriteAtNode,TreeSchedule.TreeState.rawOverwrite: in-place payload update of an active key.
Main results #
TreeSchedule.TreeState.rawQuery_eq,TreeSchedule.TreeState.query_eq_apply: exact query correctness (rejecting false-positive ID collisions via globallevelCoordEquivbijectivity,Footnote 10).TreeSchedule.TreeState.wellFormedPadded_rawOverwrite: preservation ofWellFormedPaddedunder in-place value updates.
References #
Iterative root-to-leaf query loop starting from c : P.LevelCoord ℓ (Section 5.3).
Look up an internal key x : Fin P.paddedUniv along its root-to-leaf coordinate path.
Internal query correctness: st.rawQuery scheme x = d x for every x : Fin P.paddedUniv
(both active and absent, Section 5.3 & Footnote 10, PDF p. 30 / printed p. 29).
Deterministic external dictionary lookup u : Fin P.univ → Option ℕ (Section 5.3).
External query correctness: under st.WellFormed scheme dict, st.query scheme u = dict u
for every u : Fin P.univ.
Section 2: Uniform node overwrite and rawOverwrite #
Overwrite (quot, val) of an ID k at (L, uL) (1 ≤ L ≤ depth), acting as identity if
k ∉ st.nodeDom L h1L hLL uL.
Overwrite loop scanning root-to-leaf for the stored level of an active key (Section 5.3).
Overwrite an active padded key x ∈ P.paddedDom d with v_new : Fin P.valBound.