2018-04-09 16:02:54 +00:00
|
|
|
|
\newcommand{\subsubsubsection}[1]{\textbf{#1}}
|
|
|
|
|
\newcommand{\WIP}{\textbf{WIP}}
|
|
|
|
|
|
2018-01-15 15:20:14 +00:00
|
|
|
|
\newcommand{\coloneqq}{\mathrel{\vcenter{\baselineskip0.5ex \lineskiplimit0pt
|
2017-12-02 00:34:04 +00:00
|
|
|
|
\hbox{\scriptsize.}\hbox{\scriptsize.}}}%
|
2018-04-26 08:22:15 +00:00
|
|
|
|
=}
|
2017-12-02 00:34:04 +00:00
|
|
|
|
|
2018-05-01 19:26:20 +00:00
|
|
|
|
\newcommand{\defeq}{\mathrel{\triangleq}}
|
2018-05-01 16:55:28 +00:00
|
|
|
|
%% Alternatively:
|
|
|
|
|
%% \newcommand{\defeq}{≔}
|
2017-12-02 00:34:04 +00:00
|
|
|
|
\newcommand{\bN}{\mathbb{N}}
|
2018-05-22 11:45:52 +00:00
|
|
|
|
\newcommand{\bC}{ℂ}
|
|
|
|
|
\newcommand{\bD}{𝔻}
|
|
|
|
|
\newcommand{\bX}{𝕏}
|
2018-02-02 14:34:35 +00:00
|
|
|
|
% \newcommand{\to}{\rightarrow}
|
2018-05-10 10:40:39 +00:00
|
|
|
|
%% \newcommand{\mto}{\mapsto}
|
|
|
|
|
\newcommand{\mto}{\rightarrow}
|
2017-12-02 00:34:04 +00:00
|
|
|
|
\newcommand{\UU}{\ensuremath{\mathcal{U}}\xspace}
|
|
|
|
|
\let\type\UU
|
2018-04-23 15:06:09 +00:00
|
|
|
|
\newcommand{\MCU}{\UU}
|
2017-12-02 00:34:04 +00:00
|
|
|
|
\newcommand{\todo}[1]{\textit{#1}}
|
|
|
|
|
\newcommand{\comp}{\circ}
|
|
|
|
|
\newcommand{\x}{\times}
|
2018-04-23 15:06:09 +00:00
|
|
|
|
\newcommand\inv[1]{#1\raisebox{1.15ex}{$\scriptscriptstyle-\!1$}}
|
2018-05-01 19:26:20 +00:00
|
|
|
|
\newcommand{\tp}{\mathrel{:}}
|
2018-04-23 15:06:09 +00:00
|
|
|
|
\newcommand{\Type}{\mathcal{U}}
|
|
|
|
|
|
2018-05-01 16:55:28 +00:00
|
|
|
|
\usepackage{graphicx}
|
|
|
|
|
\makeatletter
|
|
|
|
|
\newcommand{\shorteq}{%
|
|
|
|
|
\settowidth{\@tempdima}{-}% Width of hyphen
|
|
|
|
|
\resizebox{\@tempdima}{\height}{=}%
|
|
|
|
|
}
|
|
|
|
|
\makeatother
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand{\var}[1]{\ensuremath{\mathit{#1}}}
|
2018-05-15 14:08:29 +00:00
|
|
|
|
\newcommand{\varindex}[1]{\ensuremath{\var{#1}}\index{$\var{#1}$}}
|
|
|
|
|
\newcommand{\nomen}[2]{\emph{#1}\index{#2}}
|
|
|
|
|
\newcommand{\nomenindex}[1]{\nomen{#1}{#1}}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
|
|
|
|
|
\newcommand{\Hom}{\varindex{Hom}}
|
|
|
|
|
\newcommand{\fmap}{\varindex{fmap}}
|
|
|
|
|
\newcommand{\bind}{\varindex{bind}}
|
|
|
|
|
\newcommand{\join}{\varindex{join}}
|
|
|
|
|
\newcommand{\omap}{\varindex{omap}}
|
|
|
|
|
\newcommand{\pure}{\varindex{pure}}
|
|
|
|
|
\newcommand{\idFun}{\varindex{id}}
|
|
|
|
|
\newcommand{\Sets}{\varindex{Sets}}
|
|
|
|
|
\newcommand{\Set}{\varindex{Set}}
|
|
|
|
|
\newcommand{\hSet}{\varindex{hSet}}
|
|
|
|
|
\newcommand{\id}{\varindex{id}}
|
|
|
|
|
\newcommand{\isEquiv}{\varindex{isEquiv}}
|
|
|
|
|
\newcommand{\idToIso}{\varindex{idToIso}}
|
|
|
|
|
\newcommand{\idIso}{\varindex{idIso}}
|
|
|
|
|
\newcommand{\isSet}{\varindex{isSet}}
|
|
|
|
|
\newcommand{\isContr}{\varindex{isContr}}
|
|
|
|
|
\newcommand{\isGroupoid}{\varindex{isGroupoid}}
|
|
|
|
|
\newcommand{\pathJ}{\varindex{pathJ}}
|
|
|
|
|
\newcommand\Object{\varindex{Object}}
|
|
|
|
|
\newcommand\Functor{\varindex{Functor}}
|
|
|
|
|
\newcommand\isProp{\varindex{isProp}}
|
|
|
|
|
\newcommand\propPi{\varindex{propPi}}
|
|
|
|
|
\newcommand\propSig{\varindex{propSig}}
|
|
|
|
|
\newcommand\PreCategory{\varindex{PreCategory}}
|
|
|
|
|
\newcommand\IsPreCategory{\varindex{IsPreCategory}}
|
|
|
|
|
\newcommand\isIdentity{\varindex{isIdentity}}
|
|
|
|
|
\newcommand\propIsIdentity{\varindex{propIsIdentity}}
|
|
|
|
|
\newcommand\IsCategory{\varindex{IsCategory}}
|
|
|
|
|
\newcommand\Gl{\varindex{\lambda}}
|
|
|
|
|
\newcommand\lemPropF{\varindex{lemPropF}}
|
|
|
|
|
\newcommand\isPreCategory{\varindex{isPreCategory}}
|
|
|
|
|
\newcommand\congruence{\varindex{cong}}
|
|
|
|
|
\newcommand\identity{\varindex{identity}}
|
|
|
|
|
\newcommand\isequiv{\varindex{isequiv}}
|
|
|
|
|
\newcommand\qinv{\varindex{qinv}}
|
|
|
|
|
\newcommand\fiber{\varindex{fiber}}
|
2018-05-18 11:14:41 +00:00
|
|
|
|
\newcommand\shufflef{\varindex{shuffle}}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand\Univalent{\varindex{Univalent}}
|
|
|
|
|
\newcommand\refl{\varindex{refl}}
|
|
|
|
|
\newcommand\isoToId{\varindex{isoToId}}
|
|
|
|
|
\newcommand\Isomorphism{\varindex{Isomorphism}}
|
2018-04-23 15:06:09 +00:00
|
|
|
|
\newcommand\rrr{\ggg}
|
2018-05-18 11:14:41 +00:00
|
|
|
|
%% \newcommand\fish{\mathbin{↣}}
|
|
|
|
|
%% \newcommand\fish{\mathbin{⤅}}
|
|
|
|
|
\newcommand\fish{\mathbin{⤇}}
|
|
|
|
|
%% \newcommand\fish{\mathbin{⤜}}
|
|
|
|
|
%% \newcommand\fish{\mathrel{\wideoverbar{\rrr}}}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand\fst{\varindex{fst}}
|
|
|
|
|
\newcommand\snd{\varindex{snd}}
|
|
|
|
|
\newcommand\Path{\varindex{Path}}
|
|
|
|
|
\newcommand\Category{\varindex{Category}}
|
2018-04-24 12:11:22 +00:00
|
|
|
|
\newcommand\TODO[1]{TODO: \emph{#1}}
|
|
|
|
|
\newcommand*{\QED}{\hfill\ensuremath{\square}}%
|
|
|
|
|
\newcommand\uexists{\exists!}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand\Arrow{\varindex{Arrow}}
|
2018-05-18 11:14:41 +00:00
|
|
|
|
\newcommand\embellish[1]{\widehat{#1}}
|
|
|
|
|
\newcommand\nattrans[1]{\embellish{#1}}
|
|
|
|
|
\newcommand\functor[1]{\embellish{#1}}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand\NTsym{\varindex{NT}}
|
2018-05-01 16:55:28 +00:00
|
|
|
|
\newcommand\NT[2]{\NTsym\ #1\ #2}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand\Endo[1]{\varindex{Endo}\ #1}
|
2018-05-18 11:14:41 +00:00
|
|
|
|
\newcommand\EndoR{\functor{\mathcal{R}}}
|
|
|
|
|
\newcommand\omapR{\mathcal{R}}
|
2018-05-22 11:45:52 +00:00
|
|
|
|
\newcommand\omapF{\mathcal{F}}
|
|
|
|
|
\newcommand\omapG{\mathcal{G}}
|
|
|
|
|
\newcommand\FunF{\functor{\omapF}}
|
|
|
|
|
\newcommand\FunG{\functor{\omapG}}
|
2018-05-09 16:29:44 +00:00
|
|
|
|
\newcommand\funExt{\varindex{funExt}}
|
2018-05-11 11:07:47 +00:00
|
|
|
|
\newcommand{\suc}[1]{\varindex{suc}\ #1}
|
|
|
|
|
\newcommand{\trans}{\varindex{trans}}
|
2018-05-15 14:08:29 +00:00
|
|
|
|
\newcommand{\toKleisli}{\varindex{toKleisli}}
|
|
|
|
|
\newcommand{\toMonoidal}{\varindex{toMonoidal}}
|
2018-05-18 11:14:41 +00:00
|
|
|
|
\newcommand\pairA{\mathcal{A}}
|
|
|
|
|
\newcommand\pairB{\mathcal{B}}
|
|
|
|
|
\newcommand{\joinNT}{\functor{\varindex{join}}}
|
|
|
|
|
\newcommand{\pureNT}{\functor{\varindex{pure}}}
|
|
|
|
|
\newcommand{\hrefsymb}[2]{\href{#1}{#2 \ExternalLink}}
|
|
|
|
|
\newcommand{\sourcebasepath}{http://web.student.chalmers.se/\textasciitilde hanghj/cat/doc/html/}
|
|
|
|
|
\newcommand{\docbasepath}{https://github.com/fredefox/cat/}
|
|
|
|
|
\newcommand{\sourcelink}[1]{\hrefsymb
|
|
|
|
|
{\sourcebasepath#1.html}
|
|
|
|
|
{\texttt{#1}}
|
|
|
|
|
}
|
|
|
|
|
\newcommand{\gitlink}{\hrefsymb{\docbasepath}{\texttt{\docbasepath}}}
|
|
|
|
|
\newcommand{\doclink}{\hrefsymb{\sourcebasepath}{\texttt{\sourcebasepath}}}
|
2018-05-22 11:45:52 +00:00
|
|
|
|
\newcommand{\clll}{\mathrel{\bC.\mathord{\lll}}}
|
|
|
|
|
\newcommand{\dlll}{\mathrel{\bD.\mathord{\lll}}}
|
2018-05-23 15:34:50 +00:00
|
|
|
|
\newcommand\coe{\varindex{coe}}
|
|
|
|
|
\newcommand\Monoidal{\varindex{Monoidal}}
|
|
|
|
|
\newcommand\Kleisli{\varindex{Kleisli}}
|
2018-05-28 15:32:56 +00:00
|
|
|
|
\newcommand\I{\mathds{I}}
|
2018-10-29 11:39:12 +00:00
|
|
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
|
\DeclareRobustCommand\bigop[1]{%
|
|
|
|
|
\mathop{\vphantom{\sum}\mathpalette\bigop@{#1}}\slimits@
|
|
|
|
|
}
|
|
|
|
|
\newcommand{\bigop@}[2]{%
|
|
|
|
|
\vcenter{%
|
|
|
|
|
\sbox\z@{$#1\sum$}%
|
|
|
|
|
\hbox{\resizebox{\ifx#1\displaystyle.7\fi\dimexpr\ht\z@+\dp\z@}{!}{$\m@th#2$}}%
|
|
|
|
|
}%
|
|
|
|
|
}
|
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
|
|
\renewcommand{\llll}{\mathbin{\bigop{\lll}}}
|
|
|
|
|
\renewcommand{\rrrr}{\mathbin{\bigop{\rrr}}}
|
|
|
|
|
%% \newcommand{\llll}{lll}
|
|
|
|
|
%% \newcommand{\rrrr}{rrr}
|