This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Combined Left and Right Temporal Robustness
for Control under STL Specifications

Alëna Rodionova, Lars Lindemann, Manfred Morari and George J. Pappas The authors are with the Department of Electrical and Systems Engineering, University of Pennsylvania, Philadelphia PA, USA. {nellro,  larsl,  morari,  pappasg}@seas.upenn.edu.This work was supported by the AFOSR under grant FA9550-19-1-0265 Assured Autonomy in Contested Environments.
Abstract

Many modern autonomous systems, particularly multi-agent systems, are time-critical and need to be robust against timing uncertainties. Previous works have studied left and right time robustness of signal temporal logic specifications by considering time shifts in the predicates that are either only to the left or only to the right. We propose a combined notion of temporal robustness which simultaneously considers left and right time shifts. For instance, in a scenario where a robot plans a trajectory around a pedestrian, this combined notion can now capture uncertainty of the pedestrian arriving earlier or later than anticipated. We first derive desirable properties of this new notion with respect to left and right time shifts and then design control laws for linear systems that maximize temporal robustness using mixed-integer linear programming. Finally, we present two case studies to illustrate how the proposed temporal robustness accounts for timing uncertainties.

Keywords: time-critical systems, signal temporal logic, temporal robustness, control design, formal synthesis

I INTRODUCTION

This paper studies temporal robustness of time-critical systems, i.e., systems in which meeting real-time safety constraints is of great importance. Examples of time-critical systems include multi-robot systems and self-driving cars. While time-critical systems may satisfy their safety constraints under nominal operating conditions, already slight temporal perturbations such as time delays may jeopardize its safety if the system is not robust against such perturbations.

A common way to express real-time constraints is to use signal temporal logic (STL) [1]. Spatial robustness of STL specifications, quantifying permissible spatial perturbations, has been widely studied in the literature, see e.g., [2, 3, 4]. For control under spatial robustness objectives, there exist mixed-integer linear programming (MILP) approaches [5, 6, 7], gradient-descent searches [8, 9], control barrier functions for STL [10, 11], and learning-based frameworks [12]. However, these notions do not directly capture any robustness against temporal uncertainties. A first attempt to define time robustness for STL specifications was made in [13]. The authors define the left (right) time robustness by quantifying the maximal permissible left (right) time shifts in the predicates of the STL specification that do not result in a violation of the specification. In our previous works [14, 15], we analyze various properties of left (right) time robustness and propose an MILP encoding to control linear systems such that the left (right) time robustness is maximized. We continue along these lines and propose a novel notion of temporal robustness to account for both forward and backward temporal perturbations.

Besides the aforementioned notion of left (right) time robustness, there exist various other time robustness notions. Averaged STL was presented in [16] and captures temporal robustness by averaging spatial robustness over time intervals. Hybrid system conformance, see e.g., [17, 18], quantifies the closeness of hybrid systems trajectories and measures a combination of spatial and time robustness, but does not allow for asynchronous time shift in the predicates. The authors in [19] introduce a metric that can quantify the temporal relaxation of STL specifications. Tailored to multi-agent systems, the authors in [20, 21] propose counting linear temporal logic which requires a minimum number of agents for the satisfaction of a specification. The authors design control laws for such specifications where agents can implement their plans asynchronously, which can even account for time scaling effects, e.g., an agent pauses or speeds up, and not only time shifts in the predicate signal as we consider in this work. Temporal robustness of stochastic signals has been considered in [22] by using risk measures, but the authors there consider time shifts in the system signal, opposed to time shifts in predicates. In [23], monitoring of STL specifications under timing uncertainty in the underlying signal is considered by using over- and under-approximation of the satisfaction times of predicates. While [24] considers the time sensitive control for a subset of STL specifications, the authors in [25] present the time window temporal logic that is used in [26, 27] to obtain control laws for finding temporal relaxations when the specification is not satisfiable. In [28], the STL-based resiliency for cyber-physical system is presented that can capture temporal violations by recoverability and durability.

We make the following contributions. First, we propose a novel notion of temporal robustness for STL specifications to account for forward and backward temporal perturbations. We quantify the amount of permissible time shifts in the STL predicates to the left and right. We then show a set of desirable properties of our definition. Furthermore, we propose an MILP encoding for control of linear systems under the temporal robustness objective.

II Signal Temporal Logic (STL)

Refer to caption
Figure 1: Predicates pp, qq and STL formula φ=pq\varphi=p\vee q satisfaction over (a) signal 𝐱\mathbf{x}; (b) τ¯\bar{\tau}-late signal 𝐱τ¯\mathbf{x}^{\rightarrow\bar{\tau}}, where τ¯=(2,1)\bar{\tau}=(2,1); (c) shifted signal 𝐱τ¯\mathbf{x}_{\bar{\tau}}, where τ¯=(1,2)\bar{\tau}=(1,-2). One can see that for signal 𝐱\mathbf{x} and time tt, the left and right time robustness are θφ+(𝐱,t)=θφ(𝐱,t)=2\theta^{+}_{\varphi}(\mathbf{x},t)=\theta^{-}_{\varphi}(\mathbf{x},t)=2.

Let 𝐱:𝕋X\mathbf{x}:\mathbb{T}\to X be a discrete-time signal with 𝕋\mathbb{T}\subseteq\mathbb{N} (we assume that \mathbb{N} includes 0) being the time domain and xtXx_{t}\in X being the state at time tt, where XnX\subseteq\mathbb{R}^{n} is a metric space. We call the set of all signals 𝐱:𝕋X\mathbf{x}:\mathbb{T}\to X the signal space X𝕋X^{\mathbb{T}}. A predicate pp is defined as p:=μ(x)0p:=\mu(x)\geq 0, where μ(x):X\mu(x):X\to\mathbb{R} is a real-valued function of the state xx. Let I𝕋I\subseteq\mathbb{T} be a time interval. For any time point t𝕋t\in\mathbb{T}, we define the set t+I:={t+τ|τI}t+I:=\{t+\tau\ |\,\tau\in I\}. The syntax of Signal Temporal Logic (STL) is defined recursively as follows [1]:

φ::=p|¬φ|φ1φ2|φ1𝒰Iφ2\varphi::=p\ |\ \neg\varphi\ |\ \varphi_{1}\wedge\varphi_{2}\ |\ \varphi_{1}\mathcal{U}_{I}\varphi_{2} (1)

where pAPp\in AP is a predicate from a set of predicates APAP, ¬\neg and \wedge are the Boolean negation and conjunction, respectively, and 𝒰I\mathcal{U}_{I} is the Until temporal operator over a time interval II. One can further define additional STL operators such as φ1φ2:=¬(¬φ1¬φ2)\varphi_{1}\vee\varphi_{2}:=\neg(\neg\varphi_{1}\wedge\neg\varphi_{2}) (disjunction), Iφ:=𝒰Iφ\Diamond_{I}\varphi:=\top\mathcal{U}_{I}\varphi (eventually) and Iφ:=¬I¬φ\square_{I}\varphi:=\neg\Diamond_{I}\neg\varphi (always).

The semantics of an STL formula φ\varphi define when a signal 𝐱\mathbf{x} satisfies φ\varphi at time tt. Commonly, it is given via the STL characteristic function χφ(𝐱,t):X𝕋×𝕋{±1}\chi_{\varphi}(\mathbf{x},t):X^{\mathbb{T}}\times\mathbb{T}\to\{\pm 1\}, see [13] for details. Intuitively, when χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1, it holds that the signal 𝐱\mathbf{x} satisfies the formula φ\varphi at time tt, while χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=-1 indicates that 𝐱\mathbf{x} does not satisfy φ\varphi at time tt.

