Elm Exactly

Rule 27s-ty-tuple

Type ExpressionsC⊢ty⇒τ\jdg{C}{\ty}{\tau}
C⊢tyi⇒τi(1≤i≤k)C⊢( ty1, ⋯, tyk )⇒(τ1,⋯ ,τk)Tuplek\frac{\begin{array}{c}\jdg{C}{\ty_i}{\tau_i} \quad (1 \le i \le k)\end{array}}{\begin{array}{c}\jdg{C}{\kw{(}\,\ty_1\kw{,}\ \cdots\kw{,}\ \ty_k\,\kw{)}}{(\tau_1, \cdots, \tau_k)\tTuple{k}}\end{array}}
(27)
Read it in its chapter·Permanent address: /standard/rules/s-ty-tuple

Comments

By the grammar kk is 2 or 3.

TeX source
\defnrule[r:s-ty-tuple]
  {\jdg{C}{\ty_i}{\tau_i} \quad (1 \le i \le k)}
  {\jdg{C}{\kw{(}\,\ty_1\kw{,}\ \cdots\kw{,}\ \ty_k\,\kw{)}}{(\tau_1, \cdots, \tau_k)\tTuple{k}}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

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