src/Doc/Datatypes/document/root.tex
author wenzelm
Sat, 05 Apr 2014 15:03:40 +0200
changeset 56421 1ffd7eaa778b
parent 55355 b5b64d9d1002
child 57079 aa7f051ba6ab
permissions -rw-r--r--
updated to jedit_build-20140405: Code2HTML.jar, CommonControls.jar, Console.jar, kappalayout.jar, Navigator.jar, SideKick.jar, doc with jEdit manuals (ant dist-manuals);
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
55290
3951ced4156c searchable underscores
blanchet
parents: 54073
diff changeset
     2
\usepackage[T1]{fontenc}
55355
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
     3
\usepackage{amsmath}
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
     4
\usepackage{cite}
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
     5
\usepackage{enumitem}
53647
e78ebb290dd6 more (co)data docs
blanchet
parents: 53621
diff changeset
     6
\usepackage{footmisc}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     7
\usepackage{latexsym}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     8
\usepackage{graphicx}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
     9
\usepackage{iman}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    10
\usepackage{extra}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    11
\usepackage{isar}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    12
\usepackage{isabelle}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    13
\usepackage{isabellesym}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    14
\usepackage{style}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    15
\usepackage{pdfsetup}
52822
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    16
\usepackage{railsetup}
ae938ac9a721 more (co)datatype docs
blanchet
parents: 52806
diff changeset
    17
\usepackage{framed}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    18
53552
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    19
\setcounter{secnumdepth}{3}
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    20
\setcounter{tocdepth}{3}
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    21
55290
3951ced4156c searchable underscores
blanchet
parents: 54073
diff changeset
    22
\renewcommand\_{\hbox{\textunderscore\kern-.05ex}}
3951ced4156c searchable underscores
blanchet
parents: 54073
diff changeset
    23
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    24
\newbox\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    25
\setbox\boxA=\hbox{\ }
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    26
\parindent=4\wd\boxA
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    27
53621
9c3a80af72ff more (co)data doc
blanchet
parents: 53619
diff changeset
    28
\newcommand\blankline{\vskip-.25\baselineskip}
53552
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    29
53621
9c3a80af72ff more (co)data doc
blanchet
parents: 53619
diff changeset
    30
\newenvironment{indentblock}{\list{}{\setlength{\leftmargin}{\parindent}}\item[]}{\endlist}
53552
eed6efba4e3f more (co)datatype docs
blanchet
parents: 53544
diff changeset
    31
53617
da5e1887d7a7 more (co)data doc
blanchet
parents: 53552
diff changeset
    32
\newcommand{\keyw}[1]{\textbf{#1}}
53534
de2027f9aff3 more (co)datatype documentation
blanchet
parents: 53491
diff changeset
    33
\newcommand{\synt}[1]{\textit{#1}}
53544
2176a7e40786 more (co)data docs
blanchet
parents: 53534
diff changeset
    34
\newcommand{\hthm}[1]{\textbf{\textit{#1}}}
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    35
53491
2479b39d9d09 more docs
blanchet
parents: 53028
diff changeset
    36
%\renewcommand{\isactrlsub}[1]{\/$\sb{\mathrm{#1}}$}
55355
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    37
\renewcommand\isactrlsub[1]{\/$\sb{#1}$}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    38
\renewcommand\isadigit[1]{\/\ensuremath{\mathrm{#1}}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    39
\renewcommand\isacharprime{\isamath{{'}\mskip-2mu}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    40
\renewcommand\isacharunderscore{\mbox{\_}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    41
\renewcommand\isacharunderscorekeyword{\mbox{\_}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    42
\renewcommand\isachardoublequote{\mbox{\upshape{``}}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    43
\renewcommand\isachardoublequoteopen{\mbox{\upshape{``}\kern.1ex}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    44
\renewcommand\isachardoublequoteclose{\/\kern.15ex\mbox{\upshape{''}}}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    45
\renewcommand\isacharverbatimopen{\isacharbraceleft\isacharasterisk}
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    46
\renewcommand\isacharverbatimclose{\isacharasterisk\isacharbraceright}
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    47
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    48
\hyphenation{isa-belle}
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
\isadroptag{theory}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    51
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    52
\title{%\includegraphics[scale=0.5]{isabelle_hol} \\[4ex]
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    53
Defining (Co)datatypes in Isabelle/HOL}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    54
\author{\hbox{} \\
53619
27d2c98d9d9f more (co)data docs
blanchet
parents: 53617
diff changeset
    55
Jasmin Christian Blanchette,
27d2c98d9d9f more (co)data docs
blanchet
parents: 53617
diff changeset
    56
Lorenz Panny, \\
27d2c98d9d9f more (co)data docs
blanchet
parents: 53617
diff changeset
    57
Andrei Popescu, and
52805
7f2f42046361 more (co)datatype documentation
blanchet
parents: 52794
diff changeset
    58
Dmitriy Traytel \\
55355
b5b64d9d1002 more docs
blanchet
parents: 55290
diff changeset
    59
{\normalsize Fakult\"at f\"ur Informatik, Technische Universit\"at M\"unchen} \\
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    60
\hbox{}}
55290
3951ced4156c searchable underscores
blanchet
parents: 54073
diff changeset
    61
3951ced4156c searchable underscores
blanchet
parents: 54073
diff changeset
    62
\urlstyle{tt}
3951ced4156c searchable underscores
blanchet
parents: 54073
diff changeset
    63
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    64
\begin{document}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    65
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    66
\maketitle
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    67
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    68
\begin{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    69
\noindent
54073
1e4c845c1f18 reword abstract
blanchet
parents: 53753
diff changeset
    70
This tutorial describes the new package for defining datatypes and codatatypes
1e4c845c1f18 reword abstract
blanchet
parents: 53753
diff changeset
    71
in Isabelle/HOL. The package provides four main commands:
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
    72
\keyw{datatype\_new}, \keyw{codatatype}, \keyw{primrec\_new},
54073
1e4c845c1f18 reword abstract
blanchet
parents: 53753
diff changeset
    73
and \keyw{primcorec}. The commands suffixed by
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
    74
\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
    75
commands from the old datatype package.
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    76
\end{abstract}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    77
52794
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    78
\tableofcontents
aae782070611 more (co)datatype documentation
blanchet
parents: 52792
diff changeset
    79
52792
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    80
\input{Datatypes.tex}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    81
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    82
\let\em=\sl
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    83
\bibliography{manual}{}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    84
\bibliographystyle{abbrv}
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    85
3e651be14fcd sketched documentation for new (co)datatype package
blanchet
parents:
diff changeset
    86
\end{document}