src/ZF/WF.thy
author clasohm
Sat, 09 Dec 1995 13:36:11 +0100
changeset 1401 0c439768f45c
parent 1155 928a16e02f9f
child 1478 2b8c2a7547ab
permissions -rw-r--r--
removed quotes from consts and syntax sections
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title: 	ZF/wf.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Tobias Nipkow and Lawrence C Paulson
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
     4
    Copyright   1994  University of Cambridge
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Well-founded Recursion
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
     9
WF = Trancl + "mono" + "equalities" +
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    11
  wf           :: i=>o
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    12
  wf_on        :: [i,i]=>o			("wf[_]'(_')")
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    13
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    14
  wftrec,wfrec :: [i, i, [i,i]=>i] =>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    15
  wfrec_on     :: [i, i, i, [i,i]=>i] =>i	("wfrec[_]'(_,_,_')")
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    16
  is_recfun    :: [i, i, [i,i]=>i, i] =>o
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    17
  the_recfun   :: [i, i, [i,i]=>i] =>i
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
930
63f02d32509e Replaced rules by defs
lcp
parents: 435
diff changeset
    19
defs
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
  (*r is a well-founded relation*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
  wf_def	 "wf(r) == ALL Z. Z=0 | (EX x:Z. ALL y. <y,x>:r --> ~ y:Z)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    23
  (*r is well-founded relation over A*)
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    24
  wf_on_def      "wf_on(A,r) == wf(r Int A*A)"
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    25
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 930
diff changeset
    26
  is_recfun_def  "is_recfun(r,a,H,f) == 
928a16e02f9f removed \...\ inside strings
clasohm
parents: 930
diff changeset
    27
   			(f = (lam x: r-``{a}. H(x, restrict(f, r-``{x}))))"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
  the_recfun_def "the_recfun(r,a,H) == (THE f.is_recfun(r,a,H,f))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
  wftrec_def  	 "wftrec(r,a,H) == H(a, the_recfun(r,a,H))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
  (*public version.  Does not require r to be transitive*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
  wfrec_def "wfrec(r,a,H) == wftrec(r^+, a, %x f. H(x, restrict(f,r-``{x})))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    36
  wfrec_on_def   "wfrec[A](r,a,H) == wfrec(r Int A*A, a, H)"
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    37
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
end