-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpicommands.tex
executable file
·84 lines (79 loc) · 1.92 KB
/
picommands.tex
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
%pi-calc commands
\newcommand{\picalc}{%
\texorpdfstring{$\pi$}{pi}-calculus}
% \newcommand{\HUGE}{\fontsize{43}{54}\selectfont}
% \newcommand{\PICALC}{%
% \texorpdfstring{{\Huge{$\pi$}}}{pi}-Calculus\ %
% }
\newcommand{\exports}[1]{%
\ensuremath{({#1})}%
}
\newcommand{\Picalc}{%
\texorpdfstring{$\pi$}{pi}-Calculus}
\newcommand{\send}[2]{%
\ensuremath{{#1}!\langle{#2}\rangle}%
}
\newcommand{\sends}[2]{%
\ensuremath{{#1}!{#2}}%
}
\newcommand{\ssend}[2]{%
\ensuremath{{#1}!\langle{#2}\rangle.}%
}
\newcommand{\receives}[2]{%
\ensuremath{{#1}?{#2}}%
}
\newcommand{\receive}[2]{%
\ensuremath{{#1}?({#2}).}%
}
\newcommand{\receivenodot}[2]{%
\ensuremath{{#1}?({#2})}%
}
\newcommand{\new}[1]{%
\ensuremath{\text{new}({#1}).}%
}
\newcommand{\pif}[1]{%
\ensuremath{\text{if } {#1}}%
}
\newcommand{\pthen}{%
\ensuremath{\text{ then }}%
}
\newcommand{\pelse}{%
\ensuremath{\text{ else }}%
}
\newcommand{\ptrue}{%
\ensuremath{\text{\emph{true}}}%
}
\newcommand{\pfalse}{%
\ensuremath{\text{\emph{false}}}%
}
\newcommand{\pretry}{%
\ensuremath{\text{\emph{retry}}}%
}
\newcommand{\pstop}{%
\ensuremath{\mbox{\emph{stop}}}%
}
\newcommand{\comp}{%
\ensuremath{\ |\ }%
}
\newcommand{\tuple}[1]{%
\ensuremath{\overline{#1}}%
}
\newcommand{\rec}[1]{%
\ensuremath{\text{rec }{#1}.}%
}
\newcommand{\defequals}{%
\ensuremath{\overset{\mbox{\tiny{def}}}{=}}%
}
\newcommand{\encode}[1]{%
\ensuremath{\llbracket{#1}\rrbracket}%
}
\newcommand{\subst}[2]{%
\ensuremath{\llbracket \nicefrac{#1}{#2}\rrbracket}%
}
\newcommand{\pdef}{\ensuremath{\Leftarrow}\ }
\newcommand{\sys}[1]{\ensuremath{\mathbb{#1}}}
\newcommand{\sequiv}{\ensuremath{\equiv}}
\newcommand{\pred}{\ensuremath{\longrightarrow}}
\newcommand{\evolves}[1]{\ensuremath{\overset{\underrightarrow{\ {#1}\ }}{}}}
\newcommand{\preds}{\ensuremath{\cdotp\!\cdotp\!\cdotp\!\longrightarrow}}
%end pi-calc commands