Documentation

LeanPool.OrderMaintenance.Proof.Correct.Good

Background work keeps INV-S or leaves the element list intact #

Good m: from a state satisfying INV-S, m

In both cases the element records (links, liveness, handles) are unchanged: EFrame.

The element records are unchanged, except for their group and label.

Instances For
    theorem OrderMaintenance.Proof.EFrame.trans {s t u : Model.Core} (h1 : EFrame s t) (h2 : EFrame t u) :
    EFrame s u

    Preserve a valid core and its abstract nesting whenever the computation succeeds.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem OrderMaintenance.Proof.Good.bind {α β : Type} {m : Model.CM α} {f : α → Model.CM β} (hm : Good m) (hf : ∀ (a : α), Good (f a)) :
      Good (m >>= f)
      theorem OrderMaintenance.Proof.Good.ite {α : Type} {c : Prop} [Decidable c] {a b : Model.CM α} (ha : Good a) (hb : Good b) :
      Good (if c then a else b)
      theorem OrderMaintenance.Proof.Good.forIn_list {β γ : Type} (l : List γ) (b : β) {f : γ → β → Model.CM (ForInStep β)} (hf : ∀ (x : γ) (b : β), Good (f x b)) :
      Good (forIn l b f)

      Decompose a computation into Good pieces, using the given lemmas for calls.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For