Elm Exactly

Rule 177p-program

ProgramsB⊢program⇒(τ,PE,v)\jdg{B}{\program}{(\tau,\PE,v)}
BSTATofB⊢STATprogram⇒(τ,PE)BDYNofB⊢DYNprogram⇒vB⊢program⇒(τ,PE,v)\frac{\begin{array}{c}\jstat{\pgBstat\of B}{\program}{(\tau,\PE)}\premsep \jdyn{\pgBdyn\of B}{\program}{v}\end{array}}{\begin{array}{c}\jdg{B}{\program}{(\tau,\PE,v)}\end{array}}
(177)
Read it in its chapter·Permanent address: /standard/rules/p-program

Comments

A program is elaborated as a whole before any part of it is evaluated: if one module fails to elaborate, the static premise fails, and nothing is evaluated, not even the modules before it. Elaboration may choose the new type names of a module freely (rule (46)), but neither PE\PE, whose types are built from type names of the initial basis alone, nor vv depends on the choice.

TeX source
\defnrule[r:p-program]
  {\jstat{\pgBstat\of B}{\program}{(\tau,\PE)}\premsep
   \jdyn{\pgBdyn\of B}{\program}{v}}
  {\jdg{B}{\program}{(\tau,\PE,v)}}

Tests (1)

Discussions

Discuss this rule·Search the discussions on GitHub

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