arXiv:2610.02184cs.FLOct 2026

Manuscript Offprint

arXiv:2610.02184

Sufficient Reasons and Explanations for Reactive Systems

Hadar Frenkel, Nadav Rutman Moshe

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hadar Frenkel ®^{®} and Nadav Rutman Moshe

Department of Computer Science and Artificial Intelligence,

Bar-Ilan University, Israel

hadar.frenkel@biu.ac.il

Abstract. We address the problem of temporal causality and explainability for reactive systems, and, in this setting, study sufficient reasons and contrastive explanations. These two notions are well-known explainability measures in the context of neural networks. In this work, we unify these notions for reactive systems and formal specifications given in temporal logic, providing dedicated definitions for sufficient reasons and contrastive explanations. We then lift these definitions to temporal sufficient reasons and contrastive explanations, providing more general and symbolic representations of explainability. We analyze the complexity of both verifying and finding explanations of the different types, and we demonstrate our approach using a prototype implementation.

1 Introduction

In this work, we address different aspects of explainability and causality studied in the literature, and study them in the context of reactive systems and temporal logic specifications. Reactive systems interact with their environment indefinitely, where, at each discrete time point, they can react to environmental inputs with some system outputs. They form the common formalism used in the verification community today, used as an abstraction for many different formalisms, from hardware circuits [2], to software code [23]. The prominent logic to reason about the behavior of reactive systems over time is Linear Temporal Logic (LTL, [29]), widely used to formally prove that systems adhere to their specifications. But, even if we can prove the correctness or incorrectness of a system, it is not always clear why a system satisfies or falsifies its specification.

In recent years, many works have studied explainability and causality in reactive systems [22,1,7]. In particular, a recent line of work has studied temporal actual causality, explaining effects given as LTL specifications: Based on the definitions of Halpern and Pearl [19], [10] provides an algorithm for finding actual causes as finite sets of events on the trace; [11] defines causes as temporal properties; [14] presents an algorithm for the synthesis of temporal actual causes as automata over infinite words; and [8] provides a complexity analysis.

∗^{*} This work was supported by the Israel Science Foundation (ISF grant No. 655/25).

In this work, we study different formalisms for temporal explainability, namely, sufficient reasons and contrastive explanations [4], which are intuitive formalisms that are already used to explain the outputs of neural networks. Similar to Halpern and Pearl's actual causality, sufficient reasons take into account the current input to the system, and aim at explaining the behavior of the system, when given this input. But, while Halpern and Pearls' actual causes are the most refined reasons for a given effect, sufficient reasons provide the most general reason for the effect (though they might collide in some cases). For example, [19] describe a scenario in which Suzy and Billy throw a rock, but since Suzy is stronger, her rock hits a bottle first, which causes the bottle to break. In their actual causality analysis, they define an elaborated mechanism to derive that Suzy is the actual cause for the broken bottle. Sufficient reasons define the sufficient events, that, had they occurred, the result would stay the same. In this case, Suzy and Billy throw the rock is a sufficient reason, but minimal sufficient reasons would be Suzy throws the rock, or Billy throws the rock. While actual causality can be used to derive accountability (here, Suzy is to blame for the broken bottle), (minimal) sufficient reasons tell us what are the sufficient actions we need to take in order to achieve the same outcome. Contrastive explanations, that we study at the end of this paper, describe what are the minimal changes we need to do to avoid the outcome.

In the context of reactive systems, when a system violates its specification, a model-checker outputs a counterexample trace [6]. Applying our causal analysis on this trace using sufficient reasons, we can find the most general behavior of the system that would still violate the specification (analysis which one can then use to repair the system). In contrast, we can use contrastive explanations to find minimal changes that would help avoiding the violation. In the same way, we can find positive example traces that satisfy the specification, and use our proposed analysis to derive what actions would maintain the same positive behavior (using sufficient reasons), or what are minimal changes that would lead to a violation, to help us avoid it (using contrastive explanations).

Motivated by the need for such intuitive and simple definitions of explainability, we provide definitions of (minimal) sufficient reasons and contrastive explanations for reactive systems, both as sets of events (not limited to finite sets), and as temporal reasons and explanations. We present an algorithmic approach for verifying and finding (events/temporal) reasons and explanations, and demonstrate our approach with a prototype implementation, and we provide complexity analysis for each problem: verification/synthesis of sufficient reasons/contrastive explanations in the temporal/non-temporal setting.

Following these definitions, this work presents a new approach for temporal explainability for reactive systems, allowing the user to choose what definitions to use depending on the type of desired explanation. Moreover, we establish a common ground for a formal definition of explainability, already used across different fields.

Contributions We provide definitions, complexity analysis, and algorithms for sufficient reasons and contrastive explanations for effects given in temporal logics.

We show that for minimal sufficient reasons that are sets of events on the trace, there is always an ultimately periodic representation for this set of events, which we can find by solving a model-checking instance. Our use of logical formalism to express minimal sufficient reasons allows us to find infinite sets of events on a trace. For minimal temporal sufficient reasons, that is, the reasons themselves are temporal properties and not only sets of events, we show that there is always a unique, ω\omega-regular minimal temporal sufficient reason. We show that the problems of verifying (minimal, temporal) sufficient reasons and contrastive explanations are all PSPACE complete, which stems from the underlying LTL model-checking problem. The main focus of our work is the analysis of sufficient reasons. In addition, in Section 7, we briefly address contrastive explanations. While contrastive explanations were addressed in previous works [17,28] as counterfactual traces, here we provide a complexity analysis for the synthesis of contrastive explanations, and provide a characterization of temporal contrastive explanations, that were not studied before. Finally, we present a prototype implementation.

References (28)