src/HOL/UNITY/README.html
author oheimb
Mon, 21 Sep 1998 23:25:27 +0200
changeset 5526 e7617b57a3e6
parent 5461 6376d5cbb6ac
child 5679 916c75592bf6
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4776
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     1
<!-- $Id$ -->
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     2
<HTML><HEAD><TITLE>HOL/UNITY/README</TITLE></HEAD><BODY>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     3
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     4
<H2>UNITY--Chandy and Misra's UNITY formalism</H2>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     5
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     6
<P>The book <EM>Parallel Program Design: A Foundation</EM> by Chandy and Misra
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     7
(Addison-Wesley, 1988) presents UNITY, which consists of an abstract
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     8
programming language of guarded assignments and an associated calculus.
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
     9
Misra's 1994 paper "A Logic for Concurrent Programming" presents "New UNITY",
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    10
giving more elegant foundations for a more general class of languages.
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    11
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    12
<P> This directory is a preliminary formalization of New UNITY.  The Isabelle
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    13
examples may not represent the most natural treatment of UNITY style.  Hand
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    14
UNITY proofs tend to be written in the forwards direction, as in informal
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    15
mathematics, while Isabelle works best in a backwards (goal-directed) style.
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    16
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    17
<P>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    18
The syntax, also, is rather unnatural.   Programs are expressed as sets of 
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    19
commands, where each command is a relation on states.  Quantification over 
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    20
commands using [] is easily expressed.  At present, there are no examples of
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    21
quantification using ||.
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    22
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    23
<P>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    24
The directory presents a few small examples, mostly taken from Misra's 1994
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    25
paper:
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    26
<UL>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    27
<LI>common meeting time
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    28
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    29
<LI>the token ring
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    30
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    31
<LI>the communication network
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    32
5461
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    33
<LI>the lift controller (a standard benchmark)
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    34
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    35
<LI>a mutual exclusion algorithm
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    36
4776
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    37
<LI><EM>n</EM>-process deadlock
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    38
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    39
<LI>unordered channel
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    40
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    41
<LI>reachability in directed graphs (section 6.4 of the book)
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    42
</UL>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    43
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    44
<P> Safety proofs (invariants) are often proved automatically.  Progress
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    45
proofs involving ENSURES can sometimes be proved automatically.  The
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    46
level of automation appears to be about the same as in HOL-UNITY by Flemming
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    47
Andersen et al.
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    48
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    49
<HR>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    50
<P>Last modified on $Date$
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    51
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    52
<ADDRESS>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    53
<A NAME="lcp@cl.cam.ac.uk" HREF="mailto:lcp@cl.cam.ac.uk">lcp@cl.cam.ac.uk</A>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    54
</ADDRESS>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    55
</BODY></HTML>