Doctrinal Semantics of Directed First-Order Logic
This paper introduces a directed first-order logic featuring asymmetric equality and a polarity-based syntactic system, providing a sound and complete categorical semantics via "directed doctrines" that characterize directed equality as a relative left adjoint and generalize Lawvere's classical equality.
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 write a set of rules for a game where things can change, but the rules for "change" are different from the rules for "sameness."
In standard logic (the kind used in math and computer science), equality is like a mirror. If is equal to , then is automatically equal to . It's a two-way street. But in the real world, many things are directed. If you rewrite a document, you go from Version 1 to Version 2. You can't just magically go back to Version 1 without doing the work again. If you have a process that turns a raw egg into a cooked egg, that process doesn't work in reverse.
This paper introduces a new kind of logic called Directed First-Order Logic. Think of it as a rulebook for a world where "equality" is actually a one-way street, or a "rewrite."
Here is the breakdown of their ideas using simple analogies:
1. The Problem: The "Mirror" vs. The "Arrow"
In traditional logic, if you say "x equals y," you are saying they are interchangeable.
- The Mirror: If I hold a mirror up to you, your reflection looks just like you. If I swap you with your reflection, nothing changes.
- The Arrow: In this new logic, the relationship is an arrow (). It means "x can become y" or "x rewrites to y." But you cannot necessarily go from back to .
The authors wanted to build a logic system that treats these arrows as the fundamental building blocks, rather than just adding them as an afterthought.
2. The Solution: "Polarity" (The Traffic Lights)
The biggest headache in creating this logic is keeping track of direction.
Imagine a traffic intersection.
- Positive variables are cars driving forward.
- Negative variables are cars driving backward (or looking at the road from the opposite direction).
- Dinatural variables are cars that can drive in both directions, but only if they are careful.
In standard logic, you don't need to worry about which way a car is facing; it's just a car. In this new logic, the authors invented a system of Polarities. They split the "context" (the list of variables available to use) into three separate lanes:
- The Negative Lane: Variables here can only be used in "backward" positions.
- The Positive Lane: Variables here can only be used in "forward" positions.
- The Dinatural Lane: Variables here are special; they can appear in both lanes, but they must be the same variable in both places (like a car that drives forward and backward simultaneously in a loop).
This system acts like a strict traffic cop. It prevents you from accidentally writing a rule that says "If A becomes B, then B becomes A" (which would break the one-way nature of the logic). It forces the logic to respect the direction of the arrow.
3. The "Magic Trick": Relative Adjunctions
The paper uses a fancy mathematical concept called an "adjunction" to explain how equality works.
- Old Logic: Equality is like a machine that takes two variables and squashes them into one.
- New Logic: Because the arrows are one-way, you can't just squash them. You need a machine that takes two variables (one facing forward, one facing backward) and squashes them into a single "loop" variable.
The authors prove that this "directed equality" is the best possible way to do this squashing, given the rules of the road (the polarities). They call this a "Relative Left Adjoint." In plain English: It's the most efficient way to combine a forward-moving thing and a backward-moving thing into a single unit, without breaking the rules of the system.
4. The "Doctrines" (The Rulebook)
To make sure their logic actually works, they built a "Doctrinal Semantics."
Think of a Doctrine as a dictionary that translates the abstract rules of the logic into a concrete world.
- In their world, Types are Preorders.
- What is a Preorder? Imagine a list of items where some are "less than or equal to" others, but not everything is comparable. For example, in a video game, "Level 1" is less than "Level 2," but "Level 1" isn't necessarily less than "Level 3" in a direct line (you might skip it).
- They proved that their logic is Sound and Complete.
- Sound: If you can prove something in their rulebook, it is true in the real world (the preorder world).
- Complete: If something is true in the real world, you can prove it using their rulebook.
5. Why This Matters (According to the Paper)
The authors show that this logic is perfect for describing things that happen in steps or processes, like:
- Rewriting: Changing a sentence in a document.
- Graph Rewriting: Changing the connections in a network (like a social network or a computer circuit).
- Petri Nets: A way to model how resources move through a system (like customers in a bank or tokens in a game).
They specifically mention that this logic is proof-irrelevant. This means they don't care how you got from A to B (the specific path or proof), only that you can get from A to B. This is different from some advanced computer science theories that care about every single step of the journey.
Summary
The authors have built a new language for logic that treats "change" as a one-way street. To keep the traffic flowing correctly, they invented a system of "lanes" (polarities) to ensure variables don't get confused about which way they are facing. They proved that this system is mathematically solid and perfectly matches a world where things are ordered but not necessarily symmetric (like a to-do list or a game progression).
They didn't invent this to cure diseases or build new apps directly; they did it to fix a fundamental gap in how mathematicians and computer scientists understand the logic of "directed" change.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.