M6: building a core at Level M (initCore, initStep, prepareStep) #
A new core lives in freshly allocated machine arrays, which read 0 everywhere: the core
freshC P, with every array empty. initStateS pushes and writes it into Level F's
initState P. The top structure is then built one level per initStep; resetTop runs only on
the fresh top structure, where it changes nothing.
A core in fresh memory: every array empty (all cells read 0).
Instances For
Allocate the dummy element and dead sentinel with a central label.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Allocate the dummy group and the sentinel's initial group.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Allocate the dummy chunk and the initial singleton chunk.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Initialize the dummy node, list heads, list tail and element count.
Equations
- One or more equations did not get rendered due to their size.
Instances For
set (initState P), from fresh memory.
Equations
Instances For
The stages of initStateS on fresh memory.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The partially initialized core after creating its initial group.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The partially initialized core after creating its initial chunk.
Equations
- One or more equations did not get rendered due to their size.
Instances For
initStep #
Link a newly prepared node to its lower entry, using chunk parents at height one.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Allocate a singleton preparation node at the current height.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Advance the suspended preparation height, accumulated tag and ancestor path.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Construct and link one preparation level and report that preparation continues.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Store the completed chunk tag and commit preparation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Load the suspended preparation and clear the first chunk membership list if needed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
done := initStep.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The locals after the reads.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The state after the last step (initStep_last).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Level F's new chain node, as initStep makes it (chainNew).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The locals after the reads and the label ctr.
Equations
- OrderMaintenance.Impl.isL2 L pr β = OrderMaintenance.Machine.State.upd (OrderMaintenance.Impl.isL L pr) "ctr" (1 <<< (β - 1))
Instances For
The accumulated chunk tag after adding the current level's central label.
Equations
Instances For
The suspended preparation after installing a fresh node at the current level.
Equations
- OrderMaintenance.Impl.prepMid P pr v = { chunk := pr.chunk, h := pr.h + 1, below := v, tag := OrderMaintenance.Impl.prepTag P pr, path := pr.path }
Instances For
The prep record after building height pr.h as node v (Level M's form of prepNext).
isLink above height 1: below gets the new node as its table and live parent.
Install the first preparation node as a chunk's live parent and sole table.
Equations
- One or more equations did not get rendered due to their size.
Instances For
initStep along Level F's stages #
The program agrees with Level F's initStep from s (within D steps).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The capacities the construction needs.
Instances For
The eager construction loop #
The body of Level F's construction loop (as elaborated).
Equations
- OrderMaintenance.Impl.initF x✝¹ x✝ = do let b ← OrderMaintenance.Model.initStep if b = true then pure (ForInStep.done PUnit.unit) else pure (ForInStep.yield PUnit.unit)
Instances For
Run one preparation step unless an earlier iteration finished initialization.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Complete eager preparation in at most the configured height plus one iterations.
Equations
Instances For
initCore #
initCore lz (local lz), from fresh memory.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The state after prepInit 1 1 on initState P.
Equations
- One or more equations did not get rendered due to their size.
Instances For
prepareStep #
r := prepareStep.
Equations
- One or more equations did not get rendered due to their size.