src/ZF/Nat.thy
author clasohm
Tue Feb 06 12:27:17 1996 +0100 (1996-02-06)
changeset 1478 2b8c2a7547ab
parent 1401 0c439768f45c
child 2469 b50b8c0eec01
permissions -rw-r--r--
expanded tabs
clasohm@1478
     1
(*  Title:      ZF/Nat.thy
clasohm@0
     2
    ID:         $Id$
clasohm@1478
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
lcp@435
     4
    Copyright   1994  University of Cambridge
clasohm@0
     5
clasohm@0
     6
Natural numbers in Zermelo-Fraenkel Set Theory 
clasohm@0
     7
*)
clasohm@0
     8
lcp@435
     9
Nat = Ordinal + Bool + "mono" +
clasohm@0
    10
consts
clasohm@1478
    11
    nat         ::      i
clasohm@1401
    12
    nat_case    ::      [i, i=>i, i]=>i
clasohm@1401
    13
    nat_rec     ::      [i, i, [i,i]=>i]=>i
clasohm@0
    14
lcp@753
    15
defs
clasohm@0
    16
clasohm@0
    17
    nat_def     "nat == lfp(Inf, %X. {0} Un {succ(i). i:X})"
clasohm@0
    18
clasohm@0
    19
    nat_case_def
clasohm@1478
    20
        "nat_case(a,b,k) == THE y. k=0 & y=a | (EX x. k=succ(x) & y=b(x))"
clasohm@0
    21
clasohm@0
    22
    nat_rec_def
clasohm@1478
    23
        "nat_rec(k,a,b) ==   
clasohm@1478
    24
          wfrec(Memrel(nat), k, %n f. nat_case(a, %m. b(m, f`m), n))"
clasohm@0
    25
clasohm@0
    26
end