Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions document/core/valid/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2117,15 +2117,15 @@ Control Instructions

* The label :math:`C.\CLABELS[l]` must be defined in the context.

* The :ref:`result type <syntax-resulttype>` :math:`[t^\ast]` must be the same as :math:`C.\CLABELS[l]`.
* The :ref:`result type <syntax-resulttype>` :math:`[t^\ast]` must :ref:`match <match-resulttype>` :math:`C.\CLABELS[l]`.

* Then the catch clause is valid.

.. math::
\frac{
\expanddt(C.\CTAGS[x]) = [t^\ast] \toF []
\qquad
C.\CLABELS[l] = [t^\ast]
C \vdashresulttypematch [t^\ast] \matchesresulttype C.\CLABELS[l]
}{
C \vdashcatch \CATCH~x~l \ok
}
Expand Down Expand Up @@ -2159,13 +2159,13 @@ Control Instructions

* The label :math:`C.\CLABELS[l]` must be defined in the context.

* The :ref:`result type <syntax-resulttype>` :math:`C.\CLABELS[l]` must be empty.
* The :ref:`result type <syntax-resulttype>` :math:`[]` must :ref:`match <match-resulttype>` :math:`C.\CLABELS[l]`.

* Then the catch clause is valid.

.. math::
\frac{
C.\CLABELS[l] = []
C \vdashresulttypematch [] \matchesresulttype C.\CLABELS[l]
}{
C \vdashcatch \CATCHALL~l \ok
}
Expand Down
Loading