src/HOL/Transitive_Closure.thy
author wenzelm
Wed, 25 Oct 2000 18:32:02 +0200
changeset 10331 7411e4659d4a
parent 10213 01c2744a3786
child 10565 7f7c1c3511e2
permissions -rw-r--r--
more "xsymbols" syntax;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10213
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     1
(*  Title:      HOL/Transitive_Closure.thy
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     2
    ID:         $Id$
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     4
    Copyright   1992  University of Cambridge
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     5
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     6
Relfexive and Transitive closure of a relation
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     7
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     8
rtrancl is reflexive/transitive closure;
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
     9
trancl  is transitive closure
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    10
reflcl  is reflexive closure
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    11
10331
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    12
These postfix operators have MAXIMUM PRIORITY, forcing their operands
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    13
to be atomic.
10213
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    14
*)
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    15
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    16
Transitive_Closure = Lfp + Relation + 
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    17
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    18
constdefs
10331
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    19
  rtrancl :: "('a * 'a) set => ('a * 'a) set"    ("(_^*)" [1000] 999)
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    20
  "r^* == lfp (%s. Id Un (r O s))"
10213
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    21
10331
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    22
  trancl :: "('a * 'a) set => ('a * 'a) set"    ("(_^+)" [1000] 999)
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    23
  "r^+ ==  r O rtrancl r"
10213
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    24
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    25
syntax
10331
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    26
  "_reflcl" :: "('a * 'a) set => ('a * 'a) set"    ("(_^=)" [1000] 999)
10213
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    27
translations
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    28
  "r^=" == "r Un Id"
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    29
10331
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    30
syntax (xsymbols)
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    31
  rtrancl :: "('a * 'a) set => ('a * 'a) set"    ("(_\\<^sup>*)" [1000] 999)
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    32
  trancl :: "('a * 'a) set => ('a * 'a) set"    ("(_\\<^sup>+)" [1000] 999)
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    33
  "_reflcl" :: "('a * 'a) set => ('a * 'a) set"    ("(_\\<^sup>=)" [1000] 999)
7411e4659d4a more "xsymbols" syntax;
wenzelm
parents: 10213
diff changeset
    34
10213
01c2744a3786 *** empty log message ***
nipkow
parents:
diff changeset
    35
end