计算机科学 > 程序设计语言
[提交于 2015年10月19日]
标题:Towards Patterns for Heaps and Imperative Lambdas
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In functional programming, point-free relation calculi have been fruitful for general theories of program construction, but for specific applications pointwise expressions can be more convenient and comprehensible. In imperative programming, refinement calculi have been tied to pointwise expression in terms of state variables, with the curious exception of the ubiquitous but invisible heap. To integrate pointwise with point-free, de Moor and Gibbons extended lambda calculus with non-injective pattern matching interpreted using relations. This article gives a semantics of that language using ``ideal relations'' between partial orders, and a second semantics using predicate transformers. The second semantics is motivated by its potential use with separation algebra, for pattern matching in programs acting on the heap. Laws including lax beta and eta are proved in these models and a number of open problems are posed.
提交历史
来自:David Naumann[v1] 2015年10月19日 星期一 15:20:27 UTC