Ambiguous requirements can admit several non-equivalent formal specifications. We study the symbolic synthesis of complete distinguishing test batches for specification narrowing through expert review. Synthesized upfront, these fixed suites of instances or traces separate every candidate pair and support asynchronous and parallel classification. We formalize batch synthesis as a candidate-pair cover problem over an implicit test space and develop four methods for bounded Alloy models and temporal traces. Two cover-based methods obtain minimum-cardinality batches through joint MaxSAT optimization or SAT enumeration followed by explicit minimum-cover selection. Two tree-guided methods use SAT or balanced MaxSAT and reuse tests across branches. Our evaluation covers 196 static and 32 temporal configurations. On paired static configurations, reuse reduces balanced batch cardinality by 42% relative to the unreused construction tree, and minimum covers are a further 29% smaller. The SAT-based tree-guided method completes every main-study configuration within 0.43 seconds, while the exact methods exhibit different scalability profiles, particularly for temporal models. Complete batches also support adaptive review, with balanced batches nearly attaining the theoretical lower bound on mean classification cost. On completed benchmarks, modest additional upfront synthesis effort provides complete reusable suites that also support competitive adaptive classification.
翻译:暂无翻译