more careful unfolding of internal constants
authortraytel
Sun, 09 Mar 2014 22:27:04 +0100
changeset 56013 508836bbfed4
parent 56012 158dc03db8be
child 56014 aaa3f2365fc5
more careful unfolding of internal constants
src/HOL/Tools/BNF/bnf_comp.ML
--- a/src/HOL/Tools/BNF/bnf_comp.ML	Sun Mar 09 21:40:41 2014 +0100
+++ b/src/HOL/Tools/BNF/bnf_comp.ML	Sun Mar 09 22:27:04 2014 +0100
@@ -765,9 +765,9 @@
       |> mk_Frees' "f" (map2 (curry op -->) As Bs)
       ||>> mk_Frees' "R" (map2 mk_pred2T As Bs);
 
-    val map_unfolds = #map_unfolds unfold_set;
+    val map_unfolds = map (unfold_thms lthy [id_bnf_comp_def]) (#map_unfolds unfold_set);
     val set_unfoldss = #set_unfoldss unfold_set;
-    val rel_unfolds = #rel_unfolds unfold_set;
+    val rel_unfolds = map (unfold_thms lthy [id_bnf_comp_def]) (#rel_unfolds unfold_set);
 
     val expand_maps = expand_id_bnf_comp_def o
       fold expand_term_const (map (single o Logic.dest_equals o Thm.prop_of) map_unfolds);