A characterization of lambda-terms transforming numerals. (22nd July 2016)
- Record Type:
- Journal Article
- Title:
- A characterization of lambda-terms transforming numerals. (22nd July 2016)
- Main Title:
- A characterization of lambda-terms transforming numerals
- Authors:
- PARYS, PAWEŁ
- Abstract:
- Abstract: It is well known that simply typed λ-terms can be used to represent numbers, as well as some other data types. We show that λ-terms of each fixed (but possibly very complicated) type can be described by a finite piece of information (a set of appropriately defined intersection types) and by a vector of natural numbers. On the one hand, the description is compositional: having only the finite piece of information for two closed λ-terms M and N, we can determine its counterpart for MN, and a linear transformation that applied to the vectors of numbers for M and N gives us the vector for MN . On the other hand, when a λ-term represents a natural number, then this number is approximated by a number in the vector corresponding to this λ-term. As a consequence, we prove that in a λ-term of a fixed type, we can store only a fixed number of natural numbers, in such a way that they can be extracted using λ-terms. More precisely, while representing k numbers in a closed λ-term of some type, we only require that there are k closed λ-terms M 1, . . ., Mk such that Mi takes as argument the λ-term representing the k -tuple, and returns the i -th number in the tuple (we do not require that, using λ-calculus, one can construct the representation of the k -tuple out of the k numbers in the tuple). Moreover, the same result holds when we allow that the numbers can be extracted approximately, up to some error (even when we only want to know whether a set is bounded or not). All theAbstract: It is well known that simply typed λ-terms can be used to represent numbers, as well as some other data types. We show that λ-terms of each fixed (but possibly very complicated) type can be described by a finite piece of information (a set of appropriately defined intersection types) and by a vector of natural numbers. On the one hand, the description is compositional: having only the finite piece of information for two closed λ-terms M and N, we can determine its counterpart for MN, and a linear transformation that applied to the vectors of numbers for M and N gives us the vector for MN . On the other hand, when a λ-term represents a natural number, then this number is approximated by a number in the vector corresponding to this λ-term. As a consequence, we prove that in a λ-term of a fixed type, we can store only a fixed number of natural numbers, in such a way that they can be extracted using λ-terms. More precisely, while representing k numbers in a closed λ-term of some type, we only require that there are k closed λ-terms M 1, . . ., Mk such that Mi takes as argument the λ-term representing the k -tuple, and returns the i -th number in the tuple (we do not require that, using λ-calculus, one can construct the representation of the k -tuple out of the k numbers in the tuple). Moreover, the same result holds when we allow that the numbers can be extracted approximately, up to some error (even when we only want to know whether a set is bounded or not). All the results remain true when we allow the Y combinator (recursion) in our λ-terms, as well as uninterpreted constants. … (more)
- Is Part Of:
- Journal of functional programming. Volume 26(2016)
- Journal:
- Journal of functional programming
- Issue:
- Volume 26(2016)
- Issue Display:
- Volume 26, Issue 2016 (2016)
- Year:
- 2016
- Volume:
- 26
- Issue:
- 2016
- Issue Sort Value:
- 2016-0026-2016-0000
- Page Start:
- Page End:
- Publication Date:
- 2016-07-22
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S0956796816000113 ↗
- Languages:
- English
- ISSNs:
- 0956-7968
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library STI - ELD Digital store
- Ingest File:
- 606.xml