Direct Models for the Computational Lambda Calculus

Abstract We introduce direct categorical models for the computational lambda-calculus. Direct models correspond to the source level of a compiler whose target level corresponds to Moggi's monadic models. That compiler is a generalised call-by-value CPS-transform. We get our direct models by identifying the algebraic structure on the Kleisli category that arises from a monadic model. We show that direct models draw our attention to previously inconspicuous, but important, classes of programs (e.g. central, copyable, and discardable programs), and we'll analyse these classes exhaustively—at a general level, and for several specific computational effects. Moreover, we show that from each direct model K we can recover the monadic model from which K arises as the Kleisli category.

[1]  Hayo Thielecke,et al.  Closed Freyd- and kappa-categories , 1999, ICALP.

[2]  Andrew W. Appel,et al.  Compiling with Continuations , 1991 .

[3]  Hayo Thielecke,et al.  Categorical Structure of Continuation Passing Style , 1997 .

[4]  Masahito Hasegawa,et al.  Models of sharing graphs : a categorical semantics of let and letrec , 1999 .

[5]  Edmund Robinson,et al.  Premonoidal categories and notions of computation , 1997, Mathematical Structures in Computer Science.

[6]  S. Maclane,et al.  Categories for the Working Mathematician , 1971 .

[7]  Masahito Hasegawa,et al.  Recursion from Cyclic Sharing: Traced Monoidal Categories and Models of Cyclic Lambda Calculi , 1997, TLCA.

[8]  Hayo Thielecke,et al.  Environments, Continuation Semantics and Indexed Categories , 1997, TACS.

[9]  Carsten Führmann,et al.  Equational Lifting Monads , 1999, CTCS.

[10]  S. Lane Categories for the Working Mathematician , 1971 .

[11]  Hayo Thielecke Continuation semantics and self-adjointness , 1997, MFPS.

[12]  Eugenio Moggi,et al.  Computational lambda-calculus and monads , 1989, [1989] Proceedings. Fourth Annual Symposium on Logic in Computer Science.

[13]  John Power,et al.  A Representable Approach to Finite Nondeterminism , 1997, Theor. Comput. Sci..

[14]  J. Bell STONE SPACES (Cambridge Studies in Advanced Mathematics 3) , 1987 .

[15]  Bart Jacobs,et al.  Semantics of Weakening and Contraction , 1994, Ann. Pure Appl. Log..

[16]  K. Brown,et al.  Graduate Texts in Mathematics , 1982 .

[17]  Alan Jeffrey,et al.  A Categorical and Graphical Treatment of Closure Conversion , 1999, MFPS.

[18]  Eugenio Moggi,et al.  Notions of Computation and Monads , 1991, Inf. Comput..