Lambda-mu calculus
In mathematical logic and computer science, the lambda-mu calculus is an extension of the lambda calculus introduced by Michel Parigot. It introduces two new operators: the μ operator (which is completely different both from the μ operator found in computability theory and from the μ operator of modal μ-calculus) and the bracket operator. Proof-theoretically, it provides a well-behaved formulation of classical natural deduction. One of the main goals of this extended calculus is to be able to describe expressions corresponding to theorems in classical logic. According to the Curry–Howard isomorphism, lambda calculus on its own can express theorems in intuitionistic logic only, and several classical logical theorems can't be written at all. However with these new operators one is able to write terms that have, for example, the type of Peirce's law. According to de Groote, the μ operator corresponds to Felleisen's undelimited control operator and bracket corresponds to calling a captured continuation.
In mathematical logic and computer science, the lambda-mu calculus is an extension of the lambda calculus introduced by Michel Parigot. It introduces two new operators: the μ operator (which is completely different both from the μ operator found in computability theory and from the μ operator of modal μ-calculus) and the bracket operator. Proof-theoretically, it provides a well-behaved formulation of classical natural deduction. One of the main goals of this extended calculus is to be able to describe expressions corresponding to theorems in classical logic. According to the Curry–Howard isomorphism, lambda calculus on its own can express theorems in intuitionistic logic only, and several classical logical theorems can't be written at all. However with these new operators one is able to write terms that have, for example, the type of Peirce's law. According to de Groote, the μ operator corresponds to Felleisen's undelimited control operator and bracket corresponds to calling a captured continuation. ==Formal definition== The three forms of expressions in lambda calculus are as follows: A variable . An abstraction , where x is any variable and M is any lambda expression. An application , where M and N are any lambda expressions. In addition to the traditional λ-variables, the lambda-mu calculus includes a distinct set of μ-variables, which can be understood as continuation variables. The set of terms is divided into unnamed (all traditional lambda expressions are of this kind) and named terms. The terms that are added by the lambda-mu calculus are of the form: is a named term, where α is a μ-variable and M is an unnamed term. is an unnamed term, where α is a μ-variable and t is a named term. ==Reduction== The basic reduction rules used in the lambda-mu calculus are the following: beta reduction (\lambda x.M)N \to M[N/x] structural reduction (\mu \alpha.t)M \to \mu \alpha. t \left [ [\alpha](N M)/[\alpha] N \right ] , where the substitutions are to be made for all subterms of t of the form [\alpha]N . renaming [\alpha] \mu \beta. t \to t [\alpha / \beta] μη-reduction \mu \alpha.[\alpha]M \to M , if α does not occur freely in M These rules cause the calculus to be confluent. Typed lambda-mu calculus can be presented in sequent calculus: \begin{aligned} \Gamma, x\mathbin{:}\tau &\vdash x \mathbin{:} \tau \\ \\ \frac{\Gamma, x \mathbin{:} \sigma\vdash M\mathbin{:} \tau}{\Gamma \vdash (\lambda x \mathbin{:} \sigma. M) \mathbin{:} \sigma \to \tau} &\quad \frac{\Gamma, \vdash M\mathbin{:} \sigma \to \tau \quad \Gamma \vdash N\mathbin{:}\sigma}{\Gamma \vdash (MN)\mathbin{:} \tau} \\ \\ \frac{\Gamma, \alpha \mathbin{:} \neg\sigma \vdash M \mathbin{:} \bot}{\Gamma \vdash (\mu \alpha\mathbin{:} \neg \sigma. M) \mathbin{:} \sigma}& \quad \frac{\Gamma, \alpha\mathbin{:}\neg\sigma \vdash M\mathbin{:} \sigma}{\Gamma, \alpha\mathbin{:}\neg\sigma \vdash ([\alpha] M)\mathbin{:} \bot} \end{aligned} The first 3 rules are the same as simply typed lambda calculus. The next 2 are new to the lambda-mu calculus. Peirce's law ((p \to q) \to p) \to p is the type of the following term: \lambda x^{(p \to q) \to p}. \mu \alpha^{\neg p}. [\alpha] x (\lambda y^p. \mu \beta^{\neg q}. [\alpha] y) where we write x^\tau for x:\tau , in order to save space. Intuitively, one can understand this construction as follows. The program opens an input context x:(p\to q) \to p , and an output context \alpha:\neg p . One way to satisfy the output requirement of \alpha:\neg p is to construct something of type p\to q , and give it to x . That something is \lambda y^p. \mu \beta^{\neg q}. [\alpha] y: p \to q . If x takes this object without trying to use it, then it will return an object of type p , which can then be given to \alpha . Alternatively, x might attempt to use it by providing it with an object y:p , which can then be given to \alpha without ever replying an object of type q to x . The Łukasiewicz axiom is the type of the following term: \lambda x^{(p\to q) \to r} \lambda y^{r\to p}. \lambda z^s. \mu\alpha^{\neg p}. [\alpha] y(\mu\beta^{\neg r}.[\beta] x(\lambda u^p. \mu \gamma^{\neg q}.[\alpha] u)) The double-negation translation corresponds to continuation-passing style. That is, the double-negation translation turns every formula provable in classical propositional logic into a provable formula in intuitionistic propositional logic. This corresponds to converting a program with catch/throw into a purely functional program that uses continuation-passing. For example, the double-negation translation of Peirce's law ((\neg\neg p \to \neg\neg q) \to \neg\neg p ) \to \neg\neg p is the type of the following term: \lambda x^{(\neg\neg p \to \neg\neg q) \to \neg\neg p}. \lambda \alpha^{\neg p} x (\lambda y^{\neg\neg p}. \lambda \beta^{\neg q}. y \alpha) \alpha Compare these two, in parallel: \begin{aligned} &\lambda x^{(p \to q) \to p}. &\mu \alpha^{\neg p}. [\alpha] &x (\lambda y^p. &\mu \beta^{\neg q}. [\alpha] &y) \\ &\lambda x^{(\neg\neg p \to \neg\neg q) \to \neg\neg p}. &\lambda \alpha^{\neg p}. \quad\; &x (\lambda y^{\neg\neg p}. &\lambda \beta^{\neg q}. y\alpha) \alpha \end{aligned} The "jump to a different output" control behavior, as defined by \mu\alpha \cdots [\alpha] , is translated into a pure lambda expression \lambda \alpha \cdots \alpha . Instead of allowing a jump to the address \alpha : \neg p , one encodes the entire "the rest of the computation after the jumping to \alpha: \neg p " as a single object, called the continuation object. This continuation object can then be called for as many times as one wants, as long as that continuation object remains in context. ==See also== Classical pure type systems for typed generalizations of lambda calculi with control ==References== ==External links== Lambda-mu relevant discussion on Lambda the Ultimate.
References
No reference rows published for this article.
Cite this article
MLA
"Lambda-mu calculus." encyclopegia.org, 2026, https://encyclopegia.org/wiki/lambda-mu-calculus. Accessed 24 November 2026.
Chicago
"Lambda-mu calculus." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/lambda-mu-calculus.
APA
encyclopegia.org. (2026). Lambda-mu calculus. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/lambda-mu-calculus
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON