Documentation

LeanPool.OrderMaintenance.Impl.PeakDrive

Theorem W, option (A), stage A2: the drive loops #

driveLoop q g k: up to K steps of procedure q on the record in local g, stopping when a step returns 0 (the shape of driveGroupFromS and driveChunkFromS). driveLoop_pk bounds its peak along a Level F invariant I of the drive (as in driveGroupFromS_agree), given the peak bound of each step.

Nothing here is used by Theorems A and B.

The drive loop: up to k steps of q on local g, stopping when one returns 0.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem OrderMaintenance.Impl.driveLoop_pk {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hC : CapsW K κ) (hK : 8 ≤ K) (hW : 2 * K + 4 ≤ W) {q : Proc} {g : Machine.Reg} {k : PF} {Γq : Machine.Reg → ℕ} (hq : q.params = [g]) (hr : q.rets = ["ok"]) (hrK : Γq "ok" ≤ K) (hg1 : g ≠ "ok") (hg2 : g ≠ "jj") (hg3 : g ≠ "dn") {p : ℕ} (I : ℕ → Model.Core → Prop) (h0 : I 0 s) (hstep : ∀ (j : ℕ) (t : Model.Core), I j t → j < PF.get s.P k → ∃ (b : Bool) (t' : Model.Core) (L' : Loc) (n : ℕ), evalF κ q.body t (Machine.State.setLocs (fun (x : Machine.Reg) => 0) [g] [p]) = Res.ok t' L' n ∧ L' "ok" = b2n b ∧ (b = true → I (j + 1) t') ∧ (Gd K KH κ (ΓK K) t (Machine.State.setLocs (fun (x : Machine.Reg) => 0) [g] [p]) → PKok K KH κ Γq W q.body t (Machine.State.setLocs (fun (x : Machine.Reg) => 0) [g] [p]))) (hG : Gd K KH κ (ΓK K) s L) (hg : L g = p) :
    PKok K KH κ (ΓK K) W (driveLoop q g k) s L

    The drive loop, along a Level F invariant I of the drive: from a state with I j t, the step ends in t' with result b (and I (j + 1) t' if b), and its peak is bounded.