{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,10]],"date-time":"2026-11-10T18:38:22Z","timestamp":1794335902222,"version":"4.9.0"},"reference-count":42,"publisher":"Cambridge University Press (CUP)","license":[{"start":{"date-parts":[[2016,8,30]],"date-time":"2016-08-30T00:00:00Z","timestamp":1472515200000},"content-version":"unspecified","delay-in-days":242,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2016]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    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 \u2013 also known as the uniqueness of identity proofs \u2013 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\n                    <jats:italic>et al<\/jats:italic>\n                    . (2006\n                    <jats:italic>Algebra, Meaning, and Computation<\/jats:italic>\n                    ). 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.\n                  <\/jats:p>","DOI":"10.1017\/s0956796816000174","type":"journal-article","created":{"date-parts":[[2016,8,30]],"date-time":"2016-08-30T05:35:56Z","timestamp":1472535356000},"source":"Crossref","is-referenced-by-count":8,"title":["Eliminating dependent pattern matching without K"],"prefix":"10.1017","volume":"26","author":[{"given":"JESPER","family":"COCKX","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"DOMINIQUE","family":"DEVRIESE","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"FRANK","family":"PIESSENS","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2016,8,30]]},"reference":[{"key":"S0956796816000174_ref14","doi-asserted-by":"crossref","first-page":"378","DOI":"10.1007\/978-3-319-21401-6_26","volume-title":"Proceedings of 25th International Conference on Automated Deduction (CADE-25)","author":"de Moura","year":"2015"},{"key":"S0956796816000174_ref10","unstructured":"Cohen C. , Coquand T. , Huber S. & M\u00f6rtberg A. (2015) Cubical type theory: A constructive interpretation of the univalence axiom. http:\/\/www.cse.chalmers.se\/~coquand\/cubicaltt.pdf (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref13","unstructured":"Danielsson N.-A. (2013) Experiments related to equality. Available at: http:\/\/www.cse.chalmers.se\/~nad\/repos\/equality\/. Agda code. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref35","unstructured":"Norell U. , Abel A. & Danielsson N. A. (2012) Release notes for Agda 2 version 2.3.2. Available at: http:\/\/wiki.portal.chalmers.se\/agda\/pmwiki.php?n=Main.Version-2-3-2. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref34","unstructured":"Norell U. (2007) Towards a Practical Programming Language Based on Dependent Type Theory. PhD Thesis, Chalmers University of Technology."},{"key":"S0956796816000174_ref16","first-page":"213","volume-title":"Proceedings of the 1st Workshop on Logical Frameworks","author":"Dybjer","year":"1991"},{"key":"S0956796816000174_ref20","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-38946-7_14"},{"key":"S0956796816000174_ref29","unstructured":"McBride C. (2000) Dependently Typed Functional Programs and their Proofs. PhD Thesis, University of Edinburgh."},{"key":"S0956796816000174_ref18","doi-asserted-by":"crossref","unstructured":"Hofmann M. & Streicher T. (1994) The groupoid model refutes uniqueness of identity proofs. In Proceedings of the 9th Annual IEEE Symposium on Logic in Computer Science (LICS), pp. 208\u2013212.","DOI":"10.1109\/LICS.1994.316071"},{"key":"S0956796816000174_ref15","doi-asserted-by":"crossref","first-page":"143","DOI":"10.1145\/2034773.2034796","volume-title":"ACM SIGPLAN International Conference on Functional Programming (ICFP)","author":"Devriese","year":"2011"},{"key":"S0956796816000174_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14052-5_29"},{"key":"S0956796816000174_ref40","unstructured":"Sozeau M. (2015) Coq support for HoTT. In Workshop on Homotopy Type Theory \/ Univalent Foundations."},{"key":"S0956796816000174_ref19","unstructured":"Jouannaud J.-P. & Kirchner C. (1990) Solving Equations in Abstract Algebras: A Rule-Based Survey of Unification In Computational Logic: Essays in Honor of Alan Robinson, Lassez J. L. (ed)."},{"key":"S0956796816000174_ref9","unstructured":"Cockx J. , Devriese D. & Piessens F. (to appear) Unifiers as Equivalences: Proof-relevant unification of dependently typed data. In Proceedings of the 21th ACM SIGPLAN International Conference on Functional Programming. ACM."},{"key":"S0956796816000174_ref11","unstructured":"Coquand T. (1992) Pattern matching with dependent types. In Proceedings of the 3rd Workshop on Types for Proofs and Program, pp. 66\u201379."},{"key":"S0956796816000174_ref6","doi-asserted-by":"publisher","DOI":"10.1017\/S095679681300018X"},{"key":"S0956796816000174_ref33","doi-asserted-by":"publisher","DOI":"10.1007\/11617990_12"},{"key":"S0956796816000174_ref32","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796803004829"},{"key":"S0956796816000174_ref1","unstructured":"Altenkirch T. (2012) Without-K problem. Available at: https:\/\/lists.chalmers.se\/pipermail\/agda\/2012\/004104.html. On the Agda mailing list. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-15975-4_48"},{"key":"S0956796816000174_ref21","doi-asserted-by":"publisher","DOI":"10.1145\/2729979"},{"key":"S0956796816000174_ref31","doi-asserted-by":"publisher","DOI":"10.1007\/11546382_3"},{"key":"S0956796816000174_ref4","first-page":"107","volume-title":"19th International Conference on Types for Proofs and Programs (TYPES 2013)","author":"Bezem","year":"2014"},{"key":"S0956796816000174_ref23","doi-asserted-by":"crossref","unstructured":"Licata D. R. & Shulman M. (2013) Calculating the fundamental group of the circle in homotopy type theory. In Proceedings of 28th Annual IEEE\/ACM Symposium on Logic in Computer Science.","DOI":"10.1109\/LICS.2013.28"},{"key":"S0956796816000174_ref22","unstructured":"Licata D. (2011) Just kidding: Understanding identity elimination in homotopy type theory. Available at: http:\/\/homotopytypetheory.org\/2011\/04\/10\/just-kidding-understanding-identity-elimination-in-homotopy-type-theory\/. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref26","doi-asserted-by":"publisher","DOI":"10.1145\/1411304.1411311"},{"key":"S0956796816000174_ref41","unstructured":"The Coq development team. (2012) The Coq Proof Assistant Reference Manual. LogiCal Project. Available at: http:\/\/coq.inria.fr. Version 8.4."},{"key":"S0956796816000174_ref42","unstructured":"The Univalent Foundations Program. (2013) Homotopy Type Theory: Univalent Foundations of Mathematics. Available at: http:\/\/homotopytypetheory.org\/book, Institute for Advanced Study. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref5","unstructured":"Boutillier P. (2014) De nouveaux outils pour Calculer avec des inductifs en Coq. PhD Thesis, Universit\u00e9 Paris-Diderot-Paris VII."},{"key":"S0956796816000174_ref24","unstructured":"Luo Z. (1994) Computation and Reasoning: A Type Theory for Computer Science, International Series of Monographs on Computer Science, vol. 11."},{"key":"S0956796816000174_ref36","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0037116"},{"key":"S0956796816000174_ref30","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45842-5_13"},{"key":"S0956796816000174_ref7","unstructured":"Cockx J. (2014) Yet another way Agda \u2013without-K is incompatible with univalence. Available at: https:\/\/lists.chalmers.se\/pipermail\/agda\/2014\/006367.html. On the Agda mailing list. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref25","first-page":"71","volume-title":"Proceedings of the 10th International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice","author":"Mangin","year":"2015"},{"key":"S0956796816000174_ref27","unstructured":"Martin-L\u00f6f P. (1984) Intuitionistic Type Theory. Naples: Bibliopolis Number 1 in Studies in Proof Theory, vol. 76."},{"key":"S0956796816000174_ref37","unstructured":"Reed J. (2013) Another possible without-K problem. Available at: https:\/\/lists.chalmers.se\/pipermail\/agda\/2013\/005578.html. On the Agda mailing list. (last accessed date 09\/08\/2016)"},{"key":"S0956796816000174_ref28","unstructured":"McBride C. (1998) Towards dependent pattern matching in LEGO. TYPES meeting."},{"key":"S0956796816000174_ref3","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02444-3_3"},{"key":"S0956796816000174_ref8","doi-asserted-by":"crossref","first-page":"257","DOI":"10.1145\/2628136.2628139","volume-title":"Proceedings of the 19th ACM SIGPLAN International Conference on Functional Programming","author":"Cockx","year":"2014"},{"key":"S0956796816000174_ref17","doi-asserted-by":"publisher","DOI":"10.1007\/11780274_27"},{"key":"S0956796816000174_ref12","unstructured":"Dagand P.-E. (2013) A Cosmology of Datatypes: Reusability and Dependent Types. PhD Thesis, University of Strathclyde."},{"key":"S0956796816000174_ref38","unstructured":"Sicard-Ram\u00edrez A. (2013) \u2013without-K option too restrictive?. Available at: https:\/\/lists.chalmers.se\/pipermail\/agda\/2013\/005407.html. On the Agda mailing list. (last accessed date 09\/08\/2016)"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796816000174","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:08Z","timestamp":1779834968000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796816000174\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2016]]},"references-count":42,"alternative-id":["S0956796816000174"],"URL":"https:\/\/doi.org\/10.1017\/s0956796816000174","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2016]]},"article-number":"e16"}}