setup.tex 13.2 KB
Newer Older
1 2 3 4 5 6

\makeatletter%
\@ifundefined{basedir}{%
\newcommand\basedir{}%
}{}%
\makeatother%
7
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ralf Jung's avatar
Ralf Jung committed
8
%% PACKAGES
9
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10

11 12 13 14 15 16 17
\usepackage{mathtools}
%\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{stmaryrd}

18
\usepackage{\basedir mathpartir}
19

20 21
\usepackage{array}
\usepackage{tabu}
22 23

\usepackage{dashbox}
Ralf Jung's avatar
Ralf Jung committed
24
\usepackage{tensor}
25

26
\usepackage{\basedir pftools}
27 28 29 30

\usepackage{xcolor}  % for print version

\usepackage{graphicx}
31 32 33 34 35 36 37 38 39 40 41 42
\usepackage{tikz}
\usepackage{scalerel}

\usepackage{rotating}
\usepackage{xparse}
\usepackage{xstring}
\usepackage{semantic}
\usepackage{csquotes}

\usepackage{hyperref}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ralf Jung's avatar
Ralf Jung committed
43
%% SETUP
44
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45
\SetSymbolFont{stmry}{bold}{U}{stmry}{m}{n} % this fixes warnings when \boldsymbol is used with stmaryrd included
46 47 48 49 50 51 52 53 54 55

