M6: the wrapper as machine code #
Layout. The cores live in slots 0 and 1 (arrays 1000·p + code); the wrapper's own arrays
are numbered from 2000, outside both slots:
- one cell each:
wa 0parity (the slot ofcur),wa 1whethernxtexists,wa 2cursor,wa 3cursorSet,wa 4live,wa 5nextHandle,wa 6rebuilds,wa 7K_B; - the handle maps
wIdx q(q= 0, 1):curIdxinwIdx p,nxtIdxinwIdx (1 - p).
WEnc om m p says that machine state m holds wrapper state om with cur in slot p.
The wrapper code tests the parity and runs the code specialized to it.
Array name of one of the wrapper's eight scalar cells.
Equations
- OrderMaintenance.Impl.wa k = 2000 + k
Instances For
Array name of the external-handle map associated with a core slot.
Equations
- OrderMaintenance.Impl.wIdx q = 2010 + q
Instances For
The encoding of the wrapper state.
Instances For
The wrapper state survives anything that keeps slot p's core, the other slot, and the
wrapper's arrays.
The parity test.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Run the code specialized to the parity.
Equations
Instances For
Order queries #
Dispatch an order query to the slot containing the current core.
Instances For
An order query at the machine level.
Writing the current handle map #
Writing v at handle x of the current handle map.
Deletion #
The next core #
The next core changes (in its slot), with the same parameters and count.
Writing v at handle x of the next handle map.
Mirror a deletion into the replacement core when its handle is already copied.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The core facts a deletion from nxt needs.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Writing the wrapper's scalars #
A write to scalar k: the other scalars, the cores and the maps are unchanged.
The current core changes (in its slot).
The wrapper state after the insertion into cur.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Cores in service #
A core in service, as the wrapper's Level M steps need it: Level F's CoreOK for the
proof parameters, room for one more element, and the capacity predicate.
Instances For
The parameter conditions of insertAgreeM, for a core in service.
An insertion into a core in service, at Level M.
Insert after the element in local xn of nxt, with handle hh; record it in the next
handle map.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The wrapper state after an insertion into nxt.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An assignment followed by code: the code runs from any state that differs only in the local.
Mirror an insertion into the replacement core when the copying frontier permits it.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The anchor of a mirrored insertion in nxt.
Equations
- OrderMaintenance.Impl.mirAnchor om n none = n.head
- OrderMaintenance.Impl.mirAnchor om n (some x) = om.nxtIdx.getX x