PyTeLo:一个灵活高效的 Python 时序逻辑工具
A Flexible and Efficient Temporal Logic Tool for Python: PyTeLo
AI总结:
本文介绍PyTeLo,一个基于Python的模块化时序逻辑工具,支持MTL、STL和wSTL,通过字符串输入和ANTLR解析生成AST,并递归编码为MILP进行合成,具有灵活性和高效性。
摘要:
时序逻辑是描述系统复杂行为的重要工具。它可用于定义验证和监控的属性,以及合成工具的目标,使用户能够指定丰富的任务和任务。一些最流行的时序逻辑包括度量时序逻辑(MTL)、信号时序逻辑(STL)和加权STL(wSTL),它们还允许定义时间约束。在这项工作中,我们介绍了PyTeLo,一个模块化且多功能的基于Python的软件,它有助于处理时序逻辑语言,特别是MTL、STL和wSTL。应用PyTeLo只需要时序逻辑规范的字符串表示,以及可选地,感兴趣系统的动力学。接下来,PyTeLo使用ANTLR生成的解析器读取规范,并生成一个抽象语法树(AST),该树捕获公式的结构。对于合成,AST用于将规范递归编码为混合整数线性规划(MILP),该规划使用商业求解器(如Gurobi)求解。我们描述了PyTeLo的架构和能力,并提供了示例应用,突出了其适应性和可扩展性,适用于各种研究问题。
英文摘要:
Temporal logic is an important tool for specifying complex behaviors of systems. It can be used to define properties for verification and monitoring, as well as goals for synthesis tools, allowing users to specify rich missions and tasks. Some of the most popular temporal logics include Metric Temporal Logic (MTL), Signal Temporal Logic (STL), and weighted STL (wSTL), which also allow the definition of timing constraints. In this work, we introduce PyTeLo, a modular and versatile Python-based software that facilitates working with temporal logic languages, specifically MTL, STL, and wSTL. Applying PyTeLo requires only a string representation of the temporal logic specification and, optionally, the dynamics of the system of interest. Next, PyTeLo reads the specification using an ANTLR-generated parser and generates an Abstract Syntax Tree (AST) that captures the structure of the formula. For synthesis, the AST serves to recursively encode the specification into a Mixed Integer Linear Program (MILP) that is solved using a commercial solver such as Gurobi. We describe the architecture and capabilities of PyTeLo and provide example applications highlighting its adaptability and extensibility for various research problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。