Mapping the result of a deterministic client #
A result map g <$> p runs p and applies g to its answer. StateTransitionSpec.runClient_map
evaluates the map over the entire run, including the final state and the operation history, and
StateTransitionSpec.clientResult_map, StateTransitionSpec.clientState_map and
StateTransitionSpec.clientHistory_map are its answer, state and history. The run, the answer,
the state and the history (as StateTransitionSpec.fst_snd_runClient_map and
StateTransitionSpec.snd_snd_runClient_map, the forms simp indexes) are in client_simps,
together with PFunctor.FreeM.map_eq_map, so
simp only [client_simps] handles both spellings g <$> p and p.map g.
Main results #
StateTransitionSpec.runClient_map,StateTransitionSpec.clientResult_map,StateTransitionSpec.clientState_map,StateTransitionSpec.clientHistory_map,StateTransitionSpec.fst_snd_runClient_map,StateTransitionSpec.snd_snd_runClient_map: running a mapped client.StateTransitionSpec.validHistory_map: a mapped client is admissible when the client is.
A result map applies the function to the answer and preserves the final state and history.
clientState_map, stated in the form that simp indexes (see fst_snd_runClient_bind).
clientHistory_map, stated in the form that simp indexes (see snd_snd_runClient_bind).
A mapped client is admissible when the client is.