Elm Exactly

Rule 139e-task-prim

Task Reductiontk→⟨a⟩tk′\tk\effred{\opt{\effa}}\tk'
tk∈Out(π,v1⋯vk)prim(π,v1⋯vk)→π(v1⋯vk)⇓tktk\frac{\begin{array}{c}\tk\in\effOut(\pi,v_1\cdots v_k)\end{array}}{\begin{array}{c}\effprim(\pi,v_1\cdots v_k)\effred{\effdone{\pi(v_1\cdots v_k)}{\tk}}\tk\end{array}}
(139)
Read it in its chapter·Permanent address: /standard/rules/e-task-prim

Comments

This is the only rule with a label, and it does not determine its result: the outcome is any member of Out(π,v1⋯vk)\effOut(\pi,v_1\cdots v_k). For spawn\effspawn, the process identifier is unconstrained here; Chapter 9 chooses one that names no earlier process. For the primitives of the platform, the outcome is decided by the platform, which may also take time to decide it, as for sleep\effsleep.

TeX source
\defnrule[r:e-task-prim]
  {\tk\in\effOut(\pi,v_1\cdots v_k)}
  {\effprim(\pi,v_1\cdots v_k)\effred{\effdone{\pi(v_1\cdots v_k)}{\tk}}\tk}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:e-task-prim] 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.