Hennessy-Milner Logic in CSLib, the Lean Computer Science Library
This paper presents a general, reusable formalization of Hennessy-Milner Logic within the Lean Computer Science Library (CSLib), featuring a complete metatheory that includes the Hennessy-Milner theorem and leverages Lean's automation to support arbitrary image-finite labelled transition systems.
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 have a massive, complex machine—like a video game character, a traffic light system, or a robot vacuum. You want to know: "How does this thing behave?" and "Is it behaving exactly the same way as that other machine?"
In computer science, we use a framework called a Labelled Transition System (LTS) to map out every possible move a machine can make. Think of an LTS as a giant, branching "Choose Your Own Adventure" book where every page is a state, and every arrow is a move labeled with an action (like "press start," "move left," or "send message").
The paper you're asking about is about building a universal rulebook (called Hennessy–Milner Logic, or HML) to describe these machines, and proving that this rulebook is perfectly accurate.
Here is the breakdown of their work using simple analogies:
1. The Problem: "Are these two machines twins?"
Imagine you have two robots, Robot A and Robot B.
- Robot A can press a button and move to a room with a cat.
- Robot B can press a button and move to a room with a dog.
To a human, they are different. But what if they are incredibly complex? How do we prove they are exactly the same (or different) without testing every single possible future scenario?
Computer scientists use Bisimulation. This is like a "mirror test." If Robot A makes a move, Robot B must be able to make a matching move to a state that looks just as good. If they can keep mirroring each other forever, they are "bisimilar" (twins).
2. The Solution: The "Logic Language" (HML)
The authors created a special language (HML) to describe these machines. Instead of saying "Robot A goes to the cat room," they use logical sentences like:
- "Diamond" (): "It is possible to press button and end up in a state where is true." (Like saying: "There is a path to the treasure.")
- "Box" (): "No matter how you press button , you must end up in a state where is true." (Like saying: "Every path leads to safety.")
They built this language inside Lean, a powerful tool that acts like a super-strict math teacher. Lean checks every single step of their logic to ensure there are no mistakes.
3. The Big Achievement: The "Mirror Theorem"
The most famous part of their work is proving the Hennessy–Milner Theorem.
Think of it this way:
- Bisimulation is checking if two machines move in perfect sync physically.
- Theory Equivalence is checking if two machines answer "Yes" to the exact same list of questions in our Logic Language.
The authors proved a magical fact: For machines that don't have infinite branching possibilities (called "image-finite"), these two checks are identical.
If two machines answer the same questions in our logic language, they are physically identical twins. If they are physically identical twins, they answer the same questions. It's a perfect 1-to-1 match.
4. Why This Paper Matters (The "CSLib" Part)
Before this, people had written code to check these things, but it was often messy, specific to one type of robot, or hard to reuse.
The authors built this logic as a library (a toolbox) called CSLib.
- Analogy: Imagine previous researchers built a custom wrench for a specific bolt. The authors built a universal, high-quality socket set that fits any bolt.
- Reusability: Because they built it into the "Lean Computer Science Library," anyone else working on automata, communication protocols, or software verification can just grab this toolbox and use it immediately. They don't have to reinvent the wheel.
- Automation: They used a special tactic called
grind(think of it as a "magic eraser" or "auto-pilot") that automatically solves the boring, repetitive math proofs, letting the researchers focus on the big ideas.
Summary
In short, these researchers built a universal, error-proof dictionary for describing how computer systems behave. They proved that this dictionary is so accurate that if two systems speak the same "language" in this dictionary, they are guaranteed to be behaving identically in the real world.
They packaged this dictionary into a shared toolbox so that other computer scientists can use it to build safer, more reliable software without having to do the heavy lifting themselves.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.