Elm Exactly

Rule 22s-ty-tyvar

Type ExpressionsC⊢ty⇒τ\jdg{C}{\ty}{\tau}
tyvar=αα∈UofCC⊢tyvar⇒α\frac{\begin{array}{c}\tyvar = \alpha \premsep \alpha \in U \of C\end{array}}{\begin{array}{c}\jdg{C}{\tyvar}{\alpha}\end{array}}
(22)
Read it in its chapter·Permanent address: /standard/rules/s-ty-tyvar

Comments

Rules (22) and (23) both cover the phrase tyvar\tyvar. Since UofCU \of C is unambiguous, at most one of them applies, according to whether the variable of UofCU \of C named by tyvar\tyvar is a type variable or a row variable. A type variable that is not explicit in CC does not elaborate: every type variable of an annotation is made explicit by rule (20), and Chapter 5 makes the parameters of type declarations explicit in the same way.

Referred to from

TeX source
\defnrule[r:s-ty-tyvar]
  {\tyvar = \alpha \premsep \alpha \in U \of C}
  {\jdg{C}{\tyvar}{\alpha}}

Tests (3)

Discussions

Discuss this rule·Search the discussions on GitHub

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