1 Introduction

There exists a long history of research on fault diagnosis of discrete event systems (DESs) (see for example Sampath et al. 1995; Zaytoon and Lafortune 2013). The notion of diagnosability requires detection of any fault within a uniformly bounded delay, which in turn requires that within that bounded delay, the post fault-behaviors generate observations that are distinguished from the pre-fault ones (Sampath et al. 1995).

For large, physically distributed systems, decentralized diagnosis is employed, where multiple local diagnosers that rely on their own subsets of accessible sensors make local diagnosis decisions that are pooled together to deduce a global one. See for example (Debouk et al. 2000; Su and Wonham 2005; Qiu and Kumar 2006, 2008; Wang et al. 2007, 2010, 2011; Qiu et al. 2009; Kumar and Takai 2009; Schmidt 2010; Takai and Ushio 2012; Cassez 2012; Chakib and Khoumsi 2012; Yamamoto and Takai 2014, 2015; Yin and Lafortune 2015; Yokota et al. 2017). The notion of codiagnosability that captures the property that a fault can be detected by at least one of the local diagnosers within a uniformly bounded delay was formally introduced in Qiu and Kumar (2006). This scheme, where at least one diagnoser issues a failure decision unambiguously, is “disjunctive” in nature. In contrast, a dual “conjunctive” scheme, which is incomparable to the disjunctive one, was later proposed in Wang et al. (2007), where a nonfailure decision is issued by a diagnoser when it is unambiguous about it and a fault is detected when none of the diagnosers issue a nonfailure decision.

In the disjunctive and conjunctive schemes mentioned above, each diagnoser makes a local diagnosis decision on the basis of the own knowledge. The process of utilizing the own knowledge as well as the inferred others’ knowledge for the sake of decision-making was referred to as “inferencing” (where local diagnosers know each other’s observation masks). A general framework for inference-based decentralized decision-making was introduced by the authors of the present paper in Kumar and Takai (2007) and adopted to the cases of diagnosis in Kumar and Takai (2009) and prognosis in Takai and Kumar (2011). In the inference-based setting, each diagnoser uses not only its own knowledge of the system behaviors, but also the inference about the possible knowledge of the system behaviors of other diagnosers to arrive at its own local decision. The “winning” local decision (namely, the one needing the least levels of inferencing) is set as the global decision. While the general framework of Kumar and Takai (2009) supports arbitrary levels of inferencing, the work of Kumar and Takai (2009) employs only the disjunctive scheme. Our recent work Takai and Kumar (2017) supports both the disjunctive and conjunctive schemes, along with multiple levels of inferencing. To achieve such generality over (Kumar and Takai 2009), the main new insight lies in identifying the seed pair of failure and nonfailure behaviors that must be disambiguated through inferencing. In Kumar and Takai (2009), this seed pair was simply taken to be all failure versus all nonfailure behaviors. However, this is unnecessarily strong, and instead, only those failure behaviors that have allowed the execution of post-fault behaviors to a certain minimum number of steps (equaling the uniformly bounded delay of detection) must be disambiguated from the nonfailure behaviors to capture both disjunctive and conjunctive decision-making. The inference-based framework of Takai and Kumar (2017) is general enough to subsume the disjunctive and conjunctive frameworks of Qiu and Kumar (2006) and Wang et al. (2007), respectively, which do not involve inferencing, and the conditional disjunctive and conditional conjunctive frameworks of Wang et al. (2007), which involve a single-level of inferencing. Furthermore, as the levels of inferencing are increased, a larger class of diagnosable systems are obtained (Takai and Kumar 2017).

Local supervisors (respectively, diagnosers) with conditional decisions involving a single-level inferencing were developed in Yoo and Lafortune (2007) (respectively, Yokota et al. 2017). The current paper presents the online implementation of the inference-based decentralized diagnosers in the generalized framework of Takai and Kumar (2017) supporting both conjunctive and disjunctive decision-making (different from the earlier version (Kumar and Takai 2009), which used only disjunctive decision-making, omitting the conjunctive one). The implementation requires the online computation of the diagnosis decisions and the associated ambiguity levels by each of the local decision makers, following each of their local observations. This in turn requires knowing the delay bound of diagnosis, which must be computed offline, prior to the online monitoring for fault detection. The paper presents the computation of the delay bound of diagnosis, and also a certain set of languages, which together aid the recursive online computation of the diagnosis decisions. Complexity analysis for the required offline as well as online computations is provided. The paper also shows that as the number of inferencing levels increases, the delay bound of diagnosis decreases and a larger class of systems become diagnosable. So there exists a tradeoff between the complexity versus the ability and delay of diagnosis.

Note that knowing the delay bound is also important to execute mitigation actions in a timely manner, and is a figure of merit of a diagnosis scheme. Algorithms for computing the delay bound are reported in the literature for various earlier schemes: disjunctive (Qiu and Kumar 2006), conjunctive (Yamamoto and Takai 2014), and conditional disjunctive and conjunctive (Yokota et al. 2017). The results on the computation of the delay bound were first reported at the authors’ conference papers (Takai and Kumar 2016) but without proofs. This paper provides additional results on the online computation of the ambiguity levels and additionally includes all the correctness proofs, and new examples.

2 Notation and preliminaries

A deterministic automaton is a five-tuple G = (Q,Σ,δ, q 0, Q m a r k ), where Q is the set of states, Σ is the finite set of events, δ : Q × Σ → Q is the partial transition function, q 0Q is the initial state, and Q m a r k Q is the set of marked states.Footnote 1 Let Σ be the set of all finite traces of elements of Σ, including the empty trace ε. The function δ can be extended to δ : Q ×ΣQ in the usual manner. The generated and marked languages of G, denoted by L(G) and L m (G), respectively, are defined as L(G) = {s ∈Σδ(q 0, s)!} and L m (G) = {s ∈Σδ(q 0, s) ∈ Q m a r k }, where δ(q, s)! denotes that δ(q, s) is defined for each qQ and each s ∈Σ.

Let K ⊆Σ be a language. The set of all prefixes of traces in K is denoted by p r(K). If K = p r(K), then K is said to be (prefix-)closed. A closed language K is said to be deadlock-free if, for any sK, {s}Σ ∩ K. For each trace s ∈Σ, |s| denotes its length. For any \(m \in \mathbb {N}\), where \(\mathbb {N}\) denotes the set of all nonnegative integers, let Σm := {s ∈Σ∣|s|≥ m} and Σm := {s ∈Σ∣|s|≤ m}.

Let I = {1,2,…,n} denote the index set of local diagnosers that perform the task of diagnosis. We assume that the limited sensing capabilities of the i th local diagnoser D i (iI) can be represented by the local observation mask, M i : Σ →Δ i ∪{ε}, where Δ i is the set of locally observed symbols. An event σ ∈ Σ with M i (σ) = ε is said to be unobservable under M i . The local observation mask M i is extended to \(M_{i}: {\Sigma }^{*} \rightarrow {\Delta }_{i}^{*}\) in the usual manner. Two traces s, s ∈Σ with M i (s) = M i (s ) are said to be M i -indistinguishable. In addition, the inverse map of M i , denoted by \(M_{i}^{-1}: {\Delta }_{i}^{*} \rightarrow 2^{{\Sigma }^{*}}\) , is defined as \(M_{i}^{-1}(t)=\{ s \in {\Sigma }^{*} \mid M_{i}(s)=t \}\) for each \(t \in {\Delta }_{i}^{*}\). For any languages L ⊆Σ and \(L^{\prime } \subseteq {\Delta }_{i}^{*}\), \(M_{i}(L) \subseteq {\Delta }_{i}^{*}\) and \(M_{i}^{-1}(L^{\prime }) \subseteq {\Sigma }^{*}\) are defined as \(M_{i}(L)=\{M_{i}(s) \in {\Delta }_{i}^{*} \mid s \in L\}\) and \(M_{i}^{-1}(L^{\prime })=\{ s \in {\Sigma }^{*} \mid M_{i}(s) \in L^{\prime }\}\), respectively. For any subset Q Q of the state set Q of G, the unobservable reach set U R G, i (Q ) ∈ 2Q is defined as

$$ UR_{G,i}(Q^{\prime})=\{q^{\prime} \in Q \mid \exists q \in Q^{\prime}, \exists s \in M_{i}^{-1}(\varepsilon) \cap L(G): \delta(q,s)=q^{\prime}\}. $$
(1)

Let L be a closed language that represents the generated language of a plant (system to be diagnosed) modeled as a finite automaton G = (Q,Σ,δ, q 0, Q), and KL be a nonempty closed language that represents a nonfailure specification. Traces in LK are considered as failure traces and the task of diagnosis is to determine the execution of any trace in LK within an additional bounded number of system executions. Without loss of generality, the plant language L can be taken to be deadlock-free (Kumar and Takai 2009).

