Documentation

CslibFrontier.Crypto.Computational.Pseudoentropy.Learning

From sequence distinguishers to validation bias #

Saved coordinate predictors turn a sequence distinguishing gap into the average bias of a weighted validation trial. All target predictions receive only the public observation.

The replay law is an explicit hypothesis. SequenceLearner constructs saved descriptions, obtains replay from a certified sequence test, and learns a predictor from this bias (SequenceLearner.learn_goodPredictor_error). Choosing uniform asymptotic parameters remains a separate step in the final cryptographic reduction.

Main results #

References #

Adapted from the cslib crypto branch at 5ff69ca93402e7c947208dc56396d6d86203ccd8.

theorem Cslib.Crypto.Pseudoentropy.maskedSequence_validation_gap {α β : Type} [Finite α] (source : ProbComp α) (observe : α → β) (truth : α → Bool) (mask : α → ProbComp Bool) (count : ℕ) (test : List (β × Bool) → ProbComp Bool) (candidates : ProbComp (List Bool)) (predict : List Bool → β → Bool) (hrealize : ∀ value ∈ source.eval.support, ((fun (code : List Bool) => predict code (observe value)) <$> candidates).eval = (maskedSequencePredictor source observe truth mask count test (observe value)).eval) :
((OracleComp.replicate count ((fun (value : α) => (observe value, truth value)) <$> source) >>= test).eval true).toReal - ((OracleComp.replicate count (maskedSample source observe truth mask) >>= test).eval true).toReal = ↑(Probability.dyadicSize count) * (((do let code ← candidates Boosting.weightedTrial source mask fun (value : α) => pure (predict code (observe value) == truth value)).eval true).toReal - 1 / 2)

The complete sequence gap is the dyadic coordinate count times the average weighted validation bias of saved descriptions. The replay law is needed only at actual observations.