Hostname: page-component-78c5997874-m6dg7 Total loading time: 0 Render date: 2024-11-13T08:45:33.020Z Has data issue: false hasContentIssue false

Domain-Free λµ-Calculus

Published online by Cambridge University Press:  15 April 2002

Ken-Etsu Fujita*
Affiliation:
Shimane University, Department of Mathematics and Computer Science, Matsue 690-8504, Japan; (fujiken@cis.shimane-u.ac.jp)
Get access

Abstract

We introduce a domain-free λµ-calculus of call-by-value as a short-hand for the second order Church-style. Our motivation comes from the observation that in Curry-style polymorphic calculi, control operators such as callcc-operators cannot, in general, handle correctly the terms placed on the control operator's left, so that the Curry-style system can fail to prove the subject reduction property. Following the continuation semantics, we also discuss the notion of values in classical system, and propose an extended form of values. It is proved that the CPS-translation is sound with respect to domain-free λ2 (second-order λ-calculus). As a by-product, we obtain the strong normalization property for the second-order λµ-calculus of call-by-value in domain-free style. We also study the problems of type inference, typability, and type checking for the call-by-value system. Finally, we give a brief comparison with standard ML plus callcc, and discuss a natural way to avoid the unsoundness of ML with callcc.

Type
Research Article
Copyright
© EDP Sciences, 2000

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

