<p>About a decade ago, Ene and Muntean showed that broadcasting has no reasonable compositional encoding into the $\pi$-calculus [1]. The essence of their separation between point-to-point communication and message passing is easy to understand: point-to-point is "too asynchronous". That means that in a broadcasting system, a broadcasting sender can send to $n$ processes in one atomic step for arbitrary $n$. OTOH, if a process wants to communicate with $n$ processes using point-to-point communication, this can only be done using $n$ (or more) separate message exchanges, which have intermediate states (e.g. the sender has sent messages to 100 receivers, and needs to send another 150). A context can observe, interact and interfere with these intermediate states, which is not possible with the atomic broadcast messages. To deal with this shortcoming of $\pi$-calculus (or indeed any calculus based on point-to-point message passing), Ene and Muntean propose a broadcasting variant b$\pi$ [2, 3], based on earlier work by Prasad on CBS, a variant of CCS with broadcasting [4].</p>

<p>More technically, [1] calls an encoding $e$ <i>reasonable</i> if the following is the case.</p>

<ul>
<li>The encoding preserves parallel composition, i.e. $e(P|Q) = e(P) | e(Q)$.</li>
<li>The encoding preserves injective renaming, i.e. $e(P\sigma) = e(P)\sigma$
for any injective renaming $\sigma$.</li>
<li>The encoding satisfies some technical conditions about the preservation of input and output actions, see [1] for details.</li>
</ul>

<p>Then [1] shows that no reasonable encoding from b$\pi$ to $\pi$ can exist. They establish this separation result using a variant of Palamidessi's electoral systems proof technique [5].</p>

<p>There has been work on this subject since [1-4] were published, e.g. by M. Hennessy, but those are the pioneering papers.</p>

<p>As an aside, broadcast is usually understood as one sender communicating with many receivers, but it is also possible to generalise point-to-point communication in the other direction where you have one receiver synchronising with multiple senders (this is used in e.g. <a href="http://en.wikipedia.org/wiki/Petri_net" rel="nofollow">Petri nets</a>), or hybrid forms of both. <a href="http://www.doc.ic.ac.uk/~iccp/" rel="nofollow">I. Phillips</a> has established a separation result that shows that this form of broadcasting can also not be encoded in  $\pi$-calculus. I am not sure whether this result is published or not.</p>

<p>[1] C. Ene, T. Muntean, <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.23.3320&amp;rep=rep1&amp;type=pdf" rel="nofollow">Expressiveness of Point-to-Point versus Broadcast Communications</a>.</p>

<p>[2] C. Ene, T. Muntean, <a href="http://www.cs.unh.edu/~charpov/Confs/FMPPTA/2001/FMP_05.PDF" rel="nofollow">A Broadcast-based Calculus for Communicating Systems</a>.</p>

<p>[3] C. Ene, T. Muntean, <a href="http://www-verimag.imag.fr/~ene/Papers/test.pdf" rel="nofollow">Testing theories for Broadcasting Processes</a>.</p>

<p>[4] K. V. S. Prasad, <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.38.5731&amp;rep=rep1&amp;type=pdf" rel="nofollow">A Calculus of Broadcasting Systems</a>.</p>

<p>[5] C. Palamidessi, <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.13.1182&amp;rep=rep1&amp;type=pdf" rel="nofollow">Comparing the Expressive Power of the Synchronous and the Asynchronous $\pi$-calculi</a>.</p>

CC BY-SA 3.0
2012-03-19T14:06:37.827Z
2012-03-23T14:19:45.500Z
2012-03-23T14:19:45.500Z
Martin Berger
<p>Can you model reliable broadcasts in the pi-calculus? </p>

<p>If so: How?</p>

<p>If not: Are there any similar process algebras where you can?</p>

<hr>

<p>What I have tried: </p>

<p>If sender $S$ wants to send a message $y$ to all $P_1$ to $P_n$, you could write<br>
!($\overline{x}y).S$ and $x(z).P_1$ to $x(z).P_n$. But how do you guarantee that $(\overline{x}y)$ is replicated $n$ times, i.e. no messages get lost?
I do not know $n$ in advance. Is it (only) possible with sending several messages back and forth between all processes involved?</p>