While the semantics of STL indicate if the signal satisfies a given specification at time tt, the left and right time robustness measures how robustly a signal satisfies a given specification at time tt with respect to perturbations in time [13]. The left and right time robustness θφ±(𝐱,t)\theta^{\pm}_{\varphi}(\mathbf{x},t) of a formula φ\varphi relative to a signal 𝐱\mathbf{x} at time tt is defined recursively. For instance, the left and right time robustness of a predicate pp are defined as follows:

and then, to obtain the θφ±(𝐱,t)\theta^{\pm}_{\varphi}(\mathbf{x},t), one needs to apply the standard recursive inf\inf/sup\sup rules to each θp±(𝐱,t)\theta^{\pm}_{p}(\mathbf{x},t), similarly to the characteristic function χφ(𝐱,t)\chi_{\varphi}(\mathbf{x},t), see [15] for details.

The sign of the left (right) time robustness reflects the satisfaction of the specification. Formally, if θφ±(𝐱,t)>0\theta^{\pm}_{\varphi}(\mathbf{x},t)>0 then χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1 and if θφ±(𝐱,t)<0\theta^{\pm}_{\varphi}(\mathbf{x},t)<0 then χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=-1. In [15], we also showed that the absolute value of the left (right) time robustness measures how robustly a signal 𝐱\mathbf{x} satisfies a formula φ\varphi at time tt with respect to time shifts in the predicates of formula φ\varphi. In fact, one can asynchronously shift predicates in time to the left by up to |θφ+(𝐱,t)||\theta^{+}_{\varphi}(\mathbf{x},t)| and the specification will not change its satisfaction. Formally, for τ1,,τK\tau_{1},\ldots,\tau_{K}\in\mathbb{N}, where KK is the number of predicates, if maxkτk|θφ+(𝐱,t)|\max_{k}\tau_{k}\leq|\theta^{+}_{\varphi}(\mathbf{x},t)| then χφ(𝐱τ¯,t)=χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}^{\leftarrow\bar{\tau}},t)=\chi_{\varphi}(\mathbf{x},t), where τ¯=(τ1,,τK)\bar{\tau}=(\tau_{1},\ldots,\tau_{K}) and 𝐱τ¯\mathbf{x}^{\leftarrow\bar{\tau}} is a τ¯\bar{\tau}-early signal111The signal 𝐱τ¯\mathbf{x}^{\leftarrow\bar{\tau}} is called a τ¯\bar{\tau}-early signal if pkAP\forall p_{k}\in AP, t𝕋\forall t\in\mathbb{T}, χpk(𝐱τ¯,t)=χpk(𝐱,t+τk)\chi_{p_{k}}(\mathbf{x}^{\leftarrow\bar{\tau}},t)=\chi_{p_{k}}(\mathbf{x},t+\tau_{k}). The signal 𝐱τ¯\mathbf{x}^{\rightarrow\bar{\tau}} is called a τ¯\bar{\tau}-late signal if pkAP\forall p_{k}\in AP, t𝕋\forall t\in\mathbb{T}, χpk(𝐱τ¯,t)=χpk(𝐱,tτk)\chi_{p_{k}}(\mathbf{x}^{\rightarrow\bar{\tau}},t)=\chi_{p_{k}}(\mathbf{x},t-\tau_{k}), see [15].. Analogously, if one shifts predicates in time to the right by up to |θφ(𝐱,t)||\theta^{-}_{\varphi}(\mathbf{x},t)| then φ\varphi will not change its satisfaction. Formally, for τ1,,τK\tau_{1},\ldots,\tau_{K}\in\mathbb{N}, if maxkτk|θφ(𝐱,t)|\max_{k}\tau_{k}\leq|\theta^{-}_{\varphi}(\mathbf{x},t)| then χφ(𝐱τ¯,t)=χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}^{\rightarrow\bar{\tau}},t)=\chi_{\varphi}(\mathbf{x},t), where 𝐱τ¯\mathbf{x}^{\rightarrow\bar{\tau}} is a τ¯\bar{\tau}-late signal.

Example 1

In Fig. 1(a), we plotted a characteristic function of two predicates pp and qq and the formula φ:=pq\varphi:=p\vee q. The right time robustness is θpq(𝐱,t)=2\theta^{-}_{p\vee q}(\mathbf{x},t)=2 (since θp(𝐱,t)=2\theta^{-}_{p}(\mathbf{x},t)=2 and θq(𝐱,t)=1\theta^{-}_{q}(\mathbf{x},t)=1). Hence, the predicates can be shifted by up to 22 time steps to the right and the formula at time tt must still be satisfied, see Fig. 1(b). The left time robustness is θpq+(𝐱,t)=2\theta^{+}_{p\vee q}(\mathbf{x},t)=2 (since θp+(𝐱,t)=0\theta^{+}_{p}(\mathbf{x},t)=0 and θq+(𝐱,t)=2\theta^{+}_{q}(\mathbf{x},t)=2). The predicates can thus be shifted by up to 22 time steps to the left and the formula must still be satisfied.

III Temporal Robustness

Note that the left (right) time robustness is directional: its value provides a bound on how much predicates can be shifted to the left (right). Importantly, one cannot consider time shifts of some predicates to the left, while some other predicates are shifted to the right. For instance, note that if we shift a predicate pp in Fig.1(a) by 1 time step to the left, but a predicate qq by 2 time steps to the right, see Fig. 1(c), then for the shifted signal 𝐱τ¯\mathbf{x}_{\bar{\tau}}, where τ¯=(1,2)\bar{\tau}=(1,-2), the formula satisfaction at time tt changes, i.e., it holds that χφ(𝐱τ¯,t)=1χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}_{\bar{\tau}},t)=-1\not=\chi_{\varphi}(\mathbf{x},t). To overcome this limitation, we propose a temporal robustness which quantifies the amount of permissible time perturbation in both directions.

Definition III.1

The temporal robustness θφ(𝐱,t)\theta_{\varphi}(\mathbf{x},t) of an STL formula φ\varphi relative to a signal 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X at time t𝕋t\in\mathbb{T} is defined recursively as follows:

θp(𝐱,t)\displaystyle\theta_{p}(\mathbf{x},t) :=χp(𝐱,t)sup{τ0:t s.t. |tt|τ,\displaystyle:=\chi_{p}(\mathbf{x},t)\cdot\sup\{\tau\geq 0\ :\ \forall t^{\prime}\text{ s.t. }|t^{\prime}-t|\leq\tau,
χp(𝐱,t)=χp(𝐱,t)}\displaystyle\qquad\qquad\qquad\qquad\qquad\quad\chi_{p}(\mathbf{x},t^{\prime})=\chi_{p}(\mathbf{x},t)\}
θ¬φ(𝐱,t)\displaystyle\theta_{\neg\varphi}(\mathbf{x},t) :=θφ(𝐱,t)\displaystyle:=-\theta_{\varphi}(\mathbf{x},t)
θφ1φ2(𝐱,t)\displaystyle\theta_{\varphi_{1}\wedge\varphi_{2}}(\mathbf{x},t) :=inf(θφ1(𝐱,t),θφ2(𝐱,t))\displaystyle:=\inf\left(\theta_{\varphi_{1}}(\mathbf{x},t),\ \theta_{\varphi_{2}}(\mathbf{x},t)\right)
θφ1𝒰Iφ2(𝐱,t)\displaystyle\theta_{\varphi_{1}\mathcal{U}_{I}\varphi_{2}}(\mathbf{x},t) :=suptt+Iinf(θφ2(𝐱,t),inft′′[t,t)θφ1(𝐱,t′′))\displaystyle:=\sup_{t^{\prime}\in t+I}\inf\left(\theta_{\varphi_{2}}(\mathbf{x},t^{\prime}),\ \inf_{t^{\prime\prime}\in[t,t^{\prime})}\theta_{\varphi_{1}}(\mathbf{x},t^{\prime\prime})\right)

