← Latest papers
💻 computer science

Event Calculus Meets Hybrid ASP

This paper introduces Hybrid Event Calculus, an extended axiomatization implemented in Hybrid ASP systems (clingcon and clingo-lpx) that overcomes the scalability and accuracy limitations of traditional grounding-based and top-down approaches by representing continuous changes and dense domains as linear constraints, thereby enabling accurate and scalable modeling of safety-critical systems.

Original authors: Ondřej Vašíček, Joaquín Arias, Jan Fiedor, Gopal Gupta, Bohuslav Křena, Jakub Němec, Javier Romero, Tomáš Vojnar

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

Original authors: Ondřej Vašíček, Joaquín Arias, Jan Fiedor, Gopal Gupta, Bohuslav Křena, Jakub Němec, Javier Romero, Tomáš Vojnar

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 story about a complex machine, like a self-driving car or a smart thermostat. You want to describe how it behaves over time: what happens when a button is pressed, how the temperature changes, and when the system should sound an alarm.

In the world of computer science, there is a language called Event Calculus that is great for writing these stories because it feels very close to how humans speak. However, when computers try to read these stories, they hit a wall if the story involves continuous change (like a temperature slowly dropping) or huge ranges of numbers (like time measured in milliseconds over years).

This paper introduces a new way to tell these stories, called Hybrid Event Calculus, which acts like a "super-charged" translator for computers. Here is how it works, using some everyday analogies:

1. The Problem: The "Pixelated" Map

Traditional computer methods for checking these stories (called Discrete Event Calculus) work like a low-resolution, pixelated map.

  • The Issue: If you want to track a ball falling, a pixelated map can only show the ball at specific grid points (e.g., 1 meter, 2 meters, 3 meters). It misses what happens between the grids.
  • The Explosion: To make the map more accurate, you have to add more pixels. But if you want to track time down to the millisecond for a whole day, the number of pixels becomes so huge that the computer's memory explodes, and it crashes. It's like trying to count every single grain of sand on a beach to find one specific shell.

2. The Solution: The "Smart Sketch" (Hybrid ASP)

The authors created a new method called Hybrid Event Calculus. Instead of drawing every single pixel, this method uses a "Smart Sketch" approach.

  • Functional Fluents (The Variable Paint): Instead of saying "The temperature is 20" or "The temperature is 21," the computer treats the temperature as a flexible variable, like a paintbrush that can be anywhere on the canvas. It uses math constraints (like a ruler) to define the range, rather than listing every single number.
  • Abstract Steps (The Story Beats): Instead of forcing the story to happen at every single second (1:00, 1:01, 1:02), the computer only looks at the important moments (the "beats" of the story).
    • Example: If a ball is dropped, the computer only cares about the moment it is dropped and the moment it hits the ground. It ignores the millions of tiny moments in between, calculating the path mathematically instead of listing them one by one.

3. The Engine: The "Mathematical Librarian"

To make this work, the authors used special computer tools (called clingcon and clingo-lpx) that act like a librarian who is also a mathematician.

  • The Old Way: The computer would try to read every single book in the library (grounding every possibility) before answering a question.
  • The New Way: The computer asks the mathematician-librarian, "If the ball falls at speed X, where will it be at time Y?" The librarian solves the math instantly without needing to look up every single second in a book. This allows the system to handle dense domains (infinite possibilities between numbers) without getting overwhelmed.

4. Why It Matters: Accuracy Without the Crash

The paper shows that this new method has two superpowers:

  1. It doesn't care about size: Whether you are tracking time for 10 seconds or 10 years, the computer's workload stays the same because it only counts the "story beats," not the seconds.
  2. It handles the "in-between": Because it uses math constraints (specifically rational numbers), it can accurately model continuous changes. It can tell you exactly when a falling object hits the ground, even if that happens at a time that isn't a whole number (like 10.5 seconds), which the old "pixelated" methods often miss or get wrong.

Summary

Think of the old method as trying to watch a movie by looking at a flipbook where you have to draw every single frame manually. If the movie is long, you run out of paper.

The new Hybrid Event Calculus is like watching the movie on a high-definition screen. You only pause at the key scenes (the events), and the computer fills in the smooth motion between them using math. This lets you analyze complex, real-world systems (like safety-critical machines) accurately, without the computer getting bogged down by the sheer amount of data.

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 →