Fold and unfold for program semantics

被引:0
作者
Hutton, G [1 ]
机构
[1] Univ Nottingham, Dept Comp Sci, Languages & Programming Grp, Nottingham NG7 2RD, England
关键词
D O I
10.1145/291251.289457
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper we explain how recursion operators can be used to structure and reason about program semantics within a functional language. In particular, we show how the recursion operator fold can be used to structure denotational semantics, how the dual recursion operator unfold can be used to structure operational semantics, and how algebraic properties of these operators can be used to reason about program semantics. The techniques are explained with the aid of two main examples, the first concerning arithmetic expressions, and the second concerning Milner's concurrent language CCS. The aim of the paper is to give functional programmers new insights into recursion operators, program semantics, and the relationships between them.
引用
收藏
页码:280 / 288
页数:9
相关论文
共 21 条
[11]  
MEERTENS L, 1983, P CWI S CTR MATH COM
[12]  
Meijer E., 1995, P 7 INT C FUNCT PROG
[13]  
MEIJER E, 1992, THESIS NIJMEGEN U
[14]  
MEIJER E, 1991, LNCS, V523
[15]  
Milner R., 1989, Communication and concurrency
[16]  
PETERSON J, 1997, HASKELL LANGUAGE REP
[17]  
PLOTKIN G, 1981, DAIMIFN19 AARH U COM
[18]  
RUTTEN J, 1994, LNCS
[19]  
Schmidt D.A., 1986, Denotational Semantics: A Methodology for Language Development
[20]  
SHEARD T, 1993, P ACM C FUNCT PROGR