Multi-session universal composition for a fixed session family #
This module proves fixed-arity multi-session composition steps for this library's own call-bounded,
static-corruption port-model emulation notions (UC.EmulatesDummyWithin, UC.EmulatesWithin,
UC.Emulates, UC.Realizes), via explicit parallel simulation and the multi-session
state-separating hybrid bound SSP.advantage_parFin_le_sum [BDLF+18].
Scope and relation to [Can20a] #
These results adapt Theorem 22, Corollaries 23–24, and the heterogeneous-family extension of
Section 6.3 of [Can20a] to a fixed number m of sessions chosen in advance; not dynamic
session creation; this is not the full Theorem 22. Specifically:
- Fixed
Fin msession family vs. dynamicSIDspawning. In Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, rev. February 11, 2020, p. 61), a calling protocol dynamically spawnspoly(κ)subroutine sessions indexed by bitstring session identifiers across a recursive ITI call tree. Herem : ℕis a fixed finite arity (Fin m) of depth-1 subroutine sessions, universally quantified over{m : ℕ}in every theorem (so concreteEmulatesWithinbounds instantiatem := q.eval κat any fixed security parameterκ). Lazy first-touch spawning and dynamic session identifiers are not formalised here and are left to a follow-up. - Heterogeneous §6.3 families with one fixed interface per side. In Section 6.3 of
[Can20a] (JACM p. 28:67; ePrint p. 70), distinct session identifiers may invoke distinct
protocols. In
EmulatesDummyWithin.composeFamilyandEmulates.composeFamily, the protocol implementations and their private state types ((π j κ C).State,(φ j κ C).State) may vary with the sessionj : Fin m, while the party countn, party input/output typesSubInandSubOut, and each side's network message types (NQ₁,NR₁andNQ₂,NR₂) are shared across allmsessions. - Library call-bounded statistical notions vs. PPT ITMs and §4.4. Per-activation counting of
oracle calls and private samples (
MultiHybridProtocol.PolyBounded,Protocol.PolyBounded,Adversary.PolyBounded,Environment.PolyBounded) is this library's own convention (see theCslib.Crypto.Protocols.UC.Emulatesdocstring); pure computation, state size, and message length are unbounded. By contrast, Section 4.4 of [Can20a] (JACM p. 28:48; ePrint p. 50) defines statistical emulation with computationally unbounded participants and quantitative running-time simulation overhead, and Theorem 22 is proved for PPT ITMs; no implication to or from Canetti's PPT or Section 4.4 notions is established here. - Static same-party corruptions
C : Finset (Fin n)vs. adaptive per-identity corruptions. The calling protocolρ κ Cand allmsubroutine sessionscorruptRouter C (σ j κ C)share the same static corruption setC, fixed prior to execution. - Structural type-level isolation and compliance vs. runtime predicates. Subroutine-respecting
isolation (each session
j : Fin mis a closedMachine OracleSpec.emptypackage insideSSP.parFin), subroutine-exposing network addressing (MultiNetQ.sub j q), and(π, φ, ξ)- compliance (unrestrictedSubSessionCall m n SubIn, corresponding toξ = univ) are enforced statically by types rather than runtime directory queries.
Unlike the single-session theorem (m = 1 in UC.Emulates.compose), where only hρ needs a
polynomial call budget, for m ≥ 2 the single-hop hybrid distinguisher sessionHopEnv internally
simulates both real sessions π j (j > j₀) and ideal simulated sessions (φ j, S j) (j < j₀),
so polynomial call budgets on both π and φ (hπ, hφ) are essential—matching Canetti's
hypothesis that ρ, π, and φ are all bounded protocols.
Main definitions #
Cslib.Crypto.Protocols.UC.SubSessionCall: named record selecting a target subroutine sessionjand target party portparty.Cslib.Crypto.Protocols.UC.multiPartySpec,Cslib.Crypto.Protocols.UC.MultiHybridProtocol,Cslib.Crypto.Protocols.UC.MultiHybridProtocol.PolyBounded: multi-session hybrid protocols.Cslib.Crypto.Protocols.UC.MultiNetQ: composed network request port tagging outer vs. per-session subroutine traffic (paired with the sum reply typeNetR ⊕ RoutedNetR SubOut NR).Cslib.Crypto.Protocols.UC.sessionRouter:misolated static-corruption sessions viaSSP.parFin.Cslib.Crypto.Protocols.UC.multiHybridWrap,Cslib.Crypto.Protocols.UC.composeFamily,Cslib.Crypto.Protocols.UC.composeMulti: multi-session subroutine replacement.Cslib.Crypto.Protocols.UC.multiHybridSim: parallel composition of per-session dummy-adversary simulators.Cslib.Crypto.Protocols.UC.absorbMultiHybrid,Cslib.Crypto.Protocols.UC.sessionHopEnv: absorbed multi-session environment and single-hop hybrid distinguisher.Cslib.Crypto.Protocols.UC.sessionUnitPoly,Cslib.Crypto.Protocols.UC.sessionHopPoly: explicit polynomial budget bounds for single-hop environments.
Main results #
Cslib.Crypto.Protocols.UC.exec_composeFamily_dummy: runningcomposeFamily ρ πwith the dummy adversary equals runningsessionRouteragainstabsorbMultiHybrid.Cslib.Crypto.Protocols.UC.eval_exec_composeFamily_multiHybridSim: runningcomposeFamily ρ φwithmultiHybridSim Shas the same output distribution as runningmparallel ideal-world executions againstabsorbMultiHybrid.Cslib.Crypto.Protocols.UC.advantage_composeFamily_le_sum: telescoping hybrid bound reducing them-session distinguishing advantage to the sum ofmsingle-session advantages againstsessionHopEnv.Cslib.Crypto.Protocols.UC.EmulatesDummyWithin.composeFamily,Cslib.Crypto.Protocols.UC.EmulatesDummyWithin.composeMulti: fixed-session composition steps for dummy-adversary emulation.Cslib.Crypto.Protocols.UC.EmulatesWithin.composeMulti: fixed-session quantitative composition step with explicit simulator call overhead and distinguishing bound.Cslib.Crypto.Protocols.UC.Emulates.composeFamily,Cslib.Crypto.Protocols.UC.Emulates.composeMulti: fixed-session heterogeneous and homogeneous composition steps forUC.Emulates.Cslib.Crypto.Protocols.UC.Realizes.composeMulti,Cslib.Crypto.Protocols.UC.Realizes.composeMulti_trans: fixed-session composition steps forUC.Realizes.
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), Section 6.2 (hybrid proof, pp. 28:59–28:67), and Section 6.3 (heterogeneous families, p. 28:67); IACR ePrint 2000/067 (rev. February 11, 2020), pp. 61–62, 65, 70.
- C. Brzuska, A. Delignat-Lavaud, C. Fournet, K. Kohbrok, M. Kohlweiss, State Separation for
Code-Based Game-Playing Proofs:
SSP.parFinandSSP.advantage_parFin_le_sum.
Ports, hybrid protocols, and session routing #
The party-port interface of m subroutine sessions of n parties: each SubSessionCall
receives an optional output of the subroutine.
An n-party protocol in the multi-session hybrid model of m subroutine sessions with party
inputs SubIn and outputs SubOut.
Every activation of the multi-session hybrid protocol at security parameter κ makes at most
p.eval κ calls, counting private samples and subroutine calls.
Network-side query to a multi-session composed protocol: either a query to the calling
protocol ρ's own network port, or a query to subroutine session session's routed network
port (including corrupted-party subroutine inputs .inl (i, x) and subroutine network queries
.inr q).
- outer {m : ℕ} {NetQ SubRoutedQ : Type} (query : NetQ) : MultiNetQ m NetQ SubRoutedQ
A query directed to the outer calling protocol
ρ's own network port. - sub {m : ℕ} {NetQ SubRoutedQ : Type} (session : Fin m) (query : SubRoutedQ) : MultiNetQ m NetQ SubRoutedQ
A query directed to subroutine session
session's routed network port.
Parallel router for m independent subroutine sessions sharing the static corruption set C.
Each session j : Fin m owns its private state inside SSP.parFin and cannot inspect or mutate
any other session's state.
A program calling only the multi-session subroutine party port, lifted to call the m-session
interface SSP.sessionSpec m (protocolSpec n SubIn SubOut NQ NR).
Wrap a multi-session hybrid protocol machine so its subroutine party calls target
SSP.sessionSpec m (protocolSpec n SubIn SubOut NQ NR) and each subroutine session's network port
is exposed under MultiNetQ.sub j / Sum.inr.
Heterogeneous multi-session subroutine replacement: the hybrid protocol ρ with its m
subroutine sessions answered by the independent protocol family σ : Fin m → Protocol … behind
sessionRouter C, sharing the same parties and static corruption set C.
Homogeneous multi-session subroutine replacement: ρ calling m independent instances of the
same protocol σ.
Multi-session simulator, absorbed hybrid, and single-hop reduction environment #
Machine combining m independent subroutine simulators S j side by side on the composed
network interface, forwarding corrupted outer-party inputs and outer network queries unchanged and
routing session j network queries to S j on state coordinate j.
The composed simulator for composeFamily ρ π against composeFamily ρ φ, running an
independent simulator S j for each subroutine session j : Fin m.
Absorbing ρ κ C into an environment Z produces a distinguisher against the m-session
subroutine interface SSP.sessionSpec m (protocolSpec n SubIn SubOut …).
Single-hop reduction environment for session j₀: runs ideal simulated sessions (φ j, S j)
for j < j₀, forwards session j₀ externally, and runs real sessions π j for j > j₀.
Polynomial dominating both a real session corruptRouter C (π j κ C) (pπ) and an ideal
simulated session execMachine (φ j) (S j) κ C ((pD + 1) * (pφ + 1) + pφ).
Polynomial call-budget bound for the single-hop hybrid distinguisher sessionHopEnv.
Execution identities #
Running composeFamily ρ π with the dummy adversary is running sessionRouter against
absorbMultiHybrid. This is an equation of programs.
Mapping over a multi-session party-interface program commutes with liftMultiParty.
Running composeFamily ρ φ with multiHybridSim S has the same output distribution as
running m parallel ideal-world executions execMachine (φ j) (S j) κ C against
absorbMultiHybrid.
Hybrid telescoping advantage bound and polynomial call budgets #
Hybrid telescoping bound for m fixed sessions: the dummy-adversary distinguishing advantage
between composeFamily ρ π and composeFamily ρ φ (under multiHybridSim S) is at most the
sum over j : Fin m of the single-session dummy-adversary distinguishing advantages between π j
and φ j against sessionHopEnv C ρ π φ S Z j.
Wrapping a t-bounded multi-session hybrid machine yields a (t + 1)-bounded machine
(accounting for 1-query forwarding of .inr (.sub j q)).
Absorbing a pρ-bounded multi-session hybrid protocol into a pZ-bounded environment gives
query bound (absorbPoly pZ pρ).eval κ.
Composing a pρ-bounded multi-session hybrid protocol with a family of pσ-bounded
protocols yields a ((pρ + 1) * (Polynomial.C m * pσ + 1) + Polynomial.C m * pσ)-bounded
composed protocol.
Parallel composition multiHybridSim S of pS-bounded simulators has polynomial call budget
Polynomial.C m * pS + 1.
Pointwise monotonicity of sessionHopPoly in the simulator polynomial bound pD.
Each single-hop hybrid distinguisher sessionHopEnv C ρ π φ S Z j₀ has polynomial call budget
sessionHopPoly m pZ pρ pπ pφ pD.
Multi-session UC composition theorems #
Fixed-session composition step for EmulatesDummyWithin, this library's own call-bounded
dummy-adversary emulation relation, with an explicit parallel simulator multiHybridSim over a
fixed family of m sessions sharing party count, party input/output types, and one fixed network
interface per side (implementations and private state types may vary per session).
Adapts Theorem 22 and Section 6.3 of [Can20a] (JACM p. 28:58, p. 28:67; ePrint 2000/067,
pp. 61, 70) to static corruptions and a fixed Fin m session family; see the module docstring for
the relation to Canetti's PPT theorem.
Fixed-session homogeneous composition step for EmulatesDummyWithin, this library's own
call-bounded dummy-adversary emulation relation, specializing EmulatesDummyWithin.composeFamily
to m instances of a single subroutine protocol π replaced by φ.
Adapts Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, p. 61) to static corruptions
and a fixed Fin m session count; see the module docstring for the relation to Canetti's PPT
theorem.
Fixed-session quantitative composition step for EmulatesWithin, this library's own
call-bounded emulation relation, yielding explicit simulator call overhead and distinguishing bound
m • ε 1 (sessionHopPoly m (absorbPoly pZ pA) pρ pπ pφ (g.comp (X + 1))).
Adapts Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, p. 61) to static corruptions
and a fixed Fin m session count; see the module docstring for the relation to Canetti's PPT
theorem.
Fixed-session composition step for Emulates, this library's own call-bounded emulation
relation, with an explicit parallel simulator and one fixed interface per side: protocol
implementations and private state types may vary per session j : Fin m, while party count n,
party input/output types, and each side's network message types are shared across sessions.
Adapts Theorem 22 and Section 6.3 of [Can20a] (JACM p. 28:58, p. 28:67; ePrint 2000/067,
pp. 61, 70) to static corruptions and a fixed Fin m session family; see the module docstring for
the relation to Canetti's PPT theorem.
Fixed-session homogeneous composition step for Emulates, this library's own call-bounded
emulation relation, specializing Emulates.composeFamily to m instances of π replaced by φ.
Adapts Theorem 22 of [Can20a] (JACM p. 28:58; ePrint 2000/067, p. 61) to static corruptions
and a fixed Fin m session count; see the module docstring for the relation to Canetti's PPT
theorem.
Fixed-session composition step for Realizes, this library's own call-bounded emulation
relation against an ideal functionality, replacing m instances of F in composeMulti ρ with
a protocol π that realizes F.
Adapts Corollary 23 of [Can20a] (JACM p. 28:59; ePrint 2000/067, p. 62) to static corruptions
and a fixed Fin m session count; see the module docstring for the relation to Canetti's PPT
theorem.
Fixed-session transitive hybrid replacement step for Realizes, this library's own
call-bounded emulation relation against an ideal functionality: if π realizes F and
composeMulti ρ F.toProtocol realizes G, then composeMulti ρ π realizes G.
Adapts Corollary 24 of [Can20a] (JACM p. 28:59; ePrint 2000/067, p. 62) to static corruptions
and a fixed Fin m session count; see the module docstring for the relation to Canetti's PPT
theorem.