When robustness is evaluated at t=0t=0, we denote it as θφ(𝐱)\theta_{\varphi}(\mathbf{x}) as a shorthand notation for θφ(𝐱,0)\theta_{\varphi}(\mathbf{x},0).

We next show soundness of our definition, and remark that the proofs of our results are provided in the Appendix.

Theorem III.1 (Soundness)

For an STL formula φ\varphi, signal 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X and some time t𝕋t\in\mathbb{T}, it holds that

  1. 1.

    If θφ(𝐱,t)>0\theta_{\varphi}(\mathbf{x},t)>0, then χφ(𝐱,t)=+1\chi_{\varphi}(\mathbf{x},t)=+1.

  2. 2.

    If θφ(𝐱,t)<0\theta_{\varphi}(\mathbf{x},t)<0, then χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=-1.

Let us next analyze what information θφ(𝐱,t)\theta_{\varphi}(\mathbf{x},t) gives us about robustness. First going back to Example 1 and Fig. 1(a), the temporal robustness is θpq(𝐱,t)=1\theta_{p\vee q}(\mathbf{x},t)=1 (since θp(𝐱,t)=0\theta_{p}(\mathbf{x},t)=0 and θq(𝐱,t)=1\theta_{q}(\mathbf{x},t)=1) which gives us the desired result that the left (right) time robustness could not give us. Recall that we consider temporal robustness by time shifts in the characteristic functions χpk(𝐱,t)\chi_{p_{k}}(\mathbf{x},t) in an asynchronous manner, i.e., for each predicate pkp_{k} individually. Formally, for time shifts τ1,,τK\tau_{1},\ldots,\tau_{K}\in\mathbb{Z}, we say that a signal 𝐱τ¯\mathbf{x}_{\bar{\tau}} is an asynchronously shifted signal if χpk(𝐱τ¯,t)=χpk(𝐱,t+τk)\chi_{p_{k}}(\mathbf{x}_{\bar{\tau}},t)=\chi_{p_{k}}(\mathbf{x},t+\tau_{k}) for all t𝕋t\in\mathbb{T} and for all pkAP={p1,,pK}p_{k}\in AP=\{p_{1},\ldots,p_{K}\}. We next show how the temporal robustness θφ(𝐱,t)\theta_{\varphi}(\mathbf{x},t) relates to permissible time shifts τk\tau_{k} via 𝐱τ¯\mathbf{x}_{\bar{\tau}}.

Theorem III.2

Let φ\varphi be an STL formula built upon a predicate set AP={p1,,pK}AP=\{p_{1},\ldots,p_{K}\}. Let 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X be a signal and t𝕋t\in\mathbb{T} be a time point. For τ1,,τK𝕋\forall\tau_{1},\ldots,\tau_{K}\in\mathbb{T}, it holds that:

max(|τ1|,,|τK|)|θφ(𝐱,t)|χφ(𝐱τ¯,t)=χφ(𝐱,t).\max(|\tau_{1}|,\ldots,|\tau_{K}|)\leq|\theta_{\varphi}(\mathbf{x},t)|\ \ \Longrightarrow\ \ \chi_{\varphi}(\mathbf{x}_{\bar{\tau}},t)=\chi_{\varphi}(\mathbf{x},t).

For predicates, we show an interesting connection between the temporal robustness and the left (right) time robustness which follows directly from the definition.

Corollary III.3

Given a predicate pAPp\in AP and a signal 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X, for any t𝕋t\in\mathbb{T}, the following equality holds:

θp(𝐱,t)=χp(𝐱,t)min(|θp+(𝐱,t)|,|θp(𝐱,t)|)\theta_{p}(\mathbf{x},t)=\chi_{p}(\mathbf{x},t)\cdot\min\left(|\theta^{+}_{p}(\mathbf{x},t)|,\ |\theta^{-}_{p}(\mathbf{x},t)|\right) (2)

For a formula φ\varphi, it however does not hold that θφ(𝐱,t)=χφ(𝐱,t)min(|θφ+(𝐱,t)|,|θφ(𝐱,t)|)\theta_{\varphi}(\mathbf{x},t)=\chi_{\varphi}(\mathbf{x},t)\cdot\min\left(|\theta^{+}_{\varphi}(\mathbf{x},t)|,\ |\theta^{-}_{\varphi}(\mathbf{x},t)|\right), e.g., as in Example 1. However, we can prove the following relation between them.

Theorem III.4

Given an STL formula φ\varphi and a signal 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X, for any t𝕋t\in\mathbb{T}, |θφ(𝐱,t)||θφ±(𝐱,t)||\theta_{\varphi}(\mathbf{x},t)|\leq|\theta^{\pm}_{\varphi}(\mathbf{x},t)|.

Refer to caption
(a)
Refer to caption
(b)
Refer to caption
(c)
Figure 2: Timed Navigation. Maximization of various temporal robustness objectives JJ.

IV Temporally-Robust STL Control Synthesis

Let us next address the question of how to control a system to be temporally robust. We particularly consider linear systems and assume that the formula φ\varphi is build upon linear predicates. Our goal is to find an optimal control sequence 𝐮\mathbf{u}^{*} such that the corresponding trajectory 𝐱\mathbf{x} respects input and state constraints and satisfies the specification φ\varphi robustly while maximizing a desired cost function JJ.

Problem 1 (STL Control Synthesis)

Given an STL specification φ\varphi, time horizon222We assume that φ\varphi are bounded-time STL formulas with formula length len(φ)Hlen(\varphi)\leq H. For the formula length definition, we refer the reader to [5]. HH, discrete-time linear control system with initial condition x0X0x_{0}\in X_{0}, solve

𝐮=argmax𝐮\displaystyle\mathbf{u}^{*}=\underset{\mathbf{u}}{\text{argmax}} J(x0,𝐮,𝐱,φ)\displaystyle\quad J\left(x_{0},\,\mathbf{u},\,\mathbf{x},\,\varphi\right)
s.t. xt+1=Fxt+Gut,utU,t=0,,H1\displaystyle\quad x_{t+1}=Fx_{t}+Gu_{t},\ u_{t}\in U,\ t=0,\ldots,H-1
x0X0,xtX,t=1,,H\displaystyle\quad x_{0}\in X_{0},\quad x_{t}\in X,\ t=1,\ldots,H
χφ(𝐱)=1\displaystyle\quad\chi_{\varphi}(\mathbf{x})=1

where J(x0,𝐮,𝐱,φ)J\left(x_{0},\,\mathbf{u},\,\mathbf{x},\,\varphi\right) is the desired cost function. In robust STL control synthesis the cost function depends on a specific robustness of interest, e.g. spatial robustness [2], left (right) time robustness [14], and in our particular case, temporal robustness.

