src/ZF/WF.thy
author paulson
Fri, 11 Aug 2000 13:26:40 +0200
changeset 9577 9e66e8ed8237
parent 3840 e0baea4d485a
child 13165 31d020705aff
permissions -rw-r--r--
ZF arith
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/wf.thy
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
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
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
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
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
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
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    15
  wfrec_on     :: [i, i, i, [i,i]=>i] =>i       ("wfrec[_]'(_,_,_')")
1401
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*)
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    21
  wf_def         "wf(r) == ALL Z. Z=0 | (EX x:Z. ALL y. <y,x>:r --> ~ y:Z)"
0
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) == 
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    27
                        (f = (lam x: r-``{a}. H(x, restrict(f, r-``{x}))))"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
3840
e0baea4d485a fixed dots;
wenzelm
parents: 2469
diff changeset
    29
  the_recfun_def "the_recfun(r,a,H) == (THE f. is_recfun(r,a,H,f))"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    31
  wftrec_def     "wftrec(r,a,H) == H(a, the_recfun(r,a,H))"
0
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