← Latest papers
💻 computer science

A Classical Linear λλ-Calculus based on Contraposition

This paper introduces λMLL\lambda_{\rm MLL}, a novel classical linear λ\lambda-calculus based on contraposition and a unique "contra-substitution" mechanism, which is proven to be sound, complete, and strongly normalizing for Classical Multiplicative Exponential Linear Logic (MELL).

Original authors: Pablo Barenbaum, Eduardo Bonelli, Leopoldo Lerena

Published 2026-02-04
📖 4 min read☕ Coffee break read

Original authors: Pablo Barenbaum, Eduardo Bonelli, Leopoldo Lerena

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to organize a library of logic. For a long time, librarians had two very different ways of shelving books:

  1. The Intuitionistic Way: You can only check out one book at a time. If you have a book called "A," you can use it to get "B," but once you use "A," it's gone. You can't copy it, and you can't throw it away. This is like a strict, single-lane road.
  2. The Classical Way: You can check out books, but you can also flip them upside down. If you have a book that says "If A then B," you can also treat it as "If Not-B then Not-A." This is like a two-way street where traffic flows both ways, and you can turn a car around.

The problem is that for decades, computer scientists (who use logic to build programming languages) found it very hard to build a "library" that allowed for this two-way street (Classical logic) while still keeping the strict "one copy, one use" rule (Linear logic). Existing systems were either too messy (they crashed when you tried to turn a car around) or too rigid (they wouldn't let you turn at all).

The Big Idea: The "Inside-Out" Sock

This paper introduces a new way to organize this library, called λ\lambdaMELL. The authors, Pablo Barenbaum, Eduardo Bonelli, and Leopoldo Lerena, solved the problem by inventing a new tool they call contra-substitution.

To understand this, imagine you have a sock with a specific pattern on the toe (let's call the toe "A").

  • Normal Substitution: If you want to change the pattern on the toe, you just sew a new patch over it. The sock stays right-side out.
  • Contra-Substitution: This is the paper's magic trick. Imagine you grab the toe of the sock and pull it inside out. Suddenly, the inside of the sock becomes the outside, and the outside becomes the inside. You then sew your new patch onto the new outside (which was the old inside).

In the world of logic, this "turning the sock inside out" represents a rule called Modus Tollens.

  • Normal Rule (Modus Ponens): If I have "If A then B" and I have "A," I get "B." (Standard application).
  • The New Rule (Modus Tollens): If I have "If A then B" and I have "Not-B," I can conclude "Not-A."

The authors realized that to make this work in a computer program, you can't just swap the letters. You have to "pull" the "Not-B" through the logic, effectively turning the whole statement inside out to reveal "Not-A." This "inside-out" operation is the contra-substitution.

What They Built

Using this "sock-turning" trick, they built a new programming language (a calculus) that:

  1. Handles Resources: It respects the rule that you can't copy or delete information unless you explicitly say so (Linear Logic).
  2. Handles Symmetry: It allows you to flip statements around (Classical Logic) without breaking the system.
  3. Works Perfectly: They proved that if you write a program in this language, it will always finish running (it won't get stuck in an infinite loop) and that the order in which you run the steps doesn't change the final result.

Why It Matters

The paper shows that this new system is powerful enough to simulate other famous logic systems (like Parigot's λμ\lambda\mu and Curien and Herbelin's λμμ~\lambda\mu\tilde{\mu}). Think of it as a universal translator. If you have a program written in one of those older, complex languages, you can translate it into this new "sock-turning" language, run it, and get the same result.

In Summary

The authors didn't just find a new way to shuffle cards; they invented a new way to turn the cards inside out. By defining exactly how to "pull" a logical statement through a negation (the contra-substitution), they created a stable, reliable, and symmetrical system for classical linear logic. It's a "functional" way to do classical logic, meaning you can think of the proofs as programs that run smoothly, rather than as messy parallel processes.

Key Takeaways from the Paper:

  • The Problem: Classical logic (symmetry) and Linear logic (resource management) were hard to mix in a single-conclusion system.
  • The Solution: A new operation called contra-substitution, metaphorically described as "turning a term inside out" like a sock.
  • The Result: A new calculus (λ\lambdaMELL) that is sound (correct), complete (covers all cases), and has great computer science properties (it always stops and gives the right answer).
  • The Proof: They showed that this new system can mimic other well-known classical logic systems, proving it is a robust foundation for future work.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →