src/CCL/wfd.thy
author paulson
Fri, 18 Feb 2000 15:35:29 +0100
changeset 8255 38f96394c099
parent 289 78541329ff35
permissions -rw-r--r--
new distributive laws
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
227
5415c6ad0028 corrected comments
lcp
parents: 0
diff changeset
     1
(*  Title: 	CCL/wfd.thy
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Martin Coen, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Well-founded relations in CCL.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
Wfd = Trancl + Type +
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
consts
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
      (*** Predicates ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
  Wfd        ::       "[i set] => o"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
      (*** Relations ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
  wf         ::       "[i set] => i set"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
  wmap       ::       "[i=>i,i set] => i set"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
  "**"       ::       "[i set,i set] => i set"      (infixl 70)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
  NatPR      ::       "i set"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
  ListPR     ::       "i set => i set"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
rules
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
  Wfd_def
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
  "Wfd(R) == ALL P.(ALL x.(ALL y.<y,x> : R --> y:P) --> x:P) --> (ALL a.a:P)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
  wf_def         "wf(R) == {x.x:R & Wfd(R)}"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
  wmap_def       "wmap(f,R) == {p. EX x y. p=<x,y>  &  <f(x),f(y)> : R}"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
  lex_def
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
  "ra**rb == {p. EX a a' b b'.p = <<a,b>,<a',b'>> & (<a,a'> : ra | (a=a' & <b,b'> : rb))}"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
  NatPR_def      "NatPR == {p.EX x:Nat. p=<x,succ(x)>}"
289
78541329ff35 changed "." to "$" to eliminate ambiguity
clasohm
parents: 227
diff changeset
    33
  ListPR_def     "ListPR(A) == {p.EX h:A.EX t:List(A). p=<t,h$t>}"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
end