paperbot · PL 论文追踪

RSS

Formal Verification for JavaScript Regular Expressions: A Proven Mechanized Semantics and Its Applications

POPL 10(POPL)2026
Aurèle Barrière, Victor Deng, Clément Pit-Claudel

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

We present the first mechanized, succinct, practical, complete, and proven-faithful semantics for a modern regular expression language with backtracking semantics. We ensure its faithfulness by proving it equivalent to a preexisting line-by-line embedding of the official ECMAScript specification of JavaScript regular expressions. We demonstrate its practicality by presenting two real-world applications. First, a new notion of contextual equivalence for modern regular expressions, which we use to prove or disprove rewrites drawn from previous work. Second, the first formal proof of the PikeVM algorithm used in many real-world engines. In contrast with the specification and other formalization work, our semantics captures not only the top-priority match, but a full backtracking tree recording all possible matches and their respective priority. All our definitions and results have been mechanized in the Rocq proof assistant.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot3872,
  title = {Formal Verification for JavaScript Regular Expressions: A Proven Mechanized Semantics and Its Applications},
  author = {Aurèle Barrière and Victor Deng and Clément Pit-Claudel},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {POPL},
  year = {2026},
  doi = {10.1145/3776710}
}