src/HOL/UNITY/Channel.thy
author wenzelm
Thu, 27 Aug 1998 16:54:55 +0200
changeset 5393 7299e531d481
parent 5253 82a5ca6290aa
child 5608 a82a038a3e7a
permissions -rw-r--r--
fixed ISABELLE_USEDIR_OPTIONS;

(*  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

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

rules

  skip "id: acts"

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

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

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

end