typing: replace interfaces by argument annotations

The return type annotation isn't really useful, so maybe we can drop it
This commit is contained in:
regnat 2017-04-25 09:04:01 +02:00
parent 75d164c873
commit 2c83cb0d5c

View File

@ -17,11 +17,11 @@
\and
\inferrule{%
\forall (\sigma \rightarrow \tau) \in \mathbb{I}, \\
\Gamma; \ofTypeP{p}{\sigma} \vdash e: \tau' \\
\tau' \subtype \tau
\forall i \in \discrete{1}{n}, \\
\Gamma; \ofTypeP{p}{\sigma_i} \vdash e: \tau_i \\
}{%
\lambda^\mathbb{I}p.e : \text{TypeOf}(\mathbb{I})
\lambda \left(p:{\bigvee\limits_{i=1}^n\σ}\right).e :
\bigwedge\limits_{i=1}^n \left(\σ \rightarrow \right)
}
(Abs)