Elm Exactly

Rule 31s-tyrow

Type-expression RowsC⊢tyrow⇒ϱ\jdg{C}{\tyrow}{\varrho}
C⊢ty⇒τ⟨C⊢tyrow⇒ϱ⟩C⊢lab : ty ⟨, tyrow⟩⇒{lab↦τ}⟨+ϱ⟩\frac{\begin{array}{c}\jdg{C}{\ty}{\tau} \premsep \opt{\jdg{C}{\tyrow}{\varrho}}\end{array}}{\begin{array}{c}\jdg{C}{\lab\ \kw{:}\ \ty\ \opt{\kw{,}\ \tyrow}}{\{\lab \mapsto \tau\}\opt{{}+\varrho}}\end{array}}
(31)
Read it in its chapter·Permanent address: /standard/rules/s-tyrow

Comments

The syntactic restrictions ensure lab∉Dom ϱ\lab \notin \Dom\varrho.

TeX source
\defnrule[r:s-tyrow]
  {\jdg{C}{\ty}{\tau} \premsep \opt{\jdg{C}{\tyrow}{\varrho}}}
  {\jdg{C}{\lab\ \kw{:}\ \ty\ \opt{\kw{,}\ \tyrow}}{\{\lab \mapsto \tau\}\opt{{}+\varrho}}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

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