src/HOL/UNITY/README.html
author wenzelm
Tue, 03 Oct 2000 01:14:52 +0200
changeset 10131 546686f0a6fb
parent 5679 916c75592bf6
child 11193 851c90b23a9e
permissions -rw-r--r--
range declared as syntax;
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
5679
916c75592bf6 updated
paulson
parents: 5461
diff changeset
     7
(Addison-Wesley, 1988) presents the UNITY formalism.  UNITY consists of an
916c75592bf6 updated
paulson
parents: 5461
diff changeset
     8
abstract programming language of guarded assignments and a calculus for
916c75592bf6 updated
paulson
parents: 5461
diff changeset
     9
reasoning about such programs.  Misra's 1994 paper "A Logic for Concurrent
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    10
Programming" presents New UNITY, giving more elegant foundations for a more
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    11
general class of languages.  In recent work, Chandy and Sanders have proposed
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    12
new methods for reasoning about systems composed of many components.
4776
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    13
5679
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    14
<P>This directory formalizes these new ideas for UNITY.  The Isabelle examples
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    15
may seem strange to UNITY traditionalists.  Hand UNITY proofs tend to be
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    16
written in the forwards direction, as in informal mathematics, while Isabelle
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    17
works best in a backwards (goal-directed) style.  Programs are expressed as
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    18
sets of commands, where each command is a relation on states.  Quantification
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    19
over commands using [] is easily expressed.  At present, there are no examples
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    20
of quantification using ||.
4776
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    21
5679
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    22
<P>A UNITY assertion denotes the set of programs satisfying it, as
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    23
in the propositions-as-types paradigm.  The resulting style is readable if
916c75592bf6 updated
paulson
parents: 5461
diff changeset
    24
unconventional.
4776
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    25
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    26
<P>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    27
The directory presents a few small examples, mostly taken from Misra's 1994
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    28
paper:
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    29
<UL>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    30
<LI>common meeting time
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    31
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    32
<LI>the token ring
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    33
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    34
<LI>the communication network
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    35
5461
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    36
<LI>the lift controller (a standard benchmark)
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    37
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    38
<LI>a mutual exclusion algorithm
6376d5cbb6ac new entries
paulson
parents: 4776
diff changeset
    39
4776
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    40
<LI><EM>n</EM>-process deadlock
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    41
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    42
<LI>unordered channel
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    43
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    44
<LI>reachability in directed graphs (section 6.4 of the book)
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    45
</UL>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    46
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    47
<P> Safety proofs (invariants) are often proved automatically.  Progress
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    48
proofs involving ENSURES can sometimes be proved automatically.  The
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    49
level of automation appears to be about the same as in HOL-UNITY by Flemming
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    50
Andersen et al.
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    51
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    52
<HR>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    53
<P>Last modified on $Date$
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    54
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    55
<ADDRESS>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    56
<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
    57
</ADDRESS>
1f9362e769c1 New UNITY theory
paulson
parents:
diff changeset
    58
</BODY></HTML>