Skip to main content Accessibility help
×
Hostname: page-component-5b777bbd6c-sbgtn Total loading time: 0 Render date: 2025-06-20T19:34:16.126Z Has data issue: false hasContentIssue false

13 - Comparing First-Order and Higher-Order Calculi

Published online by Cambridge University Press:  29 May 2025

Davide Sangiorgi
Affiliation:
Institut National de Recherche en Informatique et en Automatique (INRIA), Rocquencourt
David Walker
Affiliation:
University of Oxford
Get access

Summary

13.1 Compiling higher order into first order

Passing processes looks like a drastic departure from passing names. We show in this section and the next, however, that process-passing can be faithfully compiled down to name-passing. We present two main compilations. The second is an optimization of the first. Moreover, the second, unlike the first, is also defined on calculi with recursive types. However, the first compilation is mathematically easier to work with.

We begin with the first compilation, which we call D. The communication of a higher-order value v is translated as the communication of a private name that acts as a pointer to (the translation of) v and that the recipient can use to trigger a copy of (the translation of) v, with appropriate arguments. For instance a process is translated to the process a recipient of the pointer y can use it to activate as many copies of as needed, with appropriate arguments. The compilation separates the acts of copying and of activating the value (x).R; copying is rendered by the replication, and activation by communications along the pointer y. Here are some simple examples of how the compilation works. We omit, for now, all type annotations.

In the example above, it is important that the trigger name y is private: if it were not, a process in the surrounding environment could interfere with the second communication step.

The examples above show translations of applications vw in which v is a name; in this case the application is translated in the same way as an output vw. Here is an example in which v is an abstraction (it is similar to Example 13.1.1, except that (z). R is the argument of an application, rather than the value being output):

The compilation modifies types: a name used in HOπ to exchange processes becomes, in π-calculus, a name used for exchanging other names. The definition of the compilation on types, type environments, values, and terms is given in Table 13.1.

Type
Chapter
Information
The Pi-Calculus
A Theory of Mobile Processes
, pp. 383 - 414
Publisher: Cambridge University Press
Print publication year: 2001

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Book purchase

Temporarily unavailable

Save book to Kindle

To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×