diff --git a/document/core/valid/matching.rst b/document/core/valid/matching.rst index f245bec6cd..946faa456d 100644 --- a/document/core/valid/matching.rst +++ b/document/core/valid/matching.rst @@ -56,9 +56,9 @@ A :ref:`heap type ` :math:`\heaptype_1` matches a :ref:`heap ty * Or there exists a :ref:`valid ` :ref:`heap type ` :math:`\heaptype'`, such that :math:`\heaptype_1` :ref:`matches ` :math:`\heaptype'` and :math:`\heaptype'` :ref:`matches ` :math:`\heaptype_2`. -* Or :math:`heaptype_1` is :math:`\EQT` and :math:`\heaptype_2` is :math:`\ANY`. +* Or :math:`\heaptype_1` is :math:`\EQT` and :math:`\heaptype_2` is :math:`\ANY`. -* Or :math:`\heaptype_1` is one of :math:`\I31`, :math:`\STRUCT`, or :math:`\ARRAY` and :math:`heaptype_2` is :math:`\EQT`. +* Or :math:`\heaptype_1` is one of :math:`\I31`, :math:`\STRUCT`, or :math:`\ARRAY` and :math:`\heaptype_2` is :math:`\EQT`. * Or :math:`\heaptype_1` is a :ref:`defined type ` which :ref:`expands ` to a :ref:`structure type ` and :math:`\heaptype_2` is :math:`\STRUCT`. @@ -194,7 +194,7 @@ A :ref:`heap type ` :math:`\heaptype_1` matches a :ref:`heap ty Reference Types ~~~~~~~~~~~~~~~ -A :ref:`reference type ` :math:`\REF~\NULL_1^?~heaptype_1` matches a :ref:`reference type ` :math:`\REF~\NULL_2^?~heaptype_2` if and only if: +A :ref:`reference type ` :math:`\REF~\NULL_1^?~\heaptype_1` matches a :ref:`reference type ` :math:`\REF~\NULL_2^?~\heaptype_2` if and only if: * The :ref:`heap type ` :math:`\heaptype_1` :ref:`matches ` :math:`\heaptype_2`. @@ -264,7 +264,7 @@ Instruction Types ~~~~~~~~~~~~~~~~~ Subtyping is further lifted to :ref:`instruction types `. -An :ref:`instruction type ` :math:`[t_{11}^\ast] \to_{x_1^\ast} [t_{12}^\ast]` matches a type :math:`[t_{21}^ast] \to_{x_2^\ast} [t_{22}^\ast]` if and only if: +An :ref:`instruction type ` :math:`[t_{11}^\ast] \to_{x_1^\ast} [t_{12}^\ast]` matches a type :math:`[t_{21}^\ast] \to_{x_2^\ast} [t_{22}^\ast]` if and only if: * There is a common sequence of :ref:`value types ` :math:`t^\ast` such that :math:`t_{21}^\ast` equals :math:`t^\ast~{t'_{21}}^\ast` and :math:`t_{22}^\ast` equals :math:`t^\ast~{t'_{22}}^\ast`. @@ -304,7 +304,7 @@ An :ref:`instruction type ` :math:`[t_{11}^\ast] \to_{x_1^\ast Function Types ~~~~~~~~~~~~~~ -A :ref:`function type ` :math:`[t_{11}^\ast] \toF [t_{12}^\ast]` matches a type :math:`[t_{21}^ast] \toF [t_{22}^\ast]` if and only if: +A :ref:`function type ` :math:`[t_{11}^\ast] \toF [t_{12}^\ast]` matches a type :math:`[t_{21}^\ast] \toF [t_{22}^\ast]` if and only if: * The :ref:`result type ` :math:`[t_{21}^\ast]` :ref:`matches ` :math:`[t_{11}^\ast]`.