To solve Problem 1 with J=θφ(𝐱)J=\theta_{\varphi}(\mathbf{x}), we present a mixed-integer linear (MILP) encoding of the temporal robustness θφ(𝐱)\theta_{\varphi}(\mathbf{x}). Recall that by Def. III.1, θφ(𝐱,t)\theta_{\varphi}(\mathbf{x},t) is defined recursively on the structure of φ\varphi. Below, we describe the main milestone of the overall MILP encoding, that is the encoding of predicates θp(𝐱,t)\theta_{p}(\mathbf{x},t). From Cor. III.3 and Thm. III.1, we get that

θp(𝐱,t)={min(θp+(𝐱,t),θp(𝐱,t))if χp(𝐱,t)=1max(θp+(𝐱,t),θp(𝐱,t))if χp(𝐱,t)=1\theta_{p}(\mathbf{x},t)=\begin{cases}\min\left(\theta^{+}_{p}(\mathbf{x},t),\,\theta^{-}_{p}(\mathbf{x},t)\right)&\text{if }\chi_{p}(\mathbf{x},t)=1\\ \max\left(\theta^{+}_{p}(\mathbf{x},t),\,\theta^{-}_{p}(\mathbf{x},t)\right)&\text{if }\chi_{p}(\mathbf{x},t)=-1\end{cases} (3)

The complete MILP encoding of θp+(𝐱,t)\theta^{+}_{p}(\mathbf{x},t), θp(𝐱,t)\theta^{-}_{p}(\mathbf{x},t) and χp(𝐱,t)\chi_{p}(\mathbf{x},t) is presented in [14]. The encoding in [14] introduces binary variables zt{0,1}z_{t}\in\{0,1\} to represent the Boolean satisfaction of the given predicate pp at every time point tt within the horizon and also introduces the integer counter variables ct1c_{t}^{1} and ct0c_{t}^{0} to enumerate sequential time points in the future and in the past for which χp(𝐱,t)\chi_{p}(\mathbf{x},t) does not change its value.

Next, having encoded the left θp+(𝐱,t)\theta^{+}_{p}(\mathbf{x},t) and right θp(𝐱,t)\theta^{-}_{p}(\mathbf{x},t) temporal robustness of a predicate pp, the min\min and max\max operators used in (3) can be encoded utilizing the rules from [5]. For instance, if θp+(𝐱,t)=r1\theta^{+}_{p}(\mathbf{x},t)=r_{1} and θp(𝐱,t)=r2\theta^{-}_{p}(\mathbf{x},t)=r_{2}, then min(θp+(𝐱,t),θp(𝐱,t))=r\min(\theta^{+}_{p}(\mathbf{x},t),\ \theta^{-}_{p}(\mathbf{x},t))=r if and only if:

riM(1bi)rri,i{1,2}\displaystyle r_{i}-M(1-b_{i})\leq r\leq r_{i},\quad\forall i\in\{1,2\} (4)
b1+b2=1\displaystyle b_{1}+b_{2}=1

where bi={0,1}b_{i}=\{0,1\} are introduced binary variables and MM is a big-MM parameter. The max\max operator can be encoded similarly.

Thus, we obtain the MILP encoding of the two variables from (3), νt:=min(θp+(𝐱,t),θp(𝐱,t)){\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@gray@stroke{0}\pgfsys@color@gray@fill{0}\nu_{t}}:=\min\left(\theta^{+}_{p}(\mathbf{x},t),\ \theta^{-}_{p}(\mathbf{x},t)\right) and ωt:=max(θp+(𝐱,t),θp(𝐱,t)){\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@gray@stroke{0}\pgfsys@color@gray@fill{0}\omega_{t}}:=\max\left(\theta^{+}_{p}(\mathbf{x},t),\,\theta^{-}_{p}(\mathbf{x},t)\right). Using (3) and the binary variables zt:=χp(𝐱,t)+12z_{t}:=\frac{\chi_{p}(\mathbf{x},t)+1}{2}, the temporal robustness θp(𝐱,t)\theta_{p}(\mathbf{x},t) is defined as333Note that (5) can be expressed as a set of MILP constraints according to [14, Lemma 4.1].

θp(𝐱,t)=ztνt+(1zt)ωt.\theta_{p}(\mathbf{x},t)=z_{t}\nu_{t}+(1-z_{t})\omega_{t}.\vspace{-3pt} (5)

We can now use the MILP encoding for the remaining Boolean and temporal operators as originally presented in [5]. In Section V and Table I we present a comparison analysis of the performance and computation times of solving Problem 1 for various temporal robustness functions, such as J=θφ(𝐱)J=\theta_{\varphi}(\mathbf{x}) and J=θφ±(𝐱)J=\theta^{\pm}_{\varphi}(\mathbf{x}).

V Experimental Results

Mission Objective JJ Comp. Time (s) Simulations
Scen. 1 θφ(𝐱)=4\theta_{\varphi}(\mathbf{x}^{*})=4 12.3612.36 https://tinyurl.com/temp-rob
θφ+(𝐱)=10\theta^{+}_{\varphi}(\mathbf{x}^{*})=10 2.952.95 https://tinyurl.com/temp-left
θφ(𝐱)=6\theta^{-}_{\varphi}(\mathbf{x}^{*})=6 4.784.78 https://tinyurl.com/temp-right
Scen. 2 θφ(𝐱)=3\theta_{\varphi}(\mathbf{x}^{*})=3 35.7435.74 https://tinyurl.com/uav-surv
TABLE I: Summary of experimental results.

In this section, we present two case studies in which we solve the control-synthesis problem 1 for various cost functions. All simulations were performed on an Intel Core i7-9750H 6-core processor with 16GB RAM. The code was implemented in MATLAB using YALMIP [29] with Gurobi 9.1 [30] as the solver. The computation times and links to animations are reported in Table I.

Scenario 1 - Timed Navigation. Consider an autonomous agent with 2D position and velocity x:=(pos,vel)4x:=(\text{pos},\,\text{vel})\in\mathbb{R}^{4} where (pos0,vel0):=(0,6,0,0)(\text{pos}_{0},\text{vel}_{0}):=(0,6,0,0). We consider the dynamics

xt+1=Fxt+Gut,ut20x_{t+1}=Fx_{t}+Gu_{t},\quad||u_{t}||_{\infty}\leq 20 (6)

where F:=I2[10.101]F:=I_{2}\otimes\begin{bmatrix}1&0.1\\ 0&1\end{bmatrix} and G:=[0.0050.1]G:=\begin{bmatrix}0.005\\ 0.1\end{bmatrix}. The agent should first reach zone AA, see Fig. 2 for an illustration, any time within the time interval [10,14][10,14] and then reach zone BB any time within [19,23][19,23] as captured by the STL specification:

φ:=[10,14](posA)[19,23](posB)\varphi:=\Diamond_{[10,14]}\left(\text{pos}\in A\right)\ \wedge\ \Diamond_{[19,23]}\left(\text{pos}\in B\right) (7)

where A:=(x4)(x8)(y4)(y8)A:=(x\geq 4)\wedge(x\leq 8)\wedge(y\geq 4)\wedge(y\leq 8) and B:=(x6)(x10)(y12)(y16)B:=(x\geq 6)\wedge(x\leq 10)\wedge(y\geq 12)\wedge(y\leq 16).

We first solve Problem 1 for J=θφ(𝐱)J=\theta_{\varphi}(\mathbf{x}) and plot the resulting trajectory 𝐱\mathbf{x}^{*} in Fig. 2(a), and obtain θφ(𝐱)=4\theta_{\varphi}(\mathbf{x}^{*})=4. From the characteristic function plotted in Fig. 2(a), one can see that if the agent starts the execution of the trajectory by up to 4 time steps earlier or later, the mission specification φ\varphi will still be satisfied, since for such a shifted trajectory there will be at least one point in time, where the agent is within zone AA and BB within the specified time intervals (depicted in grey color). This result supports Thm. III.2 derived previously. For comparison, the calculated left and right time robustness are θφ+(𝐱)=6\theta^{+}_{\varphi}(\mathbf{x}^{*})=6 and θφ(𝐱)=4\theta^{-}_{\varphi}(\mathbf{x}^{*})=4, respectively. One can see, that indeed, θφ(𝐱)θφ±(𝐱)\theta_{\varphi}(\mathbf{x}^{*})\leq\theta^{\pm}_{\varphi}(\mathbf{x}^{*}) which is expected by Thm. III.4.

To compare the system’s behavior under different cost functions in Problem 1, we use the left time robustness J=θφ+(𝐱)J=\theta^{+}_{\varphi}(\mathbf{x}) and the right time robustness J=θφ(𝐱)J=\theta^{-}_{\varphi}(\mathbf{x}) as control objectives. We next show that the temporal robustness is preferred over the left and right time robustness when dealing with systems where the direction of perturbations in time is unknown.

The results of maximizing the left time robustness are presented in Fig. 2(b) where J=θφ+(𝐱)=10J^{*}=\theta^{+}_{\varphi}(\mathbf{x}^{*})=10. It is expected that the maximization of the left time robustness leads to a trajectory for which the agent reaches the desired goal within the required time bounds and then it stays there for as long as possible. In Fig. 2(b) this is represented as χposA(𝐱,9)==χposA(𝐱,20)=1\chi_{\text{pos}\in A}(\mathbf{x}^{*},9)=\ldots=\chi_{\text{pos}\in A}(\mathbf{x}^{*},20)=1 and χposB(𝐱,23)==χposB(𝐱,34)=1\chi_{\text{pos}\in B}(\mathbf{x}^{*},23)=\ldots=\chi_{\text{pos}\in B}(\mathbf{x}^{*},34)=1. This means that if the agent starts the execution earlier by up to 10 time units (the trajectory is shifted to the left), the mission will still be satisfied. However, any perturbation that leads to a trajectory shifted to the right results in a violation of the specification, θφ(𝐱)=θ(𝐱)=0\theta_{\varphi}(\mathbf{x}^{*})=\theta^{-}(\mathbf{x}^{*})=0. Indeed, in this case, the agent will not be able to visit the zone BB within [19,23][19,23] time units, see Fig. 2(b).

The results of maximizing the right time robustness are presented in Fig. 2(c) where J=θφ(𝐱)=6J^{*}=\theta^{-}_{\varphi}(\mathbf{x}^{*})=6. Note that in this case, the agent reaches both zones as soon as possible, see Fig. 2(c). We obtain the temporal robustness and left time robustness of θφ(𝐱)=θφ+(𝐱)=3\theta_{\varphi}(\mathbf{x}^{*})=\theta^{+}_{\varphi}(\mathbf{x}^{*})=3. We can again see that θφ(𝐱)θφ±(𝐱)\theta_{\varphi}(\mathbf{x}^{*})\leq\theta^{\pm}_{\varphi}(\mathbf{x}^{*}) which is consistent with Thm. III.4. Also note that since the evaluated left time robustness θφ+(𝐱)=3\theta^{+}_{\varphi}(\mathbf{x}^{*})=3, only the predicate shifts up to 33 time steps to the left still guarantee the satisfaction of the specification. From Fig. 2(c) one can see that the shift by 44 time steps to the left leads to an agent leaving both regions of interest sooner than the predefined intervals, therefore, the mission is violated.

Refer to caption
(a)
Refer to caption
(b)
Refer to caption
(c)
Refer to caption
(d)
Figure 3: Timed Multi-UAV Surveillance. 2D and 3D representation of the map from different angles. Optimal trajectory 𝐱\mathbf{x}^{*} is obtained by the maximization of temporal robustness using Problem 1. Found maximum temporal robustness is θφ(𝐱)=3\theta_{\varphi}(\mathbf{x}^{*})=3.
Refer to caption
Figure 4: Timed Multi-UAV Surveillance. Various sub-formulas satisfaction over an optimal signal 𝐱\mathbf{x}^{*}. Found maximum temporal robustness is θφ(𝐱)=3\theta_{\varphi}(\mathbf{x}^{*})=3.

Scenario 2 - Timed Multi-UAV Surveillance. We now consider two unmanned aerial vehicles (UAVs) in a surveillance mission. Particularly, consider the ddth agent with state x(d):=(pos(d),vel(d))6x^{(d)}:=(\text{pos}^{(d)},\text{vel}^{(d)})\in\mathbb{R}^{6} where pos and vel are the 3D position and velocity, see Fig. 3. The initial states are set to be (pos0(1),vel0(1)):=(1,14,0,0,0,0)(\text{pos}_{0}^{(1)},\text{vel}_{0}^{(1)}):=(1,14,0,0,0,0) and (pos0(2),vel0(2)):=(9,1,0,0,0,0)(\text{pos}_{0}^{(2)},\text{vel}_{0}^{(2)}):=(9,1,0,0,0,0). Let the dynamics of both UAVs be of the form xt+1(d)=Fxt(d)+Gut(d)x^{(d)}_{t+1}=Fx^{(d)}_{t}+Gu^{(d)}_{t} where FF and GG are obtained through the linearization of the UAV dynamics, see [31] for more details. The inputs ut(d)3u^{(d)}_{t}\in\mathbb{R}^{3} are the thrust, roll, and pitch of the UAV.

The UAVs are tasked with a persistent surveillance mission of the region CC, see Fig. 3, while each of them must visit their individually assigned regions AA and BB. The overall specification is of the form φ:=i=13φi\varphi:=\bigwedge_{i=1}^{3}\varphi_{i} where:

  1. 1.

    UAV 1 should reach and stay in zone AA all the time from 2929 to 3131 time units, φ1:=[29,31](pos(1)A)\varphi_{1}:=\square_{[29,31]}\left(\text{pos}^{(1)}\in A\right).

  2. 2.

    UAV 2 should eventually reach zone BB any time between 0 and 2020 time units, φ2:=[0,20](pos(2)B)\varphi_{2}:=\Diamond_{[0,20]}\left(\text{pos}^{(2)}\in B\right).

  3. 3.

    Region CC should be surveilled, i.e. either one or both UAVs must be within CC all the time from 1111 to 3030 time units, φ3:=[11,30](pos(1)Cpos(2)C)\varphi_{3}:=\square_{[11,30]}\left(\text{pos}^{(1)}\in C\ \vee\ \text{pos}^{(2)}\in C\right).

Similarly to the 2D case, the regions AA, BB and CC are defined via a set of conjunctions over linear predicates.

We solve Problem 1 for the temporal robustness objective which leads to the optimal solution J=θφ(𝐱)=3J^{*}=\theta_{\varphi}(\mathbf{x}^{*})=3. Such optimal solution due to Thm. III.2 guarantees that for any shifted signal 𝐱τ¯\mathbf{x}_{\bar{\tau}} with max(|τ1|,|τ2|)3\max(|\tau_{1}|,|\tau_{2}|)\leq 3, the mission specification will be satisfied. Take a look at Fig. 4. For the corner case, if one shifts the orange line to the left by 33 time units and the violet one to the right by 33 time units, i.e. τ¯=(3,3)\bar{\tau}=(3,-3), then one can see that χpos(1)C(𝐱τ¯,5)==χpos(1)C(𝐱τ¯,16)=1\chi_{\text{pos}^{(1)}\in C}(\mathbf{x}_{\bar{\tau}},5)=\ldots=\chi_{\text{pos}^{(1)}\in C}(\mathbf{x}_{\bar{\tau}},16)=1 and χpos(2)C(𝐱τ¯,17)==χpos(2)C(𝐱τ¯,34)=1\chi_{\text{pos}^{(2)}\in C}(\mathbf{x}_{\bar{\tau}},17)=\ldots=\chi_{\text{pos}^{(2)}\in C}(\mathbf{x}_{\bar{\tau}},34)=1, therefore, χφ3(𝐱τ¯)=1\chi_{\varphi_{3}}(\mathbf{x}_{\bar{\tau}})=1. Analogously, φ1\varphi_{1} and φ2\varphi_{2} are satisfied by 𝐱τ¯\mathbf{x}_{\bar{\tau}}, therefore, the overall satisfaction of φ\varphi is indeed preserved by the shift τ¯=(3,3)\bar{\tau}=(3,-3).

VI Conclusions

We proposed a temporal robustness for STL specifications to account for forward and backward temporal perturbations. We showed the desirable properties of this new robustness notion, including soundness and the meaning of the temporal robustness in terms of permissible forward and backward time shifts. We then designed control laws for linear systems that maximize the temporal robustness objective using mixed-integer linear programming (MILP). Finally, we presented two case studies to illustrate how the proposed temporal robustness accounts for timing uncertainties.

References

  • [1] O. Maler and D. Nickovic. Monitoring temporal properties of continuous signals. In Formal Techniques, Modelling and Analysis of Timed and Fault-Tolerant Systems, pages 152–166. Springer, 2004.
  • [2] G. E. Fainekos and G. J. Pappas. Robustness of temporal logic specifications for continuous-time signals. Theoretical Computer Science, 410(42):4262–4291, 2009.
  • [3] Y. Gilpin, V. Kurtz, and H. Lin. A smooth robustness measure of signal temporal logic for symbolic control. IEEE Control Systems Letters, 5(1):241–246, 2020.
  • [4] P. Varnai and D. V. Dimarogonas. On robustness metrics for learning STL tasks. In 2020 American Control Conference (ACC), pages 5394–5399. IEEE, 2020.
  • [5] V. Raman, A. Donzé, M. Maasoumy, R. M. Murray, A. Sangiovanni-Vincentelli, and S. A. Seshia. Model predictive control with signal temporal logic specifications. In 53rd IEEE Conference on Decision and Control, pages 81–87. IEEE, 2014.
  • [6] A. T. Buyukkocak, D. Aksaray, and Y. Yazıcıoğlu. Planning of heterogeneous multi-agent systems under signal temporal logic specifications with integral predicates. IEEE Robotics and Automation Letters, 6(2):1375–1382, 2021.
  • [7] V. Kurtz and H. Lin. Mixed-integer programming for signal temporal logic with fewer binary variables. IEEE Control Systems Letters, 6:2635–2640, 2022.
  • [8] N. Mehdipour, C.-I. Vasile, and C. Belta. Average-based robustness for continuous-time signal temporal logic. In 2019 IEEE 58th Conference on Decision and Control (CDC), pages 5312–5317. IEEE, 2019.
  • [9] Y. V. Pant, H. Abbas, R. A. Quaye, and R. Mangharam. Fly-by-logic: control of multi-drone fleets with temporal logic objectives. In 2018 ACM/IEEE 9th International Conference on Cyber-Physical Systems (ICCPS), pages 186–197. IEEE, 2018.
  • [10] L. Lindemann and D. V. Dimarogonas. Control barrier functions for signal temporal logic tasks. IEEE control systems letters, 3(1):96–101, 2018.
  • [11] M. Charitidou and D. V. Dimarogonas. Barrier function-based model predictive control under signal temporal logic specifications. In European Control Conference, Rotterdam, the Netherlands, accepted, 2021.
  • [12] M. Cai, E. Aasi, C. Belta, and C.-I. Vasile. Overcoming exploration: Deep reinforcement learning in complex environments from temporal logic specifications. arXiv preprint arXiv:2201.12231, 2022.
  • [13] A. Donzé and O. Maler. Robust satisfaction of temporal logic over real-valued signals. In Proceedings of the International Conference on Formal Modeling and Analysis of Timed Systems, 2010.
  • [14] A. Rodionova, L. Lindemann, M. Morari, and G. J. Pappas. Time-robust control for STL specifications. In 2021 60th IEEE Conference on Decision and Control (CDC), pages 572–579, 2021.
  • [15] A. Rodionova, L. Lindemann, M. Morari, and G. J. Pappas. Temporal robustness of temporal logic specifications: Analysis and control design. arXiv preprint arXiv:2203.15661, 2022.
  • [16] T. Akazaki and I. Hasuo. Time robustness in MTL and expressivity in hybrid system falsification. In International Conference on Computer Aided Verification, pages 356–374. Springer, 2015.
  • [17] J. V. Deshmukh, R. Majumdar, and V. S. Prabhu. Quantifying conformance using the skorokhod metric. In International Conference on Computer Aided Verification, pages 234–250. Springer, 2015.
  • [18] H. Abbas, H. Mittelmann, and G. Fainekos. Formal property verification in a conformance testing framework. In 2014 Twelfth ACM/IEEE Conference on Formal Methods and Models for Codesign (MEMOCODE), pages 155–164. IEEE, 2014.
  • [19] A. T. Buyukkocak and D. Aksaray. Temporal relaxation of signal temporal logic specifications for resilient control synthesis. arXiv preprint arXiv:2208.08384, 2022.
  • [20] Y. E. Sahin, P. Nilsson, and N. Ozay. Synchronous and asynchronous multi-agent coordination with cLTL+ constraints. In 2017 IEEE 56th Annual Conference on Decision and Control (CDC), pages 335–342. IEEE, 2017.
  • [21] Y. E. Sahin, P. Nilsson, and N. Ozay. Multirobot coordination with counting temporal logics. IEEE Transactions on Robotics, 36(4):1189–1206, 2019.
  • [22] L. Lindemann, A. Rodionova, and G. Pappas. Temporal robustness of stochastic signals. In 25th ACM International Conference on Hybrid Systems: Computation and Control, pages 1–11, 2022.
  • [23] D. Selvaratnam, M. Cantoni, J. Davoren, and I. Shames. MITL verification under timing uncertainty. arXiv preprint arXiv:2204.10493, 2022.
  • [24] Z. Lin and J. S. Baras. Optimization-based motion planning and runtime monitoring for robotic agent with space and time tolerances. In 21st IFAC World Congress, pages 1900–1905, 2020.
  • [25] C.-I. Vasile, D. Aksaray, and C. Belta. Time window temporal logic. Theoretical Computer Science, 691:27–54, 2017.
  • [26] D. Kamale, E. Karyofylli, and C.-I. Vasile. Automata-based optimal planning with relaxed specifications. In 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6525–6530. IEEE, 2021.
  • [27] F. Penedo, C.-I. Vasile, and C. Belta. Language-guided sampling-based planning using temporal relaxation. In Algorithmic Foundations of Robotics XII, pages 128–143. Springer, 2020.
  • [28] H. Chen, S. Lin, S. A. Smolka, and N. Paoletti. An STL-based formulation of resilience in cyber-physical systems. arXiv preprint arXiv:2205.03961, 2022.
  • [29] J. Lofberg. YALMIP: A toolbox for modeling and optimization in matlab. In 2004 IEEE international conference on robotics and automation (IEEE Cat. No. 04CH37508), pages 284–289. IEEE, 2004.
  • [30] L. Gurobi Optimization. Gurobi optimizer reference manual, 2021.
  • [31] T. Luukkonen. Modelling and control of quadcopter. Independent research project in applied mathematics, Espoo, 22:22, 2011.

APPENDIX

VI-A Proof of Theorem III.1

The proof is by induction on the structure of φ\varphi. We are going to prove the item 1. Item 2 can be proven analogously. We will also only show the predicate case, i.e., the case when φ=p\varphi=p. The other operators, i.e., when φ=¬φ|φ1φ2|φ1𝒰Iφ2\varphi=\neg\varphi\,|\,\varphi_{1}\wedge\varphi_{2}\,|\,\varphi_{1}\mathcal{U}_{I}\varphi_{2}, can be done analogously to [14, Thm. 2.1].

Item 1. We must show θp(𝐱,t)>0χp(𝐱,t)=1\theta_{p}(\mathbf{x},t)>0\ \Longrightarrow\ \chi_{p}(\mathbf{x},t)=1. Since we are given that θp(𝐱,t)>0\theta_{p}(\mathbf{x},t)>0 and in Def. III.1 τ0\tau\geq 0, then χp(𝐱,t)>0\chi_{p}(\mathbf{x},t)>0 and thus, since χ{±1}\chi\in\{\pm 1\}, χp(𝐱,t)=1\chi_{p}(\mathbf{x},t)=1.

VI-B Proof of Theorem III.2

Let φ\varphi be an STL formula built upon a predicate set AP={p1,,pK}AP=\{p_{1},\ldots,p_{K}\}, 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X be a signal and t𝕋t\in\mathbb{T} be a time point. We want to show that for τ1,,τK𝕋\forall\tau_{1},\ldots,\tau_{K}\in\mathbb{T}, such that max(|τ1|,,|τK|)|θφ(𝐱,t)|\max(|\tau_{1}|,\ldots,|\tau_{K}|)\leq|\theta_{\varphi}(\mathbf{x},t)|, it holds that χφ(𝐱τ¯,t)=χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}_{\bar{\tau}},t)=\chi_{\varphi}(\mathbf{x},t). The proof is by induction on the structure of φ\varphi.

