doc-src/TutorialI/Inductive/inductive.tex
author blanchet
Fri, 06 Mar 2009 19:37:31 +0100
changeset 30314 853778f6ef7d
parent 25330 15bf0f47a87d
child 48522 708278fc2dff
permissions -rw-r--r--
Added "expect" option to Refute, like in Nitpick, that allows to write regression tests. Also replaced calls to "Output.immediate_output" with "priority" or "tracing", because "immediate_output" causes some problems (as explained by Makarius to Sascha).

\chapter{Inductively Defined Sets} \label{chap:inductive}
\index{inductive definitions|(}

This chapter is dedicated to the most important definition principle after
recursive functions and datatypes: inductively defined sets.

We start with a simple example: the set of even numbers.  A slightly more
complicated example, the reflexive transitive closure, is the subject of
{\S}\ref{sec:rtc}. In particular, some standard induction heuristics are
discussed. Advanced forms of inductive definitions are discussed in
{\S}\ref{sec:adv-ind-def}. To demonstrate the versatility of inductive
definitions, the chapter closes with a case study from the realm of
context-free grammars. The first two sections are required reading for anybody
interested in mathematical modelling.

\begin{warn}
Predicates can also be defined inductively.
See {\S}\ref{sec:ind-predicates}.
\end{warn}

\input{Inductive/document/Even}
\input{Inductive/document/Mutual}
\input{Inductive/document/Star}

\section{Advanced Inductive Definitions}
\label{sec:adv-ind-def}
\input{Inductive/document/Advanced}

\input{Inductive/document/AB}

\index{inductive definitions|)}