src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML
changeset 53890 5f647a5bd46e
parent 53889 d1bd94eb5d0e
child 53899 e55b634ff9fb
--- a/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Wed Sep 25 16:43:46 2013 +0200
+++ b/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Wed Sep 25 16:43:46 2013 +0200
@@ -577,9 +577,9 @@
     if is_none maybe_sel_eqn then (I, I, I) else
     let
       val {fun_args, rhs_term, ... } = the maybe_sel_eqn;
-      fun rewrite_q t = if has_call t then @{term False} else @{term True};
-      fun rewrite_g t = if has_call t then undef_const else t;
-      fun rewrite_h t = if has_call t then HOLogic.mk_tuple (snd (strip_comb t)) else undef_const;
+      fun rewrite_q _ t = if has_call t then @{term False} else @{term True};
+      fun rewrite_g _ t = if has_call t then undef_const else t;
+      fun rewrite_h _ t = if has_call t then HOLogic.mk_tuple (snd (strip_comb t)) else undef_const;
       fun massage f t = massage_direct_corec_call lthy has_call f [] rhs_term |> abs_tuple fun_args;
     in
       (massage rewrite_q,
@@ -604,8 +604,7 @@
       | rewrite _ U T t = if is_Free t andalso has_call t then Inr_const U T $ HOLogic.unit else t;
     fun massage NONE t = t
       | massage (SOME {fun_args, rhs_term, ...}) t =
-        massage_indirect_corec_call lthy has_call (rewrite []) []
-          (range_type (fastype_of t)) rhs_term
+        massage_indirect_corec_call lthy has_call rewrite [] (range_type (fastype_of t)) rhs_term
         |> abs_tuple fun_args;
   in
     massage maybe_sel_eqn