equal
deleted
inserted
replaced
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 |