src/HOLCF/Tools/fixrec.ML
changeset 32952 aeb1e44fbc19
parent 32149 ef59550a55d3
child 33004 715566791eb0
equal deleted inserted replaced
32951:83392f9d303f 32952:aeb1e44fbc19
   369        (Binding.name (n ^ "_simps"),
   369        (Binding.name (n ^ "_simps"),
   370          [Attrib.internal (K Simplifier.simp_add)]);
   370          [Attrib.internal (K Simplifier.simp_add)]);
   371       val simps1 : (Attrib.binding * thm list) list =
   371       val simps1 : (Attrib.binding * thm list) list =
   372         map (fn (n,xs) => (mk_bind n, map snd xs)) (names ~~ simps);
   372         map (fn (n,xs) => (mk_bind n, map snd xs)) (names ~~ simps);
   373       val simps2 : (Attrib.binding * thm list) list =
   373       val simps2 : (Attrib.binding * thm list) list =
   374         map (apsnd (fn thm => [thm])) (List.concat simps);
   374         map (apsnd (fn thm => [thm])) (flat simps);
   375       val (_, lthy'') = lthy'
   375       val (_, lthy'') = lthy'
   376         |> fold_map (LocalTheory.note Thm.generatedK) (simps1 @ simps2);
   376         |> fold_map (LocalTheory.note Thm.generatedK) (simps1 @ simps2);
   377     in
   377     in
   378       lthy''
   378       lthy''
   379     end
   379     end