Term.has_abs;
authorwenzelm
Fri, 21 Sep 2007 22:51:10 +0200
changeset 24670 9aae962b1d56
parent 24669 4579eac2c997
child 24671 35075a1e9599
Term.has_abs;
src/Pure/envir.ML
--- a/src/Pure/envir.ML	Fri Sep 21 22:51:08 2007 +0200
+++ b/src/Pure/envir.ML	Fri Sep 21 22:51:10 2007 +0200
@@ -238,14 +238,10 @@
   | eta _ = raise SAME
 and etah t = (eta t handle SAME => t);
 
-fun has_abs (Abs _) = true
-  | has_abs (t $ u) = has_abs t orelse has_abs u
-  | has_abs _ = false;
-
 in
 
 fun eta_contract t =
-  if has_abs t then etah t else t;
+  if Term.has_abs t then etah t else t;
 
 val beta_eta_contract = eta_contract o beta_norm;