Documentation

FMMidgard.DataStructures.List.Ordered.State

Sorted Linked List State #

Sorted Linked list internal state is the same as Unordered, i.e, we keep an unsorted list as internal state.

Actions are the same as in Unsorted lists (but safe) plus insertion.

inductive MOList.State.Actions (α : Type) :
Instances For
    def MOList.State.instReprActions.repr {α✝ : Type} [Repr α✝] :
    Actions α✝ → ℕ → Std.Format
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Operations #

      Sorted lists provide the same operations plus verifiable /non_membership/. Since a node is a range in itself, we know there is no element between a node's key and the key it links to.

      Sorted lists accept same operations as Unsorted plus /parallel/ insertion.

      Equations
      Instances For