src/HOL/UNITY/Channel.thy
author paulson
Wed, 05 Aug 1998 10:57:25 +0200
changeset 5253 82a5ca6290aa
parent 4776 1f9362e769c1
child 5608 a82a038a3e7a
permissions -rw-r--r--
New record type of programs

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