handle nonmangled monomorphich the same way as mangled monomorphic when it comes to helper -- otherwise we can end up generating too tight type guards
--- a/src/HOL/Tools/ATP/atp_translate.ML Thu Aug 25 14:25:07 2011 +0200
+++ b/src/HOL/Tools/ATP/atp_translate.ML Thu Aug 25 14:25:07 2011 +0200
@@ -1447,7 +1447,7 @@
end
fun should_specialize_helper type_enc t =
- polymorphism_of_type_enc type_enc = Mangled_Monomorphic andalso
+ polymorphism_of_type_enc type_enc <> Polymorphic andalso
level_of_type_enc type_enc <> No_Types andalso
not (null (Term.hidden_polymorphism t))