Strict polynomial time for adaptive cascade routing #
The router uses natural-number child channels. An encoded request sends a channel number and the next block on a single word-oracle port. This lets a single finite machine handle all security parameters and cuts, while each routed query still reads only a bounded reply prefix.
Main definitions #
Cslib.Crypto.encodedCascadeChildRouterruns the cascade router on the single word port.
Main results #
Cslib.Crypto.isOraclePPTOn_encodedCascadeChildRoutercertifies strict oracle PPT with a unary security parameter and cut depth.
References #
- [BS23], v0.6, Section 4.6.1 (printed pp. 152–154) and Section 6.4.2 (printed pp. 229–230), for the adjacent-hybrid routing step.
noncomputable def Cslib.Crypto.encodedCascadeChildRouter (valid : List Bool → Bool) (inLen : ℕ → ℕ) (family : List Bool → List Bool → List Bool) (n depth : ℕ) (program : Probability.WordOracleComp Unit Bool) :
Use the existing adaptive router with each child query sent as an encoded word to the single external port.
theorem Cslib.Crypto.isOraclePPTOn_encodedCascadeChildRouter {valid : ℕ → List Bool → Bool} {inLen : ℕ → ℕ} {family : List Bool → List Bool → List Bool} {adversary : OracleDistinguisher} (hvalid :
Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × List Bool) => valid p.1 p.2)
(Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool) (hIn : Turing.MultiTapeTM.ComputableInPolyTime inLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary) (hLen : ∀ (key block : List Bool), block.length = inLen key.length → (family key block).length = key.length) (hEval :
Turing.MultiTapeTM.ComputableInPolyTime (fun (p : List Bool × List Bool) => family p.1 p.2)
(Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits) (hA : Probability.IsOraclePPT Turing.MultiTapeTM.encBool adversary) :
Probability.IsOraclePPTOn
(Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits)
Turing.MultiTapeTM.encUnary)
Turing.MultiTapeTM.encBool fun (p : (ℕ × List Bool) × ℕ) =>
encodedCascadeChildRouter (valid p.1.1) inLen family p.1.1 p.2 (adversary p.1.1 p.1.2)
The encoded router is strict oracle PPT, uniformly in the security parameter, auxiliary word and cut depth. The base family is polynomial-time and preserves key width on full blocks.