Skip to content

Commit

Permalink
Merge pull request #108 from takikawa/fix-local-type
Browse files Browse the repository at this point in the history
Fix a few minor issues in local validation rules
  • Loading branch information
rossberg authored Oct 31, 2023
2 parents 40f820b + 268b9c4 commit 959a618
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions document/core/util/macros.def
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
.. |MVAR| mathdef:: \xref{syntax/types}{syntax-mut}{\K{var}}
.. |MCONST| mathdef:: \xref{syntax/types}{syntax-mut}{\K{const}}

.. |SET| mathdef:: \xref{syntax/types}{syntax-init}{\mathrel{\mbox{set}}}
.. |UNSET| mathdef:: \xref{syntax/types}{syntax-init}{\mathrel{\mbox{unset}}}
.. |SET| mathdef:: \xref{syntax/types}{syntax-init}{\K{set}}
.. |UNSET| mathdef:: \xref{syntax/types}{syntax-init}{\K{unset}}

.. |LMIN| mathdef:: \xref{syntax/types}{syntax-limits}{\K{min}}
.. |LMAX| mathdef:: \xref{syntax/types}{syntax-limits}{\K{max}}
Expand Down
8 changes: 4 additions & 4 deletions document/core/valid/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ Functions :math:`\func` are classified by :ref:`type indices <syntax-typeidx>` r
\frac{
C.\CTYPES[x] = [t_1^\ast] \toF [t_2^\ast]
\qquad
(C \vdashlocal t : \init~t)^\ast
(C \vdashlocal \{\LTYPE~t\} : \init~t)^\ast
\qquad
C,\CLOCALS\,(\SET~t_1)^\ast~(\init~t)^\ast,\CLABELS~[t_2^\ast],\CRETURN~[t_2^\ast] \vdashexpr \expr : [t_2^\ast]
}{
C \vdashfunc \{ \FTYPE~x, \FLOCALS~t^\ast, \FBODY~\expr \} : x
C \vdashfunc \{ \FTYPE~x, \FLOCALS~\{\LTYPE~t\}^\ast, \FBODY~\expr \} : x
}
Expand Down Expand Up @@ -85,14 +85,14 @@ Locals
\qquad
C \vdashvaltypedefaultable t \defaultable
}{
C \vdashlocal \{ \LTYPE~t \} : \SET~t \ok
C \vdashlocal \{ \LTYPE~t \} : \SET~t
}
.. math::
\frac{
C \vdashvaltype t \ok
}{
C \vdashlocal \{ LTYPE~t \} : \UNSET~t \ok
C \vdashlocal \{ \LTYPE~t \} : \UNSET~t
}
.. note::
Expand Down

0 comments on commit 959a618

Please sign in to comment.