Documentation

LeanPool.OrderMaintenance.Proof.Cost.Fresh

Fresh cores #

A fresh core holds the sentinel alone, in one group of one chunk. It satisfies the lower invariants, and the deferred construction of its top structure (prepareStep) touches only the top structure, the chunk tags and the ready flag.

TopRel, but the ready flag may change too.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem OrderMaintenance.Proof.TopRelR.trans {a b c : Model.Core} (h1 : TopRelR a b) (h2 : TopRelR b c) :

    What the deferred construction keeps: everything below the top structure, and the queue.

    Equations
    Instances For
      theorem OrderMaintenance.Proof.LowInv.lowRel {s s' : Model.Core} {L : List ℕ} (h : LowInv s L) (hR : LowRel s s') (hI : ∃ (A : Abs), INV s' A ∧ A.elist = L) :
      LowInv s' L

      The lower invariants survive steps that keep LowRel, given INV-S.

      The deferred construction of a core holding the sentinel alone never fails, and keeps the lower invariants.

      The lower invariants of a fresh core.

      A fresh core keeps its lower invariants through initCore.

      The top structure's contract for its deferred construction. PI holds while it is being built; ν counts the steps left; PP is what it needs of the parameters.

      Instances For
        theorem OrderMaintenance.Proof.costInv_fresh {TI : Model.Core → Prop} {μ : Model.Core → ℕ} {J n R : ℕ} {s : Model.Core} (hL : LowInv s initAbs.elist) (hTI : TI s) (hres : s.resJob = none) (hn : 1 ≤ n) (hz : ∀ (c : ℕ), gval s c = 0) :
        CostInv TI μ J n R initAbs.elist s

        A ready fresh core satisfies the cost invariant: all game values are 0 and no job runs.

        The game values of a core holding the sentinel alone are 0.