Dynamic-SID multi-session universal composition #
This module extends the fixed-arity Fin m multi-session composition of
CslibFrontier.Crypto.Protocols.UC.MultiSession to an arbitrary [DecidableEq SID] type of
session identifiers with lazy first-touch session creation, bounded dynamically by the caller's
polynomial query budget.
Scope and relation to [Can20a] #
These results adapt Theorem 22 and Corollaries 23–24 of [Can20a] (JACM pp. 28:58–28:59; ePrint
2000/067, rev. February 11, 2020, pp. 61–62) to dynamically chosen session identifiers sid : SID
with depth-1 subroutine sessions in this library's call-bounded statistical UC model (not the full
PPT ITM Theorem 22; #6043 remains open). Specifically:
- Dynamic first-touch
SIDcreation vs. recursive ITI spawning. Calling protocols and environments may query arbitrarysid : SID(including whenSIDis infinite, e.g.,ℕorList Bool);SSP.parFinLazyanddynHybridSiminitialize each session's state lazily on its first access (matching the single-functionality lazy pattern ofIdealFunctionality.multiSessioninCslibFrontier.Crypto.Protocols.UC.JointState), andSSP.mem_support_parFinLazy_touched_card_le/SSP.touchedSessions_transcript_card_le(inCslibFrontier.Crypto.Protocols.SSP.ParFinLazy) prove that on every supported path of ab-bounded execution at mostbdistinctSIDs are initialized or queried. Subroutines do not recursively spawn nested dynamic sub-sessions (depth-1 call tree). - Homogeneous subroutine protocol
σ. Every dynamic session instantiates the same subroutine protocolσ(orF.toProtocol), whereas fixed-arity heterogeneous families are treated inCslibFrontier.Crypto.Protocols.UC.MultiSession. - Call-bounded statistical model vs. PPT ITMs and §4.4.
DynHybridProtocol.PolyBounded,Protocol.PolyBounded,Adversary.PolyBounded, andEnvironment.PolyBoundedcount oracle calls and private samples per activation, leaving local computation, state size, and message length unbounded; corruptionsC : Finset (Fin n)are static and shared across the calling protocol and all dynamic sessions; interfaces are pull-based. No implication to or from Canetti's PPT or §4.4 notions is claimed.
Proof strategy #
Given a b-query-bounded program over SSP.dynSessionSpec SID E, SSP.allocMachine assigns each
newly touched sid : SID to the next slot in Fin (b + 1) on first access
(SSP.eval_run_parFinLazy_eq_parFin_alloc), using SSP.run_parFinLazy_eq_parFin from
CslibFrontier.Crypto.Protocols.SSP.ParFinLazy to pass from lazy first-touch initialization to
eager SSP.parFin over Fin (b + 1), and then invoking SSP.advantage_parFin_le_sum from
CslibFrontier.Crypto.Protocols.SSP.Hybrid / MultiSession.
Because dynHybridSim itself initializes simulator states lazily on first touch with per-activation
budget 2 * pD + 1, a single simulator serves every environment budget pZ uniformly.
Main definitions #
Cslib.Crypto.Protocols.UC.DynSessionCall: named record selecting a dynamic subroutine sessionsid : SIDand target party portparty.Cslib.Crypto.Protocols.UC.dynPartySpec,Cslib.Crypto.Protocols.UC.DynHybridProtocol,Cslib.Crypto.Protocols.UC.DynHybridProtocol.PolyBounded: dynamic-SID hybrid protocol interfaces.Cslib.Crypto.Protocols.UC.DynNetQ: composed network request port tagging outer vs. per-session subroutine traffic.Cslib.Crypto.Protocols.UC.dynSessionRouter: lazy first-touch parallel router over[DecidableEq SID]viaSSP.parFinLazy.Cslib.Crypto.Protocols.UC.dynHybridWrap,Cslib.Crypto.Protocols.UC.composeDyn: dynamic-SID subroutine replacement.Cslib.Crypto.Protocols.UC.dynHybridSim: lazy parallel simulator creating session states on first touch.Cslib.Crypto.Protocols.UC.absorbDynHybrid,Cslib.Crypto.Protocols.UC.dynSessionHopEnv: absorbed dynamic-SID environment and single-hop hybrid distinguisher.Cslib.Crypto.Protocols.UC.dynSessionHopPoly: explicit polynomial budget bound for single-hop environments.
Main results #
Cslib.Crypto.Protocols.UC.isBounded_dynHybridWrap,Cslib.Crypto.Protocols.UC.absorbDynHybrid_polyBounded,Cslib.Crypto.Protocols.UC.composeDyn_polyBounded,Cslib.Crypto.Protocols.UC.dynHybridSim_polyBounded,Cslib.Crypto.Protocols.UC.dynSessionHopEnv_polyBounded: call-budget preservation independent of any pre-chosen session count.Cslib.Crypto.Protocols.UC.exec_composeDyn_dummy: runningcomposeDyn ρ πwith the dummy adversary equals runningdynSessionRouteragainstabsorbDynHybrid.Cslib.Crypto.Protocols.UC.eval_exec_composeDyn_dynHybridSim_eq_parFin: runningcomposeDyn ρ φwithdynHybridSim Sagrees in distribution with eagerSSP.parFinoverFin (b + 1)viaSSP.allocMachine.Cslib.Crypto.Protocols.UC.advantage_composeDyn_le_sum: telescoping hybrid bound reducing the dynamic-SID distinguishing advantage to a sum overFin (b + 1)of single-session advantages againstdynSessionHopEnv.Cslib.Crypto.Protocols.UC.EmulatesDummyWithin.composeDyn,Cslib.Crypto.Protocols.UC.EmulatesWithin.composeDyn,Cslib.Crypto.Protocols.UC.Emulates.composeDyn,Cslib.Crypto.Protocols.UC.Realizes.composeDyn,Cslib.Crypto.Protocols.UC.Realizes.composeDyn_trans: concrete and asymptotic dynamic-SID universal composition.
References #
- R. Canetti, Universally Composable Security, J. ACM 67(5), Article 28, 2020: Section 6.1 (Theorem 22 p. 28:58; Corollaries 23–24 p. 28:59); IACR ePrint 2000/067 (rev. February 11, 2020), pp. 61–62.
- C. Brzuska, A. Delignat-Lavaud, C. Fournet, K. Kohbrok, M. Kohlweiss, State Separation for
Code-Based Game-Playing Proofs:
SSP.parFin,SSP.advantage_parFin_le_sum.
Dynamic-SID hybrid protocols, routers, simulator, and budgets #
The party-port interface of dynamic-SID subroutine sessions of n parties: each
DynSessionCall receives an optional output of the subroutine.
Every activation of the dynamic-SID hybrid protocol at security parameter κ makes at most
p.eval κ calls, counting private samples and subroutine calls.
Network-side query to a dynamic-SID composed protocol: either a query to the outer calling
protocol ρ's own network port, or a query to dynamic subroutine session sid's routed network
port.
- outer {SID NetQ SubRoutedQ : Type} (query : NetQ) : DynNetQ SID NetQ SubRoutedQ
A query directed to the outer calling protocol
ρ's own network port. - sub {SID NetQ SubRoutedQ : Type} (sid : SID) (query : SubRoutedQ) : DynNetQ SID NetQ SubRoutedQ
A query directed to dynamic subroutine session
sid's routed network port.
Lazy first-touch parallel router for dynamic-SID subroutine sessions of σ sharing the static
corruption set C. Each session sid : SID is initialized on first access inside
SSP.parFinLazy.
Lift a program calling only dynPartySpec to call
SSP.dynSessionSpec SID (protocolSpec ...).
Wrap a dynamic-SID hybrid protocol machine so its subroutine party calls target
SSP.dynSessionSpec SID and each session's network port is exposed under DynNetQ.sub sid.
Dynamic-SID homogeneous subroutine replacement: ρ calling lazily initialized independent
instances of σ indexed by SID.
Lazy parallel machine combining dynamic-SID copies of a single-session simulator S on the
composed network interface, initializing session sid's simulator state on first network query
.inr (.sub sid q).
Lazy parallel simulator for composeDyn ρ π against composeDyn ρ φ, creating an independent
instance of S on first network touch of each sid : SID. Because session states are created
lazily, one fixed simulator serves environments of every polynomial call budget.
Absorbing ρ κ C into an environment Z produces a distinguisher against the dynamic-SID
subroutine interface SSP.dynSessionSpec SID (protocolSpec n SubIn SubOut ...).
Single-hop reduction environment for dynamic-SID composition at (κ, z) with b + 1 allocated
slots and hop index j₀ : Fin (b + 1): at (κ, z) it runs absorbDynHybrid C ρ Z κ z reindexed
through SSP.allocMachine SID b _ against SSP.hybridDistinguisher (ideal simulated sessions
below j₀, external challenge at j₀, real sessions above j₀), and outputs pure false
elsewhere.
Polynomial query budget of each single-hop hybrid distinguisher dynSessionHopEnv when at most
absorbPoly pZ pρ + 1 dynamic slots are needed.
Wrapping a t-bounded dynamic-SID hybrid machine yields a (t + 1)-bounded machine.
Absorbing a pρ-bounded dynamic-SID hybrid protocol into a pZ-bounded environment gives
query bound (absorbPoly pZ pρ).eval κ.
Composing a pρ-bounded dynamic-SID hybrid protocol with a pσ-bounded protocol yields a
((pρ + 1) * (2 * pσ + 1) + 2 * pσ)-bounded composed protocol, independent of the number of
sessions touched.
The lazy dynamic-SID simulator dynHybridSim S for a pS-bounded simulator S has polynomial
call budget 2 * pS + 1, independent of any session count.
Each single-hop hybrid reduction environment
dynSessionHopEnv C ρ π φ S Z κ z ((absorbPoly pZ pρ).eval κ) j₀ has polynomial call budget
dynSessionHopPoly pZ pρ pπ pφ pD.
Execution identities and reduction to SSP.parFin #
Running composeDyn ρ π with the dummy adversary is running dynSessionRouter against
absorbDynHybrid.
Running composeDyn ρ φ with dynHybridSim S against an environment whose absorbed program
absorbDynHybrid C ρ Z κ z is b-query-bounded has the same output distribution as running
b + 1 eager parallel ideal-world executions execMachine φ S κ C against the first-touch
reindexed program (SSP.allocMachine SID b _).link (absorbDynHybrid C ρ Z κ z).
Hybrid telescoping bound for dynamic-SID sessions: for any b-query-bounded absorbed
environment absorbDynHybrid C ρ Z κ z, the dummy-adversary distinguishing advantage between
composeDyn ρ π and composeDyn ρ φ (under dynHybridSim S) is at most the sum over
j : Fin (b + 1) of single-session advantages against dynSessionHopEnv.
Dynamic-SID UC composition theorems #
Dynamic-SID composition step for EmulatesDummyWithin, extending
EmulatesDummyWithin.composeMulti from fixed Fin m to an arbitrary [DecidableEq SID] with
lazy first-touch session creation (dynHybridSim).
Adapts Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, p. 61) to static corruptions,
depth-1 dynamic sessions, and this library's call-bounded statistical model; not the full PPT ITM
theorem (#6043 remains open).
Dynamic-SID concrete quantitative composition step for EmulatesWithin with lazy first-touch
session creation over an arbitrary [DecidableEq SID].
Adapts Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, p. 61) to static corruptions,
depth-1 dynamic sessions, and this library's call-bounded statistical model; not the full PPT ITM
theorem (#6043 remains open).
Dynamic-SID composition step for Emulates with lazy first-touch session creation over an
arbitrary [DecidableEq SID]: if π emulates φ and ρ, π, φ are polynomially call-bounded,
then composeDyn ρ π emulates composeDyn ρ φ.
Adapts Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, p. 61) to static corruptions,
depth-1 dynamic sessions, and this library's call-bounded statistical model; not the full PPT ITM
theorem (#6043 remains open).
Dynamic-SID composition step for Realizes, replacing dynamically created instances of F in
composeDyn ρ F.toProtocol with a protocol π realizing F.
Adapts Corollary 23 of [Can20a] (JACM p. 28:59; ePrint 2000/067, p. 62) to static corruptions,
depth-1 dynamic sessions, and this library's call-bounded statistical model; not the full PPT ITM
corollary (#6043 remains open).
Dynamic-SID transitive hybrid replacement step for Realizes, this library's own call-bounded
emulation relation against an ideal functionality: if π realizes F and
composeDyn ρ F.toProtocol realizes G, then composeDyn ρ π realizes G.
Adapts Corollary 24 of [Can20a] (JACM p. 28:59; ePrint 2000/067, p. 62) to static corruptions,
depth-1 dynamic sessions, and this library's call-bounded statistical model; not the full PPT ITM
corollary (#6043 remains open).