src/ZF/Univ.thy
author lcp
Tue, 29 Nov 1994 00:31:31 +0100
changeset 753 ec86863e87c8
parent 516 1957113f0d7d
child 796 357a1f2dd07e
permissions -rw-r--r--
replaced "rules" by "defs"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title: 	ZF/univ.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
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
The cumulative hierarchy and a small universe for recursive types
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
Standard notation for Vset(i) is V(i), but users might want V for a variable
516
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 490
diff changeset
     9
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 490
diff changeset
    10
NOTE: univ(A) could be a translation; would simplify many proofs!
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 490
diff changeset
    11
  But Ind_Syntax.univ refers to the constant "univ"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
516
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 490
diff changeset
    14
Univ = Arith + Sum + "mono" +
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
consts
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    16
    Vfrom       :: "[i,i]=>i"
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    17
    Vset        :: "i=>i"
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    18
    Vrec        :: "[i, [i,i]=>i] =>i"
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 124
diff changeset
    19
    univ        :: "i=>i"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
translations
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
    "Vset(x)"   == 	"Vfrom(0,x)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 516
diff changeset
    24
defs
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
    Vfrom_def   "Vfrom(A,i) == transrec(i, %x f. A Un (UN y:x. Pow(f`y)))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
    Vrec_def
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
   	"Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
\                             H(z, lam w:Vset(x). g`rank(w)`w)) ` a"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
    univ_def    "univ(A) == Vfrom(A,nat)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
end