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

FOSSIL: a software tool for the formal synthesis of lyapunov functions and barrier certificates using neural networks

Published: 19 May 2021 Publication History

Abstract

This paper accompanies FOSSIL: a software tool for the synthesis of Lyapunov functions and of barrier certificates (or functions) for dynamical systems modelled as differential equations. Lyapunov functions are formal certificates for stability analysis, whereas barrier functions are formal certificates for the safety of dynamical models. FOSSIL is sound and automatic thanks to a counterexample-guided inductive synthesis loop. This method exploits the flexibility of candidate functions generated by training neural network templates, the formal assertions provided by a verifier (namely, an SMT solver), and finally new procedures to ease the exchange of information between the two mentioned components. We endow the tool with features of usability, scalability, and robustness---all of which are showcased on benchmarks.

References

[1]
A. Abate, D. Ahmed, M. Giacobbe, and A. Peruffo. 2021. Formal Synthesis of Lyapunov Neural Networks. IEEE Control Systems Letters 5, 3 (2021), 773--778.
[2]
Amir Ali Ahmadi, Miroslav Krstic, and Pablo A Parrilo. 2011. A Globally Asymptotically Stable Polynomial Vector Field with No Polynomial Lyapunov Function. In 2011 50th IEEE Conference on Decision and Control and European Control Conference. IEEE, 7579--7580.
[3]
Daniele Ahmed, Andrea Peruffo, and Alessandro Abate. 2020. Automated and Sound Synthesis of Lyapunov Functions with SMT Solvers. In TACAS (1) (LNCS, Vol. 12078). Springer, 97--114.
[4]
Daniele Ahmed, Andrea Peruffo, and Alessandro Abate. 2021. Automated Formal Synthesis of Neural Barrier Certificates for Dynamical Models. In TACAS (LNCS, Vol. 12651). Springer, 370--388.
[5]
Karl J. Astrom and Richard M. Murray. 2008. Feedback Systems: An Introduction for Scientists and Engineers. Princeton University Press, Princeton, NJ, USA.
[6]
Andrew J Barry, Anirudha Majumdar, and Russ Tedrake. 2012. Safety Verification of Reactive Controllers for UAV Flight in Cluttered Environments using Barrier Certificates. In 2012 IEEE International Conference on Robotics and Automation. IEEE, 484--490.
[7]
Ya-Chien Chang, Nima Roohi, and Sicun Gao. 2019. Neural Lyapunov Control. In NeurIPS. 3240--3249.
[8]
Liyun Dai, Ting Gan, Bican Xia, and Naijun Zhan. 2017. Barrier Certificates Revisited. Journal of Symbolic Computation 80 (2017), 62--86.
[9]
Leonardo de Moura and Nikolaj Bjørner. 2008. Z3: An Efficient SMT Solver. In TACAS (LNCS, Vol. 4963). Springer, 337--340.
[10]
Sicun Gao, Soonho Kong, and Edmund M Clarke. 2013. dReal: An SMT Solver for Nonlinear Theories over the Reals. In International Conference on Automated Deduction. Springer, 208--214.
[11]
Eric Goubault, Jacques-Henri Jourdan, Sylvie Putot, and Sriram Sankaranarayanan. 2014. Finding Non-polynomial Positive Invariants and Lyapunov Functions for Polynomial Systems through Darboux Polynomials. In ACC. IEEE, 3571--3578.
[12]
Dejan Jovanovic and Leonardo de Moura. 2012. Solving Non-linear Arithmetic. In IJCAR (LNCS, Vol. 7364). Springer, 339--354.
[13]
James Kapinski, Jyotirmoy V. Deshmukh, Sriram Sankaranarayanan, and Nikos Aréchiga. 2014. Simulation-guided Lyapunov Analysis for Hybrid Dynamical Systems. In HSCC. ACM, 133--142.
[14]
Thomas Kluyver, Benjamin Ragan-Kelley, Fernando Pérez, Brian Granger, Matthias Bussonnier, Jonathan Frederic, Kyle Kelley, Jessica Hamrick, Jason Grout, Sylvain Corlay, Paul Ivanov, Damián Avila, Safia Abdalla, and Carol Willing. 2016. Jupyter Notebooks - a publishing format for reproducible computational workflows. In Positioning and Power in Academic Publishing: Players, Agents and Agendas, F. Loizides and B. Schmidt (Eds.). IOS Press, 87 -- 90.
[15]
Hui Kong, Fei He, Xiaoyu Song, William NN Hung, and Ming Gu. 2013. Exponential-condition-based Barrier Certificate Generation for Safety Verification of Hybrid Systems. In International Conference on Computer Aided Verification. Springer, 242--257.
[16]
Daniel Kroening and Ofer Strichman. 2016. Decision Procedures - An Algorithmic Point of View. Springer Verlag.
[17]
Benoît Legat, Paulo Tabuada, and Raphaël M Jungers. 2020. Sum-of-Squares Methods for Controlled Invariant Sets with Applications to Model-predictive Control. Nonlinear Analysis: Hybrid Systems 36 (2020), 100858.
[18]
Jiang Liu, Naijun Zhan, Hengjun Zhao, and Liang Zou. 2015. Abstraction of Elementary Hybrid Systems by Variable Transformation. In International Symposium on Formal Methods. Springer, 360--377.
[19]
Aaron Meurer, Christopher P. Smith, Mateusz Paprocki, Ondřej Čertík, Sergey B. Kirpichev, Matthew Rocklin, Amit Kumar, Sergiu Ivanov, Jason K. Moore, Sartaj Singh, Thilina Rathnayake, Sean Vig, Brian E. Granger, Richard P. Muller, Francesco Bonazzi, Harsh Gupta, Shivam Vats, Fredrik Johansson, Fabian Pedregosa, Matthew J. Curry, Andy R. Terrel, Štěpán Roučka, Ashutosh Saboo, Isuru Fernando, Sumith Kulal, Robert Cimrman, and Anthony Scopatz. 2017. SymPy: symbolic computing in Python. PeerJ Computer Science 3 (Jan. 2017), e103.
[20]
Antonis Papachristodoulou, James Anderson, Giorgio Valmorbida, Stephen Prajna, Pete Seiler, and Pablo Parrilo. 2018. SOSTOOLS Version 3.03. Sum of Squares Optimization Toolbox for MATLAB.
[21]
Stephen Prajna. 2006. Barrier Certificates for Nonlinear Model Validation. Automatica 42, 1 (2006), 117--126.
[22]
Stephen Prajna, Antonis Papachristodoulou, and Pablo A. Parrilo. 2004. SOSTOOLS: Sum of squares Optimization Toolbox for MATLAB-User's Guide. Control and Dynamical Systems, California Institute of Technology, Pasadena, CA 91125 (2004).
[23]
Stefan Ratschan and Zhikun She. 2010. Providing a Basin of Attraction to a Target Region of Polynomial Systems by Computation of Lyapunov-Like Functions. SIAM J. Control and Optimization (2010).
[24]
Hadi Ravanbakhsh and Sriram Sankaranarayanan. 2015. Counter-Example Guided Synthesis of Control Lyapunov Functions For Switched Systems. In IEEE Control and Decision Conference (CDC). 4232--4239.
[25]
Hadi Ravanbakhsh and Sriram Sankaranarayanan. 2016. Robust Controller Synthesis of Switched Systems Using Counterexample Guided Framework. In ACM/IEEE Conference on Embedded Software (EMSOFT). 8:1--8:10.
[26]
Hadi Ravanbakhsh and Sriram Sankaranarayanan. 2018. Learning Control Lyapunov Functions from Counterexamples and Demonstrations. Autonomous Robots (2018), 1--33.
[27]
Spencer M. Richards, Felix Berkenkamp, and Andreas Krause. 2018. The Lyapunov Neural Network: Adaptive Stability Certification for Safe Learning of Dynamical Systems. In CoRL (Proceedings of Machine Learning Research, Vol. 87). PMLR, 466--476.
[28]
Sriram Sankaranarayanan, Xin Chen, and Erika Abraham. 2013. Lyapunov Function Synthesis using Handelman Representations. IFAC Proceedings Volumes 46, 23 (2013), 576--581.
[29]
Mohamed Amin Ben Sassi, Sriram Sankaranarayanan, Xin Chen, and Erika Ábrahám. 2016. Linear Relaxations of Polynomial Positivity for Polynomial Lyapunov Function Synthesis. IMA J. Math. Control & Information 33, 3 (2016), 723--756.
[30]
Shankar Sastry. 1999. Nonlinear Systems: Analysis, Stability and Control. Springer Verlag.
[31]
Zhikun She, Haoyang Li, Bai Xue, Zhiming Zheng, and Bican Xia. 2013. Discovering Polynomial Lyapunov Functions for Continuous Dynamical Systems. Journal of Symbolic Computation 58 (2013), 41--63.
[32]
Zhikun She, Bican Xia, Rong Xiao, and Zhiming Zheng. 2009. A Semi-algebraic Approach for Asymptotic Stability Analysis. Nonlinear Analysis: Hybrid Systems 3, 4 (2009), 588--596.
[33]
Christoffer Sloth, George J Pappas, and Rafael Wisniewski. 2012. Compositional Safety Analysis using Barrier Certificates. In Proceedings of the 15th ACM international conference on Hybrid Systems: Computation and Control. 15--24.
[34]
Andrew Sogokon, Khalil Ghorbal, Yong Kiam Tan, and André Platzer. 2018. Vector Barrier Certificates and Comparison Systems. In International Symposium on Formal Methods. Springer, 418--437.
[35]
Armando Solar-Lezama, Liviu Tancau, Rastislav Bodik, Sanjit Seshia, and Vijay Saraswat. 2006. Combinatorial sketching for finite programs. In Proceedings of the 12th international conference on Architectural support for programming languages and operating systems. 404--415.
[36]
Cees F. Verdier and Manuel Mazo Jr. 2018. Formal Synthesis of Analytic Controllers for Sampled-Data Systems via Genetic Programming. In CDC. IEEE, 4896--4901.
[37]
Xia Zeng, Wang Lin, Zhengfeng Yang, Xin Chen, and Lilei Wang. 2016. Darbouxtype Barrier Certificates for Safety Verification of Nonlinear Hybrid Systems. In Proceedings of the 13th International Conference on Embedded Software. 1--10.
[38]
Hengjun Zhao, Xia Zeng, Taolue Chen, and Zhiming Liu. 2020. Synthesizing Barrier Certificates Using Neural Networks. In Proceedings of the 23rd International Conference on Hybrid Systems: Computation and Control (Sydney, New South Wales, Australia) (HSCC '20). Association for Computing Machinery, New York, NY, USA, Article 25, 11 pages.

Cited By

View all
  • (2025)A Learner-Refiner Framework for Barrier Certificate GenerationMathematics10.3390/math1305084813:5(848)Online publication date: 4-Mar-2025
  • (2025)Design-Oriented Transient Stability Analysis of Grid-Connected Converters: A Comparative Study of Analysis MethodsIEEE Transactions on Power Electronics10.1109/TPEL.2024.348149540:1(749-763)Online publication date: Jan-2025
  • (2025)Robust Data-Driven Control of Discrete-Time Linear Systems With Errors in VariablesIEEE Transactions on Automatic Control10.1109/TAC.2024.344780970:2(947-962)Online publication date: Feb-2025
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
HSCC '21: Proceedings of the 24th International Conference on Hybrid Systems: Computation and Control
May 2021
300 pages
ISBN:9781450383394
DOI:10.1145/3447928
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 ACM 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: 19 May 2021

Permissions

Request permissions for this article.

Check for updates

Badges

Author Tags

  1. CEGIS
  2. SAT modulo theory
  3. barrier certificates
  4. lyapunov functions
  5. neural networks

Qualifiers

  • Research-article

Conference

HSCC '21
Sponsor:

Acceptance Rates

HSCC '21 Paper Acceptance Rate 27 of 77 submissions, 35%;
Overall Acceptance Rate 153 of 373 submissions, 41%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)243
  • Downloads (Last 6 weeks)39
