经过认证的符号有限转换器:形式化及其在字符串分析中的应用
Certified Symbolic Finite Transducers: Formalization and Applications to String Analysis
AI总结:
本文在 Isabelle/HOL 框架内基于精化方法形式化了符号有限转换器,支持扩展的转移标签符号表示,并将其应用于 SMT 字符串求解器建模替换操作,实验证明其能高效求解带替换操作的字符串约束。
摘要:
有限自动机(FAs)是编程语言领域的基础组件。例如,在 JavaScript 和 Python 等语言中至关重要的正则表达式,通常使用 FAs 来实现。有限转换器通过将输入字符串转换为输出字符串,扩展了 FAs 的能力,从而为包含识别和转换的操作提供了更具表达力的框架。尽管在 Coq 和 Isabelle/HOL 等证明助手中对 FAs 进行了多种形式化,但这些形式化在现实场景的适用性方面往往存在不足。一种更实用的方法是对符号 FAs 和 FTs 进行形式化,其中转移标签是符号化的且可能是无限的。虽然符号 FAs 的形式化已在 CertiStr 的工作中得到探讨,但由于复杂性挑战的增加,在交互式证明助手中对符号 FTs 的形式化在很大程度上仍未被探索。在本文中,我们旨在 Isabelle/HOL 框架内对符号 FTs 进行形式化。这种形式化是基于精化的,并且设计为可通过转移标签的各种符号表示进行扩展。为了评估其性能,我们将形式化的符号 FTs 应用于 SMT 字符串求解器,以对替换操作进行建模。实验结果表明,形式化的符号转换器能够高效且有效地求解带有替换操作的字符串约束。
英文摘要:
Finite Automata (FAs) are fundamental components in the domains of programming languages. For instance, regular expressions, which are pivotal in languages such as JavaScript and Python, are frequently implemented using FAs. Finite Transducers (FTs) extend the capabilities of FAs by enabling the transformation of input strings into output strings, thereby providing a more expressive framework for operations that encompass both recognition and transformation. Despite the various formalizations of FAs in proof assistants such as Coq and Isabelle/HOL, these formalizations often fall short in terms of applicability to real-world scenarios. A more pragmatic approach involves the formalization of symbolic FAs and FTs, where transition labels are symbolic and potentially infinite. While the formalization of symbolic FAs has been explored in the work of CertiStr, the formalization of symbolic FTs in interactive proof assistants remains largely unexplored due to the increased complexity challenges. In this paper, we aim to formalize symbolic FTs within the Isabelle/HOL framework. This formalization is refinement-based and is designed to be extensible with various symbolic representations of transition labels. To assess its performance, we applied the formalized symbolic FTs to an SMT string solver for modeling replacement operations. The experimental results indicate that the formalized symbolic transducer can efficiently and effectively solve string constraints with replacement operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。