The mathematical and storage contract of a splay access #
Access describes ordinary trees: the inorder sequence is unchanged and the
matching or last-visited node becomes the root. BST order and distinct labels
are consequences of this relation, not additional implementation obligations.
Input records the actual borrowed storage and its legal aliasing. Post is
shared by source correctness and the RAM endpoint: it retains the represented
output, rotation certificate and real initial/final heap frame. No execution
semantics, word-capacity assumption or proposed running time is defined here.
The mathematical effect of an access, independently of heap encoding.
All nodes keep their exact inorder positions.
Ordinary search selects the final root, including unsuccessful searches.
Instances For
The certified rotations establish the ordinary mathematical specification.
BST order is an ordinary list property transported by inorder equality.
Legal source inputs. Buffer columns may be disjoint slices of one object; BST ordering and finite-machine capacities are not required for source safety.
- represented : BufferTree.Rep key keys left right heap tree
- keysLeft : keys.Disjoint left
- keysRight : keys.Disjoint right
- leftRight : left.Disjoint right
Instances For
The shared source/RAM postcondition. Its existential tree is a mathematical
view of the actual final heap; result is the root returned by that execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A caller can forget the rotation certificate and use the ordinary tree specification together with the actual returned root and represented storage.
Cells outside the original tree's child links retain their actual values.
The complete key-array contents are unchanged, not only the keys of nodes that happened to be visited. This consequence is shared by source and RAM users.