src/ZF/univ.thy
author paulson
Fri, 16 Feb 1996 18:00:47 +0100
changeset 1512 ce37c64244c0
parent 124 858ab9a9b047
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.

(*  Title: 	ZF/univ.thy
    ID:         $Id$
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1992  University of Cambridge

The cumulative hierarchy and a small universe for recursive types

Standard notation for Vset(i) is V(i), but users might want V for a variable
*)

Univ = Arith + Sum + "mono" +
consts
    Limit       ::      "i=>o"
    Vfrom       ::      "[i,i]=>i"
    Vset        ::      "i=>i"
    Vrec        ::      "[i, [i,i]=>i] =>i"
    univ        ::      "i=>i"

translations
    "Vset(x)"   == 	"Vfrom(0,x)"

rules
    Limit_def   "Limit(i) == Ord(i) & 0<i & (ALL y. y<i --> succ(y)<i)"

    Vfrom_def   "Vfrom(A,i) == transrec(i, %x f. A Un (UN y:x. Pow(f`y)))"

    Vrec_def
   	"Vrec(a,H) == transrec(rank(a), %x g. lam z: Vset(succ(x)).      \
\                             H(z, lam w:Vset(x). g`rank(w)`w)) ` a"

    univ_def    "univ(A) == Vfrom(A,nat)"

end