Polynomial-Time Completeness of $\text{OT}_1^4$ for Semi-Honest Multi-Party Computation #
This module formalizes a proper-coalition variant of Goldreich's semi-honest multi-party
completeness theorem for 1-out-of-4 bit oblivious transfer $\text{OT}_1^4$ (Section 7.5.2.4,
Theorem 7.5.12, print p. 707; generalizing Section 7.3.4, Theorem 7.3.11, print p. 648), with
uniform efficiency certificates for the joint word-level runner and coalition simulators.
Given any polynomial-time computable family of $m$-party randomized functionalities specified
by a word-level evaluator
F : α × List Bool → List Bool with polynomial-time unary input width n : α → ℕ, output width
k : α → ℕ, and shared-coin width coins : α → ℕ:
- Uniform Circuit Compilation:
Cslib.Complexity.CircuitValue.exists_uniformCircuitFamilycompilesFinto a polynomial-time constructible family of Boolean circuitsC : (a : α) → Circuit Boolean.signature (m * n a + coins a) (m * k a)whose evaluation agrees withwordRandomizedFunctionality m coins n k F a. - Word-Level Protocol Execution & Bridge Lemma:
Protocol.runEncodedexecutes anyot14Spec-hybrid protocol inCslib.Probability.WordOracleComp Unit (List Bool)by translating each typedot14Specquery to a 6-bit word query and reading the 1-bit reply prefix.Protocol.eval_runEncoded_eq_evalWith_mapproves that runningΠ.runEncodedagainstot14WordHandleryields the exact distribution of(Π.evalWith ot14World x).map (encodeViewsAndOutputs encView encOut). - Uniform Efficiency Certificates: Over the family input records
FamilyRunInputandFamilySimInput,familyIsOraclePPT_gmwOT14RandomizedProtocolcertifies that the centralized joint word-encoded executionProtocol.runEncodedofgmwOT14RandomizedProtocolacross allmparties is uniformly oracle-PPT (Protocol.Family.IsOraclePPT; note that this certifies the joint word-level runner rather than separate per-party local PPT strategies), andfamilyIsPPT_gmwOT14RandomizedSimcertifies that for every static coalitionI : Finset (Fin m), the encoded view simulatorgmwOT14RandomizedSimis uniformly PPT (CoalitionSimulator.Family.IsPPT). BecausegmwCircuitProtocol(Construction 7.5.10, p. 706) includes onesharedMulSpec mshare-refresh call per output coordinate(r, j) : Fin m × Fin k ain Step 3 in addition to one call per.and/.orgate in Step 2, composing withmultiPartyMulProtocol m(Construction 7.5.8, p. 704) andtwoPartyMulProtocol(Construction 7.3.7, pp. 643–644) expands eachsharedMulSpec mcall into $m(m-1)/2$ pairwiseot14Speccalls (adding $m \cdot k(a) \cdot m(m-1)/2$ calls in Step 3, polynomial in $m, n(a), k(a), (C\,a).\text{size}$). - End-to-End Completeness (
exists_perfectSemiHonestPrivate_ot14_of_polyTime): Formalizes a proper-coalition variant of Goldreich's Theorem 7.5.12, combining uniform circuit compilation, proper-coalition perfect semi-honest privacy inot14World(PerfectSemiHonestPrivateProper), and the uniform efficiency predicates above. The proper-coalition quantifierI ≠ Finset.univis narrower than Goldreich's Definition 7.5.1 and Theorem 7.5.12 (which quantify over allI ⊆ [m], p. 696; Goldreich's text on pp. 697 and 703 treatsI = [m]as trivial without restricting that remark to deterministic functionalities or to the view-only Eq. 7.39). Under the joint view-and-output equation Eq. 7.40 for randomized functionalities,I = Finset.univis not vacuous: the canonical independent-coin-share simulatorrandomizedWrapperSimis refuted atI = Finset.univbynot_perfectSemiHonestPrivate_coinEchoRandomizedWrapper_univin CslibFrontierTests/Crypto/MPC.lean, and any full-coalition simulator receiving only(x, y)would have to sample coin shares whose XORrsatisfiesg(r, x) = y.
The development is split by stage:
Cslib.Crypto.Protocols.MPC.PolyTime.RunEncoded: the word-level runner and its bridge lemma.Cslib.Crypto.Protocols.MPC.PolyTime.Encoding: family inputs, view encoders and the named efficiency predicates.Cslib.Crypto.Protocols.MPC.PolyTime.Runner: word-level runners and their certificates.Cslib.Crypto.Protocols.MPC.PolyTime.InputProgEquiv,Cslib.Crypto.Protocols.MPC.PolyTime.Certificates: equivalence of the word-level runners with the typed protocol and simulator, and the public certificates.
Main results #
Cslib.Crypto.Protocols.MPC.exists_perfectSemiHonestPrivate_ot14_of_polyTime: proper-coalition variant of Theorem 7.5.12 (Section 7.5.2.4, print p. 707; generalizing Theorem 7.3.11, Section 7.3.4, print p. 648), establishing polynomial-time completeness of $\text{OT}_1^4$ for $m$-party semi-honest computation against every proper coalitionI ≠ Finset.univ.
References #
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Section 7.3.2 (Eq. 7.20, p. 640), Section 7.3.3 (Construction 7.3.7, pp. 643–644), Section 7.3.4 (Theorem 7.3.11, p. 648), Section 7.5.1.2 (Definition 7.5.1, Eqs. 7.39–7.40, p. 696; p. 697), Section 7.5.2.1 (p. 703), Section 7.5.2.2 (Construction 7.5.8, p. 704), Section 7.5.2.3 (Construction 7.5.10, p. 706), and Section 7.5.2.4 (Theorem 7.5.12, p. 707).
Proper-coalition variant of Theorem 7.5.12 (Goldreich Section 7.5.2.4, p. 707; generalizing
Theorem 7.3.11, Section 7.3.4, p. 648): every polynomial-time m-party randomized functionality
family F is privately reducible to $\text{OT}_1^4$ in the semi-honest model against every proper
static coalition I ≠ Finset.univ, with uniform polynomial-time circuit family C, uniform
IsOraclePPTOn joint word-level protocol execution via Protocol.runEncoded (linked to
Protocol.evalWith ot14World by Protocol.eval_runEncoded_eq_evalWith_map), and uniform
IsPPTOn coalition simulators.
Note that the proper-coalition quantifier I ≠ Finset.univ (PerfectSemiHonestPrivateProper) is
narrower than Goldreich's Definition 7.5.1 and Theorem 7.5.12 (which quantify over all I ⊆ [m],
p. 696; Goldreich's text on pp. 697 and 703 treats I = [m] as trivial without restricting that
remark to deterministic functionalities or to the view-only Eq. 7.39). Under the joint
view-and-output equation Eq. 7.40 for randomized functionalities, I = Finset.univ is not vacuous:
the canonical independent-coin-share simulator randomizedWrapperSim is refuted at
I = Finset.univ by not_perfectSemiHonestPrivate_coinEchoRandomizedWrapper_univ in
CslibFrontierTests/Crypto/MPC.lean,
and any full-coalition simulator receiving only (x, y) would have to sample coin shares whose
XOR r satisfies g(r, x) = y.