Single-session adaptive UC composition (snapshot corruption model) #
This module proves single-subroutine composition for this library's snapshot, call-bounded
adaptive-corruption port model (CslibFrontier.Crypto.Protocols.UC.Adaptive and
CslibFrontier.Crypto.Protocols.UC.AdaptiveDummyAdversary), mirroring static single-session
composition in CslibFrontier.Crypto.Protocols.UC.Composition (#6043). These results are not
[Can20a] Theorem 3 (Section 2.3), Theorem 22 (Section 6.1), or Section 7.1.1's write-once /
non-erasing storage and coin-exposure model: participants are bounded only by oracle call counts
per activation (unbounded local computation, not PPT ITMs), sessions are fixed to a single
n-party subroutine instance, and .nonErasing histories record caller-supplied view snapshots
rather than enforcing write-once storage or per-party activation granularity.
An AdaptiveHybridProtocol ρ is an n-party adaptive calling protocol whose machines invoke a
subroutine's partySpec n SubIn SubOut port. composeAdaptive ρ σ composes ρ over an inner
AdaptiveProtocol σ, exposing ρ's network port beside σ's routed network port
(NetQ ⊕ RoutedNetQ n SubIn NQ). A single .corrupt i query corrupts party i consistently
across both ρ and σ, returning AdaptiveHybridView Viewρ Viewσ pairing ρ's and σ's
CorruptionReports without leaking uncorrupted party state or erased histories.
Because adaptiveRouter in UC.Adaptive runs P.applyInitialCorruptions before recording the
initial snapshot trace[0], composition preserves initial snapshots under
ViewStableOnCorrupt (vacuously true for .erasing protocols, and true whenever onCorrupt does
not alter view for .nonErasing protocols).
Main definitions #
Cslib.Crypto.Protocols.UC.AdaptiveHybridProtocol,Cslib.Crypto.Protocols.UC.AdaptiveHybridProtocol.PolyBounded,Cslib.Crypto.Protocols.UC.AdaptiveHybridProtocol.ViewStableOnCorrupt,Cslib.Crypto.Protocols.UC.AdaptiveProtocol.ViewStableOnCorrupt: adaptive hybrid protocols and snapshot-stability predicates.Cslib.Crypto.Protocols.UC.AdaptiveHybridView,Cslib.Crypto.Protocols.UC.AdaptiveComposeState: combined corruption report and internal composed router state.Cslib.Crypto.Protocols.UC.subPartyMachine,Cslib.Crypto.Protocols.UC.composeAdaptive: single-session adaptive subroutine replacement.Cslib.Crypto.Protocols.UC.absorbAdaptiveHybrid: environment runningρinternally against the subroutine.Cslib.Crypto.Protocols.UC.adaptiveHybridSim: composed adaptive simulator wrapping a subroutine dummy simulatorS_D.Cslib.Crypto.Protocols.UC.absorbAdaptiveCheckPoly: call-budget polynomial of the status-checked absorbed environment.Cslib.Crypto.Protocols.UC.AdaptiveAdversary.CorruptSync: synchronization predicate under whicheval_adaptiveExec_compose_sim_of_corruptSyncholds as an exact distributional equality.
Main results #
Cslib.Crypto.Protocols.UC.composeAdaptive_polyBounded,Cslib.Crypto.Protocols.UC.absorbAdaptiveHybrid_polyBounded,Cslib.Crypto.Protocols.UC.adaptiveHybridSim_polyBounded: call-budget preservation.Cslib.Crypto.Protocols.UC.adaptiveExec_compose_dummy,Cslib.Crypto.Protocols.UC.eval_adaptiveExec_compose_sim_of_corruptSync,Cslib.Crypto.Protocols.UC.adaptiveAdvantage_compose_of_corruptSync: execution regrouping identities.Cslib.Crypto.Protocols.UC.AdaptiveEmulatesDummyWithin.compose,Cslib.Crypto.Protocols.UC.AdaptiveEmulatesWithin.compose,Cslib.Crypto.Protocols.UC.AdaptiveEmulates.compose: quantitative and asymptotic adaptive composition in the snapshot, call-bounded port model (#6043).
References #
- R. Canetti, Universally Composable Security, J. ACM 67(5), Article 28, 2020 (ePrint 2000/067 of Feb 11, 2020): Section 2.3 (Theorem 3) and Section 7.1.1 (p. 28:71), which inspire the snapshot adaptive-corruption model adapted here.
Adaptive hybrid protocols, views, and composed state #
An n-party calling protocol in the snapshot adaptive-corruption model, invoking a subroutine's
partySpec n SubIn SubOut port.
The hybrid protocol machine at security parameter
κ.Arbitrary caller-supplied projection from inner hybrid state to party
i's reported view.The hybrid protocol's reaction when party
iis corrupted.- memory : PartyMemory
Router trace-exposure flag selecting whether past view snapshots are omitted or included in
AdaptiveHybridView.outer.
Combined corruption report returned when corrupting party i in composeAdaptive ρ σ: pairs
the outer protocol's CorruptionReport with the inner subroutine's CorruptionReport, each
respecting its own PartyMemory.
- outer : CorruptionReport Viewρ
The outer hybrid protocol's corruption report at party
i. - sub : CorruptionReport Viewσ
The inner subroutine protocol's corruption report at party
i.
Instances For
Internal state of composeAdaptive ρ σ at security parameter κ: separate
AdaptiveRouterStates for the outer protocol ρ and inner subroutine σ so that each tracks
exactly its own activations and snapshots.
- outer : AdaptiveRouterState Sρ Viewρ n
Router state of the outer hybrid protocol
ρ. - sub : AdaptiveRouterState Sσ Viewσ n
Router state of the inner subroutine protocol
σ.
Apply ρ.onCorrupt κ i in canonical order for every i ∈ C₀ at initialization.
Build the corruption report for party i from ρ's router state.
Append every party's ρ.view snapshot after an outer protocol activation.
Every activation and initialization of ρ.machine κ makes at most p.eval κ calls.
Snapshot stability under onCorrupt for .nonErasing AdaptiveProtocols: onCorrupt does
not modify view, so initial snapshots recorded before vs. after applyInitialCorruptions agree.
Vacuously true when P.memory = .erasing.
Snapshot stability under onCorrupt for .nonErasing AdaptiveHybridProtocols. Vacuously
true when ρ.memory = .erasing.
Every .erasing AdaptiveProtocol satisfies ViewStableOnCorrupt vacuously.
Every .erasing AdaptiveHybridProtocol satisfies ViewStableOnCorrupt vacuously.
Subroutine replacement (composeAdaptive) #
Closed machine answering subroutine party calls for σ inside composeAdaptive ρ σ,
guarding against corrupted parties and recording σ snapshots per activation.
Single-session subroutine replacement ρ^σ in the snapshot adaptive-corruption model. A single
.corrupt i query corrupts party i across both ρ and σ via onCorrupt, returning
AdaptiveHybridView (outer and sub CorruptionReports). Outer memory is .erasing so that
outer adaptiveRouter snapshots neither leak erased inner histories nor count simulator-internal
subroutine queries.
Absorbed environment and composed simulator #
The subroutine environment embedding ρ and Z: runs ρ internally against the subroutine
and forwards Z's subroutine-network and .corrupt queries.
The composed simulator for composeAdaptive ρ π against composeAdaptive ρ φ, built from an
adaptive dummy-adversary simulator S_D for π against φ and initial corruption schedule
C₀.
Budgets #
The budget pρ + 1 + pZ * (pρ + 3) of the status-checked absorbed environment.
Evaluation of absorbAdaptiveCheckPoly pZ pρ at security parameter κ.
Adaptive subroutine replacement preserves polynomial call budgets.
Absorbing an adaptive hybrid protocol with budget pρ into an environment with budget pZ
gives an environment with budget absorbPoly pZ pρ.
The composed simulator of a subroutine simulator with budget pS has budget pS + 1.
Execution regrouping: dummy adversary #
Running composeAdaptive ρ π with adaptiveDummyAdversary C₀ equals running π with
adaptiveDummyAdversary C₀ and absorbAdaptiveHybrid mode C₀ ρ Z (for ViewStableOnCorrupt
protocols; vacuously satisfied for .erasing protocols).
Execution regrouping: composed simulator and synchronization check #
Synchronization condition for eval_adaptiveExec_compose_sim_of_corruptSync: S_D starts with
initial = C₀ and every activation preserves adaptiveRouter mode φ's corrupted set (C on
.party/.net, and if mode = .adaptive then insert i C else C on .corrupt i) whenever
C₀ κ ⊆ C.
Adaptive composition theorems #
Exact composition regrouping under CorruptSync #
Execution regrouping for the composed simulator under CorruptSync in the snapshot adaptive
model: running composeAdaptive ρ φ against adaptiveHybridSim mode C₀ S_D and Z induces the
same Boolean distribution as running φ against S_D and absorbAdaptiveHybrid mode C₀ ρ Z.
Advantage regrouping under CorruptSync in the snapshot adaptive model.
Concrete composition for AdaptiveEmulatesDummyWithin, this library's snapshot, call-bounded,
fixed-n-party, adaptive-corruption dummy-adversary emulation notion (a step toward
[Can20a]-style adaptive composition, not [Can20a] Theorem 3 or §7.1.1's write-once
storage and coin-exposure model; #6043). Requires ViewStableOnCorrupt on all three protocols
(vacuous when .memory = .erasing) and evaluates ε at absorbAdaptiveCheckPoly pZ pρ, whose
extra status queries rule out simulator initial-corruption and runtime-corruption desynchronization
without assuming an explicit CorruptSync condition.
Concrete composition for AdaptiveEmulatesWithin, this library's snapshot, call-bounded,
fixed-n-party, adaptive-corruption port-model emulation notion (not [Can20a] Theorem 3 or
§7.1.1's write-once non-erasing storage and PPT ITMs; #6043). Requires ViewStableOnCorrupt on
ρ, π, and φ (vacuous under .erasing) and ρ.PolyBounded pρ, evaluating the error at
absorbAdaptiveCheckPoly (absorbPoly pZ pA) pρ without assuming CorruptSync.
Asymptotic composition for AdaptiveEmulates, this library's snapshot, call-bounded,
fixed-n-party, adaptive-corruption port-model emulation notion (not [Can20a] Theorem 3 or
§7.1.1's write-once non-erasing storage and PPT ITMs; #6043). Requires ViewStableOnCorrupt on
ρ, π, and φ (vacuous under .erasing) and ρ.PolyBounded pρ, without assuming
CorruptSync.