M6: a new core in the free slot #
newCoreS q: compute the parameters of capacity N (local nN), allocate slot q, and run the
compiled initCore in its lazy form. The slot then holds Level F's prepStart P false, the core
of newCore P true (newCore_ok), in a constant number of steps. The compiled code is fixed: it
is compiled with the capacities of any parameters (κ₀), since only the list strides enter it.
The capacities the fixed code is compiled with (any parameters give the same code).
Instances For
Compute a slot's parameters, allocate its arrays, and initialize its lazy core.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
OrderMaintenance.Impl.newCore_ok
(q : ℕ)
{m : Machine.State}
{N : ℕ}
(hN : m.loc "nN" = N)
(hpos : 0 < N)
:
Machine.wp (newCoreS q)
(fun (m' : Machine.State) (n : ℕ) =>
Enc q (capsOf (Proof.proofParams N)) (prepStart (Proof.proofParams N) false) m' ∧ (∀ (b : ℕ), ¬InSlot q b → Machine.Same b m m') ∧ m'.loc "nN" = N ∧ (∀ x ∉ pLocs, m'.loc x = m.loc x) ∧ n ≤ 3000)
m
A new core: slot q holds prepStart (proofParams N) false.