betaFeedback

WorksComputer Science

Sufficient Reasons and Explanations for Reactive Systems

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.

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.

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 § 6, 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.

Preliminaries

Transition Systems and Temporal Logic Given a finite set XX, X∗X^* is the set of all finite sequences of elements of XX, X+X^+ is the set of all non-empty finite sequences, and XωX^\omega is the set of all infinite sequences of elements of XX.

Transition Systems and Traces Let AP be a finite set of atomic propositions, such that AP=IP∪OP\mathrm{AP} = \mathrm{IP} \cup\mathrm{OP} is the union of input propositions (IP) and output propositions (OP) with IP∩OP=∅\mathrm{IP} \cap\mathrm{OP} = \varnothing. We model a reactive transition system as a Mealy Machine [27] T=(Q,q0,δ,IP,OP)T = (Q, q_0, \delta, \mathrm{IP}, \mathrm{OP}) where QQ is a finite set of states, q0∈Qq_0 \in Q is the initial state, and δ:Q×2IP→Q×2OP\delta: Q \times2^{\mathrm{IP}} \to Q \times2^{\mathrm{OP}} is the transition function, mapping the current state and set of inputs to the next state and a set of outputs. TT is input deterministic, that is, ∀q∈Q,∀i∈2IP\forall q \in Q, \forall i \in2^{\mathrm{IP}}, there exists exactly one pair (q′,o)(q', o) such that δ(q,i)=(q′,o)\delta(q, i) = (q', o).

A path of TT is an infinite sequence of states p0p1p2⋯∈Qωp_0p_1p_2 \cdots\in Q^\omega such that p0=q0p_0 = q_0 and ∀j:∃ij∈2IP,oj∈2OP\forall j : \exists i_j \in2^{\mathrm{IP}}, o_j \in2^{\mathrm{OP}} such that δ(pj,ij)=(pj+1,oj)\delta(p_j, i_j) = (p_{j+1}, o_j). The trace induced by such a path is π0π1π2⋯∈(2AP)ω\pi_0\pi_1\pi_2 \cdots\in(2^{\mathrm{AP}})^\omega where ∀j:πj=ij∪oj\forall j : \pi_j = i_j \cup o_j. TR(T)\mathrm{TR}(T) is the set of all traces induced by paths of a transition system TT.

We say that a trace π∈(2AP)ω\pi\in(2^{\mathrm{AP}})^\omega is ultimately periodic if there exist u∈(2AP)∗u \in(2^{\mathrm{AP}})^*, v∈(2AP)+v \in(2^{\mathrm{AP}})^+ such that π=u⋅vω\pi= u \cdot v^\omega.

For an infinite trace π\pi, π[j]\pi[j] denotes the jj'th location of π\pi, and π[j,∞)\pi[j,\infty) denotes the suffix of π\pi starting from position jj.

The projection of a trace π∈(2AP)ω\pi\in(2^{\mathrm{AP}})^\omega on a subset AP′⊂AP\mathrm{AP}' \subset\mathrm{AP} is π↓AP′=(π[0]∩AP′)(π[1]∩AP′)⋯∈(2AP′)ω\pi_{\downarrow\mathrm{AP}'} = (\pi[0] \cap\mathrm{AP}')(\pi[1] \cap\mathrm{AP}') \cdots\in(2^{\mathrm{AP}'})^\omega.

For traces π1∈(2AP1)ω\pi_1 \in(2^{\mathrm{AP}_1})^\omega, π2∈(2AP2)ω\pi_2 \in(2^{\mathrm{AP}_2})^\omega we define their union π1∪π2\pi_1 \cup\pi_2 as dot-wise union, that is π1∪π2=(π1[0]∪π2[0])(π1[1]∪π2[1])(π1[2]∪π2[2])⋯\pi_1 \cup\pi_2 = (\pi_1[0] \cup\pi_2[0])(\pi_1[1] \cup\pi_2[1])(\pi_1[2] \cup\pi_2[2]) \cdots.

Büchi Automata A Non-deterministic Büchi Automaton (NBA) over infinite words is A=(Σ,Q,q0,δ,F)\mathcal{A} = (\Sigma, Q, q_0, \delta, F) where Σ\Sigma is a finite alphabet, QQ is a finite set of states and q0∈Qq_0 \in Q is the initial state, δ⊆Q×Σ×Q\delta\subseteq Q \times\Sigma\times Q is the transition relation, and F⊆QF \subseteq Q is the set of accepting states.

A run of an NBA A\mathcal{A} on a word α0α1α2⋯∈Σω\alpha_0\alpha_1\alpha_2 \cdots\in\Sigma^\omega is an infinite sequence p0p1p2⋯∈Qωp_0p_1p_2 \cdots\in Q^\omega such that p0=q0p_0 = q_0 and ∀j:(pj,αj,pj+1)∈δ\forall j : (p_j,\alpha_j,p_{j+1}) \in\delta.

An NBA A\mathcal{A} accepts a word α\alpha if there is a run p0p1p2⋯p_0p_1p_2 \cdots of A\mathcal{A} on α\alpha such that for infinitely many jj’s we have pj∈Fp_j \in F. The language of A\mathcal{A}, denoted by L(A)\mathcal{L}(\mathcal{A}), is the set of all words accepted by A\mathcal{A}.

We can view any Mealy machine T=(Q,q0,δ,IP,OP)T = (Q,q_0,\delta,\mathrm{IP},\mathrm{OP}) as an NBA A=(2AP,Q,q0,δ′,F)\mathcal{A} = (2^{\mathrm{AP}},Q,q_0,\delta',F) such that F=QF = Q and δ′={(q,i∪o,q′)∣i∈2IP,o∈2OP,δ(q,i)=(q′,o)}\delta' = \{(q,i \cup o,q') \mid i \in2^{\mathrm{IP}}, o \in2^{\mathrm{OP}}, \delta(q,i) = (q',o)\}. Therefore, in the rest of the paper, we perform operations such as intersection between an NBA and a transition system, assuming an automaton representation for the system.

LTL and HyperLTL We define Linear Temporal Logic (LTL) [29] and its relational extension HyperLTL [9]. The goal of this paper is to provide reasons and explanations for the behavior of a system with respect to LTL specifications. We use HyperLTL as a meta-logic to express reasons and explanations. Both logics are defined over the set of atomic propositions AP\mathrm{AP}. HyperLTL is also defined over a finite set V\mathcal{V} of trace variables. The definition of LTL is given in black using the following grammar. The blue parts are the HyperLTL extension.

ψ::=a∣ψ∨ψ∣¬ψ∣Oψ∣ψUψφ::=∃π.φ∣∀π.φ∣ψ\psi::= a \mid\psi\lor\psi\mid\neg\psi\mid\mathop{\mathrm{O}}\psi\mid\psi\mathbin{\mathrm{U}}\psi\qquad\varphi::= \exists\pi.\varphi\mid\forall\pi.\varphi\mid\psi

Where a∈APa \in\mathrm{AP} for LTL formulas, and a∈{pπ∣p∈AP,π∈V}a \in\{p_\pi\mid p \in\mathrm{AP}, \pi\in\mathcal{V}\} for HyperLTL formulas. That is, HyperLTL formulas are LTL formulas where atomic propositions are augmented by trace variables, and with a quantifier prefix.

In addition, O\mathrm{O} is the temporal operator next and U\mathrm{U} is the temporal operator until. We use the usual derived Boolean operators ∧\land, →\to, ↔\leftrightarrow, and the derived temporal operators ◊ψ=trueUψ\Diamond\psi= \mathit{true}\mathbin{\mathrm{U}}\psi (eventually ψ\psi) and □ψ=¬◊¬ψ\Box\psi= \neg\Diamond\neg\psi (globally ψ\psi).

LTL Semantics: We define when an infinite word α∈(2AP)ω\alpha\in(2^{\mathrm{AP}})^\omega satisfies an LTL formula φ\varphi inductively, as follows:

α⊨p  ⟺  p∈α[0]α⊨¬ψ  ⟺  α⊭ψα⊨ψ1∨ψ2  ⟺  α⊨ψ1 or α⊨ψ2α⊨Oψ  ⟺  α[1,∞)⊨ψα⊨ψ1Uψ2  ⟺  ∃t2∈N s.t. α[t2,∞)⊨ψ2 and ∀t1<t2:α[t1,∞)⊨ψ1\begin{aligned} \alpha\models p &\iff p \in\alpha[0] \\ \alpha\models\neg\psi&\iff\alpha\not\models\psi\\ \alpha\models\psi_1 \lor\psi_2 &\iff\alpha\models\psi_1 \text{ or } \alpha\models\psi_2 \\ \alpha\models\mathrm{O}\psi&\iff\alpha[1,\infty) \models\psi\\ \alpha\models\psi_1 \mathbin{\mathrm{U}}\psi_2 &\iff\exists t_2 \in\mathbb{N}\ \text{s.t.}\ \alpha[t_2,\infty) \models\psi_2\ \text{and}\ \forall t_1 < t_2 : \alpha[t_1,\infty) \models\psi_1 \end{aligned}

A system TT satisfies an LTL formula φ\varphi, denoted by T⊨φT \models\varphi iff ∀α∈TR(T):α⊨φ\forall\alpha\in\mathrm{TR}(T) : \alpha\models\varphi.

The language of an LTL formula φ\varphi is the set of all words that satisfy φ\varphi: L(φ)={α∈(2AP)ω∣α⊨φ}\mathcal{L}(\varphi) = \{\alpha\in(2^{\mathrm{AP}})^\omega\mid\alpha\models\varphi\}. Every LTL formula φ\varphi can be translated into an NBA A\mathcal{A} such that L(φ)=L(A)\mathcal{L}(\varphi) = \mathcal{L}(\mathcal{A}) [31]. We denote this NBA by Aφ\mathcal{A}_\varphi and will use this notation throughout the paper.

HyperLTL Semantics are given with respect to a set of traces T\mathcal{T} and a trace assignment Π:V→T\Pi: \mathcal{V} \to\mathcal{T}. Given a trace variable π∈V\pi\in\mathcal{V} and a trace τ∈T\tau\in\mathcal{T}, we denote by Π[π↦τ]\Pi[\pi\mapsto\tau] the trace assignment that coincides with Π\Pi on all variables, except for π\pi which is mapped to τ\tau. For the assignment Π\Pi, we denote by Π[t,∞)\Pi[t,\infty) the assignment that maps every variable π∈V\pi\in\mathcal{V} to the suffix of Π(π)\Pi(\pi) starting from position tt, that is: Π(π)[t]Π(π)[t+1]Π(π)[t+2]⋯\Pi(\pi)[t]\Pi(\pi)[t+1]\Pi(\pi)[t+2]\cdots. We define the semantics of HyperLTL only for atomic propositions and for the quantifiers, since the semantics of the Boolean and temporal operators are defined in the same way as for LTL. We refer the reader to [9], or to Appendix § 10, for the full definition.

Π,T⊨pπiff p∈Π(π)(0)Π,T⊨∃π.φiff there exists τ∈T s.t. Π[π↦τ],T⊨φΠ,T⊨∀π.φiff forall τ∈T:Π[π↦τ],T⊨φ\begin{aligned} \Pi,T &\vDash p_\pi&&\text{iff } p\in\Pi(\pi)(0)\\ \Pi,T &\vDash\exists\pi.\varphi&&\text{iff there exists }\tau\in T\text{ s.t. }\Pi[\pi\mapsto\tau],T\vDash\varphi\\ \Pi,T &\vDash\forall\pi.\varphi&&\text{iff forall }\tau\in T:\Pi[\pi\mapsto\tau],T\vDash\varphi \end{aligned}

We say that TT satisfies φ\varphi, denoted T⊨φT\vDash\varphi, if Π∅,T⊨φ\Pi_{\varnothing},T\vDash\varphi where Π∅:V→∅\Pi_{\varnothing}:\mathcal{V}\to\varnothing is the empty assignment, meaning that φ\varphi contains no free trace variables that need to be assigned. A system TT satisfies a HyperLTL formula φ\varphi if TR⁡(T)⊨φ\operatorname{TR}(T)\vDash\varphi.

Trace Properties A trace property P⊆(2AP)ωP\subseteq(2^{AP})^\omega is a set of traces. For example, the language of an LTL formula, and the language of an NBA, are trace properties. We say that a word α\alpha satisfies a trace property PP if α∈P\alpha\in P.

If PP is over a subset of AP′⊂APAP' \subset AP, i.e., P⊆(2AP′)ωP\subseteq(2^{AP'})^\omega, we say that a word α∈(2AP)ω\alpha\in(2^{AP})^\omega satisfies PP if the projection of α\alpha over AP′AP' satisfies PP, i.e., α↓AP′∈P\alpha\mathord{\downarrow}_{AP'}\in P.

