Misplaced Pages

Timed propositional temporal logic

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

In model checking, a field of computer science, timed propositional temporal logic (TPTL) is an extension of propositional linear temporal logic (LTL) in which variables are introduced to measure times between two events. For example, while LTL allows to state that each event p is eventually followed by an event q, TPTL furthermore allows to give a time limit for q to occur.

Syntax

The future fragment of TPTL is defined similarly to linear temporal logic, in which furthermore, clock variables can be introduced and compared to constants. Formally, given a set X {\displaystyle X} of clocks, MTL is built up from:

  • a finite set of propositional variables AP,
  • the logical operators ¬ and ∨, and
  • the temporal modal operator U,
  • a clock comparison x c {\displaystyle x\sim c} , with x X {\displaystyle x\in X} , c {\displaystyle c} a number and {\displaystyle \sim } a comparison operator such as <, ≤, =, ≥ or >.
  • a freeze quantification operator x . ϕ {\displaystyle x.\phi } , for ϕ {\displaystyle \phi } a TPTL formula with set of clocks X { x } {\displaystyle X\cup \{x\}} .

Furthermore, for I = ( a , b ) {\displaystyle I=(a,b)} an interval, x I {\displaystyle x\in I} is considered as an abbreviation for x > a x < b {\displaystyle x>a\land x<b} ; and similarly for every other kind of intervals.

The logic TPTL+Past is built as the future fragment of TLS and also contains

  • the temporal modal operator S.

Note that the next operator N is not considered to be a part of MTL syntax. It will instead be defined from other operators.

A closed formula is a formula over an empty set of clocks.

Models

Let T R + {\displaystyle T\subseteq \mathbb {R} _{+}} , which intuitively represents a set of times. Let γ : T P ( A P ) {\displaystyle \gamma :T\to {\mathcal {P}}(AP)} a function that associates to each moment t T {\displaystyle t\in T} a set of propositions from AP. A model of a TPTL formula is such a function γ {\displaystyle \gamma } . Usually, γ {\displaystyle \gamma } is either a timed word or a signal. In those cases, T {\displaystyle T} is either a discrete subset or an interval containing 0.

Semantics

Let T {\displaystyle T} and γ {\displaystyle \gamma } be as above. Let X {\displaystyle X} be a set of clocks. Let ν : X R 0 {\displaystyle \nu :X\to \mathbb {R} _{\geq 0}} (a clock valuation over X {\displaystyle X} ).

We are now going to explain what it means for a TPTL formula ϕ {\displaystyle \phi } to hold at time t {\displaystyle t} for a valuation ν {\displaystyle \nu } . This is denoted by γ , t , ν ϕ {\displaystyle \gamma ,t,\nu \models \phi } . Let ϕ {\displaystyle \phi } and ψ {\displaystyle \psi } be two formulas over the set of clocks X {\displaystyle X} , ξ {\displaystyle \xi } a formula over the set of clocks X { y } {\displaystyle X\cup \{y\}} , x X {\displaystyle x\in X} , l A P {\displaystyle l\in {\mathtt {AP}}} , c {\displaystyle c} a number and {\displaystyle \sim } being a comparison operator such as <, ≤, =, ≥ or >: We first consider formulas whose main operator also belongs to LTL:

  • γ , t , ν l {\displaystyle \gamma ,t,\nu \models l} holds if l γ ( t ) {\displaystyle l\in \gamma (t)} ,
  • γ , t , ν ¬ ϕ {\displaystyle \gamma ,t,\nu \models \neg \phi } holds if γ , t , ν ϕ {\displaystyle \gamma ,t,\nu \not \models \phi }
  • γ , t , ν ϕ ψ {\displaystyle \gamma ,t,\nu \models \phi \lor \psi } holds if either γ , t , ν ϕ {\displaystyle \gamma ,t,\nu \models \phi } or γ , t , ν ψ {\displaystyle \gamma ,t,\nu \models \psi }
  • γ , t , ν ϕ U ψ {\displaystyle \gamma ,t,\nu \models \phi \mathbin {\mathcal {U}} \psi } holds if there exists t < t {\displaystyle t<t''} such that γ , t , ν ψ {\displaystyle \gamma ,t'',\nu \models \psi } and such that for each t < t < t {\displaystyle t<t'<t''} , γ , t , ν ϕ {\displaystyle \gamma ,t',\nu \models \phi } ,
  • γ , t , ν ϕ S ψ {\displaystyle \gamma ,t,\nu \models \phi \mathbin {\mathcal {S}} \psi } holds if there exists t < t {\displaystyle t''<t} such that γ , t , ν ψ {\displaystyle \gamma ,t'',\nu \models \psi } and such that for each t < t < t {\displaystyle t''<t'<t} , γ , t , ν ϕ {\displaystyle \gamma ,t',\nu \models \phi } ,
  • γ , t , ν x c {\displaystyle \gamma ,t,\nu \models x\sim c} holds if t ν ( y ) c {\displaystyle t-\nu (y)\sim c} ,
  • γ , t , ν y . ξ {\displaystyle \gamma ,t,\nu \models y.\xi } holds if γ , t , ν [ y t ] ϕ {\displaystyle \gamma ,t,\nu \models \phi } holds.

