typing: fix inference rule for orthogonal merge

This commit is contained in:
regnat 2017-04-04 09:42:16 +02:00
parent 70dd7ff090
commit dd2b96102f

View File

@ -18,9 +18,11 @@
\newcommand{\quasiconst}{\twoheadrightarrow}
\DeclareMathOperator\dom{dom}
\newcommand{\orthsum}{\oplus^\bot}
\newcommand{\subtype}{\leq}
\newcommand{}{\Gamma}
\newcommand{}{\tau}
\newcommand{\σ}{\sigma}
\title{Typing of records in nix}
\author{Théophane Hufschmitt}
@ -151,9 +153,11 @@ is syntactic sugar for
}
\and
\inferrule{%
\vdash e_1 : _1 \\ \vdash e_2 : _2 \\ _1 \orthsum_\undef _2
\vdash e_1 : _1 \\ \vdash e_2 : _2 \\%
_1 \subtype \σ_1 \\ _2 \subtype \σ_2 \\
\\ \σ_1 \orthsum_\undef \σ_2
}{%
\vdash e_1 \orthsum_\undef e_2 : _1 \orthsum_\undef _2
\vdash e_1 \orthsum_\undef e_2 : \σ_1 \orthsum_\undef \σ_2
}
\end{mathpar}