Summing measured splay-access bounds #
This module combines rotation certificates with an externally justified bound
steps ≤ K * (rotations + 1). The latter premise must be supplied by a theorem
about the actual implementation's execution, not by pricing this mathematical
tree relation. The generic potential-sum theorem then accounts for all accesses.
Initial potential is charged explicitly; final potential can be retained or discarded using its nonnegativity. No theorem here claims logarithmic worst-case time for an individual access. The additive terms cover empty trees and empty sequences without a positivity restriction on the node count or sequence length.
Sum supplied implementation costs and retain the final scaled potential.
Discard nonnegative final credit while retaining the actual initial potential.
A bound uniform over all initial shapes, including their initial credit.