diff --git a/document/core/exec/values.rst b/document/core/exec/values.rst index e0fd90e2..17c68e10 100644 --- a/document/core/exec/values.rst +++ b/document/core/exec/values.rst @@ -83,6 +83,26 @@ The following auxiliary typing rules specify this typing relation relative to a S \vdashval \REFEXTERNADDR~a : (\REF~\EXTERN) } +Subsumption +........... + +* The value must be valid with some value type :math:`t`. + +* The value type :math:`t` :ref:`matches ` another :ref:`valid ` type :math:`t'`. + +* Then the value is valid with type :math:`t'`. + +.. math:: + \frac{ + S \vdashval \val : t + \qquad + \vdashvaltype t' \ok + \qquad + \vdashvaltypematch t \matchesvaltype t' + }{ + S \vdashval \val : t' + } + .. index:: external value, external type, validation, import, store diff --git a/document/core/valid/matching.rst b/document/core/valid/matching.rst index e6fededd..ff107246 100644 --- a/document/core/valid/matching.rst +++ b/document/core/valid/matching.rst @@ -54,7 +54,7 @@ A :ref:`heap type ` :math:`\heaptype_1` matches a :ref:`heap ty * Either both :math:`\heaptype_1` and :math:`\heaptype_2` are the same. -* Or :math:`\heaptype_1` is a :ref:`function type ` and :math:`\heaptype_2` is :math:`FUNC`. +* Or :math:`\heaptype_1` is a :ref:`function type ` and :math:`\heaptype_2` is :math:`\FUNC`. * Or :math:`\heaptype_1` is a :ref:`function type ` :math:`\functype_1` and :math:`\heaptype_2` is a :ref:`function type ` :math:`\functype_2`, and :math:`\functype_1` :ref:`matches ` :math:`\functype_2`.