M6: reservation at Level M (insertAround, splitChunkStart) #
insertAround x y z puts the new chunks y, z around x in every table holding x. Level F
computes all the labels first, then inserts. The program computes the two labels of a table right
before inserting into it: the tables are distinct, so a table is still untouched when its turn
comes, and the labels agree.
Insert replacement-chunk entries around the source in one containing table.
Equations
- OrderMaintenance.Impl.cStep S0 x y z ns T = ns.modify T (OrderMaintenance.Proof.Top.aroundF S0 x y z (OrderMaintenance.Impl.cLab S0 x) T)
Instances For
Level F after the insertions into the first j tables holding x.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Insert replacement chunks around the source in one chunk membership table.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Update every table containing a chunk with its two replacement entries.
Equations
- One or more equations did not get rendered due to their size.
Instances For
joinChunk #
The guarded tag write #
guardedSetTag c t: t must lie strictly between the tags of c's neighbours.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Insert replacement chunks on either side of their source in the live child list.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The reads of insertAround #
insertAround #
linkChunkPair and markSplit #
Two writes to the same chunk.
Link the left replacement chunk immediately before its source.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Redirect the preceding chunk, or the chunk-list head, to the left replacement.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Link the right replacement chunk immediately after its source.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Redirect the succeeding chunk to the right replacement when it exists.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Record both replacement chunks as the source's list neighbours.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Mark the source chunk as splitting and store both replacement indices.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Mark the left replacement as an overflow sibling of the source chunk.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Mark the right replacement as an overflow sibling of the source chunk.
Equations
- One or more equations did not get rendered due to their size.
Instances For
splitChunkStart #
What insertAroundS_ok needs: the hypotheses of Level F's insertAround_run, and the
capacities.
- room (T : ℕ) : T ∈ s.cin.getX x → Proof.Top.RoomOK s x T
- gy : Proof.TagOK s y (Proof.Top.tagY s x f1x i1)
- gz : Proof.TagOK { P := s.P, E := s.E, Gs := s.Gs, C := s.C.modify y fun (C : Model.Chunk) => { next := C.next, prev := C.prev, first := C.first, last := C.last, size := C.size, st := C.st, src := C.src, l := C.l, r := C.r, tag := Proof.Top.tagY s x f1x i1, alive := C.alive }, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } z (Proof.Top.tagZ s x f1x i1)
- npx : notPrep s x
- npy : notPrep s y
- npz : notPrep s z
- ry : rowZero κ s y
- rz : rowZero κ s z