Hostname: page-component-77c78cf97d-7dld4 Total loading time: 0 Render date: 2026-04-26T22:45:13.789Z Has data issue: false hasContentIssue false

Eliminating dependent pattern matching without K

Published online by Cambridge University Press:  30 August 2016

JESPER COCKX
Affiliation:
iMinds-Distrinet, KU Leuven (e-mail: jesper.cockx@cs.kuleuven.be, dominique.devriese@cs.kuleuven.be, frank.piessens@cs.kuleuven.be)
DOMINIQUE DEVRIESE
Affiliation:
iMinds-Distrinet, KU Leuven (e-mail: jesper.cockx@cs.kuleuven.be, dominique.devriese@cs.kuleuven.be, frank.piessens@cs.kuleuven.be)
FRANK PIESSENS
Affiliation:
iMinds-Distrinet, KU Leuven (e-mail: jesper.cockx@cs.kuleuven.be, dominique.devriese@cs.kuleuven.be, frank.piessens@cs.kuleuven.be)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Research Article
Copyright
Copyright © Cambridge University Press 2016 
Submit a response

Discussions

No Discussions have been published for this article.