Elm Exactly

Rule 16s-exp-case

ExpressionsC⊢exp⇒τ\jdg{C}{\expm}{\tau}
C⊢exp⇒τC⊢match⇒τ→τ′C⊢case exp of match⇒τ′\frac{\begin{array}{c}\jdg{C}{\expm}{\tau} \premsep \jdg{C}{\match}{\tau \rightarrow \tau'}\end{array}}{\begin{array}{c}\jdg{C}{\kw{case}\ \expm\ \kw{of}\ \match}{\tau'}\end{array}}
(16)
Read it in its chapter·Permanent address: /standard/rules/s-exp-case
TeX source
\defnrule[r:s-exp-case]
  {\jdg{C}{\expm}{\tau} \premsep \jdg{C}{\match}{\tau \rightarrow \tau'}}
  {\jdg{C}{\kw{case}\ \expm\ \kw{of}\ \match}{\tau'}}

Tests (11)

Discussions

Discuss this rule·Search the discussions on GitHub

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