Subst rules have to replace Types too

This commit is contained in:
Andreas Stadelmeier 2024-08-30 09:08:18 +02:00
parent 9dfef9db26
commit f93914185c

View File

@ -314,15 +314,15 @@ described in chapter \ref{sec:translation}.
}
\and
\inferrule[Subst-Param]{
\tv{a} \doteq \type{S} \\
\type{T} \doteq \exptype{C}{\type{T}_1 \ldots, \tv{a}, \ldots \type{T}_n} \\
\type{T}' \doteq \type{S} \\
\type{T} \doteq \exptype{C}{\type{T}_1 \ldots, \type{T}', \ldots \type{T}_n} \\
}{
\type{T} \doteq \exptype{C}{\type{T}_1, \ldots \type{S}, \ldots \type{T}_n}
}
\and
\inferrule[Subst-Param']{
\tv{a} \doteq \type{S} \\
\tv{b} \lessdot \exptype{C}{\type{T}_1 \ldots, \tv{a}, \ldots \type{T}_n} \\
\type{T}' \doteq \type{S} \\
\tv{b} \lessdot \exptype{C}{\type{T}_1 \ldots, \type{T}', \ldots \type{T}_n} \\
}{
\tv{b} \lessdot \exptype{C}{\type{T}_1, \ldots \type{S}, \ldots \type{T}_n}
}