← Latest papers
💻 computer science

Ordered Adjoint Logic (Extended Version)

This paper generalizes prior work on ordered logics by introducing a system of adjoint modalities that combines logics with varying structural properties like weakening and contraction, proving that the resulting sequent calculus admits cut elimination and that its natural deduction formulation supports decidable proof checking.

Original authors: Sophia Roshal, Frank Pfenning

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Sophia Roshal, Frank Pfenning

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 managing a very strict, high-security warehouse. In this warehouse, every item (a "resource") has a specific set of rules about how it can be handled. Some items can be duplicated, some can be thrown away, some can be moved around freely, and others must be used exactly once and in a specific order.

For a long time, computer scientists have built "logics" (mathematical rulebooks) to manage these items. However, most rulebooks were too rigid. They either allowed items to be moved anywhere (like a messy room) or forced them to stay in a strict line with no flexibility.

The Problem: The "One-Size-Fits-All" Bottleneck
Previous attempts to mix these rules (like the work by Kanovich et al.) tried to solve this by having a "base mode"—a default, super-strict zone where everything happens. To do anything flexible, you had to pack up your items, move them into this strict zone, do your work, and then move them back out. It was like having to go through a security checkpoint just to grab a pen from your desk. It was clunky and required constant switching.

The Solution: Ordered Adjoint Logic
Sophia Roshal and Frank Pfenning propose a new system called Ordered Adjoint Logic. Think of this not as a single warehouse, but as a smart, multi-level logistics network.

Here is how their new system works, using simple analogies:

1. The "Modes" are Different Zones

Instead of one strict base zone, imagine a building with different floors, or "modes."

  • Floor A (Strict): Items here must be used exactly once, in order, and cannot be moved.
  • Floor B (Flexible): Items here can be copied, thrown away, or shuffled around.
  • Floor C (Directional): Items here can move left but not right, or vice versa.

In this new system, you don't have to force everything into one strict zone. You can work natively on the floor that fits your needs.

2. The "Elevators" (Adjoint Modalities)

The magic of their system is the elevator. They use special "shift" operators (called adjoints) to move items between floors.

  • If you have a flexible item but need to use it in a strict zone, you take the elevator down.
  • If you have a strict item but need to use it in a flexible zone, you take the elevator up.

This is much smoother than the old "base mode" approach because you only take the elevator when you absolutely need to switch contexts. You stay on your native floor as long as possible.

3. The "One-Way Streets" (Directional Mobility)

This is the paper's biggest innovation. In previous systems, if an item could move, it could usually move in both directions (left and right).

Roshal and Pfenning realized that sometimes you only need to move things one way.

  • The Security Analogy: Imagine a security clearance badge.
    • Authorization (Left Mobile): You can get your security clearance before you start your high-security task. You can move the "authorization" item to the left of the "task" item.
    • The Task (Right Mobile): You can perform the high-security task after the authorization. You can move the "task" item to the right.
    • The Constraint: You cannot move the task before the authorization.

Their system allows for Left Mobility (moving left) and Right Mobility (moving right) as separate, independent rules. This lets them model complex real-world protocols (like security checks) much more accurately than before.

4. The "Traffic Cop" (Cut Elimination)

In logic, "cut elimination" is like proving that a traffic cop isn't needed to direct traffic; the cars can navigate the intersection on their own without crashing.

  • The authors proved that their new, complex system of elevators and one-way streets is stable. Even with all these different rules, you can always simplify a proof (a path through the warehouse) to its most direct form without getting stuck or creating contradictions. This proves the system is mathematically sound.

5. The "Automated Inspector" (Decidability)

Finally, they created a "Natural Deduction" version of this system. Think of this as an automated inspector for code.

  • In the old systems, checking if a program followed the rules was easy.
  • In this new, complex system, checking if a program is valid is harder because the inspector has to guess where items might have moved (due to mobility) or been copied (due to weakening).
  • The Result: The authors proved that this inspector always finishes its job. It won't get stuck in an infinite loop. It can always decide, "Yes, this code is valid" or "No, it breaks the rules," even though the rules are very subtle and hidden.

Summary

Roshal and Pfenning built a new, flexible rulebook for managing resources in computer programs.

  1. No more clunky switching: You work natively in your specific "mode" and only switch when necessary.
  2. One-way streets: They introduced the ability to control movement directionally (left vs. right), which is crucial for security and ordering.
  3. It works: They proved the math holds up (no crashes) and that a computer can always check if a program follows these complex rules.

This provides a solid foundation for building programming languages that can enforce very fine-grained rules about how data is used, moved, and secured, without the system becoming too messy to understand or verify.

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 →