In what follows, we need a finite acceptor of the post-fault traces in which a fault occurred at least m steps in the past, i.e., traces in F 0(m) := L ∩ (LKm. When m corresponds to the delay bound of diagnosis, F 0(m) corresponds to the set of traces for which a failure decision can be issued. Also, when m = 0, F 0(m) simply corresponds to the set of all failure traces.

To construct a finite acceptor of the language F 0(m) = L ∩ (LKm for any \(m \in \mathbb {N}\), we augment a finite generator G K = (Q K ,Σ,δ K , q K,0, Q K ) of the nonfailure specification language KL by adding m + 1 dump states d 0, d 1,…,d m Q K . Formally, the augmented automaton is defined as

$$\tilde{G}_{K_{m}} =(\tilde{Q}_{K_{m}},{\Sigma} ,\tilde{\delta}_{K_{m}},q_{K,0},\{d_{m}\}), $$

where \(\tilde {Q}_{K_{m}}=Q_{K} \cup \{d_{j} \mid j\in \{0,1,\dots ,m\}\}\), and the state transition function \(\tilde {\delta }_{K_{m}}:\tilde {Q}_{K_{m}} \times {\Sigma } \rightarrow \tilde {Q}_{K_{m}}\) is defined as follows (Yamamoto and Takai 2015): For each \(\tilde {q}_{K_{m}} \in \tilde {Q}_{K_{m}}\) and each σ ∈ Σ,

$$\tilde{\delta}_{K_{m}}(\tilde{q}_{K_{m}},\sigma ) = \left\{ \begin{array}{ll} \delta_{K}(\tilde{q}_{K_{m}},\sigma ), & \text{if }\tilde{q}_{K_{m}} \in Q_{K} \wedge \delta_{K}(\tilde{q}_{K_{m}},\sigma )!\\ d_{0}, & \text{if }\tilde{q}_{K_{m}} \in Q_{K} \wedge \neg \delta_{K}(\tilde{q}_{K_{m}},\sigma )!\\ d_{l+1}, & \text{if }\tilde{q}_{K}=d_{l} (m \geq 1 \wedge 0 \leq l \leq m-1)\\ d_{m}, & \text{if } \tilde{q}_{K_{m}}=d_{m}, \end{array} \right. $$

where \(\neg \delta _{K}(\tilde {q}_{K_{m}},\sigma )!\) denotes the negation of \(\delta _{K}(\tilde {q}_{K_{m}},\sigma )!\) It follows from the definition of \(\tilde {G}_{K_{m}}\) that \(L(\tilde {G}_{K_{m}})={\Sigma }^{*}\) and \(L_{m}(\tilde {G}_{K_{m}})={\Sigma }^{*}-K{\Sigma }^{\leq m}\).

We construct the synchronous product \(G\parallel \tilde {G}_{K_{m}}\) (Kumar and Garg 1995) of the finite plant model G = (Q,Σ,δ, q 0, Q) and \(\tilde {G}_{K_{m}}\), which is denoted by

$$G\parallel \tilde{G}_{K_{m}}= (Q\times \tilde{Q}_{K_{m}}, {\Sigma}, \xi_{m}, (q_{0},q_{K,0}), Q \times \{d_{m}\} ). $$

Then we have \(L(G\parallel \tilde {G}_{K_{m}})=L(G) \cap L(\tilde {G}_{K_{m}})=L\) and \(L_{m}(G\parallel \tilde {G}_{K_{m}})=L_{m}(G) \cap L_{m}(\tilde {G}_{K_{m}}) =L \cap (L-K){\Sigma }^{\geq m}=F_{0}(m)\) , i.e., \(G\parallel \tilde {G}_{K_{m}}\) can be used as a finite accepter of F 0(m). For simplicity of notation, in the case of m = 0, we drop the subscript m in the notation, i.e., \(\tilde {G}_{K_{0}}=(\tilde {Q}_{K_{0}},{\Sigma },\tilde {\delta }_{K_{0}},q_{K,0},\{d_{0}\})\) and \(G\parallel \tilde {G}_{K_{0}}= (Q\times \tilde {Q}_{K_{0}}, {\Sigma }, \xi _{0}, (q_{0},q_{K,0}), Q \times \{d_{0}\})\) are also denoted by \(\tilde {G}_{K}=(\tilde {Q}_{K},{\Sigma },\tilde {\delta }_{K},q_{K,0},\{d\})\) and \(G\parallel \tilde {G}_{K}= (Q\times \tilde {Q}_{K}, {\Sigma }, \xi , (q_{0},q_{K,0}), Q \times \{d\})\), respectively.

3 Inference-based diagnosis framework

The material in this section summarizes our earlier work reported in Takai and Kumar (2017) that introduced the inference-based diagnosis framework, along with the notion of N-inference diagnosability and its verification test.

3.1 Existence condition of N-inferring diagnosers

Let C = {0,1,ϕ} be the set of diagnosis decisions, where “0” represents a nonfailure decision, “1” represents a failure decision, and “ ϕ” represents an unsure decision. Each inference-based local diagnoser D i is defined as a map \(D_{i}:M_{i}(L) \to C \times \mathbb {N}\) (Kumar and Takai 2009), where for each sL, D i (M i (s)) = (c i (M i (s)),n i (M i (s))). Here c i (M i (s)) ∈ C denotes the diagnosis decision of D i following an observation M i (s) ∈ M i (L), and \(n_{i}(M_{i}(s))\in \mathbb {N}\) denotes the ambiguity level of the diagnosis decision of D i . Let n(s) be the minimum ambiguity level of local decisions (Kumar and Takai 2009), i.e., n(s) := miniI n i (M i (s)).

The decentralized diagnoser {D i } iI that consists of local diagnosers D i (iI) issues the global diagnosis decision. Formally, {D i } iI is defined as a map {D i } iI : LC. For each sL, the diagnosis decision {D i } iI (s) is given as follows (Kumar and Takai 2009):

$$ \{D_{i}\}_{i \in I}(s)= \left\{ \begin{array} {ll} 1, & \text{if } \forall i \in I: n_{i}(M_{i}(s))= n(s) \Rightarrow c_{i}(M_{i}(s))=1 \\ 0, & \text{if } \forall i \in I: n_{i}(M_{i}(s))= n(s) \Rightarrow c_{i}(M_{i}(s))=0 \\ \phi, & \text{otherwise.} \end{array} \right. $$
(2)

The global diagnosis decision is taken to be the same as a local diagnosis decision possessing the minimum level of ambiguity.

A useful notion of a decentralized diagnoser is the boundedness of the ambiguity level of its decisions. Let \(N \in \mathbb {N}\) be a given nonnegative integer. A decentralized diagnoser {D i } iI : LC is said to be N-inferring (Takai and Kumar 2017) if the following two conditions hold:

  1. 1.

    Either

    $$\begin{array}{@{}rcl@{}} \forall s \in L-K: \{D_{i}\}_{i \in I}(s)=1 \Rightarrow n(s) \leq N, \end{array} $$
    (3)

    or

    $$\begin{array}{@{}rcl@{}} \forall s \in K: \{D_{i}\}_{i \in I}(s) \neq 1 \Rightarrow n(s) \leq N. \end{array} $$
    (4)
  2. 2.

    There exists \(m \in \mathbb {N}\) such that

    $$ \forall s \in (L \cap (L-K) {\Sigma}^{\geq m}) \cup K: n(s) \leq N \Rightarrow \{D_{i}\}_{i \in I}(s) \neq \phi. $$
    (5)

Given a plant language L, a nonfailure specification language KL, and a nonnegative integer \(m \in \mathbb {N}\), we inductively define a monotonically decreasing sequence {(F k (m),H k (m))} k≥0 of language pairs as follows (Takai and Kumar 2017):

  • Base step:

    $$F_{0}(m):=L \cap (L-K) {\Sigma}^{\geq m},\ H_{0}(m):=K. $$
  • Induction step:

    $$\begin{array}{@{}rcl@{}} F_{k+1}(m)&:=&F_{k}(m) \cap \left( \bigcap\limits_{i \in I} M_{i}^{-1}M_{i}(H_{k}(m)) \right), \\ H_{k+1}(m)&:=&H_{k}(m) \cap \left( \bigcap\limits_{i \in I} M_{i}^{-1}M_{i}(F_{k}(m)) \right). \end{array} $$

In the base step, F 0(m) = L ∩ (LKm is the set of failure traces for which at least m events occurred after the occurrence of the failure, and H 0(m) = K is the set of nonfailure traces. In the induction step, F k+1(m) (respectively, H k+1(m)) is a sublanguage of F k (m) (respectively, H k (m)) consisting of traces for which there exists an M i -indistinguishable trace in H k (m) (respectively, F k (m)) for each iI.

Then we have the following definition of N-inference diagnosability.

Definition 1

(Takai and Kumar 2017) The pair (L, K) of regular languages is said to be N-inference diagnosable if there exists \(m \in \mathbb {N}\) such that F N+1(m) = or H N+1(m) = .

Remark 1

A relation among various notions of diagnosability for decentralized diagnosis is shown in Fig. 1, and shows that the framework analyzed here is most general.

Fig. 1
figure 1

A relation among notions of diagnosability for decentralized diagnosis

Example 1

We consider a plant modeled by the finite automaton G shown in Fig. 2a. Let Δ1 = {a, a ,c, d, e}, Δ2 = {b, b ,c, d, e}, and

$$\begin{array}{@{}rcl@{}} M_{1}(\sigma) &=& \left\{ \begin{array}{ll} a, & \text{if }\sigma \in \{a_{1},a_{2}\}\\ a^{\prime}, & \text{if }\sigma \in \{a_{1}^{\prime},a_{2}^{\prime}\}\\ \sigma, & \text{if }\sigma \in \{c,d,e\}\\ \varepsilon, & \text{otherwise}, \end{array} \right. \\ M_{2}(\sigma) &=& \left\{ \begin{array}{ll} b, & \text{if }\sigma \in \{b_{1},b_{2}\}\\ b^{\prime}, & \text{if }\sigma \in \{b_{1}^{\prime},b_{2}^{\prime}\}\\ \sigma, & \text{if }\sigma \in \{c,d,e\}\\ \varepsilon, & \text{otherwise}. \end{array} \right. \end{array} $$
Fig. 2
figure 2

Automata G and G K of Example 1

In addition, let KL be a closed regular language generated by the finite automaton G K shown in Fig. 2b. In this example, the failure is modeled by the occurrence of the event f.

We show that (L, K) is 2-inference diagnosable but not 1-inference diagnosable. We consider any \(m \in \mathbb {N}\) such that m ≥ 1. Initially, we have

$$\begin{array}{@{}rcl@{}} F_{0}(m)&=& d(a_{1}fc^{m}c^{*} + b_{1}fc^{m}c^{*}) + e(fc^{m}c^{*} + a_{2}fb_{2}^{\prime}c^{m-1}c^{*} + b_{2}fa_{2}^{\prime}c^{m-1}c^{*}),\\ H_{0}(m)&=&pr(d(c^{+} + a_{1}b_{1}^{\prime}c^{+} + b_{1}a_{1}^{\prime}c^{+}) + e(a_{2}c^{+} + b_{2}c^{+})). \end{array} $$

Since

$$\begin{array}{@{}rcl@{}} M_{1}(F_{0}(m))&=& d(ac^{m}c^{*} + c^{m}c^{*}) + e(c^{m}c^{*} + ac^{m-1}c^{*} + a^{\prime}c^{m-1}c^{*}),\\ M_{2}(F_{0}(m))&=& d(c^{m}c^{*} + bc^{m}c^{*}) + e(c^{m}c^{*} + b^{\prime}c^{m-1}c^{*} + bc^{m-1}c^{*}),\\ M_{1}(H_{0}(m))&=&pr(d(c^{+} + ac^{+} + a^{\prime}c^{+}) + e(ac^{+}+c^{+})),\\ M_{2}(H_{0}(m))&=&pr(d(c^{+} + b^{\prime}c^{+} + bc^{+}) + e(c^{+} + bc^{+})), \end{array} $$

we have

$$\begin{array}{@{}rcl@{}} F_{1}(m) &=& F_{0}(m) \cap \left( \bigcap\limits_{i \in I} M_{i}^{-1}M_{i}(H_{0}(m)) \right) \\ &=& d(a_{1}fc^{m}c^{*} + b_{1}fc^{m}c^{*}) + efc^{m}c^{*},\\ H_{1}(m) &=& H_{0}(m) \cap \left( \bigcap\limits_{i \in I} M_{i}^{-1}M_{i}(F_{0}(m)) \right) \\ &=& dc^{m}c^{*} + e(a_{2}c^{m}c^{*} + b_{2}c^{m}c^{*}). \end{array} $$

Moreover, by the iterative computation, we obtain

$$\begin{array}{@{}rcl@{}} F_{2}(m) &=& efc^{m}c^{*},\\ H_{2}(m) &=& dc^{m}c^{*}, \end{array} $$

and finally, we have F 3(m) = H 3(m) = , which implies that (L, K) is 2-inference diagnosable. However, since F 2(m)≠ and H 2(m)≠ for any \(m \in \mathbb {N}\), it is not 1-inference diagnosable.

The following theorem shows that N-inference diagnosability is a necessary and sufficient condition for the existence of an N-inferring decentralized diagnoser with no missed and incorrect detections.

Theorem 1

(Takai and Kumar 2017) There exists an N-inferring decentralized diagnoser {D i } iI : LC that satisfies

$$\begin{array}{@{}rcl@{}} \exists m \in \mathbb{N},\forall s \in L \cap (L-K) {\Sigma}^{\geq m}: \{D_{i}\}_{i \in I}(s)=1, \end{array} $$
(6)
$$\begin{array}{@{}rcl@{}} \forall s \in K: \{D_{i}\}_{i \in I}(s) \neq 1 \end{array} $$
(7)

if and only if the pair (L, K)of regular languages is N-inference diagnosable.

3.2 Online computation of local diagnosis decisions and ambiguity levels

For the pair (L, K) of regular languages that is N-inference diagnosable (so that there exists \(m \in \mathbb {N}\) such that F N+1(m) = or H N+1(m) = ), a local diagnoser can compute its diagnosis decision and associate a level of ambiguity as follows: For each sL, the i th local diagnoser D i computes

$$\begin{array}{@{}rcl@{}} {n_{i}^{f}}(M_{i}(s))&:=& \min\{ k \in \mathbb{N} \mid M_{i}(s) \notin M_{i}(H_{k}(m)) \}, \end{array} $$
(8)
$$\begin{array}{@{}rcl@{}} {n_{i}^{h}}(M_{i}(s))&:=& \min\{ k \in \mathbb{N} \mid M_{i}(s) \notin M_{i}(F_{k}(m)) \}. \end{array} $$
(9)

Here \({n_{i}^{f}}(M_{i}(s))\) represents the ambiguity level of a failure decision contemplated by the i th diagnoser following the observation M i (s). Similarly, \({n_{i}^{h}}(M_{i}(s))\) represents the ambiguity level of a nonfailure decision contemplated by the i th diagnoser following the observation M i (s). Since F N+1(m) = and H N+1(m) = imply H N+2(m) = and F N+2(m) = , respectively, both \({n_{i}^{f}}(M_{i}(s))\) and \({n_{i}^{h}}(M_{i}(s))\) are bounded above by N + 2.

For a local diagnoser \(D_{i}:M_{i}(L) \to C \times \mathbb {N}\), its diagnosis decision and ambiguity level following an observation M i (s) ∈ M i (L), i.e.,

$$D_{i}(M_{i}(s)) =(c_{i}(M_{i}(s)), n_{i}(M_{i}(s))), $$

is determined as follows (Kumar and Takai 2009):

$$\begin{array}{@{}rcl@{}} c_{i}(M_{i}(s))&=& \left\{ \begin{array}{ll} 1, & \text{if }{n_{i}^{f}}(M_{i}(s))<{n_{i}^{h}}(M_{i}(s)) \\ 0, & \text{if }{n_{i}^{h}}(M_{i}(s))<{n_{i}^{f}}(M_{i}(s)) \\ \phi, & \text{if }{n_{i}^{f}}(M_{i}(s))={n_{i}^{h}}(M_{i}(s)), \end{array} \right. \end{array} $$
(10)
$$\begin{array}{@{}rcl@{}} n_{i}(M_{i}(s))&=&\min \{{n_{i}^{f}}(M_{i}(s)), {n_{i}^{h}}(M_{i}(s))\}. \end{array} $$
(11)

It was shown in Takai and Kumar (2017) that the decentralized diagnoser {D i } iI : LC for which the local diagnosers are given by Eqs. 811 is N-inferring and satisfies

$$ \forall s \in L \cap (L-K) {\Sigma}^{\geq m}: \{D_{i}\}_{i \in I}(s)=1 $$
(12)

and Eq. 7, i.e., any failure can be correctly detected by the decentralized diagnoser {D i } iI : LC within m steps.

Remark 2

In summary, the decentralized diagnosis scheme for an N-inference diagnosable pair (L, K) of regular languages can be implemented as follows. When the plant executes a trace sL, it is observed as the trace M i (s) at the ith local site. Using Eqs. 8 and 9, the ith local diagnoser computes the values \({n_{i}^{f}}(M_{i}(s))\) and \({n_{i}^{h}}(M_{i}(s))\). When \({n_{i}^{f}}(M_{i}(s))\) (respectively, \({n_{i}^{h}}(M_{i}(s))\)) is smaller, the ith local diagnoser issues a failure (respectively, nonfailure) decision with the ambiguity level \({n_{i}^{f}}(M_{i}(s))\) (respectively, \({n_{i}^{h}}(M_{i}(s))\)), whereas when the two values are the same, the unsure decision with the ambiguity level \({n_{i}^{f}}(M_{i}(s)) = {n_{i}^{h}}(M_{i}(s))\) is issued, as shown in Eqs. 10 and 11. All local decisions are collected at a central decision fusion unit, where, according to Eq. 2, a global decision is always taken to be a winning local decision, i.e., a local decision possessing the minimum ambiguity level.

To compute the diagnosis decision c i (M i (s)) and the ambiguity level n i (M i (s)) using Eqs. 811, we first need to compute the set {(F k (m),H k (m))}0≤kN+1 of language pairs. However in order to do that, we need to know \(m \in \mathbb {N}\) (a delay bound) for which it holds that F N+1(m) = H N+1(m) = . These computations rely on the various constructions and the theoretical results used for verifying N-inference diagnosability, which we summarize in the subsection below.

3.3 Verification of N-inference diagnosability

For simplicity of presentation, we consider the case of two local diagnosers, i.e., I = {1,2}, as in Takai and Kumar (2017). The results continue to hold for an arbitrary number of local diagnosers. We also consider the case of N ≥ 1 since inferencing is not involved in the case of N = 0.

Violation of N-inference diagnosability of (L, K) requires that, for any \(m \in \mathbb {N}\), F N+1(m)≠ and H N+1(m)≠. As shown in the following proposition, which can be proved in the same way as Proposition 1 of Takai and Kumar (2017), the nonemptiness of F k (m) and H k (m) (1 ≤ kN + 1) can be characterized as the existence of certain 2k + 1 traces in L.

Proposition 1

Consider the pair (L, K)of regular languages and any \(m \in \mathbb {N}\) .

  1. 1.

    For any s 0L and any \(k \in \mathbb {N}\) such that 1 ≤ kN + 1, s 0F k (m) if and only if s 0F 0(m)and there exist 2k traces s 10, s 11,…,s 1(k−1), s 20, s 21,…,s 2(k−1)L such that

    • iI,∀i ∈{0,1,…,k − 1}:

      $$s_{ii^{\prime}} \in \left\{ \begin{array}{ll} H_{0}(m), & \text{if }i^{\prime}\text{ is an even number} \\ F_{0}(m), & \text{if }i^{\prime}\text{ is an odd number}, \end{array} \right. $$
    • iI : M i (s 0) = M i (s i0),

    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{2}(s_{1i^{\prime}})=M_{2}(s_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{1}(s_{1i^{\prime}})=M_{1}(s_{1(i^{\prime}+1)}), & \text{if }i^{\prime}~\text{is~an~odd~number}, \end{array} \right. $$
    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{1}(s_{2i^{\prime}})=M_{1}(s_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{2}(s_{2i^{\prime}})=M_{2}(s_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number}. \end{array} \right. $$
  2. 2.

    For any s 0L and any \(k \in \mathbb {N}\) such that 1 ≤ kN + 1, s 0H k (m) if and only if s 0H 0(m) and there exist 2k traces s 10, s 11,…,s 1(k−1), s 20, s 21,…,s 2(k−1)L such that

    • iI,∀i ∈{0,1,…,k − 1}:

      $$s_{ii^{\prime}} \in \left\{ \begin{array}{ll} F_{0}(m), & \text{if }i^{\prime}\text{ is an even number} \\ H_{0}(m), & \text{if }i^{\prime}\text{ is an odd number}, \end{array} \right. $$
    • iI : M i (s 0) = M i (s i0),

    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{2}(s_{1i^{\prime}})=M_{2}(s_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{1}(s_{1i^{\prime}})=M_{1}(s_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number}, \end{array} \right. $$
    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{1}(s_{2i^{\prime}})=M_{1}(s_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{2}(s_{2i^{\prime}})=M_{2}(s_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number}. \end{array} \right. $$

Employing Proposition 1, we first provide a construction to test the nonemptiness of F N+1(m) for any \(m \in \mathbb {N}\). To begin, for any \(m \in \mathbb {N}\) and any k ∈{1,2,…,N + 1}, we build a generator \(T_{Fk_{m}}\) of all traces s 0, s 10, s 11,…,s 1(k−1), s 20, s 21,…,s 2(k−1)L that satisfy the last three conditions of the first part of Proposition 1. For this, in the case of k = N + 1, we define the index set I N of (2N + 3) traces s 0, s 10, s 11,…,s 1N , s 20, s 21,…,s 2N L of Proposition 1 and I F N of among those that are failure traces s 0, s 11, s 13,…,s 1l , s 21, s 23,…,s 2l LK, where

$$l=\left\{ \begin{array}{ll} N-1, & \text{if }N\text{ is an even number}\\ N, & \text{if }N\text{ is an odd number}, \end{array} \right. $$

as follows:

$$\begin{array}{@{}rcl@{}} I_{N}&=&\{0,10,11,\dots,1N,20,21,\dots,2N\},\\ I_{FN}&=&\{0,11,13,\dots,1l,21,23,\dots,2l\}. \end{array} $$

Using the notation I F N , we define a finite automaton

$$T_{Fk_{m}}=(R_{Fk_{m}},{\Sigma}_{Fk},\alpha_{Fk_{m}},r_{Fk_{m},0},R_{Fk_{m},mark}) $$

as follows:

  • The state set \(R_{Fk_{m}}\) is defined as

    $$\begin{array}{@{}rcl@{}} \lefteqn{R_{Fk_{m}}}\\ & & = (Q\times \tilde{Q}_{K_{m}}) \times Q_{10} \times Q_{11} \times {\cdots} \times Q_{1(k-1)} \times Q_{20} \times Q_{21} \times \cdots \times Q_{2(k-1)}, \end{array} $$

    where

    $$Q_{ii^{\prime}}=\left\{ \begin{array}{ll} Q_{K}, & \text{if }i^{\prime}\text{ is an even number} \\ Q \times \tilde{Q}_{K_{m}}, & \text{if}~i^{\prime}~\text{is~an~odd~number} \end{array} \right. $$

    for any iI and any i ∈{0,1,…,k − 1}.

  • The initial state \(r_{Fk_{m},0} \in R_{Fk_{m}}\) is given as

    $$r_{Fk_{m},0}=((q_{0},q_{K,0}),q_{10,0}, q_{11,0}, \dots, q_{1(k-1),0}, q_{20,0}, q_{21,0}, \dots, q_{2(k-1),0}), $$

    where

    $$q_{ii^{\prime},0}=\left\{ \begin{array}{ll} q_{K,0}, & \text{if }i^{\prime}\text{ is an even number} \\ (q_{0},q_{K,0}), & \text{if }i^{\prime}\text{ is an odd number} \end{array} \right. $$

    for any iI and any i ∈{0,1,…,k − 1}.

  • The set \(R_{Fk_{m},mark}\) of marked states is defined as

    $$\begin{array}{@{}rcl@{}} R_{Fk_{m},mark}&=&\{r_{Fk_{m}} \in R_{Fk_{m}} \mid [r_{Fk_{m}}(0) \in Q \times \{d_{m}\}] \\ & & \quad \wedge [\forall i \in I, \forall i^{\prime} \in \{0,1, \dots, k-1\}:\\ & & \qquad ii^{\prime} \in I_{FN} \Rightarrow r_{Fk_{m}}(ii^{\prime}) \in Q \times \{d_{m}\}]\}, \end{array} $$

    where, for each \(r_{Fk_{m}}=((q,\tilde {q}_{K_{m}}),q_{10},q_{11}, \dots , q_{1(k-1)}, q_{20}, q_{21}, \dots , q_{2(k-1)}) \in R_{Fk_{m}}\) , we let \(r_{Fk_{m}}(0)=(q,\tilde {q}_{K_{m}})\) and \(r_{Fk_{m}}(ii^{\prime })=q_{ii^{\prime }}\) for each iI and each i ∈{0,1,…,k − 1}.

  • The event set Σ F k is defined as

    $${\Sigma}_{Fk} = {\underbrace{({\Sigma} \cup \{\varepsilon\}) \times ({\Sigma} \cup \{\varepsilon\}) \times {\cdots} \times ({\Sigma} \cup \{\varepsilon\})}_{(2k+1)\text{ times}}} -\{(\varepsilon,\varepsilon,\dots,\varepsilon)\}. $$
  • For each

    $$r_{Fk_{m}}=((q,\tilde{q}_{K_{m}}),q_{10},q_{11}, \dots, q_{1(k-1)}, q_{20}, q_{21}, \dots, q_{2(k-1)}) \in R_{Fk_{m}} $$

    and each

    $$\sigma_{Fk}=(\sigma,\sigma_{10},\sigma_{11}, \dots, \sigma_{1(k-1)}, \sigma_{20}, \sigma_{21}, \dots, \sigma_{2(k-1)}) \in {\Sigma}_{Fk}, $$

    \(\alpha _{Fk_{m}}(r_{Fk_{m}},\sigma _{Fk})!\) if the following five conditions are satisfied:

    • \(\sigma \neq \varepsilon \Rightarrow \xi _{m}((q,\tilde {q}_{K_{m}}),\sigma )!\),

    • iI,∀i ∈{0,1,…,k − 1} :

      $$\sigma_{ii^{\prime}}\neq \varepsilon \Rightarrow \left\{ \begin{array}{ll} \delta_{K}(q_{ii^{\prime}},\sigma_{ii^{\prime}})!, & \text{if }i^{\prime}\text{ is an even number} \\ \xi_{m}(q_{ii^{\prime}},\sigma_{ii^{\prime}})!, & \text{if }i^{\prime}\text{ is an odd number,} \end{array} \right. $$
    • iI : M i (σ) = M i (σ i0),

    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{2}(\sigma_{1i^{\prime}})=M_{2}(\sigma_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{1}(\sigma_{1i^{\prime}})=M_{1}(\sigma_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number,} \end{array} \right. $$
    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{1}(\sigma_{2i^{\prime}})=M_{1}(\sigma_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{2}(\sigma_{2i^{\prime}})=M_{2}(\sigma_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number.} \end{array} \right. $$

    If \(\alpha _{Fk_{m}}(r_{Fk_{m}},\sigma _{Fk})!\), then

    $$\alpha_{Fk_{m}}(r_{Fk_{m}},\sigma_{Fk})= ((q^{\prime},\tilde{q}_{K_{m}}^{\prime}),q_{10}^{\prime},q_{11}^{\prime}, \dots, q_{1(k-1)}^{\prime}, q_{20}^{\prime}, q_{21}^{\prime}, \dots, q_{2(k-1)}^{\prime}), $$

    where

    $$(q^{\prime},\tilde{q}_{K_{m}}^{\prime})=\left\{\begin{array}{ll} \xi_{m}((q,\tilde{q}_{K_{m}}),\sigma), & \text{if }\sigma \neq \varepsilon\\ (q,\tilde{q}_{K_{m}}), & \text{otherwise} \end{array} \right. $$

    and

    $$q_{ii^{\prime}}^{\prime}=\left\{\begin{array}{ll} \delta_{K}(q_{ii^{\prime}},\sigma_{ii^{\prime}}), & \text{if }\sigma_{ii^{\prime}} \neq \varepsilon \wedge [i^{\prime}\text{ is an even number}] \\ \xi_{m}(q_{ii^{\prime}},\sigma_{ii^{\prime}}), & \text{if }\sigma_{ii^{\prime}} \neq \varepsilon \wedge [i^{\prime}\text{ is an odd number}] \\ q_{ii^{\prime}}, & \text{otherwise}. \end{array} \right. $$

For each σ F k = (σ, σ 10, σ 11,…,σ 1(k−1), σ 20, σ 21,…,σ 2(k−1)) in Σ F k , we let σ F k (0) = σ and \(\sigma _{Fk}(ii^{\prime })=\sigma _{ii^{\prime }}\) for each iI and each i ∈{0,1,…,k − 1}. In addition, for a nonempty trace \(s_{Fk}=\sigma _{Fk,1}\sigma _{Fk,2}{\cdots } \sigma _{Fk,l} \in {\Sigma }_{Fk}^{*}-\{\varepsilon \}\), we let s F k (0) = σ F k,1(0)σ F k,2(0)⋯σ F k, l (0) and s F k (i i ) = σ F k,1(i i )σ F k,2(i i )⋯σ F k, l (i i ) for each iI and each i ∈{0,1,…,k − 1}. For the empty trace \(\varepsilon \in {\Sigma }_{Fk}^{*}\), we let ε(0) = ε and ε(i i ) = ε for each iI and each i ∈{0,1,…,k − 1}.

From the construction of \(T_{Fk_{m}}\), the following proposition is obtained in the same way as Proposition 2 of Takai and Kumar (2017).

Proposition 2

For any \(m \in \mathcal {N}\) and any k ∈{1,2,…,N + 1}, consider any (2k + 1)traces s 0, s 10, s 11,…,s 1(k−1), s 20, s 21,…,s 2(k−1)L such that

$$\forall i \in I, \forall i^{\prime} \in \{0,1,\dots,k-1\}: ii^{\prime} \in I_{N}-I_{FN} \Rightarrow s_{ii^{\prime}} \in K. $$

Then these (2k + 1)traces satisfy the last three of the four conditions of the first part of Proposition 1 if and only if there exists \(s_{Fk} \in L(T_{Fk_{m}})\) such that s F k (0) = s 0 and \(s_{Fk}(ii^{\prime })=s_{ii^{\prime }}\) for any iI and any i ∈{0,1,…,k − 1}.

For the case of m = 0, we drop the subscript m in \(T_{Fk_{m}}\) for simplicity of notation, i.e., \(T_{Fk}:=T_{Fk_{0}}\). It then follows from the definition of the state transition function α F(N+1) of T F(N+1) that T F(N+1) generates all (2N + 3) traces that satisfy the last three of the four conditions of the first part of Proposition 1.

To establish non-N-inference diagnosability, we must check F N+1(m)≠ for any \(m \in \mathbb {N}\), which represents the number of steps of post-fault executions. To allow an arbitrary number of post-fault executions (equivalently, an arbitrary value of m), the post-fault extensions in T F(N+1) must visit cycles leading to an arbitrary growth in the number m of post-fault executions. Note that a single cycle may not elongate all (2l + 1) failure traces \(s_{i_{FN}}\) (i F N = 0,11,13,…,1l,21,23,…,2l) because some of these trace elements may witness only ε-transitions along that cycle. Hence a multitude of cycles may need to be executed sequentially to elongate all the (2l + 1) failure trace elements. To keep track of which cycles elongate which of the trace elements (by executing at least one non- ε-transition), we collapse all the maximal strongly connected components (max-SCCs) of T F(N+1) into individual nodes, labeling those nodes with the trace elements that witness at least one non- ε-transition in the corresponding max-SCCs, and build a nondeterministic acyclic automaton over the node set of max-SCCs as follows (Takai and Kumar 2017):

$$\mathcal{T}_{F(N+1)}=(V_{F(N+1)},{\Sigma}_{F(N+1)},\beta_{F(N+1)}, V_{F(N+1),0},V_{F(N+1),mark}), $$

where

  • The state set V F(N+1) is defined as

    $$V_{F(N+1)}=\{V_{F(N+1),0},V_{F(N+1),1},{\dots} ,V_{F(N+1),|V_{F(N+1)}|-1}\}, $$

    where, for any k ∈{0,1,…,|V F(N+1)|− 1}, V F(N+1),k is a max-SCC of T F(N+1). Without loss of generality, we assume that r F(N+1),0V F(N+1),0.

  • The set V F(N+1),m a r k of marked states is defined as

    $$V_{F(N+1),mark}=\{ V_{F(N+1),k} \in V_{F(N+1)} \mid V_{F(N+1),k} \cap R_{F(N+1),mark} \neq \emptyset\}. $$
  • The nondeterministic state transition function \(\beta _{F(N+1)}:V_{F(N+1)} \times {\Sigma }_{F(N+1)} \rightarrow 2^{V_{F(N+1)}}\) is defined as

    $$\begin{array}{@{}rcl@{}} \lefteqn{\beta_{F(N+1)}(V_{F(N+1),k},\sigma_{F(N+1)})} \\ & & = \{ V_{F(N+1),k^{\prime}} \in V_{F(N+1)} \mid k \neq k^{\prime} \\ & & \quad \quad \wedge [\exists r_{F(N+1)} \in V_{F(N+1),k}, \exists r_{F(N+1)}^{\prime} \in V_{F(N+1),k^{\prime}}:\\ & & \quad \quad \quad \alpha_{F(N+1)}(r_{F(N+1)},\sigma_{F(N+1)})=r_{F(N+1)}^{\prime}] \} \end{array} $$

    for each V F(N+1),k V F(N+1) and each σ F(N+1) ∈Σ F(N+1).

A labeling function \(J_{FN}:V_{F(N+1)} \rightarrow 2^{I_{FN}}\) is defined as

$$\begin{array}{@{}rcl@{}} \lefteqn{J_{FN}(V_{F(N+1),k})}\\ & &= \{i_{FN} \in I_{FN} \mid [\exists r_{F(N+1)} \in V_{F(N+1),k}: r_{F(N+1)}(i_{FN}) \in Q \times \{d\}] \\ & & \quad \quad \wedge [\exists r_{F(N+1)},r_{F(N+1)}^{\prime} \in V_{F(N+1),k}, \exists \sigma_{F(N+1)} \in {\Sigma}_{F(N+1)}: \\ & & \quad \quad \quad \alpha_{F(N+1)}(r_{F(N+1)},\sigma_{F(N+1)})=r_{F(N+1)}^{\prime} \wedge \sigma_{F(N+1)}(i_{FN}) \neq \varepsilon] \} \end{array} $$

for each V F(N+1),k V F(N+1). Then, by the construction, i F N J F N (V F(N+1),k ) means that \(s_{i_{FN}}\) can be extended to an arbitrarily long failure trace in a max-SCC V F(N+1),k . Therefore, we can test whether F N+1(m)≠ for any \(m \in \mathbb {N}\) as shown in the following proposition.

Proposition 3

(Takai and Kumar 2017 Proposition 3) Consider the pair (L, K)of regular languages. Then, F N+1(m) ≠ for any \(m \in \mathbb {N}\) if and only if there exists a path \(V_{F(N+1),0}=V_{F(N+1),k_{0}} \xrightarrow {\sigma _{F(N+1)}^{(k_{0})}} V_{F(N+1),k_{1}} \xrightarrow {\sigma _{F(N+1)}^{(k_{1})}} \cdots \xrightarrow {\sigma _{F(N+1)}^{(k_{h-1})}} V_{F(N+1),k_{h}} \in V_{F(N+1),mark}\) in the acyclic automaton \(\mathcal {T}_{F(N+1)}\) such that

$$ \bigcup\limits_{k \in \{k_{0},k_{1},\dots,k_{h}\}} J_{FN}(V_{F(N+1),k})=I_{FN}. $$
(13)

Dually, to check the nonemptiness of H N+1(m) for any \(m \in \mathbb {N}\), we construct T H(N+1) and \(\mathcal {T}_{H(N+1)}\) that are dual to T F(N+1) and \(\mathcal {T}_{F(N+1)}\), respectively. Among the (2N + 3) traces of the second part of Proposition 1 in the case of k = N + 1, s 10, s 12,…,s 1l , s 20, s 22,…,s 2l LK are failure traces, where

$$l=\left\{ \begin{array}{ll} N, & \text{if }N\text{ is an even number}\\ N-1, & \text{if }N\text{ is an odd number}, \end{array} \right. $$

and their index set is denoted by

$$I_{HN}=\{10,12,\dots,1l,20,22,\dots,2l\}. $$

For any \(m \in \mathbb {N}\) and any k ∈{1,2,…,N + 1}, we define a finite automaton

$$T_{Hk_{m}}=(R_{Hk_{m}},{\Sigma}_{Hk},\alpha_{Hk_{m}},r_{Hk_{m},0},R_{Hk_{m},mark}) $$

as follows:

  • The state set \(R_{Hk_{m}}\) is defined as

    $$\begin{array}{@{}rcl@{}} \lefteqn{R_{Hk_{m}}}\\ & & = Q_{K} \times Q_{10} \times Q_{11} \times {\cdots} \times Q_{1(k-1)} \times Q_{20} \times Q_{21} \times \cdots \times Q_{2(k-1)}, \end{array} $$

    where

    $$Q_{ii^{\prime}}=\left\{ \begin{array}{ll} Q \times \tilde{Q}_{K_{m}}, & \text{if }i^{\prime}\text{ is an even number} \\ Q_{K}, & \text{if }i^{\prime}\text{ is an odd number} \end{array} \right. $$

    for any iI and any i ∈{0,1,…,k − 1}.

  • The initial state \(r_{Hk_{m},0} \in R_{Hk_{m}}\) is given as

    $$r_{Hk_{m},0}=(q_{K,0},q_{10,0}, q_{11,0}, \dots, q_{1(k-1),0}, q_{20,0}, q_{21,0}, \dots, q_{2(k-1),0}), $$

    where

    $$q_{ii^{\prime},0}=\left\{ \begin{array}{ll} (q_{0},q_{K,0}), & \text{if }i^{\prime}\text{ is an even number} \\ q_{K,0}, & \text{if }i^{\prime}\text{ is an odd number} \end{array} \right. $$

    for any iI and any i ∈{0,1,…,k − 1}.

  • The set \(R_{Hk_{m},mark}\) of marked states is defined as

    $$\begin{array}{@{}rcl@{}} R_{Hk_{m},mark}&=&\{r_{Hk_{m}} \in R_{Hk_{m}} \mid \forall i \in I, \forall i^{\prime} \in \{0,1, \dots, k-1\}:\\ & & \qquad ii^{\prime} \in I_{HN} \Rightarrow r_{Hk_{m}}(ii^{\prime}) \in Q \times \{d_{m}\}\}, \end{array} $$

    where, for each \(r_{Hk_{m}} \in R_{Hk_{m}}\), \(r_{Hk_{m}}(0)\) and \(r_{Hk_{m}}(ii^{\prime })\) (iI, i ∈{0,1,…,k − 1}) are defined in the same way as \(r_{Fk_{m}}(0)\) and \(r_{Fk_{m}}(ii^{\prime })\), respectively, where \(r_{Fk_{m}} \in R_{Fk_{m}}\).

  • The event set Σ H k is defined as Σ H k F k .

  • For each

    $$r_{Hk_{m}}=(q_{K},q_{10},q_{11}, \dots, q_{1(k-1)}, q_{20}, q_{21}, \dots, q_{2(k-1)}) \in R_{Hk_{m}} $$

    and each

    $$\sigma_{Hk}=(\sigma,\sigma_{10},\sigma_{11}, \dots, \sigma_{1(k-1)}, \sigma_{20}, \sigma_{21}, \dots, \sigma_{2(k-1)}) \in {\Sigma}_{Hk}, $$

    \(\alpha _{Hk_{m}}(r_{Hk_{m}},\sigma _{Hk})!\) if the following five conditions are satisfied:

    • σεδ K (q K , σ)!,

    • iI,∀i ∈{0,1,…,k − 1} :

      $$\sigma_{ii^{\prime}}\neq \varepsilon \Rightarrow \left\{ \begin{array}{ll} \xi_{m}(q_{ii^{\prime}},\sigma_{ii^{\prime}})!, & \text{if }i^{\prime}\text{ is an even number} \\ \delta_{K}(q_{ii^{\prime}},\sigma_{ii^{\prime}})!, & \text{if }i^{\prime}\text{ is an odd number,} \end{array} \right. $$
    • iI : M i (σ) = M i (σ i0),

    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{2}(\sigma_{1i^{\prime}})=M_{2}(\sigma_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{1}(\sigma_{1i^{\prime}})=M_{1}(\sigma_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number,} \end{array} \right. $$
    • k ≥ 2 ⇒∀i ∈{0,1,…,k − 2}:

      $$\left\{ \begin{array}{ll} M_{1}(\sigma_{2i^{\prime}})=M_{1}(\sigma_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{2}(\sigma_{2i^{\prime}})=M_{2}(\sigma_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number.} \end{array} \right. $$

    If \(\alpha _{Hk_{m}}(r_{Hk_{m}},\sigma _{Hk})!\), then

    $$\alpha_{Hk_{m}}(r_{Hk_{m}},\sigma_{Hk})= (q_{K}^{\prime},q_{10}^{\prime},q_{11}^{\prime}, \dots, q_{1(k-1)}^{\prime},q_{20}^{\prime}, q_{21}^{\prime}, \dots, q_{2(k-1)}^{\prime}), $$

    where

    $$q_{K}^{\prime}=\left\{\begin{array}{ll}\delta_{K}(q_{k},\sigma), & \text{if }\sigma \neq \varepsilon\\ q_{K}, & \text{otherwise} \end{array} \right. $$

    and

    $$q_{ii^{\prime}}^{\prime}=\left\{\begin{array}{ll} \xi_{m}(q_{ii^{\prime}},\sigma_{ii^{\prime}}), & \text{if}\sigma_{ii^{\prime}} \neq \varepsilon \wedge [i^{\prime}\text{ is an even number}] \\ \delta_{K}(q_{ii^{\prime}},\sigma_{ii^{\prime}}), & \text{if }\sigma_{ii^{\prime}} \neq \varepsilon \wedge [i^{\prime}\text{ is an odd number}] \\ q_{ii^{\prime}}, & \text{otherwise}. \end{array} \right. $$

For each σ H k ∈Σ H k and each \(s_{Hk} \in {\Sigma }_{Hk}^{*}\), σ H k (0), s H k (0), σ H k (i i ), and s H k (i i ) (iI, i ∈{1,2,…,k − 1}) are defined in the same way as σ F k (0), s F k (0), σ F k (i i ), and s F k (i i ), respectively, where σ F k ∈Σ F k and \(s_{Fk} \in {\Sigma }_{Fk}^{*}\).

The following proposition can be obtained in a similar way to Proposition 2.

Proposition 4

For any \(m \in \mathcal {N}\) and any k ∈{1,2,…,N + 1}, consider any (2k + 1)traces s, s 10, s 11,…,s 1(k−1), s 20, s 21,…,s 2(k−1)L such that s 0K and

$$\forall i \in I, \forall i^{\prime} \in \{0,1,\dots,k-1\}: ii^{\prime} \in I_{N}-I_{HN} \Rightarrow s_{ii^{\prime}} \in K. $$

Then these (2k + 1)tracessatisfy the last three of the four conditions of the second part of Proposition 1 if and only ifthere exists \(s_{Hk} \in L(T_{Hk_{m}})\)such that s H k (0) = s and \(s_{Hk}(ii^{\prime })=s_{ii^{\prime }}\)forany iI andany i ∈{0,1,…,k − 1}.

For the case of m = 0 and k = N + 1, we use the notation T H(N+1), dropping the subscript m = 0 for simplicity, and as with T F(N+1) versus \(\mathcal {T}_{F(N+1)}\), using T H(N+1), we construct a nondeterministic acyclic automaton

$$\mathcal{T}_{H(N+1)}=(V_{H(N+1)},{\Sigma}_{H(N+1)},\beta_{H(N+1)} ,V_{H(N+1),0},V_{H(N+1),mark}) $$

over the set of max-SCCs of T H(N+1) as follows (Takai and Kumar 2017):

  • The state set V H(N+1) is defined as

    $$V_{H(N+1)}=\{V_{H(N+1),0},V_{H(N+1),1},{\dots} ,V_{H(N+1),|V_{H(N+1)}|-1}\}, $$

    where, for any k ∈{0,1,…,|V H(N+1)|− 1}, V H(N+1),k is a max-SCC of T H(N+1). Without loss of generality, we assume that r H(N+1),0V H(N+1),0.

  • The set V H(N+1),m a r k of marked states is defined as

    $$V_{H(N+1),mark}=\{ V_{H(N+1),k} \in V_{H(N+1)} \mid V_{H(N+1),k} \cap R_{H(N+1),mark} \neq \emptyset\}. $$
  • The nondeterministic state transition function \(\beta _{H(N+1)}:V_{H(N+1)} \times {\Sigma }_{H(N+1)} \rightarrow 2^{V_{H(N+1)}}\) is defined as

    $$\begin{array}{@{}rcl@{}} \lefteqn{\beta_{H(N+1)}(V_{H(N+1),k},\sigma_{H(N+1)})} \\ & & = \{ V_{H(N+1),k^{\prime}} \in V_{H(N+1)} \mid k \neq k^{\prime} \\ & & \quad \quad \wedge [\exists r_{H(N+1)} \in V_{H(N+1),k}, \exists r_{H(N+1)}^{\prime} \in V_{H(N+1),k^{\prime}}: \\ & & \quad \quad \quad \alpha_{H(N+1)}(r_{H(N+1)},\sigma_{H(N+1)}) =r_{H(N+1)}^{\prime}] \} \end{array} $$

    for each V H(N+1),k V H(N+1) and each σ H(N+1) ∈Σ H(N+1).

A labeling function \(J_{HN}:V_{H(N+1)} \rightarrow 2^{I_{HN}}\) is defined as

$$\begin{array}{@{}rcl@{}} \lefteqn{J_{HN}(V_{H(N+1),k})} \\ & & = \{i_{HN} \in I_{HN} \mid [\exists r_{H(N+1)} \in V_{H(N+1),k}: r_{H(N+1)}(i_{HN}) \in Q \times \{d\}] \\ & & \qquad \quad \wedge [\exists r_{H(N+1)},r_{H(N+1)}^{\prime} \in V_{H(N+1),k}, \exists \sigma_{H(N+1)} \in {\Sigma}_{H(N+1)}:\\ & & \qquad \quad \quad \alpha_{H(N+1)}(r_{H(N+1)},\sigma_{H(N+1)})=r_{H(N+1)}^{\prime} \wedge \sigma_{H(N+1)}(i_{HN}) \neq \varepsilon] \} \end{array} $$

for each V H(N+1),k V H(N+1).

Similar to Proposition 3, we have the following result.

Proposition 5

(Takai and Kumar 2017 Proposition 5) Consider the pair (L, K)of regular languages. Then, H N+1(m)≠ for any \(m \in \mathbb {N}\) if and only if there exists a path \(V_{H(N+1),0}=V_{H(N+1),k_{0}} \xrightarrow {\sigma _{H(N+1)}^{(k_{0})}} V_{H(N+1),k_{1}} \xrightarrow {\sigma _{H(N+1)}^{(k_{1})}} \cdots \xrightarrow {\sigma _{H(N+1)}^{(k_{h-1})}} V_{H(N+1),k_{h}} \in V_{H(N+1),mark}\) in the acyclic automaton \(\mathcal {T}_{H(N+1)}\) such that

$$ \bigcup_{k \in \{k_{0},k_{1},\dots,k_{h}\}} J_{HN}(V_{H(N+1),k})=I_{HN}. $$
(14)

Then the following theorem is obtained, which can be used to verify N-inference diagnosability.

Theorem 2

(Takai and Kumar 2017 Theorem 8) The pair (L, K)of regular languages is not N-inference diagnosable if and only if

  • there exists a path \(V_{F(N+1),0}=V_{F(N+1),k_{0}} \xrightarrow {\sigma _{F(N+1)}^{(k_{0})}} V_{F(N+1),k_{1}} \xrightarrow {\sigma _{F(N+1)}^{(k_{1})}} \cdots \xrightarrow {\sigma _{F(N+1)}^{(k_{h-1})}} V_{F(N+1),k_{h}} \in V_{F(N+1),mark}\) in the acyclic automaton \(\mathcal {T}_{F(N+1)}\) that satisfies(13), and

  • there exists a path \(V_{H(N+1),0}=V_{H(N+1),k_{0}} \xrightarrow {\sigma _{H(N+1)}^{(k_{0})}} V_{H(N+1),k_{1}} \xrightarrow {\sigma _{H(N+1)}^{(k_{1})}} \cdots \xrightarrow {\sigma _{H(N+1)}^{(k_{h-1})}} V_{H(N+1),k_{h}} \in V_{H(N+1),mark}\) in the acyclic automaton \(\mathcal {T}_{H(N+1)}\) that satisfies(14).

Remark 3

Two different finite automata T F(N+1) and T H(N+1) are used above to test whether F N+1(m)≠ and H N+1(m)≠, respectively, for any \(m \in \mathbb {N}\). It is possible to construct a single more general automaton to do the same, as follows, but with a higher complexity. To generate a nonfailure trace sK in T F(N+1) and T H(N+1), we used the generator G K of the nonfailure specification language KL. Instead of G K , the synchronous product \(G \parallel \tilde {G}_{K}\) can be used by noting that, for any sL, sK if and only if ξ((q 0, q K,0),s) ∈ Q × Q K , i.e., the second element of ξ((q 0, q K,0),s) is not the dump state d. With this observation, we can define the following finite automaton:

$$T_{N+1}=(R_{N+1},{\Sigma}_{N+1},\alpha_{N+1},r_{N+1,0},R_{N+1}), $$

whose various elements are defined as follows:

  • The state set R N+1 is defined as

    $$R_{N+1} = {\underbrace{(Q \times \tilde{Q}_{K}) \times (Q \times \tilde{Q}_{K}) \times \cdots \times (Q \times \tilde{Q}_{K})}_{(2N+3)\text{ times}}}. $$
  • The initial state r N+1,0R N+1 is given as

    $$r_{N+1,0}=((q_{0},q_{K,0}),(q_{0},q_{K,0}), \dots, (q_{0},q_{K,0})). $$
  • The event set Σ N+1 is defined as

    $${\Sigma}_{N+1} = {\underbrace{({\Sigma} \cup \{\varepsilon\}) \times ({\Sigma} \cup \{\varepsilon\}) \times {\cdots} \times ({\Sigma} \cup \{\varepsilon\})}_{(2N+3)\text{ times}}} -\{(\varepsilon,\varepsilon,\dots,\varepsilon)\}. $$
  • For each

    $$r_{N+1}=((q,\tilde{q}_{K}),q_{10},q_{11}, \dots, q_{1N}, q_{20}, q_{21}, \dots, q_{2N}) \in R_{N+1} $$

    and each

    $$\sigma_{N+1}=(\sigma,\sigma_{10},\sigma_{11}, \dots, \sigma_{1N}, \sigma_{20}, \sigma_{21}, \dots, \sigma_{2N}) \in {\Sigma}_{N+1}, $$

    α N+1(r N+1, σ N+1)! if the following five conditions are satisfied:

    • \(\sigma \neq \varepsilon \Rightarrow \xi ((q,\tilde {q}_{K}),\sigma )!\),

    • \(\forall i \in I,\forall i^{\prime } \in \{0,1,\dots ,k-1\}: \sigma _{ii^{\prime }}\neq \varepsilon \Rightarrow \xi (q_{ii^{\prime }},\sigma _{ii^{\prime }})!\),

    • iI : M i (σ) = M i (σ i0),

    • i ∈{0,1,…,N − 1}:

      $$\left\{ \begin{array}{ll} M_{2}(\sigma_{1i^{\prime}})=M_{2}(\sigma_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{1}(\sigma_{1i^{\prime}})=M_{1}(\sigma_{1(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number,} \end{array} \right. $$
    • i ∈{0,1,…,N − 1}:

      $$\left\{ \begin{array}{ll} M_{1}(\sigma_{2i^{\prime}})=M_{1}(\sigma_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an even number} \\ M_{2}(\sigma_{2i^{\prime}})=M_{2}(\sigma_{2(i^{\prime}+1)}), & \text{if }i^{\prime}\text{ is an odd number.} \end{array} \right. $$

    If α N+1(r N+1, σ N+1)!, then

    $$\alpha_{N+1}(r_{N+1},\sigma_{N+1})= ((q^{\prime},\tilde{q}_{K}^{\prime}),q_{10}^{\prime},q_{11}^{\prime}, \dots, q_{1N}^{\prime}, q_{20}^{\prime}, q_{21}^{\prime}, \dots, q_{2N}^{\prime}), $$

    where

    $$(q^{\prime},\tilde{q}_{K}^{\prime})=\left\{\begin{array}{ll} \xi((q,\tilde{q}_{K}),\sigma), & \text{if }\sigma \neq \varepsilon\\ (q,\tilde{q}_{K}), & \text{otherwise} \end{array} \right. $$

    and

    $$q_{ii^{\prime}}^{\prime}=\left\{\begin{array}{ll} \xi(q_{ii^{\prime}},\sigma_{ii^{\prime}}), & \text{if }\sigma_{ii^{\prime}} \neq \varepsilon \\ q_{ii^{\prime}}, & \text{otherwise}. \end{array} \right. $$

Then both the conditions F m+1(m)≠ and H m+1(m)≠ for any \(m \in \mathbb {N}\) can be described using the single automaton T N+1. However, since \(|Q_{K}| \leq |Q \times \tilde {Q}_{K}| =|Q| \times (|Q_{K}|+1)\), we have |R F(N+1)|≤|R N+1| and |R H(N+1)|≤|R N+1|, i.e., T N+1 will have a larger state space than T F(N+1) and T H(N+1).

4 Computation of delay bound

As in Section 3.3, we assume that I = {1,2} and N ≥ 1. For the pair (L, K) of regular languages that is N-inference diagnosable (so there exists \(m \in \mathbb {N}\) such that F N+1(m) = or H N+1(m) = ), let \(m_{N}^{*}\) be a minimum integer m:

$$m_{N}^{*}=\min \{m\in \mathbb{N} \mid F_{N+1}(m) = \emptyset \vee H_{N+1}(m) = \emptyset\}. $$

For any \(m \geq m_{N}^{*}\), the decentralized diagnoser {D i } iI : LC for which the local diagnosers are given by Eqs. 811 can detect any failure within m steps. Hence, \(m_{N}^{*}\) can be considered as the delay bound. Let \(\mathbb {N}_{FN}\) and \(\mathbb {N}_{HN}\) be the sets of delays under which (L, K) is “N-inference disjunctive diagnosable” and “N-inference conjunctive diagnosable”, respectively, i.e., \(\mathbb {N}_{FN}=\{m\in \mathbb {N} \mid F_{N+1}(m) = \emptyset \}\) and \(\mathbb {N}_{HN}=\{m\in \mathbb {N} \mid H_{N+1}(m) = \emptyset \}\). Then we can define the minimum delays for the disjunctive and conjunctive cases, respectively, as

$$\begin{array}{@{}rcl@{}} m_{FN}^{*}&=& \left\{ \begin{array}{ll} \min \mathbb{N}_{FN}, & \text{if }\mathbb{N}_{FN} \neq \emptyset\\ \text{undefined}, & \text{otherwise}, \end{array} \right.\\ m_{HN}^{*}&=& \left\{ \begin{array}{ll} \min \mathbb{N}_{HN}, & \text{if }\mathbb{N}_{HN} \neq \emptyset\\ \text{undefined}, & \text{otherwise}, \end{array} \right. \end{array} $$

while the overall minimum delay as

$$m_{N}^{*}=\left\{ \begin{array}{ll} \min \{m_{FN}^{*},m_{HN}^{*}\}, & \text{if }\mathbb{N}_{FN} \neq \emptyset \wedge \mathbb{N}_{HN} \neq \emptyset\\ m_{FN}^{*}, & \text{if }\mathbb{N}_{FN} \neq \emptyset \wedge \mathbb{N}_{HN} =\emptyset\\ m_{HN}^{*}, & \text{if }\mathbb{N}_{FN} = \emptyset \wedge \mathbb{N}_{HN} \neq \emptyset. \end{array} \right. $$

To compute \(m_{N}^{*}\), we first develop methods for computing \(m_{FN}^{*}\) and \(m_{HN}^{*}\) when \(\mathbb {N}_{FN} \neq \emptyset \) and \(\mathbb {N}_{HN} \neq \emptyset \), respectively.

Note that \(m_{FN}^{*}\) is the minimum number of post-fault events the system must execute for a fault to be detected. We use the acyclic automaton \(\mathcal {T}_{F(N+1)}\) for computing \(m_{FN}^{*}\) when \(\mathbb {N}_{FN} \neq \emptyset \). Under this condition, we have \(F_{N+1}(m_{FN}^{*})=\emptyset \). Then from the inverse of Proposition 3, it holds for any path in the set \(\mathcal {P}_{F(N+1)}\) of all paths from the initial state to marked states of the form \(V_{F(N+1),0}=V_{F(N+1),k_{0}} \xrightarrow {\sigma _{F(N+1)}^{(k_{0})}} V_{F(N+1),k_{1}} \xrightarrow {\sigma _{F(N+1)}^{(k_{1})}} {\cdots } \xrightarrow {\sigma _{F(N+1)}^{(k_{h-1})}} V_{F(N+1),k_{h}} \in V_{F(N+1),mark}\), that \(\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k}) \neq I_{FN}\) . Then for a corresponding index \(i_{FN} \in I_{FN}-\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\), it holds that only the inter-max-SCC transitions in T F(N+1) (that are also the transitions of \(\mathcal {T}_{F(N+1)}\)) witness a post-fault event, whereas the intra-max-SCC transitions in T F(N+1) (max-SCCs of T F(N+1) are states in \(\mathcal {T}_{F(N+1)}\)) are simply ε-transitions (otherwise that index would already be included in \(\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\) by the definition of J F N ). Then for each such index, each transition along a path \(p_{F(N+1)} \in \mathcal {P}_{F(N+1)}\) may contribute to a post-fault event count depending on whether or not that transition is a non- ε-transition for that index. Accordingly, for each path \(p_{F(N+1)}:V_{F(N+1),0}=V_{F(N+1),k_{0}} \xrightarrow {\sigma _{F(N+1)}^{(k_{0})}} V_{F(N+1),k_{1}} \xrightarrow {\sigma _{F(N+1)}^{(k_{1})}} {\cdots } \xrightarrow {\sigma _{F(N+1)}^{(k_{h-1})}} V_{F(N+1),k_{h}} \in V_{F(N+1),mark}\) in \(\mathcal {P}_{F(N+1)}\) and each index \(i_{FN} \in I_{FN}-\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\), we define an index-specific post-fault event count of each transition of the path as follows: For each j ∈{1,2,…,h},

$$\begin{array}{@{}rcl@{}} \lefteqn{w_{FN,i_{FN}} (V_{F(N+1),k_{j-1}},\sigma_{F(N+1)}^{(k_{j-1})},V_{F(N+1),k_{j}})}\\ & & :=\left\{ \begin{array}{ll} 1, & \text{if }[\sigma_{F(N+1)}^{(k_{j-1})}(i_{FN})\neq \varepsilon]\\ & \quad \wedge [\exists r_{F(N+1)} \in V_{F(N+1),k_{j-1}}, \exists r_{F(N+1)}^{\prime} \in V_{F(N+1),k_{j}}:\\ & \qquad \alpha_{F(N+1)}(r_{F(N+1)},\sigma_{F(N+1)}^{(k_{j-1})}) =r_{F(N+1)}^{\prime} \wedge r_{F(N+1)}^{\prime}(i_{FN}) \in Q \times \{d\}] \\ 0, & \text{otherwise}. \end{array} \right. \end{array} $$

Using the index-specific post-fault event count of transitions, we define an index-specific post-fault event count for the path p F(N+1) by simply adding the index-specific counts along the transitions of p F(N+1):

$$w_{FN,i_{FN}}(p_{F(N+1)}) :=\sum\limits_{j=1}^{h} w_{FN,i_{FN}}(V_{F(N+1),k_{j-1}},\sigma_{F(N+1)}^{(k_{j-1})},V_{F(N+1),k_{j}}). $$

Next, a minimum among all indices in \(I_{FN}-\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\) is taken to determine the post-fault event count across all such indices for the path p F(N+1):

$$w_{FN}(p_{F(N+1)}) := \min\limits_{i_{FN} \in I_{FN}-\cup_{k \in \{k_{0},\dots,k_{h}\}} J_{FN}(V_{F(N+1),k})} w_{FN,i_{FN}}(p_{F(N+1)}). $$

Finally a maximum of the counts along all paths in \(\mathcal {P}_{F(N+1)}\) is taken to obtain the required delay bound of diagnosis:

$$w_{FN}:=\left\{ \begin{array}{ll} \max_{p_{F(N+1)} \in \mathcal{P}_{F(N+1)}} w_{FN}(p_{F(N+1)}), & \text{if }\mathcal{P}_{F(N+1)} \neq \emptyset\\ 0,& \text{otherwise}. \end{array}\right. $$

Since \(\mathcal {P}_{F(N+1)}\) is finite, w F N is effectively computable.

The following theorem shows that the value \(m_{FN}^{*}\) can be computed as \(m_{FN}^{*}=w_{FN}\).

Theorem 3

For the pair (L, K)of regular languages that is N-inference diagnosable, if \(\mathbb {N}_{FN} \neq \emptyset \) then \(m_{FN}^{*}=w_{FN}\) .

Proof

First, we show that \(m_{FN}^{*} \leq w_{FN}\). For the sake of contradiction, we suppose that \(w_{FN} < m_{FN}^{*}\). Since \(m_{FN}^{*} = \min \mathbb {N}_{FN}\), we have \(w_{FN} \notin \mathbb {N}_{FN}\), which implies F N+1(w F N )≠. We consider any s 0F N+1(w F N ). By Proposition 1, there exist 2(N + 1) traces s 10, s 11,…,s 1N , s 20, s 21,…,s 2N L such that the four conditions of the first part of Proposition 1 are satisfied for m = w F N and k = N + 1. Furthermore, by Proposition 2, there exists \(s_{F(N+1)}:=\sigma _{F(N+1)}^{(0)}\sigma _{F(N+1)}^{(1)}\cdots \sigma _{F(N+1)}^{(l-1)} \in L(T_{F(N+1)})\) (l ≥ 1) such that \(s_{F(N+1)}(i_{N})=s_{i_{N}}\) for each i N I N . We consider the path \(r_{F(N+1),0}=r_{F(N+1)}^{(0)} \xrightarrow {\sigma _{F(N+1)}^{(0)}} r_{F(N+1)}^{(1)} \xrightarrow {\sigma _{F(N+1)}^{(1)}} {\cdots } \xrightarrow {\sigma _{F(N+1)}^{(l-1)}} r_{F(N+1)}^{(l)}\) in T F(N+1) obtained by executing s F(N+1). For each i F N I F N , if i F N = 0, then s F(N+1)(0) = s 0F N+1(w F N ) ⊆ LK. If i F N ≠0, then we have by the second condition of the first part of Proposition 1 that s F(N+1)(i F N ) ∈ F 0(w F N ) ⊆ LK. Thus, we have \(r_{F(N+1)}^{(l)}(i_{FN}) \in Q \times \{d\}\) for each i F N I F N , i.e., \(r_{F(N+1)}^{(l)} \in R_{F(N+1),mark}\).

For some a 0, a 1,…,a h−1 ∈{0,1,…,l} (h ≥ 1) such that a 0 < a 1 < ⋯ < a h−1, there exists a path \(p_{F(N+1)}:V_{F(N+1),0}=V_{F(N+1),k_{0}} \xrightarrow {\sigma _{F(N+1)}^{(a_{0})}} V_{F(N+1),k_{1}} \xrightarrow {\sigma _{F(N+1)}^{(a_{1})}} {\cdots } \xrightarrow {\sigma _{F(N+1)}^{(a_{h-1})}} V_{F(N+1),k_{h}} \in V_{F(N+1),mark}\) that satisfies \(\{r_{F(N+1)}^{(0)},\dots ,r_{F(N+1)}^{(a_{0})}\}\subseteq V_{F(N+1),k_{0}}, \{r_{F(N+1)}^{(a_{0}+1)},\dots ,r_{F(N+1)}^{(a_{1})}\}\subseteq V_{F(N+1),k_{1}}, \dots ,\{r_{F(N+1)}^{(a_{h-1}+1)},\dots ,r_{F(N+1)}^{(l)} \}\subseteq V_{F(N+1),k_{h}}\)in the acyclic automaton \(\mathcal {T}_{F(N+1)}\). Since \(p_{F(N+1)} \in \mathcal {P}_{F(N+1)} \neq \emptyset \), the count w F N (p F(N+1)) of p F(N+1) satisfies w F N (p F(N+1)) ≤ w F N . Then there exists \(i_{FN} \in I_{FN} -\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}}J_{FN}(V_{F(N+1),k})\) such that \(w_{FN,i_{FN}}(p_{F(N+1)})=w_{FN}(p_{F(N+1)})\). By the definition of \(w_{FN,i_{FN}}(p_{F(N+1)})\), there exists a ∈{0,1,…,l − 1} such that \(r_{F(N+1)}^{(a)}(i_{FN}) \notin Q \times \{d\}\) , \(r_{F(N+1)}^{(a+1)}(i_{FN}) \in Q \times \{d\}\), and

$$|\sigma_{F(N+1)}^{(a)}(i_{FN}) \sigma_{F(N+1)}^{(a+1)}(i_{FN}) \dots \sigma_{F(N+1)}^{(l-1)}(i_{FN})|=w_{FN}(p_{F(N+1)}). $$

Since \(r_{F(N+1)}^{(a)}(i_{FN}) \notin Q \times \{d\}\), we have \(s_{F(N+1)}(i_{FN}) \in K{\Sigma }^{\leq w_{FN}(p_{F(N+1)})} \subseteq K{\Sigma }^{\leq w_{FN}}\) . This contradicts \(s_{F(N+1)}(i_{FN}) \in F_{0}(w_{FN})= L \cap (L-K){\Sigma }^{\geq w_{FN}}\).

Next, we prove that \(m_{FN}^{*} \geq w_{FN}\). For the sake of contradiction, we suppose that \(m_{FN}^{*} < w_{FN}\). Since \(0 \leq m_{FN}^{*}\), we have 0 < w F N , which implies \(\mathcal {P}_{F(N+1)} \neq \emptyset \). In the acyclic automaton \(\mathcal {T}_{F(N+1)}\), there exists a path \(p_{F(N+1)}:V_{F(N+1),0}=V_{F(N+1),k_{0}} \xrightarrow {\sigma _{F(N+1)}^{(k_{0})}} V_{F(N+1),k_{1}} \xrightarrow {\sigma _{F(N+1)}^{(k_{1})}} \cdots \xrightarrow {\sigma _{F(N+1)}^{(k_{h-1})}} V_{F(N+1),k_{h}} \in V_{F(N+1),mark}\) (h ≥ 1) whose count w F N (p F(N+1)) satisfies w F N (p F(N+1)) = w F N . For any \(i_{FN} \in \bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\) , there exists \(V_{F(N+1),k_{j_{i_{FN}}}}\) \((j_{i_{FN}} \in \{0,1,\dots ,h\})\) such that

$$\begin{array}{@{}rcl@{}} \lefteqn{[\exists r_{F(N+1)} \in V_{F(N+1),k_{j_{i_{FN}}}}: r_{F(N+1)}(i_{FN}) \in Q \times \{d\}]} \\ & & \wedge [\exists r_{F(N+1)},r_{F(N+1)}^{\prime} \in V_{F(N+1),k_{j_{i_{FN}}}}, \exists \sigma_{F(N+1)} \in {\Sigma}_{F(N+1)}: \\ & & \quad \alpha_{F(N+1)}(r_{F(N+1)},\sigma_{F(N+1)})=r_{F(N+1)}^{\prime} \wedge \sigma_{F(N+1)}(i_{FN}) \neq \varepsilon]. \end{array} $$
(15)

Then there exists a path \(r_{F(N+1),0}=r_{F(N+1)}^{(0)}\xrightarrow {\sigma _{F(N+1)}^{(0)}} r_{F(N+1)}^{(1)} \xrightarrow {\sigma _{F(N+1)}^{(1)}} {\cdots } \xrightarrow {\sigma _{F(N+1)}^{(l-1)}} r_{F(N+1)}^{(l)}\) (l ≥ 1) in T F(N+1) such that, for some a 0, a 1,…,a h−1 with a 0 < a 1 < ⋯ < a h−1, \(\{r_{F(N+1)}^{(0)},\dots ,r_{F(N+1)}^{(a_{0})}\}\subseteq V_{F(N+1),k_{0}}, \{r_{F(N+1)}^{(a_{0}+1)},\dots ,r_{F(N+1)}^{(a_{1})}\}\subseteq V_{F(N+1),k_{1}}, \dots , \{r_{F(N+1)}^{(a_{h-1}+1)},\dots ,r_{F(N+1)}^{(l)} \}\subseteq V_{F(N+1),k_{h}}\), \(\sigma _{F(N+1)}^{(a_{p})}=\sigma _{F(N+1)}^{(k_{p})}\) (p ∈{0,1,…,h − 1}), and for \(i_{FN} \in \bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\),

$$ r_{F(N+1)}^{(a_{j_{i_{FN}}-1}+1)}(i_{FN}) \in Q \times \{d\}, $$
(16)

and

$$ |\sigma_{F(N+1)}^{(a_{j_{i_{FN}}-1}+1)}(i_{FN}) \sigma_{F(N+1)}^{(a_{j_{i_{FN}}-1}+2)}(i_{FN}) \dots \sigma_{F(N+1)}^{(l-1)}(i_{FN})| \geq w_{FN}-1. $$
(17)

In addition, for any \(i_{FN} \in I_{FN}-\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{FN}(V_{F(N+1),k})\), since w F N (p F(N+1)) = w F N , we have \(w_{FN,i_{FN}}(p_{F(N+1)}) \geq w_{FN}\). Thus, there exists \(j_{i_{FN}} \in \{0,1,\dots ,h\}\) such that Eqs. 16 and 17 hold.

Let \(s_{F(N+1)}=\sigma _{F(N+1)}^{(0)}\sigma _{F(N+1)}^{(1)}{\cdots } \sigma _{F(N+1)}^{(l-1)} \in L(T_{F(N+1)})\). Since Eqs. 16 and 17 hold for each i F N I F N , it follows from \(w_{FN}-1 \geq m_{FN}^{*}\) that \(s_{F(N+1)}(i_{FN}) \in L \cap (L-K){\Sigma }^{\geq w_{FN}-1} \subseteq L \cap (L-K){\Sigma }^{\geq m_{FN}^{*}}=F_{0}(m_{FN}^{*})\). In addition, for each i N I N I F N , we have s F(N+1)(i N ) ∈ K. Then, by Propositions 1 and 2, we have \(s_{F(N+1)}(0) \in F_{N+1}(m_{FN}^{*}) \neq \emptyset \) , i.e., \(m_{FN}^{*} \notin \mathbb {N}_{FN}\). This contradicts the definition of \(m_{FN}^{*}\). □

Dually we use \(\mathcal {T}_{H(N+1)}\) to compute \(m_{HN}^{*}\) when \(\mathbb {N}_{HN} \neq \emptyset \). For each \(p_{H(N+1)}:V_{H(N+1),0}=V_{H(N+1),k_{0}} \xrightarrow {\sigma _{H(N+1)}^{(k_{0})}} V_{H(N+1),k_{1}} \xrightarrow {\sigma _{H(N+1)}^{(k_{1})}} {\cdots } \xrightarrow {\sigma _{H(N+1)}^{(k_{h-1})}} V_{H(N+1),k_{h}} \in V_{H(N+1),mark}\) in the set \(\mathcal {P}_{H(N+1)}\) of all paths from the initial state to marked states and each index \(i_{HN} \in I_{HN}-\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{HN}(V_{H(N+1),k})\), we define an index-specific post-fault event count of each transition of the path as follows: For each j ∈{1,2,…,h},

$$\begin{array}{@{}rcl@{}} \lefteqn{w_{HN,i_{HN}} (V_{H(N+1),k_{j-1}},\sigma_{H(N+1)}^{(k_{j-1})},V_{H(N+1),k_{j}})}\\ & & :=\left\{ \begin{array}{ll} 1, & \text{if }[\sigma_{H(N+1)}^{(k_{j-1})}(i_{HN})\neq \varepsilon]\\ & \quad \wedge [\exists r_{H(N+1)} \in V_{H(N+1),k_{j-1}}, \exists r_{H(N+1)}^{\prime} \in V_{H(N+1),k_{j}}:\\ & \qquad \alpha_{H(N+1)}(r_{H(N+1)},\sigma_{H(N+1)}^{(k_{j-1})}) =r_{H(N+1)}^{\prime} \wedge r_{H(N+1)}^{\prime}(i_{HN}) \in Q \times \{d\}] \\ 0, & \text{otherwise}. \end{array} \right. \end{array} $$

Then an index-specific post-fault event count for the path p H(N+1) is defined as

$$w_{HN,i_{HN}}(p_{H(N+1)}) :=\sum\limits_{j=1}^{h} w_{HN,i_{HN}}(V_{H(N+1),k_{j-1}},\sigma_{H(N+1)}^{(k_{j-1})},V_{H(N+1),k_{j}}). $$

Next, a minimum among all indices in \(I_{HN}-\bigcup _{k \in \{k_{0},k_{1},\dots ,k_{h}\}} J_{HN}(V_{H(N+1),k})\) is taken as the post-fault event count for the path p H(N+1):

$$w_{HN}(p_{H(N+1)}) := \min_{i_{HN} \in I_{HN}-\cup_{k \in \{k_{0},\dots,k_{h}\}} J_{HN}(V_{H(N+1),k})} w_{HN,i_{HN}}(p_{H(N+1)}). $$

Finally a maximum of the counts along all paths in \(\mathcal {P}_{H(N+1)}\) is taken as

$$w_{HN}:=\left\{ \begin{array}{ll} \max_{p_{H(N+1)} \in \mathcal{P}_{H(N+1)}} w_{HN}(p_{H(N+1)}), & \text{if }\mathcal{P}_{H(N+1)} \neq \emptyset\\ 0,& \text{otherwise}. \end{array}\right. $$

Since \(\mathcal {P}_{H(N+1)}\) is finite, w H N is effectively computable.

Similar to Theorem 3, the following theorem holds, which shows that the value \(m_{HN}^{*}\) can be computed as \(m_{HN}^{*}=w_{HN}\).

Theorem 4

For the pair (L, K)of regular languages that is N-inference diagnosable, if \(\mathbb {N}_{HN} \neq \emptyset \) then \(m_{HN}^{*}=w_{HN}\) .

Remark 4

The result of Theorem 3 (respectively, Theorem 4) on computing the delay bound is reduced to that of Section IV of Qiu and Kumar (2006) (respectively, Theorem 2 of Yamamoto and Takai 2014) in the case of N = 0 and reduced to Theorem 3 (respectively, Theorem 4) of Yokota et al. (2017) in the case of N = 1.

Remark 5

In this remark, we discuss the complexity of computing the delay bound. To compute the delay bound \(m_{N}^{*}\) using Theorems 3 and 4, we first need to construct the finite automata T F(N+1) and T H(N+1), whose complexity is exponential with respect to the number n of local diagnosers and doubly exponential with respect to the levels N of inferencing, as shown in Table 1. Next, we construct the nondeterministic acyclic automata \(\mathcal {T}_{F(N+1)}\) and \(\mathcal {T}_{H(N+1)}\) by identifying all max-SCCs of T F(N+1) and T H(N+1). This complexity is \(O((|R_{F(N+1)}|+|R_{H(N+1)}|)\times |{\Sigma }|^{1+{\sum }_{k=0}^{N}n(n-1)^{k}})\), where

$$\begin{array}{@{}rcl@{}} \lefteqn{|R_{F(N+1)}|}\\ &=&\left\{ \begin{array}{ll} O(|Q|^{1+{\sum}_{k=1}^{N/2}n(n-1)^{2k-1}} \cdot |Q_{K}|^{1+{\sum}_{k=0}^{N}n(n-1)^{k}}), & \text{if }N\text{ is an even number}\\ O(|Q|^{1+{\sum}_{k=1}^{(N+1)/2}n(n-1)^{2k-1}} \cdot |Q_{K}|^{1+{\sum}_{k=0}^{N}n(n-1)^{k}}), & \text{if }N\text{ is an odd number}, \end{array} \right. \\ \lefteqn{|R_{H(N+1)}|}\\ &=&\left\{ \begin{array}{ll} O(|Q|^{{\sum}_{k=0}^{N/2}n(n-1)^{2k}} \cdot |Q_{K}|^{1+{\sum}_{k=0}^{N}n(n-1)^{k}}), & \text{if }N\text{ is an even number}\\ O(|Q|^{{\sum}_{k=0}^{(N-1)/2}n(n-1)^{2k}} \cdot |Q_{K}|^{1+{\sum}_{k=0}^{N}n(n-1)^{k}}), & \text{if }N\text{ is an odd number}, \end{array} \right. \end{array} $$

and it is exponential with respect to the number n of local diagnosers and doubly exponential with respect to the levels N of inferencing. Then \(m_{N}^{*}\) can be obtained by exploring all paths of \(\mathcal {T}_{F(N+1)}\) and \(\mathcal {T}_{H(N+1)}\) that end with marked states. It turns out that the complexity of the delay bound computation is of the same order as that of verifying N-inference diagnosability—the former computes an exact delay bound while the latter checks only the existence of a finite delay bound.

Table 1 Complexity for constructing automata T F(N+1) and T H(N+1) (Takai and Kumar 2017)

Remark 6

Since the finite automaton \(\mathcal {T}_{F(N+1)}\) is acyclic, the number of transitions of a path in \(\mathcal {P}_{F(N+1)}\) is bounded by |V F(N+1)|− 1, where V F(N+1) is the state set of \(\mathcal {T}_{F(N+1)}\). By Theorem 3, \(m_{FN}^{*}\) is bounded by |V F(N+1)|− 1. Similarly, \(m_{HN}^{*}\) is bounded by |V H(N+1)|− 1, where V H(N+1) is the state set of \(\mathcal {T}_{H(N+1)}\).

The following example illustrates the results on computing the delay bound.

Example 2

We consider the setting of Example 1, where (L, K) is 2-inference diagnosable. As shown in Example 1, we have F 3(m) = H 3(m) = for any \(m \in \mathbb {N}\) with m ≥ 1, which implies \(\mathbb {N}_{F2} \neq \emptyset \) and \(\mathbb {N}_{H2} \neq \emptyset \).

We compute the delay bound \(m_{2}^{*}=\min \{m_{F2}^{*},m_{H2}^{*}\}\) using Theorems 3 and 4. We construct the acyclic automaton \(\mathcal {T}_{F3}\) to compute \(m_{F2}^{*}\). A part of \(\mathcal {T}_{F3}\), which includes a path from the initial state to a marked state in V F3,m a r k , is shown in Fig. 3. (By the definition of \(\mathcal {T}_{F3}\), each state of \(\mathcal {T}_{F3}\) is a set of states of T F3. Note that this example is a special case where each state of \(\mathcal {T}_{F3}\) is a singleton.) Since \(\mathcal {P}_{F3} \neq \emptyset \), we need to compute w F2(p F3) for all paths p F3 in \(\mathcal {P}_{F3}\). For example, we consider the path \(p_{F3}: V_{F3,0}=V_{F3,k_{0}} \xrightarrow {(e,e,e,e,e,e,e)} V_{F3,k_{1}} \xrightarrow {(f,b_{2},b_{2},b_{2},a_{2},a_{2},a_{2})} V_{F3,k_{2}} \xrightarrow {(\varepsilon ,\varepsilon ,f,\varepsilon ,\varepsilon ,f, \varepsilon )} V_{F3,k_{3}}\), shown in Fig. 3. Since \(J_{F2}(V_{F3,k_{0}}) \cup J_{F2}(V_{F3,k_{1}}) \cup J_{F2}(V_{F3,k_{2}})\cup J_{F2}(V_{F3,k_{3}})=\emptyset \), the count of p F3 is given as

$$w_{F2}(p_{F3}) = \min_{i_{F2} \in I_{F2}=\{0,11,21\}} w_{F2,i_{F2}}(p_{F3}). $$

Since \(w_{F2,i_{F2}}(p_{F3})=1\) for each i F2I F2, we have w F2(p F3) = 1. For other paths in \(\mathcal {P}_{F3}\), their counts are computed in the same way. Then, by Theorem 3, we have \(m_{F2}^{*} = w_{F2}=1\). Similarly, by applying Theorem 4, we have \(m_{H2}^{*} = w_{H2}=1\). Consequently, the delay bound \(m_{2}^{*}\) is obtained as \(m_{2}^{*}=\min \{ m_{F2}^{*}, m_{H2}^{*}\}=1\).

Fig. 3
figure 3

A part of the automaton \(\mathcal {T}_{F_{3}}\)

Remark 7

As shown in Example 1, this example is not 1-inference diagnosable, i.e., it is neither disjunctive-codiagnosable nor conjunctive-codiagnosable, and also it is nether conditionally disjunctive-codiagnosable nor conditionally conjunctive-codiagnosable, meaning that the delay bound for diagnosis in those schemes is not even defined (or may be considered to be infinity). In contrast the delay bound of 2-inference diagnosability is bounded, and in fact just 1.

We next show the following expected anti-monotonicity property that, for an N-inference diagnosable system, as the levels N of inferencing are increased, the delay bounds become smaller.

Theorem 5

For any \(N \in \mathbb {N}\) such that the pair (L, K)of regular languages is N-inference diagnosable, it holds that \(m_{N+1}^{*} \leq m_{N}^{*}\) .

Proof

Since (L, K) is N-inference diagnosable, \(F_{N+1}(m_{N}^{*}) = \emptyset \vee H_{N+1}(m_{N}^{*}) = \emptyset \) holds, which implies \(F_{N+2}(m_{N}^{*}) = \emptyset \vee H_{N+2}(m_{N}^{*}) = \emptyset \). Then, (L, K) is (N + 1)-inference diagnosable and \(m_{N}^{*} \in \{m \in \mathbb {N} \mid F_{N+2}(m) = \emptyset \vee H_{N+2}(m) = \emptyset \}\), which implies \(m_{N+1}^{*} \leq m_{N}^{*}\). □

As shown in the following example, the converse relation of Theorem 5 need not hold.

Example 3

We consider a plant modeled by the finite automaton G shown in Fig. 4a, which is obtained by slightly modifying the automaton of Fig. 2a. Let Δ1 = {a, a ,c, c ,d, e}, Δ2 = {b, b ,c, c ,d, e}, and

$$\begin{array}{@{}rcl@{}} M_{1}(\sigma) &=& \left\{ \begin{array}{ll} a, & \text{if }\sigma \in \{a_{1},a_{2}\}\\ a^{\prime}, & \text{if }\sigma \in \{a_{1}^{\prime},a_{2}^{\prime}\}\\ \sigma, & \text{if }\sigma \in \{c,c^{\prime},d,e\} \\ \varepsilon, & \text{otherwise}, \end{array} \right. \\ M_{2}(\sigma) &=& \left\{ \begin{array}{ll} b, & \text{if }\sigma \in \{b_{1},b_{2}\}\\ b^{\prime}, & \text{if }\sigma \in \{b_{1}^{\prime},b_{2}^{\prime}\}\\ \sigma, & \text{if }\sigma \in \{c,c^{\prime},d,e\} \\ \varepsilon, & \text{otherwise}. \end{array} \right. \end{array} $$

In addition, let KL be a closed regular language generated by the finite automaton G K shown in Fig. 4b. We can verify that (L, K) is 1-inference diagnosable and that \(\mathbb {N}_{F1} \neq \emptyset \) and \(\mathbb {N}_{H1} \neq \emptyset \). Then it is also 2-inference diagnosable.

Fig. 4
figure 4

Automata G and G K of Example 3

Similar to Example 2, we can obtain the delay bound \(m_{2}^{*}=1\) in the case of N = 2. We show that the delay bound \(m_{1}^{*}\) in the case of N = 1 is larger than \(m_{2}^{*}\). To compute \(m_{F1}^{*}\) and \(m_{H1}^{*}\), the acyclic automata \(\mathcal {T}_{F2}\) and \(\mathcal {T}_{H2}\) are constructed. A part of \(\mathcal {T}_{F2}\) shown in Fig. 5 includes a path \(p_{F2}: V_{F2,0}=V_{F2,k_{0}} \xrightarrow {(e,e,e,e,e)} V_{F2,k_{1}} \xrightarrow {(f,b_{2},b_{2},a_{2},a_{2})} V_{F2,k_{2}} \xrightarrow {(\varepsilon ,\varepsilon ,f,\varepsilon ,f)} V_{F2,k_{3}} \xrightarrow {(\varepsilon ,\varepsilon ,a_{2}^{\prime },\varepsilon ,b_{2}^{\prime })} V_{F2,k_{4}} \xrightarrow {(c,c,c,c,c)} V_{F2,k_{5}}\) in \(\mathcal {P}_{F2}\) . For this path p F2, since \(J_{F1}(V_{F2,k_{0}}) \cup J_{F1}(V_{F2,k_{1}}) \cup J_{F1}(V_{F2,k_{2}}) \cup J_{F1}(V_{F2,k_{3}})\cup J_{F1}(V_{F2,k_{4}}) \cup J_{F1}(V_{F2,k_{5}}) =\emptyset \), the count of p F2 is given as

$$w_{F1}(p_{F2}) = \min_{i_{F1} \in I_{F1}=\{0,11,21\}} w_{F1,i_{F1}}(p_{F2}). $$

Since w F1,0(p F2) = 2 and w F1,11(p F1) = w F1,21(p F2) = 3, we have w F1(p F2) = 2. For other paths in \(\mathcal {P}_{F2}\), their counts are computed in the same way. Then, by Theorem 3, we have \(m_{F1}^{*} = w_{F1}=2\). Similarly, by applying Theorem 4, we have \(m_{H1}^{*} = w_{H1}=2\). Consequently, the delay bound \(m_{1}^{*}\) is obtained as \(m_{1}^{*}=\min \{ m_{F1}^{*}, m_{H1}^{*}\}=2\), which is larger than the delay bound \(m_{2}^{*}(=1)\) in the case of N = 2.

Fig. 5
figure 5

A part of the automaton \(\mathcal {T}_{F_{2}}\)

For example, we consider a situation where the event c is executed after a failure trace e fLK. The first diagnoser D 1 cannot distinguish e f cLK from a nonfailure trace e b 2 cK. In addition, the second diagnoser D 2 cannot distinguish e b 2 cK from a failure trace \(eb_{2}fa_{2}^{\prime }c \in L-K\). Thus, D 1 cannot detect the occurrence of the failure event f using a single-level of inferencing. Analogously, D 2 cannot detect the occurrence of f using a single-level of inferencing.

On the other hand, if the plant executes \(eb_{2}fa_{2}^{\prime }c \in L-K\), then D 1 can detect the occurrence of f unambiguously and can issue a failure decision with the ambiguity 0. Then, for e b 2 cK, D 2 can issue a nonfailure decision with the ambiguity level 1 and, for e f cLK, D 1 can issue a failure decision with the ambiguity level 2. Similarly, D 2 can issue a failure decision with the ambiguity level 2 for e f cLK. Using 2 levels of inferencing, the occurrence of f is detected after c is executed, i.e., within one step delay.

5 Computation of ambiguity levels

Online diagnosis requires the computation of the ambiguity levels \({n_{i}^{f}}(M_{i}(s))\) and \({n_{i}^{h}}(M_{i}(s))\) of the local failure and nonfailure decisions, respectively, in accordance with Eqs. 8 and 9. (As before we continue to assume that I = {1,2}). To compute the language H k (m) for each \(m \in \mathcal {N}\) and each k ∈{1,2,…,N + 1}, we use the finite automaton \(T_{Hk_{m}}\) defined in Section 3.3, but replace each transition label σ H k ∈Σ H k with its first element σ H k (0) ∈ Σ ∪{ε} to obtain a nondeterministic finite automaton

$$\hat{T}_{Hk_{m}}=(R_{Hk_{m}},{\Sigma},\hat{\alpha}_{Hk_{m}},r_{Hk_{m},0}, R_{Hk_{m},mark}) $$

over Σ, where the nondeterministic transition function \(\hat {\alpha }_{Hk_{m}}:R_{Hk_{m}} \times ({\Sigma } \cup \{\varepsilon \}) \rightarrow 2^{R_{Hk_{m}}}\) is defined as follows: For each \(r_{Hk_{m}} \in R_{Hk_{m}}\) and each σ ∈ Σ ∪{ε},

$$\begin{array}{@{}rcl@{}} \hat{\alpha}_{Hk_{m}}(r_{Hk_{m}},\sigma) & = & \{r_{Hk_{m}}^{\prime} \in R_{Hk_{m}} \mid \exists \sigma_{Hk} \in {\Sigma}_{Hk}: \\ & & \quad \sigma_{Hk}(0)=\sigma \wedge \alpha_{Hk_{m}}(r_{Hk_{m}},\sigma_{Hk})=r_{Hk_{m}}^{\prime}\}. \end{array} $$

In addition, for k = 0, we regard G K = (Q K ,Σ,δ K , q K,0, Q K ) as a nondeterministic automaton

$$\hat{T}_{H0_{m}}=(R_{H0_{m}},{\Sigma},\hat{\alpha}_{H0_{m}},r_{H0_{m},0},R_{H0_{m},mark}), $$

i.e., the transition function \(\hat {\alpha }_{H0_{m}}:R_{H0_{m}} \times ({\Sigma } \cup \{\varepsilon \}) \rightarrow 2^{R_{H0_{m}}}\) is defined as

$$\hat{\alpha}_{H0_{m}}(q_{K},\sigma)= \left\{ \begin{array}{ll} \{\delta_{K}(q_{K},\sigma)\}, & \text{if }\sigma \neq \varepsilon \wedge \delta_{K}(q_{K},\sigma)! \\ \emptyset, & \text{otherwise} \end{array} \right. $$

for each \(q_{K} \in R_{H0_{m}} = Q_{K}\) and each σ ∈ Σ ∪{ε}.

The following proposition shows that the nondeterministic automaton \(\hat {T}_{Hk_{m}}\) accepts the language H k (m).

Proposition 6

For any \(m \in \mathbb {N}\) and any \(k \in \mathbb {N}\) such that 0 ≤ kN + 1, \(L_{m}(\hat {T}_{Hk_{m}})=H_{k}(m)\) .

Proof

First, we prove that \(L_{m}(\hat {T}_{Hk_{m}}) \subseteq H_{k}(m)\). We consider any \(s \in L_{m}(\hat {T}_{Hk_{m}})\). If k = 0, then sL m (G K ) = L(G K ) = K = H 0(m) by the definition of \(\hat {T}_{H0_{m}}\). We consider the case of 0 < kN + 1. By the definition of \(\hat {T}_{Hk_{m}}\), there exists \(s_{Hk} \in L_{m}(T_{Hk_{m}})\) such that s H k (0) = s. Let \(r_{Hk_{m}}=\alpha _{Hk_{m}}(r_{Hk_{m},0},s_{Hk})\) and \(s_{ii^{\prime }}=s_{Hk}(ii^{\prime })\) for each iI and each i ∈{0,1,…,k − 1}. Since \(r_{Hk_{m}}(0)=\delta _{K}(q_{K,0},s) \in Q_{K}\), we have sK = H 0(m). By Proposition 1, it suffices to show that the four conditions of the second part of Proposition 1 hold.

For each iI and each i ∈{0,1,…,k − 1}, if i is an even number, then i i I H N . By the definition of the marked state set \(R_{Hk_{m},mark}\) of \(T_{Hk_{m}}\), we have \(r_{Hk_{m}}(ii^{\prime })=\xi _{m}((q_{0},q_{K,0}),s_{ii^{\prime }}) \in Q \times \{d_{m}\}\), which implies \(s_{ii^{\prime }} \in L_{m}(G \parallel \tilde {G}_{K_{m}})=F_{0}(m)\) . If i is an odd number, then \(r_{Hk_{m}}(ii^{\prime })=\delta _{K}(q_{K,0},s_{ii^{\prime }}) \in Q_{K}\) , which implies \(s_{ii^{\prime }} \in K=H_{0}(m)\). It follows that the first condition of the second part of Proposition 1 holds. In addition, by Proposition 4, the last three of the four conditions of the second part of Proposition 1 are satisfied.

Next, we prove that \(H_{k}(m) \subseteq L_{m}(\hat {T}_{Hk_{m}})\). We consider any sH k (m). If k = 0, then \(s \in H_{0}(m)=K=L(G_{K})=L_{m}(G_{K})=L_{m}(\hat {T}_{H0_{m}})\). We consider the case of 0 < kN + 1. By Proposition 1, sH 0(m) holds and there exist s 10, s 11,…,s 1(k−1), s 20, s 21,…,s 2(k−1)L that satisfy the four conditions of the second part of Proposition 1. Then, by Proposition 4, there exists \(s_{Hk} \in L(T_{Hk_{m}})\) such that s H k (0) = s and \(s_{Hk}(ii^{\prime })=s_{ii^{\prime }}\) for each iI and each i ∈{0,1,…,k − 1}. Let \(r_{Hk_{m}}=\alpha _{Hk_{m}}(r_{Hk_{m},0},s_{Hk})\). For any iI and any i ∈{0,1,…,k − 1}, if i i I H N , then i is an even number, so we have \(s_{Hk}(ii^{\prime })=s_{ii^{\prime }} \in F_{0}(m) =L_{m}(G \parallel \tilde {G}_{K_{m}})\). It follows that \(r_{Hk_{m}}(ii^{\prime })=\xi _{m}((q_{0},q_{K,0}),s_{Hk}(ii^{\prime })) \in Q \times \{d_{m}\}\). By the definition of the marked state set \(R_{Hk_{m},mark}\), we have \(r_{Hk_{m}} \in R_{Hk_{m},mark}\) and \(s_{Hk} \in L_{m}(T_{Hk_{m}})\). Since s H k (0) = s, we have \(s \in L_{m}(\hat {T}_{Hk_{m}})\). □

Dually to \(\hat {T}_{Hk_{m}}\), we obtain a nondeterministic finite automaton \(\hat {T}_{Fk_{m}}\) from \(T_{Fk_{m}}\) as follows:

$$\hat{T}_{Fk_{m}}=(R_{Fk_{m}},{\Sigma},\hat{\alpha}_{Fk_{m}},r_{Fk_{m},0}, R_{Fk_{m},mark}), $$

where the nondeterministic transition function \(\hat {\alpha }_{Fk_{m}}:R_{Fk_{m}} \times ({\Sigma } \cup \{\varepsilon \}) \rightarrow 2^{R_{Fk_{m}}}\) is defined as follows: For each \(r_{Fk_{m}} \in R_{Fk_{m}}\) and each σ ∈ Σ ∪{ε},

$$\begin{array}{@{}rcl@{}} \hat{\alpha}_{Fk_{m}}(r_{Fk_{m}},\sigma) & = & \{r_{Fk_{m}}^{\prime} \in R_{Fk_{m}} \mid \exists \sigma_{Fk} \in {\Sigma}_{Fk}: \\ & & \quad \sigma_{Fk}(0)=\sigma \wedge \alpha_{Fk_{m}}(r_{Fk_{m}},\sigma_{Fk})=r_{Fk_{m}}^{\prime}\}. \end{array} $$

In addition, for k = 0, we regard \(G\parallel \tilde {G}_{K_{m}}= (Q\times \tilde {Q}_{K_{m}}, {\Sigma }, \xi _{m}, (q_{0},q_{K,0}), Q \times \{d_{m}\} )\) as a nondeterministic automaton

$$\hat{T}_{F0_{m}}=(R_{F0_{m}},{\Sigma},\hat{\alpha}_{F0_{m}},r_{F0_{m},0},R_{F0_{m},mark}), $$

i.e., the transition function \(\hat {\alpha }_{F0_{m}}:R_{F0_{m}} \times ({\Sigma } \cup \{\varepsilon \}) \rightarrow 2^{R_{F0_{m}}}\) is defined as

$$\hat{\alpha}_{F0_{m}}((q,\tilde{q}_{K_{m}}),\sigma)= \left\{ \begin{array}{ll} \{\xi_{m}((q,\tilde{q}_{K_{m}}),\sigma)\}, & \text{if }\sigma \neq \varepsilon \wedge\xi_{m}((q,\tilde{q}_{K_{m}}),\sigma)! \\ \emptyset, & \text{otherwise} \end{array} \right. $$

for each \((q,\tilde {q}_{K_{m}}) \in R_{F0_{m}} = Q \times \tilde {Q}_{K_{m}}\) and each σ ∈ Σ ∪{ε}.

Similar to Proposition 6, the following proposition is obtained, which shows that the nondeterministic automaton \(\hat {T}_{Fk_{m}}\) accepts the language F k (m).

Proposition 7

For any \(m \in \mathbb {N}\) and any \(k \in \mathbb {N}\) such that 0 ≤ kN + 1, \(L_{m}(\hat {T}_{Fk_{m}})=F_{k}(m)\) .

For the online computation of the ambiguity level \({n_{i}^{f}}(M_{i}(s))\) of the local failure decision for each M i (s) ∈ M i (L), we define a state estimate function \(E_{Hk_{m},i}: {\Delta }_{i}^{*} \rightarrow 2^{R_{Hk_{m}}}\) for each iI and each k ∈{0,1,…,N + 1} as follows:

  • \(E_{Hk_{m},i}(\varepsilon )=UR_{\hat {T}_{Hk_{m}},i}(\{r_{Hk_{m},0}\})\), and

  • \(\forall t \in {\Delta }_{i}^{*}, \forall \sigma _{M_{i}} \in {\Delta }_{i}:\)

    $$\begin{array}{@{}rcl@{}} \lefteqn{E_{Hk_{m},i}(t\sigma_{M_{i}})}\\ & & =UR_{\hat{T}_{Hk_{m}},i} \left( \bigcup\limits_{r_{Hk_{m}} \in E_{Hk_{m},i}(t)} \bigcup\limits_{\sigma \in {\Sigma} \cap M_{i}^{-1}(\sigma_{M_{i}})} \hat{\alpha}_{Hk_{m}}(r_{Hk_{m}},\sigma)\right). \end{array} $$

Similarly, for the online computation of the ambiguity level \({n_{i}^{h}}(M_{i}(s))\) of the nonfailure decision for each M i (s) ∈ M i (L), a state estimate function \(E_{Fk_{m},i}: {\Delta }_{i}^{*} \rightarrow 2^{R_{Fk_{m}}}\) is defined for each iI and each k ∈{0,1,…,N + 1} as follows:

  • \(E_{Fk_{m},i}(\varepsilon )=UR_{\hat {T}_{Fk_{m}},i}(\{r_{Fk_{m},0}\})\), and

  • \(\forall t \in {\Delta }_{i}^{*}, \forall \sigma _{M_{i}} \in {\Delta }_{i}:\)

    $$\begin{array}{@{}rcl@{}} \lefteqn{E_{Fk_{m},i}(t\sigma_{M_{i}})}\\ & & =UR_{\hat{T}_{Fk_{m}},i} \left( \bigcup\limits_{r_{Fk_{m}} \in E_{Fk_{m},i}(t)} \bigcup\limits_{\sigma \in {\Sigma} \cap M_{i}^{-1}(\sigma_{M_{i}})} \hat{\alpha}_{Fk_{m}}(r_{Fk_{m}},\sigma)\right). \end{array} $$

Then it holds that

$$E_{Hk_{m},i}(t)=\{r_{Hk_{m}} \in R_{Hk_{m}} \mid \exists s \in M_{i}^{-1}(t)\cap L(\hat{T}_{Hk_{m}}): r_{Hk_{m}} \in \hat{\alpha}_{Hk_{m}}(r_{Hk_{m},0},s)\}, $$
$$E_{Fk_{m},i}(t)=\{r_{Fk_{m}} \in R_{Fk_{m}} \mid \exists s \in M_{i}^{-1}(t)\cap L(\hat{T}_{Fk_{m}}): r_{Fk_{m}} \in \hat{\alpha}_{Fk_{m}}(r_{Fk_{m},0},s)\}, $$
$$t \notin M_{i}(H_{k}(m)) \Leftrightarrow E_{Hk_{m},i}(t) \cap R_{Hk_{m},mark} = \emptyset,$$

and

$$t \notin M_{i}(F_{k}(m)) \Leftrightarrow E_{Fk_{m},i}(t) \cap R_{Fk_{m},mark} = \emptyset$$

for each \(t \in {\Delta }_{i}^{*}\). Accordingly, the following result on the online computation of the ambiguity levels \({n_{i}^{f}}(M_{i}(s))\) and \({n_{i}^{h}}(M_{i}(s))\) is obtained.

Theorem 6

Consider any \(m \in \mathbb {N}\) such that F N+1(m) = or H N+1(m) = .

  1. 1.

    For each sL and each iI , if \(\{k \in \{0,1,\dots ,N+1\} \mid E_{Hk_{m},i}(M_{i}(s)) \cap R_{Hk_{m},mark} = \emptyset \} \neq \emptyset \) , then

    $${n_{i}^{f}}(M_{i}(s))= \min\{k \in \{0,1,\dots,N+1\} \mid E_{Hk_{m},i}(M_{i}(s)) \cap R_{Hk_{m},mark} = \emptyset \}; $$

    otherwise\({n_{i}^{f}}(M_{i}(s))=N+2\).

  2. 2.

    For each sL and each iI,if \(\{k \in \{0,1,\dots ,N+1\} \mid E_{Fk_{m},i}(M_{i}(s)) \cap R_{Fk_{m},mark} = \emptyset \} \neq \emptyset \),then

    $${n_{i}^{h}}(M_{i}(s))= \min\{k \in \{0,1,\dots,N+1\} \mid E_{Fk_{m},i}(M_{i}(s)) \cap R_{Fk_{m},mark} = \emptyset \}; $$

    otherwise\({n_{i}^{h}}(M_{i}(s))=N+2\).

Remark 8

In this remark we discuss the complexity of computing the ambiguity levels. This requires us to construct the finite automata \(T_{Fk_{m}}\) and \(T_{Hk_{m}}\) (k = 1,2,…,N + 1). The complexity of their construction is exponential with respect to the number n of local diagnosers and doubly exponential with respect to the levels k of inferencing, as shown in Table 2. Next, we construct the nondeterministic automata \(\hat {T}_{Fk_{m}}\) and \(\hat {T}_{Hk_{m}}\) by replacing each event of the form (σ, σ 10, σ 11,…,σ 1(k−1), σ 20, σ 21,…,σ 2(k−1)) in \(T_{Fk_{m}}\) and \(T_{Hk_{m}}\) with its first element σ. Note that the sizes of \(\hat {T}_{Fk_{m}}\) and \(\hat {T}_{Hk_{m}}\) are the same as those of \(T_{Fk_{m}}\) and \(T_{Hk_{m}}\), respectively. In addition, for k = 0, \(\hat {T}_{F0_{m}}\) and \(\hat {T}_{H0_{m}}\) are the same as \(G \parallel \tilde {G}_{K_{m}}\) and G K , respectively, and the complexity of constructing \(G \parallel \tilde {G}_{K_{m}}\) is O(|Q|⋅ (|Q K | + m) ⋅ Σ).

Table 2 Complexity for constructing automata \(T_{Fk_{m}}\) and \(T_{Hk_{m}}\)

In online diagnosis, the ambiguity levels \({n_{i}^{f}}(M_{i}(s))\) and \({n_{i}^{h}}(M_{i}(s))\) of the local failure and nonfailure decisions are computed by updating the values of the state estimates \(E_{Hk_{m},i}(M_{i}(s))\) and \(E_{Fk_{m},i}(M_{i}(s))\), respectively, upon each local event observation. The complexities of updating \(E_{Hk_{m},i}(M_{i}(s))\) and \(E_{Fk_{m},i}(M_{i}(s))\) are \(O(|R_{Hk_{m}}| \cdot |{\Sigma }|^{1+{\sum }_{l=1}^{k}n(n-1)^{l-1}})\) and \(O(|R_{Fk_{m}}| \cdot |{\Sigma }|^{1+{\sum }_{l=1}^{k}n(n-1)^{l-1}})\), i.e., linear in the sizes of \(T_{Fk_{m}}\) and \(T_{Hk_{m}}\), respectively.

Remark 9

Note that if \(m_{N}^{*}=m_{FN}^{*}\) (respectively, \(m_{N}^{*}=m_{HN}^{*}\)), then \(F_{N+1}(m_{N}^{*})=\emptyset \) (respectively, \(H_{N+1}(m_{N}^{*})=\emptyset \)), which implies \(t \notin M_{i}(F_{N+1}(m_{N}^{*}))\) (respectively, \(t \notin M_{i}(H_{N+1}(m_{N}^{*}))\) ) for any iI and any tM i (L). Thus, if \(m_{N}^{*}=m_{HN}^{*}\), then \({n_{i}^{f}}(M_{i}(s))\) can be computed for each sL as follows: If \(\{k \in \{0,1,\dots ,N\} \mid E_{Hk_{m},i}(M_{i}(s)) \cap R_{Hk_{m},mark} = \emptyset \} \neq \emptyset \), then

$${n_{i}^{f}}(M_{i}(s))= \min\{k \in \{0,1,\dots,N\} \mid E_{Hk_{m},i}(M_{i}(s)) \cap R_{Hk_{m},mark} = \emptyset \}; $$

otherwise \({n_{i}^{f}}(M_{i}(s))=N+1\), i.e., we do not need to construct \(\hat {T}_{H(N+1)_{m}}\) for k = N + 1. Similarly, if \(m_{N}^{*}=m_{FN}^{*}\), then \({n_{i}^{h}}(M_{i}(s))\) can be computed for each sL as follows: If \(\{k \in \{0,1,\dots ,N\} \mid E_{Fk_{m},i}(M_{i}(s)) \cap R_{Fk_{m},mark} = \emptyset \} \neq \emptyset \), then

$${n_{i}^{h}}(M_{i}(s))= \min\{k \in \{0,1,\dots,N\} \mid E_{Fk_{m},i}(M_{i}(s)) \cap R_{Fk_{m},mark} = \emptyset \}; $$

otherwise \({n_{i}^{h}}(M_{i}(s))=N+1\).

Remark 10

It would appear that to construct a local diagnoser at the ith local site, we may not need to take the information of the ith local diagnoser into account in the finite automata \(\hat {T}_{Fk_{m}}\) and \(\hat {T}_{Hk_{m}}\) (k = 1,2,…,N + 1). But this does not really help in reducing the complexity. To see this, we consider any sL such that M i (s) ∈ M i (F k (m)) and M i (s) ∈ M i (H k (m)), where k ∈{0,1,…,N}. We can verify that

$$\begin{array}{@{}rcl@{}} M_{i}(s) \notin M_{i}(H_{k+1}(m)) &\Leftrightarrow& M_{i}(s) \notin M_{i}(H_{k}(m) \cap M_{j}^{-1}M_{j}(F_{k}(m))), \end{array} $$
(18)
$$\begin{array}{@{}rcl@{}} M_{i}(s) \notin M_{i}(F_{k+1}(m)) &\Leftrightarrow& M_{i}(s) \notin M_{i}(F_{k}(m) \cap M_{j}^{-1}M_{j}(H_{k}(m))), \end{array} $$
(19)

where {j} = I −{i}. By Eqs. 18 and 19, acceptors of the languages \(H_{k}(m) \cap M_{j}^{-1}M_{j}(F_{k}(m))\) and \(F_{k}(m) \cap M_{j}^{-1}M_{j}(H_{k}(m))\) can be used, instead of, \(\hat {T}_{H(k+1)_{m}}\) and \(\hat {T}_{F(k+1)_{m}}\), respectively, for computing the ambiguity levels using Eqs. 8 and 9. In the case of k = 0, for \(H_{0}(m) \cap M_{j}^{-1}M_{j}(F_{0}(m))\) and \(F_{0}(m) \cap M_{j}^{-1}M_{j}(H_{0}(m))\), there exist their acceptors whose state sets are \(Q_{K} \times (Q \times \tilde {Q}_{K_{m}})\). Since \(R_{H1_{m}}=Q_{K} \times (Q \times \tilde {Q}_{K_{m}}) \times (Q \times \tilde {Q}_{K_{m}})\) and \(R_{F1_{m}}=(Q \times \tilde {Q}_{K_{m}}) \times Q_{K} \times Q_{K}\), such acceptors have smaller state sets than \(\hat {T}_{H1_{m}}\) and \(\hat {T}_{F1_{m}}\). However, for k = 1, if we construct an acceptor for \(H_{1}(m) \cap M_{j}^{-1}M_{j}(F_{1}(m))\) by composing \(\hat {T}_{H1_{m}}\) and \(\hat {T}_{F1_{m}}\), then the state space \((Q_{K} \times (Q \times \tilde {Q}_{K_{m}}) \times (Q \times \tilde {Q}_{K_{m}})) \times ((Q \times \tilde {Q}_{K_{m}}) \times Q_{K} \times Q_{K})\) of this acceptor is larger than the state space \(Q_{K} \times (Q \times \tilde {Q}_{K_{m}}) \times Q_{K} \times (Q \times \tilde {Q}_{K_{m}}) \times Q_{K}\) of \(\hat {T}_{H2_{m}}\), i.e., there is an increase in the size of the state space. For this reason, we chose the construction as reported above in this section.

Example 4

We consider the setting of Example 1, where (L, K) is 2-inference diagnosable. As shown in Example 2, the delay bound is computed as \(m_{2}^{*}=m_{F2}^{*}=m_{H2}^{*}=1\).

We present an example of computing the ambiguity level \({n_{i}^{f}}(M_{i}(s))\) of the failure decision using Theorem 6. (The ambiguity level \({n_{i}^{h}}(M_{i}(s))\) of the nonfailure decision is computed in a similar way.) We assume that the plant G executes a failure trace s := e f cLK. For computing \({n_{i}^{f}}(M_{i}(s))\), we need to construct \(\hat {T}_{Hk_{m}}\) for k = 0,1,2 and \(m=m_{2}^{*}=1\). By the definition of \(\hat {T}_{H0_{1}}\), it is the same as G K shown in Fig. 2b. A part of \(T_{H1_{1}}\) and its corresponding part \(\hat {T}_{H1_{1}}\) are shown in Fig. 6a and b, respectively. In addition, a part of \(T_{H2_{1}}\) and its corresponding part \(\hat {T}_{H2_{1}}\) are shown in Fig. 7a and b, respectively.

Fig. 6
figure 6

A part of the automaton \(T_{H1_{1}}\) and its corresponding part of \(\hat {T}_{H1_{1}}\)

Fig. 7
figure 7

A part of the automaton \(T_{H2_{1}}\) and its corresponding part of \(\hat {T}_{H2_{1}}\)

For k = 0, we have by Fig. 2b that

$$\begin{array}{@{}rcl@{}} E_{H0_{1},1}(M_{1}(s)) \cap R_{H0_{1},mark} & = & E_{H0_{1},1}(ec) \cap Q_{K} \\ & = & \{q_{K,11}\} \\ & \neq & \emptyset \end{array} $$

and

$$\begin{array}{@{}rcl@{}} E_{H0_{1},2}(M_{2}(s)) \cap R_{H0_{1},mark} & = & E_{H0_{1},2}(ec) \cap Q_{K} \\ & = & \{q_{K,10}\} \\ & \neq & \emptyset. \end{array} $$

For k = 1, we have by Fig. 6b that

$$\begin{array}{@{}rcl@{}} ((q_{K,11},(q_{11},d_{1}),(q_{18},d_{1})) & \in & E_{H1_{1},1}(M_{1}(s)) \cap R_{H1_{1},mark} \\ & = & E_{H1_{1},1}(ec) \cap R_{H1_{1},mark} \\ & \neq & \emptyset \end{array} $$

and

$$\begin{array}{@{}rcl@{}} ((q_{K,10},(q_{17},d_{1}),(q_{11},d_{1})) & \in & E_{H1_{1},2}(M_{2}(s)) \cap R_{H1_{1},mark} \\ & = & E_{H1_{1},2}(ec) \cap R_{H1_{1},mark} \\ & \neq & \emptyset. \end{array} $$

Furthermore, for k = 2, we have by Fig. 7b that

$$\begin{array}{@{}rcl@{}} E_{H2_{1},1}(M_{1}(s)) & = & E_{H2_{1},1}(ec) \\ & = & \{(q_{K,11},(q_{15},q_{K,11}),q_{K,11},(q_{15},q_{K,11}),q_{K,11}), \\ & & \ (q_{K,11},(q_{11},d_{1}),q_{K,10},(q_{15},q_{K,11}),q_{K,11})\} \end{array} $$

and

$$\begin{array}{@{}rcl@{}} E_{H2_{1},2}(M_{2}(s)) & = & E_{H2_{1},2}(ec) \\ & = & \{(q_{K,10},(q_{14},q_{K,10}),q_{K,10},(q_{14},q_{K,10}),q_{K,10}), \\ & & \ (q_{K,10},(q_{14},q_{K,10}),q_{K,10},(q_{11},d_{1}),q_{K,11})\}. \end{array} $$

It follows that

$$E_{H2_{1},1}(M_{1}(s)) \cap R_{H2_{1},mark} = \emptyset $$

and

$$E_{H2_{1},2}(M_{2}(s)) \cap R_{H2_{1},mark} = \emptyset. $$

By Remark 9, the ambiguity level \({n_{i}^{f}}(M_{i}(s))\) is computed as

$$\begin{array}{@{}rcl@{}} {n_{i}^{f}}(M_{i}(s))&=& \min\{k \in \{0,1,2\} \mid E_{Hk_{1},i}(M_{i}(s)) \cap R_{Hk_{1},mark} = \emptyset \} \\ & = & 2 \end{array} $$

for each iI.

6 Conclusion

In Takai and Kumar (2017), we presented a framework for inference-based decentralized diagnosis, supporting multi-level inferencing for disjunctive as well as conjunctive decision making schemes, and introduced the notion of N-inference diagnosability to characterize the class of diagnosable systems. This paper presents results towards the implementation of the inference-based diagnosis scheme of Takai and Kumar (2017). To this end, a method for computing the delay bound of diagnosis was developed for N-inference diagnosable systems. This delay bound is smaller than the one achieved under any other framework subsumed by the N-inference diagnosability (such as disjunctive-codiagnosability and/or conjunctive-codiagnosability with or without conditional decisions). This delay bound was then used to identify a certain set of languages using which the local diagnosers can compute the ambiguity levels of their failure and nonfailure decisions online. The computation of the said set of languages was obtained, and a method for computing the ambiguity levels of local decisions was also reported in the paper. The complexity of offline computations (of the delay bound and the required set of languages) as well as of online diagnosis was discussed. The complexity increases with the levels of inferencing, but that also increases the class of diagnosable systems while decreases the delay of diagnosis. The complexity of the offline computations could be made more efficient through their structured representations (e.g., BDDs and symbolic computations), and can be a subject of future research.