Reflects downloads up to 03 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2025)A Learner-Refiner Framework for Barrier Certificate GenerationMathematics10.3390/math1305084813:5(848)Online publication date: 4-Mar-2025
  • (2025)Design-Oriented Transient Stability Analysis of Grid-Connected Converters: A Comparative Study of Analysis MethodsIEEE Transactions on Power Electronics10.1109/TPEL.2024.348149540:1(749-763)Online publication date: Jan-2025
  • (2025)Robust Data-Driven Control of Discrete-Time Linear Systems With Errors in VariablesIEEE Transactions on Automatic Control10.1109/TAC.2024.344780970:2(947-962)Online publication date: Feb-2025
  • (2025)Physics-informed neural network Lyapunov functions: PDE characterization, learning, and verificationAutomatica10.1016/j.automatica.2025.112193175(112193)Online publication date: May-2025
  • (2024)Stability and Safety Learning Methods for Legged RobotsRobotics10.3390/robotics1301001713:1(17)Online publication date: 17-Jan-2024
  • (2024)Verification-Aided Learning of Neural Network Barrier Functions with Termination Guarantees2024 American Control Conference (ACC)10.23919/ACC60939.2024.10645043(3610-3617)Online publication date: 10-Jul-2024
  • (2024)Neural Barrier Certificates Synthesis of NN-Controlled Continuous Systems via Counterexample-Guided LearningProceedings of the 61st ACM/IEEE Design Automation Conference10.1145/3649329.3658256(1-6)Online publication date: 23-Jun-2024
  • (2024)Fossil 2.0: Formal Certificate Synthesis for the Verification and Control of Dynamical ModelsProceedings of the 27th ACM International Conference on Hybrid Systems: Computation and Control10.1145/3641513.3651398(1-10)Online publication date: 14-May-2024
  • (2024)TOOL LyZNet: A Lightweight Python Tool for Learning and Verifying Neural Lyapunov Functions and Regions of AttractionProceedings of the 27th ACM International Conference on Hybrid Systems: Computation and Control10.1145/3641513.3650134(1-8)Online publication date: 14-May-2024
  • (2024)Neurosymbolic Motion and Task Planning for Linear Temporal Logic TasksIEEE Transactions on Robotics10.1109/TRO.2024.339207940(2749-2768)Online publication date: 2024
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media