doc-src/TutorialI/Datatype/document/Fundata.tex
changeset 10187 0376cccd9118
parent 10171 59d6633835fa
child 10420 ef006735bee8
equal deleted inserted replaced
10186:499637e8f2c6 10187:0376cccd9118
    10 \isa{bool}, the result is a binary tree; if it is instantiated to
    10 \isa{bool}, the result is a binary tree; if it is instantiated to
    11 \isa{nat}, we have an infinitely branching tree because each node
    11 \isa{nat}, we have an infinitely branching tree because each node
    12 has as many subtrees as there are natural numbers. How can we possibly
    12 has as many subtrees as there are natural numbers. How can we possibly
    13 write down such a tree? Using functional notation! For example, the term
    13 write down such a tree? Using functional notation! For example, the term
    14 \begin{isabelle}%
    14 \begin{isabelle}%
    15 \ \ \ \ \ Branch\ \isadigit{0}\ {\isacharparenleft}{\isasymlambda}i{\isachardot}\ Branch\ i\ {\isacharparenleft}{\isasymlambda}n{\isachardot}\ Tip{\isacharparenright}{\isacharparenright}%
    15 \ \ \ \ \ Branch\ {\isadigit{0}}\ {\isacharparenleft}{\isasymlambda}i{\isachardot}\ Branch\ i\ {\isacharparenleft}{\isasymlambda}n{\isachardot}\ Tip{\isacharparenright}{\isacharparenright}%
    16 \end{isabelle}
    16 \end{isabelle}
    17 of type \isa{{\isacharparenleft}nat{\isacharcomma}\ nat{\isacharparenright}\ bigtree} is the tree whose
    17 of type \isa{{\isacharparenleft}nat{\isacharcomma}\ nat{\isacharparenright}\ bigtree} is the tree whose
    18 root is labeled with 0 and whose $i$th subtree is labeled with $i$ and
    18 root is labeled with 0 and whose $i$th subtree is labeled with $i$ and
    19 has merely \isa{Tip}s as further subtrees.
    19 has merely \isa{Tip}s as further subtrees.
    20 
    20