\section{peanotest.c File Reference}
\label{peanotest_8c}\index{peanotest.c@{peanotest.c}}
Test driver for Peano arithmetic. It uses the CUnit framework. 


{\tt \#include $<$CUnit/CUnit.h$>$}\par
{\tt \#include $<$CUnit/Test\-DB.h$>$}\par
{\tt \#include $<$CUnit/Curses.h$>$}\par
{\tt \#include \char`\"{}peano.h\char`\"{}}\par


Include dependency graph for peanotest.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=195pt]{peanotest_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf init} (void)
\item 
int {\bf clean} (void)
\item 
void {\bf self\_\-consistent\_\-eq} (void)
\item 
void {\bf self\_\-consistent\_\-sum} (void)
\item 
void {\bf model\_\-consistent\_\-sum} (void)
\item 
void {\bf run\-Tests} (void)
\item 
int {\bf main} ()
\end{CompactItemize}


\subsection{Detailed Description}
Test driver for Peano arithmetic. It uses the CUnit framework.









\subsection{Function Documentation}
\index{peanotest.c@{peanotest.c}!clean@{clean}}
\index{clean@{clean}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int clean (void)}\label{peanotest_8c_a1}


\index{peanotest.c@{peanotest.c}!init@{init}}
\index{init@{init}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int init (void)}\label{peanotest_8c_a0}


initialization and cleanup functions \index{peanotest.c@{peanotest.c}!main@{main}}
\index{main@{main}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int main ()}\label{peanotest_8c_a6}


\index{peanotest.c@{peanotest.c}!model_consistent_sum@{model\_\-consistent\_\-sum}}
\index{model_consistent_sum@{model\_\-consistent\_\-sum}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void model\_\-consistent\_\-sum (void)}\label{peanotest_8c_a4}


Model theoretic consistency

The second family is inspired (and never gets to it) on model theoretic  proofs of faithfulness. We choose the nonnegative integers as a model and try to prove that the model satisfies our Peano formalization. Everything under the limitation of a framework (C language) that must be computable.) \index{peanotest.c@{peanotest.c}!runTests@{runTests}}
\index{runTests@{runTests}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void run\-Tests (void)}\label{peanotest_8c_a5}


Starting up the tests \index{peanotest.c@{peanotest.c}!self_consistent_eq@{self\_\-consistent\_\-eq}}
\index{self_consistent_eq@{self\_\-consistent\_\-eq}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void self\_\-consistent\_\-eq (void)}\label{peanotest_8c_a2}


Self consistency family of tests

The first group of tests checks Peano for consistency. It consists of tests of  \begin{CompactItemize}
\item 
 consistency of equality and object constructors \item 
 consistency of different implementations of logics \end{CompactItemize}
\index{peanotest.c@{peanotest.c}!self_consistent_sum@{self\_\-consistent\_\-sum}}
\index{self_consistent_sum@{self\_\-consistent\_\-sum}!peanotest.c@{peanotest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void self\_\-consistent\_\-sum (void)}\label{peanotest_8c_a3}


