Pipe-calculus: Difference between revisions

Line 140: Line 140:
== Equational theory ==
== Equational theory ==


Sequential composition is associative.  
Sequential composition is associative. <math>\null</math> is a neutral element.


<math>
<math>
\begin{align}
\begin{align}
s \seq (t \seq u) = & (s \seq t) \seq u  \\
s \seq (t \seq u) = & (s \seq t) \seq u  \\
t \seq \null = \null \seq t = t \\
\end{align}
\end{align}
</math>
</math>


Alternative composition is commutative, associative and idempotent.
Alternative composition is commutative, associative and idempotent. <math>\fail</math> is its neutral element.


<math>
<math>
Line 155: Line 156:
s \mid (t \mid u) = & (s \mid t) \mid u  \\
s \mid (t \mid u) = & (s \mid t) \mid u  \\
t \mid t = & t \\
t \mid t = & t \\
t \mid \fail = t \\
\end{align}
\end{align}
</math>
</math>
283

edits