Ultimately Periodic Sets A set R⊆N×APR\subseteq\mathbb{N}\times AP is ultimately periodic if there exist n0,p∈Nn_0,p\in\mathbb{N} such that forall n>n0n>n_0, we have that ⟨n,a⟩∈R\langle n,a\rangle\in R iff ⟨n+p,a⟩∈R\langle n+p,a\rangle\in R forall a∈APa\in AP (in particular, if RR is finite then it is ultimately periodic). This way, ultimately periodic sets, even if infinite, yield a finite representation.

Additional Notations – An event is a pair ⟨n,a⟩∈N×AP\langle n,a\rangle\in\mathbb{N}\times AP.

– For an LTL formula φ\varphi and a trace π\pi, we denote by φπ\varphi_\pi the formula φ\varphi where all atomic propositions are parameterized by π\pi. E.g., (□p∨◊q)π:=□pπ∨◊qπ(\square p\vee\Diamond q)_\pi:=\square p_\pi\vee\Diamond q_\pi.

– We denote a HyperLTL formula φ\varphi with free variables π1,…,πn\pi_1,\ldots,\pi_n by φ[π1,…,πn]\varphi[\pi_1,\ldots,\pi_n].

– For traces π\pi and π′\pi', and a set A⊆APA\subseteq AP we use π=Aπ′\pi=_A \pi' to denote ⋀p∈Apπ↔pπ′\bigwedge_{p\in A}p_\pi\leftrightarrow p_{\pi'}, i.e., the two traces agree on all propositions in AA at a certain timestep. If we want to explicitly refer to a timestep tt, we write π[t]=Aπ′[t]\pi[t]=_A\pi'[t]. If A=APA=AP we simply write π=π′\pi=\pi'. We use π≡Aπ′\pi\equiv_A\pi' to denote that the traces are globally equal, that is: π≡Aπ′:=□(π=Aπ′)\pi\equiv_A\pi':=\square(\pi=_A\pi'). Again, if A=APA=AP we write π≡π′\pi\equiv\pi'.

Explanations We present the definitions as given in [4], with slight modifications for ease of readability.

Sufficient Reasons (Abductive Explanations) Given a function f:Xn→Zf:X^n\to Z, a sufficient reason for f(xˉ)=zf(\bar{x})=z is a subset R⊆[n]R\subseteq[n] such that for every yˉ∈Xn\bar{y}\in X^n: if ∀j∈R:y[j]=x[j]\forall j\in R:y[j]=x[j] then f(xˉ)=f(yˉ)f(\bar{x})=f(\bar{y}) (xˉ[j]\bar{x}[j] denotes the jjth component of xˉ\bar{x}). RR is a minimal sufficient reason if it is a smallest set in terms of containment, i.e., there is no sufficient reason R′⊂RR'\subset R.

Contrastive Explanations (Counterfactual Explanations) A contrastive explanation for f(xˉ)=zf(\bar{x}) = z is a vector yˉ∈Xn\bar{y} \in X^n such that f(xˉ)≠f(yˉ)f(\bar{x}) \ne f(\bar{y}).2 Given a distance measure d:Xn×Xn→Nd : X^n \times X^n \to\mathbb{N}, a minimal contrastive explanation yˉ∈Xn\bar{y} \in X^n is a contrastive explanation, such that for all contrastive explanations yˉ′∈Xn\bar{y}' \in X^n we have d(xˉ,yˉ)≤d(xˉ,yˉ′)d(\bar{x},\bar{y}) \le d(\bar{x},\bar{y}').

Running Example

Consider the system of Figure 1, representing a biased arbiter: once user1 issues a request (r1r_1), user2 can never be granted access to some resource (g2g_2). On the other hand, every request of user1 is answered by a grant (g1g_1), and requests of user2 are answered by grants as long as user1 did not issue any request.

Transition system with states $p_0$ and $p_1$, transitions labelled by input and output sets

Figure 1. A transition system over IP = {r1,r2}\{r_1,r_2\}, OP = {g1,g2}\{g_1,g_2\}

(Minimal) sufficient reasons: Consider the simple specification user2 is eventually granted access, expressed by the LTL formula φ1=◊g2\varphi_1 = \Diamond g_2, and the counterexample trace π={r1,r2,g1}ω\pi= \{r_1,r_2,g_1\}^{\omega}. A minimal sufficient reason for the violation of φ1\varphi_1 on π\pi would be a minimal set of events that appear on π\pi and are sufficient to determine that π⊨¬φ1\pi\models\neg\varphi_1. In this case, {⟨0,r1⟩}\{\langle0,r_1\rangle\}, is such a minimal sufficient reason: it is sufficient to observe r1r_1 on time 0, to never observe g2g_2. A sufficient reason for ¬φ1:=□¬g2\neg\varphi_1 := \Box\neg g_2 would be any superset of {⟨0,r1⟩}\{\langle0,r_1\rangle\}.

Temporal sufficient reasons: Now, assume we want user1 to never be granted access, via the LTL specification □¬g1\Box\neg g_1. It’s negation is ◊g1\Diamond g_1, and the trace π\pi above is a witness for the violation. Every occurrence of r1r_1 on π\pi constitutes a sufficient reason for ◊g1\Diamond g_1. However, in this case, we might want to describe the reason in a more general way, as a temporal property. A temporal sufficient reason would be any property that π\pi satisfies which is sufficient to observe ◊g1\Diamond g_1. Here, temporal sufficient reasons are: □r1\Box r_1 – every trace that always has r1r_1 (as π\pi), would satisfy ◊g1\Diamond g_1; □◊r1\Box\Diamond r_1; simply r1r_1; and ◊r1\Diamond r_1, which is also the minimal temporal sufficient reason (see § 5): While the trace π\pi satisfies □r1\Box r_1, it is sufficient that it would have only satisfied ◊r1\Diamond r_1 to observe ◊g1\Diamond g_1.

Contrastive explanations: For ◊g1\Diamond g_1 and π\pi above, a contrastive explanation is a closest trace τ\tau to π\pi, on which ◊g1\Diamond g_1 does not hold, for example {r2,g2}ω\{r_2,g_2\}^{\omega}: only avoiding all occurrences of r1r_1 would avoid ◊g1\Diamond g_1.

Definitions

We define specific traces and structures that we use throughout the paper. The motivations for these constructs appear when we use them, later on in the paper.

Definition 1 (Trace representation). Let R⊂N×IPR \subset\mathbb{N} \times IP and let r∉APr \notin AP. We represent RR as a trace τR\tau_R over the alphabet (2{r}∪IP)ω(2^{\{r\}\cup IP})^\omega as follows: ∀t∈N:τR[t]={r}∪{a∣⟨t,a⟩∈R}\forall t \in\mathbb{N}: \tau_R[t] = \{r\} \cup\{a \mid\langle t,a\rangle\in R\}.3 That is, R={⟨t,a⟩∣a∈τR[t]}R = \{\langle t,a\rangle\mid a \in\tau_R[t]\}, and ∀t∈N:r∈τR[t]\forall t \in\mathbb{N}: r \in\tau_R[t]. We call τR\tau_R the trace representation of RR. If RR is ultimately periodic then τR\tau_R is an ultimately periodic trace.

Example 1. Let IP={i1,i2}IP = \{i_1,i_2\}. The trace representation of R1={⟨0,i1⟩,⟨1,i2⟩}R_1 = \{\langle0,i_1\rangle,\langle1,i_2\rangle\} is τR1={r,i1}{r,i2}{r}ω\tau_{R_1} = \{r,i_1\}\{r,i_2\}\{r\}^{\omega}. For R2={⟨t,i1⟩∣t%2=0}R_2 = \{\langle t,i_1\rangle\mid t\%2=0\} we have τR2=({r,i1}{r})ω\tau_{R_2} = (\{r,i_1\}\{r\})^\omega.

Definition 2 (Augmented transition system). Let T=(Q,q0,δ,IP,OP)T = (Q,q_0,\delta,IP,OP) be a transition system over AP=IP∪OPAP = IP\cup OP. We define the augmented transition system TaugT_{\mathrm{aug}} over inputs IP′=IP∪{r}IP' = IP \cup\{r\} and outputs OPOP to be Taug=(Q∪{qr},q0,δ′,IP′,OP)T_{\mathrm{aug}} = (Q \cup\{q_r\},q_0,\delta',IP',OP) for qr∉Qq_r \notin Q, where:

  • ∀q∈Q,A∈2IP:δ′(q,A)=δ(q,A)\forall q \in Q,A \in2^{IP}: \delta'(q,A)=\delta(q,A).

  • ∀A∈2IP:δ′(q0,{r}∪A)=(qr,∅)=δ′(qr,{r}∪A)\forall A \in2^{IP}: \delta'(q_0,\{r\}\cup A)=(q_r,\emptyset)=\delta'(q_r,\{r\}\cup A).

That is, given a system TT, TaugT_{\mathrm{aug}} contains all traces of TT, and, in addition, it contains all traces τ∈(2{r}∪IP)ω\tau\in(2^{\{r\}\cup IP})^\omega that can serve as a trace representation of some set RR. Although we add exponentially many transitions in the size of IPIP, the size of TaugT_{\mathrm{aug}} is linear in the size of TT, since the alphabet of TT is 2IP∪OP2^{IP\cup OP}.

Definition 3 (Projection and Extension of Büchi automata). Let A=(2AP,Q,q0,δ,F)\mathcal{A}=(2^{AP},Q,q_0,\delta,F) be an NBA.

