A representation theorem for second-order functionals. (2015)
- Record Type:
- Journal Article
- Title:
- A representation theorem for second-order functionals. (2015)
- Main Title:
- A representation theorem for second-order functionals
- Authors:
- JASKELIOFF, MAURO
O'CONNOR, RUSSELL - Abstract:
- Abstract: Representation theorems relate seemingly complex objects to concrete, more tractable ones. In this paper, we take advantage of the abstraction power of category theory and provide a datatype-generic representation theorem. More precisely, we prove a representation theorem for a wide class of second-order functionals which are polymorphic over a class of functors. Types polymorphic over a class of functors are easily representable in languages such as Haskell, but are difficult to analyse and reason about. The concrete representation provided by the theorem is easier to analyse, but it might not be as convenient to implement. Therefore, depending on the task at hand, the change of representation may prove valuable in one direction or the other. We showcase the usefulness of the representation theorem with a range of examples. Concretely, we show how the representation theorem can be used to prove that traversable functors are finitary containers, how coalgebras of a parameterised store comonad relate to very well-behaved lenses, and how algebraic effects might be implemented in a functional language.
- Is Part Of:
- Journal of functional programming. Volume 25(2015)
- Journal:
- Journal of functional programming
- Issue:
- Volume 25(2015)
- Issue Display:
- Volume 25, Issue 2015 (2015)
- Year:
- 2015
- Volume:
- 25
- Issue:
- 2015
- Issue Sort Value:
- 2015-0025-2015-0000
- Page Start:
- Page End:
- Publication Date:
- 2015
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S0956796815000088 ↗
- 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:
- 4776.xml