mirror of
https://github.com/thufschmitt/tix-papers.git
synced 2024-09-11 13:00:34 +03:00
typing: add typing rule for merge
This commit is contained in:
parent
ff04f8828f
commit
bcf70bac37
@ -231,6 +231,14 @@ n\right\}$, $l_i = k_{\σ(i)}$ and $v_i \subtype w_{\σ(i)}$.
|
||||
}{%
|
||||
\Γ \vdash e_1 \orthplus e_2 : \tau \orthplus \sigma
|
||||
}
|
||||
\and
|
||||
\inferrule{%
|
||||
\Γ \vdash e_1 : \tau \\ \Γ \vdash e_2 : \σ \\
|
||||
\tau \subtype \onerec{} \\
|
||||
\sigma \subtype \onerec{}
|
||||
}{%
|
||||
\Γ \vdash e_1 + e_2 : \tau + \sigma
|
||||
}
|
||||
\end{mathpar}
|
||||
|
||||
\bibliographystyle{alpha}
|
||||
|
Loading…
Reference in New Issue
Block a user