Elm Exactly

Rule 189p-proc-end

TransitionsK→⟨ℓ⟩K′K\step{\opt{\ell}}K'
P(pid)=(tk,s′,o)tk=fail v′ or (tk=succeed v′ and o=spawned)(s,v,M,P,sb,Q,H)→(s,v,M,P+{pid↦ended},sb,Q,H)\frac{\begin{array}{c}P(\pid)=(\tk,s',\pgorig)\\ \tk=\efffail\,v'\ \text{or}\ (\tk=\effsucceed\,v'\ \text{and}\ \pgorig=\pgspawned)\end{array}}{\begin{array}{c}(s,v,M,P,\sbv,Q,H)\step{}(s,v,M,P+\{\pid\mapsto\pgended\},\sbv,Q,H)\end{array}}
(189)
Read it in its chapter·Permanent address: /standard/rules/p-proc-end

Comments

A process whose task fails ends, whatever its origin, and nothing else happens: there is no error, and no message.

Referred to from

TeX source
\defnrule[r:p-proc-end]
  {P(\pid)=(\tk,s',\pgorig)\\
   \tk=\efffail\,v'\ \text{or}\ (\tk=\effsucceed\,v'\ \text{and}\ \pgorig=\pgspawned)}
  {(s,v,M,P,\sbv,Q,H)\step{}(s,v,M,P+\{\pid\mapsto\pgended\},\sbv,Q,H)}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:p-proc-end] 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.