Documentation

CslibFrontier.Crypto.Computational.PseudorandomFunction.Cascade.ChildReductionLaw

Fixed-channel law for the cascade child challenge #

With the challenge channel, external function, and key word fixed, the simulated child oracle has the same output law as an eager table. Earlier channels read independent uniform functions, the selected channel reads the external function, and later channels evaluate the keyed family. The law holds for adaptive clients with private coins.

Main results #

References #

theorem Cslib.Crypto.evalWith_cascadeChildChallengeAtProgram_eq_eager {count width n : ℕ} (family : List Bool → List Bool → List Bool) (hlength : ∀ (key block : List Bool), key.length = n → block.length = width → (family key block).length = n) (selected : Fin count) (keys : List Bool) (challenge : BitString width → BitString n) (program : Probability.WordOracleComp ℕ Bool) :
OracleComp.evalWith (OracleComp.sumHandler ProbComp.unifOracle fun (req : Unit × List Bool) => PMF.pure (randomFunctionOracle width challenge req.2)) (cascadeChildChallengeAtProgram family width n count (↑selected) keys program) = (Probability.PMF.uniformOfFintype (Fin count × BitString width → BitString n)).bind fun (ideal : Fin count × BitString width → BitString n) => have table := fun (channel : Fin count) (block : BitString width) => if channel < selected then ideal (channel, block) else if channel = selected then challenge block else BitString.ofList n (family (BitString.listRow n (↑channel) keys) (List.ofFn block)); PMF.map Prod.fst (ProbOracleComp.runWith (cascadeChildFiniteOracle table) program 0)

Fixed-channel step of the cascade reduction. For a width-preserving keyed family, running the word program against a fixed challenge function gives the eager finite-table law with independent uniform earlier rows, the supplied challenge row, and later rows keyed from keys.