Documentation

CslibFrontier.Crypto.Protocols.MPC.EmptyCoalition

The empty coalition of a protocol family #

When no party is corrupted, an environment against a ProtocolFamily sees the outputs of all parties and nothing else: there is exactly one tuple of views of the parties in ∅. This module gives the generic API of that coalition.

SimulatorFamily.empty P is the simulator family of the empty coalition, which returns the empty tuple of views; it is PPT for every encoding (SimulatorFamily.isPPT_empty). Environment.forgetViews turns an environment against the empty coalition into an environment against a coalition I that chooses the same inputs and ignores the views of I. This does not change the real game (ProtocolFamily.realGame_forgetViews), and the ideal game of every simulator family for I becomes the ideal game of SimulatorFamily.empty P (ProtocolFamily.idealGame_forgetViews).

ProtocolFamily.SemiHonestSecure.empty_of_forall_negligible is the first property: if for some coalition I and some simulator family for I, efficient or not, every environment has negligible advantage between the real and the ideal game, then P is semi-honest secure against the empty coalition for every encoding. The hypothesis is about all environments, not only the PPT ones: no PPT certificate for Environment.forgetViews is proved here, so this does not derive security against the empty coalition from ProtocolFamily.SemiHonestSecure against I.

This is original infrastructure, not a cited result. ProtocolFamily.SemiHonestSecure is compared with its sources in CslibFrontier/Crypto/Protocols/MPC/Asymptotic.lean; against the empty coalition it compares the outputs of the protocol with the outputs of the functionality, which is correctness of the outputs up to a negligible error.

Main definitions #

Main results #

The simulator family of the empty coalition of P: at every security parameter and public parameters it returns the empty tuple of views, the only tuple of views of the parties in ∅.

The simulator family of the empty coalition is PPT for every encoding: its machine writes the empty table of views.

An environment against the empty coalition, as an environment against the coalition I: it chooses the same inputs and state, and guesses from the state and the outputs of all parties, ignoring the views of the parties in I.

@[simp]
theorem Cslib.Crypto.Protocols.MPC.ProtocolFamily.realGame_forgetViews {m : ℕ} {P : ProtocolFamily m} (setup : ℕ → PMF P.Desc) (I : Finset (Fin m)) (Z : Environment P ∅) (n : ℕ) :
P.realGame setup I (Z.forgetViews I) n = P.realGame setup ∅ Z n

The real game of a forgetful environment against the coalition I is the real game of the empty coalition: the protocol runs on the same inputs, and the environment guesses from the same outputs.

@[simp]
theorem Cslib.Crypto.Protocols.MPC.ProtocolFamily.idealGame_forgetViews {m : ℕ} {P : ProtocolFamily m} (setup : ℕ → PMF P.Desc) {I : Finset (Fin m)} (S : SimulatorFamily P I) (Z : Environment P ∅) (n : ℕ) :
P.idealGame setup I S (Z.forgetViews I) n = P.idealGame setup ∅ (SimulatorFamily.empty P) Z n

The ideal game of a forgetful environment against the coalition I, with any simulator family S for I, is the ideal game of the empty coalition with SimulatorFamily.empty P: the environment ignores the views that S produces.

theorem Cslib.Crypto.Protocols.MPC.ProtocolFamily.SemiHonestSecure.empty_of_forall_negligible {m : ℕ} {P : ProtocolFamily m} {setup : ℕ → PMF P.Desc} {I : Finset (Fin m)} {S : SimulatorFamily P I} (h : ∀ (Z : Environment P I), Negligible fun (n : ℕ) => (P.realGame setup I Z n).advantage (P.idealGame setup I S Z n)) (E : P.Encoding) :

Statistical closeness at any coalition gives security against the empty coalition. If for some coalition I and some simulator family S for I, which need not be PPT, every environment against I, efficient or not, has negligible advantage between the real game and the ideal game with S, then P is semi-honest secure against the empty coalition for every encoding E, with the simulator family SimulatorFamily.empty P.

An environment against the empty coalition sees only the outputs of all parties, so the conclusion says that the outputs of the protocol are indistinguishable from the outputs of the functionality: correctness of the outputs up to a negligible error. The hypothesis is about all environments, while SemiHonestSecure setup I E bounds only the PPT ones, so this theorem does not turn security against I into security against the empty coalition. This is original infrastructure, not a cited result.