Download PDF

Information Processing Letters

Publication date: 2012-01-15
Volume: 112 Pages: 13 - 20
Publisher: Elsevier

Author:

Sergey, Ilya
Clarke, Dave

Keywords:

Formal semantic, Compositional evaluator, Functional programmin, Type checker, Science & Technology, Technology, Computer Science, Information Systems, Computer Science, Formal semantics, Functional programming, Compositional evaluators, Type checkers, Continuation-passing style, Defunctionalization, Refunctionalization, ABSTRACT MACHINES, 01 Mathematical Sciences, 08 Information and Computing Sciences, 09 Engineering, Computation Theory & Mathematics, 40 Engineering, 46 Information and computing sciences, 49 Mathematical sciences

Abstract:

We describe a derivational approach to proving the equivalence of different representations of a type system. Different ways of representing type assignments are convenient for particular applications such as reasoning or implementation, but some kind of correspondence between them should be proven. In this paper we address two such semantics for type checking: one, due to Kuan et al., in the form of a term rewriting system and the other in the form of a traditional set of derivation rules. By employing a set of techniques investigated by Danvy et al., we mechanically derive the correspondence between a reduction-based semantics for type-checking and a traditional one in the form of derivation rules, implemented as a recursive descent. The correspondence is established through a series of semantics-preserving functional program transformations.