Theorem W, option (A), stage A2: the peak of a job step (jobStepS) #
jcopy_pk: a copy step; the next levelja + 1 ≤ Hby its guard.walk_pkok: a walk step; the weightwt + 2and the heightht ≤ Hof the walk node are bounded at the state before the step (a hypothesis;walk_ltprovides it), the thresholda^htbypowS_pk, the drain start bystartDrain_pkok(its weights bounded by the end state).afterDS_pkok: after a drain, the funding loop (fund_pkok).jobStep_pkok: the step, by the job's program counter.
Nothing here is used by Theorems A and B.
theorem
OrderMaintenance.Impl.walk_pkok
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hcap : κ.lcap LK.children < 512)
(hcapT : κ.lcap LK.table < 512)
(hG : Gd K KH κ (ΓJ K) s L)
(hwb : L "wv" ≠ 0 → (s.nodes.getX (L "wv")).weight + 2 < 2 ^ K ∧ (s.nodes.getX (L "wv")).height ≤ s.P.H)
(hFw : Fin (FB K KH κ (Fld.n NF.weight)) walkS s L)
(hFt : Fin (FB K KH κ (Fld.c CF.tag)) walkS s L)
:
A walk step at node wv, given the bounds of the node's weight and height at the state
before the step.
theorem
OrderMaintenance.Impl.jobStep_pkok
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hcap : κ.lcap LK.children < 512)
(hcapT : κ.lcap LK.table < 512)
(hG : Gd K KH κ (ΓJ K) s L)
{job : Model.Job}
(hjob : s.resJob = some job)
(hwalk :
∀ (v : ℕ),
job.pc = Model.JobPc.walk (some v) ∨ job.pc = Model.JobPc.walk none ∧ v = s.lpar.getX job.y →
v ≠ 0 → (s.nodes.getX v).weight + 2 < 2 ^ K ∧ (s.nodes.getX v).height ≤ s.P.H)
(hFw : Fin (FB K KH κ (Fld.n NF.weight)) jobStepS s L)
(hFt : Fin (FB K KH κ (Fld.c CF.tag)) jobStepS s L)
:
A job step, given the bounds of the walk node at the state before the step (walk_lt)
and the end-state bounds of the weights and tags (fin_jobStep).