Documentation

LeanPool.OrderMaintenance.Impl.PeakTop1

Theorem W, option (A), stage A2: the peak of the table procedures #

Nothing here is used by Theorems A and B.

theorem OrderMaintenance.Impl.guard_ok' {κ : Caps} {c : Exp} {s s' : Model.Core} {L L' : Loc} {n : ℕ} (h : evalF κ (Stm.ite c Stm.skip Stm.fail) s L = Res.ok s' L' n) :
∃ (v : ℕ), Exp.ev κ s L c = some v ∧ v ≠ 0 ∧ s = s' ∧ L = L'

The guard if c then skip else fail passed.

theorem OrderMaintenance.Impl.boundsS_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 κ (ΓR K) s L) :
PK K KH κ (ΓR K) W boundsS s L
theorem OrderMaintenance.Impl.roomP_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 κ (ΓR K) s L) :
PK K KH κ (ΓR K) W roomP.body s L

roomNextTo: the label lies below the upper neighbour.

theorem OrderMaintenance.Impl.roomCall_pk {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hC : CapsW K κ) (hK : 8 ≤ K) (hW : 2 * K + 4 ≤ W) {Γ : Machine.Reg → ℕ} {args : List Exp} {ds : List Machine.Reg} (hG : Gd K KH κ Γ s L) (ha : ∀ e ∈ args, Exp.OK Γ K KH W e ∧ Exp.vw Γ K KH K e ≤ K) (hd : ∀ d ∈ ds, K ≤ Γ d) :
PK K KH κ Γ W (roomP.call args ds) s L
theorem OrderMaintenance.Impl.tableInsert_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 κ (ΓK K) s L) :
PK K KH κ (ΓK K) W tableInsertP.body s L

tableInsert: the position r + (1 − bf) is at most the length.

theorem OrderMaintenance.Impl.tableInsertCall_pk {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hC : CapsW K κ) (hK : 8 ≤ K) (hW : 2 * K + 4 ≤ W) {Γ : Machine.Reg → ℕ} {args : List Exp} {ds : List Machine.Reg} (hG : Gd K KH κ Γ s L) (ha : ∀ e ∈ args, Exp.OK Γ K KH W e ∧ Exp.vw Γ K KH K e ≤ K) (hd : ∀ d ∈ ds, K ≤ Γ d) :
PK K KH κ Γ W (tableInsertP.call args ds) s L