Documentation

CslibFrontier.Crypto.Computational.PseudorandomFunction.Cascade.ChildReduction

Single-key challenge program for cascade child channels #

A client uses natural-number channels in order of first visit. The program draws a challenge index using fair bits and rejects indices outside the channel budget. It memoizes random replies on earlier channels, forwards the selected channel to a single external word oracle, and uses independent private keys for later channels. Inputs are read as fixed-width blocks and replies are capped at the state width.

Main definitions #

Main results #

References #

State of the single-key simulation. The cursor counts channels already assigned, and only channels before the challenge need an answer cache.

  • assigned : ℕ

    Number of child channels assigned in first-use order.

  • idealAnswers : List ((ℕ × List Bool) × List Bool)

    Sampled ideal answers, keyed by channel number and normalized block.

Answer a request for an already assigned channel or the next unused channel, below count. Earlier channels have independent lazy random functions, selected calls the external oracle, and later channels use separate n-bit rows of keys.

noncomputable def Cslib.Crypto.cascadeChildChallengeAtProgram (family : List Bool → List Bool → List Bool) (width n count selected : ℕ) (keys : List Bool) (program : Probability.WordOracleComp ℕ Bool) :

Run the simulated child oracle from an empty state with a fixed challenge channel and key word. The sampled wrapper rejects out-of-range channels before calling this program.

Draw the private keys and simulate the client at the specified challenge index.

A child challenge at a computed binary index is strict oracle PPT. The caller supplies the certificate for the client on the single word port.

noncomputable def Cslib.Crypto.cascadeChildChallengeProgram (family : List Bool → List Bool → List Bool) (width n count indexBits : ℕ) (program : Probability.WordOracleComp ℕ Bool) :

Sample a challenge index from indexBits fair bits. If it is in range, draw one private n-bit key per channel and run the client with the simulated child oracle. An out-of-range index returns false before the client runs.

The sampled challenge simulation is strict oracle PPT for a client certified on the single word port. The channel budget, block width and number of fair bits are unary computations, while the sampled index stays binary even on the rejection branch.

theorem Cslib.Crypto.isQueryBounded_cascadeChildChallengeWithIndex (family : List Bool → List Bool → List Bool) (width n count selected : ℕ) {program : Probability.WordOracleComp ℕ Bool} {budget : ℕ} (hbudget : ProbOracleComp.IsQueryBounded program budget) :
ProbOracleComp.IsQueryBounded (cascadeChildChallengeWithIndex family width n count selected program) budget

The fixed-index simulation forwards at most one external query per client query.

theorem Cslib.Crypto.isQueryBounded_cascadeChildChallengeProgram (family : List Bool → List Bool → List Bool) (width n count indexBits : ℕ) {program : Probability.WordOracleComp ℕ Bool} {budget : ℕ} (hbudget : ProbOracleComp.IsQueryBounded program budget) :
ProbOracleComp.IsQueryBounded (cascadeChildChallengeProgram family width n count indexBits program) budget

Local key and answer sampling consumes no external queries. The challenge channel forwards at most one external query per client query.