Case φ=pk\varphi=p_{k}. Denote |θpk(𝐱,t)|=r|\theta_{p_{k}}(\mathbf{x},t)|=r. Then by Def. III.1, κ[r,r]\forall\kappa\in[-r,\ r], χpk(𝐱,t+κ)=χpk(𝐱,t)\chi_{p_{k}}(\mathbf{x},t+\kappa)=\chi_{p_{k}}(\mathbf{x},t). We get that χpk(𝐱τ¯,t)=χpk(𝐱,t+τk)=χpk(𝐱,t)\chi_{p_{k}}(\mathbf{x}_{\bar{\tau}},t)=\chi_{p_{k}}(\mathbf{x},t+\tau_{k})=\chi_{p_{k}}(\mathbf{x},t), if τk[r,r]\tau_{k}\in[-r,r], i.e., if |τk|r|\tau_{k}|\leq r. Since we assume that max(|τ1|,,|τK|)r\max(|\tau_{1}|,\ldots,|\tau_{K}|)\leq r, then |τk|r|\tau_{k}|\leq r and thus χpk(𝐱τ¯,t)=χpk(𝐱,t)\chi_{p_{k}}(\mathbf{x}_{\bar{\tau}},t)=\chi_{p_{k}}(\mathbf{x},t).

Case φ=¬φ1\varphi=\neg\varphi_{1}. By definition, |θφ1(𝐱,t)|=|θφ(𝐱,t)||\theta_{\varphi_{1}}(\mathbf{x},t)|=|\theta_{\varphi}(\mathbf{x},t)|. We are given that max(|τ1|,,|τK|)|θφ(𝐱,t)|=|θφ1(𝐱,t)|\max(|\tau_{1}|,\ldots,|\tau_{K}|)\leq|\theta_{\varphi}(\mathbf{x},t)|=|\theta_{\varphi_{1}}(\mathbf{x},t)|. The induction hypothesis leads to χφ1(𝐱τ¯,t)=χφ1(𝐱,t)\chi_{\varphi_{1}}(\mathbf{x}_{\bar{\tau}},t)=\chi_{\varphi_{1}}(\mathbf{x},t). Thus, χφ(𝐱τ¯,t)=χφ1(𝐱τ¯,t)=χφ1(𝐱,t)=χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}_{\bar{\tau}},t)=-\chi_{\varphi_{1}}(\mathbf{x}_{\bar{\tau}},t)=-\chi_{\varphi_{1}}(\mathbf{x},t)=\chi_{\varphi}(\mathbf{x},t).

