--- a/src/HOL/Tools/ATP/atp_problem_generate.ML Tue Jul 27 13:39:18 2021 +0200
+++ b/src/HOL/Tools/ATP/atp_problem_generate.ML Tue Jul 27 20:25:42 2021 +0200
@@ -2084,7 +2084,7 @@
| IVar (name, _) =>
map (term Elsewhere) args |> mk_aterm type_enc name []
| IAbs ((name, T), tm) =>
- if is_type_enc_higher_order type_enc then
+ if is_type_enc_higher_order type_enc orelse is_type_enc_fool type_enc then
AAbs (((name, native_atp_type_of_typ type_enc false 0 T), term Elsewhere tm),
map (term Elsewhere) args)
else