skip to main content
10.1145/3501710.3519537acmconferencesArticle/Chapter ViewAbstractPublication PagescpsweekConference Proceedingsconference-collections
research-article

Linear Time Monitoring for One Variable TPTL

Published: 04 May 2022 Publication History

Abstract

The temporal logic Timed Propositional Temporal Logic () extends with freeze quantifiers in order to express timing constraints, and is strictly more expressive than Metric Temporal Logic () over future modalities. The monitoring problem is to check whether a particular timed trace satisfies a given temporal logic specification, and monitoring procedures form core subroutines of testing and falsification approaches for Cyber-Physical Systems. In this work, we develop an efficient linear time monitoring algorithm, linear in the length of the trace (for traces that have at most a constant number of sample points in any unit interval), for one variable in the pointwise semantics. This one variable fragment is known to be already more expressive than and thus allows specifications of richer timed properties. Our algorithm carefully combines a divide and conquer approach with dynamic programming in order to achieve a linear time algorithm. As a plus, our algorithm uses only a simple two-dimensional table, and a syntax tree of the formula, as the data structures, and hence can be easily implemented on various platforms. We demonstrate the tractability of our approach with our prototype tool implementation on Matlab; our experiments show the tool scales easily to long trace lengths.

References

[1]
Rajeev Alur and David L. Dill. 1994. A Theory of Timed Automata. Theor. Comput. Sci. 126, 2 (1994), 183–235.
[2]
Rajeev Alur and Thomas A. Henzinger. 1994. A Really Temporal Logic. J. ACM 41, 1 (1994), 181–204.
[3]
Christel Baier and Joost-Pieter Katoen. 2008. Principles of model checking. MIT Press.
[4]
Alexey Bakhirkin and Nicolas Basset. 2019. Specification and Efficient Monitoring Beyond STL. In Tools and Algorithms for the Construction and Analysis of Systems - 25th International Conference, TACAS 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Proceedings, Part II(Lecture Notes in Computer Science, Vol. 11428), Tomás Vojnar and Lijun Zhang (Eds.). Springer, 79–97.
[5]
Alexey Bakhirkin, Thomas Ferrère, Thomas A. Henzinger, and Dejan Ničković. 2018. The First-Order Logic of Signals: Keynote. In Proceedings of the International Conference on Embedded Software (Turin, Italy) (EMSOFT ’18). IEEE Press, Article 1, 10 pages.
[6]
David Basin, Felix Klaedtke, Samuel Müller, and Eugen Zălinescu. 2015. Monitoring Metric First-Order Temporal Properties. J. ACM 62, 2, Article 15 (may 2015), 45 pages.
[7]
Patricia Bouyer, Fabrice Chevalier, and Nicolas Markey. 2010. On the expressiveness of TPTL and MTL. Inf. Comput. 208, 2 (2010), 97–116.
[8]
Jyotirmoy V. Deshmukh, Alexandre Donzé, Shromona Ghosh, Xiaoqing Jin, Garvit Juniwal, and Sanjit A. Seshia. 2017. Robust online monitoring of signal temporal logic. Formal Methods Syst. Des. 51, 1 (2017), 5–30.
[9]
Adel Dokhanchi, Bardh Hoxha, Cumhur Erkan Tuncali, and Georgios Fainekos. 2016. An efficient algorithm for monitoring practical TPTL specifications. In 2016 ACM/IEEE International Conference on Formal Methods and Models for System Design, MEMOCODE 2016. IEEE, 184–193.
[10]
Alexandre Donzé, Thomas Ferrère, and Oded Maler. 2013. Efficient Robust Monitoring for STL. In Computer Aided Verification - 25th International Conference, CAV 2013, Saint Petersburg, Russia, July 13-19, 2013. Proceedings(Lecture Notes in Computer Science, Vol. 8044), Natasha Sharygina and Helmut Veith (Eds.). Springer, 264–279.
[11]
Alexandre Donzé and Oded Maler. 2010. Robust Satisfaction of Temporal Logic over Real-Valued Signals. In Formal Modeling and Analysis of Timed Systems - 8th International Conference, FORMATS 2010, Klosterneuburg, Austria, September 8-10, 2010. Proceedings(Lecture Notes in Computer Science, Vol. 6246), Krishnendu Chatterjee and Thomas A. Henzinger (Eds.). Springer, 92–106.
[12]
Adrián Elgyütt, Thomas Ferrère, and Thomas A. Henzinger. 2018. Monitoring Temporal Logic with Clock Variables. In Formal Modeling and Analysis of Timed Systems - 16th International Conference, FORMATS 2018, Beijing, China, September 4-6, 2018, Proceedings(Lecture Notes in Computer Science, Vol. 11022), David N. Jansen and Pavithra Prabhakar (Eds.). Springer, 53–70.
[13]
Gidon Ernst, Sean Sedwards, Zhenya Zhang, and Ichiro Hasuo. 2021. Falsification of Hybrid Systems Using Adaptive Probabilistic Search. ACM Trans. Model. Comput. Simul. 31, 3 (2021), 18:1–18:22.
[14]
Georgios E. Fainekos and George J. Pappas. 2009. Robustness of temporal logic specifications for continuous-time signals. Theor. Comput. Sci. 410, 42 (2009), 4262–4291.
[15]
Georgios E. Fainekos, Sriram Sankaranarayanan, Koichi Ueda, and Hakan Yazarel. 2012. Verification of automotive control applications using S-TaLiRo. In American Control Conference, ACC, 2012. IEEE, 3567–3572.
[16]
Klaus Havelund, Doron Peled, and Dogan Ulus. 2017. First order temporal logic monitoring with BDDs. In 2017 Formal Methods in Computer Aided Design (FMCAD). 116–123.
[17]
Klaus Havelund and Grigore Rosu. 2002. Synthesizing Monitors for Safety Properties. In Tools and Algorithms for the Construction and Analysis of Systems, 8th International Conference, TACAS 2002, Held as Part of the Joint European Conference on Theory and Practice of Software, ETAPS 2002, Grenoble, France, April 8-12, 2002, Proceedings(Lecture Notes in Computer Science, Vol. 2280), Joost-Pieter Katoen and Perdita Stevens (Eds.). Springer, 342–356.
[18]
Thomas A. Henzinger, Peter W. Kopke, Anuj Puri, and Pravin Varaiya. 1998. What’s Decidable about Hybrid Automata?J. Comput. Syst. Sci. 57, 1 (1998), 94–124.
[19]
Thomas A. Henzinger and Jean-François Raskin. 2000. Robust Undecidability of Timed and Hybrid Systems. In Hybrid Systems: Computation and Control, Third International Workshop, HSCC 2000(Lecture Notes in Computer Science, Vol. 1790), Nancy A. Lynch and Bruce H. Krogh (Eds.). Springer, 145–159.
[20]
Yoram Hirshfeld and Alexander Rabinovich. 2007. Expressiveness of Metric modalities for continuous time. Log. Methods Comput. Sci. 3, 1 (2007).
[21]
Paul Hunter, Joël Ouaknine, and James Worrell. 2013. Expressive Completeness for Metric Temporal Logic. In 28th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2013, New Orleans, LA, USA, June 25-28, 2013. IEEE Computer Society, 349–357.
[22]
J. Kapinski, J. V. Deshmukh, X. Jin, H. Ito, and K. Butts. 2016. Simulation-Based Approaches for Verification of Embedded Control Systems: An Overview of Traditional and Advanced Modeling, Testing, and Verification Techniques. IEEE Control Systems Magazine 36, 6 (2016), 45–64.
[23]
Nicolas Markey and Jean-François Raskin. 2006. Model checking restricted sets of timed paths. Theor. Comput. Sci. 358, 2-3 (2006), 273–292.
[24]
Paritosh K. Pandya and Simoni S. Shah. 2011. On Expressive Powers of Timed Logics: Comparing Boundedness, Non-punctuality, and Deterministic Freezing. In CONCUR 2011 - Concurrency Theory - 22nd International Conference, CONCUR 2011, Aachen, Germany, September 6-9, 2011. Proceedings(Lecture Notes in Computer Science, Vol. 6901), Joost-Pieter Katoen and Barbara König (Eds.). Springer, 60–75.
[25]
Grigore Rosu and Klaus Havelund. 2001. Synthesizing Dynamic Programming Algorithms From Linear Temporal Logic Formulae. Technical Report.
[26]
Sriram Sankaranarayanan and Georgios E. Fainekos. 2012. Falsification of temporal properties of hybrid systems using the cross-entropy method. In Hybrid Systems: Computation and Control (part of CPS Week 2012), HSCC’12, Beijing, China, April 17-19, 2012, Thao Dangand Ian M. Mitchell (Eds.). ACM, 125–134.
[27]
Masaki Waga. 2020. Falsification of cyber-physical systems with robustness-guided black-box checking. In HSCC ’20: 23rd ACM International Conference on Hybrid Systems: Computation and Control, Sydney, New South Wales, Australia, April 21-24, 2020, Aaron D. Ames, Sanjit A. Seshia, and Jyotirmoy Deshmukh (Eds.). ACM, 11:1–11:13.
[28]
Zhenya Zhang, Gidon Ernst, Sean Sedwards, Paolo Arcaini, and Ichiro Hasuo. 2018. Two-Layered Falsification of Hybrid Systems Guided by Monte Carlo Tree Search. IEEE Trans. on CAD of Integrated Circuits and Systems 37, 11(2018), 2894–2905.

