Elm Exactly

Rule 184p-proc-step

TransitionsK→⟨ℓ⟩K′K\step{\opt{\ell}}K'
P(pid)=(tk,s′,o)tk→⟨a⟩tk′⟨a=π(v1⋯vk)⇓tk′′π∈Primplat⟩(s,v,M,P,sb,Q,H)→⟨a⟩(s,v,M,P+{pid↦(tk′,s,o)},sb,Q,H)\frac{\begin{array}{c}P(\pid)=(\tk,s',\pgorig)\premsep\tk\effred{\opt{\effa}}\tk'\\ \opt{\effa=\effdone{\pi(v_1\cdots v_k)}{\tk''}\premsep\pi\in\effPrimPlat}\end{array}}{\begin{array}{c}(s,v,M,P,\sbv,Q,H)\step{\opt{\effa}} (s,v,M,P+\{\pid\mapsto(\tk',s,\pgorig)\},\sbv,Q,H)\end{array}}
(184)
Read it in its chapter·Permanent address: /standard/rules/p-proc-step

Comments

A process takes one reduction of its task at a time, and the steps of different processes, and every other transition, may come between any two of them. A process may thus be suspended at any andThen\effandThen; a program may rely on nothing more. Rules (184) to (187) record the present time as the time of the process’s latest step. An action of a primitive of the platform acts on the world as the platform defines.

TeX source
\defnrule[r:p-proc-step]
  {P(\pid)=(\tk,s',\pgorig)\premsep\tk\effred{\opt{\effa}}\tk'\\
   \opt{\effa=\effdone{\pi(v_1\cdots v_k)}{\tk''}\premsep\pi\in\effPrimPlat}}
  {(s,v,M,P,\sbv,Q,H)\step{\opt{\effa}}
   (s,v,M,P+\{\pid\mapsto(\tk',s,\pgorig)\},\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-step] 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.