constdefs
authorpaulson
Thu, 28 Jan 1999 18:10:17 +0100
changeset 6159 833b76d0e6dc
parent 6158 981f96a598f5
child 6160 32c0b8f57bb7
constdefs
src/ZF/ex/Term.thy
--- a/src/ZF/ex/Term.thy	Thu Jan 28 10:21:45 1999 +0100
+++ b/src/ZF/ex/Term.thy	Thu Jan 28 18:10:17 1999 +0100
@@ -20,27 +20,24 @@
     type_intrs  "[list_univ RS subsetD]"
 *)
 
-consts
+constdefs
   term_rec  :: [i, [i,i,i]=>i] => i
-  term_map  :: [i=>i, i] => i
-  term_size :: i=>i
-  reflect   :: i=>i
-  preorder  :: i=>i
-  postorder :: i=>i
-
-defs
-  term_rec_def
    "term_rec(t,d) == 
-   Vrec(t, %t g. term_case(%x zs. d(x, zs, map(%z. g`z, zs)), t))"
+    Vrec(t, %t g. term_case(%x zs. d(x, zs, map(%z. g`z, zs)), t))"
 
-  term_map_def  "term_map(f,t) == term_rec(t, %x zs rs. Apply(f(x), rs))"
+  term_map  :: [i=>i, i] => i
+    "term_map(f,t) == term_rec(t, %x zs rs. Apply(f(x), rs))"
 
-  term_size_def "term_size(t) == term_rec(t, %x zs rs. succ(list_add(rs)))"
+  term_size :: i=>i
+   "term_size(t) == term_rec(t, %x zs rs. succ(list_add(rs)))"
 
-  reflect_def   "reflect(t) == term_rec(t, %x zs rs. Apply(x, rev(rs)))"
+  reflect   :: i=>i
+    "reflect(t) == term_rec(t, %x zs rs. Apply(x, rev(rs)))"
 
-  preorder_def  "preorder(t) == term_rec(t, %x zs rs. Cons(x, flat(rs)))"
+  preorder  :: i=>i
+    "preorder(t) == term_rec(t, %x zs rs. Cons(x, flat(rs)))"
 
-  postorder_def "postorder(t) == term_rec(t, %x zs rs. flat(rs) @ [x])"
+  postorder :: i=>i
+    "postorder(t) == term_rec(t, %x zs rs. flat(rs) @ [x])"
 
 end