🤖 AI Summary
This work addresses the challenge of non-terminating computations in goal-directed Answer Set Programming (ASP) solvers when modeling safety-critical cyber-physical systems using the Event Calculus, where precise representation of continuous time can induce Zeno behaviors. For the first time, this study systematically identifies and classifies typical modeling patterns within the Event Calculus that give rise to such Zeno phenomena. It further proposes targeted mitigation strategies alongside an automated detection mechanism to handle these non-termination issues. Empirical validation on multiple canonical case studies demonstrates that the proposed approach effectively recognizes and resolves Zeno-induced non-termination, thereby significantly enhancing the reliability and practical applicability of formal verification in this domain.
📝 Abstract
It has been argued that Event Calculus (EC) is suitable for modeling high-level specifications of safety-critical cyber-physical systems. The primary advantage lies in the rather small semantic gap between EC models and requirements expressed in a semi-formal natural language. Moreover, its use of continuous time and variables avoids imprecision that stems from discretization. In the past, we have shown that a goal-directed ASP system can be used for implementing these EC models. However, precise representation of time as an infinitesimally divisible continuous quantity leads to Zeno-like behaviors and to non-termination in such a system. In this work, we model a number of well-known example problems from the literature to systematically study various natural EC modeling patterns that yield these Zeno-like behaviors, and propose ways to deal with them. Moreover, we also propose a technique to automatically detect all such cases.