The Trichotomy of Regular Property Testing
Gabriel Bathie, Nathanaël Fijalkow, Corto Mascle
TL;DR
This work resolves the query-complexity landscape for property testing of regular languages under the Hamming distance by establishing a trichotomy: trivial, easy, and hard classes determined by the structure of minimal blocking sequences. It introduces blocking sequences (and their strong variant) and portals/SCC-paths to capture how words force non-membership across automata components, enabling tight upper and lower bounds. A near-optimal tester with O(log(1/ε)/ε) queries is shown for strongly connected NFAs, with a distribution-based lower bound proving hardness when infinitely many minimal blocking factors exist; these ideas extend to all NFAs, culminating in a PSPACE-complete decision procedure to classify automata into the three classes. The results consolidate and sharpen prior work, provide a polynomial-space characterization, and deliver practical testers and structural insights for regular-language property testing, with implications for streaming and sublinear-time decision procedures.
Abstract
Property testing is concerned with the design of algorithms making a sublinear number of queries to distinguish whether the input satisfies a given property or is far from having this property. A seminal paper of Alon, Krivelevich, Newman, and Szegedy in 2001 introduced property testing of formal languages: the goal is to determine whether an input word belongs to a given language, or is far from any word in that language. They constructed the first property testing algorithm for the class of all regular languages. This opened a line of work with improved complexity results and applications to streaming algorithms. In this work, we show a trichotomy result: the class of regular languages can be divided into three classes, each associated with an optimal query complexity. Our analysis yields effective characterizations for all three classes using so-called minimal blocking sequences, reasoning directly and combinatorially on automata.
