Strict-PPT closure for UC routing and lifting wrappers #
This module proves that strict-PPT certificates (PPTCertificate, Machine.IsPPTFamily,
Protocol.IsPPT, Adversary.IsPPT) in this library's word model survive the query-adapting,
static-corruption routing, and adversary-lifting wrappers of UC.Linking, UC.Execution, and
UC.Composition. Every construction and theorem here is library infrastructure for this word
model (not Definition 6 of [Can20a]).
Modelling notes #
- Explicit inner cap in
WordInterface.isOraclePPTOn_lowerWith_adapt. Translating a loweredJ-oracle program into a loweredK-oracle program via aWordInterface.PortMapmay change reply word lengths (for instance, prepending a sum tag bit). The theorem takes an explicit inner reply boundcapInand a fit hypothesishfitensuring every translatedr a-truncated reply fits incapIn abits; the polynomial-time reply allowance required byIsOraclePPTOn.interpret_preprocess_open'is derived directly fromPortMap.replyMap_polyandhr, socapInitself needs no computability certificate. - Party-index extraction in
routeCorrupt/corruptRouter. For an arbitraryparty : WordPort (Fin n × In) (Option Out),party.queryDecodercertifies only the re-encoded pairparty.query ∘ party.queryDecoder.decode, which does not in general expose the party indexFin nin polynomial time. Accordingly,PPTCertificate.routeCorrupt,Machine.IsPPTFamily.routeCorrupt, andProtocol.IsPPT.corruptRoutertake the minimal hypothesisComputableInPolyTime (fun w => (party.queryDecoder.decode w).1) encBits (encFinite (Fin n)), whichWordPort.computable_partyIndexdischarges automatically wheneverparty = WordPort.party input. - State renormalization. Unforwarded branches of
routeCorruptand the pass-through left branch ofMachine.liftRightleave the underlying typed state unchanged, so on arbitrary (possibly off-image) state words they invokePPTCertificate.normalize; the pass-through branch ofMachine.liftRightlikewise usesWordInterface.computable_requestNormalizeandWordInterface.computable_replyNormalize.
Main definitions #
Cslib.Crypto.Protocols.UC.WordInterface.PortMap: polynomial-time word-level translation between twoWordInterfaces.Cslib.Crypto.Protocols.UC.WordInterface.PortMap.adapt: typedProbOracleComp.simulateadapter induced by aPortMap.Cslib.Crypto.Protocols.UC.WordInterface.PortMap.inr,.inl: right- and left-injectionPortMaps intoiL.sum iR.Cslib.Crypto.Protocols.UC.HybridProtocol.IsPPT: strict-PPT predicate for hybrid protocols in this word model.Cslib.Crypto.Protocols.UC.PPTCertificate.routeCorrupt,.hybridWrap,.liftRight,.liftAdversary: constructivePPTCertificatecombinators for corruption routing, hybrid wrapping, and lifting.
Main results #
Cslib.Crypto.Protocols.UC.WordInterface.isOraclePPTOn_lowerWith_adaptandCslib.Crypto.Protocols.UC.WordInterface.PortMap.support_lowerWith_adapt: adapting a lowered program through aPortMappreservesIsOraclePPTOnand (whenreplyMapis the identity)OracleComp.support.Cslib.Crypto.Protocols.UC.Machine.IsPPTFamily.routeCorrupt,Cslib.Crypto.Protocols.UC.Protocol.IsPPT.corruptRouter: static-corruption routing preserves strict PPT.Cslib.Crypto.Protocols.UC.HybridProtocol.IsPPT.hybridWrap:hybridWrappreserves strict PPT.Cslib.Crypto.Protocols.UC.Machine.IsPPTFamily.liftRight,Cslib.Crypto.Protocols.UC.Adversary.IsPPT.liftAdversary: lifting a machine family or adversary past an arbitrary left word interface preserves strict PPT.
References #
- R. Canetti, Universally Composable Security, Section 3.2 (Polynomial Time ITMs and Parameterized Systems) and Section 4.1 (The Model of Protocol Execution): context for UC polynomial time, static-corruption routing, and adversary placement. All results here are library constructions for this word model rather than Definition 6 of [Can20a].
Word-level port maps and lowered-program adaptation #
Library construction (no cited definition): a polynomial-time translation between two
word-backed oracle interfaces, expressing a query-translating ProbOracleComp.simulate adapter on
the underlying word interface.
- queryMap : ιJ → ιK
Translate a
J-query into aK-query. - replyBack (j : ιJ) : K (self.queryMap j) → J j
Translate a
K-reply back into aJ-reply. Channel translation on the word interface.
Word-level query translation.
Word-level reply translation.
Compatibility of
channelMapwithqueryMap.- decodeReply_replyMap (j : ιJ) (w : List Bool) : iJ.decodeReply j (self.replyMap (iJ.channel j) w) = self.replyBack j (iK.decodeReply (self.queryMap j) w)
- wordMap_poly : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : iJ.Channel × List Bool) => self.wordMap x.1 x.2) (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encFinite iJ.Channel) Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits
wordMapis computable in polynomial time. - replyMap_poly : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : iJ.Channel × List Bool) => self.replyMap x.1 x.2) (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encFinite iJ.Channel) Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits
replyMapis computable in polynomial time.
Library construction (no cited definition): adapt a J-oracle program into a K-oracle
program by translating each query with queryMap and each reply with replyBack.
Library construction (no cited definition): the right-injection PortMap embedding iR into
iL.sum iR. Its adapt equals Machine.liftRightProgram L.
Library construction (no cited definition): the left-injection PortMap embedding iL into
iL.sum iR.
Library infrastructure (no cited result): adapting a lowered strict oracle-PPT program through
a WordInterface.PortMap preserves IsOraclePPTOn, provided every translated r a-truncated
reply fits inside the inner reply cap capIn a.
Library infrastructure (no cited result): adapting through a PortMap whose word-level reply
translation is the identity leaves the support of the lowered program unchanged.
Library infrastructure (no cited result): lowering a liftParty program through
WordInterface.protocol subParty nq has the same OracleComp.support as lowering the underlying
party-interface program through WordInterface.net subParty.
Static-corruption routing (routeCorrupt and corruptRouter) #
Library construction (no cited definition): lift a PPTCertificate through routeCorrupt,
preserving the state codec and adding cert.growth p w.tail to cover tag-stripped routed
requests.
Library infrastructure (no cited result): static-corruption routing (routeCorrupt) preserves
Machine.IsPPTFamily whenever the party port exposes the decoded party index in polynomial time
(automatic for WordPort.party via WordPort.computable_partyIndex).
Library infrastructure (no cited result): static-corruption routing (corruptRouter) preserves
Protocol.IsPPT whenever the party port exposes the decoded party index in polynomial time
(automatic for WordPort.party via WordPort.computable_partyIndex).
Hybrid wrapper (hybridWrap) #
Library construction (no cited definition; follows the typed-object-plus-encoding convention
of AdversaryOf.IsPPT, not Definition 6 of [Can20a]): a hybrid protocol is strict PPT in this
library's word model for its party port party, network port net, and the party port subParty
of its subroutine. No implication to or from HybridProtocol.PolyBounded is claimed.
Library construction (no cited definition): lift a hybrid protocol's PPTCertificate through
hybridWrap, preserving the state codec; subroutine-network requests are forwarded and leave the
state word normalized.
Library infrastructure (no cited result), toward #6043: hybridWrap preserves strict PPT.
Machine lifting (liftRight and liftAdversary) #
Library infrastructure (no cited result): lowering a right-lifted program through iL.sum iR
has the same OracleComp.support as lowering the underlying program through iR.
Library construction (no cited definition): lift a PPTCertificate through
Machine.liftRight, preserving the state codec and additive growth bound.
Library infrastructure (no cited result): lifting a strict-PPT machine family past an
arbitrary left word interface preserves Machine.IsPPTFamily.
Library construction (no cited definition): lift an adversary's PPTCertificate through
liftAdversary.
Library infrastructure (no cited result): lifting a strict-PPT adversary past the party port
(liftAdversary) preserves strict PPT.