Changing the effects of interactive strategies #
Translate every effect of a strategy while retaining its message-dependent continuations.
Initial computations that produce strategies remain outside this operation and must be translated
separately, in their original order. Stateful interpretations should target StateT; run the
combined interaction once, rather than resetting the state at each translated effect.
Main definitions #
ProverStrategy.hoist,VerifierStrategy.hoist: translate the effects of existing strategies.liftVerifier: embed receiver-side oracle computations in the joint role oracle.
Main results #
runAgainst_hoist: a monad morphism commutes with the complete interaction.interpret_liftVerifier: a lifted verifier computation ignores the prover's oracle.
Translate effects in a prover strategy, retaining each captured continuation.
Translate effects in a verifier strategy, including its terminal view computation.
Translating both strategies by a monad morphism translates their entire interaction, including the transcript and both terminal outputs.
Lift a verifier computation into the joint oracles without granting it prover queries.
The existing prover-role embedding preserves monadic effects.
The verifier-role embedding preserves monadic effects.
A lifted verifier computation uses only the sampling and verifier components of a joint handler: the prover component is never consulted.