\extrarowheight=\jot	% else, arrays are scrunched compared to, say, aligned
\newcolumntype{.}{@{}}
% Array {rMcMl} modifies array {rcl}, putting mathrel-style spacing
% around the centered column. (We used this, for example, in laying
% out some of Iris' axioms. Generally, aligned is simpler but aligned
% does not work in mathpar because \\ inherits mathpar's 2em vskip.)
% The capital M stands for THICKMuskip. The smaller medmuskip would be
% right for mathbin-style spacing.
\newcolumntype{M}{@{\mskip\thickmuskip}}
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

\definecolor{StringRed}{rgb}{.637,0.082,0.082}
\definecolor{CommentGreen}{rgb}{0.0,0.55,0.3}
\definecolor{KeywordBlue}{rgb}{0.0,0.3,0.55}
\definecolor{LinkColor}{rgb}{0.55,0.0,0.3}
\definecolor{CiteColor}{rgb}{0.55,0.0,0.3}
\definecolor{HighlightColor}{rgb}{0.0,0.0,0.0}

\usetikzlibrary{shapes}
%\usetikzlibrary{snakes}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\tikzstyle{state}=[circle, draw, minimum size=1.2cm, align=center]
\tikzstyle{trans}=[arrows={->[scale=1.4]}]

\tikzstyle{layer}=[rounded corners=2pt, thin, align=center, draw, minimum width=4.2cm,minimum height=0.8cm]

\definecolor{grey}{rgb}{0.5,0.5,0.5}
\definecolor{red}{rgb}{1,0,0}

77 78 79 80 81 82 83 84 85
\hypersetup{%
  linktocpage=true, pdfstartview=FitV,
  breaklinks=true, pageanchor=true, pdfpagemode=UseOutlines,
  plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=3,
  hypertexnames=true, pdfhighlight=/O,
  colorlinks=true,linkcolor=LinkColor,citecolor=CiteColor,
  urlcolor=LinkColor
}

86 87 88 89 90 91 92 93 94 95 96 97

%\theoremstyle{definition}
%\newtheorem{prop}{Prop}
\newtheorem{defn}{Definition}
\newtheorem{cor}{Corollary}
\newtheorem{conj}{Conj}
\newtheorem{lem}{Lemma}
\newtheorem{thm}{Theorem}

\newtheorem{exercise}{Exercise}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ralf Jung's avatar
Ralf Jung committed
98
%% GENERIC MACROS
99
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
100 101 102 103 104 105 106 107 108
\newcommand*{\Sref}[1]{\hyperref[#1]{\S\ref*{#1}}}
\newcommand*{\secref}[1]{\hyperref[#1]{Section~\ref*{#1}}}
\newcommand*{\lemref}[1]{\hyperref[#1]{Lemma~\ref*{#1}}}
\newcommand{\corref}[1]{\hyperref[#1]{Cor.~\ref*{#1}}}
\newcommand*{\defref}[1]{\hyperref[#1]{Definition~\ref*{#1}}}
\newcommand*{\egref}[1]{\hyperref[#1]{Example~\ref*{#1}}}
\newcommand*{\appendixref}[1]{\hyperref[#1]{Appendix~\ref*{#1}}}
\newcommand*{\figref}[1]{\hyperref[#1]{Figure~\ref*{#1}}}
\newcommand*{\tabref}[1]{\hyperref[#1]{Table~\ref*{#1}}}
109 110 111 112 113

\newcommand{\changes}{{\bf\color{red}{Changes}}}
\newcommand{\TODO}{\vskip 4pt {\color{red}\bf TODO}}


Ralf Jung's avatar
Ralf Jung committed
114 115 116 117
\newcommand{\ie}{\emph{i.e.,} }
\newcommand{\eg}{\emph{e.g.,} }
\newcommand{\etal}{\emph{et~al.}}
\newcommand{\wrt}{w.r.t.~}
118

Ralf Jung's avatar
Ralf Jung committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
\newcommand{\aaron}[1]{{\color{red}\textbf{AT: #1}}}
\newcommand{\derek}[1]{{\color{red}\textbf{DD: #1}}}
\newcommand{\lars}[1]{{\color{red}\textbf{LB: #1}}}
\newcommand{\kasper}[1]{{\color{red}\textbf{KS: #1}}}
\newcommand{\ralf}[1]{{\color{red}\textbf{RJ: #1}}}
\newcommand{\dave}[1]{{\color{red}\textbf{PDS: #1}}}
\newcommand{\hush}[1]{}
\newcommand{\relaxguys}{%
	\let\aaron\hush%
	\let\derek\hush%
	\let\lars\hush%
	\let\kasper\hush%
	\let\ralf\hush%
	\let\dave\hush%
}
134

Ralf Jung's avatar
Ralf Jung committed
135 136 137
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MATH SYMBOLS & NOTATION & IDENTIFIERS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
138 139


Ralf Jung's avatar
Ralf Jung committed
140 141 142 143 144 145 146
\DeclareMathOperator*{\Sep}{\scalerel*{\ast}{\sum}}
\newcommand{\bigast}{\Sep}

\newcommand*{\sep}[1][]{\mathrel{\#_{#1}}}	% bad name; it's a different "sep"

\newcommand{\ALT}{\ |\ }

Ralf Jung's avatar
Ralf Jung committed
147
\newcommand\dplus{\mathbin{+\kern-1.0ex+}}
148 149

\newcommand{\upclose}{\mathord{\uparrow}}
150

Ralf Jung's avatar
Ralf Jung committed
151 152 153 154 155
\newcommand{\spac}{\;} % a space

\def\All #1.{\forall #1.\spac}%
\def\Exists #1.{\exists #1.\spac}%
\def\Ret #1.{#1.\spac}%
156

Ralf Jung's avatar
Ralf Jung committed
157 158
\newcommand{\any}{{\rule[-.2ex]{1ex}{.4pt}}}%
\newcommand{\unitval}{()}%
159

Ralf Jung's avatar
Ralf Jung committed
160
\newcommand{\judgment}[2]{\paragraph{#1}\hspace{\stretch{1}}\fbox{$#2$}}
161

Ralf Jung's avatar
Ralf Jung committed
162
\newcommand{\pfn}{\rightharpoonup}
Ralf Jung's avatar
Ralf Jung committed
163
\newcommand\fpfn{}%\xrightharpoonup{\kern-0.25ex\textrm{fin}\kern-0.25ex}}
Ralf Jung's avatar
Ralf Jung committed
164 165 166
\newcommand{\ra}{\rightarrow}
\newcommand{\Ra}{\Rightarrow}
\newcommand{\Lra}{\Leftrightarrow}
Ralf Jung's avatar
Ralf Jung committed
167
\newcommand\monra{}%\xrightarrow{\kern-0.25ex\textrm{mon}\kern-0.25ex}}
168

Ralf Jung's avatar
Ralf Jung committed
169
\newcommand{\eqdef}{\triangleq}
170

Ralf Jung's avatar
Ralf Jung committed
171 172 173
\newcommand{\restr}[2]{\lfloor #1 \rfloor_{#2}}
\newcommand{\pset}[1]{\wp(#1)} % Powerset
\newcommand{\psetdown}[1]{\wp^\downarrow(#1)}
174

Ralf Jung's avatar
Ralf Jung committed
175 176 177
\newcommand{\dom}{\mathrm{dom}}
\newcommand{\cod}{\mathrm{cod}}
\newcommand{\chain}{\mathrm{chain}}
178

Ralf Jung's avatar
Ralf Jung committed
179 180
\newcommand{\IF}{\mathrel{\text{if}}}
\newcommand{\WHEN}{\textrm{when }}
181

Ralf Jung's avatar
Ralf Jung committed
182 183
\newcommand*\setComp[2]{\left\{#1\spac\middle|\spac#2\right\}}
\newcommand*\set[1]{\left\{#1\right\}}
184

Ralf Jung's avatar
Ralf Jung committed
185 186 187 188 189
\newenvironment{inbox}[1][]{
  \begin{array}[#1]{@{}l@{}}
}{
  \end{array}
}
190

Ralf Jung's avatar
Ralf Jung committed
191 192 193 194 195
\newcommand{\tabubox}[2][]{%
  \begin{tabu}{@{#1}X[1,l,m]@{}}%
    #2 %
  \end{tabu}%
}
196

Ralf Jung's avatar
Ralf Jung committed
197
\newcommand{\Func}{F} % functor
Ralf Jung's avatar
Ralf Jung committed
198 199 200 201

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MODEL-SPECIFIC SYMBOLS & NOTATION & IDENTIFIERS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
202
\newcommand{\textdom}[1]{\textit{#1}}
Ralf Jung's avatar
Ralf Jung committed
203 204

\newcommand{\wIso}{\xi}
205

Ralf Jung's avatar
Ralf Jung committed
206 207
\newcommand{\rs}{r}
\newcommand{\rsB}{s}
208

Ralf Jung's avatar
Ralf Jung committed
209
\newcommand{\pres}{\pi}
210
\newcommand{\wld}{w}
Ralf Jung's avatar
Ralf Jung committed
211
\newcommand{\ghostRes}{g}
212

Ralf Jung's avatar
Ralf Jung committed
213 214
%% Various pieces of syntax
\newcommand{\fullSat}[4]{#1 \models_{#2} #3; #4}
215

Ralf Jung's avatar
Ralf Jung committed
216
\newcommand{\wtt}[2]{#1 : #2} % well-typed term
217

Ralf Jung's avatar
Ralf Jung committed
218 219 220 221 222
\newcommand{\nequiv}[1]{\ensuremath{\mathrel{\stackrel{#1}{=}}}}
\newcommand{\notnequiv}[1]{\ensuremath{\mathrel{\stackrel{#1}{\neq}}}}
\newcommand{\nequivset}[2]{\ensuremath{\mathrel{\stackrel{#1}{=}_{#2}}}}
\newcommand{\nequivB}[1]{\ensuremath{\mathrel{\stackrel{#1}{\equiv}}}}
\newcommand{\latert}{\mathord{\blacktriangleright}}
223

Ralf Jung's avatar
Ralf Jung committed
224
\newcommand{\Sem}[1]{\llbracket #1 \rrbracket}
225

Ralf Jung's avatar
Ralf Jung committed
226 227
\newcommand{\sembox}[1]{\hfill \normalfont \mbox{\fbox{\(#1\)}}}
\newcommand{\typedsection}[2]{\subsubsection*{\rm\em #1 \sembox{#2}}}
228 229


Ralf Jung's avatar
Ralf Jung committed
230 231 232
%% Some commonly used identifiers
\newcommand{\UPred}{\textdom{UPred}}
\newcommand{\SPred}{\textdom{SPred}}
233

Ralf Jung's avatar
Ralf Jung committed
234 235
\newcommand{\PropDom}{\textdom{Prop}}
\newcommand{\PredDom}{\textdom{Pred}}
236

Ralf Jung's avatar
Ralf Jung committed
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
\newcommand{\COFEs}{\mathcal{U}} % category of COFEs
\newcommand{\iFunc}{\Sigma}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CMRA (RESOURCE ALGEBRA) SYMBOLS & NOTATION & IDENTIFIERS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\textmon}[1]{\textsc{#1}}

\newcommand{\monoid}{M}
\newcommand{\mval}{V}

\newcommand{\melt}{a}
\newcommand{\meltB}{b}
\newcommand{\meltC}{c}
\newcommand{\melts}{A}
\newcommand{\meltsB}{B}

\newcommand{\mcar}[1]{|#1|}
\newcommand{\mcarp}[1]{\mcar{#1}^{+}}
\newcommand{\munit}{\mathord{\varepsilon}}
\newcommand{\mtimes}{\mathbin{\cdot}}
\newcommand{\mdiv}{\mathbin{\div}}

\newcommand{\mupd}{\rightsquigarrow}
\newcommand{\mincl}[1]{\ensuremath{\mathrel{\stackrel{#1}{\leq}}}}

\newcommand{\CMRAs}{\mathcal{R}} % category of CMRAs
Ralf Jung's avatar
Ralf Jung committed
266 267 268 269

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LOGIC SYMBOLS & NOTATION & IDENTIFIERS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
270 271
\newcommand{\textlog}[1]{\textsf{#1}}
\newcommand{\textsort}[1]{\textlog{#1}}
Ralf Jung's avatar
Ralf Jung committed
272

273
\newcommand{\Sig}{\mathcal{S}}
274 275
\newcommand{\SigType}{\mathcal{T}}
\newcommand{\SigFn}{\mathcal{F}}
Ralf Jung's avatar
Ralf Jung committed
276 277
\newcommand{\SigAx}{\mathcal{A}}
\newcommand{\sigtype}{T}
278
\newcommand{\sigfn}{F}
Ralf Jung's avatar
Ralf Jung committed
279
\newcommand{\sigax}{A}
280

Ralf Jung's avatar
Ralf Jung committed
281
\newcommand{\type}{\tau}
282

Ralf Jung's avatar
Ralf Jung committed
283 284 285
\newcommand{\var}{x}
\newcommand{\varB}{y}
\newcommand{\varC}{z}
286

Ralf Jung's avatar
Ralf Jung committed
287 288 289
\newcommand{\term}{t}
\newcommand{\termB}{u}
\newcommand{\termVal}{V}
290

Ralf Jung's avatar
Ralf Jung committed
291 292
\newcommand{\vctx}{\Gamma}
\newcommand{\pfctx}{\Theta}
293

Ralf Jung's avatar
Ralf Jung committed
294 295 296
\newcommand{\prop}{P}
\newcommand{\propB}{Q}
\newcommand{\propC}{R}
297

Ralf Jung's avatar
Ralf Jung committed
298 299 300
\newcommand{\pred}{\varphi}
\newcommand{\predB}{\psi}
\newcommand{\predC}{\zeta}
301

Ralf Jung's avatar
Ralf Jung committed
302 303 304
\newcommand{\gname}{\gamma}
\newcommand{\iname}{\iota}
\newcommand{\inameB}{\iota'}
305

Ralf Jung's avatar
Ralf Jung committed
306
\newcommand{\mask}{\mathcal{E}}
307
\newcommand{\namesp}{\mathcal{N}}
308

Ralf Jung's avatar
Ralf Jung committed
309
%% various pieces of Syntax
310 311
\newcommand{\unitsort}{1}%	\unit is bold.

Ralf Jung's avatar
Ralf Jung committed
312 313
\def\MU #1.{\mu #1.\spac}%
\def\Lam #1.{\lambda #1.\spac}%
314

Ralf Jung's avatar
Ralf Jung committed
315
\newcommand{\proves}{\vdash}
316

Ralf Jung's avatar
Ralf Jung committed
317
\newcommand{\wand}{\;{{\mbox{---}}\!\!{*}}\;}
318

Ralf Jung's avatar
Ralf Jung committed
319 320
% oh my... I have to wrap the "-" in a \mathrm, otherwise all hell breaks lose...
\newcommand{\fmapsto}[1][\mathrm{-}]{\xmapsto{#1}}
Ralf Jung's avatar
Ralf Jung committed
321
\newcommand{\gmapsto}{\hookrightarrow}%
Ralf Jung's avatar
Ralf Jung committed
322
\newcommand{\fgmapsto}[1][\mathrm{-}]{\xhookrightarrow{#1}}%
323

Ralf Jung's avatar
Ralf Jung committed
324 325
\NewDocumentCommand\wpre{m m O{}}%
  {{#1} \spac \prescript{}{#3}{\kern-0.2ex\{#2\}}}
326

Ralf Jung's avatar
Ralf Jung committed
327 328
\newcommand{\later}{\mathord{\triangleright}}
\newcommand{\always}{\Box{}}
329

Ralf Jung's avatar
Ralf Jung committed
330
%% Invariants and Ghost ownership
331 332 333 334 335 336 337 338 339 340 341 342 343 344
% PDS: Was 0pt inner, 2pt outer.
% \boxedassert [tikzoptions] contents [name]
\tikzstyle{boxedassert_border} = [sharp corners,line width=0.2pt]
\NewDocumentCommand \boxedassert {O{} m o}{%
	\tikz[baseline=(m.base)]{
		%	  \node[rectangle, draw,inner sep=0.8pt,anchor=base,#1] (m) {${#2}\mathstrut$};
		\node[rectangle,inner sep=0.8pt,outer sep=0.2pt,anchor=base] (m) {${#2}\mathstrut$};
		\draw[#1,boxedassert_border] ($(m.south west) + (0,0.65pt)$) rectangle ($(m.north east) + (0, 0.7pt)$);
	}\IfNoValueF{#3}{^{\,#3}}%
}
\newcommand*{\knowInv}[2]{\boxedassert{#2}[#1]}
\newcommand*{\ownGhost}[2]{\boxedassert[densely dashed]{#2}[#1]}
\newcommand*{\ownGGhost}[1]{\boxedassert[densely dashed]{#1}}

Ralf Jung's avatar
Ralf Jung committed
345
\newcommand{\ownPhys}[1]{\textlog{Phy}(#1)}
346

Ralf Jung's avatar
Ralf Jung committed
347
%% View Shifts
348 349 350 351 352 353 354
\NewDocumentCommand \vsGen {O{} m O{}}%
  {\mathrel{%
    \ifthenelse{\equal{#3}{}}{%
      % Just one mask, or none
      {#2}_{#1}%
    }{%
      % Two masks
Ralf Jung's avatar
Ralf Jung committed
355
      \tensor*[^{#1}]{#2}{^{#3}}
356 357 358 359 360 361
    }%
  }}%
\NewDocumentCommand \vs {O{} O{}} {\vsGen[#1]{\Rrightarrow}[#2]}
\NewDocumentCommand \vsL {O{} O{}} {\vsGen[#1]{\Lleftarrow}[#2]}
\NewDocumentCommand \vsE {O{} O{}} %
  {\vsGen[#1]{\Lleftarrow\!\!\!\Rrightarrow}[#2]}
Ralf Jung's avatar
Ralf Jung committed
362
\NewDocumentCommand \pvs {O{} O{}} {\mathord{\vsGen[#1]{{\mid\kern-0.4ex\Rrightarrow\kern-0.25ex}}[#2]\kern0.2ex}}
Ralf Jung's avatar
Ralf Jung committed
363

364

Ralf Jung's avatar
Ralf Jung committed
365
%% Hoare Triples
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
\newcommand*{\hoaresizebox}[1]{%
  \hbox{$\mathsurround=0pt{#1}\mathstrut$}}
\newcommand*{\hoarescalebox}[2]{%
  \hbox{\scalerel*[1ex]{#1}{#2}}}
\newcommand{\triple}[5]{%
  \setbox0=\hoaresizebox{{#3}{#5}}%
  \setbox1=\hoarescalebox{#1}{\copy0}%
  \setbox2=\hoarescalebox{#2}{\copy0}%
  \copy1{#3}\copy2%
  \;{#4}\;%
  \copy1{#5}\copy2}
\NewDocumentCommand \hoare {m m m O{}}{
	\triple\{\}{#1}{#2}{#3}%
	_{#4}%
}

\newcommand{\bracket}[4][]{%
  \setbox0=\hbox{$\mathsurround=0pt{#1}{#4}\mathstrut$}%
  \scalerel*[1ex]{#2}{\copy0}%
  {#4}%
  \scalerel*[1ex]{#3}{\copy0}}
% \curlybracket[other] x
\newcommand{\curlybracket}[2][]{\bracket[{#1}]\{\}{#2}}
\newcommand{\anglebracket}[2][]{\bracket[{#1}]\langle\rangle{#2}}
% \hoareV[t] pre c post [mask]
\NewDocumentCommand \hoareV {O{c} m m m O{}}{
		{\begin{aligned}[#1]
		&\curlybracket{#2} \\
		&\quad{#3} \\
		&{\curlybracket{#4}}_{#5}
		\end{aligned}}%
}
% \hoareHV[t] pre c post [mask]
\NewDocumentCommand \hoareHV {O{c} m m m O{}}{
	{\begin{aligned}[#1]
	&\curlybracket{#2} \; {#3} \\
	&{\curlybracket{#4}}_{#5}
	\end{aligned}}%
}


Ralf Jung's avatar
Ralf Jung committed
407 408 409 410
%% Some commonly used identifiers
\newcommand{\timeless}[1]{\textlog{timeless}(#1)}
\newcommand{\physatomic}[1]{\textlog{$#1$ phys.\ atomic}}
\newcommand{\infinite}{\textlog{infinite}}
411

Ralf Jung's avatar
Ralf Jung committed
412 413
\newcommand{\Prop}{\textlog{Prop}}
\newcommand{\Pred}{\textlog{Pred}}
414

Ralf Jung's avatar
Ralf Jung committed
415 416
\newcommand{\TRUE}{\textlog{True}}
\newcommand{\FALSE}{\textlog{False}}
417 418

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
419
% LANGUAGE SYNTAX AND SEMANTICS
420
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ralf Jung's avatar
Ralf Jung committed
421 422 423 424 425
\newcommand{\expr}{e}
\newcommand{\val}{v}
\newcommand{\valB}{w}
\newcommand{\state}{\sigma}
\newcommand{\step}{\ra}
Ralf Jung's avatar
Ralf Jung committed
426
\newcommand{\lctx}{K}
427

Ralf Jung's avatar
Ralf Jung committed
428 429 430 431 432
\newcommand{\toval}{\mathit{val}}
\newcommand{\ofval}{\mathit{expr}}
\newcommand{\atomic}{\mathit{atomic}}
\newcommand{\Lang}{\Lambda}

Ralf Jung's avatar
Ralf Jung committed
433
\newcommand{\tpool}{T}
434

Ralf Jung's avatar
Ralf Jung committed
435
\newcommand{\cfg}[2]{{#1};{#2}}
436 437

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Ralf Jung's avatar
Ralf Jung committed
438 439
% DERIVED CONSTRUCTIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
440

Ralf Jung's avatar
Ralf Jung committed
441
%% Commonly used identifiers
Ralf Jung's avatar
Ralf Jung committed
442 443
\newcommand{\FHeap}{\textmon{FHeap}}
\newcommand{\AFHeap}{\textmon{AFHeap}}
444

Ralf Jung's avatar
Ralf Jung committed
445
\newcommand{\auth}[1]{\textmon{Auth}}
446 447 448
\newcommand{\authfull}{\mathord{\bullet}\,}
\newcommand{\authfrag}{\mathord{\circ}\,}

Ralf Jung's avatar
Ralf Jung committed
449 450 451
\newcommand{\fracm}{\ensuremath{\textmon{Frac}}}
\newcommand{\exm}{\ensuremath{\textmon{Ex}}}
\newcommand{\agm}{\ensuremath{\textmon{Ag}}}
452

Ralf Jung's avatar
Ralf Jung committed
453
\newcommand{\STSMon}[1]{\textmon{Sts}_{#1}}
454 455 456 457 458 459 460 461 462
\newcommand{\STSInv}{\textsf{STSInv}}
\newcommand{\STS}{\textsf{STS}}
\newcommand{\STSS}{\mathcal{S}} % states
\newcommand{\STST}{\mathcal{T}} % tokens
\newcommand{\STSL}{\mathcal{L}} % labels
\newcommand{\ststrans}{\ra^{*}}%	the relation relevant to the STS rules

\newcommand{\AuthInv}{\textsf{AuthInv}}
\newcommand{\Auth}{\textsf{Auth}}