doc-src/IsarAdvanced/Codegen/codegen.tex
author haftmann
Fri, 20 Oct 2006 10:44:35 +0200
changeset 21058 a32d357dfd70
parent 20948 9b9910b82645
child 21146 c6f103e57c94
permissions -rw-r--r--
started tutorial
     1 
     2 %% $Id$
     3 
     4 \documentclass[12pt,a4paper,fleqn]{report}
     5 \usepackage{latexsym,graphicx}
     6 \usepackage{listings}
     7 \usepackage[refpage]{nomencl}
     8 \usepackage{../../iman,../../extra,../../isar,../../proof}
     9 \usepackage{Thy/document/isabelle,Thy/document/isabellesym}
    10 \usepackage{style}
    11 \usepackage{Thy/document/pdfsetup}
    12 
    13 \newcommand{\cmd}[1]{\isacommand{#1}}
    14 
    15 \newcommand{\isasymINFIX}{\cmd{infix}}
    16 \newcommand{\isasymLOCALE}{\cmd{locale}}
    17 \newcommand{\isasymINCLUDES}{\cmd{includes}}
    18 \newcommand{\isasymDATATYPE}{\cmd{datatype}}
    19 \newcommand{\isasymAXCLASS}{\cmd{axclass}}
    20 \newcommand{\isasymFIXES}{\cmd{fixes}}
    21 \newcommand{\isasymASSUMES}{\cmd{assumes}}
    22 \newcommand{\isasymDEFINES}{\cmd{defines}}
    23 \newcommand{\isasymNOTES}{\cmd{notes}}
    24 \newcommand{\isasymSHOWS}{\cmd{shows}}
    25 \newcommand{\isasymCLASS}{\cmd{class}}
    26 \newcommand{\isasymINSTANCE}{\cmd{instance}}
    27 \newcommand{\isasymLEMMA}{\cmd{lemma}}
    28 \newcommand{\isasymPROOF}{\cmd{proof}}
    29 \newcommand{\isasymQED}{\cmd{qed}}
    30 \newcommand{\isasymFIX}{\cmd{fix}}
    31 \newcommand{\isasymASSUME}{\cmd{assume}}
    32 \newcommand{\isasymSHOW}{\cmd{show}}
    33 \newcommand{\isasymNOTE}{\cmd{note}}
    34 \newcommand{\isasymIN}{\cmd{in}}
    35 \newcommand{\isasymCODEGEN}{\cmd{code\_gen}}
    36 \newcommand{\isasymPRINTCODETHMS}{\cmd{print\_codethms}}
    37 \newcommand{\isasymFUN}{\cmd{fun}}
    38 \newcommand{\isasymFUNCTION}{\cmd{function}}
    39 \newcommand{\isasymPRIMREC}{\cmd{primrec}}
    40 \newcommand{\isasymRECDEF}{\cmd{recdef}}
    41 
    42 \newcommand{\qt}[1]{``#1''}
    43 \newcommand{\qtt}[1]{"{}{#1}"{}}
    44 \newcommand{\qn}[1]{\emph{#1}}
    45 \newcommand{\strong}[1]{{\bfseries #1}}
    46 \newcommand{\fixme}[1][!]{\strong{FIXME: #1}}
    47 
    48 \lstset{basicstyle=\scriptsize\ttfamily, keywordstyle=\itshape, commentstyle=\itshape\sffamily, frame=shadowbox}
    49 \newcommand{\lstsml}[1]{\lstset{language=ML}\lstinputlisting{#1}}
    50 \newcommand{\lsthaskell}[1]{\lstset{language=Haskell}\lstinputlisting{#1}}
    51 
    52 \hyphenation{Isabelle}
    53 \hyphenation{Isar}
    54 
    55 \isadroptag{theory}
    56 \title{\includegraphics[scale=0.5]{isabelle_isar}
    57   \\[4ex] Code generation from Isabelle theories}
    58 \author{\emph{Florian Haftmann}}
    59 
    60 
    61 \begin{document}
    62 
    63 \maketitle
    64 
    65 \begin{abstract}
    66   This tutorial gives a motivation-driven introduction
    67   to a generic code generator framework in Isabelle
    68   for generating executable code in functional
    69   programming languages from logical specifications.
    70 \end{abstract}
    71 
    72 \thispagestyle{empty}\clearpage
    73 
    74 \pagenumbering{roman}
    75 \clearfirst
    76 
    77 \input{Thy/document/Codegen.tex}
    78 
    79 \begingroup
    80 %\tocentry{\bibname}
    81 \bibliographystyle{plain} \small\raggedright\frenchspacing
    82 \bibliography{../../manual}
    83 \endgroup
    84 
    85 \end{document}
    86 
    87 
    88 %%% Local Variables: 
    89 %%% mode: latex
    90 %%% TeX-master: t
    91 %%% End: