Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-2lccl Total loading time: 0 Render date: 2024-04-26T08:47:09.037Z Has data issue: false hasContentIssue false

13 - Sets and subsets

Published online by Cambridge University Press:  05 November 2014

Rob Nederpelt
Affiliation:
Technische Universiteit Eindhoven, The Netherlands
Herman Geuvers
Affiliation:
Radboud Universiteit Nijmegen
Get access

Summary

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 {xS | P x} of all elements of S satisfying P.

Type
Chapter
Information
Type Theory and Formal Proof
An Introduction
, pp. 279 - 304
Publisher: Cambridge University Press
Print publication year: 2014

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.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@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.

  • Sets and subsets
  • Rob Nederpelt, Technische Universiteit Eindhoven, The Netherlands, Herman Geuvers, Radboud Universiteit Nijmegen
  • Book: Type Theory and Formal Proof
  • Online publication: 05 November 2014
  • Chapter DOI: https://doi.org/10.1017/CBO9781139567725.016
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.

  • Sets and subsets
  • Rob Nederpelt, Technische Universiteit Eindhoven, The Netherlands, Herman Geuvers, Radboud Universiteit Nijmegen
  • Book: Type Theory and Formal Proof
  • Online publication: 05 November 2014
  • Chapter DOI: https://doi.org/10.1017/CBO9781139567725.016
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.

  • Sets and subsets
  • Rob Nederpelt, Technische Universiteit Eindhoven, The Netherlands, Herman Geuvers, Radboud Universiteit Nijmegen
  • Book: Type Theory and Formal Proof
  • Online publication: 05 November 2014
  • Chapter DOI: https://doi.org/10.1017/CBO9781139567725.016
Available formats
×