Documentation

CslibFrontier.Crypto.Computational.PseudorandomFunction.Cascade.ChildRoutingLaw

Distribution of adaptive cascade child routing #

When child functions are independently sampled in channel order, the cascade router has the same law as sampling them by parent prefix. This is a distribution-level step of the adjacent-hybrid argument in [BS23], v0.6, Sections 4.6.1 (printed pp. 152–154) and 6.4.2 (printed pp. 229–230).

Main definitions #

Main results #

noncomputable def Cslib.Crypto.cascadeChildChannelOracle {width n : ℕ} (distribution : PMF (BitString width → BitString n)) (request : ℕ × List Bool) :

The child oracle assigns an independent function to the next channel on its first use. It reuses earlier functions and gives an empty reply to a channel that skips this order.

The cached assignments in the prefix-indexed child game. width is the input size of each child function and n is its output size.

noncomputable def Cslib.Crypto.cascadeChildPrefixOracle (valid : List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (n depth : ℕ) (distribution : PMF (BitString (inLen n) → BitString n)) (query : List Bool) :

Read or sample a short label or the child function for a long query's parent. Invalid queries return the empty word and leave both caches untouched.

noncomputable def Cslib.Crypto.cascadeChildPrefixGame (valid : List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (n depth : ℕ) (distribution : PMF (BitString (inLen n) → BitString n)) (program : Probability.WordOracleComp Unit Bool) :

Sample each valid short word's label independently, and each long query's child function independently at its parent prefix. Both assignments are retained for subsequent queries. The child's input is the next block padded to width if the caller allows a partial block.

theorem Cslib.Crypto.runWith_cascadeChildRouter_eq_prefixGame (valid : List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (n depth : ℕ) (distribution : PMF (BitString (inLen n) → BitString n)) (program : Probability.WordOracleComp Unit Bool) :
PMF.map Prod.fst (ProbOracleComp.runWith (cascadeChildChannelOracle distribution) (cascadeChildRouter valid inLen family n depth program) []) = cascadeChildPrefixGame valid inLen family n depth distribution program

The first-use numbering of child functions preserves the output law for arbitrary adaptive cascade clients. The channel oracle is used in order even though its interface accepts any natural number.