# Certified Split Windows for Parallel Lexing: Recovering Boundaries Where No Byte Certifies

DevFeed: [Certified Split Windows for Parallel Lexing: Recovering Boundaries Where No Byte Certifies](<https://devfeed.tech/articles/certified-split-windows-for-parallel-lexing-recovering-boundaries-where-no-byte-certifies-101586.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2608.09761>)

Author: Nicklas Nidh\\"ogg

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Automaton](<https://devfeed.tech/topics/automaton.md>), [Finite-state machine](<https://devfeed.tech/topics/finite-state-machine.md>)

Tags: [certificate](<https://devfeed.tech/tags/certificate.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-fl](<https://devfeed.tech/tags/cs-fl.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [lexer](<https://devfeed.tech/tags/lexer.md>), [local](<https://devfeed.tech/tags/local.md>), [model](<https://devfeed.tech/tags/model.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [profile](<https://devfeed.tech/tags/profile.md>), [pspace](<https://devfeed.tech/tags/pspace.md>), [scanner](<https://devfeed.tech/tags/scanner.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [serial](<https://devfeed.tech/tags/serial.md>), [split](<https://devfeed.tech/tags/split.md>), [stream](<https://devfeed.tech/tags/stream.md>), [string](<https://devfeed.tech/tags/string.md>), [tables](<https://devfeed.tech/tags/tables.md>), [token](<https://devfeed.tech/tags/token.md>), [using](<https://devfeed.tech/tags/using.md>), [window](<https://devfeed.tech/tags/window.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

The paper extends certified parallel-lexing boundaries from single bytes to bounded windows that reveal where the token covering the window's final byte began. It models possible maximal-munch scanner histories and decides reachability exactly within a finite quotient: positive results are sound semantic certificates for flat, completely tokenizable input, while negative results are limited by the conservative model. Certificates depend on an asserted occurrence witness and may otherwise be vacuous. In 400 random token sets, 322 of 337 sets with no byte certificate gained a witnessed window; every exact-empty case in the predecessor study gained one of two to four bytes. Analysis uses compiled tables once after automaton construction, without input. The existence problem is PSPACE-complete, and shortest windows can be exponentially long in the square root of the number of live states.

## Source excerpt

arXiv:2608.09761v3 Announce Type: replace-cross Abstract: A certified split point lets a parallel lexer cut unlexed input at a single byte with the serial token stream provably preserved, but several conventional token sets in the predecessor's controlled 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 after which the position where the current token began is known, regardless of surrounding context. We certify the directly usable form of that recovery, namely that the token covering the window's final byte begins at the reported origin. 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 that model 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 deliberately refuses some windows a greedy scanner would allow. Whether the model certifies any window, plain or witnessed, is PSPACE-complete, and a shortest window can need $2^{\Omega(\sqrt{n})}$ bytes over n live states. Two smaller searches decide plain model existence, the second shipped in release 2.2.0 of munch. In a sample of 400 random token sets, 322 of the 337 sets certifying no byte gain a witnessed window, with zero inconclusive searches, and every exact-empty row of the predecessor's study gains a witnessed window of two to four bytes. The analysis runs once after automaton construction, using only the compiled tables and no input. A boundary profile marks each gap of a window forced, crossed or open, and a window-local cut is sound exactly at forced gaps.