Elm Exactly

Rule 119dm-expitem-var

Exposing ItemsI⊢item⇒I′\jdg{I}{\expitem}{I'}
(VEofI)(var)=vI⊢var⇒{var↦v} in Interface\frac{\begin{array}{c}(\VE\of I)(\var)=v\end{array}}{\begin{array}{c}\jdg{I}{\var}{\{\var\mapsto v\}\ \text{in}\ \Interface}\end{array}}
(119)
Read it in its chapter·Permanent address: /standard/rules/dm-expitem-var

Comments

The variable is a value or a port.

TeX source
\defnrule[r:dm-expitem-var]
  {(\VE\of I)(\var)=v}
  {\jdg{I}{\var}{\{\var\mapsto v\}\ \text{in}\ \Interface}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

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