Concrete semi-honest advantage of a composed protocol #
PerfectSemiHonestPrivate.compose composes a perfectly private outer protocol with perfectly
private subprotocols. This module gives the concrete, per-instance form of the composition argument
for an outer protocol that is only computationally private: it bounds
semiHonestAdvantage (P.compose Sub) for a coalition I with the composed simulator
composeSim P S₁ S₂ through the hybrid execution that runs the outer protocol P in its ideal
oracle world W₁ and expands the coalition's views with the subprotocol simulators S₂.
- Ideal to hybrid (
eval_idealJoint_composeSim_bind). A distinguisherDof the composed protocol's views becomes the explicit distinguishercomposeDistinguisher P S₂ I x Dof the outer protocol's views, which expands the views withS₂and runsD. The ideal game of the composed protocol againstDis the ideal game of the outer protocol against this reduction, for every single-coalition outer simulatorS₁and with no assumption on the subprotocols. - Hybrid to real. The remaining distance, between the outer protocol's real execution in
W₁against the reduction and the composed protocol's real execution inW₂againstD, is the subprotocol-replacement gap.semiHonestAdvantage_compose_lekeeps it as an explicit term. It vanishes when the subprotocols are perfectly private (Protocol.bind_realJoint_compose), which gives the equalitysemiHonestAdvantage_compose. - The gap as a kernel gap. With no assumption on the subprotocols, the two executions of the
replacement gap are one kernel program,
Composition.kernelRunof the outer steps after sampling the outer coins, run on the ideal and on the real joint distributions of the subprotocols (advantage_replacement_eq_kernelRun). The two runs differ only in the kernel that each oracle round draws from, which is what a hybrid argument over the oracle rounds has to bound.
Everything here is original bookkeeping around Goldreich's composition theorem (Section 7.5.2.1,
Theorem 7.5.7) rather than a cited statement: the quantities are concrete, for a fixed input tuple
and distinguisher, with no security parameter and no efficiency claim about composeDistinguisher.
The bound of the subprotocol-replacement gap by the semi-honest advantages against computationally
private subprotocols (the hybrid argument over the oracle rounds of the kernel program, with an
explicit distinguisher for each round) is in
CslibFrontier/Crypto/Protocols/MPC/Composition/Hybrid.lean. The asymptotic statement with
certified reductions is not proved (#6045).
Main definitions #
Cslib.Crypto.Protocols.MPC.composeDistinguisher: the reduction from a distinguisher of the composed protocol to a distinguisher of the outer protocol.
Main results #
Cslib.Crypto.Protocols.MPC.eval_idealJoint_composeSim_bind: the ideal games agree.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_compose_le: the advantage against the composed protocol is at most the advantage of the reduction against the outer protocol plus the subprotocol-replacement gap.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_compose: with perfectly private subprotocols the two advantages are equal.Cslib.Crypto.Protocols.MPC.Protocol.bind_realJoint_composeDistinguisher_eq_kernelRun,Cslib.Crypto.Protocols.MPC.advantage_replacement_eq_kernelRun: the hybrid game and the subprotocol-replacement gap in terms of the kernel program, with no assumption on the subprotocols.
References #
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Section 7.5.2.1 (Theorem 7.5.7).
The reduction of the composition argument: from a distinguisher D of the coalition I's views
of a composed protocol P.compose Sub, the distinguisher of I's views of the outer protocol P
on the input tuple x that expands these views at every oracle round with the subprotocol
simulators S₂ (expandSimSteps) and runs D on the result.
Ideal to hybrid. The ideal game of a composed protocol with the composed simulator
composeSim P S₁ S₂ against D is the ideal game of the outer protocol with S₁ against the
reduction composeDistinguisher P S₂ I x D. No property of the simulators is used.
Hybrid to real, for perfectly private subprotocols. When every subprotocol Sub op is
perfectly private in W₂ for the functionality W₁ op with simulators S₂ op, the real execution
of P.compose Sub in W₂ against D is the real execution of P in W₁ against the reduction
composeDistinguisher P S₂ I x D.
Concrete composition bound. For every outer protocol P in the oracle world W₁, outer
simulator S₁ for coalition I, subprotocols Sub in W₂ and subprotocol simulators S₂, the
semi-honest advantage of D against P.compose Sub with composeSim P S₁ S₂ is at most the
advantage of the reduction composeDistinguisher P S₂ I x D against P with S₁, plus the
subprotocol-replacement gap: the distance between the real execution of P in W₁ against the
reduction and the real execution of P.compose Sub in W₂ against D. Nothing is assumed about
P, Sub or the simulators; the gap is the term that the privacy of the subprotocols bounds.
Composition with perfectly private subprotocols preserves the advantage. When every
subprotocol Sub op is perfectly private in W₂ for the functionality W₁ op with simulators
S₂ op, the semi-honest advantage of D against P.compose Sub with composeSim P S₁ S₂ equals
the advantage of the reduction composeDistinguisher P S₂ I x D against P with S₁. The outer
protocol may be only computationally private; PerfectSemiHonestPrivate.compose is the case where
the right-hand side vanishes for every distinguisher.
The hybrid game as a kernel game. The real execution of the outer protocol P in W₁
against the reduction composeDistinguisher P S₂ I x D samples the outer coins, runs the kernel
program of P.steps on the ideal joint distributions of the subprotocols and runs D on the
resulting views and outputs.
The subprotocol-replacement gap is a kernel gap. The replacement gap of
semiHonestAdvantage_compose_le is the advantage of one test between two runs of the same kernel
program kernelRun of P.steps, after sampling the outer coins: on the ideal joint distributions
idealJoint (W₁ op) J (S₂ op J) q of the subprotocols and on their real joint distributions
(Sub op).realJoint W₂ J q. The two runs differ only in the kernel that each oracle round draws
from, which is the setting of the hybrid argument over the oracle rounds. Nothing is assumed about
P, Sub or the simulators, and no bound on the gap is derived here.