-
Notifications
You must be signed in to change notification settings - Fork 0
/
icfp17-supplement.tex
238 lines (206 loc) · 7.72 KB
/
icfp17-supplement.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
\PassOptionsToPackage{svgnames,dvipsnames,svgnames}{xcolor}
\documentclass[12pt]{report}
\newif\ificfp
\icfptrue
\newcommand{\todolater}[1]{{\color{magenta} TODO (Later): #1}}
\newcommand{\todo}[1]{{\color{red} TODO: #1}}
% some useful packages
\usepackage{times} % use times font for document
%\usepackage{lmodern}
\usepackage{newtxtt}
\usepackage{bbm}
%\renewcommand{\ttdefault}{txtt} % use txtt for typewriter font
\usepackage{mathpazo}
\usepackage{mathpartir} % use package for inference rules
\usepackage{upgreek} % package for alternative greek letters (\uppi)
\usepackage{fullpage}
\usepackage{colortab}
%\usepackage{graphicx}
\usepackage[labelfont=bf]{caption}
% \usepackage{cleveref}
%\usepackage{MnSymbol}
\usepackage{fancyvrb}
\usepackage{microtype}
\usepackage[framemethod=tikz]{mdframed}
% Get just llangle and rrangle from MnSymbol
\makeatletter
\DeclareFontFamily{OMX}{MnSymbolE}{}
\DeclareSymbolFont{MnLargeSymbols}{OMX}{MnSymbolE}{m}{n}
\SetSymbolFont{MnLargeSymbols}{bold}{OMX}{MnSymbolE}{b}{n}
\DeclareFontShape{OMX}{MnSymbolE}{m}{n}{
<-6> MnSymbolE5
<6-7> MnSymbolE6
<7-8> MnSymbolE7
<8-9> MnSymbolE8
<9-10> MnSymbolE9
<10-12> MnSymbolE10
<12-> MnSymbolE12
}{}
\DeclareFontShape{OMX}{MnSymbolE}{b}{n}{
<-6> MnSymbolE-Bold5
<6-7> MnSymbolE-Bold6
<7-8> MnSymbolE-Bold7
<8-9> MnSymbolE-Bold8
<9-10> MnSymbolE-Bold9
<10-12> MnSymbolE-Bold10
<12-> MnSymbolE-Bold12
}{}
\let\llangle\@undefined
\let\rrangle\@undefined
\DeclareMathDelimiter{\llangle}{\mathopen}%
{MnLargeSymbols}{'164}{MnLargeSymbols}{'164}
\DeclareMathDelimiter{\rrangle}{\mathclose}%
{MnLargeSymbols}{'171}{MnLargeSymbols}{'171}
\makeatother
% \usepackage{rotating}
% \usepackage{pdflscape}
\usepackage[colorlinks=true,allcolors=Blue,backref,pageanchor=true,plainpages=false, pdfpagelabels, bookmarks,bookmarksnumbered,
pdfborder={0 0 0}, %removes outlines around hyper links in online display
]{hyperref}
\usepackage{amsmath,amssymb, amsthm}
\allowdisplaybreaks[1]
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{condition}[theorem]{Condition}
\usepackage{pfsteps}
\usepackage[noabbrev]{cleveref}
\newenvironment{proof-sketch}{\noindent{\emph{Proof Sketch.}}}{\qed}
% \makeatletter
% \renewenvironment{proof}[1][\proofname]{\par
% \vspace{-\topsep}% remove the space after the theorem
% \pushQED{\qed}%
% \normalfont
% \topsep0pt \partopsep0pt % no space before
% \trivlist
% \item[\hskip\labelsep
% \itshape
% #1\@addpunct{.}]\ignorespaces
% }{%
% \popQED\endtrivlist\@endpefalse
% \addvspace{6pt plus 6pt} % some space after
% }
% \makeatother
% \makeatletter
% \renewenvironment{proof-sketch}[1][\proofname]{\par
% \vspace{-\topsep}% remove the space after the theorem
% \pushQED{\qed}%
% \normalfont
% \topsep0pt \partopsep0pt % no space before
% \trivlist
% \item[\hskip\labelsep
% \itshape
% Proof Sketch\@addpunct{.}]\ignorespaces
% }{%
% \popQED\endtrivlist\@endpefalse
% \addvspace{6pt plus 6pt} % some space after
% }
% \makeatother
\usepackage{mathtools}
\usepackage{ stmaryrd }
\usepackage[numbers,sort]{natbib}
\usepackage{subfigure}
% Approximately 1" margins, more space on binding side
%\usepackage[letterpaper,twoside,vscale=.8,hscale=.75,nomarginpar]{geometry}
%for general printing (not binding)
\usepackage[letterpaper,twoside,vscale=.8,hscale=.75,nomarginpar,hmarginratio=1:1]{geometry}
\usepackage{listings}
\lstset{tabsize=2,
basicstyle=\ttfamily\fontsize{11pt}{1em}\selectfont,
commentstyle=\itshape\ttfamily\color{gray},
stringstyle=\ttfamily\color{red},
mathescape=false,escapechar=\#,
numbers=left, numberstyle=\scriptsize\color{gray}\ttfamily, language=ML,moredelim=[il][\sffamily]{?},showspaces=false,showstringspaces=false,xleftmargin=15pt, morekeywords=[1]{tyfam,opfam,let,fn,val,def,casetype,objtype,metadata,of,*,datatype,new,toast,syntax,module,where,import,for,ana,syn,opcon,tycon,metasignature,metamodule,metasig,metamod,static,at,tycase,mod,macro,match,pattern,in,patterns,expressions,implicit,forall,rectype,fold,unfold,inj,by,spliced},deletekeywords={double},classoffset=0,belowskip=\smallskipamount,
moredelim=**[is][\color{red}]{SSTR}{ESTR},
moredelim=**[is][\color{Green}]{SHTML}{EHTML},
moredelim=**[is][\color{purple}]{SCSS}{ECSS},
moredelim=**[is][\color{brown}]{SSQL}{ESQL},
moredelim=**[is][\color{orange}]{SCOLOR}{ECOLOR},
moredelim=**[is][\color{magenta}]{SPCT}{EPCT},
moredelim=**[is][\color{gray}]{SNAT}{ENAT},
moredelim=**[is][\color{Green}]{SURL}{EURL},
moredelim=**[is][\color{SeaGreen}]{SQT}{EQT},
moredelim=**[is][\color{Periwinkle}]{SGRM}{EGRM},
moredelim=**[is][\color{YellowGreen}]{SID}{EID},
moredelim=**[is][\color{Sepia}]{SUS}{EUS},
deletestring=[d]{"},
}
\lstloadlanguages{Java,VBScript,XML,HTML,ML}
\let\li\lstinline
% http://tex.stackexchange.com/q/43526
% fix the apparently deliberate but undocumented behaviour of disabling escapes other than mathescape in TextStyle (used by \lstinline)
% there may be a good reason why this is disabled by default, so beware in case it causes any problems
\usepackage{etoolbox}
\makeatletter
\patchcmd{\lsthk@TextStyle}{\let\lst@DefEsc\@empty}{}{}{\errmessage{failed to patch}}
\makeatother
% Provides a draft mark at the bottom of the document.
% \draftstamp{\today}{DRAFT}
% I hate hyphenation.
%\lefthyphenmin=5
\definecolor{light-gray}{gray}{0.95}
\input{macros}
% allow interrupted equation numbering
% taken from http://tex.stackexchange.com/questions/101002/interrupting-and-resuming-subequations
% \makeatletter
% \def\user@resume{resume}
% \def\user@intermezzo{intermezzo}
% %
% \newcounter{previousequation}
% \newcounter{lastsubequation}
% \newcounter{savedparentequation}
% \setcounter{savedparentequation}{1}
% %
% \renewenvironment{subequations}[1][]{%
% \def\user@decides{#1}%
% \setcounter{previousequation}{\value{equation}}%
% \ifx\user@decides\user@resume
% \setcounter{equation}{\value{savedparentequation}}%
% \else
% \ifx\user@decides\user@intermezzo
% \refstepcounter{equation}%
% \else
% \setcounter{lastsubequation}{0}%
% \refstepcounter{equation}%
% \fi\fi
% \protected@edef\theHparentequation{%
% \@ifundefined {theHequation}\theequation \theHequation}%
% \protected@edef\theparentequation{\theequation}%
% \setcounter{parentequation}{\value{equation}}%
% \ifx\user@decides\user@resume
% \setcounter{equation}{\value{lastsubequation}}%
% \else
% \setcounter{equation}{0}%
% \fi
% \def\theequation {\theparentequation \alph{equation}}%
% \def\theHequation {\theHparentequation \alph{equation}}%
% \ignorespaces
% }{%
% % \arabic{equation};\arabic{savedparentequation};\arabic{lastsubequation}
% \ifx\user@decides\user@resume
% \setcounter{lastsubequation}{\value{equation}}%
% \setcounter{equation}{\value{previousequation}}%
% \else
% \ifx\user@decides\user@intermezzo
% \setcounter{equation}{\value{parentequation}}%
% \else
% \setcounter{lastsubequation}{\value{equation}}%
% \setcounter{savedparentequation}{\value{parentequation}}%
% \setcounter{equation}{\value{parentequation}}%
% \fi\fi
% % \arabic{equation};\arabic{savedparentequation};\arabic{lastsubequation}
% \ignorespacesafterend
% }
% \makeatother
\begin{document}
\title{Reasonably Programmable Syntax\\ (ICFP 2017 Supplemental Material)}
\date{February 27, 2017}
\maketitle
\tableofcontents
\input{appendix}
\input{static-language}
\bibliographystyle{plainnat}
\bibliography{../papers/research} %your bib file
\end{document}