| author | paulson |
| Fri, 08 Jan 1999 13:20:59 +0100 | |
| changeset 6071 | 1b2392ac5752 |
| parent 6053 | 8a1059aa01f0 |
| child 6093 | 87bf8c03b169 |
| permissions | -rw-r--r-- |
| 1478 | 1 |
(* Title: ZF/univ.thy |
| 0 | 2 |
ID: $Id$ |
| 1478 | 3 |
Author: Lawrence C Paulson, Cambridge University Computer Laboratory |
| 0 | 4 |
Copyright 1992 University of Cambridge |
5 |
||
6 |
The cumulative hierarchy and a small universe for recursive types |
|
7 |
||
8 |
Standard notation for Vset(i) is V(i), but users might want V for a variable |
|
| 516 | 9 |
|
10 |
NOTE: univ(A) could be a translation; would simplify many proofs! |
|
11 |
But Ind_Syntax.univ refers to the constant "univ" |
|
| 0 | 12 |
*) |
13 |
||
| 2469 | 14 |
Univ = Arith + Sum + Finite + mono + |
| 3923 | 15 |
|
16 |
global |
|
17 |
||
| 0 | 18 |
consts |
| 1401 | 19 |
Vfrom :: [i,i]=>i |
20 |
Vset :: i=>i |
|
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 | 23 |
univ :: i=>i |
| 0 | 24 |
|
25 |
translations |
|
| 1478 | 26 |
"Vset(x)" == "Vfrom(0,x)" |
| 0 | 27 |
|
| 3940 | 28 |
local |
| 3923 | 29 |
|
| 753 | 30 |
defs |
| 0 | 31 |
Vfrom_def "Vfrom(A,i) == transrec(i, %x f. A Un (UN y:x. Pow(f`y)))" |
32 |
||
33 |
Vrec_def |
|
| 1478 | 34 |
"Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)). |
| 1155 | 35 |
H(z, lam w:Vset(x). g`rank(w)`w)) ` a" |
| 0 | 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 | 41 |
univ_def "univ(A) == Vfrom(A,nat)" |
42 |
||
43 |
end |