Denotational semantics as a foundation for cost recurrence extraction for functional languages. (5th July 2022)
- Record Type:
- Journal Article
- Title:
- Denotational semantics as a foundation for cost recurrence extraction for functional languages. (5th July 2022)
- Main Title:
- Denotational semantics as a foundation for cost recurrence extraction for functional languages
- Authors:
- DANNER, NORMAN
LICATA, DANIEL R. - Abstract:
- Abstract: A standard informal method for analyzing the asymptotic complexity of a program is to extract a recurrence that describes its cost in terms of the size of its input and then to compute a closed-form upper bound on that recurrence. We give a formal account of that method for functional programs in a higher order language with $\mathtt{let}$ -polymorphism. The method consists of two phases. In the first phase, a monadic translation is performed to extract a cost-annotated version of the original program. In the second phase, the extracted program is interpreted in a model. The key feature of this second phase is that different models describe different notions of size. This plays out in several ways. For example, when analyzing functions that take arguments of inductive types, different notions of size may be appropriate depending on the analysis. When analyzing polymorphic functions, our approach shows that one can formally describe the notion of size of an argument in terms of the data that is common to the notions of size for each type instance of the domain type. We give several examples of different models that formally justify various informal cost analyses to show the applicability of our approach.
- Is Part Of:
- Journal of functional programming. Volume 32(2022)
- Journal:
- Journal of functional programming
- Issue:
- Volume 32(2022)
- Issue Display:
- Volume 32, Issue 2022 (2022)
- Year:
- 2022
- Volume:
- 32
- Issue:
- 2022
- Issue Sort Value:
- 2022-0032-2022-0000
- Page Start:
- Page End:
- Publication Date:
- 2022-07-05
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S095679682200003X ↗
- 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:
- 22241.xml