{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,9]],"date-time":"2026-01-09T03:03:33Z","timestamp":1767927813324,"version":"3.49.0"},"reference-count":44,"publisher":"Cambridge University Press (CUP)","issue":"9","license":[{"start":{"date-parts":[[2018,8,2]],"date-time":"2018-08-02T00:00:00Z","timestamp":1533168000000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Math. Struct. Comp. Sci."],"published-print":{"date-parts":[[2018,10]]},"abstract":"<jats:p>Proofs with logical relations play a key role to establish rich properties such as normalization or contextual equivalence. They are also challenging to mechanize. In this paper, we describe two case studies using the proof environment<jats:monospace>Beluga<\/jats:monospace>: First, we explain the mechanization of the weak normalization proof for the simply typed lambda-calculus; second, we outline how to mechanize the completeness proof of algorithmic equality for simply typed lambda-terms where we reason about logically equivalent terms. The development of these proofs in<jats:monospace>Beluga<\/jats:monospace>relies on three key ingredients: (1) we encode lambda-terms together with their typing rules, operational semantics, algorithmic and declarative equality using higher order abstract syntax (HOAS) thereby avoiding the need to manipulate and deal with binders, renaming and substitutions, (2) we take advantage of<jats:monospace>Beluga<\/jats:monospace>'s support for representing derivations that depend on assumptions and first-class contexts to directly state inductive properties such as logical relations and inductive proofs, (3) we exploit<jats:monospace>Beluga<\/jats:monospace>'s rich equational theory for simultaneous substitutions; as a consequence, users do not need to establish and subsequently use substitution properties, and proofs are not cluttered with references to them. We believe these examples demonstrate that<jats:monospace>Beluga<\/jats:monospace>provides the right level of abstractions and primitives to mechanize challenging proofs using HOAS encodings. It also may serve as a valuable benchmark for other proof environments.<\/jats:p>","DOI":"10.1017\/s0960129518000154","type":"journal-article","created":{"date-parts":[[2018,8,2]],"date-time":"2018-08-02T01:54:53Z","timestamp":1533174893000},"page":"1606-1638","source":"Crossref","is-referenced-by-count":6,"title":["Mechanizing proofs with logical relations \u2013 Kripke-style"],"prefix":"10.1017","volume":"28","author":[{"given":"ANDREW","family":"CAVE","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"BRIGITTE","family":"PIENTKA","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"56","published-online":{"date-parts":[[2018,8,2]]},"reference":[{"key":"S0960129518000154_ref25","doi-asserted-by":"publisher","DOI":"10.1145\/1352582.1352591"},{"key":"S0960129518000154_ref23","unstructured":"Jacob-Rao R. , Pientka B. and Thibodeau D. (2018). Index-stratified types. In: Kirchner H. (ed.) Proceedings of the 3rd International Conference on Formal Structures for Computation and Deduction (FSCD), Leibniz International Proceedings in Informatics (LIPIcs) of Schloss Dagstuhl."},{"key":"S0960129518000154_ref15","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14052-5_17"},{"key":"S0960129518000154_ref42","doi-asserted-by":"publisher","DOI":"10.2307\/2271658"},{"key":"S0960129518000154_ref41","doi-asserted-by":"crossref","unstructured":"Sch\u00fcrmann C. and Sarnat J. (2008). Structural logical relations. In: Proceedings of the 23rd Annual Symposium on Logic in Computer Science (LICS), Pittsburgh, PA, USA: IEEE Computer Society, 69\u201380.","DOI":"10.1109\/LICS.2008.44"},{"key":"S0960129518000154_ref29","doi-asserted-by":"crossref","unstructured":"Pientka B. (2008). A type-theoretic foundation for programming with higher-order abstract syntax and first-class substitutions. In Proceedings of the 35th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL'08), ACM Press, 371\u2013382.","DOI":"10.1145\/1328438.1328483"},{"key":"S0960129518000154_ref44","doi-asserted-by":"publisher","DOI":"10.1145\/1877714.1877721"},{"key":"S0960129518000154_ref27","unstructured":"\u00d6hmann J. (2016). A logical relation for dependent type theory formalized in agda. Master's thesis, University of Gothenburg."},{"key":"S0960129518000154_ref19","doi-asserted-by":"crossref","unstructured":"Gacek A. , Miller D. and Nadathur G. (2009). Reasoning in Abella about structural operational semantics specifications. In: Proceedings of the International Workshop on Logical Frameworks and Metalanguages: Theory and Practice (LFMTP 2008), Electronic Notes in Theoretical Computer Science (ENTCS), vol. 228, Elsevier, 85\u2013100.","DOI":"10.1016\/j.entcs.2008.12.118"},{"key":"S0960129518000154_ref10","volume-title":"Advanced Topics in Types and Programming Languages","author":"Crary","year":"2005"},{"key":"S0960129518000154_ref40","doi-asserted-by":"crossref","unstructured":"Rasmussen U. and Filinski A. (2013). Structural logical relations with case analysis and equality reasoning. In: Proceedings of the 8th ACM SIGPLAN International Workshop on Logical Frameworks and Meta-languages: Theory and Practice (LFMTP'13), ACM Press, 43\u201354.","DOI":"10.1145\/2503887.2503891"},{"key":"S0960129518000154_ref8","first-page":"18","volume-title":"Proceedings of the 10th International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice (LFMTP'15)","author":"Cave","year":"2015"},{"key":"S0960129518000154_ref43","unstructured":"Thibodeau D. , Cave A. and Pientka B. (2016). Indexed codata. In: Garrigue J. , Keller G. and Sumii E. (eds.) Proceedings of the 21st ACM SIGPLAN International Conference on Functional Programming (ICFP'16), ACM, pp. 351\u2013363."},{"key":"S0960129518000154_ref4","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-011-9219-0"},{"key":"S0960129518000154_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0037095"},{"key":"S0960129518000154_ref26","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2007.09.014"},{"key":"S0960129518000154_ref20","volume-title":"Proofs and Types","author":"Girard","year":"1990"},{"key":"S0960129518000154_ref17","doi-asserted-by":"crossref","unstructured":"Gacek A. (2008). The Abella interactive theorem prover (system description). In: Proceedings of the 4th International Joint Conference on Automated Reasoning, Lecture Notes in Artificial Intelligence, vol. 5195, Springer, 154\u2013161.","DOI":"10.1007\/978-3-540-71070-7_13"},{"key":"S0960129518000154_ref32","volume-title":"Mechanizing Types and Programming Languages: A Companion","author":"Pientka","year":"2015"},{"key":"S0960129518000154_ref3","doi-asserted-by":"publisher","DOI":"10.1007\/11541868_4"},{"key":"S0960129518000154_ref38","doi-asserted-by":"crossref","unstructured":"Poswolsky A.B. and Sch\u00fcrmann C. (2008). Practical programming with higher-order encodings and dependent types. In: Proceedings of the 17th European Symposium on Programming (ESOP '08), Lecture Notes in Computer Science (LNCS), vol. 4960, Springer, 93\u2013107.","DOI":"10.1007\/978-3-540-78739-6_7"},{"key":"S0960129518000154_ref31","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796812000408"},{"key":"S0960129518000154_ref11","doi-asserted-by":"crossref","unstructured":"Doczkal C. and Schwinghammer J. (2009). Formalizing a strong normalization proof for Moggi's computational metalanguage: A case study in Isabelle\/HOL-nominal. In: Proceedings of the 4th International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice (LFMTP'09), ACM, 57\u201363.","DOI":"10.1145\/1577824.1577834"},{"key":"S0960129518000154_ref13","volume-title":"Mathematical Structures in Computer Science","author":"Felty","year":"2017"},{"key":"S0960129518000154_ref36","doi-asserted-by":"crossref","unstructured":"Pientka B. and Dunfield J. (2010). Beluga: A framework for programming and reasoning with deductive systems (system description). In: Giesl J. and Haehnle R. (eds.) Proceedings of the 5th International Joint Conference on Automated Reasoning (IJCAR'10), Lecture Notes in Artificial Intelligence (LNAI 6173), Springer, 15\u201321.","DOI":"10.1007\/978-3-642-14203-1_2"},{"key":"S0960129518000154_ref39","doi-asserted-by":"publisher","DOI":"10.1145\/2536740.2536741"},{"key":"S0960129518000154_ref18","doi-asserted-by":"crossref","unstructured":"Gacek A. , Miller D. and Nadathur G. (2008). Combining generic judgments with recursive definitions. In: Pfenning, F. (ed.) Proceedings of the 23rd Symposium on Logic in Computer Science, IEEE Computer Society Press, 33\u201344.","DOI":"10.1109\/LICS.2008.33"},{"key":"S0960129518000154_ref37","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511526619"},{"key":"S0960129518000154_ref12","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-010-9194-x"},{"key":"S0960129518000154_ref35","doi-asserted-by":"crossref","unstructured":"Pientka B. and Dunfield J. (2008). Programming with proofs and explicit contexts. In ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming (PPDP'08), ACM Press, 163\u2013173.","DOI":"10.1145\/1389449.1389469"},{"key":"S0960129518000154_ref30","doi-asserted-by":"crossref","unstructured":"Pientka B. (2010). Beluga: Programming with dependent types, contextual data, and contexts. In: Blume M. , Kobayashi N. and Vidal G. (eds.) Proceedings of the 10th International Symposium on Functional and Logic Programming (FLOPS'10), Lecture Notes in Computer Science (LNCS), vol. 6009, Springer, 1\u201312.","DOI":"10.1007\/978-3-642-12251-4_1"},{"key":"S0960129518000154_ref9","unstructured":"Coquand C. (1992). A proof of normalization for simply typed lambda calculus writing in ALF. In: Informal Proceedings of Workshop on Types for Proofs and Programs, Dept. of Computing Science, Chalmers Univ. of Technology and G\u00f6teborg Univ, 80\u201387."},{"key":"S0960129518000154_ref6","doi-asserted-by":"crossref","unstructured":"Cave A. and Pientka B. (2012). Programming with binders and indexed data-types. In: Proceedings of the 39th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL'12), ACM Press, 413\u2013424.","DOI":"10.1145\/2103656.2103705"},{"key":"S0960129518000154_ref28","doi-asserted-by":"crossref","unstructured":"Pfenning F. and Sch\u00fcrmann C. (1999). System description: Twelf \u2013 A meta-logical framework for deductive systems. In: Ganzinger H. (ed.) Proceedings of the 16th International Conference on Automated Deduction (CADE-16), Lecture Notes in Artificial Intelligence (LNAI), vol. 1632, Springer, 202\u2013206.","DOI":"10.1007\/3-540-48660-7_14"},{"key":"S0960129518000154_ref21","doi-asserted-by":"publisher","DOI":"10.1145\/138027.138060"},{"key":"S0960129518000154_ref5","unstructured":"Berardi S. (1990). Girard normalization proof in LEGO. In: Proceedings of the 1st Workshop on Logical Frameworks 67\u201378."},{"key":"S0960129518000154_ref22","doi-asserted-by":"publisher","DOI":"10.1145\/1042038.1042041"},{"key":"S0960129518000154_ref1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-8(1:29)2012"},{"key":"S0960129518000154_ref7","doi-asserted-by":"crossref","unstructured":"Cave A. and Pientka B. (2013). First-class substitutions in contextual type theory. In: Proceedings of the 8th ACM SIGPLAN International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice (LFMTP'13), ACM Press, 15\u201324.","DOI":"10.1145\/2503887.2503889"},{"key":"S0960129518000154_ref24","unstructured":"Kaiser J. , Pientka B. and Smolka G. (2017). Relating system F and \u03bb2: A case study in Coq, Abella and Beluga. In: Miller D. (ed.) Proceedings of the 2nd International Conference on Formal Structures for Computation and Deduction (FSCD), Leibniz International Proceedings in Informatics (LIPIcs) of Schloss Dagstuhl, 21:1\u201321:19."},{"key":"S0960129518000154_ref14","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-015-9327-3"},{"key":"S0960129518000154_ref16","unstructured":"Ferreira F. and Pientka B. (2014). Bidirectional elaboration of dependently typed languages. In: Proceedings of the 16th International Symposium on Principles and Practice of Declarative Programming (PPDP'14), ACM, 161\u2013174."},{"key":"S0960129518000154_ref33","unstructured":"Pientka B. and Abel A. (2015). Structural recursion over contextual objects. In: Altenkirch T. (ed.) Proceedings of the 13th International Conference on Typed Lambda Calculi and Applications (TLCA'15), Leibniz International Proceedings in Informatics (LIPIcs) of Schloss Dagstuhl, 273\u2013287."},{"key":"S0960129518000154_ref34","unstructured":"Pientka B. and Cave A. (2015). Inductive Beluga: Programming proofs (system description). In: Felty A. P. and Middeldorp A. (eds.) Proceedings of the 25th International Conference on Automated Deduction (CADE-25), Lecture Notes in Computer Science (LNCS), vol. 9195, Springer, 272\u2013281."}],"container-title":["Mathematical Structures in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0960129518000154","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2019,10,21]],"date-time":"2019-10-21T14:39:33Z","timestamp":1571668773000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0960129518000154\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2018,8,2]]},"references-count":44,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2018,10]]}},"alternative-id":["S0960129518000154"],"URL":"https:\/\/doi.org\/10.1017\/s0960129518000154","relation":{},"ISSN":["0960-1295","1469-8072"],"issn-type":[{"value":"0960-1295","type":"print"},{"value":"1469-8072","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018,8,2]]}}}