src/ZF/Epsilon.thy
author nipkow
Tue, 22 Mar 1994 08:24:14 +0100
changeset 288 b00ce6a1fe27
parent 124 858ab9a9b047
child 753 ec86863e87c8
permissions -rw-r--r--
Implemented "ordered rewriting": rules which merely permute variables, such as commutativity, are only applied if the term becaomes lexicographically smaller (according to some fixed ordering on the term structure).

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

Epsilon induction and recursion
*)

Epsilon = Nat + "mono" +
consts
    eclose,rank ::      "i=>i"
    transrec    ::      "[i, [i,i]=>i] =>i"

rules
  eclose_def	"eclose(A) == UN n:nat. nat_rec(n, A, %m r. Union(r))"
  transrec_def	"transrec(a,H) == wfrec(Memrel(eclose({a})), a, H)"
  rank_def    	"rank(a) == transrec(a, %x f. UN y:x. succ(f`y))"
end