Stav dette: Reasoning about concurrent systems: a functional approach