Case φ=φ1φ2\varphi=\varphi_{1}\wedge\varphi_{2}. We will only show the proof for the case when χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1, since the case when χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=-1 can be shown analogously. Since χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1, we know that χφi(𝐱,t)=1\chi_{\varphi_{i}}(\mathbf{x},t)=1 for both i{1,2}i\in\{1,2\} and also due to Thm. III.1, θφ(𝐱,t)0\theta_{\varphi}(\mathbf{x},t)\geq 0 and θφi(𝐱,t)0\theta_{\varphi_{i}}(\mathbf{x},t)\geq 0. Denote θφ(𝐱,t)=r\theta_{\varphi}(\mathbf{x},t)=r. Therefore, by Def. III.1, θφi(𝐱,t)r\theta_{\varphi_{i}}(\mathbf{x},t)\geq r for both i{1,2}i\in\{1,2\}. We are given τ1,,τK\tau_{1},\ldots,\tau_{K} such that max(|τ1|,,|τK|)r\max(|\tau_{1}|,\ldots,|\tau_{K}|)\leq r. Therefore since |θφi(𝐱,t)|r|\theta_{\varphi_{i}}(\mathbf{x},t)|\geq r then by the induction hypothesis for both i{1,2}i\in\{1,2\}, for given τ1,,τK\tau_{1},\ldots,\tau_{K} it holds that χφi(𝐱τ¯,t)=1\chi_{\varphi_{i}}(\mathbf{x}_{\bar{\tau}},t)=1. Thus, χφ(𝐱τ¯,t)=inf(χφ1(𝐱τ¯,t),χφ2(𝐱τ¯,t))=1=χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}_{\bar{\tau}},t)=\inf(\chi_{\varphi_{1}}(\mathbf{x}_{\bar{\tau}},t),\,\chi_{\varphi_{2}}(\mathbf{x}_{\bar{\tau}},t))=1=\chi_{\varphi}(\mathbf{x},t).

