From 7406abfe5ace1cd321fff3b00548762def8b1fb6 Mon Sep 17 00:00:00 2001 From: Eric Zhao <21zhaoe@protonmail.com> Date: Mon, 9 Oct 2023 17:05:22 -0400 Subject: [PATCH] formalism: Move type meet in rules to premises --- formalism/marked.tex | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/formalism/marked.tex b/formalism/marked.tex index e42ab0c..3247289 100644 --- a/formalism/marked.tex +++ b/formalism/marked.tex @@ -172,9 +172,10 @@ \subsection{Unmarked expressions} \inferrule[USIf]{ \ctxAnaTypeU{\ctx}{\EMV_1}{\TBool} \\ \ctxSynTypeU{\ctx}{\EMV_2}{\TMV_1} \\ - \ctxSynTypeU{\ctx}{\EMV_3}{\TMV_2} + \ctxSynTypeU{\ctx}{\EMV_3}{\TMV_2} \\ + \TMV_3 = \TMeet{\TMV_1}{\TMV_2} }{ - \ctxSynTypeU{\ctx}{\EIf{\EMV_1}{\EMV_2}{\EMV_3}}{\TMeet{\TMV_1}{\TMV_2}} + \ctxSynTypeU{\ctx}{\EIf{\EMV_1}{\EMV_2}{\EMV_3}}{\TMV_3} } \inferrule[USPair]{ @@ -354,9 +355,10 @@ \subsection{Marking} \inferrule[MKSIf]{ \ctxAnaFixedInto{\ctx}{\EMV_1}{\ECMV_1}{\TBool} \\ \ctxSynFixedInto{\ctx}{\EMV_2}{\ECMV_2}{\TMV_1} \\ - \ctxSynFixedInto{\ctx}{\EMV_3}{\ECMV_3}{\TMV_2} + \ctxSynFixedInto{\ctx}{\EMV_3}{\ECMV_3}{\TMV_2} \\ + \TMV_3 = \TMeet{\TMV_1}{\TMV_2} }{ - \ctxSynFixedInto{\ctx}{\EIf{\EMV_1}{\EMV_2}{\EMV_3}}{\ECIf{\ECMV_1}{\ECMV_2}{\ECMV_3}}{\TMeet{\TMV_1}{\TMV_2}} + \ctxSynFixedInto{\ctx}{\EIf{\EMV_1}{\EMV_2}{\EMV_3}}{\ECIf{\ECMV_1}{\ECMV_2}{\ECMV_3}}{\TMV_3} } \inferrule[MKSInconsistentBranches]{ @@ -551,8 +553,9 @@ \subsection{Marked expressions} \ctxAnaTypeM{\ctx}{\ECMV_1}{\TBool} \\ \ctxSynTypeM{\ctx}{\ECMV_2}{\TMV_1} \\ \ctxSynTypeM{\ctx}{\ECMV_3}{\TMV_2} + \TMV_3 = \TMeet{\TMV_1}{\TMV_2} }{ - \ctxSynTypeM{\ctx}{\ECIf{\ECMV_1}{\ECMV_2}{\ECMV_3}}{\TMeet{\TMV_1}{\TMV_2}} + \ctxSynTypeM{\ctx}{\ECIf{\ECMV_1}{\ECMV_2}{\ECMV_3}}{\TMV_3} } \inferrule[MSInconsistentBranches]{