Lune

POPL2024顶会

Parikh's Theorem Made Symbolic

Matthew Hague, Artur Jez, Anthony W. Lin

摘要

Parikh’s Theorem is a fundamental result in automata theory with numerous applications in computer science. These include software verification (e.g. infinite-state verification, string constraints, and theory of arrays), verification of cryptographic protocols (e.g. using Horn clauses modulo equational theories) and database querying (e.g. evaluating path-queries in graph databases), among others. Parikh’s Theorem states that the letter-counting abstraction of a language recognized by finite automata or context-free grammars is definable in Linear Integer Arithmetic (a.k.a. Presburger Arithmetic). In fact, there is a linear-time algorithm computing existential Presburger formulas capturing such abstractions, which enables an efficient analysis via SMT-solvers. Unfortunately, real-world applications typically require large alphabets (e.g. Unicode, containing a million of characters) — which are well-known to be not amenable to explicit treatment of the alphabets — or even worse infinite alphabets. Symbolic automata have proven in the last decade to be an effective algorithmic framework for handling large finite or even infinite alphabets. A symbolic automaton employs an effective boolean algebra, which offers a symbolic representation of character sets (i.e. in terms of predicates) and often lends itself to an exponentially more succinct representation of a language. Instead of letter-counting, Parikh’s Theorem for symbolic automata amounts to counting the number of times different predicates are satisfied by an input sequence. Unfortunately, naively applying Parikh’s Theorem from classical automata theory to symbolic automata yields existential Presburger formulas of exponential size. In this paper, we provide a new construction for Parikh’s Theorem for symbolic automata and grammars, which avoids this exponential blowup: our algorithm computes an existential formula in polynomial-time over (quantifier-free) Presburger and the base theory. In fact, our algorithm extends to the model of parametric symbolic grammars, which are one of the most expressive models of languages over infinite alphabets. We have implemented our algorithm and show it can be used to solve string constraints that are difficult to solve by existing solvers.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Decision Procedures for Sequence Theories 引用了 Solving string constraints with Regex-dependent functions through transducers with priorities and variables
  • Regex Decision Procedures in Extended RE# 引用了 Decision Procedures for Sequence Theories
  • Regex Decision Procedures in Extended RE# 引用了 Solving string constraints with Regex-dependent functions through transducers with priorities and variables
  • Regex Decision Procedures in Extended RE# 引用了 Symbolic Boolean derivatives for efficiently solving extended regular expression constraints
  • Regex Decision Procedures in Extended RE# 引用了 Word Equations in Synergy with Regular Constraints
  • Regex Decision Procedures in Extended RE# 引用了 Derivative Based Nonbacktracking Real-World Regex Matching with Backtracking Semantics
  • Word Equations in Synergy with Regular Constraints 引用了 Solving string constraints with Regex-dependent functions through transducers with priorities and variables
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Regex Decision Procedures in Extended RE#Ian Erik Varatalu, Margus Veanes, Ekaterina Zhuchko, Juhan P. ErnitsCAV 2025 · 3 次引用
  2. Star Complexity of Parikh Images of Languages over Infinite AlphabetsYoav DanieliLICS 2026

它引用的 Paper6

  1. Solving string constraints with Regex-dependent functions through transducers with priorities and variablesTaolue Chen, Alejandro Flores-Lamas, Matthew Hague, Zhilei Han 等POPL 2022 · 39 次引用
  2. Symbolic Boolean derivatives for efficiently solving extended regular expression constraintsCaleb Stanford, Margus Veanes, Nikolaj S. BjørnerPLDI 2021 · 38 次引用
  3. Derivative Based Nonbacktracking Real-World Regex Matching with Backtracking SemanticsDan Moseley, Mario Nishio, Jose Perez Rodriguez, Olli Saarikivi 等PLDI 2023 · 21 次引用
  4. Word Equations in Synergy with Regular ConstraintsFrantisek Blahoudek, Yu-Fang Chen, David Chocholatý, Vojtech Havlena 等FM 2023 · 16 次引用
  5. Decision Procedures for Sequence TheoriesArtur Jez, Anthony W. Lin, Oliver Markgraf, Philipp RümmerCAV 2023 · 8 次引用

相关 Paper

  1. A Constraint Solving Approach to Parikh Images of Regular LanguagesAmanda Stjerna, Philipp RümmerOOPSLA 2024 · 2 次引用
  2. Context-Free-Language Reachability for Almost-Commuting Transition SystemsNikhil Pimpalkhare, Zachary Kincaid, Thomas RepsPOPL 2026
  3. How Big is the Automaton? Certified Lower Bounds on the Size of Presburger DFAsNicolas Amat, Pierre Ganty, Alessio MansuttiASE 2025 · 1 次引用
  4. Reasoning on Data Words over Numeric DomainsDiego Figueira, Anthony Widjaja LinLICS 2022 · 3 次引用
  5. A Uniform Framework for Handling Position Constraints in String SolvingYu-Fang Chen, Vojtech Havlena, Michal Hecko, Lukás Holík 等PLDI 2025
黄昏的海面,两侧是细线勾勒的悬崖