src/ZF/Univ.thy
author paulson
Fri, 16 Feb 1996 18:00:47 +0100
changeset 1512 ce37c64244c0
parent 1478 2b8c2a7547ab
child 2469 b50b8c0eec01
permissions -rw-r--r--
Elimination of fully-functorial style. Type tactic changed to a type abbrevation (from a datatype). Constructor tactic and function apply deleted.
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
796
357a1f2dd07e now also depends upon Finite.thy
lcp
parents: 753
diff changeset
    14
Univ = Arith + Sum + Finite + "mono" +
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    16
    Vfrom       :: [i,i]=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    17
    Vset        :: i=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    18
    Vrec        :: [i, [i,i]=>i] =>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 1155
diff changeset
    19
    univ        :: i=>i
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
translations
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    22
    "Vset(x)"   ==      "Vfrom(0,x)"
0
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
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
    28
        "Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      
1155
928a16e02f9f removed \...\ inside strings
clasohm
parents: 796
diff changeset
    29
                             H(z, lam w:Vset(x). g`rank(w)`w)) ` a"
0
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