src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML
changeset 55606 3fc041880014
parent 55605 67487a607ce2
child 55607 b964fad0cbbd
     1.1 --- a/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Fri Oct 18 15:12:04 2013 +0200
     1.2 +++ b/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Fri Oct 18 15:19:21 2013 +0200
     1.3 @@ -283,7 +283,8 @@
     1.4      (recs, ctr_poss)
     1.5      |-> map2 (fn recx => fn ctr_pos => list_comb (recx, rec_args) |> permute_args ctr_pos)
     1.6      |> Syntax.check_terms lthy
     1.7 -    |> map3 (fn b => fn mx => fn t => ((b, mx), ((Binding.map_name Thm.def_name b, []), t))) bs mxs
     1.8 +    |> map3 (fn b => fn mx => fn t =>
     1.9 +      ((b, mx), ((Binding.conceal (Binding.map_name Thm.def_name b), []), t))) bs mxs
    1.10    end;
    1.11  
    1.12  fun find_rec_calls has_call (eqn_data : eqn_data) =
    1.13 @@ -777,7 +778,8 @@
    1.14      |> map2 (fn Ts => fn t => if length Ts = 0 then t $ HOLogic.unit else t) arg_Tss
    1.15      |> map2 currys arg_Tss
    1.16      |> Syntax.check_terms lthy
    1.17 -    |> map3 (fn b => fn mx => fn t => ((b, mx), ((Binding.map_name Thm.def_name b, []), t))) bs mxs
    1.18 +    |> map3 (fn b => fn mx => fn t =>
    1.19 +      ((b, mx), ((Binding.conceal (Binding.map_name Thm.def_name b), []), t))) bs mxs
    1.20      |> rpair exclss'
    1.21    end;
    1.22