{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T23:05:48Z","timestamp":1779836748040,"version":"3.53.1"},"reference-count":51,"publisher":"Cambridge University Press (CUP)","issue":"4-5","license":[{"start":{"date-parts":[[2012,8,15]],"date-time":"2012-08-15T00:00:00Z","timestamp":1344988800000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2012,9]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Atoms and de Bruijn indices are two well-known representation techniques for data structures that involve names and binders. However, using either technique, it is all too easy to make a programming error that causes one name to be used where another was intended. We propose an abstract interface to names and binders that rules out many of these errors. This interface is implemented as a library in\n                    <jats:sc>Agda<\/jats:sc>\n                    . It allows defining and manipulating term representations in nominal style and in de Bruijn style. The programmer is not forced to choose between these styles: on the contrary, the library allows using both styles in the same program, if desired. Whereas indexing the types of names and terms with a natural number is a well-known technique to better control the use of de Bruijn indices, we index types with worlds. Worlds are at the same time more precise and more abstract than natural numbers. Via logical relations and parametricity, we are able to demonstrate in what sense our library is safe, and to obtain theorems for free about world-polymorphic functions. For instance, we prove that a world-polymorphic term transformation function must commute with any renaming of the free variables. The proof is entirely carried out in\n                    <jats:sc>Agda<\/jats:sc>\n                    .\n                  <\/jats:p>","DOI":"10.1017\/s0956796812000251","type":"journal-article","created":{"date-parts":[[2012,8,15]],"date-time":"2012-08-15T08:45:18Z","timestamp":1345020318000},"page":"614-704","source":"Crossref","is-referenced-by-count":7,"title":["A unified treatment of syntax with binders"],"prefix":"10.1017","volume":"22","author":[{"given":"NICOLAS","family":"POUILLARD","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"FRAN\u00c7OIS","family":"POTTIER","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2012,8,15]]},"reference":[{"key":"S0956796812000251_ref48","doi-asserted-by":"crossref","unstructured":"Shinwell M. R. , Pitts A. M. & Gabbay M. J. (2003 August) FreshML: Programming with binders made simple. In ACM International Conference on Functional Programming (ICFP), pp. 263\u2013274.","DOI":"10.1145\/944746.944729"},{"key":"S0956796812000251_ref26","doi-asserted-by":"crossref","unstructured":"Licata D. R. & Harper R. (2009 September) A universe of binding and computation. In ACM International Conference on Functional Programming (ICFP), pp. 123\u2013134.","DOI":"10.1145\/1596550.1596571"},{"key":"S0956796812000251_ref22","unstructured":"Guillemette L.-J. & Monnier S. (2008) A type-preserving compiler in Haskell. In ACM International Conference on Functional Programming (ICFP), pp. 75\u201386."},{"key":"S0956796812000251_ref13","doi-asserted-by":"crossref","unstructured":"Chen C. & Xi H. (2003b, August) Meta-programming through typeful code representation. In ACM International Conference on Functional Programming (ICFP), pp. 275\u2013286.","DOI":"10.1145\/944746.944730"},{"key":"S0956796812000251_ref38","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2008.12.120"},{"key":"S0956796812000251_ref24","doi-asserted-by":"publisher","DOI":"10.1145\/363235.363259"},{"key":"S0956796812000251_ref12","doi-asserted-by":"crossref","unstructured":"Chen C. & Xi H. (2003a, June) Implementing typeful program transformations. In ACM Workshop on Evaluation and Semantics-Based Program Manipulation (PEPM), pp. 20\u201328.","DOI":"10.1145\/966049.777392"},{"key":"S0956796812000251_ref43","unstructured":"Pouillard N. (2012 January) A Unifying Approach to Safe Programming with First-Order Syntax with Binders. PhD thesis, Universit\u00e9 Paris 7."},{"key":"S0956796812000251_ref27","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796803004957"},{"key":"S0956796812000251_ref37","first-page":"93","volume-title":"European Symposium on Programming (ESOP)","author":"Poswolsky","year":"2008"},{"key":"S0956796812000251_ref23","doi-asserted-by":"publisher","DOI":"10.1145\/138027.138060"},{"key":"S0956796812000251_ref39","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2005.11.039"},{"key":"S0956796812000251_ref44","doi-asserted-by":"publisher","DOI":"10.1145\/1863543.1863575"},{"key":"S0956796812000251_ref32","first-page":"345","volume-title":"International Joint Conference on Theory and Practice of Software Development (TAPSOFT)","author":"Pfenning","year":"1989"},{"key":"S0956796812000251_ref11","unstructured":"Chargu\u00e9raud A. (2011) The locally nameless representation. J. Autom. Reason. 1\u201346."},{"key":"S0956796812000251_ref10","doi-asserted-by":"crossref","unstructured":"Cave A. & Pientka B. (2012 January) Programming with binders and indexed data-types. In ACM Symposium on Principles of Programming Languages (POPL), pp. 413\u2013424.","DOI":"10.1145\/2103621.2103705"},{"key":"S0956796812000251_ref15","doi-asserted-by":"crossref","unstructured":"Chlipala A. (2007 June) A certified type-preserving compiler from lambda calculus to assembly language. In ACM Conference on Programming Language Design and Implementation (PLDI), pp. 54\u201365.","DOI":"10.1145\/1273442.1250742"},{"key":"S0956796812000251_ref49","unstructured":"Stark I. (1994 December). Names and Higher-Order Functions. PhD thesis, University of Cambridge. Also available as Technical Report 363, University of Cambridge Computer Laboratory."},{"key":"S0956796812000251_ref40","doi-asserted-by":"crossref","unstructured":"Pottier F. (2007 July) Static name control for FreshML. In IEEE Symposium on Logic in Computer Science (LICS), pp. 356\u2013365.","DOI":"10.1109\/LICS.2007.44"},{"key":"S0956796812000251_ref41","doi-asserted-by":"crossref","first-page":"320","DOI":"10.1145\/2034773.2034817","volume-title":"Proceedings of the 16th ACM SIGPLAN International Conference on Functional Programming","author":"Pouillard","year":"2011"},{"key":"S0956796812000251_ref51","doi-asserted-by":"crossref","first-page":"333","DOI":"10.1145\/2034773.2034818","volume-title":"Proceedings of the 16th ACM SIGPLAN International Conference on Functional Programming","author":"Weirich","year":"2011"},{"key":"S0956796812000251_ref33","doi-asserted-by":"crossref","unstructured":"Pientka B. (2008 January) A type-theoretic foundation for programming with higher-order abstract syntax and first-class substitutions. In ACM Symposium on Principles of Programming Languages (POPL), pp. 371\u2013382.","DOI":"10.1145\/1328897.1328483"},{"key":"S0956796812000251_ref19","doi-asserted-by":"crossref","unstructured":"Donnelly K. & Xi H. (2005) Combining higher-order abstract syntax with first-order abstract syntax in ATS. In ACM Workshop on Mechanized Reasoning about Languages with Variable Binding, pp. 58\u201363.","DOI":"10.1145\/1088454.1088462"},{"key":"S0956796812000251_ref30","doi-asserted-by":"crossref","unstructured":"Mitchell J. C. (1986) Representation independence and data abstraction. In ACM Symposium on Principles of Programming Languages (POPL), pp. 263\u2013276.","DOI":"10.1145\/512644.512669"},{"key":"S0956796812000251_ref6","doi-asserted-by":"crossref","unstructured":"Aydemir B. , Chargu\u00e9raud A. , Pierce B. C. , Pollack R. & Weirich S. (2008 January) Engineering formal metatheory. In ACM Symposium on Principles of Programming Languages (POPL), pp. 3\u201315.","DOI":"10.1145\/1328897.1328443"},{"key":"S0956796812000251_ref5","doi-asserted-by":"publisher","DOI":"10.1007\/11541868_4"},{"key":"S0956796812000251_ref25","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796897002864"},{"key":"S0956796812000251_ref31","unstructured":"Norell U. (2007 September) Towards a Practical Programming Language Based on Dependent Type Theory. PhD thesis, Department of Computer Science and Engineering, Chalmers University of Technology, SE-412 96 G\u00f6teborg, Sweden."},{"key":"S0956796812000251_ref18","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90066-B"},{"key":"S0956796812000251_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48168-0_32"},{"key":"S0956796812000251_ref34","doi-asserted-by":"publisher","DOI":"10.1145\/1147954.1147961"},{"key":"S0956796812000251_ref29","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796807006326"},{"key":"S0956796812000251_ref35","doi-asserted-by":"crossref","unstructured":"Pitts A. M. (2010 January) Nominal System T. In ACM Symposium on Principles of Programming Languages (POPL), pp. 159\u2013170.","DOI":"10.1145\/1706299.1706321"},{"key":"S0956796812000251_ref9","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796899003366"},{"key":"S0956796812000251_ref21","doi-asserted-by":"publisher","DOI":"10.1090\/psapm\/019\/0235771"},{"key":"S0956796812000251_ref47","doi-asserted-by":"publisher","DOI":"10.1007\/11417170_25"},{"key":"S0956796812000251_ref42","unstructured":"Pouillard N. (2011b) Nompa (Agda code) [online]. Available at: http:\/\/tiny.nicolaspouillard.fr\/NomPa.agda. Accessed November 2011."},{"key":"S0956796812000251_ref16","unstructured":"Danielsson N. A. (2011) Agda standard library [online]. Available at: http:\/\/wiki.portal.chalmers.se\/agda\/agda.php?n=Libraries.StandardLibrary. Accessed July 2012."},{"key":"S0956796812000251_ref20","first-page":"193","volume-title":"IEEE Symposium on Logic in Computer Science (LICS)","author":"Fiore","year":"1999"},{"key":"S0956796812000251_ref8","doi-asserted-by":"publisher","DOI":"10.1145\/1863543.1863592"},{"key":"S0956796812000251_ref14","doi-asserted-by":"crossref","unstructured":"Cheney J. (2005 September) Scrap your nameplate. In ACM International Conference on Functional Programming (ICFP).","DOI":"10.1145\/1086365.1086389"},{"key":"S0956796812000251_ref17","doi-asserted-by":"publisher","DOI":"10.1016\/1385-7258(72)90034-0"},{"key":"S0956796812000251_ref50","doi-asserted-by":"crossref","unstructured":"Wadler P. (1989 September) Theorems for free! In Conference on Functional Programming Languages and Computer Architecture (FPCA), pp. 347\u2013359.","DOI":"10.1145\/99370.99404"},{"key":"S0956796812000251_ref28","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796803004829"},{"key":"S0956796812000251_ref46","doi-asserted-by":"publisher","DOI":"10.1016\/j.jsc.2010.01.010"},{"key":"S0956796812000251_ref45","first-page":"513","volume-title":"Information Processing 83","author":"Reynolds","year":"1983"},{"key":"S0956796812000251_ref1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0037095"},{"key":"S0956796812000251_ref7","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)00022-0"},{"key":"S0956796812000251_ref3","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02273-9_5"},{"key":"S0956796812000251_ref36","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-011-9229-y"},{"key":"S0956796812000251_ref4","doi-asserted-by":"crossref","unstructured":"Atkey R. , Lindley S. & Yallop J. (2009 September) Unembedding domain-specific languages. In Haskell Symposium, pp. 37\u201348.","DOI":"10.1145\/1596638.1596644"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796812000251","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:27Z","timestamp":1779834987000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796812000251\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012,8,15]]},"references-count":51,"journal-issue":{"issue":"4-5","published-print":{"date-parts":[[2012,9]]}},"alternative-id":["S0956796812000251"],"URL":"https:\/\/doi.org\/10.1017\/s0956796812000251","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,8,15]]}}}