The projection of A\mathcal{A} on a subset AP′⊆APAP' \subseteq AP is A↓AP′=(2AP′,Q,q0,δ′,F)\mathcal{A}_{\downarrow AP'}=(2^{AP'},Q,q_0,\delta',F) where δ′={(q,A,q′)∣A∈2AP′ and ∃B∈2AP∖AP′:(q,A∪B,q′)∈δ}\delta'=\{(q,A,q') \mid A\in2^{AP'} \text{ and } \exists B\in2^{AP\setminus AP'}:(q,A\cup B,q')\in\delta\}.

The extension of A\mathcal{A} to a superset AP′′⊇APAP'' \supseteq AP is A↑AP′′=(2AP′′,Q,q0,δ′′,F)\mathcal{A}_{\uparrow AP''}=(2^{AP''},Q,q_0,\delta'',F) where δ′′={(q,A∪B,q′)∣A∈2AP,B∈2AP′′∖AP,(q,A,q′)∈δ}\delta''=\{(q,A\cup B,q') \mid A\in2^{AP},B\in2^{AP''\setminus AP},(q,A,q')\in\delta\}.

Problem Definition Given a transition system TT, an LTL specification φ\varphi, which we call the effect, and an ultimately periodic trace π∈TR(T)\pi\in TR(T) with π⊨φ\pi\models\varphi,4 we are interested in the following:

  • Reason type: We study reasons first as sets of events on the trace, and then via symbolic representation as trace properties.

  • Verification & synthesis: For each reason type, we are interested in the verification problem: whether a suspected reason is indeed a reason; and in the synthesis problem: finding a (minimal) reason.

Non-Temporal Sufficient Reasons

A sufficient reason provides a set of elements that is sufficient to fix the output of a function. In this section, we lift this definition to express sufficient reasons for LTL effects in reactive systems. We define reasons as (possibly infinite) sets of events that appear on the trace. In § 5 we lift the definition once more, to refer to temporal sufficient reasons. In the following, we define reasons over the set IP of input propositions, while the effect φ\varphi can be over all of AP, to express relations between inputs and outputs. One can easily tweak the definition to take into account other propositions either in the reason or in the effect.

Definition 4 (Sufficient Reasons for LTL Effects). Let TT be a transition system, π∈TR(T)\pi\in TR(T), φ\varphi an LTL formula such that π⊨φ\pi\models\varphi, and R⊆N×IPR \subseteq\mathbb{N} \times IP.

  • We say that RR is a sufficient reason (SR) for π⊨φ\pi\models\varphi in TT, if for every trace τ∈TR(T)\tau\in TR(T), if τ[t]={a}π[t]\tau[t] =_{\{a\}} \pi[t] for all ⟨t,a⟩∈R\langle t,a\rangle\in R, then τ⊨φ\tau\models\varphi. In that case, we say that RR is a SR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle.

  • We say that RR is a minimal sufficient reason (MSR) for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if RR is a SR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle and there is no SR R′R' such that R′⊊RR' \subsetneq R.

Since we consider input-deterministic Mealy machines, a trace τ\tau that agrees with π\pi on all inputs at all timepoints is only π\pi itself, and thus satisfies φ\varphi. Therefore we have:

Observation 1 Let TT be a transition system, let φ\varphi be an LTL formula, and let π∈TR(T)\pi\in TR(T) such that π⊨φ\pi\models\varphi. Then, Rall=N×IPR_{\mathrm{all}} = \mathbb{N} \times IP is a SR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle. Moreover, we can finitely represent RallR_{\mathrm{all}} using the trace representation τRall=({r}∪IP)ω\tau_{R_{\mathrm{all}}} = (\{r\} \cup IP)^\omega.

Note that the definition of MSRs allows us to compare reasons of countable size. However, we might have an infinite chain R1⊇R2⊇R3⊇⋯R_1 \supseteq R_2 \supseteq R_3 \supseteq\cdots with no MSR.

Example 2. Consider the transition system of Figure 1, the trace π={r1,g1}ω\pi= \{r_1,g_1\}^{\omega} and the effect φ=□◊g1\varphi= \Box\Diamond g_1 which states that g1g_1 needs to appear infinitely often on a trace. We have that π⊨φ\pi\models\varphi and R=N×IPR = \mathbb{N} \times IP serves as a SR (Observation 1). This is true for every R′R' with infinitely many g1g_1's. Thus, we can create an infinite chain of SRs: N×{i1}⊋N>1×{i1}⊋N>2×{i1}⊋⋯\mathbb{N} \times\{i_1\} \supsetneq\mathbb{N}_{>1} \times\{i_1\} \supsetneq\mathbb{N}_{>2} \times\{i_1\} \supsetneq\cdots, where N>n={m∈N∣m>n}\mathbb{N}_{>n} = \{m \in\mathbb{N} \mid m > n\}. Since for every jj we have N>j⊋N>j+1\mathbb{N}_{>j} \supsetneq\mathbb{N}_{>j+1}, there is no MSR.

Logical Encoding of Sufficient Reasons

In this section, we show how to encode (M)SRs using HyperLTL. In § 4.2 we use this encoding to provide an algorithmic approach for the verification and synthesis of (M)SRs, via HyperLTL model checking.

The set RR is a SR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if the following formula holds:

f[R,π]:=∀π′∈TR(T).(∀⟨t,a⟩∈R. π′[t]={a}π[t])→φπ′f[R,\pi] := \forall\pi' \in TR(T).(\forall\langle t,a\rangle\in R.\ \pi'[t] =_{\{a\}} \pi[t]) \to\varphi_{\pi'}

We can express f[R,π]f[R,\pi] in HyperLTL using τR\tau_R, the trace representation of RR:

ψSR[τR,π]:=rτR∧∀π′.(¬rπ′∧□⋀a∈IP(aτR→(π={a}π′))→φπ′\psi_{\mathrm{SR}}[\tau_R,\pi] := r_{\tau_R} \land\forall\pi'.(\lnot r_{\pi'} \land\Box\bigwedge_{a\in IP}(a_{\tau_R} \to(\pi=_{\{a\}} \pi')) \to\varphi_{\pi'}

Meaning, if π′\pi' agrees with π\pi on all inputs indicated by RR, in the corresponding timesteps, then π′\pi' has to satisfy φ\varphi. HyperLTL implicitly quantifies over system traces so we don’t need to add the fact that π\pi is in TR(T)TR(T) explicitly. Instead, we use ¬rπ′\neg r_{\pi'} to indicate that it is not a trace representation, therefore, indeed one of the system traces.

Note that if aτRa_{\tau_R} holds at timestep tt, it does not mean that aa needs to hold on π′\pi' at that timestep, but that π\pi and π′\pi' should agree on the value of aa: either (aπ(a_\pi and aπ′)a_{\pi'}) or (¬aπ(\neg a_\pi and ¬aπ′)\neg a_{\pi'}) at time tt.

Lemma 1. Let R⊆N×IPR \subseteq\mathbb{N} \times IP and τR\tau_R be its trace representation. Then, f[R,π]f[R,\pi] holds in TT iff ψSR[τR,π]\psi_{\mathrm{SR}}[\tau_R,\pi] holds in TaugT_{\mathrm{aug}}.

The proof is straightforward from the definition of f[R,π]f[R,\pi], ψSR[τR,π]\psi_{\mathrm{SR}}[\tau_R,\pi] and TaugT_{\mathrm{aug}}. We provide a formal proof in Appendix B for completeness. Given Lemma 1, we can use ψSR[τR,π]\psi_{\mathrm{SR}}[\tau_R,\pi] to verify or find sufficient reasons, as we show in the following.

Minimal Sufficient Reasons

To express the fact that RR is a MSR, we only need to state that there is no SR R′⊊RR' \subsetneq R:

ψMSR[τR,π]:=ψSR[τR,π]∧(∀τR′. ψSR[τR′,π]→((τR≡τR′)∨(1)\psi_{\mathrm{MSR}}[\tau_R,\pi] := \psi_{\mathrm{SR}}[\tau_R,\pi] \land(\forall\tau_{R'}.\ \psi_{\mathrm{SR}}[\tau_{R'},\pi] \to((\tau_R \equiv\tau_{R'}) \lor \tag*{(1)}
¬□⋀a∈IP(aτR′→aτR))(2)\neg\Box\bigwedge_{a \in IP} (a_{\tau_{R'}} \to a_{\tau_R})) \tag*{(2)}

Equation (2) states that R′R' is not subsumed by RR, for any SR R′≠RR' \ne R.

Example 3. Consider φ=◊(r1∧◯(r2Ur1))\varphi= \Diamond\left(r_1 \land\mathop{\bigcirc}(r_2\mathbin{\mathsf{U}}r_1)\right), the system of Figure 1 and π={r1,g1}{r2}{r1,g1}{}{r1,g1}{r2}{r2}{r1,g1}{}{r1,g1}{r2}{r2}{r2}{r1,g1}{}…\pi= \{r_1,g_1\}\{r_2\}\{r_1,g_1\}\{\}\{r_1,g_1\}\{r_2\}\{r_2\}\{r_1,g_1\}\{\}\{r_1,g_1\}\{r_2\}\{r_2\}\{r_2\}\{r_1,g_1\}\{\}\ldots

There are infinitely many MSRs, e.g. R0={⟨0,r1⟩,⟨1,r2⟩,⟨2,r1⟩}R_0 = \{\langle0,r_1\rangle,\langle1,r_2\rangle,\langle2,r_1\rangle\}, R1={⟨4,r1⟩,⟨5,r2⟩,⟨6,r2⟩,⟨7,r1⟩}R_1 = \{\langle4,r_1\rangle,\langle5,r_2\rangle,\langle6,r_2\rangle,\langle7,r_1\rangle\}, R2={⟨9,r1⟩,⟨10,r2⟩,⟨11,r2⟩,⟨12,r2⟩,⟨13,r1⟩}R_2 = \{\langle9,r_1\rangle,\langle10,r_2\rangle,\langle11,r_2\rangle,\langle12,r_2\rangle,\langle13,r_1\rangle\}, and so on. For each of these reasons RiR_i, any subset Ri′⊊RiR'_i \subsetneq R_i would not qualify as a SR.

We now show that we can restrict the search and verification of (M)SRs to only those that are finitely representable:

Theorem 1. Let π\pi be an ultimately periodic trace, TT be a transition system, and φ\varphi be an LTL property. Then, the following statements are equivalent:

  1. Exists a (M)SR RR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle.

  2. Exists an ultimately periodic (M)SR R′R' for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle.

  3. Exists an ultimately periodic trace representation τR\tau_R of RR in the augmented system TaugT_{\mathrm{aug}}.

Proof. If there is a SR RR, then due to Lemma 1, the formula ψSR[τR,π]\psi_{\mathrm{SR}}[\tau_R,\pi] holds in TaugT_{\mathrm{aug}} (and, similarly ψMSR[τR,π]\psi_{\mathrm{MSR}}[\tau_R,\pi] for MSRs). That is, τR\tau_R is the witness for the satisfaction of the HyperLTL formula ∃τR.ψSR[τR,π]\exists\tau_R.\psi_{\mathrm{SR}}[\tau_R,\pi]. We use the fact that π\pi is ultimately periodic to explicitly encode it within the HyperLTL model-checking instance. If such a witness τR\tau_R exists, there is also an ultimately periodic witness τR′\tau_{R'}, since we find it using an emptiness check for the respective NBA [9]. τR′\tau_{R'} corresponds to an ultimately periodic set R′R' which also serves as a (M)SR. □\square

Complexities and Algorithms of SRs Verification and Synthesis

In the following, we discuss the complexities of the verification and synthesis of SRs, using the HyperLTL encodings of § 4.1. We note that the upper-bounds also provide us with an algorithmic approach (which we implemented in our prototype) for the verification and synthesis of reasons.

Verification of Sufficient Reasons

Theorem 2. Given an LTL property φ\varphi, an ultimately periodic set RR, an ultimately periodic trace π\pi, and a system TT, the problem of verifying whether RR is a SR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is PSPACE-complete.

To prove Theorem 2 we first prove the following Lemma:

Lemma 2. Let TT be a transition system, let φ\varphi be an LTL formula, and let π∈TR⁡(T)\pi\in\operatorname{TR}(T) such that π⊨φ\pi\models\varphi. Then, R=∅R = \emptyset is a sufficient reason for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle iff φ\varphi holds on all traces π′∈TR⁡(T)\pi' \in\operatorname{TR}(T).

Proof. If R=∅R = \emptyset, the condition of Definition 4 holds vacuously, thus, we require for all traces π′\pi' to satisfy φ\varphi. In the other direction, if all traces satisfy φ\varphi, then every set RR constitutes a sufficient reason, and in particular R=∅R = \emptyset.

Note that ∅\emptyset is finitely representable with trace representation τ∅={r}ω\tau_{\emptyset} = \{r\}^{\omega}. □\square

Proof (of Theorem 2). We reduce (via polynomial time and space reduction) the problem of verifying SRs to LTL model-checking, which is PSPACE-complete [30, 24].

Membership in PSPACE: Since π\pi and τR\tau_R are fixed, and π′\pi' is the only remaining variable, and is universally quantified, we can interpret ψsr[τR,π]\psi_{sr}[\tau_R,\pi] as an LTL formula over traces π′\pi' (see LTL semantics in § 2). Since π\pi and τR\tau_R are ultimately periodic, we can encode them as part of the instance, resulting in at most a polynomial blow-up. In addition, system TaugT_{\mathrm{aug}} is linear in the size of TT, and the formula ψsr[τR,π]\psi_{sr}[\tau_R,\pi] adds a constant factor to the size of φ\varphi. Then, we simply need to model-check if ψsr[τR,π]\psi_{sr}[\tau_R,\pi] holds in TaugT_{\mathrm{aug}}.

PSPACE hardness: We show a reduction from LTL model-checking: Given a system TT and an LTL formula φ\varphi, we construct an instance: T′T', π\pi, φ′\varphi' and RR in polynomial time, such that T⊨φT \models\varphi iff RR is a SR for ⟨φ′,T′,π⟩\langle\varphi',T',\pi\rangle.

  • We construct T′T' from TT by adding a fresh state qf∉Qq_f \notin Q, and the transitions δ(q0,{f})=(qf,∅)=δ(qf,{f})\delta(q_0,\{f\}) = (q_f,\emptyset) = \delta(q_f,\{f\}) for a fresh input proposition f∉APf \notin AP. We denote πf={f}ω\pi_f = \{f\}^{\omega}, and we have that that TR⁡(T′)=TR⁡(T)∪{πf}\operatorname{TR}(T') = \operatorname{TR}(T) \cup\{\pi_f\}.

  • We define φ′:=φ∨□f\varphi' := \varphi\lor\Box f. Then, πf⊨φ′\pi_f \models\varphi', and ∀π′∈TR⁡(T):π′⊭□f\forall\pi' \in\operatorname{TR}(T): \pi' \not\models\Box f, therefore ∀π′∈TR⁡(T):π′⊨φ\forall\pi' \in\operatorname{TR}(T): \pi' \models\varphi iff π′⊨φ′\pi' \models\varphi'.

  • We choose π=πf\pi= \pi_f, and we choose R=∅R = \emptyset, so the induced trace is τR=∅ω\tau_R = \emptyset^{\omega}.

The construction of T′T' is linear in TT (both in terms of time and space), and so is the construction of φ′\varphi'. πf\pi_f and RR are constant, so all together we have a polynomial construction.

We are left to show that T⊨φT \models\varphi iff ∅\varnothing is a SR for ⟨φ′,T′,πf⟩\langle\varphi',T',\pi_f\rangle. Due to Lemma 2, we have that ∅\varnothing is a SR for ⟨φ′,T′,πf⟩\langle\varphi',T',\pi_f\rangle iff φ′\varphi' holds on all traces in TR⁡(T′)\operatorname{TR}(T'). Since φ′\varphi' holds on πf\pi_f regardless of T′T' and φ\varphi, and from the construction of T′T', we have that φ′\varphi' holds on all traces in TR⁡(T′)\operatorname{TR}(T') iff φ\varphi holds on all traces in TR⁡(T)\operatorname{TR}(T), as needed. □\square

For MSRs verification, we can use HyperLTL model-checking to check whether ψMSR[τR,π]\psi_{\mathrm{MSR}}[\tau_R,\pi] holds in TaugT_{\mathrm{aug}}. This implies at most double-exponential upper bound, due to the quantifier alternation introduced in ψMSR[τR,π]\psi_{\mathrm{MSR}}[\tau_R,\pi] (the universal quantifier on the left side of the implication becomes an existential quantifier when transforming to prenex normal form). For hardness, we can use the same reduction as in the proof of Theorem 2: R=∅R = \varnothing is a SR iff it is also a MSR.

Corollary 1. The problem of verifying whether RR is a MSR is PSPACE-hard.

Synthesis of Minimal Sufficient Reasons

We now consider the question of finding SRs, rather than verifying their correctness. From Observation 1 it follows that there always exists a SR, and we can choose it to be N×IP\mathbb{N} \times\mathrm{IP}. Thus, the question of synthesizing an arbitrary SR becomes trivial. Therefore, in the following, we are interested in synthesizing MSRs.

Theorem 3. We can reduce the synthesis problem of MSRs to the problem of HyperLTL model checking. In particular, the synthesis problem of MSRs is at most 3EXPTIME in the size of φ\varphi.

Proof. Consider the following HyperLTL formula ψml[π]:=∃τR.ψMSR[τR,π]\psi_{\mathrm{ml}}[\pi] := \exists\tau_R.\psi_{\mathrm{MSR}}[\tau_R,\pi]. The formula ψml[π]\psi_{\mathrm{ml}}[\pi] holds in a transition system TT iff there exists τR\tau_R such that RR serves as a MSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle. That is, we have reduced the synthesis problem of MSRs to the problem of model-checking ψml[π]\psi_{\mathrm{ml}}[\pi] on TT. Since ψml[π]\psi_{\mathrm{ml}}[\pi] contains two quantifier alternations, its model checking is double-exponential [16]. □\square

As we demonstrate in § 7, this upper-bound doesn’t imply practical hardness, and we manage to find minimal sufficient reasons in a reasonable time.

Temporal Sufficient Reasons

Example 2 shows that in some cases we cannot find useful SRs as set of events on the trace. To overcome this, in the following, we look for temporal properties which will serve as reasons, and show that there always exists a unique minimal temporal SR, which can be represented as an NBA. As before, we assume the effect is given as an LTL formula φ\varphi.5

Definition 5 (Temporal Sufficient Reasons). Let TT be a system, π∈TR(T)\pi\in TR(T), φ\varphi an LTL property over APAP with π⊨φ\pi\models\varphi, and PRP_R a trace property over IPIP. – We say that PRP_R is a temporal sufficient reason (TSR) for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if π\pi satisfies PRP_R and if for every trace τ∈TR(T)\tau\in TR(T), if τ\tau satisfies PRP_R then τ⊨φ\tau\models\varphi. This is exactly the temporal extension of Definition 4: Since we assume π⊨φ\pi\models\varphi, we need to check that all traces that agree with π\pi on the satisfaction of PRP_R, would also satisfy φ\varphi.

– We say that PRP_R is a minimal temporal sufficient reason (MTSR) if there is no TSR PR′P_{R'} such that PR′⊋PRP_{R'} \supsetneq P_R.

Remark 1. In Definition 4 RR is minimal if there is no R′⊊RR' \subsetneq R, while in Definition 5 PRP_R is minimal if there is no PR′⊋PRP_{R'} \supsetneq P_R. These follow the same reasoning, and are not contradicting: Unlike other approaches for temporal causality, which look for the strongest condition that implies the effect [11, 14], here we look for the weakest such condition. PR=(2IP)ωP_R = (2^{\mathrm{IP}})^\omega subsumes all trace properties over IP, and will be a MTSR only if all traces satisfy the effect φ\varphi, as in the case of R=∅R = \varnothing.

Example 4. Consider again the trace π={r1,q1}ω\pi= \{r_1, q_1\}^\omega and the effect φ=□◊q1\varphi= \Box\Diamond q_1 of Example 2. Then the following are examples of possible TSRs for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle: PR1=L(□r1)P_{R_1} = \mathcal{L}(\Box r_1), and PR2=L(□◊r1)P_{R_2} = \mathcal{L}(\Box\Diamond r_1). In this case, PR2P_{R_2} also serves as a MTSR.

This demonstrates the need in temporal reasons: Recall that due to the infinite chain of decreasing SRs, we could not find a MSR for the effect □◊q1\Box\Diamond q_1 (Example 2). The use of symbolic temporal reasons overcomes this difficulty.

Verification of Temporal Sufficient Reasons

As before, we first show how to encode TSRs in HyperLTL, and then we use HyperLTL model checking to verify them. PRP_R is a TSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if

∀π′∈TR⁡(T). π′∣IP∈PR→π′⊨φ(3)\forall\pi' \in\operatorname{TR}(T).\ \pi'|_{\mathrm{IP}} \in P_R \to\pi' \models\varphi \tag*{(3)}

If PRP_R is the language of an LTL formula φR\varphi_R, we have that φR\varphi_R is a TSR if:

∀π′ .φRπ′→φπ′(4)\forall\pi'\ .\varphi_{R\pi'} \to\varphi_{\pi'} \tag*{(4)}

Equation (4) is equivalent to the LTL formula φR→φ\varphi_R \to\varphi, since LTL implicitly universally quantifies over all system traces. The implication has to be true only for TR⁡(T)\operatorname{TR}(T), and does not have to hold for all possible traces.

Theorem 4. Given a trace property PRP_R as an NBA or an LTL formula, a system TT, an ultimately periodic trace π∈TR⁡(T)\pi\in\operatorname{TR}(T), and an LTL effect φ\varphi, verifying if PRP_R is a TSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is PSPACE-complete.

Proof (sketch). Membership in PSPACE: First, assume that PRP_R is given as an NBA over 2IP2^{\mathrm{IP}}. Let APRA_{P_R} be the extension of PRP_R to the full set 2AP2^{\mathrm{AP}} (c.f. Definition 3). Then, Equation (3) reduces to model-checking whether APR∩T⊨AφA_{P_R} \cap T \models A_\varphi.

If PRP_R is an LTL formula, to verify that PRP_R is a TSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle we need to model-check Equation (4) against TT, which is an LTL model-checking problem.

PSPACE hardness: We reduce LTL model-checking to TSRs verification, with almost the same proof as for Theorem 2, but now we are given the trace property PR=trueP_R = true rather then the empty set of events (an automaton that accepts all words has one state, and an LTL formula is of constant size): truetrue is a TSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle iff all traces of TT satisfy φ\varphi. We provide the full proof in Appendix § 11. □\square

Verification of Minimal Temporal Sufficient Reasons In Section 6.2 we show that there is a unique MTSR SS given φ\varphi, TT and π\pi. Therefore, to verify whether a traces property PRP_R is a MTSR, all we need to do is to check equivalence between PRP_R and the set SS given in Section 6.2.

Synthesis of Minimal Temporal Sufficient Reasons

In the following, given an LTL effect φ\varphi, we show an automata construction for the MTSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle. Even when the effect is given as an LTL formula, the MTSR might not be expressible in LTL, and require the ω\omega-regular power of NBAs. This was also demonstrated in [11] for Halpern and Pearl’s actual causality. We observe here that this is a result of the ω\omega-regular nature of the transition system TT, and not due to the specific causality definition.

Example 5. Let TT be the transition system of Figure 2, and consider the trace π={i1,o1}ω\pi=\{i_1,o_1\}^{\omega}, and the effect □o1\Box o_1. Possible TSRs for □o1\Box o_1 in TT are the LTL formulas □i1\Box i_1 and i1∧□□i1i_1\land\Box\Box i_1. However, since the input at every odd position does not influence the output, a MTSR only needs to constraint the inputs at even timepoints. In fact, the MTSR here for □o1\Box o_1 is PR:=P_R:= “i1i_1 holds at every even timestep”. First, π\pi satisfies PRP_R. Second, every trace that satisfies PRP_R also satisfies the effect. Last, PRP_R is minimal since every trace on which at some even position i1i_1 does not hold, will loop on q0q_0 and will output {}\{\} at that point. The property PRP_R cannot be expressed in LTL, but there is a simple NBA for it.

Figure 2. A system over IP = {i1}\{i_1\}, OP = {o1}\{o_1\} for Example 5.

We now prove an automata characterization and construction of the MTSR. For the proof, we use the following observation:

Observation 2 Let SS be a trace property over IPIP. For π1,π2∈(2AP)ω\pi_1,\pi_2\in(2^{AP})^\omega, if π1≡IPπ2\pi_1\equiv_{IP}\pi_2 then π1\pi_1 satisfies SS iff π2\pi_2 satisfies SS.

Theorem 5. Given a system TT, π∈TR(T)\pi\in TR(T) and an LTL effect φ\varphi, The MTSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is L((T∩Aφ)↓IP)\mathcal{L}((T\cap A_\varphi)\mathord{\downarrow}_{IP}), that is, the projection of (T∩Aφ)(T\cap A_\varphi) over the set IPIP.

Proof (of Theorem 5). We denote S=L((T∩Aφ)↓IP)S=\mathcal{L}((T\cap A_\varphi)\mathord{\downarrow}_{IP}). We first show that SS is a TSR: π∈T∩Aφ\pi\in T\cap A_\varphi, therefore π↓IP∈S\pi\mathord{\downarrow}_{IP}\in S, thus π\pi satisfies SS.

Let π′∈T\pi'\in T. We show that if π′\pi' satisfies SS then π′⊨φ\pi'\models\varphi. Denote π′=π′↓IP∪π′↓O\pi'=\pi'\mathord{\downarrow}_{IP}\cup\pi'\mathord{\downarrow}_{O}. Since π′\pi' satisfies SS we have π′↓IP∈S\pi'\mathord{\downarrow}_{IP}\in S, and, by the definition of the projection, it means that there is πO′′\pi''_O such that π′↓IP∪πO′′∈(T∩Aφ)\pi'\mathord{\downarrow}_{IP}\cup\pi''_O\in(T\cap A_\varphi). In particular, we have π′↓IP∪πO′′∈T\pi'\mathord{\downarrow}_{IP}\cup\pi''_O\in T, and, by the assumption, we also have π′=π′↓IP∪π′↓O∈T\pi'=\pi'\mathord{\downarrow}_{IP}\cup\pi'\mathord{\downarrow}_{O}\in T. Since TT is input-deterministic, π′=π′↓IP∪πO′′\pi'=\pi'\mathord{\downarrow}_{IP}\cup\pi''_O, therefore π′∈Aφ\pi'\in A_\varphi as needed.

Minimality: Let RR be a TSR, we show that R⊆SR\subseteq S. Let π′\pi' satisfy RR, that is π′↓IP∈R\pi'\mathord{\downarrow}_{IP}\in R. We need to show that π′↓IP∈S\pi'\mathord{\downarrow}_{IP}\in S. We distinguish between two cases:

  • π′∈T\pi'\in T: Since RR is a TSR for φ\varphi, we have that π′⊨φ\pi'\models\varphi, therefore π′∈T∩Aφ\pi'\in T\cap A_\varphi, which means that π′↓IP∈S\pi'\mathord{\downarrow}_{IP}\in S as needed.

  • π′∉T\pi'\notin T: Denote π′=π′↓IP∪π′↓O\pi'=\pi'\mathord{\downarrow}_{IP}\cup\pi'\mathord{\downarrow}_{O}. Since TT is input deterministic, there is πO′′\pi''_O such that π′=π′↓IP∪πO′′\pi'=\pi'\mathord{\downarrow}_{IP}\cup\pi''_O and πO′′∈T\pi''_O\in T. Due to Observation 2, since π′≡IPπ′′\pi'\equiv_{IP}\pi'', and since π′\pi' satisfies RR, we have that π′′\pi'' satisfies RR. Therefore, since RR is a TSR, π′′⊨φ\pi''\models\varphi, and thus π′′∈T∩Aφ\pi''\in T\cap A_\varphi, which means that π′′\pi'' satisfies SS. From Observation 2, and since π′≡IPπ′′\pi'\equiv_{IP}\pi'', we conclude that π′\pi' satisfies SS. $\square`

Corollary 2. Given a transition system TT, ultimately periodic π\pi, and an effect φ\varphi, the MTSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is ω\omega-regular and unique.6

Remark 2. The MTSR is independent of π\pi: The only constraint is that π⊨φ\pi\models\varphi. Our framework allows one to choose the non-temporal and more concrete reasons, or the temporal more general ones.

Theorem 6. Given TT, π\pi and an LTL effect φ\varphi, finding the MTSR for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is exponential in φ\varphi.

Proof. The proof follows directly from the construction of the MTSR in Theorem 5, and the fact that Aφ\mathcal{A}_{\varphi} is exponential in φ\varphi [31]. □\square

Contrastive Explanations

Contrastive explanations are system traces that, in contrast to π\pi, do not satisfy the effect. We will usually be interested in minimal contrastive explanations, i.e., the ones that are the closest to the trace π\pi, to understand what are the minimal changes needed to be done in order to avoid the effect. To reason about such minimal explanations formally, we first define a distance between traces. We define a distance measure Δ:(2AP)ω×(2AP)ω→2N×IP\Delta: (2^{AP})^\omega\times(2^{AP})^\omega\to2^{\mathbb{N}\times IP} to be the set of all inputs and timesteps on which the two traces disagree:

Δ(π1,π2)={(n,i)∣n∈N,i∈IP,i∈π1[n]∖π2[n]∨i∈π2[n]∖π1[n]}\Delta(\pi_1,\pi_2)=\{(n,i)\mid n\in\mathbb{N},i\in IP,i\in\pi_1[n]\setminus\pi_2[n]\lor i\in\pi_2[n]\setminus\pi_1[n]\}

Definition 6 (Contrastive Explanations). Let TT be a transition system, let π,τce∈TR(T)\pi,\tau_{ce}\in TR(T), and let φ\varphi be an LTL formula such that π⊨φ\pi\models\varphi.

– We say that τce\tau_{ce} is a contrastive explanation (CE) for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if τce⊭φ\tau_{ce}\not\models\varphi.

– We say that τce\tau_{ce} is a minimal contrastive explanation (MCE) for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if τce⊭φ\tau_{ce}\not\models\varphi, and, for every trace τ′≠τce∈TR(T)\tau'\ne\tau_{ce}\in TR(T) such that τ′⊭φ\tau'\not\models\varphi we have Δ(π,τ′)⊈Δ(π,τce)\Delta(\pi,\tau')\not\subseteq\Delta(\pi,\tau_{ce}). That is, there is no CE that is closer to π\pi than τce\tau_{ce}.

Remark 3. We note that CEs are traces, and thus are not of the same type as SRs, which are sets of event. This choice follows the definition of [4] that defines a CE as another input vector, and SRs as a subset of components of the input vector. However, one can easily convert a CE τce\tau_{\mathrm{ce}} to be in the form of sets of events, by taking Δ(π,τce)\Delta(\pi,\tau_{\mathrm{ce}}).

Verification and Synthesis of CEs using HyperLTL Encoding

As we did for SRs, we first show how to encode CEs in HyperLTL, and then use this encoding for verification and synthesis of CEs. Since finding some trace that does not satisfy the effect is simply a model checking problem, we focus on MCEs. The trace τce\tau_{\mathrm{ce}} is a MCE for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle if any trace π′\pi' that agrees with π\pi whenever τce\tau_{\mathrm{ce}} agrees with π\pi, that is, Δ(π,π′)⊆Δ(π,τce)\Delta(\pi,\pi') \subseteq\Delta(\pi,\tau_{\mathrm{ce}}), satisfies φ\varphi. We formalize this using the formula ψCE[τce]\psi_{\mathrm{CE}}[\tau_{\mathrm{ce}}]:

ψCE[τce]:=¬φτce∧∀π′.(π′≠τce)→(□⋀p∈IP((pτce↔pπ)→(pπ′↔pπ))→φπ′)\psi_{\mathrm{CE}}[\tau_{\mathrm{ce}}] := \neg\varphi_{\tau_{\mathrm{ce}}} \land\forall\pi' . (\pi' \ne\tau_{\mathrm{ce}}) \to\left(\Box\bigwedge_{p\in IP} ((p_{\tau_{\mathrm{ce}}} \leftrightarrow p_{\pi}) \to(p_{\pi'} \leftrightarrow p_{\pi})) \to\varphi_{\pi'}\right)

Verification of Minimal Contrastive Explanations

Theorem 7. Given TT, π\pi, φ\varphi, and an ultimately periodic trace τce\tau_{\mathrm{ce}}, the problem of verifying if τce\tau_{\mathrm{ce}} is a MCE for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is PSPACE-complete.

Proof. Membership in PSPACE: We can verify in polynomial time that τce⊭φ\tau_{\mathrm{ce}} \not\models\varphi [25]. If τce⊭φ\tau_{\mathrm{ce}} \not\models\varphi we can explicitly encode the traces τce\tau_{\mathrm{ce}} and π\pi, and then model-check TT against the rest of the formula ψCE[τce]\psi_{\mathrm{CE}}[\tau_{\mathrm{ce}}]. We note that if τce\tau_{\mathrm{ce}} is fixed, then ψCE[τce]\psi_{\mathrm{CE}}[\tau_{\mathrm{ce}}] is in fact an LTL formula, as LTL implicitly has a universal quantifier over all traces (here, the traces π′\pi').

PSPACE completeness: We reduce from LTL model-checking. Let TT be a transition system. We construct a system T′T', traces π\pi and τce\tau_{\mathrm{ce}}, and an LTL formula φ′\varphi' in polynomial time, such that T⊨φT \models\varphi iff τce\tau_{\mathrm{ce}} is a MCE for ⟨φ′,T′,π⟩\langle\varphi',T',\pi\rangle:

  • Similar to the proof of Theorem 2, we construct T′T' from TT by adding two fresh states qf1,qf2∉Qq_{f_1},q_{f_2} \notin Q, and the transitions δ(q0,{fi})=(qfi,∅)\delta(q_0,\{f_i\})=(q_{f_i},\emptyset), δ(qfi,{fi})=(qfi,∅)\delta(q_{f_i},\{f_i\})=(q_{f_i},\emptyset) for i=1,2i=1,2 and fresh input propositions f1,f2∉APf_1,f_2 \notin AP, so we set IP′=IP∪{f1,f2}IP'=IP\cup\{f_1,f_2\}. We have that TR(T′)=TR(T)∪{{f1}ω,{f2}ω}TR(T')=TR(T)\cup\{\{f_1\}^{\omega},\{f_2\}^{\omega}\}.

  • We set φ′=(φ∧¬f2)∨f1\varphi'=(\varphi\land\neg f_2)\lor f_1, τce={f2}ω\tau_{\mathrm{ce}}=\{f_2\}^{\omega} and π={f1}ω\pi=\{f_1\}^{\omega}.

Then, we have: π⊨φ′\pi\models\varphi' and τce⊭φ′\tau_{\mathrm{ce}}\not\models\varphi'; for every π′∈TR(T)\pi'\in TR(T), π′⊨φ′\pi'\models\varphi' iff π′⊨φ\pi'\models\varphi; and τce\tau_{\mathrm{ce}} is always different than π\pi, so the left side of the implication is always evaluated to true, and τce\tau_{\mathrm{ce}} is a MCE iff φ\varphi holds on all system traces. □\square

Synthesis of Minimal Contrastive Explanations

To find a MCE, we existentially quantify over ψCE[τce]\psi_{\mathrm{CE}}[\tau_{\mathrm{ce}}], and model-check TT against the formula ∃τce. ψCE[τce]\exists\tau_{\mathrm{ce}}.\ \psi_{\mathrm{CE}}[\tau_{\mathrm{ce}}]. A witness to this formula is a MCE. Note that CEs are over the whole set APAP, but we can easily take the projection of such a witness over IPIP to get a CE over inputs only. The complexity is inherited from corresponding HyperLTL model-checking instance, and is at most double-exponential in φ\varphi.

Temporal Contrastive Explanations

Last, we shortly discuss a symbolic representation of CEs.

Definition 7 (Temporal Contrastive Explanations). Let TT be a transition system, let π∈TR(T)\pi\in TR(T), and let φ\varphi be an LTL formula such that π⊨φ\pi\models\varphi.

  • A temporal contrastive explanation (TCE) for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is a set S⊆(2IP)ωS \subseteq(2^{IP})^{\omega} such that S⊆(T∩A¬φ)↓IPS \subseteq(T \cap A_{\neg\varphi})\mathord{\downarrow}_{IP}.

  • The minimal temporal contrastive explanation (MTCE) is S⊆(T∩A¬φ)↓IPS \subseteq(T \cap A_{\neg\varphi})\mathord{\downarrow}_{IP}, such that for all traces τ∈TR(T)\tau\in TR(T), we have that τ\tau is a MCE iff τ↓IP∈S\tau\mathord{\downarrow}_{IP} \in S. That is, SS is the set of all MCEs, projected over IPIP.

Verification of Temporal Contrastive Explanations

Given an ω\omega-regular set SS as an NBA over IP, we can verify if SS is a MTCE by model-checking a slight modification of the formula ψCE\psi_{\mathrm{CE}} above, as follows:

∀τce∈S.∀π′∈T. ¬φτce∧π′≠τce→(□⋀p∈IP((pτce↔pπ)→(pπ′↔pπ))→φπ′)\forall\tau_{\mathrm{ce}} \in S.\forall\pi' \in T.\ \neg\varphi_{\tau_{\mathrm{ce}}} \land\pi' \ne\tau_{\mathrm{ce}} \to\left(\Box\bigwedge_{p\in IP}\left((p_{\tau_{\mathrm{ce}}} \leftrightarrow p_{\pi}) \to(p_{\pi'} \leftrightarrow p_{\pi})\right) \to\varphi_{\pi'}\right)

Theorem 8. Given a set SS, system TT, trace π\pi and effect φ\varphi, verifying whether SS is a MTCE for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle is PSPACE-complete.

Proof. The two universal quantifiers only add a polynomial factor to the LTL model-checking problem, which is in PSPACE. For PSPACE-hardness we can use the same proof as of Theorem 7, with the set S={τce}S = \{\tau_{\mathrm{ce}}\}. □\square

Between Sufficient Reasons and Contrastive Explanations

Previous works in the context of neural networks have established duality between MSRs and MCEs [20]. In the context of explaining temporal effects in reactive systems, this does not hold; while the notions of MSRs and MCEs are intuitively dual, we cannot directly derive, using a duality relation, one from the other. It is not enough to negate the events in a MSR to avoid the effect, since MSRs are not unique. One might suggest to negate all MSRs, however, this is too strict: it is enough to negate one event from each MSR, to find a CE. We formalize this in Theorem 9. The proof is straightforward and appears in Appendix § 11 for completeness. Therefore, MSRs and MCEs are clearly related, but are not dual. The reason that duality fails here, while holds for the neural networks domain, is the nature of our problem: In other domains, such as [20], the only component needed for evaluation is the function ff, which is explained. In our work, the function we evaluate is the satisfaction of φ\varphi, but we have a second component that influences the decision, which is the system TT from which the traces are taken.

Theorem 9. Given TT, π\pi and φ\varphi, let R={Ri∣i∈I}\mathcal{R} = \{R_i \mid i \in\mathcal{I}\} be the set of all MSRs for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle. Then, for any MCE τ\tau we have ∀i∈I:Δ(τ,π)∩Ri≠∅\forall i \in\mathcal{I} : \Delta(\tau,\pi) \cap R_i \ne\varnothing.

Evaluation

In this section, we provide a brief evaluation of our approach using a prototype implementation. Our preliminary implementation meant to demonstrate our approach, but this is not yet an automated tool. In particular, for the purpose of these experiments, the specific transition systems, input traces, and effects were statically defined (hard-coded) within each test. The causal analysis using HyperLTL model checking remains general. In the following, we provide brief comparisons. Additional tables appear in Appendix § 12.

We report the results of our prototype, and, when possible, a comparison to existing tools for actual temporal causality. This comparison is meant to give intuition about how the different causality and explainability approaches (e.g. TSR vs. actual causality) translate to different causes and explanations. The comparisons are not intended as a way to evaluate which approach is better, since, as we discuss in the introduction, each approach addresses a different notion of causality. However, since there are no other tools for temporal causality in reactive systems, except for actual causality, we find the comparison interesting.

All experiments were conducted on a machine running Windows Subsystem for Linux (WSL, Kernel 4.4.0) with an Intel Core i7-8565U CPU @ 1.80GHz and 16 GB of RAM. Our prototype is available at the anonymous repository 7.

Table Table 1 compares our TSR verification approach against the CATS tool for actual causality [5], using CATS benchmarks. The fact that our approach outperforms CATS in terms of runtime stems from the fact that TSRs are much easier to verify than temporal causes defined by actual causality.

InstanceCauseTSR t(s)TSR ResCATS t(s)CATS Res
Arbiterr1r1 (odd pos.)0.41✓20.02✓
Arbiter_spu⋄r1\mathop{\diamond} r10.38✓0.67×
Ex1i1∧(¬i2 U (i1∧¬i2))i1 \land\bigl(\neg i2\ \mathsf{U}\ (i1 \land\neg i2)\bigr)0.40✓1.01✓
Ex1_modi1∧(¬i2 U (i1∧¬i2))i1 \land\bigl(\neg i2\ \mathsf{U}\ (i1 \land\neg i2)\bigr)0.40✓1.02×
Ex6_glob□r0\mathop{\square} r00.40✓0.74✓
Ex8a∨□aa \lor\mathop{\square} a0.42✓0.98✓
TP_Left¬a\neg a0.38✓0.52✓

Table 1. Verification of TSRs. (✓) indicates the tool considers it as a cause / reason. We note that CATS consider actual causality while we (TSR) consider SRs, therefore, it might be that one tool considers a formula as a correct explanation while the other does not.

In Table 2 we evaluate the synthesis of MTSRs, as defined in Theorem 5, and compare it with the CORP tool [14], which synthesizes temporal actual causes.

InstanceEffectMTSR ∣A∣|A|MTSR t(ms)CORP ∣B∣|B|CORP t(ms)
Arbiter⋄g1\mathop{\diamond}g1312.3372.2
Arbiter_sim⋄g1\mathop{\diamond}g1312.4372.8
Ex1⋄\mathop{\diamond}error412.8480.9
Ex6_glob□¬g1\mathop{\square}\neg g1212.6275.0
Ex8_mod⋄⋄\mathop{\diamond\diamond}error312.9274.1
TP_Left⋄e\mathop{\diamond}e112.1173.2

Table 2. Synthesizing MTSRs. The Effect column specifies the property that the generated cause explains. ∣A∣|A| and BB denote the number of states in the generated NBA for MTSR and CORP, respectively.

Figure 3 presents the output of our prototype for MSRs synthesis, based on Section 5.1.1. In [10], the authors provide an algorithm for finding non-temporal actual causes for HyperLTL effects. Our approach is incomparable to theirs, not only in the different nature of causes, but in two additional aspects: First, [10] handles HyperLTL effects while we only handle LTL effects. Second, we provide non-temporal reasons in their trace representations, thus, we can find reasons as infinite sets of events on the trace (see Figure 3), while [10] only provides finite sets of events as causes.

MSR synthesis

Figure 3. MSR synthesis. Above CYCLE is the prefix of the trace, while below CYCLE is the ω\omega-repeating suffix.

Since the focus of this work is sufficient reasons, we refer the reader to the git repository for evaluation of MCEs synthesis.

Related Work

Sufficient reasons and contrastive explanations: [4] defined sufficient reasons and contrastive explanations to explain kk-nearest neighbor classification, and analyzed complexities for different scenarios of the problem of verifying explanations, and finding them. Inspired by their work, and motivated by the need to unify explainability notions between different research areas, we have lifted their definitions to the temporal setting. Additional works, such as [26, 12, 21, 13] consider sufficient reasons and contrastive explanations as formal explanations in the context of AI, which supports our motivation to define them also in the setting of formal verification and temporal specifications.

Causality and explainability for temporal properties: Many works have studied the explainability problem for temporal properties [14, 17, 15, 1, 22], however non of them studies SRs or TSRs for reactive systems. Several works studied counterfactual reasoning over finite traces or over limited temporal effects [18, 3, 28], while we define CEs over infinite traces and general LTL effects. [17] consider counterfactual theory, and present a new temporal logic to reason about counterfactual worlds. This is orthogonal to our work, that defines (T)CEs for reactive systems, and aims at using existing formalisms to reason about them.

The only line of work that have studied in depth both temporal effects and temporal explanations for reactive systems over infinite words are the extensions of Halpern and Pearl’s actual causality [19] to the temporal setting. This line of works provided: definitions of non-temporal actual causality [10]; definitions of temporal actual causality [11]; a tool implementation [5]; synthesis of temporal actual causality [14]; and complexity analysis [8]. In our work, we approach all of these aspects for other notions of explainability: (M)SRs and CEs, and provide definitions, algorithms, complexity analysis, and a prototype implementation. We note that [10] only finds causes as finite sets of events, while we manage to find infinite sets of events, using an ultimately periodic representation.

Conclusions

Motivated by the need to formalize different explainability notions and unify these notions across different fields, we study sufficient reasons and contrastive explanations for reactive systems given LTL effects. We provide formal definitions for the non-temporal and temporal variants of the problem, together with algorithms and complexity analysis for verification and synthesis of the different variants.

Sufficient reasons provide another view on explainability of reactive systems, and we believe that exploring more notions of explainability, and formally defining them, would allow better understanding of systems and their behavior.

In the future, we plan to develop our prototype into a fully automated tool that can be used for computing (minimal, temporal) sufficient reasons and contrastive explanations automatically. We also plan to study the relations and derivations between the different causality and explainability notions.

LTL and HyperLTL

We provide here the full definition of LTL and its semantics, and then of HyperLTL and its semantics.

LTL Linear Temporal Logic (LTL [29]) is defined over the set of atomic propositions AP using the following grammar:

ψ:=p∣ψ∨ψ∣¬ψ∣◯ψ∣ψUψ\psi:= p \mid\psi\lor\psi\mid\neg\psi\mid\mathop{\bigcirc}\psi\mid\psi\mathbin{\mathcal{U}} \psi

Where p∈APp \in\mathrm{AP}, ◯\mathop{\bigcirc} is the temporal operator next, and U\mathcal{U} is the temporal operator until. We use the usual derived Boolean operators ∧\land, →\to, ↔\leftrightarrow, and the derived temporal operators ◊ψ=trueUψ\Diamond\psi= \mathit{true}\mathbin{\mathcal{U}}\psi (eventually ψ\psi) and □ψ=¬◊¬ψ\Box\psi= \neg\Diamond\neg\psi (globally ψ\psi).

We define when an infinite word α∈(2AP)ω\alpha\in(2^{\mathrm{AP}})^\omega satisfies an LTL formula φ\varphi inductively, as follows:

α⊨piff p∈α[0]α⊨¬ψiff α⊭ψα⊨ψ1∨ψ2iff α⊨ψ1 or α⊨ψ2α⊨◯ψiff α[1,∞)⊨ψα⊨ψ1Uψ2iff ∃t2∈N s.t. α[t2,∞)⊨ψ2and ∀t1<t2:α[t1,∞)⊨ψ1\begin{aligned} \alpha\models p &\quad\text{iff } p \in\alpha[0]\\ \alpha\models\neg\psi&\quad\text{iff } \alpha\not\models\psi\\ \alpha\models\psi_1 \lor\psi_2 &\quad\text{iff } \alpha\models\psi_1 \text{ or } \alpha\models\psi_2\\ \alpha\models\mathop{\bigcirc}\psi&\quad\text{iff } \alpha[1,\infty) \models\psi\\ \alpha\models\psi_1 \mathbin{\mathcal{U}} \psi_2 &\quad\text{iff } \exists t_2 \in\mathbb{N}\ \text{s.t. } \alpha[t_2,\infty) \models\psi_2\\ &\qquad\text{and } \forall t_1 < t_2 : \alpha[t_1,\infty) \models\psi_1 \end{aligned}

We say that a system TT satisfies an LTL formula φ\varphi, denoted by T⊨φT \models\varphi iff ∀α∈TR(T):α⊨φ\forall\alpha\in\mathrm{TR}(T) : \alpha\models\varphi.

The language of an LTL formula φ\varphi is the set of all word that satisfy φ\varphi: L(φ)={α∈(2AP)ω∣α⊨φ}\mathcal{L}(\varphi) = \{\alpha\in(2^{\mathrm{AP}})^\omega\mid\alpha\models\varphi\}.

It holds that every LTL formula φ\varphi can be translated to a non-deterministic Büchi automaton A\mathcal{A} such that L(φ)=L(A)\mathcal{L}(\varphi) = \mathcal{L}(\mathcal{A}) [31]. We denote this automaton by Aφ\mathcal{A}_{\varphi} and will use this notation throughout the paper.

HyperLTL HyperLTL [9] extends LTL with quantification over traces, allowing it to express relational properties over infinite executions.

The syntax of HyperLTL is defined using the following grammar, given a finite set V\mathcal{V} of trace variables.

ψ:=pπ∣ψ∨ψ∣¬ψ∣◯ψ∣ψUψ\psi:= p_{\pi} \mid\psi\lor\psi\mid\neg\psi\mid\mathop{\bigcirc}\psi\mid\psi\mathbin{\mathcal{U}}\psi
φ:=∃π.φ∣∀π.φ∣ψ\varphi:= \exists\pi.\varphi\mid\forall\pi.\varphi\mid\psi

Where π∈V\pi\in\mathcal{V} is a trace variable. That is, HyperLTL formulas are LTL formulas where atomic propositions are augmented by traces variables, and, with a prefix of existential and universal trace quantifiers.

The semantics of HyperLTL are given with respect to a set of traces T\mathcal{T} and a trace assignment Π:V→T\Pi: \mathcal{V} \to\mathcal{T}. Given a trace variable π∈V\pi\in\mathcal{V} and a trace τ∈T\tau\in\mathcal{T}, we denote by Π[π↦τ]\Pi[\pi\mapsto\tau] the trace assignment that coincides with Π\Pi on all variables, except for π\pi which is mapped to τ\tau. For the assignment Π\Pi, we denote by Π[t,∞)\Pi[t,\infty) the assignment that maps every variable π∈V\pi\in V to the suffix of Π(π)\Pi(\pi) starting from position tt, that is: Π(π)[t]Π(π)[t+1]Π(π)[t+2]⋯\Pi(\pi)[t]\Pi(\pi)[t+1]\Pi(\pi)[t+2]\cdots. The semantics of HyperLTL is defined inductively as follows.

Π,T⊨pπ  ⟺  p∈Π(π)(0)Π,T⊨¬ψ  ⟺  Π,T⊭ψΠ,T⊨ψ1∨ψ2  ⟺  Π,T⊨ψ1 or Π,T⊨ψ2Π,T⊨Xψ  ⟺  Π(π)[1,∞),T⊨ψΠ,T⊨ψ1Uψ2  ⟺  ∃t2∈N s.t. Π[t2,∞),T⊨ψ2and ∀t1<t2:Π[t1,∞),T⊨ψ1Π,T⊨∃π.φ  ⟺  there exists τ∈T s.t. Π[π↦τ],T⊨φΠ,T⊨∀π.φ  ⟺  for all τ∈T:Π[π↦τ],T⊨φ\begin{aligned} \Pi,T \models p_\pi&\iff p \in\Pi(\pi)(0)\\ \Pi,T \models\neg\psi&\iff\Pi,T \not\models\psi\\ \Pi,T \models\psi_1 \lor\psi_2 &\iff\Pi,T \models\psi_1\text{ or }\Pi,T \models\psi_2\\ \Pi,T \models\mathop{\mathbf{X}}\psi&\iff\Pi(\pi)[1,\infty),T \models\psi\\ \Pi,T \models\psi_1\mathbin{\mathbf{U}}\psi_2 &\iff\exists t_2 \in\mathbb{N}\text{ s.t. }\Pi[t_2,\infty),T \models\psi_2\\ &\qquad\text{and }\forall t_1<t_2:\Pi[t_1,\infty),T \models\psi_1\\ \Pi,T \models\exists\pi.\varphi&\iff\text{there exists }\tau\in\mathcal{T}\text{ s.t. }\Pi[\pi\mapsto\tau],T \models\varphi\\ \Pi,T \models\forall\pi.\varphi&\iff\text{for all }\tau\in\mathcal{T}:\Pi[\pi\mapsto\tau],T \models\varphi \end{aligned}

We say that T\mathcal{T} satisfies ψ\psi, denoted T⊨ψ\mathcal{T}\models\psi, if Π∅,T⊨ψ\Pi_{\emptyset},T\models\psi where Π∅:V→∅\Pi_{\emptyset}:V\to\emptyset is the empty assignment, meaning that ψ\psi contains no free trace variables that need to be assigned. We say that a transition system T\mathcal{T} satisfies a HyperLTL formula ψ\psi if TR⁡(T)\operatorname{TR}(\mathcal{T}) satisfies ψ\psi.

Full Proofs

Lemma 1 (restated). Let R⊆N×IPR \subseteq\mathbb{N}\times\mathit{IP} and let τR\tau_R be the trace representation of RR. Then, f[R,π]f[R,\pi] holds in T\mathcal{T} iff ψsr[τR,π]\psi_{sr}[\tau_R,\pi] holds in Taug\mathcal{T}_{\mathrm{aug}}.

Proof. Using rτRr_{\tau_R} we require that τR\tau_R is a trace representation of some set RR. We have that TR⁡(Taug)∩(2AP)ω=TR⁡(T)\operatorname{TR}(\mathcal{T}_{\mathrm{aug}})\cap(2^{AP})^\omega=\operatorname{TR}(\mathcal{T}). In particular, for π′∈TR⁡(Taug)\pi' \in\operatorname{TR}(\mathcal{T}_{\mathrm{aug}}), we have ¬rπ′↔π′∈TR⁡(T)\neg r_{\pi'}\leftrightarrow\pi'\in\operatorname{TR}(\mathcal{T}), thus, in ψsr[τR,π]\psi_{sr}[\tau_R,\pi] we only consider traces π′\pi' of the system T\mathcal{T}. The condition ⋀a∈IP(aτR→(π={a}π′))\bigwedge_{a\in IP}(a_{\tau_R}\to(\pi={}_{\{a\}}\pi')) is equivalent to ∀(i,a)∈R. π′[i]={a}π[i]\forall(i,a)\in R.\ \pi'[i]={}_{\{a\}}\pi[i], which is exactly the condition in the definition of f[R,π]f[R,\pi].

Theorem 4 (restated). Given a trace property PRP_R, as a Büchi automaton or an LTL formula, verifying if PRP_R is a temporal sufficient reason for an LTL effect φ\varphi in ⟨T,π⟩\langle\mathcal{T},\pi\rangle is PSPACE-complete.

Proof. Membership in PSPACE: First, assume that PRP_R is given as an NBA over 2IP2^{IP}. Let APRA_{P_R} be the extension of PRP_R to the full set 2AP2^{AP} (c.f. Definition 3). Then, Equation (3) reduces to model-checking whether APR∩T⊨AφA_{P_R}\cap\mathcal{T}\models A_\varphi.

If PRP_R is an LTL property φR\varphi_R, then, to verify that φR\varphi_R is a temporal sufficient reason for φ\varphi in ⟨T,π⟩\langle\mathcal{T},\pi\rangle we need to model-check Equation (4) against T\mathcal{T}, which is purly an LTL model-checking problem.

PSPACE hardness: we can reduce the LTL model-checking problem to the verification of temporal sufficient reasons, with almost the same proof as the proof of Theorem 2, but with the change that we are given the trace property

PR=trueP_R = true rather then the empty set of events (an automaton that accepts all words has one state, and an LTL formula is of constant size): truetrue is a temporal sufficient reason for some LTL property φ\varphi in ⟨T,π⟩\langle T,\pi\rangle iff all traces of TT satisfy φ\varphi. We now provide the full proof following the idea of Theorem 2.

We show a reduction from LTL model-checking: Given a transition system TT, and an LTL formula φ\varphi, we construct an instance: T′T', π\pi, φ′\varphi' and PRP_R in polynomial time, such that T⊨φT \models\varphi iff PRP_R is a sufficient reason for φ′\varphi' in ⟨T′,π⟩\langle T',\pi\rangle.

  • We construct T′T' from TT by adding a fresh state qf∉Qq_f \notin Q, and the transitions δ(q0,{f})=(qf,∅)\delta(q_0,\{f\}) = (q_f,\emptyset), δ(qf,{f})=(qf,∅)\delta(q_f,\{f\}) = (q_f,\emptyset) for a fresh input proposition f∉APf \notin AP.

  • We denote πf={f}ω\pi_f = \{f\}^{\omega}, and we have that that TR⁡(T′)=TR⁡(T)∪{πf}\operatorname{TR}(T') = \operatorname{TR}(T) \cup\{\pi_f\}.

  • We define φ′:=φ∨□f\varphi' := \varphi\lor\Box f. Then, we have the following:

    • πf⊨φ′\pi_f \models\varphi'.

    • ∀π′∈TR⁡(T):π′⊭□f\forall\pi' \in\operatorname{TR}(T): \pi' \not\models\Box f. Therefore:

    • ∀π′∈TR⁡(T):π′⊨φ\forall\pi' \in\operatorname{TR}(T): \pi' \models\varphi iff π′⊨φ′\pi' \models\varphi'.

  • We choose π=πf\pi= \pi_f.

  • We choose PR=trueP_R = true.

The construction of T′T' is linear in TT (both in terms of time and space), and so is the construction of φ′\varphi'. πf\pi_f and PRP_R are of constant size, so all together we have a polynomial construction.

We are now left to show that T⊨φT \models\varphi iff truetrue is a temporal sufficient reason for φ′\varphi' in ⟨T′,πf⟩\langle T',\pi_f\rangle. We have that truetrue is a temporal sufficient reason for φ′\varphi' in ⟨T′,πf⟩\langle T',\pi_f\rangle iff φ′\varphi' holds on all traces in TR⁡(T′)\operatorname{TR}(T'). Since φ′\varphi' holds on πf\pi_f regardless of TT and φ\varphi, and from the construction of T′T', we have that φ′\varphi' holds on all traces in TR⁡(T′)\operatorname{TR}(T') iff φ\varphi holds on all traces in TR⁡(T)\operatorname{TR}(T), as needed. □\square

Theorem 9 (restated). Let π\pi be an ultimately periodic trace, let φ\varphi be an LTL effect and let TT be a transition system. Let R={Ri∣i∈I}\mathcal{R} = \{R_i \mid i \in\mathcal{I}\} be the set of all MSRs for ⟨φ,T,π⟩\langle\varphi,T,\pi\rangle. Note that R\mathcal{R} might be uncountable, or empty. Then, for any MCE τ\tau we have ∀i∈I:Δ(τ,π)∩Ri≠∅\forall i \in\mathcal{I}: \Delta(\tau,\pi) \cap R_i \ne\emptyset.

Proof. Let τ\tau be an MCE, and assume by a way of contradiction that there is i∈Ii \in\mathcal{I} such that Ri∩Δ(τ,π)=∅R_i \cap\Delta(\tau,\pi) = \emptyset. This means that π\pi agrees with τ\tau on all events in RiR_i, and since RiR_i is an MSR, we have that τ⊨φ\tau\models\varphi, contradicting the fact that τ\tau is a CE. □\square

Additional Tables for Experimental Evaluation

MCE: Synthesizing a Minimal Contrastive Explanation

Figure 4. MCE: Synthesizing a Minimal Contrastive Explanation. These results align with the definitions.

InstanceCauseTSR t (s)ResCATS t (s)Res
Arbiterr1r1 (odd pos.)0.41✓20.02✓
Arbiter_simr1r10.38✓0.95✓
Arbiter_spur1r10.38✓0.67×
Ex1i1∧(¬i2U(i1∧¬i2))i1 \land(\lnot i2 \mathbin{\mathbf{U}} (i1 \land\lnot i2))0.40✓1.01✓
Ex1_modi1∧(¬i2U(i1∧¬i2))i1 \land(\lnot i2 \mathbin{\mathbf{U}} (i1 \land\lnot i2))0.40✓1.02×
Ex6_globr0r00.40✓0.74✓
Ex6_oddr0r0 (even pos.)0.41✓2.32✓
Ex8a∨aa \lor a0.42✓0.98✓
Ex8_moda∨aa \lor a0.41✓0.99✓
TP_Left¬a\lnot a0.38✓0.52✓
TP_Right¬a\lnot a0.98✓1.86✓

Table 3. Full version of Table 1: Verification of Temporal Sufficient Reasons (TSR). The checkmark (✓) indicates the tool considers it as a cause / reason. We note that CATS consider actual causality while we (TSR) consider sufficient reasons, therefore, it might be that one tool considers a formula as a correct explanation while the other does not.

InstanceEffect|A|Time (ms)|B|Time (ms)
Arbiter◊g1\Diamond g_1312.3372.2
Arbiter_sim◯g1\bigcirc g_1312.4372.8
Arbiter_spu◊g1\Diamond g_1112.0172.9
Ex1◊error\Diamond error412.8480.9
Ex1_mod◊o\Diamond o412.9475.1
Ex6_glob□¬g1\Box\neg g_1212.6275.0
Ex6_odd□¬g1\Box\neg g_1212.6275.6
Ex8◯◯error\bigcirc\bigcirc error312.7374.1
Ex8_mod◯◯error\bigcirc\bigcirc error312.9274.1
TP_Left◊e\Diamond e112.1173.2
TP_Right◊e\Diamond e212.1274.5

Table 4. Full version of Table 2: Synthesizing a Minimal Temporal Sufficient Reason. The Effect column specifies the property that the generated cause explains. ∣A∣\lvert A\rvert and ∣B∣\lvert B\rvert denote the number of states in the generated witness automaton for MTSR and CORP, respectively.

InstanceCause L(A)L(A) (MTSR)Cause L(B)L(B) (CORP)
Arbiter¬r1∧¬r0∧◯⟨◊r1⟩\neg r_1 \land\neg r_0 \land\bigcirc\langle\Diamond r_1\rangleNBA
Arbiter_sim¬r1∧¬r0∧◯r1\neg r_1 \land\neg r_0 \land\bigcirc r_1◯r1\bigcirc r_1
Arbiter_spuTRUETRUE
Ex1i1∧◯◯(¬i2U(i1∧¬i2))i_1 \land\bigcirc\bigcirc(\neg i_2 \mathbin{\mathrm{U}}(i_1 \land\neg i_2))i1∧◯◯(¬i2U(i1∧¬i2))i_1 \land\bigcirc\bigcirc(\neg i_2 \mathbin{\mathrm{U}}(i_1 \land\neg i_2))
Ex1_modi1∧◯◯(¬i2U(i1∧¬i2))i_1 \land\bigcirc\bigcirc(\neg i_2 \mathbin{\mathrm{U}}(i_1 \land\neg i_2))i1∧◯(i1∧¬i2)i_1 \land\bigcirc(i_1 \land\neg i_2)
Ex6_globNBAr0r_0 (even pos.)
Ex6_oddNBAr0r_0 (even pos.)
Ex8a∨◯aa \lor\bigcirc aa∨◯aa \lor\bigcirc a
Ex8_moda∨◯aa \lor\bigcirc aaa
TP_Left□¬a\Box\neg aTRUE
TP_Right¬a\neg a¬a\neg a

Table 5. Synthesizing a Minimal Temporal Sufficient Reason. Comparison of the logical formulas derived from the automata of Table 2. Note that in some instances, the cause can only be represented as an NBA and does not have an equivalent LTL formula. Both our MTSR implementation and the CORP tool output explicit NBAs that characterize the language of the minimal temporal sufficient reason (MTSR)/actual temporal cause (CORP). The LTL formulas were derived manually, to provide a a direct semantic comparison (as done in n [14] to evaluate CORP).

InstanceEffectπ\piMCE∣MCE∣|MCE|tt (s)
Ex6_glob□¬g1\Box\neg g_1({r0,r1}{g0})ω(\{r_0,r_1\}\{g_0\})^\omega{r1}{g1}({r0,r1}{g0})ω\{r_1\}\{g_1\}(\{r_0,r_1\}\{g_0\})^\omega41.02
Ex6_odd□¬g1\Box\neg g_1({r0,r1}{g0})ω(\{r_0,r_1\}\{g_0\})^\omega{r1}{g1}({r0,r1}{g0})ω\{r_1\}\{g_1\}(\{r_0,r_1\}\{g_0\})^\omega40.95
TP_Left◊e\Diamond e({e})ω(\{e\})^\omega—-0.81
TP_Right◊e\Diamond e({e})ω(\{e\})^\omega{a}({})ω\{a\}(\{\})^\omega20.82

Table 6. Synthesizing a Minimal Contrastive Explanation (MCE). π\pi is the original trace where the Effect holds; MCEMCE is the synthesized minimal counterfactual trace τ\tau (— when no counterfactual exists).

InstanceEffectMSR∣R∣|R|tt (s)
Arbiter◊g1\Diamond g_1{(r1,3)}\{(r_1,3)\}16.45
Arbiter_sim◯g1\bigcirc g_1{(r1,1)}\{(r_1,1)\}17.01
Arbiter_spu◊g1\Diamond g_1∅\emptyset04.83
Ex1◊o\Diamond o{(i1,0),(i2,2),(i2,3),(i1,4),(i2,4)}\{(i_1,0),(i_2,2),(i_2,3),(i_1,4),(i_2,4)\}54.88
Ex1_mod◊o\Diamond o{(i1,0),(i1,2),(i2,2)}\{(i_1,0),(i_1,2),(i_2,2)\}35.17
Ex8◯◯error\bigcirc\bigcirc\mathrm{error}{(a,1)}\{(a,1)\}11.11
Ex8_mod◯◯error\bigcirc\bigcirc\mathrm{error}{(a,0)}\{(a,0)\}11.14
Ex6_glob□¬g1\Box\neg g_1{(r0,2i):i∈N}\{(r_0,2i): i \in\mathbb{N}\}∞\infty5.61
Ex6_odd□¬g1\Box\neg g_1{(r0,2i):i∈N}\{(r_0,2i): i \in\mathbb{N}\}∞\infty5.62
TP_Left◊e\Diamond e∅\emptyset01.03
TP_Right◊e\Diamond e{(a,0)}\{(a,0)\}11.07

Table 7. Synthesizing a Minimal Sufficient Reason (MSR). The Effect column is the property being explained. MSR is the synthesized reason R⊆IP×NR \subseteq\mathrm{IP} \times\mathbb{N} (input propositions ×\times time steps); ∣R∣|R| is its size, ∞\infty when the reason repeats on the loop.

References

  1. [1]Christel Baier, Clemens Dubslăff, Florian Funke, Simon Jantsch, Rupak Majumdar, Jakob Piribauer, and Robin Ziemek. From verification to causality-based explications (invited talk). In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, LIPIcs, pages 1:1–1:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. URL: https://doi.org/10.4230/LIPIcs.ICALP.2021.1, doi:10.4230/LIPIcs.ICALP.2021.1.
  2. [2]Rabia Bakhteri, Julian Cheng, and Alex Semmelhack. Design and implementation of cellular automata on fpga for hardware acceleration. Procedia Computer Science, 171:999–2007, 2020. Third International Conference on Computing and Network Communications (CoCoNet’19). URL: https://www.sciencedirect.com/science/article/pii/S1877050920311996, doi:10.1016/j.procs.2020.04.214.DOI
  3. [3]Thomas Ball, Mayur Naik, and Sriram K. Rajamani. From symptom to cause: localizing errors in counterexample traces. In Alex Aiken and Greg Morrisett, editors, Conference Record of POPL 2003: The 30th SIGPLAN-SIGACT Symposium on Principles of Programming Languages, New Orleans, Louisiana, USA, January 15-17, 2003, pages 97–105. ACM, 2003. doi:10.1145/604131.604140.DOI
  4. [4]Pablo Barceló, Alexander Kozachinskiy, Miguel Romero, Bernardo Subercaseaux, and José Verschae. Explaining k-nearest neighbors: Abductive and counterfactual explanations. Proc. ACM Manag. Data, 3(2):97:1–97:26, 2025. doi: 10.1145/3725234.DOI
  5. [5]Raven Beutner, Bernd Finkbeiner, Hadar Frenkel, and Julian Siber. Checking and sketching causes on temporal sequences. In Étienne André and Jun Sun, editors, Automated Technology for Verification and Analysis - 21st International Symposium, ATVA 2023, Singapore, October 24-27, 2023, Proceedings, Part II, volume 14216 of Lecture Notes in Computer Science, pages 314–327. Springer, 2023. doi:10.1007/978-3-031-45332-8\_18.DOI
  6. [6]Robert K. Brayton and Alan Mishchenko. ABC: An academic industrial-strength verification tool. In Tayssir Touili, Byron Cook, and Paul B. Jackson, editors, Computer Aided Verification, 22nd International Conference, CAV 2010, Edinburgh, UK, July 15-19, 2010. Proceedings, volume 6174 of Lecture Notes in Computer Science, pages 24–40. Springer, 2010. doi:10.1007/978-3-642-14295-6\_5.DOI
  7. [7]Georgiana Caltais, Sophie Linnea Guetlein, and Stefan Leue. Causality for general ltl-definable properties. In Bernd Finkbeiner and Samantha Kleinberg, editors, Proceedings 3rd Workshop on formal reasoning about Causation, Responsibility, and Explanations in Science and Technology, CREST@ETAPS 2018, Thessaloniki, Greece, 21st April 2018, EPTCS, pages 1–15, 2018. doi:10.4204/EPTCS.286.1.DOI
  8. [8]Mishel Carelli, Bernd Finkbeiner, and Julian Siber. Closure and complexity of temporal causality. In 40th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2025, Singapore, June 23-26, 2025, pages 98–111. IEEE, 2025. doi: 10.1109/LICS65433.2025.00015.DOI
  9. [9]Michael R. Clarkson, Bernd Finkbeiner, Masoud Koleini, Kristopher K. Micinski, Markus N. Rabe, and César Sánchez. Temporal logics for hyperproperties. In Martín Abadi and Steve Kremer, editors, Principles of Security and Trust - Third International Conference, POST 2014, Grenoble, France, April 5-13, 2014, Proceedings, volume 8414 of Lecture Notes in Computer Science, pages 265–284. Springer, 2014. URL: https://doi.org/10.1007/978-3-642-54792-8_15.
  10. [10]Norine Coenen, Raimund Dachselt, Bernd Finkbeiner, Hadar Frenkel, Christopher Hahn, Tom Horak, Niklas Metzger, and Julian Siber. Explaining hyperproperty violations. In 34th International Conference on Computer Aided Verification (CAV 2022), volume 13371 of Lecture Notes in Computer Science. Springer, 8 2022. doi: 10.1007/978-3-031-13185-1_20.DOI
  11. [11]Norine Coenen, Bernd Finkbeiner, Hadar Frenkel, Christopher Hahn, Niklas Metzger, and Julian Siber. Temporal causality in reactive systems. In Ahmed Bouajjani, Lukáš Holík, and Zhilin Wu, editors, Automated Technology for Verification and Analysis - 20th International Symposium, ATVA 2022, Virtual Event, October 25-28, 2022, Proceedings, volume 13505 of Lecture Notes in Computer Science, pages 208–224. Springer, 2022. doi:10.1007/978-3-031-19899-9_13.DOI
  12. [12]Adnan Darwiche and Auguste Hirth. On the (complete) reasons behind decisions. J. Log. Lang. Inf., 32(1):63–88, 2023. URL: https://doi.org/10.1007/s10849-022-09377-8, doi:10.1007/s10849-022-09377-8.
  13. [13]Adnan Darwiche and Chunyuan Ji. On the computation of necessary and sufficient explanations. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, Thirty-Fourth Conference on Innovative Applications of Artificial Intelligence, IAAI 2022, The Twelveth Symposium on Educational Advances in Artificial Intelligence, EAAI 2022 Virtual Event, February 22 - March 1, 2022, pages 5582–5591. AAAI Press, 2022. URL: https://doi.org/10.1609/aaai.v36i5.20498, doi:10.1609/AAAI.V36I5.20498.
  14. [14]Bernd Finkbeiner, Hadar Frenkel, Niklas Metzger, and Julian Siber. Synthesis of temporal causality. In Arie Gurfinkel and Vijay Ganesh, editors, Computer Aided Verification - 36th International Conference, CAV 2024, Montreal, QC, Canada, July 24–27, 2024, Proceedings, Part III, volume 14683 of Lecture Notes in Computer Science, pages 87–111. Springer, 2024. doi:10.1007/978-3-031-65633-0\_5.
  15. [15]Bernd Finkbeiner, Hadar Frenkel, and Julian Siber. An information-flow perspective on explainability requirements: Specification and verification. In Magdalena Ortiz, Renata Wassermann, and Torsten Schaub, editors, Proceedings of the 22nd International Conference on Principles of Knowledge Representation and Reasoning, KR 2025, Melbourne, Australia, November 11-17, 2025, 2025. URL: https://doi.org/10.24963/kr.2025/29, doi:10.24963/KR.2025/29.
  16. [16]Bernd Finkbeiner, Markus N. Rabe, and César Sánchez. Algorithms for model checking HyperLTL and HyperCTL*. In Daniel Kroening and Corina S. Pasareanu, editors, Computer Aided Verification - 27th International Conference, CAV 2015, San Francisco, CA, USA, July 18-24, 2015, Proceedings, Part I, Lecture Notes in Computer Science, pages 30–48. Springer, 2015. doi:10.1007/978-3-319-21690-4\_3.DOI
  17. [17]Bernd Finkbeiner and Julian Siber. Counterfactuals modulo temporal logics. In Ruzica Piskac and Andrei Voronkov, editors, LPAR 2023: Proceedings of 24th International Conference on Logic for Programming, Artificial Intelligence and Reasoning, Manizales, Colombia, 4-9th June 2023, EPiC Series in Computing, pages 181–204. EasyChair, 2023. URL: https://doi.org/10.29007/qtw7, doi:10.29007/QTW7.
  18. [18]Alex Groce, Sagar Chaki, Daniel Kroening, and Ofer Strichman. Error explanation with distance metrics. Int. J. Softw. Tools Technol. Transf., 8(3):229–247, 2006. URL: https://doi.org/10.1007/s10009-005-0202-0, doi:10.1007/S10009-005-0202-0.
  19. [19]Joseph Y. Halpern and Judea Pearl. Causes and explanations: A structural-model approach. part i: Causes. The British Journal for the Philosophy of Science, 56(4):843–887, 2005. URL: http://www.jstor.org/stable/3541870.
  20. [20]Alexey Ignatiev, Nina Narodytska, Nicholas Asher, and João Marques-Silva. From contrastive to abductive explanations and back again. In Matteo Baldoni and Stefania Bandini, editors, AIxIA 2020 - Advances in Artificial Intelligence - XIXth International Conference of the Italian Association for Artificial Intelligence, Virtual Event, November 25-27, 2020, Revised Selected Papers, Lecture Notes in Computer Science, pages 335–355. Springer, 2020. doi:10.1007/978-3-030-77091-4\_21.DOI
  21. [21]Alexey Ignatiev, Nina Narodytska, and João Marques-Silva. Abduction-based explanations for machine learning models. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019, pages 1511–1519. AAAI Press, 2019. URL: https://doi.org/10.1609/aaai.v33i01.33011511, doi:10.1609/AAAI.V33I01.33011511.
  22. [22]Florian Leitner-Fischer and Stefan Leue. Causality checking for complex system models. In Roberto Giacobazzi, Josh Berdine, and Isabella Mastroeni, editors, Verification, Model Checking, and Abstract Interpretation, 14th International Conference, VMCAl 2013, Rome, Italy, January 20-22, 2013. Proceedings, Lecture Notes in Computer Science, pages 248–267. Springer, 2013. doi:10.1007/978-3-642-35873-9\_16.
  23. [23]Juncao Li, Fei Xie, Thomas Ball, Vladimir Levin, and Con McGarvey. An automata-theoretic approach to hardware/software co-verification. In David S. Rosenblum and Gabriele Taentzer, editors, Fundamental Approaches to Software Engineering, 13th International Conference, FASE 2010, Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2010, Paphos, Cyprus, March 20-28, 2010. Proceedings, Lecture Notes in Computer Science, pages 248–262. Springer, 2010. doi:10.1007/978-3-642-12029-9\_18.
  24. [24]Orna Lichtenstein and Amir Pnueli. Checking that finite state concurrent programs satisfy their linear specification. In Mary S. Van Deusen, Zvi Galil, and Brian K. Reid, editors, Conference Record of the Twelfth Annual ACM Symposium on Principles of Programming Languages, New Orleans, Louisiana, USA, January 1985, pages 97–107. ACM Press, 1985. doi:10.1145/318593.318622.DOI
  25. [25]Nicolas Markey and Philippe Schoebelen. Model checking a path. In Roberto M. Amadio and Denis Lugiez, editors, CONCUR 2003 - Concurrency Theory, 14th International Conference, Marseille, France, September 3-5, 2003, Proceedings, volume 2761 of Lecture Notes in Computer Science, pages 248–262. Springer, 2003. doi:10.1007/978-3-540-45187-7\_17.DOI
  26. [26]João Marques-Silva and Alexey Ignatiev. Delivering trustworthy AI through formal XAI. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, Thirty-Fourth Conference on Innovative Applications of Artificial Intelligence, IAAI 2022, The Twelfth Symposium on Educational Advances in Artificial Intelligence, EAAI 2022 Virtual Event, February 2 - March 1, 2022, pages 12342–12350. AAAI Press, 2022. URL: https://doi.org/10.1609/aaai.v36i11.21499, doi:10.1609/AAAI.V36I11.21499.
  27. [27]George H. Mealy. A method for synthesizing sequential circuits. Bell System Technical Journal, 34(5):1045–1079, 1955. URL: https://onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1955.tb03788.x, arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1955.tb03788.x, doi:10.1002/j.1538-7305.1955.tb03788.x.DOI
  28. [28]Julie Parreaux, Jakob Piribauer, and Christel Baier. Counterfactual causality for reachability and safety based on distance functions. In Antonis Achilleos and Dario Della Monica, editors, Proceedings of the Fourteenth International Symposium on Games, Automata, Logics, and Formal Verification, GandALF 2023, Udine, Italy, 18-20th September 2023, volume 390 of EPTCS, pages 132–149, 2023. doi:10.4204/EPTCS.390.9.DOI
  29. [29]Amir Pnueli. The temporal logic of programs. In 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October - 1 November 1977, pages 46–57. IEEE Computer Society, 1977. doi:10.1109/SFCS.1977.32.DOI
  30. [30]A. Prasad Sistla and Edmund M. Clarke. The complexity of propositional linear temporal logics. J. ACM, 32(3):733–749, 1985. doi:10.1145/3828.3837.
  31. [31]Moshe Y. Vardi and Pierre Wolper. An automata-theoretic approach to automatic program verification (preliminary report). In Proceedings of the Symposium on Logic in Computer Science (LICS ’86), Cambridge, Massachusetts, USA, June 16-18, 1986, pages 332–344. IEEE Computer Society, 1986.

Paper details

vlnc:W_49uxzu8c
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents