Metric temporal logic (MTL) is a special case of
temporal logic. It is an extension of temporal logic in which temporal operators are replaced by time-constrained versions like ''until'', ''next'', ''since'' and ''previous'' operators. It is a linear-time logic that assumes both the interleaving and fictitious-clock abstractions. It is defined over a point-based weakly-monotonic integer-time semantics.
MTL has been described as a prominent specification formalism for real-time systems.
[J. Ouaknine and J. Worrell, "On the decidability of metric temporal logic," 20th Annual IEEE Symposium on Logic in Computer Science (LICS' 05), 2005, pp. 188-197.] Full MTL over infinite timed words is undecidable.
[Ouaknine J., Worrell J. (2006) On Metric Temporal Logic and Faulty Turing Machines. In: Aceto L., Ingólfsdóttir A. (eds) Foundations of Software Science and Computation Structures. FoSSaCS 2006. Lecture Notes in Computer Science, vol 3921. Springer, Berlin, Heidelberg]
Syntax
The full metric temporal logic is defined similarly to
linear temporal logic In logic, linear temporal logic or linear-time temporal logic (LTL) is a modal temporal logic with modalities referring to time. In LTL, one can encode formulae about the future of paths, e.g., a condition will eventually be true, a condition will ...
, where a set of non-negative real number is added to
temporal modal operators U and S. Formally, MTL is built up from:
* a finite set of
propositional variables ''AP'',
* the
logical operators ¬ and ∨, and
* the
temporal modal operator (pronounced " until in ."), with an interval of non-negative numbers.
* the
temporal modal operator (pronounced " since in ."), with as above.
When the subscript is omitted, it is implicitly equal to
.
Note that the next operator N is not considered to be a part of MTL syntax. It will instead be defined from other operators.
Past and Future
The past fragment of metric temporal logic, denoted as past-MTL is defined as the restriction of the full metric temporal logic without the until operator. Similarly, the future fragment of metric temporal logic, denoted as future-MTL is defined as the restriction of the full metric temporal logic without the since operator.
Depending on the authors, MTL is either defined as the future fragment of MTL, in which case full-MTL is called MTL+Past.
Or MTL is defined as full-MTL.
In order to avoid ambiguity, this article uses the names full-MTL, past-MTL and future-MTL. When the statements holds for the three logic, MTL will simply be used.
Model
Let
intuitively represent a set
of points in time. Let
a function which associates a letter to
each moment
. A model of a MTL formula is
such a function
. Usually,
is
either a
timed word or a
signal
In signal processing, a signal is a function that conveys information about a phenomenon. Any quantity that can vary over space or time can be used as a signal to share messages between observers. The '' IEEE Transactions on Signal Processing' ...
. In
those cases,
is either a discrete subset or an interval
containing 0.
Semantics
Let
and
as above and let
some fixed time. We are now going to explain what it means
that a MTL formula
holds at time
,
which is denoted
.
Let
and
. We first consider the formula
. We say
that
if and only if
there exists some time
such that:
*
and
* for each
with
,
.
We now consider the formula
(pronounced "
since
in
.") We say
that
if and only if
there exists some time
such that:
*
and
* for each
with
,
.
The definitions of
for the values
of
not considered above is similar as the definition
in the
LTL case.
Operators defined from basic MTL operators
Some formulas are so often used that a new operator is introduced for
them. These operators are usually not considered to belong to the
definition of MTL, but are
syntactic sugar
In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express. It makes the language "sweeter" for human use: things can be expressed more clearly, more concisely, or in a ...
which denote more
complex MTL formula. We first consider operators which also exists in LTL. In
this section, we fix
MTL formulas
and
.
Operators similar to the ones of LTL
Release and Back to
We denote by
(pronounced "
release
in
,
") the
formula
. This formula holds
at time
if either:
* there is some time
such that
holds, and
hold in the interval
.
* at each time
,
holds.
The name "release" come from the LTL case, where this formula simply
means that
should always hold,
unless
releases it.
The past counterpart of release is denote by
(pronounced "
back to
in
,
") and is equal to the
formula
.
Finally and Eventually
We denote by
or
(pronounced "Finally
in
,
", or "Eventually
in
,
") the formula
. Intuitively, this formula holds at time
if there is some time
such
that
holds.
We denote by
or
(pronounced "Globally
in
,
",) the
formula
. Intuitively, this formula
holds at time
if for all time
,
holds.
We denote by
and
the formula similar
to
and
,
where
is replaced by
. Both formula has intuitively the same meaning, but when we
consider the past instead of the future.
Next and previous
This case is slightly different from the previous ones, because the intuitive meaning of the "Next" and "Previously" formulas differs depending on the kind of function
considered.
We denote by
or
(pronounced "Next in
,
") the
formula
. Similarly, we denote by
(pronounced "Previously in
,
) the formula
. The following discussion about the Next operator also holds for the Previously operator, by reversing the past and the future.
When this formula is evaluated over a
timed word , this formula
means that both:
* at the next time in the domain of definition
, the formula
will holds.
* furthermore, the distance between this next time and the current time belong to the interval
.
* In particular, this next time holds, thus the current time is not the end of the word.
When this formula is evaluated over a
signal
In signal processing, a signal is a function that conveys information about a phenomenon. Any quantity that can vary over space or time can be used as a signal to share messages between observers. The '' IEEE Transactions on Signal Processing' ...
, the notion of next time does
not makes sense. Instead, "next" means "immediately after". More
precisely
means:
*
contains an interval of the form
and
* for each
,
.
Other operators
We now consider operators which are not similar to any standard LTL operators.
Fall and Rise
We denote by
(pronounced "rise
"), a formula which holds when
becomes true. More precisely, either
did not hold in the immediate past, and holds at this time, or it does not hold and it holds in the immediate future. Formally
is defined as
.
Over timed words, this formula always hold. Indeed
and
always hold. Thus the formula is equivalent to
, hence is true.
By symmetry, we denote by
(pronounced "Fall
), a formula which holds when
becomes false. Thus, it is defined as
.
History and Prophecy
We now introduce the ''prophecy'' operator, denoted by
. We denote by
the formula
. This formula asserts that there exists a first moment in the future such that
holds, and the time to wait for this first moment belongs to
.
We now consider this formula over timed words and over signals. We consider timed words first. Assume that
where
and
represents either open or closed bounds. Let
a timed word and
in its domain of definition.
Over timed words, the formula
holds if and only if
also holds. That is, this formula simply assert that, in the future, until the interval
is met,
should not hold. Furthermore,
should hold sometime in the interval
. Indeed, given any time
such that
hold, there exists only a finite number of time
with