Case φ=φ1𝒰Iφ2\varphi=\varphi_{1}\mathcal{U}_{I}\varphi_{2}. We will again only show the proof for the case when χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1. Due to Thm. III.1, θφ(𝐱,t)0\theta_{\varphi}(\mathbf{x},t)\geq 0. Denote θφ(𝐱,t)=r\theta_{\varphi}(\mathbf{x},t)=r. Then by Def. III.1, tt+I\exists t^{\prime}\in t+I, such that θφ2(𝐱,t)r\theta_{\varphi_{2}}(\mathbf{x},t^{\prime})\geq r and t′′[t,t)\forall t^{\prime\prime}\in[t,t^{\prime}), θφ1(𝐱,t′′)r\theta_{\varphi_{1}}(\mathbf{x},t^{\prime\prime})\geq r. Therefore, using the induction hypothesis and Thm. III.1, we get that tt+I\exists t^{\prime}\in t+I, χφ2(𝐱τ¯,t)=χφ2(𝐱,t)=1\chi_{\varphi_{2}}(\mathbf{x}_{\bar{\tau}},t^{\prime})=\chi_{\varphi_{2}}(\mathbf{x},t^{\prime})=1 and t′′[t,t)\forall t^{\prime\prime}\in[t,t^{\prime}), χφ1(𝐱τ¯,t′′)=χφ1(𝐱,t′′)=1\chi_{\varphi_{1}}(\mathbf{x}_{\bar{\tau}},t^{\prime\prime})=\chi_{\varphi_{1}}(\mathbf{x},t^{\prime\prime})=1. But then χφ(𝐱τ¯,t)=suptt+Iinf(χφ2(𝐱τ¯,t),inft′′[t,t)χφ1(𝐱,t′′))=1=χφ(𝐱,t)\chi_{\varphi}(\mathbf{x}_{\bar{\tau}},t)=\sup_{t^{\prime}\in t+I}\inf\left(\chi_{\varphi_{2}}(\mathbf{x}_{\bar{\tau}},t^{\prime}),\ \inf_{t^{\prime\prime}\in[t,t^{\prime})}\chi_{\varphi_{1}}(\mathbf{x},t^{\prime\prime})\right)=1=\chi_{\varphi}(\mathbf{x},t).

