Word-Level Execution of $\text{OT}_1^4$-Hybrid Protocols #
This module runs an ot14Spec-hybrid protocol as a word-level oracle program in
Cslib.Probability.WordOracleComp Unit (List Bool): each typed ot14Spec query becomes a 6-bit
word query to ot14WordHandler, whose 1-bit reply prefix is decoded back to the typed answer.
The bridge lemma Protocol.eval_runEncoded_eq_evalWith_map identifies the word-level run with the
typed execution Protocol.evalWith ot14World. It also defines the word-encoded randomized
functionality family that the completeness theorem in Cslib.Crypto.Protocols.MPC.PolyTime
compiles.
Main definitions #
Cslib.Crypto.Protocols.MPC.encodeCoinsAndInputs,Cslib.Crypto.Protocols.MPC.wordRandomizedFunctionality: word-encodedm-party randomized functionality family induced byF : α × List Bool → List Bool.Cslib.Crypto.Protocols.MPC.encodeOT14Query,Cslib.Crypto.Protocols.MPC.ot14WordHandler,Cslib.Crypto.Protocols.MPC.decodeOT14Reply: 6-bit query encoding and stateful word-oracle handler forot14World(Section 7.3.2, Eq. 7.20, p. 640).Cslib.Crypto.Protocols.MPC.Steps.runEncoded,Cslib.Crypto.Protocols.MPC.Protocol.runEncoded,Cslib.Crypto.Protocols.MPC.encodeViewsAndOutputs: generic word-level protocol runner inWordOracleComp Unit (List Bool).
Main results #
Cslib.Crypto.Protocols.MPC.Steps.runEncoded_mapState,Cslib.Crypto.Protocols.MPC.Steps.runEncoded_append,Cslib.Crypto.Protocols.MPC.Steps.runEncoded_embed:Steps.runEncodedcommutes with relabelling states, concatenating steps and embedding a sub-protocol's parties.Cslib.Crypto.Protocols.MPC.Steps.runWith_runEncoded_eq_evalWith,Cslib.Crypto.Protocols.MPC.Protocol.eval_runEncoded_eq_evalWith_map: bridge lemmas relatingSteps.runEncoded/Protocol.runEncodedunderot14WordHandlertoevalWith ot14World.
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).
Part 1: Word-Level Functionality, ot14Spec Word Handler, and Protocol.runEncoded #
Randomized m-party functionality family induced by a word-level function
F : α × List Bool → List Bool with coins a random bits, n a-bit party inputs, and k a-bit
party outputs.
Serialize a typed ot14Spec query q : (s : Fin 2) → ot14Spec.Query () s as a 6-bit word:
the sender's four table bits q 0 0, q 0 1, q 0 2, q 0 3 followed by the receiver's two selector
bits (fin4ToBoolPair (q 1)).1, (fin4ToBoolPair (q 1)).2.
Stateful word-oracle handler realizing ot14World on 6-bit requests produced by
encodeOT14Query: returns the selected sender bit [req.getD idx false] while leaving the Unit
state unchanged.
Execute steps : Steps State Out sc over ot14Spec in WordOracleComp Unit, translating each
.oracle round into a 1-bit ProbOracleComp.query call with payload encodeOT14Query.
Encode a complete (views, outputs) execution outcome into a single bit string List Bool
by pairing the framed list of all m encoded party views with the framed list of all m encoded
party outputs.
Generic word-level execution of proto.run x in WordOracleComp Unit (List Bool), translating
each ot14Spec query to a word-oracle call and encoding the resulting (views, outputs) pair
via (encView, encOut).
Step-level bridge lemma: interpreting steps.runEncoded st against ot14WordHandler produces
the exact distribution of steps.evalWith ot14World st paired with ().
Bridge lemma: interpreting proto.runEncoded against the word-encoded ot14World handler
produces the exact law of proto.evalWith ot14World x mapped through encodeViewsAndOutputs.
Steps.runEncoded commutes with relabelling the party states.
Steps.runEncoded of concatenated steps runs the two parts in sequence.
Steps.runEncoded of an embedded sub-protocol runs the sub-protocol and pushes its
received messages to the embedded parties.