Elm Exactly

Rule 118dm-explist-items

Exposing ListsI⊢explist⇒I′\jdg{I}{\explist}{I'}
I⊢item1⇒I1  ⋯  I⊢itemn⇒InI⊢(item1 , ⋯ , itemn)⇒I1+⋯+In\frac{\begin{array}{c}\jdg{I}{\expitem_1}{I_1}\ \ \cdots\ \ \jdg{I}{\expitem_n}{I_n}\end{array}}{\begin{array}{c}\jdg{I}{\kw{(}\expitem_1\ \kw{,}\ \cdots\ \kw{,}\ \expitem_n\kw{)}} {I_1+\cdots+I_n}\end{array}}
(118)
Read it in its chapter·Permanent address: /standard/rules/dm-explist-items
TeX source
\defnrule[r:dm-explist-items]
  {\jdg{I}{\expitem_1}{I_1}\ \ \cdots\ \ \jdg{I}{\expitem_n}{I_n}}
  {\jdg{I}{\kw{(}\expitem_1\ \kw{,}\ \cdots\ \kw{,}\ \expitem_n\kw{)}}
     {I_1+\cdots+I_n}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

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