Metric temporal logic

Metric temporal logic is another extension of LTL that allows measurement of time. Instead of adding variables, it adds an infinity of operators U I {\displaystyle {\mathcal {U}}_{I}} and S I {\displaystyle {\mathcal {S}}_{I}} for I {\displaystyle I} an interval of non-negative number. The semantics of the formula ϕ U I ψ {\displaystyle \phi \mathbin {\mathcal {U_{I}}} \psi } at some time t {\displaystyle t} is essentially the same than the semantics of the formula ϕ U ψ {\displaystyle \phi \mathbin {\mathcal {U}} \psi } , with the constraints that the time t {\displaystyle t''} at which ψ {\displaystyle \psi } must hold occurs in the interval t + I {\displaystyle t+I} .

TPTL is as least as expressive as MTL. Indeed, the MTL formula ϕ U I ψ {\displaystyle \phi \mathbin {\mathcal {U_{I}}} \psi } is equivalent to the TPTL formula x . ϕ ( x I ψ ) {\displaystyle x.\phi {\mathcal {(}}x\in I\land \psi )} where x {\displaystyle x} is a new variable.

It follows that any other operator introduced in the page MTL, such as {\displaystyle \Box } and {\displaystyle \Diamond } can also be defined as TPTL formulas.

TPTL is strictly more expressive than MTL both over timed words and over signals. Over timed words, no MTL formula is equivalent to ( a x . ( b ( c x 5 ) ) ) {\displaystyle \Box (a\implies x.\Diamond (b\land \Diamond (c\land x\leq 5)))} . Over signal, there are no MTL formula equivalent to x . ( a x 1 ( x 1 ¬ b ) ) {\displaystyle x.\Diamond (a\land x\leq 1\land \Box (x\leq 1\implies \neg b))} , which states that the last atomic proposition before time point 1 is an a {\displaystyle a} .

Comparison with LTL

A standard (untimed) infinite word w = a 0 , a 1 , , {\displaystyle w=a_{0},a_{1},\dots ,} is a function from N {\displaystyle \mathbb {N} } to A {\displaystyle A} . We can consider such a word using the set of time T = N {\displaystyle T=\mathbb {N} } , and the function γ ( i ) = a i {\displaystyle \gamma (i)=a_{i}} . In this case, for ϕ {\displaystyle \phi } an arbitrary LTL formula, w , i ϕ {\displaystyle w,i\models \phi } if and only if γ , i , ν ϕ {\displaystyle \gamma ,i,\nu \models \phi } , where ϕ {\displaystyle \phi } is considered as a TPTL formula with non-strict operator, and ν {\displaystyle \nu } is the only function defined on the empty set.

References

  1. ^ Bouyer, Patricia; Chevalier, Fabrice; Markey, Nicolas (2005). "Developments in Data Structure Research During the First 25 Years of FSTTCS". FSTTCS 2005: Foundations of Software Technology and Theoretical Computer Science. Lecture Notes in Computer Science. Vol. 3821. p. 436. doi:10.1007/11590156_3. ISBN 978-3-540-30495-1. {{cite book}}: |journal= ignored (help)
  2. ^ Alur, Rajeev; Henzinger, Thomas A. (Jan 1994). "A really temporal logic". Journal of the ACM. 41 (1): 181–203. doi:10.1145/174644.174651.
Categories: