Fresh cores #
A fresh core holds the sentinel alone, in one group of one chunk. It satisfies the lower
invariants, and the deferred construction of its top structure (prepareStep) touches only the
top structure, the chunk tags and the ready flag.
TopRel, but the ready flag may change too.
Equations
- One or more equations did not get rendered due to their size.
Instances For
What the deferred construction keeps: everything below the top structure, and the queue.
Equations
Instances For
The deferred construction of a core holding the sentinel alone never fails, and keeps the lower invariants.
The lower invariants of a fresh core.
A fresh core keeps its lower invariants through initCore.
The top structure's contract for its deferred construction. PI holds while it is being
built; ν counts the steps left; PP is what it needs of the parameters.
- eager (s s' : Model.Core) : PP s.P → EStateM.run (Model.initCore false) s = EStateM.Result.ok () s' → TI s' ∧ s'.resJob = none
- lazy (s s' : Model.Core) : PP s.P → EStateM.run (Model.initCore true) s = EStateM.Result.ok () s' → PI s' ∧ ν s' ≤ s.P.H + 1
- step (s : Model.Core) : PI s → ∃ (b : Bool) (s' : Model.Core), EStateM.run Model.prepareStep s = EStateM.Result.ok b s' ∧ (b = true → TI s' ∧ s'.resJob = none) ∧ (b = false → PI s' ∧ ν s' < ν s)
Instances For
A ready fresh core satisfies the cost invariant: all game values are 0 and no job runs.
The game values of a core holding the sentinel alone are 0.