Elm Exactly

Rule 6s-atexp-tuple

Atomic ExpressionsC⊢atexp⇒τ\jdg{C}{\atexp}{\tau}
C⊢expi⇒τi(1≤i≤k)C⊢( exp1, ⋯, expk )⇒(τ1,⋯ ,τk)Tuplek\frac{\begin{array}{c}\jdg{C}{\expm_i}{\tau_i} \quad (1 \le i \le k)\end{array}}{\begin{array}{c}\jdg{C}{\kw{(}\,\expm_1\kw{,}\ \cdots\kw{,}\ \expm_k\,\kw{)}}{(\tau_1, \cdots, \tau_k)\tTuple{k}}\end{array}}
(6)
Read it in its chapter·Permanent address: /standard/rules/s-atexp-tuple

Comments

By the grammar kk is 2 or 3.

TeX source
\defnrule[r:s-atexp-tuple]
  {\jdg{C}{\expm_i}{\tau_i} \quad (1 \le i \le k)}
  {\jdg{C}{\kw{(}\,\expm_1\kw{,}\ \cdots\kw{,}\ \expm_k\,\kw{)}}{(\tau_1, \cdots, \tau_k)\tTuple{k}}}

Tests (19)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:s-atexp-tuple] 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.