Distribution distinguishing problems #
A DistinguishingProblem consists of two discrete laws on the observations supplied to a test.
Its experiment draws from the null law for false and the alternative law for true, then
runs a randomized Boolean test. The hypothesis bit selects the law; it is not given to the test.
The definition does not choose an encoding, an algorithm class or a resource bound. In
particular, specifying a law does not assert that it has an efficient sampler. A family may use
a different observation type at every parameter. The shared Boolean-game predicates in
Crypto/Game can then restrict tests by any model of computation.
map and bind apply the same deterministic or randomized transformation to both laws. Their
experiment equations express exactly the composition used by distributional reductions;
efficiency and approximation bounds are separate obligations of a concrete reduction.
Two observation laws to be distinguished, independent of a computational model.
Draw from the selected law and run the test, revealing only the sampled observation.
Under the null hypothesis the test receives a sample from nullDist.
Under the alternative hypothesis the test receives a sample from alternativeDist.
A deterministic test pushes the selected input law forward to its Boolean answer.
A test that ignores its observation has the same answer law under either hypothesis.
Apply one deterministic observation map under both hypotheses.
Apply one randomized observation kernel under both hypotheses.
Testing deterministically transformed observations precomposes the test with the map.
Testing randomly transformed observations composes the kernel with the test.
Postprocessing the test's answer postprocesses the experiment's answer.