doc-src/Functions/functions.tex
author wenzelm
Sat, 22 May 2010 20:10:11 +0200
changeset 37061 026504e21088
parent 31256 cf75908fd3c3
child 42511 bf89455ccf9d
permissions -rw-r--r--
refrain from using bold within the term language -- looks odd in Lobo with error/warning background;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
     1
25092
1d7616d74095 removed funny formatting
krauss
parents: 23805
diff changeset
     2
\documentclass[a4paper,fleqn]{article}
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
     3
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
     4
\usepackage{latexsym,graphicx}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
     5
\usepackage[refpage]{nomencl}
30226
2f4684e2ea95 more canonical directory structure of manuals
haftmann
parents: 29750
diff changeset
     6
\usepackage{../iman,../extra,../isar,../proof}
2f4684e2ea95 more canonical directory structure of manuals
haftmann
parents: 29750
diff changeset
     7
\usepackage{../isabelle,../isabellesym}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
     8
\usepackage{style}
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
     9
\usepackage{mathpartir}
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    10
\usepackage{amsthm}
30226
2f4684e2ea95 more canonical directory structure of manuals
haftmann
parents: 29750
diff changeset
    11
\usepackage{../pdfsetup}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    12
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    13
\newcommand{\cmd}[1]{\isacommand{#1}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    14
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    15
\newcommand{\isasymINFIX}{\cmd{infix}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    16
\newcommand{\isasymLOCALE}{\cmd{locale}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    17
\newcommand{\isasymINCLUDES}{\cmd{includes}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    18
\newcommand{\isasymDATATYPE}{\cmd{datatype}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    19
\newcommand{\isasymDEFINES}{\cmd{defines}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    20
\newcommand{\isasymNOTES}{\cmd{notes}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    21
\newcommand{\isasymCLASS}{\cmd{class}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    22
\newcommand{\isasymINSTANCE}{\cmd{instance}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    23
\newcommand{\isasymLEMMA}{\cmd{lemma}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    24
\newcommand{\isasymPROOF}{\cmd{proof}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    25
\newcommand{\isasymQED}{\cmd{qed}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    26
\newcommand{\isasymFIX}{\cmd{fix}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    27
\newcommand{\isasymASSUME}{\cmd{assume}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    28
\newcommand{\isasymSHOW}{\cmd{show}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    29
\newcommand{\isasymNOTE}{\cmd{note}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    30
\newcommand{\isasymCODEGEN}{\cmd{code\_gen}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    31
\newcommand{\isasymPRINTCODETHMS}{\cmd{print\_codethms}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    32
\newcommand{\isasymFUN}{\cmd{fun}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    33
\newcommand{\isasymFUNCTION}{\cmd{function}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    34
\newcommand{\isasymPRIMREC}{\cmd{primrec}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    35
\newcommand{\isasymRECDEF}{\cmd{recdef}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    36
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    37
\newcommand{\qt}[1]{``#1''}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    38
\newcommand{\qtt}[1]{"{}{#1}"{}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    39
\newcommand{\qn}[1]{\emph{#1}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    40
\newcommand{\strong}[1]{{\bfseries #1}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    41
\newcommand{\fixme}[1][!]{\strong{FIXME: #1}}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    42
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    43
\newtheorem{exercise}{Exercise}{\bf}{\itshape}
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    44
%\newtheorem*{thmstar}{Theorem}{\bf}{\itshape}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    45
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    46
\hyphenation{Isabelle}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    47
\hyphenation{Isar}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    48
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    49
\isadroptag{theory}
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    50
\title{Defining Recursive Functions in Isabelle/HOL}
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    51
\author{Alexander Krauss}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    52
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    53
\isabellestyle{tt}
23188
595a0e24bd8e updated
krauss
parents: 23003
diff changeset
    54
\renewcommand{\isastyletxt}{\isastyletext}% use same formatting for txt and text
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    55
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    56
\begin{document}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    57
23805
953eb3c5f793 updated
krauss
parents: 23188
diff changeset
    58
\date{\ \\}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    59
\maketitle
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    60
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    61
\begin{abstract}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    62
  This tutorial describes the use of the new \emph{function} package,
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    63
	which provides general recursive function definitions for Isabelle/HOL.
23188
595a0e24bd8e updated
krauss
parents: 23003
diff changeset
    64
	We start with very simple examples and then gradually move on to more
595a0e24bd8e updated
krauss
parents: 23003
diff changeset
    65
	advanced topics such as manual termination proofs, nested recursion,
23805
953eb3c5f793 updated
krauss
parents: 23188
diff changeset
    66
	partiality, tail recursion and congruence rules.
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    67
\end{abstract}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    68
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    69
%\thispagestyle{empty}\clearpage
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    70
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    71
%\pagenumbering{roman}
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    72
%\clearfirst
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    73
23003
4b0bf04a4d68 updated
krauss
parents: 21212
diff changeset
    74
\input{intro.tex}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    75
\input{Thy/document/Functions.tex}
23805
953eb3c5f793 updated
krauss
parents: 23188
diff changeset
    76
%\input{conclusion.tex}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    77
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    78
\begingroup
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    79
%\tocentry{\bibname}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    80
\bibliographystyle{plain} \small\raggedright\frenchspacing
30226
2f4684e2ea95 more canonical directory structure of manuals
haftmann
parents: 29750
diff changeset
    81
\bibliography{../manual}
21212
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    82
\endgroup
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    83
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    84
\end{document}
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    85
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    86
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    87
%%% Local Variables: 
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    88
%%% mode: latex
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    89
%%% TeX-master: t
547224bf9348 Added a (stub of a) function tutorial
krauss
parents:
diff changeset
    90
%%% End: