Documentation

CslibFrontier.Crypto.Computational.PseudorandomFunction.Cascade.ChildTables

Child-function games for adjacent cascade hybrids #

The two neighboring cascade hybrids use the same short-label table and the same query responder. For a longer query, the responder evaluates the next block using the child function at its parent prefix, then continues evaluating the remaining suffix. In the old-depth game each child function is the base family under an independent parent key. In the new-depth game each child function is an independent uniform random function.

These are eager, distribution-level endpoint laws for the adjacent-hybrid step of [BS23], v0.6, Sections 4.6.1 (printed pp. 152–154) and 6.4.2 (printed pp. 229–230). The laws identify the child-function distribution that the adaptive reduction will replace.

noncomputable def Cslib.Crypto.cascadeChildTableGame (valid : ℕ → List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (adversary : OracleDistinguisher) (n depth : ℕ) [Fintype { word : List Bool // word.length ≤ depth * inLen n }] (children : PMF (BitString (depth * inLen n) → BitString (inLen n) → BitString n)) :

Run the cascade client with prescribed child-function distribution and independent uniform labels for words ending at or before the old depth. Invalid queries receive the empty word.

theorem Cslib.Crypto.eval_cascadePrefixHybridGame_eq_childTables_real (valid : ℕ → List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (adversary : OracleDistinguisher) (n depth : ℕ) [Fintype { word : List Bool // word.length ≤ depth * inLen n }] (hwidth : 0 < inLen n) (halign : ∀ (query : List Bool), valid n query = true → inLen n ∣ query.length) (hlen : ∀ (key block : List Bool), block.length = inLen key.length → (family key block).length = key.length) (hpf : IsPrefixFreeOn (valid n) n (adversary n [])) :
(cascadePrefixHybridGame valid inLen family adversary n depth).eval = cascadeChildTableGame valid inLen family adversary n depth (PMF.map (fun (keys : BitString (depth * inLen n) → BitString n) (parent : BitString (depth * inLen n)) (block : BitString (inLen n)) => BitString.ofList n (family (List.ofFn (keys parent)) (List.ofFn block))) (Probability.PMF.uniformOfFintype (BitString (depth * inLen n) → BitString n)))

In the real child-function world, independent parent keys reproduce the previous cascade hybrid for a prefix-free client. The domain uses whole blocks, and the base family preserves key width on such blocks.

theorem Cslib.Crypto.eval_cascadePrefixHybridGame_succ_eq_childTables_ideal (valid : ℕ → List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (adversary : OracleDistinguisher) (n depth : ℕ) [Fintype { word : List Bool // word.length ≤ depth * inLen n }] (hwidth : 0 < inLen n) (halign : ∀ (query : List Bool), valid n query = true → inLen n ∣ query.length) :
(cascadePrefixHybridGame valid inLen family adversary n (depth + 1)).eval = cascadeChildTableGame valid inLen family adversary n depth (Probability.PMF.uniformOfFintype (BitString (depth * inLen n) → BitString (inLen n) → BitString n))

Independent uniform child functions reproduce the next cascade hybrid on aligned queries.