src/ZF/Univ.thy
author wenzelm
Tue, 11 Dec 2001 16:00:26 +0100
changeset 12466 5f4182667032
parent 9395 1c9851cdfe9f
child 13163 e320a52ff711
permissions -rw-r--r--
added HOL-Library;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/univ.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   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!
6093
87bf8c03b169 eliminated global/local names;
wenzelm
parents: 6053
diff changeset
    11
  But Ind_Syntax.univ refers to the constant "Univ.univ"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
9395
1c9851cdfe9f Univ no longer requires Arith (really it never did)
paulson
parents: 6093
diff changeset
    14
Univ = Epsilon + Sum + Finite + mono +
3923
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    15
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    17
    Vfrom       :: [i,i]=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    18
    Vset        :: i=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    19
    Vrec        :: [i, [i,i]=>i] =>i
6053
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    20
    Vrecursor   :: [[i,i]=>i, i] =>i
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    21
    univ        :: i=>i
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
translations
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    24
    "Vset(x)"   ==      "Vfrom(0,x)"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
3923
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    26
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 516
diff changeset
    27
defs
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
    Vfrom_def   "Vfrom(A,i) == transrec(i, %x f. A Un (UN y:x. Pow(f`y)))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
    Vrec_def
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    31
        "Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 796
diff changeset
    32
                             H(z, lam w:Vset(x). g`rank(w)`w)) ` a"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
6053
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    34
    Vrecursor_def
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    35
        "Vrecursor(H,a) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    36
                                    H(lam w:Vset(x). g`rank(w)`w, z)) ` a"
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    37
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
    univ_def    "univ(A) == Vfrom(A,nat)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
end