VI-C Proof of Theorem III.4

Let φ\varphi be an STL formula, 𝐱:𝕋X\mathbf{x}:\mathbb{T}\rightarrow X be a signal, and t𝕋t\in\mathbb{T} be a time point. We want to prove that |θφ(𝐱,t)||θφ±(𝐱,t)||\theta_{\varphi}(\mathbf{x},t)|\leq|\theta^{\pm}_{\varphi}(\mathbf{x},t)|. The proof is by induction on the structure of φ\varphi.

Case φ=p\varphi=p. From Cor. III.3 we know that θp(𝐱,t)=χp(𝐱,t)min(|θp+(𝐱,t)|,|θp(𝐱,t)|)\theta_{p}(\mathbf{x},t)=\chi_{p}(\mathbf{x},t)\cdot\min\left(|\theta^{+}_{p}(\mathbf{x},t)|,\ |\theta^{-}_{p}(\mathbf{x},t)|\right). Therefore, |θp(𝐱,t)|=min(|θp+(𝐱,t)|,|θp(𝐱,t)|)|θp±(𝐱,t)||\theta_{p}(\mathbf{x},t)|=\min\left(|\theta^{+}_{p}(\mathbf{x},t)|,\ |\theta^{-}_{p}(\mathbf{x},t)|\right)\leq|\theta^{\pm}_{p}(\mathbf{x},t)|.

Case φ=¬φ1\varphi=\neg\varphi_{1}. Due to Def. III.1 and the induction hypothesis for φ1\varphi_{1}, |θ¬φ1(𝐱,t)|=|θφ1(𝐱,t)||θφ1±(𝐱,t)|=|θ¬φ1±(𝐱,t)||\theta_{\neg\varphi_{1}}(\mathbf{x},t)|=|\theta_{\varphi_{1}}(\mathbf{x},t)|\leq|\theta^{\pm}_{\varphi_{1}}(\mathbf{x},t)|=|\theta^{\pm}_{\neg\varphi_{1}}(\mathbf{x},t)|.

Case φ=φ1φ2\varphi=\varphi_{1}\wedge\varphi_{2}. We will again only show the proof for the case when χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1. Since χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1 then we know that χφi(𝐱,t)=1\chi_{\varphi_{i}}(\mathbf{x},t)=1 for both i{1,2}i\in\{1,2\} and also due to Thm. III.1, θφ(𝐱,t)0\theta_{\varphi}(\mathbf{x},t)\geq 0 and θφi(𝐱,t)0\theta_{\varphi_{i}}(\mathbf{x},t)\geq 0. By induction hypothesis, for both i{1,2}i\in\{1,2\}, θφi(𝐱,t)θφi±(𝐱,t)\theta_{\varphi_{i}}(\mathbf{x},t)\leq\theta^{\pm}_{\varphi_{i}}(\mathbf{x},t). By Def. III.1, θφ(𝐱,t)=inf(θφ1(𝐱,t),θφ2(𝐱,t))θφi(𝐱,t)\theta_{\varphi}(\mathbf{x},t)=\inf(\theta_{\varphi_{1}}(\mathbf{x},t),\ \theta_{\varphi_{2}}(\mathbf{x},t))\leq\theta_{\varphi_{i}}(\mathbf{x},t), for both i{1,2}i\in\{1,2\}. Thus, θφ(𝐱,t)θφi(𝐱,t)inf(θφ1±(𝐱,t),θφ2±(𝐱,t))=θφ±(𝐱,t)\theta_{\varphi}(\mathbf{x},t)\leq\theta_{\varphi_{i}}(\mathbf{x},t)\leq\inf(\theta^{\pm}_{\varphi_{1}}(\mathbf{x},t),\ \theta^{\pm}_{\varphi_{2}}(\mathbf{x},t))=\theta^{\pm}_{\varphi}(\mathbf{x},t).

Case φ=φ1𝒰Iφ2\varphi=\varphi_{1}\mathcal{U}_{I}\varphi_{2}. We will again only show the proof for the case when χφ(𝐱,t)=1\chi_{\varphi}(\mathbf{x},t)=1. Due to Thm. III.1, θφ(𝐱,t)0\theta_{\varphi}(\mathbf{x},t)\geq 0. Denote θφ(𝐱,t)=r\theta_{\varphi}(\mathbf{x},t)=r. Then by Def. III.1, tt+I\exists t^{\prime}\in t+I, such that θφ2(𝐱,t)r\theta_{\varphi_{2}}(\mathbf{x},t^{\prime})\geq r and t′′[t,t)\forall t^{\prime\prime}\in[t,t^{\prime}), θφ1(𝐱,t′′)r\theta_{\varphi_{1}}(\mathbf{x},t^{\prime\prime})\geq r. By using the induction hypothesis together with the above, we get that, tt+I\exists t^{\prime}\in t+I, θφ2±(𝐱,t)r\theta_{\varphi_{2}}^{\pm}(\mathbf{x},t^{\prime})\geq r and t′′[t,t)\forall t^{\prime\prime}\in[t,t^{\prime}), θφ1±(𝐱,t′′)r\theta_{\varphi_{1}}^{\pm}(\mathbf{x},t^{\prime\prime})\geq r. Therefore, θφ±(𝐱,t)=suptt+Iinf(θφ2±(𝐱,t),inft′′[t,t)θφ1±(𝐱,t′′))r\theta^{\pm}_{\varphi}(\mathbf{x},t)=\sup_{t^{\prime}\in t+I}\inf\left(\theta_{\varphi_{2}}^{\pm}(\mathbf{x},t^{\prime}),\ \inf_{t^{\prime\prime}\in[t,t^{\prime})}\theta^{\pm}_{\varphi_{1}}(\mathbf{x},t^{\prime\prime})\right)\geq r.