1.1 --- a/src/HOL/Tools/ATP/atp_translate.ML Wed Jul 06 17:19:34 2011 +0100
1.2 +++ b/src/HOL/Tools/ATP/atp_translate.ML Wed Jul 06 17:19:34 2011 +0100
1.3 @@ -752,7 +752,7 @@
1.4 | generic_mangled_type_name f (ATerm (name, tys)) =
1.5 f name ^ "(" ^ space_implode "," (map (generic_mangled_type_name f) tys)
1.6 ^ ")"
1.7 - | generic_mangled_type_name f _ = raise Fail "unexpected type abstraction"
1.8 + | generic_mangled_type_name _ _ = raise Fail "unexpected type abstraction"
1.9
1.10 val bool_atype = AType (`I tptp_bool_type)
1.11
1.12 @@ -771,7 +771,7 @@
1.13 fun to_afun f1 f2 tys = AFun (f1 (hd tys), f2 (nth tys 1))
1.14 fun to_fo 0 ty = if pred_sym then bool_atype else to_atype ty
1.15 | to_fo ary (ATerm (_, tys)) = to_afun to_atype (to_fo (ary - 1)) tys
1.16 - | to_fo ary _ = raise Fail "unexpected type abstraction"
1.17 + | to_fo _ _ = raise Fail "unexpected type abstraction"
1.18 fun to_ho (ty as ATerm ((s, _), tys)) =
1.19 if s = tptp_fun_type then to_afun to_ho to_ho tys else to_atype ty
1.20 | to_ho _ = raise Fail "unexpected type abstraction"
1.21 @@ -1477,7 +1477,7 @@
1.22 fun is_var_positively_naked_in_term _ (SOME false) _ accum = accum
1.23 | is_var_positively_naked_in_term name _ (ATerm ((s, _), tms)) accum =
1.24 accum orelse (is_tptp_equal s andalso member (op =) tms (ATerm (name, [])))
1.25 - | is_var_positively_naked_in_term name _ _ _ = true
1.26 + | is_var_positively_naked_in_term _ _ _ _ = true
1.27 fun should_predicate_on_var_in_formula pos phi (SOME true) name =
1.28 formula_fold pos (is_var_positively_naked_in_term name) phi false
1.29 | should_predicate_on_var_in_formula _ _ _ _ = true
1.30 @@ -1489,7 +1489,8 @@
1.31 CombConst (type_tag, T --> T, [T])
1.32 |> enforce_type_arg_policy_in_combterm ctxt format type_enc
1.33 |> ho_term_from_combterm ctxt format nonmono_Ts type_enc (Top_Level pos)
1.34 - |> (fn ATerm (s, tms) => ATerm (s, tms @ [tm]))
1.35 + |> (fn ATerm (s, tms) => ATerm (s, tms @ [tm])
1.36 + | _ => raise Fail "unexpected lambda-abstraction")
1.37 and ho_term_from_combterm ctxt format nonmono_Ts type_enc =
1.38 let
1.39 fun aux site u =