Elm Exactly

Rule 120dm-expitem-op

Exposing ItemsI⊢item⇒I′\jdg{I}{\expitem}{I'}
I⊢(op)⇒(∅,{},{})\frac{\begin{array}{c}\end{array}}{\begin{array}{c}\jdg{I}{\kw{(}\opv\kw{)}}{(\emptyset,\emptymap,\emptymap)}\end{array}}
(120)
Read it in its chapter·Permanent address: /standard/rules/dm-expitem-op

Comments

An operator is not in the domain of a value environment: its value is given by the operator table OTDYN\OTdyn, and is the same in every module (rule (68)). Exposing or importing an operator therefore binds nothing.

TeX source
\defnrule[r:dm-expitem-op]
  {}
  {\jdg{I}{\kw{(}\opv\kw{)}}{(\emptyset,\emptymap,\emptymap)}}

Tests (1)

  • elm / ImportOperatorItemTest
    Importing an operator by name checks that the module has it, and binds nothing new.

Discussions

Discuss this rule·Search the discussions on GitHub

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