anatoliykmetyuk / free-acp

A rewriting-based process algebra engine
7 stars 3 forks source link

Choice is not commutative #10

Closed anatoliykmetyuk closed 7 years ago

anatoliykmetyuk commented 7 years ago

δ + x != x + δ. This is because:

Hence, it can be a better idea to move the Choice logic from resumption to run/runM. The resumption then will return a List[F[Tree]].

anatoliykmetyuk commented 7 years ago

This is not a problem outside of the test cases. The test cases make their suspension functors succeed immediately, so the decision can be made based on the order.