src/ZF/Epsilon.thy
author wenzelm
Sat, 15 Apr 2000 15:00:57 +0200
changeset 8717 20c42415c07d
parent 6070 032babd0120b
child 13164 dfc399c684e4
permissions -rw-r--r--
plain ASCII;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/epsilon.thy
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     3
    Author:     Lawrence C Paulson, 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
Epsilon induction and 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
Epsilon = Nat + mono +
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    10
constdefs
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    11
  eclose    :: i=>i
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    12
    "eclose(A) == UN n:nat. nat_rec(n, A, %m r. Union(r))"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    14
  transrec  :: [i, [i,i]=>i] =>i
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    15
    "transrec(a,H) == wfrec(Memrel(eclose({a})), a, H)"
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    16
 
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    17
  rank      :: i=>i
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    18
    "rank(a) == transrec(a, %x f. UN y:x. succ(f`y))"
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    19
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    20
  transrec2 :: [i, i, [i,i]=>i] =>i
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    21
    "transrec2(k, a, b) ==                     
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    22
       transrec(k, 
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    23
                %i r. if(i=0, a, 
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    24
                        if(EX j. i=succ(j),        
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    25
                           b(THE j. i=succ(j), r`(THE j. i=succ(j))),   
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    26
                           UN j<i. r`j)))"
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    27
6070
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 2469
diff changeset
    28
    recursor  :: [i, [i,i]=>i, i]=>i
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 2469
diff changeset
    29
     "recursor(a,b,k) ==  transrec(k, %n f. nat_case(a, %m. b(m, f`m), n))"
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 2469
diff changeset
    30
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 2469
diff changeset
    31
    rec  :: [i, i, [i,i]=>i]=>i
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 2469
diff changeset
    32
     "rec(k,a,b) ==  recursor(a,b,k)"
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 2469
diff changeset
    33
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
end