{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:49:09Z","timestamp":1790927349757,"version":"4.1.0"},"reference-count":47,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T00:00:00Z","timestamp":1686009600000},"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":[[2023,6,6]]},"abstract":"<jats:p>With the growing practice of mechanizing language metatheories, it has become ever more pressing that interactive theorem provers make it easy to write reusable, extensible code and proofs. This paper presents a novel language design geared towards extensible metatheory mechanization in a proof assistant. The new design achieves reuse and extensibility via a form of family polymorphism, an object-oriented idea, that allows code and proofs to be polymorphic to their enclosing families. Our development addresses technical challenges that arise from the underlying language of a proof assistant being simultaneously functional, dependently typed, a logic, and an interactive tool. Our results include (1) a prototypical implementation of the language design as a Coq plugin, (2) a dependent type theory capturing the essence of the language mechanism and its consistency and canonicity results, and (3) case studies showing how the new expressiveness naturally addresses real programming challenges in metatheory mechanization.<\/jats:p>","DOI":"10.1145\/3591286","type":"journal-article","created":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T20:06:24Z","timestamp":1686081984000},"page":"1608-1632","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":8,"title":["Extensible Metatheory Mechanization via Family Polymorphism"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7389-8921","authenticated-orcid":false,"given":"Ende","family":"Jin","sequence":"first","affiliation":[{"name":"University of Waterloo, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0830-7248","authenticated-orcid":false,"given":"Nada","family":"Amin","sequence":"additional","affiliation":[{"name":"Harvard University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8206-4694","authenticated-orcid":false,"given":"Yizhou","family":"Zhang","sequence":"additional","affiliation":[{"name":"University of Waterloo, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,6,6]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/96709.96712"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837638"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/11687061_5"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0022243"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2047862.2047867"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/1159803.1159836"},{"key":"e_1_2_1_7_1","doi-asserted-by":"crossref","unstructured":"Olivier Boite. 2004. Proof reuse with extended inductive types. In Int'l Conf. on Theorem Proving in Higher Order Logics. \t\t\t\t  Olivier Boite. 2004. Proof reuse with extended inductive types. In Int'l Conf. on Theorem Proving in Higher Order Logics.","DOI":"10.1007\/978-3-540-30142-4_4"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/97945.97982"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/1218563.1218578"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/96709.96721"},{"key":"e_1_2_1_11_1","unstructured":"Thierry Coquand. 2013. Presheaf model of type theory. ( 2013 ). https:\/\/www.cse.chalmers.se\/~coquand\/presheaf.pdf \t\t\t\t  Thierry Coquand. 2013. Presheaf model of type theory. ( 2013 ). https:\/\/www.cse.chalmers.se\/~coquand\/presheaf.pdf"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2019.01.015"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/263699.263744"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1016\/1385-7258(72)90034-0"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2076021.2048113"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429094"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2500365.2500587"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45337-7_17"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111062"},{"key":"e_1_2_1_20_1","volume-title":"Friedman","author":"Felleisen Matthias","year":"1986","unstructured":"Matthias Felleisen and Daniel P . Friedman . 1986 . Control Operators, the SECD-machine, and the-calculus. Technical Report. Computer Science Department, Indiana University . Matthias Felleisen and Daniel P. Friedman. 1986. Control Operators, the SECD-machine, and the-calculus. Technical Report. Computer Science Department, Indiana University."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/268946.268961"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3372885.3373817"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.TYPES.2020.8"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-30142-4_12"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.FSCD.2019.25"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2502488.2502491"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3547632"},{"key":"e_1_2_1_28_1","unstructured":"Zhaohui Luo. 2012. Notes on universes in type theory. http:\/\/www.cs.rhul.ac.uk\/home\/zhaohui\/universes.pdf Notes for a talk at the Institute for Advanced Study in Princeton. \t\t\t\t  Zhaohui Luo. 2012. Notes on universes in type theory. http:\/\/www.cs.rhul.ac.uk\/home\/zhaohui\/universes.pdf Notes for a talk at the Institute for Advanced Study in Princeton."},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/74877.74919"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0049-237X(09)70189-2"},{"key":"e_1_2_1_31_1","unstructured":"Per Martin-L\u00f6f. 1984. Intuitionistic Type Theory: Notes by Giovanni Sambin of a Series of Lectures Given in Padua June 1980 (Studies in Proof Theory). \t\t\t\t  Per Martin-L\u00f6f. 1984. Intuitionistic Type Theory: Notes by Giovanni Sambin of a Series of Lectures Given in Padua June 1980 (Studies in Proof Theory)."},{"key":"e_1_2_1_32_1","volume-title":"1st Informal ACM SIGPLAN Workshop on Mechanizing Metatheory.","author":"Mulhern Anne","year":"2006","unstructured":"Anne Mulhern . 2006 . Proof weaving . In 1st Informal ACM SIGPLAN Workshop on Mechanizing Metatheory. Anne Mulhern. 2006. Proof weaving. In 1st Informal ACM SIGPLAN Workshop on Mechanizing Metatheory."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1028976.1028986"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/1094811.1094815"},{"key":"e_1_2_1_35_1","volume-title":"Chris Casinghino, Marco Gaboardi, Michael Greenberg, C\u0103t\u0103lin Hri\u0163cu, Vilhelm Sj\u00f6berg, and Brent Yorgey.","author":"Pierce Benjamin C.","year":"2022","unstructured":"Benjamin C. Pierce , Arthur Azevedo de Amorim , Chris Casinghino, Marco Gaboardi, Michael Greenberg, C\u0103t\u0103lin Hri\u0163cu, Vilhelm Sj\u00f6berg, and Brent Yorgey. 2022 . Software foundations: Volume 2 (programming language foundations). (2022). Version 6.2. Benjamin C. Pierce, Arthur Azevedo de Amorim, Chris Casinghino, Marco Gaboardi, Michael Greenberg, C\u0103t\u0103lin Hri\u0163cu, Vilhelm Sj\u00f6berg, and Brent Yorgey. 2022. Software foundations: Volume 2 (programming language foundations). (2022). Version 6.2."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-6315-9_22"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3453483"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2450136.2450137"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2428116.2428120"},{"key":"e_1_2_1_40_1","volume-title":"Algebraic type theory and universe hierarchies. ( 2019 ). arXiv","author":"Sterling Jonathan","year":"1902","unstructured":"Jonathan Sterling . 2019. Algebraic type theory and universe hierarchies. ( 2019 ). arXiv : 1902 .08848 Jonathan Sterling. 2019. Algebraic type theory and universe hierarchies. ( 2019 ). arXiv: 1902.08848"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/325694.325724"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796808006758"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0053390"},{"key":"e_1_2_1_45_1","unstructured":"The Univalent Foundations Program. 2013. Homotopy Type Theory: Univalent Foundations of Mathematics. https: \/\/homotopytypetheory.org\/book. arXiv: 1308. 0729 \t\t\t\t  The Univalent Foundations Program. 2013. Homotopy Type Theory: Univalent Foundations of Mathematics. https: \/\/homotopytypetheory.org\/book. arXiv: 1308. 0729"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3563355"},{"key":"e_1_2_1_47_1","unstructured":"Philip Wadler et al. 1998. The expression problem. http:\/\/homepages.inf.ed.ac.uk\/wadler\/papers\/expression\/expression.txt Discussion on the Java-genericity mailing list. \t\t\t\t  Philip Wadler et al. 1998. The expression problem. http:\/\/homepages.inf.ed.ac.uk\/wadler\/papers\/expression\/expression.txt Discussion on the Java-genericity mailing list."},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3133894"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591286","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3591286","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:47:20Z","timestamp":1750178840000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591286"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,6,6]]},"references-count":47,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2023,6,6]]}},"alternative-id":["10.1145\/3591286"],"URL":"https:\/\/doi.org\/10.1145\/3591286","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,6,6]]},"assertion":[{"value":"2023-06-06","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}