A Logical Relation for Monadic Encapsulation of State: Proving contextual equivalences in the presence of runST

Autor: Amin Timany, Lars Birkedal, Morten Krogh-Jespersen, Léo Stefanesco
Jazyk: angličtina
Rok vydání: 2017
Předmět:
Zdroj: Timany, A, Stefanesco, L, Krogh-Jespersen, M & Birkedal, L 2018, A Logical Relation for Monadic Encapsulation of State : Proving contextual equivalences in the presence of runST . in Proceedings of the ACM on Programming Languages . Association for Computing Machinery, New York, NY, Proceedings of the ACM on Programming Languages, vol. 2, pp. 64:00-64:28, Principles of Programming Languages (POPL) 2018, Los Angeles, California, United States, 07/01/2018 . https://doi.org/10.1145/3158152
DOI: 10.1145/3158152
Popis: We present a logical relations model of a higher-order functional programming language with impredicative polymorphism, recursive types, and a Haskell-style ST monad type with runST. We use our logical relations model to show that runST provides proper encapsulation of state, by showing that e effectful computations encapsulated by runST are heap independent. Furthermore, we show that contextual refinements and equivalences that are expected to hold for pure computations do indeed hold in the presence of runST. This is the first time such relational results have been proven for a language with monadic encapsulation of state. We have formalized all the technical development and results in Coq. ispartof: pages:1-28 ispartof: Proceedings of ACM on Programming Languages (PACMPL) vol:2 pages:1-28 ispartof: Principles of Programming Languages (POPL) location:Los Angeles, CA, USA date:7 Jan - 13 Jan 2018 status: published
Databáze: OpenAIRE