src/ZF/wf.thy
author wenzelm
Sat, 15 Apr 2000 15:00:57 +0200
changeset 8717 20c42415c07d
parent 124 858ab9a9b047
permissions -rw-r--r--
plain ASCII;
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
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1992  University of Cambridge
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
124
858ab9a9b047 made pseudo theories for all ML files;
clasohm
parents: 0
diff changeset
     9
WF = Trancl + "mono" +
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
consts
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
    wf		 ::      "i=>o"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
    wftrec,wfrec ::      "[i, i, [i,i]=>i] =>i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
    is_recfun    ::      "[i, i, [i,i]=>i, i] =>o"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
    the_recfun   ::      "[i, i, [i,i]=>i] =>i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
rules
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
  (*r is a well-founded relation*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
  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
    19
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
  is_recfun_def  "is_recfun(r,a,H,f) == \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
\   			(f = (lam x: r-``{a}. H(x, restrict(f, r-``{x}))))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
  the_recfun_def "the_recfun(r,a,H) == (THE f.is_recfun(r,a,H,f))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
  wftrec_def  	 "wftrec(r,a,H) == H(a, the_recfun(r,a,H))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
  (*public version.  Does not require r to be transitive*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
  wfrec_def "wfrec(r,a,H) == wftrec(r^+, a, %x f. H(x, restrict(f,r-``{x})))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
end