Lune

POPL2026顶会

Counting and Sampling Traces in Regular Languages

Alexis de Colnet, Kuldeep S. Meel, Umang Mathur

摘要

In this work, we study the fundamental problems of counting and sampling traces that a regular language touches. Formally, one fixes the alphabet Σ and an independence relation I ⊆ Σ × Σ. The computational problems we address take as input a regular language 𝐿 over Σ, presented as a finite automaton with 𝑚 states, together with a natural number 𝑛 (presented in unary). For the counting problem, the output is the number of Mazurkiewicz traces (induced by I) that intersect the 𝑛 th slice 𝐿 𝑛 = 𝐿 ∩ Σ 𝑛 of 𝐿, i.e., traces that have at least one linearization in 𝐿 𝑛 . For the sampling problem, the output is a trace drawn from a distribution that is approximately uniform over all such traces. These problems are motivated by applications such as bounded model checking based on partial-order reduction, where an a priori estimate of the size of the state space can significantly improve usability, as well as testing approaches for concurrent programs that use partial-order-aware random sampling, where uniform exploration is desirable for effective bug detection.

We first show that the counting problem is #P-hard even when the automaton accepting the language 𝐿 is deterministic, which is in sharp contrast to the corresponding problem for counting the words of a DFA, which is solvable in polynomial time. We then show that the counting problem remains in the class #P for both NFAs and DFAs, independent of whether 𝐿 is trace-closed. Finally, our main contributions are a fully polynomial-time randomized approximation scheme (FPRAS) that, with high probability, estimates the desired count within a specified accuracy parameter, and a fully polynomial-time almost uniform sampler (FPAUS) that generates traces while ensuring that the distribution induced on them is approximately uniform with high probability.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Greybox Fuzzing for Concurrency Testing 引用了 Truly stateless, optimal dynamic partial order reduction
  • State Space Estimation for DPOR-Based Model Checkers 引用了 Truly stateless, optimal dynamic partial order reduction
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. State Space Estimation for DPOR-Based Model CheckersA. R. Balasubramanian, Mohammad Hossein Khoshechin Jorshari, Rupak Majumdar, Umang Mathur 等PLDI 2026

它引用的 Paper9

  1. Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3James Bornholt, Rajeev Joshi, Vytautas Astrauskas, Brendan Cully 等SOSP 2021 · 63 次引用
  2. Truly stateless, optimal dynamic partial order reductionMichalis Kokologiannakis, Iason Marmanis, Vladimir Gladstein, Viktor VafeiadisPOPL 2022 · 46 次引用
  3. VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu 等ASPLOS 2021 · 40 次引用
  4. Greybox Fuzzing for Concurrency TestingDylan Wolff, Zheng Shi, Gregory J. Duck, Umang Mathur 等ASPLOS 2024 · 19 次引用
  5. Complete Multiparty Session Type Projection with AutomataElaine Li, Felix Stutz, Thomas Wies, Damien ZuffereyCAV 2023 · 17 次引用

相关 Paper

  1. When is approximate counting for conjunctive queries tractable?Marcelo Arenas, Luis Alberto Croquevielle, Rajesh Jayaram, Cristian RiverosSTOC 2021 · 1 次引用
  2. #CFG and #DNNF admit FPRASKuldeep S. Meel, Alexis de ColnetSODA 2026
  3. Predictive Monitoring with Strong Trace PrefixesZhendong Ang, Umang MathurCAV 2024 · 3 次引用
  4. Context-Bounded Verification of Context-Free SpecificationsPascal Baumann, Moses Ganardi, Rupak Majumdar, Ramanathan S. Thinniyam 等POPL 2023 · 3 次引用
  5. Approximate counting and sampling via local central limit theoremsVishesh Jain, Will Perkins, Ashwin Sah, Mehtaab SawhneySTOC 2022 · 9 次引用
黄昏的海面,两侧是细线勾勒的悬崖