计算机科学 > 形式语言与自动机理论
[提交于 2026年8月10日 (v1),最后修订于 2026年11月22日 (此版本, v4)]
标题:Certified Split Windows for Parallel Lexing: Recovering Boundaries Where No Byte Certifies
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A certified split point lets a parallel lexer cut unlexed input at one byte with the serial token stream provably preserved, but several conventional token sets in the predecessor's study certify no byte once string, comment, or whitespace-run forms are included (arXiv:2608.03473v2). We generalize from a byte to a bounded window, a byte string such that, whatever the context, the token covering its final byte begins at a known origin. Since the certificate is conditional on occurrence and may be vacuous, every applicability figure counts only windows carrying an asserted completely tokenizable occurrence witness. We give a conservative model of a maximal-munch scanner's possible histories across a window, prove it sound, and decide reachability in it exactly by exhausting a finite quotient of its reachable configurations. Within the flat, completely tokenizable scope, model-positive answers are semantic certificates; negatives are relative to the model, which refuses some windows a greedy scanner would allow. For both model and semantic certificates, existence is PSPACE-complete with or without a witness requirement, and a shortest window has $2^{\Theta(n)}$ bytes in the worst case over at most $n$ live states. Two smaller searches decide plain model existence, the second shipped in release 2.2.0 of munch. Of 400 random token sets, 322 of the 337 certifying no byte gain witnessed windows and four more gain model certificates with occurrence unresolved. No model search reaches its threshold. The predecessor's exact-empty rows all gain witnessed windows of two to four bytes. A boundary profile marks each gap of an occurring window forced, crossed or open, and a window-local cut is sound exactly at forced gaps. Whether a given gap is ever a boundary and whether it is open are PSPACE-complete, while occurrence, the forced verdict and a given origin's certificate are NL-complete.