arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.12102cs.FL
收藏

超模式匹配

Hyper pattern matching

Masaki Waga, Étienne André

AI总结:

本文提出超模式匹配,将传统模式匹配推广至单词集合,用于验证鲁棒性和非干扰等超属性,采用非确定性异步有限自动机(NAAs)作为形式化工具,并设计启发式算法提升效率,实现HypPAu工具在多维度上的可扩展性。

摘要:

在运行时验证中,模式匹配通过在单词中搜索特定模式的出现来定位违规的具体证据,从而提供比简单违规检测更多的信息。然而,某些属性(尤其是超属性)的违规见证需要跨越多个输入单词或同一单词不同部分的证据,这超出了传统模式匹配的范畴。我们在此提出超模式匹配,将模式匹配推广到单词集合上。关注的属性包括鲁棒性和(非)干扰。作为模式的形式化工具,我们使用非确定性异步有限自动机(NAAs)。我们首先为超模式匹配提供了一个朴素算法,随后设计了多种启发式方法以提升效率。尽管我们证明了该问题的NP完全性,但我们的实现HypPAu能够处理多个案例研究,在单词长度、单词(或日志)数量和维度数量上均具可扩展性,表明了该方法的实际相关性。

英文摘要:

In runtime verification, pattern matching, which searches for occurrences of a specific pattern within a word, provides more information than a simple violation detection of the monitored property, by locating concrete evidence of the violation. However, witnessing violations of some properties, particularly hyperproperties, requires evidence across multiple input words or different parts of the same word, which goes beyond the scope of conventional pattern matching. We propose here hyper pattern matching, a generalization of pattern matching over a set of words. Properties of interest include robustness and (non-)interference. As a formalism for patterns, we use nondeterministic asynchronous finite automata (NAAs). We first provide a naive algorithm for hyper pattern matching and then devise several heuristics for better efficiency. Although we prove the NP-completeness of the problem, our implementation HypPAu is able to address several case studies scalable in the length, number of words (or logs) and number of dimensions, suggesting the practical relevance of our approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