Hostname: page-component-76d6cb85b7-s74w7 Total loading time: 0 Render date: 2026-07-15T06:44:07.643Z Has data issue: false hasContentIssue false

Event Calculus Meets Hybrid ASP

Published online by Cambridge University Press:  15 July 2026

ONDŘEJ VAŠÍČEK
Affiliation:
Brno University of Technology Faculty of Information Technology, Czech Republic (e-mail: ivasicek@fit.vut.cz)
JOAQUÍN ARIAS
Affiliation:
Universidad Rey Juan Carlos, Spain (e-mail: joaquin.arias@urjc.es)
JAN FIEDOR
Affiliation:
Brno University of Technology Faculty of Information Technology, Czech Republic Honeywell International Inc., Czech Republic (e-mail: ifiedor@fit.vut.cz)
GOPAL GUPTA
Affiliation:
Computer Science Dept., The University of Texas at Dallas, USA (e-mail: gupta@utdallas.edu)
BOHUSLAV KŘENA
Affiliation:
Brno University of Technology Faculty of Information Technology, Czech Republic (e-mail: krena@fit.vut.cz)
JAKUB NĚMEC
Affiliation:
Faculty of Informatics, Masaryk University, Czech Republic (e-mail: jaknem@mail.muni.cz)
JAVIER ROMERO
Affiliation:
Institute of Computer Science, University of Potsdam, Germany (e-mail: javier.romero.davila@uni-potsdam.de)
TOMÁŠ VOJNAR
Affiliation:
Brno University of Technology Faculty of Information Technology, Czech Republic Faculty of Informatics, Masaryk University, Czech Republic (e-mail: vojnar@fi.muni.cz)
Rights & Permissions [Opens in a new window]

Abstract

Event Calculus (EC) implemented in Answer Set Programming (ASP) has proven suitable for specifying requirements on safety-critical systems thanks to its elegant representation of both discrete and continuous changes and its semantic closeness to semi-formal natural language. However, continuous changes and the size of value domains of time and system properties (fluents) pose significant challenges. Grounding-based ASP solvers, for example, clingo, which implement Discrete EC (DEC), lead to combinatorial explosion in program size and inaccurate representation. The grounding-free s(CASP) does not discretize but struggles with non-termination due to its top-down execution. This paper introduces Hybrid EC, an extended axiomatization of DEC, that tackles the challenges via functional fluents and a mapping of time to abstract steps. We implement it using clingcon and clingo-lpx (Hybrid ASP systems over integers and rationals, respectively) where the value (dense) domains of fluents and time are represented as linear constraints and evaluated by external solvers, while ensuring termination whenever solutions exist. We validate both implementations on a number of examples and observe that they are unaffected by the size of the domains and that handling rationals does not impact scalability. Most importantly, the ability of clingo-lpx to handle dense domains enables accurate modeling of continuous change.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Table 1. Predicates used in EC and DEC. Based on Table 17.4 from Mueller (2008)

Figure 1

Fig. 1. DEC encoding of the counter example.

Figure 2

Fig. 2. Mapping of (dense) time values to discrete steps.

Figure 3

Fig. 3. Axioms of HEC 5 and HEC 9 representing event effects and inertia.

Figure 4

Fig. 4. Axioms for representing gradual (DEC) and continuous (HEC) change.

Figure 5

Fig. 5. Non-event observations.

Figure 6

Fig. 6. The Summarized mathamatical equation constraint and a triggered event for the falling object.

Figure 7

Fig. 7. The significant step constraint.

Figure 8

Table 2. Comparing the expressiveness of DEC and HEC

Figure 9

Fig. 8. (a) Scaling with the size of the domain, (b) Scaling with the number of events.

Supplementary material: File

Vašíček et al. supplementary material

Vašíček et al. supplementary material
Download Vašíček et al. supplementary material(File)
File 440 KB