Reservation: splitting a popped chunk #
splitChunkStart x allocates two chunks y, z, links them around x, starts the top
structure's insertion job (insertAround) and marks the family. Given that the job starts (the top
structure's contract, proved with the top-structure lemmas), the result is described field by
field.
The family's bookkeeping after the job job started.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
OrderMaintenance.Proof.splitChunkStart_ok
{s : Model.Core}
{x : ℕ}
{job : Model.Job}
{s2 : Model.Core}
(hx : x ≠ Model.NIL)
(hxs : x < s.C.size)
(hj :
EStateM.run (Model.insertAround x s.C.size (s.C.size + 1)) (Model.linkChunkPair (push2 s) x s.C.size (s.C.size + 1)) = EStateM.Result.ok job s2)
:
EStateM.run (Model.splitChunkStart x) s = EStateM.Result.ok () (markState s2 x s.C.size (s.C.size + 1) job)