State-separating handlers: identical-until-bad #
Identical-until-bad wrappers for QueryImpl.Stateful handlers whose state is
of the form σ × Bool, with the Boolean component acting as the bad flag.
State-dependent ε-perturbed identical-until-bad with output bad flag.
Constant-ε identical-until-bad with output bad flag.
Invariant-gated variants #
Invariant-gated state-dependent ε-perturbed identical-until-bad.
The costly-step TV hypothesis is required only for states satisfying Inv.
The generated query-slack function charges the intended ε s on invariant states and
the conservative fallback cost 1 elsewhere.
Invariant-preserving state-dependent ε-perturbed identical-until-bad.
If the real handler preserves Inv from the initial no-bad state, then the
fallback branch in the invariant-gated cost is unreachable, so the final
expected-cost term uses the tight query-slack function ε.