src/ZF/Univ.thy
author paulson
Fri, 08 Jan 1999 13:20:59 +0100
changeset 6071 1b2392ac5752
parent 6053 8a1059aa01f0
child 6093 87bf8c03b169
permissions -rw-r--r--
removal of DO_GOAL
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!
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
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 1478
diff changeset
    14
Univ = Arith + Sum + Finite + mono +
3923
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    15
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    16
global
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    17
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    19
    Vfrom       :: [i,i]=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    20
    Vset        :: i=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    21
    Vrec        :: [i, [i,i]=>i] =>i
6053
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    22
    Vrecursor   :: [[i,i]=>i, i] =>i
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    23
    univ        :: i=>i
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
translations
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    26
    "Vset(x)"   ==      "Vfrom(0,x)"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
3940
wenzelm
parents: 3923
diff changeset
    28
local
3923
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    29
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 516
diff changeset
    30
defs
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
    Vfrom_def   "Vfrom(A,i) == transrec(i, %x f. A Un (UN y:x. Pow(f`y)))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
    Vrec_def
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    34
        "Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 796
diff changeset
    35
                             H(z, lam w:Vset(x). g`rank(w)`w)) ` a"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
6053
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    37
    Vrecursor_def
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    38
        "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
    39
                                    H(lam w:Vset(x). g`rank(w)`w, z)) ` a"
8a1059aa01f0 new inductive, datatype and primrec packages, etc.
paulson
parents: 3940
diff changeset
    40
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
    univ_def    "univ(A) == Vfrom(A,nat)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
end