made MaSh more robust in the face of duplicate "nicknames" (which can happen e.g. if you have a lemma called foo(1) and another called foo_1 in the same theory)
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML Thu Nov 01 13:32:57 2012 +0100
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML Thu Nov 01 15:00:48 2012 +0100
@@ -783,7 +783,8 @@
else
let
val all_names =
- facts |> map snd |> map (rpair () o nickname_of) |> Symtab.make
+ Symtab.empty
+ |> fold Symtab.update (facts |> map (rpair () o nickname_of o snd))
fun deps_of status th =
if status = Non_Rec_Def orelse status = Rec_Def then
SOME []