src/Doc/Datatypes/document/root.tex
author blanchet
Fri, 20 Sep 2013 16:32:27 +0200
changeset 53753 ae7f50e70c09
parent 53647 e78ebb290dd6
child 54073 1e4c845c1f18
permissions -rw-r--r--
renamed "primcorec" to "primcorecursive", to open the door to a 'theory -> theory' command called "primcorec" (cf. "fun" vs. "function")
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}
53647
e78ebb290dd6 more (co)data docs
blanchet
parents: 53621
diff changeset
     4
\usepackage{footmisc}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     5
\usepackage{latexsym}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     6
\usepackage{graphicx}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     7
\usepackage{iman}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     8
\usepackage{extra}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     9
\usepackage{isar}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    10
\usepackage{isabelle}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    11
\usepackage{isabellesym}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    12
\usepackage{style}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    13
\usepackage{pdfsetup}
52822
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    14
\usepackage{railsetup}
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    15
\usepackage{framed}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    16
53552
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    17
\setcounter{secnumdepth}{3}
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    18
\setcounter{tocdepth}{3}
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    19
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    20
\newbox\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    21
\setbox\boxA=\hbox{\ }
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    22
\parindent=4\wd\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    23
53621
9c3a80af72ff more (co)data doc
blanchet
parents: 53619
diff changeset
    24
\newcommand\blankline{\vskip-.25\baselineskip}
53552
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    25
53621
9c3a80af72ff more (co)data doc
blanchet
parents: 53619
diff changeset
    26
\newenvironment{indentblock}{\list{}{\setlength{\leftmargin}{\parindent}}\item[]}{\endlist}
53552
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    27
53617
da5e1887d7a7 more (co)data doc
blanchet
parents: 53552
diff changeset
    28
\newcommand{\keyw}[1]{\textbf{#1}}
53534
de2027f9aff3 more (co)datatype documentation
blanchet
parents: 53491
diff changeset
    29
\newcommand{\synt}[1]{\textit{#1}}
53544
2176a7e40786 more (co)data docs
blanchet
parents: 53534
diff changeset
    30
\newcommand{\hthm}[1]{\textbf{\textit{#1}}}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    31
53491
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    32
%\renewcommand{\isactrlsub}[1]{\/$\sb{\mathrm{#1}}$}
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    33
\renewcommand{\isactrlsub}[1]{\/$\sb{#1}$}
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    34
\renewcommand{\isadigit}[1]{\/\ensuremath{\mathrm{#1}}}
52822
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    35
\renewcommand{\isacharprime}{\isamath{{'}\mskip-2mu}}
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    36
\renewcommand{\isacharunderscore}{\mbox{\_}}
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    37
\renewcommand{\isacharunderscorekeyword}{\mbox{\_}}
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    38
\renewcommand{\isachardoublequote}{\mbox{\upshape{``}}}
53028
a1e64c804c35 more (co)datatype documentation
blanchet
parents: 52841
diff changeset
    39
\renewcommand{\isachardoublequoteopen}{\mbox{\upshape{``}\kern.1ex}}
a1e64c804c35 more (co)datatype documentation
blanchet
parents: 52841
diff changeset
    40
\renewcommand{\isachardoublequoteclose}{\/\kern.15ex\mbox{\upshape{''}}}
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    41
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    42
\hyphenation{isa-belle}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    43
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    44
\isadroptag{theory}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    45
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    46
\title{%\includegraphics[scale=0.5]{isabelle_hol} \\[4ex]
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    47
Defining (Co)datatypes in Isabelle/HOL}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    48
\author{\hbox{} \\
53619
27d2c98d9d9f more (co)data docs
blanchet
parents: 53617
diff changeset
    49
Jasmin Christian Blanchette,
27d2c98d9d9f more (co)data docs
blanchet
parents: 53617
diff changeset
    50
Lorenz Panny, \\
27d2c98d9d9f more (co)data docs
blanchet
parents: 53617
diff changeset
    51
Andrei Popescu, and
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    52
Dmitriy Traytel \\
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    53
{\normalsize Institut f\"ur Informatik, Technische Universit\"at M\"unchen} \\
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    54
\hbox{}}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    55
\begin{document}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    56
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    57
\maketitle
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
\begin{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    60
\noindent
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    61
This tutorial describes how to use the new package for defining datatypes and
53753
ae7f50e70c09 renamed "primcorec" to "primcorecursive", to open the door to a 'theory -> theory' command called "primcorec" (cf. "fun" vs. "function")
blanchet
parents: 53647
diff changeset
    62
codatatypes in Isabelle/HOL. The package provides five main commands:
ae7f50e70c09 renamed "primcorec" to "primcorecursive", to open the door to a 'theory -> theory' command called "primcorec" (cf. "fun" vs. "function")
blanchet
parents: 53647
diff changeset
    63
\keyw{datatype\_new}, \keyw{codatatype}, \keyw{primrec\_new},
ae7f50e70c09 renamed "primcorec" to "primcorecursive", to open the door to a 'theory -> theory' command called "primcorec" (cf. "fun" vs. "function")
blanchet
parents: 53647
diff changeset
    64
\keyw{primcorecursive}, and \keyw{primcorec}. The commands suffixed by
ae7f50e70c09 renamed "primcorec" to "primcorecursive", to open the door to a 'theory -> theory' command called "primcorec" (cf. "fun" vs. "function")
blanchet
parents: 53647
diff changeset
    65
\keyw{\_new} are intended to subsume, and eventually replace, the corresponding
ae7f50e70c09 renamed "primcorec" to "primcorecursive", to open the door to a 'theory -> theory' command called "primcorec" (cf. "fun" vs. "function")
blanchet
parents: 53647
diff changeset
    66
commands from the old datatype package.
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    67
\end{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    68
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    69
\tableofcontents
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    70
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    71
\input{Datatypes.tex}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    72
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    73
\let\em=\sl
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    74
\bibliography{manual}{}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    75
\bibliographystyle{abbrv}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    76
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    77
\end{document}