{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,5]],"date-time":"2026-02-05T12:52:28Z","timestamp":1770295948568,"version":"3.49.0"},"reference-count":34,"publisher":"Association for Computing Machinery (ACM)","issue":"ICFP","license":[{"start":{"date-parts":[[2020,8,2]],"date-time":"2020-08-02T00:00:00Z","timestamp":1596326400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,8,2]]},"abstract":"<jats:p>Some parts of dependently typed programs constitute evidence of their type-correctness and, once checked, are unnecessary for execution. These parts can easily become asymptotically larger than the remaining runtime-useful computation, which can cause normally linear-time programs run in exponential time, or worse. We should not make programs run slower by just describing them more precisely.<\/jats:p>\n          <jats:p>Current dependently typed systems do not erase such computation satisfactorily. By modelling erasure indirectly through type universes or irrelevance, they impose the limitations of these means to erasure. Some useless computation then cannot be erased and idiomatic programs remain asymptotically sub-optimal.<\/jats:p>\n          <jats:p>In this paper, we explain why we need erasure, that it is different from other concepts like irrelevance, and propose a dependently typed calculus with pattern matching with erasure annotations to model it. We show that erasure in well-typed programs is sound in that it commutes with reduction. Assuming the Church-Rosser property, erasure furthermore preserves convertibility in general.<\/jats:p>\n          <jats:p>We also give an erasure inference algorithm for erasure-unannotated or partially annotated programs and prove it sound, complete, and optimal with respect to the typing rules of the calculus.<\/jats:p>\n          <jats:p>Finally, we show that this erasure method is effective in that it can not only recover the expected asymptotic complexity in compiled programs at run time, but it can also shorten compilation times.<\/jats:p>","DOI":"10.1145\/3408973","type":"journal-article","created":{"date-parts":[[2020,8,3]],"date-time":"2020-08-03T13:48:02Z","timestamp":1596462482000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":6,"title":["A dependently typed calculus with pattern matching and erasure inference"],"prefix":"10.1145","volume":"4","author":[{"given":"Mat\u00fa\u0161","family":"Teji\u0161\u010d\u00e1k","sequence":"first","affiliation":[{"name":"University of St. Andrews, UK"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2020,8,3]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-19805-2_5"},{"key":"e_1_2_2_2_1","volume-title":"Agda Mailing List","author":"Abel Andreas","year":"2017"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110277"},{"key":"e_1_2_2_4_1","volume-title":"https:\/\/agda.readthedocs. io\/en\/v2.6.1\/language\/irrelevance.html Accessed on","author":"Irrelevance Agda","year":"2020"},{"key":"e_1_2_2_5_1","volume-title":"1 documentation: Run-time Irrelevance. https:\/\/agda.readthedocs. io\/en\/v2.6.1\/language\/ runtime-irrelevance. html Accessed on","author":"Agda","year":"2020"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093333.3009878arXiv:1608.06499"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3209108.3209189"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78499-9_26"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1017\/S095679681300018X"},{"key":"e_1_2_2_11_1","unstructured":"Edwin Brady. 2020. Idris 2: Quantitative Type Theory in Action. Submitted. https:\/\/www.type-driven.org.uk\/edwinb\/ papers\/idris2.pdf  Edwin Brady. 2020. Idris 2: Quantitative Type Theory in Action. Submitted. https:\/\/www.type-driven.org.uk\/edwinb\/ papers\/idris2.pdf"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24849-1_8"},{"key":"e_1_2_2_13_1","unstructured":"The CHICKEN project. 2020. CHICKEN Scheme. https:\/\/www.call-cc.org\/. Accessed: 2020-04-25.  The CHICKEN project. 2020. CHICKEN Scheme. https:\/\/www.call-cc.org\/. Accessed: 2020-04-25."},{"key":"e_1_2_2_14_1","volume-title":"Re: Problem with tactic-generated terms. https:\/\/sympa.inria.fr\/sympa\/arc\/coq-club\/2014-09\/ msg00114.html, accessed on 2015-02-28.","author":"Dockins Robert","year":"2014"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(84)90014-1"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-37036-6_8"},{"key":"e_1_2_2_18_1","first-page":"1070","article-title":"The stable model semantics for logic programming","volume":"88","author":"Gelfond Michael","year":"1988","journal-title":"ICLP\/SLP"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/11780274_27"},{"key":"e_1_2_2_21_1","volume-title":"Re: Problem with tactic-generated terms. https:\/\/sympa.inria.fr\/sympa\/arc\/coq-club\/2014-09\/msg00118. html, accessed on 2015-02-28.","author":"Herbelin Hugo","year":"2014"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0014058"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-17511-4_20"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-12002-2_26"},{"key":"e_1_2_2_25_1","unstructured":"Jonathan Leivent. 2014a. Mindless Coding. https:\/\/github.com\/jonleivent\/mindless-coding accessed on 2015-02-28.  Jonathan Leivent. 2014a. Mindless Coding. https:\/\/github.com\/jonleivent\/mindless-coding accessed on 2015-02-28."},{"key":"e_1_2_2_26_1","volume-title":"Re: Problem with tactic-generated terms. https:\/\/sympa.inria.fr\/sympa\/arc\/coq-club\/2014-09\/ msg00110.html, accessed on 2015-02-28.","author":"Leivent Jonathan","year":"2014"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-39185-1_12"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-69407-6_39"},{"key":"e_1_2_2_30_1","unstructured":"Pierre Letouzey and Bas Spitters. 2005. Implicit and noncomputational arguments using monads.  Pierre Letouzey and Bas Spitters. 2005. Implicit and noncomputational arguments using monads."},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-30936-1_12"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45413-6_27"},{"key":"e_1_2_2_34_1","unstructured":"Richard Nathan Mishra-Linger. 2008. Irrelevance Polymorphism and Erasure in Type Theory. http:\/\/citeseerx.ist.psu.edu\/ viewdoc\/download?doi =10.1.1.154.5619&rep=rep1&type=pdf  Richard Nathan Mishra-Linger. 2008. Irrelevance Polymorphism and Erasure in Type Theory. http:\/\/citeseerx.ist.psu.edu\/ viewdoc\/download?doi =10.1.1.154.5619&rep=rep1&type=pdf"},{"key":"e_1_2_2_37_1","volume-title":"Syntax and Semantics of Cedille. CoRR abs\/","author":"Stump Aaron","year":"1806"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837655"},{"key":"e_1_2_2_39_1","unstructured":"The Coq development team. 2004. The Coq proof assistant reference manual. LogiCal Project. http:\/\/coq.inria. fr Version 8.0.  The Coq development team. 2004. The Coq proof assistant reference manual. LogiCal Project. http:\/\/coq.inria. fr Version 8.0."},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/321978.321991"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110275"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3408973","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3408973","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T20:47:58Z","timestamp":1750193278000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3408973"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,8,2]]},"references-count":34,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2020,8,2]]}},"alternative-id":["10.1145\/3408973"],"URL":"https:\/\/doi.org\/10.1145\/3408973","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,8,2]]},"assertion":[{"value":"2020-08-03","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}