Cited By

View all
  • (2024)Formalizing and evaluating requirements of perception systems for automated vehicles using spatio-temporal perception logicThe International Journal of Robotics Research10.1177/02783649231223546Online publication date: 24-Jan-2024
  • (2024) Fast Robust Monitoring for Signal Temporal Logic with Value Freezing Operators (STL * ) 2024 22nd ACM-IEEE International Symposium on Formal Methods and Models for System Design (MEMOCODE)10.1109/MEMOCODE63347.2024.00006(1-11)Online publication date: 3-Oct-2024
  • (2023)Quantitative Robustness for Signal Temporal Logic With Time-Freeze QuantifiersIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems10.1109/TCAD.2023.328329642:12(4436-4449)Online publication date: 6-Jun-2023

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
HSCC '22: Proceedings of the 25th ACM International Conference on Hybrid Systems: Computation and Control
May 2022
265 pages
ISBN:9781450391962
DOI:10.1145/3501710
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 04 May 2022

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

HSCC '22
Sponsor:

Acceptance Rates

Overall Acceptance Rate 153 of 373 submissions, 41%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)51
  • Downloads (Last 6 weeks)14
Reflects downloads up to 17 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Formalizing and evaluating requirements of perception systems for automated vehicles using spatio-temporal perception logicThe International Journal of Robotics Research10.1177/02783649231223546Online publication date: 24-Jan-2024
  • (2024) Fast Robust Monitoring for Signal Temporal Logic with Value Freezing Operators (STL * ) 2024 22nd ACM-IEEE International Symposium on Formal Methods and Models for System Design (MEMOCODE)10.1109/MEMOCODE63347.2024.00006(1-11)Online publication date: 3-Oct-2024
  • (2023)Quantitative Robustness for Signal Temporal Logic With Time-Freeze QuantifiersIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems10.1109/TCAD.2023.328329642:12(4436-4449)Online publication date: 6-Jun-2023

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media