Adversaries with advice #
An adversary with advice reads the unary parameter n, an advice word and its challenge word.
This module fixes that input encoding and relates such adversaries to uniform ones, in both
directions. A uniform adversary is an advice adversary that ignores its advice, and an advice
adversary run on empty advice is a uniform adversary. Every notion relative to a fixed advice
family thus specializes to its uniform counterpart at empty advice.
Main definitions #
Cslib.Crypto.encAdvisedInputWith,Cslib.Crypto.encAdvisedInput: the input encoding((1ⁿ, advice), x)of an adversary with typed advice, and with an advice word.
Main results #
Cslib.Probability.IsPPT.dropAdvice: a uniform adversary is an advice adversary that ignores its advice.Cslib.Probability.IsPPTOn.nilAdvice: an advice adversary run on empty advice is a uniform adversary.
Input ((1ⁿ, advice), x) of an adversary with typed advice encoded by encAdvice: the
parameter n in unary paired with the encoded advice, then the challenge word x. The pair
(n, advice) is framed, and within it the parameter; x is not.
Input ((1ⁿ, advice), x) of an adversary with advice: the parameter n in unary paired
with the advice word, then the challenge word x. The pair (n, advice) is framed, and within it
the parameter; x is not. This is encAdvisedInputWith at the advice word's own encoding.