Hybrid argument over the oracle rounds of a composed protocol #
semiHonestAdvantage_compose_le bounds the semi-honest advantage against a composed protocol
P.compose Sub by the advantage of a reduction against the outer protocol P plus the
subprotocol-replacement gap, and advantage_replacement_eq_kernelRun expresses that gap through
two runs of one kernel program, Composition.kernelRun, on the ideal and on the real joint
distributions of the subprotocols. This module bounds the gap by the semi-honest advantages of
explicit distinguishers against the subprotocols, by the hybrid argument that replaces the
subprotocol calls one at a time.
At an oracle round op of the outer protocol with query tuple q, the two runs differ in the
kernel that the round draws from and in the kernel of the later rounds. Changing the kernel of this
round, in front of the later rounds run on the ideal joint distributions, is a semi-honest
distinguishing game against the subprotocol Sub op on the input tuple q: its distinguisher
Composition.roundDistinguisher receives the views of the corrupted slots and the answers, runs
the remaining rounds with the ideal functionalities W₁ and the subprotocol simulators S₂
(Composition.kernelProg) and applies the given test. Changing the kernel of the later rounds,
after this round has drawn from the real joint distribution, is the same question for the tail,
averaged over the real execution of this round.
Because the query tuple of a round depends on the outcome of the earlier rounds, the bound is not a
sum of advantages at fixed inputs. Composition.replacementBound is the sum over the oracle rounds
of the expectation, over the real executions of the earlier subprotocol calls, of the semi-honest
advantage of that round's distinguisher against its subprotocol on the round's query tuple. It is
an extended non-negative real defined by recursion on the outer steps.
Everything here is original bookkeeping for the hybrid argument in the proof of Goldreich's
composition theorem (Section 7.5.2.1, Theorem 7.5.7), not a cited statement. The bounds are
concrete: a fixed input tuple and distinguisher, no security parameter, and no efficiency claim
about Composition.roundDistinguisher. The asymptotic composition theorem, which needs
polynomial-time certificates for these distinguishers and a choice of the earlier rounds' outcome
as non-uniform advice, is not proved here (#6045).
Main definitions #
Cslib.Crypto.Protocols.MPC.Composition.kernelProg: the kernel program as aProbComp, for kernels that are themselves programs.Cslib.Crypto.Protocols.MPC.Composition.roundDistinguisher: the distinguisher against the subprotocol of an oracle round.Cslib.Crypto.Protocols.MPC.Composition.replacementBound: the sum over the oracle rounds of the expected advantages of the round distinguishers.
Main results #
Cslib.Crypto.Protocols.MPC.Composition.advantage_kernelRun_le_replacementBound: the hybrid argument for the kernel program.Cslib.Crypto.Protocols.MPC.Composition.replacementBound_eq_zero: the bound vanishes for perfectly private subprotocols.Cslib.Crypto.Protocols.MPC.advantage_replacement_le_replacementBound: the bound on the subprotocol-replacement gap.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_compose_le_replacementBound: the concrete composition theorem, bounding the advantage againstP.compose Subby the advantage ofcomposeDistinguisheragainstPplus the expected advantages of the round distinguishers against the subprotocols.
References #
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Section 7.5.2.1 (Theorem 7.5.7).
The kernel program at an oracle round, with the drawn views and answers as one pair r: the
round draws r from the kernel on the round's query tuple, the answers r.2 are delivered, and
the corrupted slots' subprotocol coins and transcripts in r.1 are put in front of the result of
the remaining rounds.
The kernel program of kernelRun as a ProbComp, for kernels κ that are programs: every
oracle round op with query tuple q draws the views of the corrupted slots
J = subCoalition parties I and all the answers from κ op J q. Its distribution is kernelRun
on the distributions of κ (eval_kernelProg).
The kernel program kernelProg κ has the distribution of kernelRun on the distributions of
the kernels κ.
The distinguisher against the subprotocol of an oracle round. At an oracle round
.oracle query next of the outer steps, reached in the states st, a test D of the kernel
program's result becomes this distinguisher of the views of the corrupted slots
subCoalition parties I and the answers of the subprotocol Sub op: it delivers the answers,
runs the remaining rounds next on the ideal joint distributions of the subprotocols, sampled with
the ideal functionalities W₁ and the simulators S₂ (kernelProg), puts the given views in
front of the result and runs D.
The hybrid bound on the replacement gap of a kernel program. For the outer steps steps
from the states st and a test D of the kernel program's result, the sum over the oracle rounds
of steps of the expected semi-honest advantage of that round's distinguisher
(roundDistinguisher) against the round's subprotocol Sub op in W₂, for the functionality
W₁ op with the simulator S₂ op, on the round's query tuple. The expectation is over the real
joint distributions (Sub op).realJoint W₂ of the earlier oracle rounds, which determine the query
tuple and the states of the round. Message rounds contribute nothing.
Hybrid argument over the oracle rounds. The advantage of a test D between the kernel
program of steps 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 is at most
replacementBound: the sum over the oracle rounds of the expected semi-honest advantage of the
round's distinguisher against the round's subprotocol. Nothing is assumed about the subprotocols,
the simulators or D.
The hybrid bound vanishes for perfectly private subprotocols. When every subprotocol
Sub op is perfectly private in W₂ for the functionality W₁ op with the simulators S₂ op,
every round distinguisher has advantage zero, so replacementBound is zero.
The subprotocol-replacement gap is at most the hybrid bound. The replacement gap of
semiHonestAdvantage_compose_le is at most the expectation, over the outer coins c₁, of
Composition.replacementBound for P.steps from the inputs x and coins c₁: the sum over the
oracle rounds of P of the expected semi-honest advantage of the round's distinguisher
(Composition.roundDistinguisher) against the round's subprotocol on the round's query tuple.
Nothing is assumed about P, Sub, the simulators or D.
Concrete composition theorem. 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
expectation over the outer coins of Composition.replacementBound: the sum over the oracle rounds
of P of the expected semi-honest advantage of the round's distinguisher
Composition.roundDistinguisher against the round's subprotocol Sub op, for the functionality
W₁ op with the simulator S₂ op, on the round's query tuple.
This is the concrete, per-instance form of the hybrid argument for Goldreich's Theorem 7.5.7, not
the cited theorem: nothing is assumed about P, Sub or the simulators, and no efficiency of the
distinguishers is claimed.