src/Doc/Datatypes/document/root.tex
author blanchet
Wed, 11 Sep 2013 15:22:43 +0200
changeset 53534 de2027f9aff3
parent 53491 2479b39d9d09
child 53544 2176a7e40786
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}
52822
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    13
\usepackage{railsetup}
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    14
\usepackage{framed}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    15
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    16
\newbox\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    17
\setbox\boxA=\hbox{\ }
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    18
\parindent=4\wd\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    19
52824
b7a83845bc93 more (co)datatype documentation
blanchet
parents: 52822
diff changeset
    20
\newcommand{\keyw}[1]{\isacommand{#1}}
53534
de2027f9aff3 more (co)datatype documentation
blanchet
parents: 53491
diff changeset
    21
\newcommand{\synt}[1]{\textit{#1}}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    22
53491
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    23
%\renewcommand{\isactrlsub}[1]{\/$\sb{\mathrm{#1}}$}
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    24
\renewcommand{\isactrlsub}[1]{\/$\sb{#1}$}
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    25
\renewcommand{\isadigit}[1]{\/\ensuremath{\mathrm{#1}}}
52822
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    26
\renewcommand{\isacharprime}{\isamath{{'}\mskip-2mu}}
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    27
\renewcommand{\isacharunderscore}{\mbox{\_}}
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    28
\renewcommand{\isacharunderscorekeyword}{\mbox{\_}}
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    29
\renewcommand{\isachardoublequote}{\mbox{\upshape{``}}}
53028
a1e64c804c35 more (co)datatype documentation
blanchet
parents: 52841
diff changeset
    30
\renewcommand{\isachardoublequoteopen}{\mbox{\upshape{``}\kern.1ex}}
a1e64c804c35 more (co)datatype documentation
blanchet
parents: 52841
diff changeset
    31
\renewcommand{\isachardoublequoteclose}{\/\kern.15ex\mbox{\upshape{''}}}
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    32
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    33
\hyphenation{isa-belle}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    34
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    35
\isadroptag{theory}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    36
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    37
\title{%\includegraphics[scale=0.5]{isabelle_hol} \\[4ex]
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    38
Defining (Co)datatypes in Isabelle/HOL}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    39
\author{\hbox{} \\
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    40
Jasmin Christian Blanchette \\
53028
a1e64c804c35 more (co)datatype documentation
blanchet
parents: 52841
diff changeset
    41
Lorenz Panny \\
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    42
Andrei Popescu \\
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    43
Dmitriy Traytel \\
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    44
{\normalsize Institut f\"ur Informatik, Technische Universit\"at M\"unchen} \\
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    45
\hbox{}}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    46
\begin{document}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    47
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    48
\maketitle
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    49
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    50
\begin{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    51
\noindent
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    52
This tutorial describes how to use the new package for defining datatypes and
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    53
codatatypes in Isabelle/HOL. The package provides four main user-level commands:
52824
b7a83845bc93 more (co)datatype documentation
blanchet
parents: 52822
diff changeset
    54
\keyw{datatype\_new}, \keyw{codatatype}, \keyw{primrec\_new}, and \keyw{primcorec}.
b7a83845bc93 more (co)datatype documentation
blanchet
parents: 52822
diff changeset
    55
The commands suffixed by \keyw{\_new} are intended to subsume, and eventually
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    56
replace, the corresponding commands from the old datatype package.
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    57
\end{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    58
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    59
\tableofcontents
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    60
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    61
\input{Datatypes.tex}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    62
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    63
\let\em=\sl
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    64
\bibliography{manual}{}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    65
\bibliographystyle{abbrv}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    66
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    67
\end{document}