export one more function
authorblanchet
Thu, 02 May 2013 14:04:56 +0200
changeset 51860 75655198442e
parent 51859 09d24ea3f140
child 51861 0a04c2a89ea9
export one more function
src/HOL/BNF/Tools/bnf_fp_def_sugar.ML
--- a/src/HOL/BNF/Tools/bnf_fp_def_sugar.ML	Thu May 02 12:35:02 2013 +0200
+++ b/src/HOL/BNF/Tools/bnf_fp_def_sugar.ML	Thu May 02 14:04:56 2013 +0200
@@ -21,6 +21,7 @@
 
   val fp_sugar_of: local_theory -> string -> fp_sugar option
 
+  val exists_subtype_in: typ list -> typ -> bool
   val indexify_fst: ''a list -> (int -> ''a * 'b -> 'c) -> ''a * 'b -> 'c
   val build_map: local_theory -> (typ * typ -> term) -> typ * typ -> term
 
@@ -143,7 +144,7 @@
     let val (xs1, xs2, xs3, xs4) = split_list4 xs;
     in (x1 :: xs1, x2 :: xs2, x3 :: xs3, x4 :: xs4) end;
 
-fun exists_subtype_in Ts = exists_subtype (member (op =) Ts);
+val exists_subtype_in = Term.exists_subtype o member (op =);
 
 fun resort_tfree S (TFree (s, _)) = TFree (s, S);