forked from ppolesiuk/type-systems-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.sty
44 lines (32 loc) · 1.18 KB
/
macros.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theorems, lemmas, and definitions
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{defin}[theorem]{Definition}
% Enumeration in theorems and definitions
\newenvironment{thmenumerate}
{\begin{enumerate}[label=(\roman*),itemsep=0pt]}
{\end{enumerate}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Typesetting conventions for different objects
% Sets of all elements in one syntactic category
\newcommand\syncatset[1]{\mathsf{#1}}
% Sets of all elements in one semantic category
\newcommand\semcatset[1]{\textbf{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definitions used across multiple chapters
% Identity function
\newcommand\id{\mathsf{id}}
% Partial map arrow
\newcommand\partialmap{\hookrightarrow}
% Domain
\newcommand\dom{\mathsf{dom}}
% Denotation
\newcommand\Denot[1]{\llbracket#1\rrbracket}
% Type safety
\newcommand\rawSafe{\mathsf{Safe}}
\newcommand\Safe[1]{\rawSafe(#1)}
% Observation (in biorthogonal LR)
\newcommand\Obs{\mathsf{Obs}}