Elm Exactly

Rule 180p-disp-out

Dispatchs,P,Q,H⊢L⇒(P′,Q′,H′)\jdg{s,P,Q,H}{L}{(P',Q',H')}
c∈Leaf(out p,j)s,P, Q+{p↦Q(p)⋅j}, H⊢L⇒(P′,Q′,H′)s,P,Q,H⊢c⋅L⇒(P′,Q′,H′)\frac{\begin{array}{c}\effc\in\pgLeaf(\effmout\,\effp,j)\\ \jdg{s,P,\ Q+\{\effp\mapsto Q(\effp)\cdot j\},\ H}{L}{(P',Q',H')}\end{array}}{\begin{array}{c}\jdg{s,P,Q,H}{\effc\cdot L}{(P',Q',H')}\end{array}}
(180)
Read it in its chapter·Permanent address: /standard/rules/p-disp-out

Comments

The boundary value was computed when the command was made (Section 8.7); dispatch only appends it to the queue of its port. Since Q(p)Q(\effp) is defined only for the outgoing ports of the program, p\effp is one of them. The values of one command for one port join the queue in the order of LL, which is unspecified: with Cmd.batch [send 1, send 2], either value may be delivered first.

TeX source
\defnrule[r:p-disp-out]
  {\effc\in\pgLeaf(\effmout\,\effp,j)\\
   \jdg{s,P,\ Q+\{\effp\mapsto Q(\effp)\cdot j\},\ H}{L}{(P',Q',H')}}
  {\jdg{s,P,Q,H}{\effc\cdot L}{(P',Q',H')}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:p-disp-out] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.