Elm Exactly

Rule 92d-valbind-var

Value BindingsE⊢valbind⇒VE\jdg{E}{\valbind}{\VE}
E⊢exp⇒v⟨E⊢valbind⇒VE⟩E⊢var = exp ⟨and valbind⟩⇒{var↦v}⟨+ VE⟩\frac{\begin{array}{c}\jdg{E}{\expm}{v}\premsep\opt{\jdg{E}{\valbind}{\VE}}\end{array}}{\begin{array}{c}\jdg{E}{\var\ \kw{=}\ \expm\ \opt{\kw{and}\ \valbind}}{\{\var\mapsto v\}\opt{+\,\VE}}\end{array}}
(92)
Read it in its chapter·Permanent address: /standard/rules/d-valbind-var
TeX source
\defnrule[r:d-valbind-var]
  {\jdg{E}{\expm}{v}\premsep\opt{\jdg{E}{\valbind}{\VE}}}
  {\jdg{E}{\var\ \kw{=}\ \expm\ \opt{\kw{and}\ \valbind}}{\{\var\mapsto v\}\opt{+\,\VE}}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

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