Subst rules have to replace Types too
This commit is contained in:
parent
9dfef9db26
commit
f93914185c
@ -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}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user