← Latest papers
💻 computer science

TREBL -- A Relative Complete Temporal Event-B Logic. Part I: Theory

This paper introduces TREBL, a relative complete temporal logic for Event-B that expresses liveness properties over state traces, defines sound derivation rules for it, and proves that valid entailments can always be derived given sufficiently refined machines where specific variant terms are definable.

Original authors: Klaus-Dieter Schewe, Flavio Ferrarotti, Peter Rivière, Neeraj Kumar Singh, Guillaume Dupont, Yamine Aït Ameur

Published 2026-04-22
📖 5 min read🧠 Deep dive

Original authors: Klaus-Dieter Schewe, Flavio Ferrarotti, Peter Rivière, Neeraj Kumar Singh, Guillaume Dupont, Yamine Aït Ameur

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 the architect of a very complex, self-driving factory. You have written the blueprints (the code) for how machines move, how robots assemble parts, and how security guards check IDs. You know the blueprints are logically sound—no machine will ever try to walk through a wall because the math says it can't.

But there's a bigger worry: Will the factory ever get stuck? Will a robot get stuck waiting for a part that never arrives? Will a security guard get stuck waiting for a door that never opens? In computer science, we call these "liveness" problems. We want to prove that the system doesn't just not crash, but that it actually keeps moving forward.

This paper introduces a new, super-powered tool called TREBL (Temporal Event-B Logic) to solve exactly this problem. Here is how it works, explained without the heavy math jargon.

1. The Old Problem: Looking at the Wrong Thing

Traditionally, to prove a factory won't get stuck, you had to look at every possible path the factory could take. Imagine trying to watch every single possible movie that could ever be made with your actors. It's impossible. You'd have to trace every single step of every possible timeline.

Previous tools tried to do this by treating time as a separate, complicated layer. They said, "Let's look at the whole movie script." This made the logic very hard to use and often impossible to prove completely.

2. The New Idea: The Crystal Ball

The authors of this paper had a brilliant insight: You don't need to watch the whole movie to know how it ends.

In their system (Event-B), the current state of the factory (where the robots are, what the doors are doing) acts like a Crystal Ball. If you know exactly where everything is right now, the blueprints determine exactly what can happen next. The future is already "baked in" to the present state.

TREBL changes the game by saying: "Let's stop looking at the whole timeline. Let's just look at the current state and ask, 'Does this state guarantee a good future?'"

Instead of writing complex rules about "forever" or "eventually," TREBL treats these time concepts as shortcuts. It translates "The robot will eventually get a part" into a simple math question about the robot's current position and a special "energy meter."

3. The Secret Weapon: The "Energy Meter" (Variants)

How do we prove the robot will eventually get the part? The paper introduces the concept of a Variant, which is like an Energy Meter or a Countdown Timer.

Imagine the robot is stuck in a loop. To prove it will escape, you need a rule that says: "Every time the robot tries to move, its Energy Meter goes down by 1."

  • If the meter starts at 100, and it goes down every step, it must eventually hit 0.
  • When it hits 0, the robot is no longer stuck; it has reached its goal.

The paper proves a magical thing: If a system is supposed to work (it's "live"), you can always find a way to build this Energy Meter into the blueprints. You might need to add a few extra variables (like a counter) to the design, but it's always possible. This is called Relative Completeness. It means: "If the system is correct, our tools can always prove it, as long as you give us the right Energy Meter."

4. Handling the Chaos: Security and Fairness

The paper also tackles tricky scenarios, like Security (Non-interference).

  • The Problem: Can a high-level spy see what a low-level worker is doing?
  • The TREBL Solution: Instead of tracing every possible spy scenario, TREBL looks at the current state and asks, "If a high-level event happens, does it change the low-level worker's view?" It turns a complex security puzzle into a simple "before and after" math check.

It also handles Fairness. If a worker is waiting for a turn, does the system guarantee they get it? TREBL uses the Energy Meter to prove that the system can't keep ignoring the worker forever without the "meter" running out.

5. The Big Picture: Why This Matters

Think of previous methods as trying to solve a maze by walking every single path until you find the exit. It's slow and sometimes you get lost.

TREBL is like having a map that shows you the exit is reachable if you just follow the "downhill" path (the Energy Meter).

  • It's simpler: You don't need to think about "time" as a separate dimension; you just look at the current state.
  • It's complete: The authors proved that if a solution exists, this method can find it.
  • It's practical: They showed examples using security systems and production lines, proving that even complex safety rules can be checked easily with this new logic.

Summary Analogy

Imagine you are playing a video game.

  • Old Way: To prove you can beat the level, you have to simulate every possible move the game could make, every enemy path, and every glitch, hoping you don't get stuck.
  • TREBL Way: You look at your character's current health and ammo. You define a rule: "Every time you take a step, your health drops by 1." Since health can't go below zero, you know you must reach the end of the level eventually. You don't need to simulate the whole game; you just need to prove the "Health Drop" rule exists.

This paper builds the ultimate rulebook for proving that complex, automated systems will keep working and never get stuck, using simple math instead of impossible simulations.

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 →