Section GenericQueryReceiveTransitions.
(* Send-prepare *)
Variable rtag : nat.
Variable rc_wf : forall d, coh d -> nid -> nid -> TaggedMessage -> bool.
Definition receive_step : receive_step_t coh :=
fun this (from : nid) (msg : seq nat) d (pf : coh d) (pt : this \in nodes) =>
let q := getSt this pf in
mkLocal (receive_step_fun q from rtag (head 0 msg)).

Lemma receive_step_coh : r_step_coh_t rc_wf rtag receive_step.