Are resolutions of chain reactions order-independent in the board game Pandemic? More formally:
You're given an undirected graph $G = (V, E)$ and a vertex weight $w \colon V \to \{0, \ldots, 3\}$. Each vertex is also in a state $s \colon V \to \{\textsf{no outbreak}, \textsf{outbreak}\}$.
To increase a vertex $v$:
- If $s(v) = \textsf{outbreak}$ then nothing happens.
- Else, if $w(v) < 3$ then $w(v) \gets w(v) + 1$.
- Else $s(v) \gets \textsf{outbreak}$ and increase all of $v$'s neighbours.
It is not specified which order $v$'s neighbours should be increased in. Is such a specification superfluous?
I observe that setting $s(v) \gets \textsf{outbreak}$ is essentially the same as removing $v$ from $G$. I don't know how that helps, though.
Also, if I understand what confluence means, I think my question can be stated: "is the following rewriting system confluent?", where each element is a specification of $w$ and $s$ and a number of due increases for each vertex $v$, and each rewrite is an increase of some $v$ (for which an increase is due; also decrement the number of increases due for $v$).
I think you can prove
by long induction on $n$. This means that any two sequences will put the same cities into outbreak, and therefore increase all other cities by the same amount.