typing: simplify the let rule

For some reason, it was written in a really complicated way that had no
reason to be
This commit is contained in:
regnat 2017-04-21 15:25:13 +02:00
parent 25c754ccea
commit 06b84e27d7

View File

@ -41,11 +41,10 @@
\and
\inferrule{%
\forall i \in \discrete{0}{n},
\Gamma; x_i : \tau_{(1,i)}; \ldots; x_n: \tau_{(n,i)} \vdash e_i : \sigma_i \\
\forall (i,j) \in \discrete{0}{n} \times \discrete{1}{n},
\sigma_j \subtype \tau_{(i,j)}
; x_1 : _1; \ldots; x_n : _n \vdash e_i : _i
}{%
\Gamma \vdash \text{let } x_1 = e_1; \ldots{}; x_n = e_n \text{ in } e_0 : \sigma_0
\Gamma \vdash \text{let } x_1 : _1 = e_1; \ldots{}; x_n : _n = e_n
\text{ in } e_0 : _0
}
(Let)
\end{mathpar}