Documentation

CslibFrontier.Crypto.Computational.PseudorandomFunction.Cascade.ChildRouting

Adaptive routing for cascade child queries #

At a cut between blocks, the router assigns a channel to a parent prefix when a long query first visits it. Later queries to the same parent use that channel. The next block is the child query, and the cascade processes the remaining suffix from the returned label. Short queries use a local label cache.

This is the query routing step for the adjacent hybrids of [BS23], v0.6, Sections 4.6.1 (printed pp. 152–154) and 6.4.2 (printed pp. 229–230). It supplies the external query-count bound. The distribution law and polynomial-time certificate are separate from this bound.

Main definitions #

Main results #

@[reducible, inline]

A framed unary channel number followed by the raw block bits.

State of the adaptive router. A parent's position in parents is its channel number.

  • parents : List (List Bool)

    Parent prefixes of previously forwarded queries, in order of first appearance.

  • shortLabels : List (List Bool × List Bool)

    Uniform labels already assigned to valid queries ending at or before the cut.

noncomputable def Cslib.Crypto.cascadeChildRoute (valid : List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (n depth : ℕ) (query : List Bool) (state : CascadeChildRouterState) :

Route one cascade query. An invalid query leaves the state untouched. A long query sends its next block to the channel for its parent prefix. Only the first n bits of a child reply are used, which preserves replies of the intended width.

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

Run the adaptive client using private random labels and child-oracle channels numbered by the order in which parent prefixes are first encountered.

theorem Cslib.Crypto.isQueryBounded_cascadeChildRouter (valid : List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (n depth : ℕ) {program : Probability.WordOracleComp Unit Bool} {budget : ℕ} (h : ProbOracleComp.IsQueryBounded program budget) :
ProbOracleComp.IsQueryBounded (cascadeChildRouter valid inLen family n depth program) budget

Each original external query produces at most one child-oracle query.