src/HOL/Lambda/Commutation.thy
author nipkow
Wed, 25 Oct 1995 09:49:35 +0100
changeset 1302 ddfdcc9ce667
parent 1278 7e6189fc833c
child 1476 608483c2122a
permissions -rw-r--r--
Moved some thms to Arith and to Trancl.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1278
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     1
(*  Title: 	HOL/Lambda/Commutation.thy
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     2
    ID:         $Id$
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     3
    Author: 	Tobias Nipkow
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     4
    Copyright   1995  TU Muenchen
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     5
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     6
Abstract commutation and confluence notions.
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     7
*)
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     8
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
     9
Commutation = Trancl +
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    10
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    11
consts
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    12
  square  :: "[('a*'a)set,('a*'a)set,('a*'a)set,('a*'a)set] => bool"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    13
  commute :: "[('a*'a)set,('a*'a)set] => bool"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    14
  confluent, diamond, Church_Rosser :: "('a*'a)set => bool"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    15
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    16
defs
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    17
  square_def
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    18
 "square R S T U == !x y.(x,y):R --> (!z.(x,z):S --> (? u. (y,u):T & (z,u):U))"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    19
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    20
  commute_def "commute R S == square R S S R"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    21
  diamond_def "diamond R   == commute R R"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    22
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    23
  Church_Rosser_def "Church_Rosser(R) ==   
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    24
  !x y. (x,y) : (R Un converse(R))^* --> (? z. (x,z) : R^* & (y,z) : R^*)"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    25
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    26
translations
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    27
  "confluent R" == "diamond(R^*)"
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    28
7e6189fc833c Commutation replaces Confluence
nipkow
parents:
diff changeset
    29
end