Published online by Cambridge University Press: 29 May 2025
8.1 Linearity
The purpose of the type systems for linearity is to control the number of times a resource is used. In the specific case of the π-calculus the resources are the names.
The linear types for the π-calculus are a refinement of the i/o types that allow us to impose not only polarity, but also multiplicity constraints: we can say that a name should be used in input or in output only once. A linear type can take three forms: ℓo T, ℓi Tand ℓ# T. They are, respectively, the linear versions of the types o T, i T, and # T. A type ℓo T for a name gives the capability of transmitting a value of type T along that name once. Dually, ℓi T gives the capability of receiving a value of type T once. Finally ℓ# T is the type of a name that can be used once for transmitting and once for receiving a value of type T; type ℓ# T is the union of the capabilities offered by ℓi T and ℓo T. (By contrast with # T, the linear type ℓ# T does not give the right to test the identity of a name; a name that is used both for a communication and for a test is not linear, because it is used twice.) For instance, the processes
are well typed in {a : ℓo T, b : T, c : # ℓo T}. Note that the process ca does not itself exercise the output capability on a, but passes it to another process. By contrast, the same typing is not respected by the processes
We add linear types to a simplv-tvped π-calculus with i/o types; is the resulting calculus. Types, and related operations, are presented in Table 8.1. Moving from to all typing rules for processes and values, except that for restriction, that for matching, and that for subsumption, have to be modified.
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.
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.
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.