Documentation

LeanPool.OrderMaintenance.Proof.Word.PeakStep

Theorem W, option (A), stage A2: the peak of a job step (jobStepS) #

Nothing here is used by Theorems A and B.

theorem OrderMaintenance.Impl.walkRd_vals {κ : Caps} {s s1 : Model.Core} {L L1 : Loc} {n : ℕ} (h : evalF κ walkRd s L = Res.ok s1 L1 n) :
s1 = s ∧ L1 "wv" = L "wv" ∧ L1 "wt" = (s.nodes.getX (L "wv")).weight ∧ L1 "ht" = (s.nodes.getX (L "wv")).height

The values a walk step reads.

theorem OrderMaintenance.Impl.jcopy_pk {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hC : CapsW K κ) (hK : 8 ≤ K) (hW : 2 * K + 4 ≤ W) (hG : Gd K KH κ (ΓJ K) s L) :
PK K KH κ (ΓJ K) W jcopyS s L

A copy step: the next level ja + 1 ≤ H.

theorem OrderMaintenance.Impl.afterDS_pkok {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hC : CapsW K κ) (hK : 8 ≤ K) (hW : 2 * K + 4 ≤ W) (hG : Gd K KH κ (ΓJ K) s L) (hF : Fin (FB K KH κ (Fld.c CF.tag)) afterDS s L) :
PKok K KH κ (ΓJ K) W afterDS s L

After a drain (afterDS, locals av, au): the funding loop.

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) :
PKok K KH κ (ΓJ K) W 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) :
PKok K KH κ (ΓJ K) W 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).