Laws of linking and composing interactive machines #
Running a program against a composed machine A.comp P is running it against A and running the
result against P (Machine.runFrom_comp). Since A.comp P initializes P first, linking is
associative as an equation of programs, without any appeal to probabilities
(Machine.link_comp): (A.comp P).link Z = P.link (A.link Z). The forwarding machine is a unit
for linking (Machine.link_id). These are the package-algebra laws of state-separating proofs,
which turn reductions into a regrouping of the same program.
Call budgets compose: a machine making at most u calls per activation, on top of a machine making
at most t, makes at most u * (t + 1) + t (Machine.IsBounded.comp), and a program making at
most m calls, linked against a machine making at most t per activation, makes at most
t + m * (t + 1) (Machine.isQueryBounded_link).
Main results #
Cslib.Crypto.Protocols.UC.Machine.runFrom_map_state,Cslib.Crypto.Protocols.UC.Machine.comp_handle_map_state: state representations that commute with every activation commute with runs and compositions.Cslib.Crypto.Protocols.UC.Machine.runFrom_comp: running against a composition.Cslib.Crypto.Protocols.UC.Machine.link_comp,Cslib.Crypto.Protocols.UC.Machine.run_comp: linking is associative.Cslib.Crypto.Protocols.UC.Machine.runFrom_id,Cslib.Crypto.Protocols.UC.Machine.link_id: the forwarding machine is a unit.Cslib.Crypto.Protocols.UC.Machine.IsBounded.comp,Cslib.Crypto.Protocols.UC.Machine.isQueryBounded_link: budgets of compositions and links.Cslib.Crypto.Protocols.UC.Machine.liftRightProgram,Cslib.Crypto.Protocols.UC.Machine.liftRight,Cslib.Crypto.Protocols.UC.Machine.runFrom_liftRight_liftRightProgram,Cslib.Crypto.Protocols.UC.Machine.liftRight_id,Cslib.Crypto.Protocols.UC.Machine.liftRight_comp,Cslib.Crypto.Protocols.UC.Machine.isQueryBounded_liftRightProgram,Cslib.Crypto.Protocols.UC.Machine.isBounded_liftRight: lifting a right-port program or machine past an arbitrary left-port interface.
References #
- C. Brzuska, A. Delignat-Lavaud, C. Fournet, K. Kohbrok, M. Kohlweiss, State Separation for Code-Based Game-Playing Proofs: linking and its associativity.
A state representation f that commutes with every activation commutes with every run.
Intertwining the inner machines of a composition intertwines the composed machines on the product state.
Running against a composition runs against the outer machine, and runs the result against the inner machine.
Sampling the composition's initial state inside a program samples the inner machine's state, then the outer one's.
Linking is associative: a program linked against a composition is the program linked against the outer machine and then against the inner one.
Running a program against a closed composition is running its link against the inner machine.
Linking against the forwarding machine leaves a program unchanged.
Budgets of compositions and links #
Embedded sampling makes as many calls as the closed program.
A program with at most m calls, run against a machine with at most t calls per activation,
makes at most m * (t + 1) calls.
A program with at most m calls, linked against a machine with at most t calls per
activation and at initialization, makes at most t + m * (t + 1) calls.
A machine with at most u calls per activation on top of a machine with at most t makes at
most u * (t + 1) + t calls per activation.
Lifting right-port programs and machines over an arbitrary left port #
Lift a program on R to a program on L ⊕ₒ R, preserving private samples.
A right-port query becomes a query on the right branch of L ⊕ₒ R.
Private samples are unchanged by lifting.
Lifting past L preserves the call budget of a program.
Lift a machine M from R → E to L ⊕ₒ R → L ⊕ₒ E, forwarding left-port queries
unchanged and running right-port activations through liftRightProgram.
Running a lifted program against a lifted machine equals lifting the run against the inner machine.
Lifting the forwarding machine yields the forwarding machine on the combined interface.