Elm Exactly

Rule 17s-match

MatchesC⊢match⇒τ\jdg{C}{\match}{\tau}
C⊢mrule⇒τ⟨C⊢match⇒τ⟩C⊢mrule ⟨; match⟩⇒τ\frac{\begin{array}{c}\jdg{C}{\mrule}{\tau} \premsep \opt{\jdg{C}{\match}{\tau}}\end{array}}{\begin{array}{c}\jdg{C}{\mrule\ \opt{\kw{;}\ \match}}{\tau}\end{array}}
(17)
Read it in its chapter·Permanent address: /standard/rules/s-match
TeX source
\defnrule[r:s-match]
  {\jdg{C}{\mrule}{\tau} \premsep \opt{\jdg{C}{\match}{\tau}}}
  {\jdg{C}{\mrule\ \opt{\kw{;}\ \match}}{\tau}}

Tests (12)

Discussions

Discuss this rule·Search the discussions on GitHub

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