-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmacros.sty
98 lines (73 loc) · 2.67 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
\DeclarePairedDelimiter{\set}{\{}{\}}
\DeclarePairedDelimiter{\pa}{(}{)}
\newcommand{\pto}{\rightharpoonup}
\newcommand{\defeq}{\coloneq}
\newcommand{\singleton}{\star}
\newcommand{\ZFC}{\mathrm{ZFC}}
\newcommand{\Nat}{\mathbb N}
%\newcommand{\lambdadot}[2]{\mathop{\lambda}{#1}\mathrel{.}#2}
\newcommand{\pcafont}{\mathtt}
\newcommand{\pcacomb}[1]{\operatorname{\mathbf{#1}}}
% \DeclareMathOperator{\kcomb}{\mathtt{\mathbf{k}}}
%\DeclareMathOperator{\scomb}{\mathbf{s}}%{\pcafont{s}}
% {\mathbf{i}}%{\textbf{\texttt{i}}}
\newcommand{\pca}[1]{\operatorname{\pcafont{#1}}}
\newcommand{\numeral}[1]{\operatorname{\overline{\pcafont{#1}}}}
\renewcommand{\AA}{\mathcal A}
\newcommand{\BB}{\mathcal B}
\newcommand{\prenum}[1]{\varphi_{#1}}
\newcommand{\Kone}{\mathcal{K}_1}
\newcommand{\Ktwo}{\mathcal{K}_2}
\newcommand{\Ktworec}{\Ktwo^\textup{rec}}
\newcommand{\var}{}
\newcommand{\lambdapca}[2]{\langle{\var{#1}}\rangle.\,{#2}}
\newcommand{\Var}[1]{\mathcal{V}(#1)}
\newcommand{\kcomb}{\pcacomb{K}}
\newcommand{\scomb}{\pcacomb{S}}
\newcommand{\icomb}{\pcacomb{I}}
\newcommand{\pcatrue}{\pcacomb{true}}
\newcommand{\pcafalse}{\pcacomb{false}}
\newcommand{\pcaif}{\pcacomb{if}}
\newcommand{\pcapair}{\pcacomb{pair}}
\newcommand{\pcafst}{\pcacomb{fst}}
\newcommand{\pcasnd}{\pcacomb{snd}}
\newcommand{\pcaleft}{\pcacomb{left}}
\newcommand{\pcaright}{\pcacomb{right}}
\newcommand{\pcay}{\pcacomb{Y}}
\newcommand{\pcaw}{\pcacomb{W}}
\newcommand{\pcaz}{\pcacomb{Z}}
\newcommand{\pcau}{\pcacomb{U}}
\newcommand{\pcaiszero}{\pcacomb{iszero}}
\newcommand{\pcasucc}{\pcacomb{succ}}
\newcommand{\pcapred}{\pcacomb{pred}}
\newcommand{\pcarec}{\pcacomb{primrec}}
\newcommand{\powerset}{\mathcal P}
\newcommand{\PN}{\powerset(\Nat)}
\newcommand{\Scott}{\mathcal S}
\newcommand{\Scottre}{\Scott^\textup{re}}
\newcommand{\enum}{\operatorname{enum}}
\DeclarePairedDelimiter{\pairing}{[}{]}
\newcommand{\inputnum}{n_{\operatorname{in}}}
\newcommand{\outputnum}{n_{\operatorname{out}}}
\newcommand{\realizes}{\Vdash}
\newcommand{\catfont}{\mathsf}
\newcommand{\Set}{\catfont{Set}}
\newcommand{\Asm}[1]{\catfont{Asm}_{#1}}
\DeclarePairedDelimiter{\carrier}{|}{|}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\inl}{inl}
\DeclareMathOperator{\inr}{inr}
\newcommand{\Zero}{\mathbf 0}
\newcommand{\One}{\mathbf 1}
\newcommand{\Two}{\mathbf 2}
\newcommand{\NatAsm}{\mathbf N}
\DeclareMathOperator{\im}{im}
\DeclarePairedDelimiter{\sem}{\llbracket}{\rrbracket}
% Tikz
\newcommand*{\pbcorner}[1][dr]{\ar[#1,phantom,"\lrcorner" , very near start]}
\newcommand{\PA}{\powerset(\AA)}
\newcommand{\predleq}{\preceq}
\newcommand{\realpred}{\mathbb P}
\newcommand{\CC}{\mathsf{C}}
\newcommand{\CE}{\mathsf{CE}}
\DeclareMathOperator{\Mono}{Mono}