src/Doc/Datatypes/document/root.tex
author blanchet
Wed, 31 Jul 2013 11:28:59 +0200
changeset 52805 7f2f42046361
parent 52794 aae782070611
child 52806 146ce45c3619
permissions -rw-r--r--
more (co)datatype documentation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
     1
\documentclass[12pt,a4paper]{article} % fleqn
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
     2
\usepackage{cite}
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
     3
\usepackage{enumitem}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     4
\usepackage{latexsym}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     5
\usepackage{graphicx}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     6
\usepackage{iman}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     7
\usepackage{extra}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     8
\usepackage{isar}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     9
\usepackage{isabelle}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    10
\usepackage{isabellesym}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    11
\usepackage{style}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    12
\usepackage{pdfsetup}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    13
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    14
\newbox\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    15
\setbox\boxA=\hbox{\ }
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    16
\parindent=4\wd\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    17
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    18
\newcommand{\cmd}[1]{\isacommand{#1}}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    19
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    20
\renewcommand{\isacharunderscore}{\mbox{\_}}
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    21
\renewcommand{\isacharunderscorekeyword}{\mbox{\_}}
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    22
\renewcommand{\isachardoublequote}{\mbox{\upshape{``}}}
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    23
\renewcommand{\isachardoublequoteopen}{\mbox{\upshape{``}}}
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    24
\renewcommand{\isachardoublequoteclose}{\mbox{\upshape{''}}}
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    25
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    26
\hyphenation{isa-belle}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    27
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    28
\isadroptag{theory}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    29
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    30
\title{%\includegraphics[scale=0.5]{isabelle_hol} \\[4ex]
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    31
Defining (Co)datatypes in Isabelle/HOL}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    32
\author{\hbox{} \\
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    33
Jasmin Christian Blanchette \\
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    34
Andrei Popescu \\
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    35
Dmitriy Traytel \\
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    36
{\normalsize Institut f\"ur Informatik, Technische Universit\"at M\"unchen} \\
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    37
\hbox{}}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    38
\begin{document}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    39
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    40
\maketitle
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    41
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    42
\begin{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    43
\noindent
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    44
This tutorial describes how to use the new package for defining datatypes and
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    45
codatatypes in Isabelle/HOL. The package provides four main user-level commands:
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    46
\cmd{datatype\_new}, \cmd{codatatype}, \cmd{primrec\_new}, and \cmd{primcorec}.
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    47
The commands suffixed by \cmd{\_new} are intended to subsume, and eventually
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    48
replace, the corresponding commands from the old datatype package.
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    49
\end{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    50
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    51
\tableofcontents
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    52
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    53
\input{Datatypes.tex}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    54
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    55
\let\em=\sl
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    56
\bibliography{manual}{}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    57
\bibliographystyle{abbrv}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    58
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    59
\end{document}