Documentation

CslibFrontier.Crypto.Game.DistributionalSearch

Inversion and prediction as distributional search #

The existing inversion and prediction experiments are instances of partially observed distributional search. In both cases the hidden state is the sampled input, and the observation is its image. Inversion accepts any preimage of that image; prediction accepts the designated bit of the sampled input. The equality theorems below identify the complete Boolean laws with inversionExperiment and predictionExperiment, so their existing probability bounds apply.

These constructions specify search problems, without imposing a new security or computation model. A DistributionalSearchProblem.HasSolver instance supplies an evaluator and admissibility predicate; the existing cryptographic game notions can instead quantify over adversaries.

Main definitions #

Main results #

def Cslib.Crypto.inversionSearchProblem {α : Type} {β : Type u_1} (sample : PMF α) (f : α → β) :

Inversion as distributional search: the solver sees f x and may return any of its preimages. Recovering the particular sampled input is not required.

def Cslib.Crypto.predictionSearchProblem {α : Type} {β : Type u_1} (sample : PMF α) (f : α → β) (h : α → Bool) :

Predicting a hidden bit as distributional search: the solver sees f x and must return h x. The input x remains available to the success test only.

@[simp]
theorem Cslib.Crypto.experiment_inversionSearchProblem {α : Type} {β : Type u_1} [BEq β] [LawfulBEq β] (sample : PMF α) (f : α → β) (inverter : β → PMF α) :
(inversionSearchProblem sample f).experiment inverter = inversionExperiment sample f inverter

With lawful Boolean equality, mathematical inversion success is exactly the existing inversion experiment's success test, including for noninjective functions.

@[simp]
theorem Cslib.Crypto.experiment_predictionSearchProblem {α : Type} {β : Type u_1} (sample : PMF α) (f : α → β) (h : α → Bool) (predictor : β → PMF Bool) :
(predictionSearchProblem sample f h).experiment predictor = predictionExperiment sample f h predictor

Distributional search reproduces the existing hidden-bit prediction experiment.