# Metric temporal logic

**Metric temporal logic** (MTL) is a formal specification language that extends linear temporal logic (LTL) with time bounds on its temporal operators, allowing statements such as "every request must be answered within 5 seconds" to be written precisely and checked mechanically. It was introduced by Ron Koymans in a 1990 paper in *Real-Time Systems* as a specification method for real-time systems, and it has become a central quantitative specification formalism for timed systems.<sup>[1](https://www.scienceopen.com/document?vid=3b2f7fac-8e45-4ea1-9e3c-f4f9490aa4d1)</sup><sup> • </sup><sup>[2](https://www.irif.fr/~eqinocs/Slides/Conclusion/OuaknineHistoryRealTime.pdf)</sup>

| Key fact | Detail |
|---|---|
| Origin | Introduced by Ron Koymans, "Specifying real-time properties with metric temporal logic", *Real-Time Systems* 2(4):255–299, November 1990<sup>[1](https://www.scienceopen.com/document?vid=3b2f7fac-8e45-4ea1-9e3c-f4f9490aa4d1)</sup> |
| Core idea | Temporal operators carry time intervals; LTL's Until \( \mathcal{U} \) becomes \( \mathcal{U}_{I} \) with \( I \) an interval over the reals bounded by natural numbers or \( \infty \)<sup>[3](https://arxiv.org/abs/2607.13598)</sup> |
| Relation to LTL | LTL is the special case of MTL in which every interval is \( [0,\infty) \)<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup> |
| Decidability | Satisfiability is undecidable over infinite words but decidable over finite words, with non-primitive-recursive complexity<sup>[3](https://arxiv.org/abs/2607.13598)</sup> |
| MITL fragment | Metric interval temporal logic, which forbids singleton intervals such as \( [l,l] \), has EXPSPACE-complete satisfiability and model checking over dense time<sup>[5](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)</sup> |
| Monitoring | Runtime monitors check timestamped execution traces against MTL formulas; Thati and Rosu's 2005 algorithms are asymptotically optimal<sup>[6](https://osl.cs.illinois.edu/publications/journals/entcs/ThatiR05.html)</sup> |
| Applications | Runtime verification of industrial automation, security policy monitoring on Android, and monitoring of embedded real-time systems in hardware<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/1311.2362)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC4699739/)</sup> |

## Syntax and semantics

MTL formulas are built from propositions that evaluate to true or false, combined with Boolean connectives and temporal operators indexed by intervals. In one common formulation, a formula \( \varphi \) is a proposition \( p \), a conjunction or exclusive-or of a set of formulas, a timed next operator \( \circ_{I}\,\varphi \), or a timed until \( \varphi_{1}\,\mathcal{U}_{I}\,\varphi_{2} \), where \( I \) is an interval of the non-negative real line.<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup> Syntactically, MTL is obtained from LTL by adding these intervals to the temporal operators.<sup>[3](https://arxiv.org/abs/2607.13598)</sup>

Formulas are interpreted over timed state sequences, pairs \( (x_{i}, \tau_{i}) \) in which \( x_{i} \) is the system state at step \( i \) and \( \tau_{i} \) is a non-decreasing sequence of times. The timed until holds at position \( i \) when \( \varphi_{2} \) holds at some position \( j \) whose time falls in \( t_{i} + I \), and \( \varphi_{1} \) holds at every position from \( i \) up to \( j \).<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup> Two families of semantics exist: a pointwise semantics over timed words, where the system is observed at discrete events, and a continuous semantics over timed signals, where the system is under observation at all instants.<sup>[3](https://arxiv.org/abs/2607.13598)</sup><sup> • </sup><sup>[5](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)</sup>

The interval is what gives the logic its metric character. A formula can require that a response occur within 5 time units, after at least 2, or exactly at a punctual delay. Plain LTL, which orders events but cannot measure the gaps between them, is recovered by taking every interval to be \( [0,\infty) \).<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup>

## Relation to other temporal logics

MTL sits in a family of logics that trade expressiveness against verifiability. LTL predicates over Boolean propositions with discrete time; [MITL](https://www.edgepedia.org/metric-interval-temporal-logic) keeps Boolean propositions but adds real-time constraints; Signal Temporal Logic (STL) goes further and predicates over real-valued signals in real time, so it can state properties of analog quantities such as temperatures or voltages.<sup>[9](https://www.diva-portal.org/smash/get/diva2%3A931281/FULLTEXT01.pdf)</sup> STL's quantitative robustness semantics, implemented in tools such as RTAMT, measures how far a signal is from satisfying or violating a specification rather than returning a bare true or false.<sup>[10](https://github.com/nickovic/rtamt)</sup>

Other real-time logics address the same need by different means. TPTL, introduced by [Rajeev Alur](https://www.edgepedia.org/rajeev-alur) and Thomas A. Henzinger in 1992, uses a freeze quantifier that binds a variable to the time of the local temporal context.<sup>[11](https://ecommons.cornell.edu/entities/publication/5d28c4d1-730f-4980-9923-f321d0b411a0)</sup> First-order extensions such as metric first-order temporal logic (MFOTL) support monitoring properties that quantify over data values.<sup>[12](https://people.inf.ethz.ch/basin/pubs/jacm15.pdf)</sup>

## Decidability and complexity

The punctual constraints that MTL can express are the source of its theoretical difficulty. In a dense-time model, satisfiability of timing constraints capable of expressing punctuality is undecidable; the undecidability proof needs only constraints of the form "every p-state is followed by a q-state precisely 5 time units later".<sup>[13](https://paperity.org/p/376712471/the-benefits-of-relaxing-punctuality)</sup> Over a point-based semantics, MTL satisfiability is undecidable over infinite words, and remains undecidable with past temporal operators added; over finite words it is decidable, but with non-primitive-recursive complexity.<sup>[3](https://arxiv.org/abs/2607.13598)</sup><sup> • </sup><sup>[5](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)</sup>

Two classical restrictions restore decidability. Alur and Henzinger showed that satisfiability and model checking for MTL relative to a discrete-time semantics are EXPSPACE-complete.<sup>[5](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)</sup> Separately, Alur, Feder, and Henzinger introduced **metric interval temporal logic** (MITL), the fragment of MTL in which temporal operators may be constrained only by nonsingular intervals, forbidding singleton intervals of the form \( [l,l] \). They showed that satisfiability and model checking for MITL over a dense-time semantics are EXPSPACE-complete, giving a logical formalism with a continuous interpretation of time suitable for automatic verification of real-time systems.<sup>[5](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)</sup><sup> • </sup><sup>[13](https://paperity.org/p/376712471/the-benefits-of-relaxing-punctuality)</sup> The intuition is that over an interval-based semantics, where the system is observed at all instants, insertion errors that defeat the undecidability argument are automatically detected.<sup>[5](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)</sup> Recent work continues to refine MITL satisfiability procedures, including an obligation-tracking approach that avoids translation to timed automata.<sup>[3](https://arxiv.org/abs/2607.13598)</sup>

## Runtime verification and monitoring

Because full model checking of large systems scales poorly, MTL is widely used in runtime verification, a lightweight and dynamic method that determines whether a single finite run of a system violates given requirements. Monitors, generated automatically from the temporal logic requirements, read the states of the run and output a verdict such as not violated, violated, or not evaluated.<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup>

Prasanna Thati and Grigore Rosu, then at the University of Illinois at Urbana-Champaign's Open Systems Laboratory, presented monitoring algorithms in 2005 that check timestamped execution traces against MTL formulas without storing the traces, together with lower bounds showing the algorithms are asymptotically optimal.<sup>[6](https://osl.cs.illinois.edu/publications/journals/entcs/ThatiR05.html)</sup> For embedded real-time systems, observer algorithms for past-time MTL (ptMTL) in a discrete-time setting have been designed to exploit the parallelism of hardware and translated into efficient, reconfigurable hardware blocks usable both in prototyping and after deployment.<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC4699739/)</sup>

**Industrial applications.** In simulation-based automation testing, MTL has been applied to runtime verification of a mineral-processing production plant before the physical system exists; the approach discovered requirement violations in a process designed by an industrial partner, and was motivated by the observation that LTL-based methods cannot capture several kinds of requirements that occur frequently in industrial process control.<sup>[4](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)</sup> In security, Hendra Gunadi and Alwen Tiu built a specification language based on MTL for monitoring applications on mobile devices, extending MTL with recursive definitions to express call chains between apps; monitors inserted into a modified Android kernel detected privilege escalation attacks, in which an app gains access to resources not granted by the user through indirect control flow.<sup>[7](https://arxiv.org/abs/1311.2362)</sup> Unified monitoring frameworks such as Reelay support MTL alongside LTL and STL over both discrete and dense-time behaviors, implemented as a header-only C++ library with a Python interface.<sup>[14](https://arxiv.org/abs/2604.22384)</sup>

## References

1. [Ron Koymans (1990). Specifying real-time properties with metric temporal logic. *Real-Time Systems* 2(4):255–299.](https://www.scienceopen.com/document?vid=3b2f7fac-8e45-4ea1-9e3c-f4f9490aa4d1)
2. [A Brief History of Real-Time (lecture slides), IRIF.](https://www.irif.fr/~eqinocs/Slides/Conclusion/OuaknineHistoryRealTime.pdf)
3. [Patricia Bouyer, B Srivathsan, Vaishnavi Vishwanath. A Simple Obligation to Metric Interval Temporal Logic. arXiv.](https://arxiv.org/abs/2607.13598)
4. [Eero Siivola, Seppo Sierla, Hannu Niemistö, Tommi Karhela, Valeriy Vyatkin (2016). Requirement verification in simulation-based automation testing. IEEE.](https://www.researchgate.net/publication/301898383_Requirement_verification_in_simulation-based_automation_testing)
5. [James Worrell. On the Decidability of Metric Temporal Logic. LICS 2005.](https://www.cs.ox.ac.uk/james.worrell/lics05.pdf)
6. [Prasanna Thati, Grigore Rosu (2005). Monitoring Algorithms for Metric Temporal Logic Specifications. *Electronic Notes in Theoretical Computer Science* 113:145–162.](https://osl.cs.illinois.edu/publications/journals/entcs/ThatiR05.html)
7. [Hendra Gunadi, Alwen Tiu (2013). Efficient Runtime Monitoring with Metric Temporal Logic: A Case Study in the Android Operating System. arXiv.](https://arxiv.org/abs/1311.2362)
8. [Runtime verification of embedded real-time systems. PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC4699739/)
9. [Comparison of LTL, MITL and STL (Master Thesis, DiVA portal).](https://www.diva-portal.org/smash/get/diva2%3A931281/FULLTEXT01.pdf)
10. [RTAMT: Specification-based real-time monitoring library, GitHub.](https://github.com/nickovic/rtamt)
11. [Rajeev Alur, Thomas A. Henzinger (1992). A Really Temporal Logic. Cornell CS Technical Report 92-1310.](https://ecommons.cornell.edu/entities/publication/5d28c4d1-730f-4980-9923-f321d0b411a0)
12. [Monitoring Metric First-order Temporal Properties. JACM.](https://people.inf.ethz.ch/basin/pubs/jacm15.pdf)
13. [Rajeev Alur, Tomás Feder, Thomas A. Henzinger (1996). The Benefits of Relaxing Punctuality. *Journal of the ACM* 43(1):116–146.](https://paperity.org/p/376712471/the-benefits-of-relaxing-punctuality)
14. [Reelay: Online Temporal Logic Monitoring Framework. arXiv.](https://arxiv.org/abs/2604.22384)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: Physical world and mathematics › Mathematics and statistics › Logic and discrete mathematics › Formal logic and foundations › Logical calculi and logical syntax › Modal and temporal logic › Timed and hybrid temporal logics

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/metric-temporal-logic
