src/ZF/Univ.thy
author wenzelm
Tue, 24 Nov 1998 12:03:09 +0100
changeset 5953 d6017ce6b93e
parent 3940 1d5bee4d047f
child 6053 8a1059aa01f0
permissions -rw-r--r--
setup Blast.setup; setup Clasimp.setup;
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
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    22
    univ        :: i=>i
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
translations
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    25
    "Vset(x)"   ==      "Vfrom(0,x)"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
3940
wenzelm
parents: 3923
diff changeset
    27
local
3923
c257b82a1200 global;
wenzelm
parents: 2469
diff changeset
    28
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 516
diff changeset
    29
defs
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
    Vfrom_def   "Vfrom(A,i) == transrec(i, %x f. A Un (UN y:x. Pow(f`y)))"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
    Vrec_def
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    33
        "Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 796
diff changeset
    34
                             H(z, lam w:Vset(x). g`rank(w)`w)) ` a"
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
    univ_def    "univ(A) == Vfrom(A,nat)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
end