comparison lib/top.ur @ 330:f307cdd08d81

Remove unneeded 'rec' in Reduce
author Adam Chlipala <adamc@hcoop.net>
date Sat, 13 Sep 2008 10:33:30 -0400
parents eec65c11d3e2
children 02d15d81ae9b
comparison
equal deleted inserted replaced
329:eec65c11d3e2 330:f307cdd08d81
6 6
7 fun compose (t1 ::: Type) (t2 ::: Type) (t3 ::: Type) (f1 : t2 -> t3) (f2 : t1 -> t2) (x : t1) = f1 (f2 x) 7 fun compose (t1 ::: Type) (t2 ::: Type) (t3 ::: Type) (f1 : t2 -> t3) (f2 : t1 -> t2) (x : t1) = f1 (f2 x)
8 8
9 fun txt (t ::: Type) (ctx ::: {Unit}) (use ::: {Type}) (sh : show t) (v : t) = cdata (show sh v) 9 fun txt (t ::: Type) (ctx ::: {Unit}) (use ::: {Type}) (sh : show t) (v : t) = cdata (show sh v)
10 10
11 val foldTR2 (tf1 :: Type -> Type) (tf2 :: Type -> Type) (tr :: {Type} -> Type) 11 fun foldTR2 (tf1 :: Type -> Type) (tf2 :: Type -> Type) (tr :: {Type} -> Type)
12 (f : nm :: Name -> t :: Type -> rest :: {Type} -> [nm] ~ rest 12 (f : nm :: Name -> t :: Type -> rest :: {Type} -> [nm] ~ rest
13 -> tf1 t -> tf2 t -> tr rest -> tr ([nm = t] ++ rest)) 13 -> tf1 t -> tf2 t -> tr rest -> tr ([nm = t] ++ rest))
14 (i : tr []) = 14 (i : tr []) =
15 fold [fn r :: {Type} => $(mapTT tf1 r) -> $(mapTT tf2 r) -> tr r] 15 fold [fn r :: {Type} => $(mapTT tf1 r) -> $(mapTT tf2 r) -> tr r]
16 (fn (nm :: Name) (t :: Type) (rest :: {Type}) (acc : _ -> _ -> tr rest) => 16 (fn (nm :: Name) (t :: Type) (rest :: {Type}) (acc : _ -> _ -> tr rest) =>