Binary search with a language oracle #
A total deterministic program recovers F < 2^N from threshold requests k ≤ F in N rounds. The strict polynomial-time certificate charges constructing requests, reading replies, and the binary search state; N is supplied by a polynomial-time unary computation. This general search is shared by ordinary and relativized counting clients.
Main results #
Cslib.Complexity.BinarySearch.interpret_id_search: correctness against a threshold oracle.Cslib.Complexity.BinarySearch.isOraclePPTOn_search: the uniform strict resource certificate.
Binary search #
Binary search with an oracle #
Binary search in N rounds with the oracle, about the codes encPair encBits encNat (u, k).
Binary search finds the number. Against an oracle containing the code of (u, k) exactly
when k ≤ F, the search in N rounds returns F < 2 ^ N.
Binary search is strict oracle PPT: N rounds, with N computed in unary, each building
one request and reading one reply bit, on states of a binary number below 2 ^ N and a unary
counter.