Similar to how simply typed lambda-calculus gives a computational interpretation of intuitionistic logic, lambda-mu calculus gives an computational interpretation of classical logic, the excluded middle and double negation. It is an extension of lambda-calculus with “continuation” capturing and passing.
The idea is that for the law of excluded middle one must prove . The a proof of is usually thought of as a , where it takes in an element of and returns an element of the empty type , which should be impossible. Instead to prove the LEM, it creates an element of that is really is a continuation that “jumps” somewhere else in the program, so it has a return type of as in that it never returns. Where it jumps to gets provided an element of , as the other half of the LEM. It can be though of that whenever an element is used with an element as it can take that and insert it as for .
Here is simply typed from Michel Parigot. Terms in regular lambda calculus are usually generated by variables, function application, and lambda abstraction.
here is a countable set of variables.
Instead terms are extended by giving them to a continuation or capturing a continuation.
The covariables represent continuations and are also a countable set of names.
The usuall rules of lambda calculus
are instead extended to where judgments add an extra context
The context is the usual context of variables.
But in contrast the is a context of covariables, where represents a continuation that takes in type .
The usual lambda calculus rules stay the same by simply ignoring . For example lambda abstraction is the same.
But the calculus has some additional rules added. For example given a an element and a continuation one can pass into and it will jump somewhere else in the program giving .
Additionally one can capture a continuation
The continuation passing is represented with some additional judgmental equalities. Regular lambda calculus has -reduction and -reduction.
the lambda-mu calculus also has the following judgmental equalities.
If is passed to a continuation that is immediately captured then it’s the same as just using
If is captured by that then immediately goes into then might as well just pass anything it passed into directly into
If returns a function from and is then applied to then one can instead apply to anywhere something is passed into .
We want to prove for any . So we can say We are given an and want to get a term of . We can give a “fake” by using a capture.
So will take an and pass upwards to wherever is captured by a .
Applying to will yield a .
Now we can simply capture the that is throwing up with a abstraction.
Then do a regular lambda abstraction.
The intuition here is that any to use its input argument must give that a value of to get , but we pass that into the continuation that jumps back up and can then provde that for the output.
Intuitionistic logic can already prove so using double negation we can already get LEM. But there is a nicer way of proving it.
Let’s say we have
we can then insert that onto the right side of the sum
and then capture the
The intuition here is that anything that uses the LEM must match both sides of the sum. So it first provides the right side as a continuation, so when the proof uses that by passing an into it, it jumps back and uses that on the left side. Thus providing .
https://doi.org/10.1007%2FBFb0013061
Last revised on November 15, 2026 at 07:20:33. See the history of this page for a list of all contributions to it.