Y. Andou, A Normalization-Procedure for the First Order Classical Natural Deduction with Full Logical Symbols, Tsukuba J. Math. 19 (1995) 153-162.
Y. Andou, Church-Rosser property of a simple reduction for full first order classical natural deduction (submitted).
Y. Andou, Strong normalization of classical natural deduction, Logic Colloquium 2000. Bull. Symbolic Logic (to appear).
F. Barbanera and S. Berardi, Extracting Constructive Context from Classical Logic via Control-like Reductions. Springer, Lecture Notes in Comput. Sci. 664 (1993) 45-59.
H.P. Barendregt, The Lambda Calculus, Its Syntax and Semantics, Revised edition. North-Holland (1984).
H.P. Barendregt, Lambda Calculi with Types. Oxford University Press, Handbook of Logic in Comput. Sci. 2 (1992) 117-309.
G. Barthe and M.H. Sørensen, Domain-Free Pure Type Systems. Springer, Lecture Notes in Comput. Sci. 1234 (1997) 9-20.
G. Barthe and M.H. Sørensen, Domain-Free Pure Type Systems, the revised version of [].
K. Baba, S. Hirokawa and K. Fujita, Parallel Reduction in Type-Free λµ-Calculus, in The 7th Asian Logic Conference (1999).
K. Baba, S. Hirokawa and K. Fujita, Parallel Reduction in Type-Free λµ -Calculus. Elsevier, Amsterdam, Electron. Notes Theoret. Comput. Sci. 42 (2001) 52-66.
L. Damas and R. Milner, Principal type-schemes for functional programs, in Proc. the 9th Annual ACM Symposium on Principles of Programming Languages (1982) 207-212.
R. Davies and F. Pfenning, A Modal Analysis of Staged Computation, in Proc. the 23rd Annual ACM Symposium of Principles of Programming Languages (1996).
R. Davies and F. Pfenning, A Modal Analysis of Staged Computation, Technical Report CMU-CS-99-153 (1999).
M. Felleisen, D.P. Friedman, E. Kohlbecker and B. Duba, Reasoning with Continuations, in Proc. the Annual IEEE Symposium on Logic in Computer Science (1986) 131-141.
Fischer, P.C., Turing Machines with Restricted Memory Access. Inform. and Control 9 (1966) 364-379. CrossRef
K. Fujita, On embedding of Classical Substractural Logics, RIMS 918. Research Institute for Mathematical Sciences, Kyoto University (1995) 178-195.
K. Fujita, Calculus of Classical Proofs I. Springer, Lecture Notes in Comput. Sci. 1345 (1997) 321-335.
K. Fujita, Polymorphic Call-by-Value Calculus based on Classical Proofs. Springer, Lecture Notes in Artificial Intelligence 1476 (1998) 170-182.
K. Fujita, Explicitly Typed λµ -Calculus for Polymorphism and Call-by-Value. Springer, Lecture Notes in Comput. Sci. 1581 (1999) 162-176.
K. Fujita, Type Inference for Domain-Free λ2, Technical Report in Computer Science and Systems Engineering CSSE-5. Kyushu Institute of Technology (1999).
K. Fujita and A. Schubert, Partially Typed Terms between Church-Style and Curry-Style. Springer, Lecture Notes in Comput. Sci. 1872 (2000) 505-520.
T.G. Griffin, A Formulae-as-Types Notion of Control, in Proc. the 17th Annual ACM Symposium on Principles of Programming Languages (1990) 47-58.
Ph. de Groote, A CPS-Translation for the λµ -Calculus. Springer, Lecture Notes in Comput. Sci. 787 (1994) 85-99.
Ph. de Groote, A Simple Calculus of Exception Handling. Springer, Lecture Notes in Comput. Sci. 902 (1995) 201-215.
Harper, R., Duba, B.F. and MacQueen, D., Typing First-Class Continuations in ML. J. Funct. Programming 3 (1993) 465-484. CrossRef
R. Harper and M. Lillibridge, ML with callcc is unsound. The Types Form, 8 July (1991).
R. Harper and M. Lillibridge, Explicit polymorphism and CPS conversion, in Proc. the 20th Annual ACM Symposium on Principles of Programming Languages (1993) 206-219.
Harper, R. and Lillibridge, M., Polymorphic type assignment and CPS conversion. LISP and Symbolic Computation 6 (1993) 361-380. CrossRef
Harper, R. and Mitchell, J.C., The Type St, Onructure of Standard ML. ACM Trans. Programming Languages and Systems 15 (1993) 210-252. CrossRef
Hofmann, M., Sound and complete axiomatisations of call-by-value control operators. Math. Structures Comput. Sci. 5 (1995) 461-482. CrossRef
M. Hofmann and T. Streicher, Continuation models are universal for λµ-calculus, in Proc. the 12th Annual IEEE Symposium on Logic in Computer Science (1997) 387-395.
J.E. Hopcroft and J.D. Ullman, Introduction to Automata Theory, Languages and Computation. Addison-Wesley (1979).
W. Howard, The Formulae-as-Types Notion of Constructions, To H.B. Curry: Essays on combinatory logic, lambda-calculus, and formalism. Academic Press (1980) 479-490.
Kfoury, A.J., Tiuryn, J. and Urzyczyn, P., Analysis, An of ML Typability. J. Assoc. Comput. Mach. 41 (1994) 368-398. CrossRef
Kobayashi, S., Monads as modality. Theoret. Comput. Sci. 175 (1997) 29-74. CrossRef
X. Leroy, Polymorphism by name for references and continuations, in Proc. the 20th Annual ACM Symposium of Principles of Programming Languages (1993) 220-231.
S. Martini and A. Massini, A Computational Interpretation of Modal Proofs, Proof Theory of Modal Logic. Kluwer (1996) 213-241.
A. Meyer and M. Wand, Continuation Semantics in Typed Lambda-Calculi. Springer, Lecture Notes in Comput. Sci. 193 (1985) 219-224.
Mitchell, J.C., Polymorphic Type Inference and Containment. Inform. and Comput. 76 (1988) 211-249. CrossRef
Milner, R., Theory, A of Type Polymorphism in Programming. J. Comput. System Sci. 17 (1978) 348-375. CrossRef
Minsky, M.L., Recursive Unsolvability of Post's Problem of ``TAG'' and Other Topics in Theory of Turing Machines. Ann. of Math. 74 (1961) 437-455. CrossRef
Moggi, E., Notions of computation and monads. Inform. and Comput. 93 (1991) 55-92. CrossRef
C.R. Murthy, An Evaluation Semantics for Classical Proofs, in Proc. the 6th Annual IEEE Symposium on Logic in Computer Science (1991) 96-107.
C.-H.L. Ong, A Semantic View of Classical Proofs: Type-Theoretic, Categorical, and Denotational Characterizations, Linear Logic '96 Tokyo Meeting (1996).
C.-H.L. Ong and C.A. Stewart, A Curry-Howard Foundation for Functional Computation with Control, in Proc. the 24th Annual ACM Symposium of Principles of Programming Languages (1997).
M. Parigot, λµ -Calculus: An Algorithmic Interpretation of Classical Natural Deduction. Springer, Lecture Notes in Comput. Sci. 624 (1992) 190-201.
M. Parigot, Classical Proofs as Programs. Springer, Lecture Notes in Comput. Sci. 713 (1993) 263-276.
Parigot, M., Proofs of Strong Normalization for Second Order Classical Natural Deduction. J. Symbolic Logic 62 (1997) 1461-1479. CrossRef
Plotkin, G., Call-by-Name, Call-by-Value and the λ-Calculus. Theoret. Comput. Sci. 1 (1975) 125-159. CrossRef
D. Prawitz, Natural Deduction: A Proof-Theoretical Study. Almqvist & Wiksell (1965).
D. Prawitz, Ideas and Results in Proof Theory, in Proc. the 2nd Scandinavian Logic Symposium, edited by N.E. Fenstad. North-Holland (1971) 235-307.
N.J. Rehof and M.H. Sørensen, The λ Δ -Calculus. Springer, Lecture Notes in Comput. Sci. 789 (1994) 516-542.
A. Schubert, Second-order unification and type inference for Church-style, Tech. Report TR 97-02 (239). Institute of Informatics, Warsaw University (1997).
A. Schubert, Second-order unification and type inference for Church-style, in Proc. the ACM Symposium on Principles of Programming Languages (1998) 279-288.
T. Streicher and B. Reus, Continuation semantics: Abstract machines and control operators. J. Funct. Programming (to appear).
Takahashi, M., Parallel Reductions in λ-Calculus. J. Symbolic Comput. 7 (1989) 113-123. CrossRef
J. Tiuryn, Type Inference Problems: A Survey. Springer, Lecture Notes in Comput. Sci. 452 (1990) 105-120.
J.B. Wells, Typability and Type Checking in the Second-Order λ-Calculus Are Equivalent and Undecidable, in Proc. IEEE Symposium on Logic in Computer Science (1994) 176-185.