Elm Exactly

Rule 53sm-item-op

Exposing Itemsmodid,I⊢item⇒(N,N′)\jdg{\modid, I}{\expitem}{(N, N')}
op∈ops(modid)modid,I⊢(op)⇒(∅,∅)\frac{\begin{array}{c}\opv \in \smops(\modid)\end{array}}{\begin{array}{c}\jdg{\modid, I}{\kw{(}\opv\kw{)}}{(\emptyset, \emptyset)}\end{array}}
(53)
Read it in its chapter·Permanent address: /standard/rules/sm-item-op

Comments

The rule only checks that the module declares the operator, and the item binds nothing: the operators exposed to a module are those that may be used in it in infix position (Section 3.3), and the meaning of each is given by OTSTAT\OTstat (rule (4)), whatever the module imports.

TeX source
\defnrule[r:sm-item-op]
  {\opv \in \smops(\modid)}
  {\jdg{\modid, I}{\kw{(}\opv\kw{)}}{(\emptyset, \emptyset)}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

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