doc-src/TutorialI/Misc/appendix.thy
author haftmann
Tue, 18 Sep 2007 11:06:22 +0200
changeset 24629 65947eb930fa
parent 24585 c359896d0f48
child 31677 799aecc0df56
permissions -rw-r--r--
(reverted to previous version)
nipkow@10994
     1
(*<*)
haftmann@24629
     2
theory appendix imports Main begin;
nipkow@10994
     3
(*>*)
nipkow@10994
     4
nipkow@10994
     5
text{*
nipkow@10994
     6
\begin{table}[htbp]
nipkow@10994
     7
\begin{center}
nipkow@10994
     8
\begin{tabular}{lll}
nipkow@10994
     9
Constant & Type & Syntax \\
nipkow@10994
    10
\hline
nipkow@12332
    11
@{text 0} & @{text "'a::zero"} \\
nipkow@12332
    12
@{text 1} & @{text "'a::one"} \\
nipkow@10994
    13
@{text"+"} & @{text "('a::plus) \<Rightarrow> 'a \<Rightarrow> 'a"} & (infixl 65) \\
nipkow@10994
    14
@{text"-"} & @{text "('a::minus) \<Rightarrow> 'a \<Rightarrow> 'a"} &  (infixl 65) \\
nipkow@10994
    15
@{text"-"} & @{text "('a::minus) \<Rightarrow> 'a"} \\
nipkow@10994
    16
@{text"*"} & @{text "('a::times) \<Rightarrow> 'a \<Rightarrow> 'a"} & (infixl 70) \\
nipkow@10994
    17
@{text div} & @{text "('a::div) \<Rightarrow> 'a \<Rightarrow> 'a"} & (infixl 70) \\
nipkow@10994
    18
@{text mod} & @{text "('a::div) \<Rightarrow> 'a \<Rightarrow> 'a"} & (infixl 70) \\
nipkow@10994
    19
@{text dvd} & @{text "('a::times) \<Rightarrow> 'a \<Rightarrow> bool"} & (infixl 50) \\
nipkow@10994
    20
@{text"/"}  & @{text "('a::inverse) \<Rightarrow> 'a \<Rightarrow> 'a"} & (infixl 70) \\
nipkow@10994
    21
@{text"^"} & @{text "('a::power) \<Rightarrow> nat \<Rightarrow> 'a"} & (infixr 80) \\
nipkow@10994
    22
@{term abs} &  @{text "('a::minus) \<Rightarrow> 'a"} & ${\mid} x {\mid}$\\
nipkow@10994
    23
@{text"\<le>"} & @{text "('a::ord) \<Rightarrow> 'a \<Rightarrow> bool"} & (infixl 50) \\
nipkow@10994
    24
@{text"<"} & @{text "('a::ord) \<Rightarrow> 'a \<Rightarrow> bool"} & (infixl 50) \\
haftmann@24629
    25
@{term min} &  @{text "('a::ord) \<Rightarrow> 'a \<Rightarrow> 'a"} \\
haftmann@24629
    26
@{term max} &  @{text "('a::ord) \<Rightarrow> 'a \<Rightarrow> 'a"} \\
haftmann@24629
    27
@{term Least} & @{text "('a::ord \<Rightarrow> bool) \<Rightarrow> 'a"} &
haftmann@24629
    28
@{text LEAST}$~x.~P$
nipkow@10994
    29
\end{tabular}
haftmann@24629
    30
\caption{Overloaded Constants in HOL}
nipkow@10994
    31
\label{tab:overloading}
nipkow@10994
    32
\end{center}
nipkow@10994
    33
\end{table}
nipkow@10994
    34
*}
nipkow@10994
    35
nipkow@10994
    36
(*<*)
nipkow@10994
    37
end
nipkow@10994
    38
(*>*)