Published online by Cambridge University Press: 05 November 2014
Dealing with subsets in λD
In type theory, sets are not directly represented, although we have often treated sets as types (i.e. objects of type *) in the previous chapters. We wrote *s instead of * to underline this. However, types and sets have very different backgrounds. In Chapters 2 to 6, we introduced types as formal expressions, in order to eliminate undesired properties from the (‘free’) untyped lambda calculus. Sets, on the other hand, are mathematical constructs, meant to enable us to talk about collections of mathematical objects.
Until now, considering sets as types has worked out fine. But we may expect serious problems when it comes to subsets. The reason is that the Uniqueness of Types property (see e.g. Lemma 10.4.10) conflicts with the ‘natural’ view on subsets. For example, let S be a set and T a proper subset of S. Now let c be an element of S. In type theory this could be expressed as c: S. But what if we wish to express that c is also an element of the subset T? Then c: T doesn't work, because types S and T are different, hence Uniqueness of Types would be violated.
As another example, let P be a property of elements in S. Then one can form the set {x ∈ S | P x} of all elements of S satisfying P.
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.