2021-04-30 09:16:01 -04:00
|
|
|
% The TAME Programming Language glossary
|
|
|
|
%
|
|
|
|
% Copyright (C) 2021 Ryan Specialty Group, LLC.
|
|
|
|
%
|
|
|
|
% Licensed under the Creative Commons Attribution-ShareAlike 4.0
|
|
|
|
% International License.
|
|
|
|
%%
|
|
|
|
|
2021-05-18 16:03:06 -04:00
|
|
|
\usepackage[letterpaper]{geometry}
|
|
|
|
|
2021-04-30 09:16:01 -04:00
|
|
|
% Concrete Mathematics fonts
|
|
|
|
\usepackage[amsfonts,amssymb]{concmath}
|
|
|
|
|
|
|
|
\usepackage{makeidx}
|
|
|
|
|
|
|
|
% Note that we force draft=false so hyperlinks always appear
|
|
|
|
\usepackage[colorlinks=true,linkcolor=href,draft=false]{hyperref}
|
|
|
|
|
2021-05-11 13:08:25 -04:00
|
|
|
% For displaying source code (e.g. XML); `final' needed in draft mode,
|
|
|
|
% otherwise no listings display.
|
|
|
|
\usepackage[final]{listings}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
% Definitions, theorems, proofs, etc
|
2021-05-10 14:28:37 -04:00
|
|
|
\usepackage{amsmath}
|
2021-04-30 09:16:01 -04:00
|
|
|
\usepackage{amsthm}
|
|
|
|
|
|
|
|
% Line spacing instead of indentation for paragraphs
|
|
|
|
%\usepackage[parfill]{parskip}
|
|
|
|
|
|
|
|
\usepackage{xcolor}
|
|
|
|
|
|
|
|
% To aid in defining star commands
|
|
|
|
\usepackage{suffix}
|
|
|
|
|
2021-05-11 16:36:43 -04:00
|
|
|
\usepackage{marginnote}
|
|
|
|
|
2021-05-12 10:37:20 -04:00
|
|
|
% Creative Commons icons
|
|
|
|
\usepackage{ccicons}
|
|
|
|
|
2021-05-14 12:05:17 -04:00
|
|
|
% Dangerous Bend, from TeXbook
|
|
|
|
\usepackage{manfnt}
|
|
|
|
|
2021-04-30 09:16:01 -04:00
|
|
|
% Colors from Tango Icon Theme
|
|
|
|
% https://en.wikipedia.org/wiki/Tango_Desktop_Project
|
|
|
|
\definecolor{href}{HTML}{204a87}
|
|
|
|
|
|
|
|
% TAME is typeset in smallcaps
|
|
|
|
\newcommand{\tame}{\textsc{Tame}}
|
2021-05-11 11:32:14 -04:00
|
|
|
\newcommand{\tamer}{\textsc{Tamer}}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
% TODO: highlighting
|
|
|
|
\lstset{
|
|
|
|
language=XML,
|
|
|
|
basicstyle=\ttfamily,
|
|
|
|
columns=fullflexible,
|
|
|
|
keepspaces=true,
|
|
|
|
showstringspaces=false,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\newcommand\xpath[1]{\texttt{#1}}
|
|
|
|
\newcommand\xmlnode[1]{\texttt{#1}}
|
2021-05-11 16:37:08 -04:00
|
|
|
\newcommand\xmlattr[1]{{@\texttt{#1}}}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\newcommand\tameparam[1]{\texttt{#1}}
|
|
|
|
\newcommand\tameclass[1]{\texttt{#1}}
|
|
|
|
\newcommand\tameconst[1]{\texttt{#1}}
|
|
|
|
|
|
|
|
\newcommand\true{\ensuremath{\top}}
|
|
|
|
\newcommand\false{\ensuremath{\bot}}
|
2021-05-14 10:32:50 -04:00
|
|
|
\newcommand\Bool{\ensuremath{\mathbb{B}}}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\newcommand\tametrue{\tameconst{TRUE}}
|
|
|
|
\newcommand\tamefalse{\tameconst{FALSE}}
|
|
|
|
|
|
|
|
\newcommand\Int{\ensuremath{\mathbb{Z}}}
|
|
|
|
\newcommand\Real{\ensuremath{\mathbb{R}}}
|
|
|
|
|
|
|
|
\newcommand\Set[1]{\ensuremath{\left\{#1\right\}}}
|
|
|
|
\newcommand\Fam[3]{\ensuremath{\left\{#1_{#2}\right\}_{#2\in #3}}}
|
|
|
|
|
|
|
|
\newcommand\Vectors{\ensuremath{\mathcal{V}}}
|
|
|
|
\newcommand\Vector[1]{\ensuremath{\left\langle#1\right\rangle}}
|
|
|
|
\newcommand\VFam[3]{\ensuremath{\Vector{#1_{#2}}_{#2\in #3}}}
|
|
|
|
\newcommand\Matrices{\ensuremath{\Vectors^{\Vectors^\Real}}}
|
2021-05-18 10:06:32 -04:00
|
|
|
\newcommand\MFam[5]{\ensuremath{%
|
|
|
|
\Vector{{#1_{#2}}_#4}_{\underset{#4\in {#5_#2}}{#2\in #3}}
|
|
|
|
}}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\let\union\cup
|
2021-05-14 12:05:17 -04:00
|
|
|
\let\Union\bigcup
|
2021-05-11 11:33:12 -04:00
|
|
|
\let\intersect\cap
|
2021-05-10 16:54:19 -04:00
|
|
|
\let\infer\vdash
|
2021-05-14 12:05:17 -04:00
|
|
|
\let\emptystr\epsilon
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\newcommand\len[1]{\ensuremath{\left|#1\right|}}
|
|
|
|
|
|
|
|
\numberwithin{equation}{section}
|
|
|
|
|
|
|
|
% Allows us to switch between styles, if need be
|
|
|
|
% (e.g. I used the colon style before adopting notation from type theory
|
|
|
|
% where the colon became ambiguous)
|
|
|
|
\newcommand\Forall{\@ifstar\@Forallstar\@Forall}
|
|
|
|
\newcommand\@Forall[2]{\forall #1\left(#2\right)}
|
|
|
|
\newcommand\@Forallstar[2]{\forall #1 #2}
|
|
|
|
|
|
|
|
\newcommand\Exists{\@ifstar\@Existsstar\@Exists}
|
|
|
|
\newcommand\@Exists[2]{\exists #1\left(#2\right)}
|
|
|
|
% Without \left and \right. You'll also need this if you use `&' in an
|
|
|
|
% `align' environment within an argument.
|
|
|
|
\newcommand\@Existsstar[2]{\exists #1 #2}
|
|
|
|
|
2021-05-14 10:50:49 -04:00
|
|
|
% Create a new theorem environment along with a set of label/ref/pref
|
|
|
|
% commands.
|
|
|
|
\newcommand\newtheoremwithlabel[3]{%
|
|
|
|
\newtheorem{#1}{#2}[section]
|
2021-05-17 13:20:11 -04:00
|
|
|
\expandafter\def\csname #1autorefname\endcsname{#2}
|
|
|
|
\expandafter\newcommand\csname #3label\endcsname[1]{\label{#1:##1}}
|
|
|
|
\expandafter\newcommand\csname #3ref\endcsname[1]{\autoref{#1:##1}}
|
|
|
|
\expandafter\newcommand\csname #3pref\endcsname[1]{\autopref{#1:##1}}
|
2021-05-14 10:50:49 -04:00
|
|
|
}
|
|
|
|
|
2021-04-30 09:16:01 -04:00
|
|
|
\theoremstyle{definition}
|
2021-05-14 10:50:49 -04:00
|
|
|
\newtheoremwithlabel{definition}{Definition}{dfn}
|
2021-05-18 10:06:32 -04:00
|
|
|
\newtheoremwithlabel{axiom}{Axiom}{axm}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\theoremstyle{plain}
|
2021-05-14 10:50:49 -04:00
|
|
|
\newtheoremwithlabel{corollary}{Corollary}{cor}
|
|
|
|
\newtheoremwithlabel{lemma}{Lemma}{lem}
|
2021-05-18 10:06:32 -04:00
|
|
|
\newtheoremwithlabel{theorem}{Theorem}{thm}
|
2021-05-14 10:32:50 -04:00
|
|
|
|
2021-04-30 09:16:01 -04:00
|
|
|
\theoremstyle{remark}
|
2021-05-14 10:50:49 -04:00
|
|
|
\newtheoremwithlabel{remark}{Remark}{rem}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\newcommand\pref[1]{\ref{#1} on page~\pageref{#1}}
|
|
|
|
\newcommand\seclabel[1]{\label{sec:#1}}
|
|
|
|
\newcommand\secref[1]{Section~\ref{sec:#1}}
|
|
|
|
\newcommand\secpref[1]{Section~\pref{sec:#1}}
|
|
|
|
|
|
|
|
% Binary function composition
|
2021-05-10 14:11:16 -04:00
|
|
|
\newcommand\bicomp[1]{{#1}^\circ}
|
2021-04-30 09:16:01 -04:00
|
|
|
|
|
|
|
\let\xml\texttt
|
2021-05-18 14:09:27 -04:00
|
|
|
\newcommand\xmlnl{\\[-3mm]}
|
|
|
|
\let\tamepkg\texttt
|
2021-05-10 16:50:30 -04:00
|
|
|
|
2021-05-18 12:13:32 -04:00
|
|
|
% Definitions (introduction of terms)
|
|
|
|
\let\dfn\textsl
|
|
|
|
|
2021-05-10 16:50:30 -04:00
|
|
|
% Symbols appear at the beginning of the index
|
|
|
|
\newcommand\indexsym[2]{\index{__sym_#2@{\ensuremath{#1}}|see {#2}}}
|
2021-05-11 16:36:43 -04:00
|
|
|
|
2021-05-11 16:37:08 -04:00
|
|
|
\DeclareMathOperator*\Classify{%
|
|
|
|
\mathchoice{\vcenter{\hbox{\huge$\mathfrak{C}$}}}
|
|
|
|
{\vcenter{\hbox{\Large$\mathfrak{C}$}}}
|
|
|
|
{\frak{C}}
|
|
|
|
{\frak{C}}
|
|
|
|
}
|
|
|
|
|
2021-05-11 16:36:43 -04:00
|
|
|
\newcommand\todo[1]{\marginnote{\underline{\textsc{Todo:}}\\ \textsl{#1}}}
|
2021-05-11 16:50:11 -04:00
|
|
|
\newcommand\mremark[1]{\marginnote{\textsl{#1}}}
|
2021-05-14 10:32:50 -04:00
|
|
|
|
|
|
|
\newcommand\Monoid[3]{\left({#1},{#2},{#3}\right)}
|
2021-05-14 12:05:17 -04:00
|
|
|
|
|
|
|
% A really obnoxious notice making clear to the reader that this portion of
|
|
|
|
% the work is unfinished, to the point where it's probably even
|
|
|
|
% incorrect. Uses dangerous bend symbol from manfnt, which is admittedly a
|
|
|
|
% misuse given that it's often used to represent difficult problems. Though
|
|
|
|
% I suppose an unfinished work is a difficult problem.
|
|
|
|
\newcommand\INCOMPLETE[1]{%
|
|
|
|
\bigskip
|
|
|
|
\par
|
|
|
|
\todo{This is incomplete!}
|
|
|
|
\hfill\textdbend\textbf{\textsl{#1}}\textdbend\hfill
|
|
|
|
\bigskip
|
|
|
|
}
|
2021-05-18 15:51:48 -04:00
|
|
|
|
|
|
|
|
|
|
|
%
|
|
|
|
% Dynamic Configuration
|
|
|
|
%
|
|
|
|
\newif\iftplappendix
|
|
|
|
|
|
|
|
\InputIfFileExists{./conf.tex}%
|
|
|
|
{\message{Loaded `./conf.tex'.}}%
|
|
|
|
{\message{`./conf.tex' not found (did you run `./configure'?).
|
|
|
|
Using defaults.}%
|
|
|
|
}
|