Eliminating dependent pattern matching without K. (30th August 2016)
- Record Type:
- Journal Article
- Title:
- Eliminating dependent pattern matching without K. (30th August 2016)
- Main Title:
- Eliminating dependent pattern matching without K
- Authors:
- COCKX, JESPER
DEVRIESE, DOMINIQUE
PIESSENS, FRANK - Abstract:
- Abstract: Dependent pattern matching is an intuitive way to write programs and proofs in dependently typed languages. It is reminiscent of both pattern matching in functional languages and case analysis in on-paper mathematics. However, in general, it is incompatible with new type theories such as homotopy type theory (HoTT). As a consequence, proofs in such theories are typically harder to write and to understand. The source of this incompatibility is the reliance of dependent pattern matching on the so-called K axiom – also known as the uniqueness of identity proofs – which is inadmissible in HoTT. In this paper, we propose a new criterion for dependent pattern matching without K, and prove it correct by a translation to eliminators in the style of Goguen et al . (2006 Algebra, Meaning, and Computation ). Our criterion is both less restrictive than existing proposals, and solves a previously undetected problem in the old criterion offered by Agda. It has been implemented in Agda and is the first to be supported by a formal proof. Thus, it brings the benefits of dependent pattern matching to contexts where we cannot assume K, such as HoTT.
- 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-08-30
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S0956796816000174 ↗
- 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