conceal prim(co)rec definitions
authorblanchet
Fri, 18 Oct 2013 15:19:21 +0200
changeset 54154 3fc041880014
parent 54153 67487a607ce2
child 54155 b964fad0cbbd
conceal prim(co)rec definitions
src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML
--- a/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Fri Oct 18 15:12:04 2013 +0200
+++ b/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Fri Oct 18 15:19:21 2013 +0200
@@ -283,7 +283,8 @@
     (recs, ctr_poss)
     |-> map2 (fn recx => fn ctr_pos => list_comb (recx, rec_args) |> permute_args ctr_pos)
     |> Syntax.check_terms lthy
-    |> map3 (fn b => fn mx => fn t => ((b, mx), ((Binding.map_name Thm.def_name b, []), t))) bs mxs
+    |> map3 (fn b => fn mx => fn t =>
+      ((b, mx), ((Binding.conceal (Binding.map_name Thm.def_name b), []), t))) bs mxs
   end;
 
 fun find_rec_calls has_call (eqn_data : eqn_data) =
@@ -777,7 +778,8 @@
     |> map2 (fn Ts => fn t => if length Ts = 0 then t $ HOLogic.unit else t) arg_Tss
     |> map2 currys arg_Tss
     |> Syntax.check_terms lthy
-    |> map3 (fn b => fn mx => fn t => ((b, mx), ((Binding.map_name Thm.def_name b, []), t))) bs mxs
+    |> map3 (fn b => fn mx => fn t =>
+      ((b, mx), ((Binding.conceal (Binding.map_name Thm.def_name b), []), t))) bs mxs
     |> rpair exclss'
   end;