src/CCL/Wfd.thy
author quigley
Thu, 07 Apr 2005 18:20:04 +0200
changeset 15679 28eb0fe50533
parent 3837 d7f033c74b38
child 17456 bcf7544875b2
permissions -rw-r--r--
Integrating the reconstruction files into the building of HOL
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1474
3f7d67927fe2 expanded tabs
clasohm
parents: 289
diff changeset
     1
(*  Title:      CCL/wfd.thy
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1474
3f7d67927fe2 expanded tabs
clasohm
parents: 289
diff changeset
     3
    Author:     Martin Coen, Cambridge University Computer Laboratory
0
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
3837
d7f033c74b38 fixed dots;
wenzelm
parents: 1474
diff changeset
    24
  "Wfd(R) == ALL P.(ALL x.(ALL y.<y,x> : R --> y:P) --> x:P) --> (ALL a. a:P)"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
3837
d7f033c74b38 fixed dots;
wenzelm
parents: 1474
diff changeset
    26
  wf_def         "wf(R) == {x. x:R & Wfd(R)}"
0
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
3837
d7f033c74b38 fixed dots;
wenzelm
parents: 1474
diff changeset
    30
  "ra**rb == {p. EX a a' b b'. p = <<a,b>,<a',b'>> & (<a,a'> : ra | (a=a' & <b,b'> : rb))}"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
3837
d7f033c74b38 fixed dots;
wenzelm
parents: 1474
diff changeset
    32
  NatPR_def      "NatPR == {p. EX x:Nat. p=<x,succ(x)>}"
d7f033c74b38 fixed dots;
wenzelm
parents: 1474
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