Documentation

CslibFrontier.Crypto.Computational.PseudorandomFunction.Cascade.Hybrid

Prefix hybrids for the word cascade #

This is the endpoint step for the cascade proof of [BS23], v0.6, Section 6.4.2 (printed pp. 229–230), which carries over the variable-length tree hybrids from Section 4.6.1 (printed pp. 152–153). At block depth d, sample a uniform key for each distinct prefix of at most d blocks and evaluate the remaining suffix using the cascade. Short queries are their own frontier prefixes, so a cut covering the domain is the random-function oracle even when valid queries can have different lengths. The adjacent-hybrid reduction requires prefix-free admissibility and is separate.

For the source's admissible queries (Definition 4.5), choose valid n to accept encodings of one through ℓ blocks from the input alphabet. The endpoint laws also hold when the predicate allows the empty word. Invalid queries receive [].

noncomputable def Cslib.Crypto.cascadePrefixHybridGame (valid : ℕ → List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (adversary : OracleDistinguisher) (n depth : ℕ) :

Run a cascade prefix hybrid. The level counts whole blocks; the shared word hybrid cuts after depth * inLen n bits.

theorem Cslib.Crypto.eval_cascadePrefixHybridGame_zero (valid : ℕ → List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (adversary : OracleDistinguisher) (n : ℕ) :
(cascadePrefixHybridGame valid inLen family adversary n 0).eval = (prfRealGameOn valid (cascadeFamily inLen family) adversary n).eval

At depth zero the suffix is the entire query and the shared root is the real key.

theorem Cslib.Crypto.eval_cascadePrefixHybridGame_eq_ideal {valid : ℕ → List Bool → Bool} {inLen : ℕ → ℕ} (family : List Bool → List Bool → List Bool) (adversary : OracleDistinguisher) {n depth : ℕ} (hcut : ∀ (query : List Bool), valid n query = true → query.length ≤ depth * inLen n) :
(cascadePrefixHybridGame valid inLen family adversary n depth).eval = (prfIdealGameOn valid id adversary n).eval

If the cut covers every valid query then the labels are independent ideal oracle replies.

Certify the complete word-cascade hybrid against a strict oracle-PPT adversary. The evaluator, block width and validity test are polynomial-time computable, and the base evaluator preserves the key width on valid blocks. The parameter and depth are unary and the certificate charges the encoded prefix cache.