File: odd_even.tex

package info (click to toggle)
hol88 2.02.19940316-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 63,052 kB
  • ctags: 19,365
  • sloc: ml: 199,939; ansic: 9,300; sh: 7,118; makefile: 6,076; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (21 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\section{The Theory {\tt odd\_even}}

The theory \ml{odd\_even}\index{odd_even, theory@{\ptt odd\_even}, theory}
contains theorems about the predicates \ml{ODD}\index{ODD@{\ptt
ODD}} and \ml{EVEN}\index{EVEN@{\ptt EVEN}} which test for odd and even
numbers, respectively. 
The theorems that have been pre-proved in this theory include but are not
restricted to the following:

\begin{hol}
\index{EVEN\_ODD\_0@{\ptt EVEN\_ODD\_0}}
\index{EVEN\_ODD\_SUC@{\ptt EVEN\_ODD\_SUC}}
\index{EVEN\_IMPL\_MULT@{\ptt EVEN\_IMPL\_MULT}}
\begin{verbatim}
  EVEN_ODD_0        |- EVEN 0 /\ ~ODD 0

  EVEN_ODD_SUC      |- !n.  (EVEN(SUC n) = ODD n) /\
                            (ODD(SUC n) = EVEN n)

  EVEN_IMPL_MULT    |- !n m. EVEN n \/ EVEN m ==> EVEN(n * m)
\end{verbatim}\end{hol}