For example, given a trace
, we might ask
about what is
happening at
,
and whether
,
or whether
.
The answer would be found by taking the automaton'sfunction
,
and seeing what values the truth assignment
assigns to our formula's individual propositions such as
.
Consider the trace
we
saw previously and is repeated here.
For which
does
?
For which
does
?
How about
?
However it doesn't make sense
a priori to ask
whether an
entire trace satisfies some
particular state formula;unlike regular propositional logic, the truth of state formulas
changes over time, as the trace
progresses.
Introducing temporal connectives
So, how
do we talk about formulas holding
(or not) over time?In addition to making formulas out of
,
,
and propositions from the set
,
we'll allow the use of
temporal connectives .
always ,
or
henceforth : We say that
is true at a moment
,
iff
is true from moment
onwards.
eventually :
We say that
is true at moment
,
iff
will eventually be true at moment
or later.
strong until :
We say that
is true at moment
,
iff
eventually becomes true, and
until then
is true.
weak until :
Like Strong Until, but without the requirementthat
eventually becomes true.
As a mnemonic for the symbols ``
'' and
``
'', we can imagine a square block of wood
sitting on a table.Orienting it like
, it will always sit there;
orienting it like
, it will eventually teeter.
More formally, we define these connectives as follows.
Always
iff
Decide whether each is true or false for following trace
(the same one seen
earlier ).
True; from
onwards,
stays true.
True. Even stronger,
.
False, since
.
True, since at each individual index
(from 0 on up),
.
Eventually
iff
Decide whether each is true or false for the trace
seen
earlier .
False; from
onwards,
stays false.
True.
This is a much weaker statement than
,
which we already saw was true.
Extremely true, since
is already true
in
(and elsewhere, too).
True, since
is true in
(and elsewhere too).
False.
False. We already mentioned that
;
if you think about it, this means that
.
(While we won't spend time discussing
algebraic equivalences for LTL formulas, this is certainly reminiscent of
DeMorgan's Law .)
Before continuing on with our two other connectives
(strong- and weak-until),let's pull back a bit and look at our notation.
The nit-pickyer, the
careful reader
will have noticed that although we write
,
really, the truth value of the formuladepends not on just a single state, but rather
that state and the entire suffix of the trace after that.So writing
would be more accurate.
Moreover, we are using not just the trace but also thetiming diagrams, which are just the graph of an
automaton
's
mapping function (``
'').
Thus the correct formulation really needs to be written
(and it is required that
be a legal trace
with respect to the transitions of
).
However, now that we realize our abuse of notation,we'll revert and just write
.
In practice, we are often considering an entire trace,
and wondering whether some property holds always or eventually.It's extremely natural to extend our notation
from particular indices to the trace itself:
Trace
models formula
(``
'')iff
.
For example, from the above exercises, since
,
we say simply
.