<p>...or do I misunderstand the nondeterministic behavior of replication?</p>

<pl.programming-languages><formal-modeling><process-algebra><pi-calculus>
(How) can you model broadcasts in the pi-calculus?
DaveBall aka user750378
# (How) can you model broadcasts in the pi-calculus?

(Asked by: username_0 on 2012-03-19)

Can you model reliable broadcasts in the pi-calculus?

If so: How?

If not: Are there any similar process algebras where you can?

---

What I have tried:

If sender $S$ wants to send a message $y$ to all $P\_1$ to $P\_n$, you could write  
!($\overline{x}y).S$ and $x(z).P\_1$ to $x(z).P\_n$. But how do you guarantee that $(\overline{x}y)$ is replicated $n$ times, i.e. no messages get lost?
I do not know $n$ in advance. Is it (only) possible with sending several messages back and forth between all processes involved?

...or do I misunderstand the nondeterministic behavior of replication?

**Tags:** pl.programming-languages, formal-modeling, process-algebra, pi-calculus


---

## 1 answers

### Answer by username_1 on 2012-03-19. Score: 19 | Accepted answer

About a decade ago, Ene and Muntean showed that broadcasting has no reasonable compositional encoding into the $\pi$-calculus [1]. The essence of their separation between point-to-point communication and message passing is easy to understand: point-to-point is "too asynchronous". That means that in a broadcasting system, a broadcasting sender can send to $n$ processes in one atomic step for arbitrary $n$. OTOH, if a process wants to communicate with $n$ processes using point-to-point communication, this can only be done using $n$ (or more) separate message exchanges, which have intermediate states (e.g. the sender has sent messages to 100 receivers, and needs to send another 150). A context can observe, interact and interfere with these intermediate states, which is not possible with the atomic broadcast messages. To deal with this shortcoming of $\pi$-calculus (or indeed any calculus based on point-to-point message passing), Ene and Muntean propose a broadcasting variant b$\pi$ [2, 3], based on earlier work by Prasad on CBS, a variant of CCS with broadcasting [4].

More technically, [1] calls an encoding $e$ *reasonable* if the following is the case.

* The encoding preserves parallel composition, i.e. $e(P|Q) = e(P) | e(Q)$.
* The encoding preserves injective renaming, i.e. $e(P\sigma) = e(P)\sigma$
  for any injective renaming $\sigma$.
* The encoding satisfies some technical conditions about the preservation of input and output actions, see [1] for details.

Then [1] shows that no reasonable encoding from b$\pi$ to $\pi$ can exist. They establish this separation result using a variant of Palamidessi's electoral systems proof technique [5].

There has been work on this subject since [1-4] were published, e.g. by M. Hennessy, but those are the pioneering papers.

As an aside, broadcast is usually understood as one sender communicating with many receivers, but it is also possible to generalise point-to-point communication in the other direction where you have one receiver synchronising with multiple senders (this is used in e.g. [Petri nets](http://en.wikipedia.org/wiki/Petri_net)), or hybrid forms of both. [I. Phillips](http://www.doc.ic.ac.uk/~iccp/) has established a separation result that shows that this form of broadcasting can also not be encoded in $\pi$-calculus. I am not sure whether this result is published or not.

[1] C. Ene, T. Muntean, [Expressiveness of Point-to-Point versus Broadcast Communications](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.23.3320&rep=rep1&type=pdf).

[2] C. Ene, T. Muntean, [A Broadcast-based Calculus for Communicating Systems](http://www.cs.unh.edu/~charpov/Confs/FMPPTA/2001/FMP_05.PDF).

[3] C. Ene, T. Muntean, [Testing theories for Broadcasting Processes](http://www-verimag.imag.fr/~ene/Papers/test.pdf).

[4] K. V. S. Prasad, [A Calculus of Broadcasting Systems](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.38.5731&rep=rep1&type=pdf).

[5] C. Palamidessi, [Comparing the Expressive Power of the Synchronous and the Asynchronous $\pi$-calculi](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.13.1182&rep=rep1&type=pdf).


---

