Sharp Two-Round Adaptivity and Round Hierarchies for Semantic Regular Expressions
arXiv:2607.22799
Abstract
Semantic regular expressions (SemREs) attach external Boolean predicates to matched spans, making both the number and the sequentiality of oracle calls central resources. For a fixed expression and word, we represent membership by a polynomial-size monotone span circuit and identify optimal semantic evaluation with Boolean decision-tree evaluation. We determine the extremal power of adaptivity asymptotically sharply. For every , there is a unary, star-free, semantic-depth-one instance of syntax size with essential oracle keys and only unit-length semantic spans whose one-round cost is , whereas its exact two-round and unrestricted deterministic costs are \[ \log_2 E+\tfrac12\log_2\log_2 E+O(1). \] Consequently, the largest nonadaptive-to-adaptive ratio is , including the optimal leading constant. A second restricted family exhibits a complete round hierarchy: its optimal -round cost is . Thus the maximal gap already appears in two rounds, while other instances interpolate smoothly across all round budgets. Both constructions admit one-predicate realizations over the fixed alphabet with logarithmic-length semantic spans and total representation size. Under pointwise error and worst-case expected cost, randomized nonadaptive complexity is exactly for every instance with essential keys. Finally, for a fixed word and predicate names, the exact randomized minimax value is , where counts distinct substring values; a span bound replaces by . These results separate semantic information acquisition, parallel latency, and local symbolic matching cost.