src/HOL/UNITY/Channel.thy
author wenzelm
Thu, 19 Nov 1998 11:47:22 +0100
changeset 5936 406eb27fe53c
parent 5648 fe887910e32e
child 6536 281d44905cab
permissions -rw-r--r--
match_bind(_i): 'as' patterns; assume, theorem, show etc.: propp; tuned qed msg;

(*  Title:      HOL/UNITY/Channel
    ID:         $Id$
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1998  University of Cambridge

Unordered Channel

From Misra, "A Logic for Concurrent Programming" (1994), section 13.3
*)

Channel = WFair + Option + 

types state = nat set

consts
  F :: state program

constdefs
  minSet :: nat set => nat option
    "minSet A == if A={} then None else Some (LEAST x. x:A)"

rules

  UC1  "F : constrains (minSet -`` {Some x}) (minSet -`` (Some``atLeast x))"

  (*  UC1  "F : constrains {s. minSet s = x} {s. x <= minSet s}"  *)

  UC2  "F : leadsTo (minSet -`` {Some x}) {s. x ~: s}"

end