src/HOL/TPTP/TPTP_Parser/tptp_interpret.ML
changeset 72511 460d743010bc
parent 69597 ff784d5a5bfb
child 74561 8e6c973003c8
equal deleted inserted replaced
72510:a471730347e0 72511:460d743010bc
   780       (strip_prod_type ty1 @ tys2, ty3)
   780       (strip_prod_type ty1 @ tys2, ty3)
   781     end
   781     end
   782   | dest_fn_type ty = ([], ty)
   782   | dest_fn_type ty = ([], ty)
   783 
   783 
   784 fun resolve_include_path path_prefixes path_suffix =
   784 fun resolve_include_path path_prefixes path_suffix =
   785   case find_first (fn prefix => File.exists (Path.append prefix path_suffix))
   785   case find_first (fn prefix => File.exists (prefix + path_suffix))
   786          path_prefixes of
   786          path_prefixes of
   787     SOME prefix => Path.append prefix path_suffix
   787     SOME prefix => prefix + path_suffix
   788   | NONE => error ("Cannot find include file " ^ Path.print path_suffix)
   788   | NONE => error ("Cannot find include file " ^ Path.print path_suffix)
   789 
   789 
   790 fun is_type_type (Fmla_type (Atom (THF_Atom_term (Term_FuncG (TypeSymbol Type_Type, [], []))))) =
   790 fun is_type_type (Fmla_type (Atom (THF_Atom_term (Term_FuncG (TypeSymbol Type_Type, [], []))))) =
   791     true
   791     true
   792   | is_type_type (Defined_type Type_Type) = true
   792   | is_type_type (Defined_type Type_Type) = true