~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to notes/papers/iird/macros.tex

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-08-05 06:38:12 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140805063812-io8e77niomivhd49
Tags: 2.4.0.2-1
* [6e140ac] Imported Upstream version 2.4.0.2
* [2049fc8] Update Build-Depends to match control
* [93dc4d4] Install the new primitives
* [e48f40f] Fix typo dev→doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
\newcommand\Con[1]{\mathsf{{#1}}}
3
 
\newcommand\Def[1]{\mathit{{#1}}}
4
 
\newcommand\Typ[1]{\mathbf{{#1}}}
5
 
 
6
 
\newcommand\PI[2]{({#1} : {#2}) → {}}
7
 
\newcommand\hPI[2]{\{{#1} : {#2}\} → {}}
8
 
\newcommand\SIGMA[2]{({#1} : {#2}) × {}}
9
 
\newcommand\Zero{\Typ{0}}
10
 
\newcommand\One{\Typ{1}}
11
 
\newcommand\Two{\Typ{2}}
12
 
\newcommand\lam[1]{λ {#1} \mathrel{.} {}}
13
 
 
14
 
\newcommand\Set{\Def{set}}
15
 
\newcommand\Type{\Def{type}}
16
 
 
17
 
\newcommand\Refl{\Con{refl}}
18
 
 
19
 
\newcommand\HasType[3]{{#1} ⊢ {#2} : {#3}}
20
 
\newcommand\IsType[2]{\HasType{#1}{#2}{\Type}}
21
 
 
22
 
\newcommand\TODO[1]{
23
 
{\setlength \parindent {0mm}
24
 
 \addtolength \textwidth {-1cm}
25
 
    {~}
26
 
    \par
27
 
    \fbox{\begin{tabular}{p{\textwidth}}TODO: #1\end{tabular}}
28
 
    \par
29
 
    {~}
30
 
}}
31