The wrapper: what the machine code needs along Level F's run #
The machine code of an operation calls core procedures; each call needs the core's cost
invariant and some facts about its arguments. Level F's cost proof establishes them along the
run, at intermediate states it does not expose. This file replays the proof of the rebuild loop
(rebuildLoop_cost) and records them (RLSafeF).
What the iterations of the rebuild loop need, along Level F's run: a preparation step needs
a core of positive capacity and keeps its count; a copy step reads an element of cur, and if the
element is live, nxt is in service with room, the anchor tail is in its list, and the handle is
below the counter.
Equations
- One or more equations did not get rendered due to their size.
- OrderMaintenance.Proof.RLSafeF mk TI μ Jf nf Rf om n 0 x✝ = True
Instances For
The rebuild loop is safe: under rebuildLoop_cost's hypotheses, its iterations get what
they need.
The rebuild step's loop is safe, under rebuildStep_cost's hypotheses.
The anchor of an insertion in cur.
Equations
- OrderMaintenance.Proof.insXi om none = om.cur.head
- OrderMaintenance.Proof.insXi om (some x) = om.curIdx.getX x
Instances For
An insertion's rebuild step is safe: after the insertion into cur and its mirroring, the
rebuild loop gets what it needs.
A deletion's rebuild step is safe.