Timed propositional temporal logic
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 of clocks, {{clarify span|MTL|reason=Should be 'TPTL'? MTL is discussed in a later section.|date=February 2025}} is built up from:
- a finite set of propositional variables AP,
- the logical operators ¬ and ∨, and
- the temporal modal operator U,
- a clock comparison , with , a number and a comparison operator such as <, ≤, =, ≥ or >.{{clarify|reason=Since the set of logical connectives is chosen minimal (without e.g. \lor), the same could be done here. If times are ordered totally, \leq would be sufficient.|date=February 2025}}
- a freeze quantification operator , for a TPTL formula with set of clocks .
Furthermore, for an interval, is considered as an abbreviation for
The logic TPTL+Past{{cite book |last1=Bouyer |first1=Patricia |author1-link=Patricia Bouyer-Decitre|last2=Chevalier |first2=Fabrice |last3=Markey |first3=Nicolas |title=FSTTCS 2005: Foundations of Software Technology and Theoretical Computer Science |chapter=Developments in Data Structure Research During the First 25 Years of FSTTCS |series=Lecture Notes in Computer Science |journal=Proceedings of the 25th Conference on Foundations of Software Technology and Theoretical Computer Science |date=2005 |volume=3821 |page=436 |doi=10.1007/11590156_3 |isbn=978-3-540-30495-1 |chapter-url=https://hal.archives-ouvertes.fr/hal-01194615/document}} is built as the future fragment of {{clarify span|TLS|reason=Should be introduced or linked.|date=February 2025}} and also contains
- the temporal modal operator S.
The next operator {{clarify span|N|reason=Introduce or link|date=February 2025}} is not considered to be a part of {{clarify span|MTL|date=February 2025}} syntax. It will instead be defined from other operators.
A closed formula is a formula over an empty set of clocks.{{cite journal |last1=Alur |first1=Rajeev |author1link = Rajeev Alur|last2=Henzinger |first2=Thomas A. |author2link = Thomas Henzinger|title=A really temporal logic|journal=Journal of the ACM|date=Jan 1994 |volume=41 |issue =1|pages=181–203 |doi=10.1145/174644.174651|doi-access=free }}{{clarify|reason=The set of clocks of a formula needs to be introduced (I guess along with the syntax case distinction above).|date=February 2025}}
Models
Let , which intuitively represents a set of times. Let a function that associates to each moment a set of propositions from AP. A model of a TPTL formula is such a function . Usually, is either a timed word or a signal. In those cases, is either a discrete subset or an interval containing 0.
Semantics
Let and be as above. Let be a set of clocks. Let (a clock valuation over ).
We are now going to explain what it means for a TPTL formula to hold at time for a valuation . This is denoted by .
Let and be two formulas over the set of clocks , a formula over the set of clocks , , , a number and being a comparison operator such as <, ≤, =, ≥ or >:
We first consider formulas whose main operator also belongs to LTL:
- holds if ,
- holds if
- holds if either or , or both
- holds if there exists such that and and for each with , ,
- holds if there exists such that and and for each with
\gamma,t,\nu\models x\sim c holds ift-\nu(y)\sim c ,{{clarify|reason='y' should be 'x'?|date=February 2025}}\gamma,t,\nu\models y.\xi holds if\gamma,t,\nu[y\to t]\models\phi holds.{{clarify|reason='\phi' should be '\xi'?|date=February 2025}}
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
TPTL is as least as expressive as MTL. Indeed, the MTL formula
It follows that any other operator introduced in the page MTL, such as
TPTL is strictly more expressive than MTL{{r|ExpressivenesOfTPTLAndMtl|p=2}} both over timed words and over signals. Over timed words, no MTL formula is equivalent to
Comparison with LTL
A standard (untimed) infinite word