% -*- TeX:EN -*-
%%% ====================================================================
%%% @LaTeX-file    qedeq_set_theory_v1
%%% Generated from http://www.qedeq.org/0_04_00/doc/math/qedeq_set_theory_v1.xml
%%% Generated at   2010-12-28 20:42:52.895
%%% ====================================================================

%%% Permission is granted to copy, distribute and/or modify this document
%%% under the terms of the GNU Free Documentation License, Version 1.2
%%% or any later version published by the Free Software Foundation;
%%% with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

\documentclass[a4paper,german,10pt,twoside]{book}
\usepackage[english]{babel}
\usepackage{makeidx}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{color}
\usepackage[bookmarks,bookmarksnumbered,bookmarksopen,
   colorlinks,linkcolor=webgreen,pagebackref]{hyperref}
\definecolor{webgreen}{rgb}{0,.5,0}
\usepackage{graphicx}
\usepackage{xr}
\usepackage{epsfig,longtable}
\usepackage{tabularx}

\newtheorem{thm}{Theorem}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{ax}{Axiom}
\newtheorem{rul}{Rule}

\theoremstyle{definition}
\newtheorem{defn}{Definition}
\newtheorem{idefn}[defn]{Initial Definition}

\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}
\newtheorem*{notation}{Notation}

\addtolength{\textheight}{7\baselineskip}
\addtolength{\topmargin}{-5\baselineskip}

\setlength{\parindent}{0pt}

\frenchspacing \sloppy

\makeindex


\title{Axiomatic Set Theory}
\author{
Michael Meyling
}

\begin{document}

\maketitle

\setlength{\parskip}{5pt plus 2pt minus 1pt}
\mbox{}
\vfill

\par
The source for this document can be found here:
\par
\url{http://www.qedeq.org/0_04_00/doc/math/qedeq_set_theory_v1.xml}

\par
Copyright by the authors. All rights reserved.
\par
If you have any questions, suggestions or want to add something to the list of modules that use this one, please send an email to the address \href{mailto:mime@qedeq.org}{mime@qedeq.org}

\par
The authors of this document are:
Michael Meyling \href{mailto:michael@meyling.com}{michael@meyling.com}

\setlength{\parskip}{0pt}
\tableofcontents

\setlength{\parskip}{5pt plus 2pt minus 1pt}

\chapter*{Preface\label{ch:preface}} \label{chapter0} \hypertarget{chapter0}{}
\addcontentsline{toc}{chapter}{Preface\label{ch:preface}}

Mathematics is a science with a structure that achieved enormous dimensions in the course of time. This huge stronghold has only a small set theoretic foundation and its firmness rests upon simple predicate calculus mortar. In principle the assembly could be comprehended by any mathematician. From every newest turret of mathematical cognition each path of logical dependency could be followed all the way down to its set theoretic roots.

\par
This document wants to provide some help to accomplish this task. What we aim at is to get an understandable
presentation of the set theoretic roots. But despite all comprehensibility it is possible to drill very deep into details. Even into the level of a formal proof. For that purpose this document will exist in different detail levels. The original source of this document is written in a formal language. So it is possible to prove the propositions automatically with a computer program.

\par
Lets start by the roots\ldots

\par
This document is not finished and is updated from time to time. Especially at the locations marked with {``+++''} additions or changes will be made.

\par
I am deeply grateful to my wife \emph{Gesine~Dr{\"a}ger} and our son \emph{Lennart} for their support and patience.

\par
\vspace*{1cm} Hamburg, december 2010 \\
\hspace*{\fill} Michael Meyling

%% end of chapter Preface\label{ch:preface}

\chapter*{Introduction\label{ch:introduction}} \label{chapter1} \hypertarget{chapter1}{}
\addcontentsline{toc}{chapter}{Introduction\label{ch:introduction}}

Within this document we use the results of \url{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}~\cite{l}.
After mathematical logic has provided us with the methods of reasoning we start with a very basic theory. Set theory deals with objects and their collections. This theory is interesting for two reasons. First, nearly all mathematical fields use it. Second, every mathematical statement or proof could be cast into formulas within set theory. Number theory, algebra, analysis an all other theories could be constructed within.

\par          
This document contains the mathematical foundation of set theory. Goal is the presentation of elementary results which are needed in other mathematical disciplines. After the basics the {\emph boolean algebra of classes} is in focus. Next are some thoughts about \emph{relations} and \emph{functions}. An important achievement is the definition of the \emph{natural~ numbers} and their fulfillment of the \emph{Peano axioms}. Also the concept of \emph{recursion} is discussed. Furthermore the axiom of choice is examined. At the end the continuum is thematised.

\par
Although the presentation is axiomatic the results shall match the mathematical usage. Therefore the set theoretic axiom system of \emph{A.~P.~Morse} and \emph{J.~L.~Kelley} (MK\index{MK}) was chosen. The presentation is very much along the lines of \emph{E.~J.~Lemmon}s excellent and strongly recommended book~\cite{lemmon}.

%% end of chapter Introduction\label{ch:introduction}

\chapter{Basics} \label{chapter2} \hypertarget{chapter2}{}

In this chapter we start with the very basic axioms and definitions of set theory. We shall make no attempt to introduce a formal language\footnote{Despite of this, in the original text of this document the formulas of axioms, definitions and propositions are written in a formal language. The original text is a XML file with a syntax defined by the XSD \url{http://www.qedeq.org/current/xml/qedeq.xsd}. A more detailed description of the formula language is given in \url{http://www.qedeq.org/current/doc/project/qedeq_logic_language_en.pdf}.} but shall be content with the common logical operators. To be more precise: precondition is a first-order predicate calculus with identity.

\par\index{Cantor}\index{set!definition}
\emph{G.~Cantor}, who is considered the founder of set theory, gave in a publication in 1895 a description of the term \emph{set}.

\begin{quote}
 By a ``set'' we are to understand any collection into a whole $M$ of definite and separate objects $m$ of our intuition or our thought. These objects are called the ``elements'' of $M$.
\end{quote}

\par
This collection can be specified by giving a \emph{condition for membership}. Around 1900 various paradoxes in this naive set theory were discovered. These paradoxes base on giving tricky conditions for membership.

\par
There exist different ways out of those contradictions. In this text we don't restrict the condition for membership but we call the result a \emph{class}. Additional axioms allow us to call certain classes sets again. All sets are classes, but not all classes are sets. Sets are classes which are themselves members of classes, whilst a class which is not a set is a class which is not a member of any class.

\section{Classes and Sets} \label{chapter2_section0} \hypertarget{chapter2_section0}{}
Although we want to speak about \emph{sets}\index{set} at the very beginning we have \emph{classes}\index{classes}. No formal definition of a class will be given. Informally, a class is a collection of objects, the involved objects are called the \emph{elements}\index{element} or \emph{members}\index{member} of the class. 
Sets will be construed as a special kind of class.

\par
The following definitions and axioms are due to a strengthened version of \emph{von~Neumann-Bernays-G{\"o}del's} set theory (\emph{NBG}\index{NBG}). This version is called \emph{MK}\index{MK} which is short for \emph{Morse-Kelley}.

\par
The theory of sets introduced here has initial objects, called \emph{classes}. Furthermore the only predefined symbol is for a binary relation called \emph{membership}.

\begin{idefn}[Membership Operator]
\label{definition:in} \hypertarget{definition:in}{}
{\tt \tiny [\verb]definition:in]]}
$$x \in y$$

\end{idefn}

We also say ``$x$ \emph{is element of} $y$'', ``$x$ \emph{belongs to} $y$'', ``$x$ \emph{is a member of} $y$'' or ``$x$ \emph{is in} $y$''.
Beside identity this is the only predicate we start with. All other will be defined. Also no function constants are initially given. Later on we will successively fix their meaning.


\par
Although we simply can negate the membership predicate we also want to define a shorthand notation for it.

\begin{defn}[Non Membership Operator]
\label{definition:notIn} \hypertarget{definition:notIn}{}
{\tt \tiny [\verb]definition:notIn]]}
$$x \notin y\ :\leftrightarrow \ \neg x \in y$$

\end{defn}




\par
Our first axiom states that, for any classes $x$ and $y$, if the membership of $x$ and $y$ are the same, then $x$ and $y$ are the same.

\begin{ax}[Extensionality\index{axiom!of extensionality}]
\label{axiom:extensionality} \hypertarget{axiom:extensionality}{}
{\tt \tiny [\verb]axiom:extensionality]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\forall z\ (z \in x\ \leftrightarrow\ z \in y)\ \rightarrow\ x \ =  \ y$
\end{longtable}

\end{ax}

The classes $x$ and $y$ may be defined in entirely different ways, for example:
\par
\begin{tabularx}{\linewidth}{rcX}
  $x$ & = & class of all nonnegative integers, \\
  $y$ & = & class of all integers, that can be written as sum of four squares,
\end{tabularx}
\par
but if they have the same members, they are the same class.


\par
Now to our first proposition.
We can reverse the implication in the axiom of extensionality.

\begin{prop}
\label{theorem:extensonalityEquivalence} \hypertarget{theorem:extensonalityEquivalence}{}
{\tt \tiny [\verb]theorem:extensonalityEquivalence]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\forall z\ (z \in x\ \leftrightarrow\ z \in y)\ \leftrightarrow\ x \ =  \ y$
\end{longtable}

\end{prop}
\begin{proof}
This a simple consequence of the second identity axiom. We assume $x=y$. Then follows $\phi(x) \leftrightarrow \phi(y)$ for any predicate $\phi$. So follows $z \in x \leftrightarrow z \in y$ for any $z$. Therefore we have $\forall \ z \ z  \in x \leftrightarrow \ z \in y$. So we derived $x = y \ \rightarrow \ \forall \ z \ z  \in x \leftrightarrow \ z \in y$. Together with \hyperref[axiom:extensionality]{axiom~\ref*{axiom:extensionality}} we get the desired result.
\end{proof}

If identity were not part of our underlying logic, then we should need to take this as a definition of identity. But then another axiom is needed and the theory presentation is not so smooth for technical reasons (derivation of the identity axioms).\footnote{
  Additional to the identity definition we need the following form of the extensionality axiom: $(x = y \land x \in z) \ \rightarrow y \in z$. This is a special case of the Leibniz's replacement rule that we know already as \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{axiom:leibnizReplacement}{axiom 8}~\cite{l}. The correctness of the general rule can be proved by recursion over formula building. See also \cite{schmidt} \S 6.
  
  \par
  Alternatively one can define $(x = y \leftrightarrow (\forall z \ (x \in z \ \rightarrow \ y \in z)) \land \forall z \ (x \in z \ \rightarrow \ z \in y))$.}


\par
Now we specify \emph{sets}.

\begin{defn}[Set\index{set!definition}]
\label{definition:isSet} \hypertarget{definition:isSet}{}
{\tt \tiny [\verb]definition:isSet]]}
$$\mathfrak{M}(x)\ :\leftrightarrow \ \exists y\ x \in y$$

\end{defn}

So sets are nothing else than special classes. A class is a set iff it is a member of any class.


\par
A trivial consequence of this definition is the following equivalence.

\begin{prop}
\label{theorem:inSetEqualInSetAndIsSet} \hypertarget{theorem:inSetEqualInSetAndIsSet}{}
{\tt \tiny [\verb]theorem:inSetEqualInSetAndIsSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \in y\ \leftrightarrow\ (\mathfrak{M}(x)\ \land\ x \in y)$
\end{longtable}

\end{prop}
\begin{proof}
`$\Rightarrow$': Assume $x \in y$. It follows $\exists \ u \ x \in u$ and therefore $\mathfrak{M}(x)$ and logically $\mathfrak{M}(x) \land x \in y$.

\par
`$\Leftarrow$': From $\mathfrak{M}(x) \land x \in y$ we conclude $x \in y$.
\end{proof}




\par
Now we can rewrite the axiom of extensionality as follows.\footnote{The quantification over $z$ is restricted to sets.}

\begin{prop}
\label{theorem:extensionalitySetRestricted} \hypertarget{theorem:extensionalitySetRestricted}{}
{\tt \tiny [\verb]theorem:extensionalitySetRestricted]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \ =  \ y\ \leftrightarrow\ \forall \ \mathfrak{M}(z)\ \ (z \in x\ \leftrightarrow\ z \in y)$
\end{longtable}

\end{prop}
\begin{proof}
`$\Rightarrow$': Simulary to proof of \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}} we get the first implication by the second identity axiom.

\par
`$\Leftarrow$': 
Assume $\forall \ \mathfrak{M}(z) \ ( z \in x \ \leftrightarrow \ z \in y)$. Let $u$ be an arbitrary class. If $u \in x$ then $u$ is a set by \hyperref[definition:isSet]{definition~\ref*{definition:isSet}}, and hence by the assumption, $u \in y$. similarly $u \in y \ \rightarrow \ u \in x$. Since $u$ is arbitrary, it follows that $\forall u \ (u \in x \ \leftrightarrow \ u \in y)$. Thus by the \hyperref[axiom:extensionality]{axiom~\ref*{axiom:extensionality}}, $x = y$.
\end{proof}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $x = y$ & $\leftrightarrow$ & $\forall \ z \ ( z \in x \ \leftrightarrow \ z \in y)$
    & this is \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}} \\
          & $\leftrightarrow$ & $\forall \ z \ ( \mathfrak{M}(z) \land z \in x \ \leftrightarrow \ \mathfrak{M}(z) \land z \in y)$ 
    & \hyperref[theorem:inSetEqualInSetAndIsSet]{proposition~\ref*{theorem:inSetEqualInSetAndIsSet}} \\
          & $\leftrightarrow$ & $\forall \ z \ ( \mathfrak{M}(z) \rightarrow (z \in x \ \leftrightarrow \ z \in y))$ 
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:bh}{proposition 1 (bh)}~\cite{l} \\
          & $\leftrightarrow$ & $\forall \ \mathfrak{M}(z) \ z \in x \ \leftrightarrow \ z \in y)$ 
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{axiom:restrictedUniversalQuantifier}{axiom 11}~\cite{l} \\
\end{tabularx}
\end{proof}




\par
Our next set theoretic axiom makes it simple to create new classes. A class could be characterized by a predicate calculus formula.

\begin{ax}[Comprehension]
\label{axiom:comprehension} \hypertarget{axiom:comprehension}{}
{\tt \tiny [\verb]axiom:comprehension]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\exists x\ \forall y\ (y \in x\ \leftrightarrow\ (\mathfrak{M}(y)\ \land\ \phi(y)))$
\end{longtable}

\end{ax}

\index{NBG}By a small modification of the above axiom we could get a \emph{NBG} axiom system of set theory due to \emph{John von Neumann}, \emph{Isaak Bernays} and \emph{Kurt G{\"o}del}.\index{predicative}\index{Formula, predicative}
For that purpose we call a formula \emph{predicative}, if all of its bound subject variables are restricted to sets.
Therefore predicative formulas formalize `set properties'.\footnote{A little bit more formal: within a predicative formula all quantifier variables run over sets: $\forall \ \mathfrak{M}(x) \ \exists \ \mathfrak{M}(y) \ldots$}
If we postulate $\phi$ to be predicative we achieve a NBG~system\footnote{Some other axioms --- similar to the following --- are needed as well.}


\par
By the comprehension axiom and the axiom of extensionality a relationship between a formula $\phi(y)$ and the class defined by this formula is described. The comprehension axiom proposes the existence of at least one class, where the proposition $\mathfrak{M}(y) \land \phi(y)$ holds for all of its elements. The axiom of extensionality and the identity axioms make sure, that there is maximal one class of this kind: two classes with the same elements are equal in the sense of replacement in all appropriate propositions. In other words: there is one and only one such class.

\begin{prop}
\label{theorem:comprehension} \hypertarget{theorem:comprehension}{}
{\tt \tiny [\verb]theorem:comprehension]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\exists! x\ \forall y\ (y \in x\ \leftrightarrow\ (\mathfrak{M}(y)\ \land\ \phi(y)))$
\end{longtable}

\end{prop}
\begin{proof}
We must show:
$$
\begin{array}{rl}
\exists x                      & \forall y \ (y \in x \leftrightarrow  \ \mathfrak{M}(y) \land \phi(y)) \\
\land \ \forall u \ \forall v  & (\forall y \ (y \in u \leftrightarrow \mathfrak{M}(y) \land \phi(y)) \ \land  \ \forall y \ ( y \in v \leftrightarrow \ \mathfrak{M}(y) \land \phi(y))) \\
       & \qquad \rightarrow u = v)
\end{array}
$$
Let $u$ and $v$ be arbitrary. Furthermore let us assume:

\par
$\forall y \ (y \in u \leftrightarrow \ \mathfrak{M}(y) \land \phi(y)) \land \ \forall y \ ( y \in v \leftrightarrow \mathfrak{M}(y)
\land \phi(y)))$

\par
Now with \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:predicateCalculus:f}{proposition 2 (f)}~\cite{l}: $\forall y \ ((y \in u \leftrightarrow \mathfrak{M}(y) \land \phi(y)) \land (y \in v \leftrightarrow \mathfrak{M}(y) \land \phi(y)))$

\par
With \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:predicateCalculus:bg}{proposition 2 (bg)}~\cite{l} we derive: $\forall y \ ((y \in u \leftrightarrow y \in v ))$. And with \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}} follows $u = v$. So we have shown:

\par
$\forall u \ \forall v \ (\forall y \ (y \in u \leftrightarrow \mathfrak{M}(y) \land \phi(y)) \land \ \forall y \ (y \in v \leftrightarrow \mathfrak{M}(y) \land \phi(y))) \rightarrow u = v)$

\par
Together with \hyperref[axiom:comprehension]{axiom~\ref*{axiom:comprehension}} we get the proposition.
\end{proof}




\par
Starting with \hyperref[theorem:comprehension]{proposition~\ref*{theorem:comprehension}} we can extend the syntax and provide a new abbreviation.

\begin{rul}[Class definition]
\label{rule:classDefinition} \hypertarget{rule:classDefinition}{}
{\tt \tiny [\verb]rule:classDefinition]]}
For every formula $\alpha(x_1)$ we define the term expression $\{ x_1 \ | \ \alpha(x_1)\}$ where $x_1$ is a subject variable that is not bound within $\alpha(x_1)$. The free variables of $\{ x_1 \ | \ \alpha(x_1)\}$ are the are the free variables of $\alpha(x_1)$. The bound variables correspond to the bound variables of $\alpha(x_1)$ enhanced by $x_1$. 
\par
All deduction rules are accordingly extended.
\end{rul}
Based on: 
 \ref{theorem:comprehension}

In particular the substitution rules must be adapted because now a term can have bound subject variables. \footnote{Luckily we formulated the substitution rules with this extension already in our mind, so we have nothing to do.}
In the following this new notation is used.


\par
We want to give the new syntax a meaning and by looking at \hyperref[theorem:comprehension]{proposition~\ref*{theorem:comprehension}} we introduce the following axiom.

\begin{ax}[Class Definition Axiom\index{axiom!class definition}]
\label{axiom:classDefinition} \hypertarget{axiom:classDefinition}{}
{\tt \tiny [\verb]axiom:classDefinition]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $y \in \{ x \ | \ \phi(x) \} \ \leftrightarrow\ (\mathfrak{M}(y)\ \land\ \phi(y))$
\end{longtable}

\end{ax}

This axiom together with \hyperref[rule:classDefinition]{rule~\ref*{rule:classDefinition}} is a \emph{conservative} extension of our formal language. This means that no additional formulas that fulfill the old syntax can be derived. It is just convenient to have an elegant new notation.\footnote{
A conservative extension is defined by the following.
Let $\mathfrak{L}$ be a language and $\mathfrak{L'}$ an extension of $\mathfrak{L}$. Because $\mathfrak{L'} \supset \mathfrak{L}$ it follows $\mbox{Formula}_\mathfrak{L'} \supset \mbox{Formula}_\mathfrak{L}$. If now for every set of formulas $\Gamma \subseteq \mbox{Formula}_\mathfrak{L}$ and each formula $\alpha \in \mbox{Formula}_\mathfrak{L}$ this proposition holds: $\Gamma \vdash_\mathfrak{L'} \alpha \ \Rightarrow \ \Gamma \vdash_\mathfrak{L} \alpha$, then $\mathfrak{L'}$ is called a \emph{conservative} extension of $\mathfrak{L}$.}


\par
This new notation can be easily transformed in the old syntax. Using the new term type with the initial predicates can be expressed as follows.

\begin{prop}
\label{theorem:setNotation} \hypertarget{theorem:setNotation}{}
{\tt \tiny [\verb]theorem:setNotation]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $y \in \{ x \ | \ \phi(x) \} \ \leftrightarrow\ (\mathfrak{M}(y)\ \land\ \phi(y))$ & \label{theorem:setNotation:a} \hypertarget{theorem:setNotation:a}{} \mbox{\emph{(a)}} \\
\centering $y \ =  \ \{ x \ | \ \phi(x) \} \ \leftrightarrow\ \forall z\ (z \in y\ \leftrightarrow\ z \in \{ x \ | \ \phi(x) \} )$ & \label{theorem:setNotation:b} \hypertarget{theorem:setNotation:b}{} \mbox{\emph{(b)}} \\
\centering $\{ x \ | \ \phi(x) \}  \ =  \ \{ x \ | \ \psi(x) \} \ \leftrightarrow\ \forall z\ (z \in \{ x \ | \ \phi(x) \} \ \leftrightarrow\ z \in \{ x \ | \ \psi(x) \} )$ & \label{theorem:setNotation:c} \hypertarget{theorem:setNotation:c}{} \mbox{\emph{(c)}} \\
\centering $\{ x \ | \ \phi(x) \}  \in \{ x \ | \ \psi(x) \} \ \leftrightarrow\ \forall u\ \forall v\ ((u \ =  \ \{ x \ | \ \phi(x) \} \ \land\ v \ =  \ \{ x \ | \ \psi(x) \} )\ \rightarrow\ u \in v)$ & \label{theorem:setNotation:d} \hypertarget{theorem:setNotation:d}{} \mbox{\emph{(d)}} \\
\centering $\{ x \ | \ \phi(x) \}  \in y\ \leftrightarrow\ \forall u\ (u \ =  \ \{ x \ | \ \phi(x) \} \ \rightarrow\ u \in y)$ & \label{theorem:setNotation:e} \hypertarget{theorem:setNotation:e}{} \mbox{\emph{(e)}} 
\end{longtable}
+++ if the formula would be rendered correctly it should look like this: \\
\begin{align}
y \in \{ x~|~\phi(x) \} & \leftrightarrow  \mathfrak{M}(y) \land \phi(y) \tag{a} \\
y = \{ x~|~ \phi(x) \} & \leftrightarrow  \forall z \ (z \in y \leftrightarrow z \in \{ x~|~\phi(x) \}) \tag{b} \\
\{ x~|~\phi(x) \} = \{ x~|~\psi(x) \} & \leftrightarrow \forall z \ (z \in \{ x~|~\phi(x) \} \tag{c} \\
\begin{split}
  & \qquad \leftrightarrow z \in \{x~|~\psi(x) \}) \nonumber \\
\{ x~|~\phi(x) \} \in \{ x~|~\psi(x) \} & \leftrightarrow  \forall u \ \forall
v \ ((u  = \{ x~|~\phi(x) \} \\
  & \qquad \land \ v = \{ x~|~\psi(x) \}) \rightarrow u \in v) 
\end{split} \tag{d} \\
\{ x~|~\phi(x) \} \in y & \leftrightarrow  \forall u \ (u  = \{ x~|~\phi(x) \}  \rightarrow u \in y) \tag{e} 
\end{align}
\end{prop}
\begin{proof}
The formula a) is simply \hyperref[axiom:classDefinition]{axiom~\ref*{axiom:classDefinition}}. We get b) and c) with \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}}. And d) and e) come from identity theormes.
\end{proof}

Therefore the new syntax can be eliminated by successive applying the above theorems.


\par
Because the new notation fixes a term completely the following must be true.

\begin{prop}
\label{theorem:setDefinitionUnique} \hypertarget{theorem:setDefinitionUnique}{}
{\tt \tiny [\verb]theorem:setDefinitionUnique]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\exists! x\ x \ =  \ \{ y \ | \ \phi(y) \} $
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{lX}
  $\exists! \ x \ \forall \ z \ ( z \in x \ \leftrightarrow \ \mathfrak{M}(z) \land \phi(z))$
    & this is \hyperref[theorem:comprehension]{proposition~\ref*{theorem:comprehension}} \\
  $\exists! \ x \ \forall \ z \ ( z \in x \ \leftrightarrow z \in \{ y \ | \  \phi(y) \}$
    & \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (a) \\
  $\exists! \ x \ x = \{ y \ | \  \phi(y) \}$
    & \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}}
\end{tabularx}
\end{proof}




\par
The equivalence of properties enables us to conclude the identity of the associated classes.

\begin{prop}
\label{theorem:propositionEqualImplClassEqual} \hypertarget{theorem:propositionEqualImplClassEqual}{}
{\tt \tiny [\verb]theorem:propositionEqualImplClassEqual]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\forall x\ (\phi(x)\ \leftrightarrow\ \psi(x))\ \rightarrow\ \{ x \ | \ \phi(x) \}  \ =  \ \{ x \ | \ \psi(x) \} $
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rlX}
%%                  \begin{longtable}[h!]{r@{\extracolsep{\fill}}p{9cm}@{\extracolsep{\fill}}p{4cm}}
  $(\phi(x) \leftrightarrow \psi(x))$ $\rightarrow$  & $(\phi(x) \land \mathfrak{M}(x) \leftrightarrow \psi(x) \land \mathfrak{M}(x))$ & {\tiny \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:bl}{proposition 1 (bl)}~\cite{l}} \\
  $\forall x \ ((\phi(x) \leftrightarrow \psi(x))$ $\rightarrow$  & $(\phi(x) \land \mathfrak{M}(x) \leftrightarrow \psi(x) \land \mathfrak{M}(x)))$ & {\tiny \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:derivedQuantification}{rule 11}~\cite{l}} \\                    
  $\forall x \ (\phi(x) \leftrightarrow \psi(x))$ $\rightarrow$  & $\forall x \ (\phi(x) \land \mathfrak{M}(x) \leftrightarrow \psi(x) \land \mathfrak{M}(x))$ & {\tiny \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:predicateCalculus}{proposition 2}~\cite{l}} \\
  $\rightarrow$ & $\forall x ( x \in \{ y | \phi(y) \} \leftrightarrow x \in \{ y | \psi(y) \})$ 
    & {\tiny \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (a)} \\
  $\rightarrow$ & $ \{ y \ | \ \phi(y) \} = \{ y \ | \ \psi(y) \}$ 
    & {\tiny \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (c)}
\end{tabularx}
%%                  \end{longtable}
\end{proof}

We remark that the reverse implication is false. This is due to the fact that the class notation embraces only sets. For example: if $\phi(x) \leftrightarrow x \neq x$ and $\psi(x) \leftrightarrow \forall y \ (y \in x \rightarrow y \notin y)$ then the associated classes are identical to the empty class (\hyperref[definition:emptySet]{definition~\ref*{definition:emptySet}}). No class fulfills $\phi(x)$ but Russells class (\hyperref[definition:RussellClass]{definition~\ref*{definition:RussellClass}}) satifies $\psi(x)$.


\par
Every class can be described by a property: being a member of the class.

\begin{prop}
\label{theorem:classDescriptionPossible} \hypertarget{theorem:classDescriptionPossible}{}
{\tt \tiny [\verb]theorem:classDescriptionPossible]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \ =  \ \{ y \ | \ y \in x \} $
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $z \in x$ & $\leftrightarrow$ & $z \in x \land \mathfrak{M}(z)$ & \hyperref[theorem:inSetEqualInSetAndIsSet]{proposition~\ref*{theorem:inSetEqualInSetAndIsSet}} \\
  $z \in x$ & $\leftrightarrow$ & $z \in \{y \ | \ y \}$ & \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (a) \\
  $\forall z \ (z \in x$ & $\leftrightarrow$ & $z \in \{y \ | \ y \})$ & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:derivedQuantification}{rule 11}~\cite{l} \\
  $x$ & $=$ & $\{y \ | \ y \}$ & \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}}
\end{tabularx}
\end{proof}




\section{Special Classes} \label{chapter2_section1} \hypertarget{chapter2_section1}{}
In this section we define our first classes.

\par
Russells class can now be simply defined.

\begin{defn}[Russell Class\index{Russell!class of}\index{class!Russell}]
\label{definition:RussellClass} \hypertarget{definition:RussellClass}{}
{\tt \tiny [\verb]definition:RussellClass]]}
$$\mathfrak{Ru}\ := \ \{ x \ | \ x \notin x \} $$

\end{defn}




\par
The Russell class is a \emph{proper}\index{proper}\index{class!proper} class. This means it is no set.

\begin{prop}
\label{theorem:RussellClassIsClass} \hypertarget{theorem:RussellClassIsClass}{}
{\tt \tiny [\verb]theorem:RussellClassIsClass]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\neg \mathfrak{M}(\mathfrak{Ru})$
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $y \in \{ x \ | \ \phi(x) \}$
   & $\leftrightarrow$ 
   & $\mathfrak{M}(y) \land \phi(y)$ 
   & this is \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (a) \\
  $y \in \{ x \ | \ x \notin x \}$  
   & $\leftrightarrow$ 
   & $\mathfrak{M}(y) \land y \notin y$ 
   & substitution for $\phi$ \\
  $y \in \mathfrak{Ru}$         
   & $\leftrightarrow$ 
   & $\mathfrak{M}(y) \land y \notin y$ 
   & \hyperref[definition:RussellClass]{definition~\ref*{definition:RussellClass}} \\
  $\mathfrak{Ru} \in \mathfrak{Ru}$ 
   & $\leftrightarrow$ 
   & $\mathfrak{M}(\mathfrak{Ru}) \land \mathfrak{Ru} \notin \mathfrak{Ru}$ 
   & substitution for $y$ \\
  $\mathfrak{M}(\mathfrak{Ru}) \land \mathfrak{Ru} \in \mathfrak{Ru}$ 
   & $\leftrightarrow$ 
   & $\mathfrak{M}(\mathfrak{Ru}) \land \mathfrak{Ru} \notin \mathfrak{Ru}$ 
   & \hyperref[theorem:inSetEqualInSetAndIsSet]{proposition~\ref*{theorem:inSetEqualInSetAndIsSet}} \\
   
   & $\neg \mathfrak{M}(\mathfrak{Ru})$ 
   &  
   & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:bi}{proposition 1 (bi)}~\cite{l}
\end{tabularx}
\end{proof}




\par
The \emph{universal class} should contain everything.

\begin{defn}[Universal Class\index{class!universal}\index{universal class}]
\label{definition:universalClass} \hypertarget{definition:universalClass}{}
{\tt \tiny [\verb]definition:universalClass]]}
$$\mathfrak{V}\ := \ \{ x \ | \ x \ =  \ x \} $$

\end{defn}




\par
It is no wonder that the following is true because a class has only sets as elements.

\begin{prop}
\label{theorem:isInUniversalClass} \hypertarget{theorem:isInUniversalClass}{}
{\tt \tiny [\verb]theorem:isInUniversalClass]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \in \mathfrak{V}\ \leftrightarrow\ \mathfrak{M}(x)$
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $x \in \{ y \ | \ \phi(y) \} $ & $\leftrightarrow$ & $\mathfrak{M}(x) \land \phi(x)$
    & this is \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (a) \\
  $x \in \{ y \ | \ y = y \} $ & $\leftrightarrow$ & $\mathfrak{M}(x) \land y = y$
    & substitution for $\phi$ \\
  $x \in \mathfrak{V} $ & $\leftrightarrow$ & $\mathfrak{M}(x) \land y = y$
    & \hyperref[definition:universalClass]{definition~\ref*{definition:universalClass}} \\
  $x \in \mathfrak{V} $ & $\leftrightarrow$ & $\mathfrak{M}(x)$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:au}{proposition 1 (au)}~\cite{l} and \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{axiom:identityIsReflexive}{axiom 7}~\cite{l}
\end{tabularx}
\end{proof}

Being in the universal class is therefore the same as being a set.


\par
The universal class contains all sets.

\begin{prop}
\label{theorem:universalClassContainsAllSets} \hypertarget{theorem:universalClassContainsAllSets}{}
{\tt \tiny [\verb]theorem:universalClassContainsAllSets]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{V} \ =  \ \{ x \ | \ \mathfrak{M}(x) \} $
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $\mathfrak{V}$ & $=$ & $\{ x \ | \ x = x\}$
    & \hyperref[definition:universalClass]{definition~\ref*{definition:universalClass}} \\
  $\forall y \ (y \in \mathfrak{V}$ & $\leftrightarrow$ & $y \in \{ x \ | \ x = x\}$
    & \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}} \\
  $\forall y \ (y \in \mathfrak{V}$ & $\leftrightarrow$ & $\mathfrak{M}(y) \land y = y$
    & \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} (a) \\
  $\forall y \ (y \in \mathfrak{V}$ & $\leftrightarrow$ & $\mathfrak{M}(y) \land \top$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:replaceTrueFormulaByTrue}{rule 10}~\cite{l} \\
  $\forall y \ (y \in \mathfrak{V}$ & $\leftrightarrow$ & $\mathfrak{M}(y)$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:au}{proposition 1 (au)}~\cite{l} \\
  $\forall y \ (y \in \mathfrak{V}$ & $\leftrightarrow$ & $ \mathfrak{M}(y) \land \mathfrak{M}(y)$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:al}{proposition 1 (al)}~\cite{l} \\
  $\forall y \ (y \in \mathfrak{V}$ & $\leftrightarrow$ & $y \in \{ x \ | \ \mathfrak{M}(x)\}$
    & \hyperref[theorem:setNotation]{proposition~\ref*{theorem:setNotation}} \\
  $\mathfrak{V}$ & $=$ & $\{ x \ | \ \mathfrak{M}(x)\}$
    & \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}}
\end{tabularx}
\end{proof}




\par
Analogous we define the \emph{empty class}. Later on we will learn that the empty class
is a set. To achieve this result we lack some other set axioms. Nevertheless we might already call this class \emph{empty set} sometime.

\begin{defn}[Empty Class\index{empty class}\index{empty set}\index{class!empty}\index{set!empty}]
\label{definition:emptySet} \hypertarget{definition:emptySet}{}
{\tt \tiny [\verb]definition:emptySet]]}
$$\emptyset\ := \ \{ x \ | \ x \ \neq \ x \} $$

\end{defn}




\par
No class is element of the empty class.

\begin{prop}
\label{theorem:noClassIsMemberOfEmptySet} \hypertarget{theorem:noClassIsMemberOfEmptySet}{}
{\tt \tiny [\verb]theorem:noClassIsMemberOfEmptySet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\forall z\ z \notin \emptyset$
\end{longtable}

\end{prop}
\begin{proof}
Asumption: $z \in \emptyset$
\mbox{}
\par
\begin{tabularx}{\linewidth}{cX}
  $z \in \{ x \ | \ x \neq x\}$
    & \hyperref[definition:emptySet]{definition~\ref*{definition:emptySet}} \\
  $\mathfrak{M}(z) \ \land z \ \neq z$
    & \hyperref[axiom:classDefinition]{axiom~\ref*{axiom:classDefinition}} \\
      $z \neq z$
    & elementary logic \\
      $\neg \ (z = z)$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{definition:notEqual}{definition 4}~\cite{l}
\end{tabularx}

\par
So we have a contradiction to \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{axiom:identityIsReflexive}{axiom 7}~\cite{l} and our asumption must be false. So we have $\neg (z \in \emptyset)$ and can conclude the following.

\mbox{}
\par
\begin{tabularx}{\linewidth}{cX}
      $\neg \ ( z \in \emptyset)$
    &  \\
      $z \notin \emptyset$
    & \hyperref[definition:notIn]{definition~\ref*{definition:notIn}} \\
      $\forall z \ z \notin \emptyset$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:derivedQuantification}{rule 11}~\cite{l}
\end{tabularx}
\end{proof}




\par
A class with no elements is the empty class.

\begin{prop}
\label{theorem:noClassIsMemberIsEmptySet} \hypertarget{theorem:noClassIsMemberIsEmptySet}{}
{\tt \tiny [\verb]theorem:noClassIsMemberIsEmptySet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\forall z\ z \notin x\ \leftrightarrow\ x \ =  \ \emptyset$
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $x = \emptyset$ & $\leftrightarrow$ & $\forall z \ (z \in x \leftrightarrow z \in \emptyset)$
    & \hyperref[theorem:extensonalityEquivalence]{proposition~\ref*{theorem:extensonalityEquivalence}} \\
  & $\leftrightarrow$ & $\forall z \ (z \notin x \leftrightarrow z \notin \emptyset)$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:replaceEquiFormula}{rule 8}~\cite{l} with \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:ao}{proposition 1 (ao)}~\cite{l} \\
  & $\leftrightarrow$ & $\forall z \ (z \notin x \leftrightarrow \ \top)$
    & \hyperref[theorem:noClassIsMemberOfEmptySet]{proposition~\ref*{theorem:noClassIsMemberOfEmptySet}} \\
  & $\leftrightarrow$ & $\forall z \ z \notin x$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:replaceEquiFormula}{rule 8}~\cite{l} with \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:be}{proposition 1 (be)}~\cite{l}
\end{tabularx}
\end{proof}





%% end of chapter Basics

\chapter{Boolean Algebra of Classes\index{Boolean algebra!of classes}} \label{chapter3} \hypertarget{chapter3}{}

Now the elementary class operations and their properties are described.

A \emph{boolean algebra} is an algebraic structure that abstracts from the
logical operators \emph{and}, \emph{or}, \emph{not} and their set theoretic
connectives \emph{intersection}, \emph{union}, \emph{complement}.

\par
The name is due to \emph{G. Boole} who defined this structure to be able to
use algebraic methods within propositional calculus.

\section{Boolean Class Operators} \label{chapter3_section0} \hypertarget{chapter3_section0}{}
With the classs notation \hyperref[rule:classDefinition]{rule~\ref*{rule:classDefinition}} we can define new class operators with the
help of logical connectives.

\par
The union of two classes contains exactly all elements of both classes.

\begin{defn}[Union Operator\index{union}\index{class!union}]
\label{definition:union} \hypertarget{definition:union}{}
{\tt \tiny [\verb]definition:union]]}
$$(x \cup y)\ := \ \{ z \ | \ (z \in x\ \lor\ z \in y) \} $$

\end{defn}




\par
Analogous the intersection of two classes is defined as the class which 
contains exactly those elements that are member of both classes.

\begin{defn}[Intersection Operator\index{intersection}\index{class!intersection}]
\label{definition:intersection} \hypertarget{definition:intersection}{}
{\tt \tiny [\verb]definition:intersection]]}
$$(x \cap y)\ := \ \{ z \ | \ (z \in x\ \land\ z \in y) \} $$

\end{defn}




\par
Also the complement of a class can be simply defined.

\begin{defn}[Complement Operator\index{complement}\index{class!complement}]
\label{definition:complement} \hypertarget{definition:complement}{}
{\tt \tiny [\verb]definition:complement]]}
$$\overline{x}\ := \ \{ z \ | \ z \notin x \} $$

\end{defn}




\par
If a set is an element of the union of two classes can be checked directly.

\begin{prop}
\label{theorem:unionMember} \hypertarget{theorem:unionMember}{}
{\tt \tiny [\verb]theorem:unionMember]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $z \in (x \cup y)\ \leftrightarrow\ (z \in x\ \lor\ z \in y)$
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $(x \cup y)$ & $=$ & $\{ z \ | \ (z \in x \lor z \in y ) \}$
    & \hyperref[definition:union]{definition~\ref*{definition:union}} \\
  $u \in (x \cup y)$ & $\leftrightarrow$ & $u \in \{ z \ | \ (z \in x \lor z \in y ) \}$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:leibnizEquivalence}{proposition 3}~\cite{l} \\
  $u \in (x \cup y)$ & $\leftrightarrow$ & $(\mathfrak{M}(u) \land (u \in x \lor u \in y))$
    & \hyperref[axiom:classDefinition]{axiom~\ref*{axiom:classDefinition}} \\
  $u \in (x \cup y)$ & $\leftrightarrow$ & $((\mathfrak{M}(u) \land u \in x ) \lor (\mathfrak{M}(u) \land u \in y))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:at}{proposition 1 (at)}~\cite{l} \\
  $u \in (x \cup y)$ & $\leftrightarrow$ & $(u \in x \lor u \in y)$
    & \hyperref[theorem:inSetEqualInSetAndIsSet]{proposition~\ref*{theorem:inSetEqualInSetAndIsSet}}
\end{tabularx}
\end{proof}




\par
Membership of an intersection can be written down directly too.

\begin{prop}
\label{theorem:intersectionMember} \hypertarget{theorem:intersectionMember}{}
{\tt \tiny [\verb]theorem:intersectionMember]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $z \in (x \cap y)\ \leftrightarrow\ (z \in x\ \land\ z \in y)$
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $(x \cap y)$ & $=$ & $\{ z \ | \ (z \in x \land z \in y ) \}$
    & \hyperref[definition:union]{definition~\ref*{definition:union}} \\
  $u \in (x \cap y)$ & $\leftrightarrow$ & $u \in \{ z \ | \ (z \in x \land z \in y ) \}$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:leibnizEquivalence}{proposition 3}~\cite{l} \\
  $u \in (x \cap y)$ & $\leftrightarrow$ & $(\mathfrak{M}(u) \land (u \in x \land u \in y))$
    & \hyperref[axiom:classDefinition]{axiom~\ref*{axiom:classDefinition}} \\
  $u \in (x \cap y)$ & $\leftrightarrow$ & $((\mathfrak{M}(u) \land u \in x ) \land u \in y))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:aj}{proposition 1 (aj)}~\cite{l} \\
  $u \in (x \cap y)$ & $\leftrightarrow$ & $(u \in x \land u \in y)$
    & \hyperref[theorem:inSetEqualInSetAndIsSet]{proposition~\ref*{theorem:inSetEqualInSetAndIsSet}}
\end{tabularx}
\end{proof}




\par
For the membership of the complement we have a similar result but here we must check
the property \emph{is a set} explicitly.

\begin{prop}
\label{theorem:complementMember} \hypertarget{theorem:complementMember}{}
{\tt \tiny [\verb]theorem:complementMember]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $z \in \overline{x}\ \leftrightarrow\ (\mathfrak{M}(z)\ \land\ z \notin x)$
\end{longtable}

\end{prop}
\begin{proof}
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $\overline{x}$ & $=$ & $\{ z \ | \ z \notin x \}$
    & \hyperref[definition:complement]{definition~\ref*{definition:complement}} \\
  $u \in \overline{x}$ & $\leftrightarrow$ & $u \in \{ z \ | \ z \notin x \}$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:leibnizEquivalence}{proposition 3}~\cite{l} \\
  $u \in \overline{x}$ & $\leftrightarrow$ & $(\mathfrak{M}(u) \land u \notin x)$
    & \hyperref[axiom:classDefinition]{axiom~\ref*{axiom:classDefinition}} 
\end{tabularx}
\end{proof}




\par
By the previous propositions we learned how to transform the logical 
operators $\lor$, $\land$ and $\neg$ into the class operators $\cup$, $\cap$ and $\bar{~}$. So we are now able to transform the logical laws into set theoretic
propositions.

\begin{prop}
\label{theorem:unionIntersectionComplement} \hypertarget{theorem:unionIntersectionComplement}{}
{\tt \tiny [\verb]theorem:unionIntersectionComplement]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $(x \cup y) \ =  \ (y \cup x)$ & \label{theorem:unionIntersectionComplement:a} \hypertarget{theorem:unionIntersectionComplement:a}{} \mbox{\emph{(a)}} \\
\centering $(x \cap y) \ =  \ (y \cap x)$ & \label{theorem:unionIntersectionComplement:b} \hypertarget{theorem:unionIntersectionComplement:b}{} \mbox{\emph{(b)}} \\
\centering $((x \cup y) \cup z) \ =  \ (x \cup (y \cup z))$ & \label{theorem:unionIntersectionComplement:c} \hypertarget{theorem:unionIntersectionComplement:c}{} \mbox{\emph{(c)}} \\
\centering $((x \cap y) \cap z) \ =  \ (x \cap (y \cap z))$ & \label{theorem:unionIntersectionComplement:d} \hypertarget{theorem:unionIntersectionComplement:d}{} \mbox{\emph{(d)}} \\
\centering $x \ =  \ (x \cup x)$ & \label{theorem:unionIntersectionComplement:e} \hypertarget{theorem:unionIntersectionComplement:e}{} \mbox{\emph{(e)}} \\
\centering $x \ =  \ (x \cap x)$ & \label{theorem:unionIntersectionComplement:f} \hypertarget{theorem:unionIntersectionComplement:f}{} \mbox{\emph{(f)}} \\
\centering $\overline{\overline{x}} \ =  \ x$ & \label{theorem:unionIntersectionComplement:g} \hypertarget{theorem:unionIntersectionComplement:g}{} \mbox{\emph{(g)}} \\
\centering $\overline{(x \cup y)} \ =  \ (\overline{x} \cap \overline{y})$ & \label{theorem:unionIntersectionComplement:h} \hypertarget{theorem:unionIntersectionComplement:h}{} \mbox{\emph{(h)}} \\
\centering $\overline{(x \cap y)} \ =  \ (\overline{x} \cup \overline{y})$ & \label{theorem:unionIntersectionComplement:i} \hypertarget{theorem:unionIntersectionComplement:i}{} \mbox{\emph{(i)}} \\
\centering $(x \cup (y \cap z)) \ =  \ ((x \cup y) \cap (x \cup z))$ & \label{theorem:unionIntersectionComplement:j} \hypertarget{theorem:unionIntersectionComplement:j}{} \mbox{\emph{(j)}} \\
\centering $(x \cap (y \cup z)) \ =  \ ((x \cap y) \cup (x \cap z))$ & \label{theorem:unionIntersectionComplement:k} \hypertarget{theorem:unionIntersectionComplement:k}{} \mbox{\emph{(k)}} \\
\centering $\overline{\emptyset} \ =  \ \mathfrak{V}$ & \label{theorem:unionIntersectionComplement:l} \hypertarget{theorem:unionIntersectionComplement:l}{} \mbox{\emph{(l)}} \\
\centering $\overline{\mathfrak{V}} \ =  \ \emptyset$ & \label{theorem:unionIntersectionComplement:m} \hypertarget{theorem:unionIntersectionComplement:m}{} \mbox{\emph{(m)}} \\
\centering $(x \cap \mathfrak{V}) \ =  \ x$ & \label{theorem:unionIntersectionComplement:n} \hypertarget{theorem:unionIntersectionComplement:n}{} \mbox{\emph{(n)}} \\
\centering $(x \cap \emptyset) \ =  \ \emptyset$ & \label{theorem:unionIntersectionComplement:o} \hypertarget{theorem:unionIntersectionComplement:o}{} \mbox{\emph{(o)}} \\
\centering $(x \cup \mathfrak{V}) \ =  \ \mathfrak{V}$ & \label{theorem:unionIntersectionComplement:p} \hypertarget{theorem:unionIntersectionComplement:p}{} \mbox{\emph{(p)}} \\
\centering $(x \cup \emptyset) \ =  \ x$ & \label{theorem:unionIntersectionComplement:q} \hypertarget{theorem:unionIntersectionComplement:q}{} \mbox{\emph{(q)}} \\
\centering $(x \cup \overline{x}) \ =  \ \mathfrak{V}$ & \label{theorem:unionIntersectionComplement:r} \hypertarget{theorem:unionIntersectionComplement:r}{} \mbox{\emph{(r)}} \\
\centering $(x \cap \overline{x}) \ =  \ \emptyset$ & \label{theorem:unionIntersectionComplement:s} \hypertarget{theorem:unionIntersectionComplement:s}{} \mbox{\emph{(s)}} 
\end{longtable}

\end{prop}
\begin{proof}
MISSING! OTHER: Exemplarisch beweisen wir (g).
\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}
  $u \in x$ & $\leftrightarrow$ & $(\mathfrak{M}(u) \land u \in x)$
    & \hyperref[definition:complement]{definition~\ref*{definition:complement}} \\
            & $\leftrightarrow$ & $(\bot \lor (\mathfrak{M}(u) \land u \in x))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:ax}{proposition 1 (ax)}~\cite{l} \\
            & $\leftrightarrow$ & $((\mathfrak{M}(u) \land \neg \mathfrak{M}(u)) \lor (\mathfrak{M}(u) \land u \in x))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:az}{proposition 1 (az)}~\cite{l} \\
            & $\leftrightarrow$ & $(\mathfrak{M}(u) \land (\neg \mathfrak{M}(u)) \land u \in x))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:at}{proposition 1 (at)}~\cite{l} \\
            & $\leftrightarrow$ & $(\mathfrak{M}(u) \land (\neg \mathfrak{M}(u)) \land \neg \neg u \in x))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:am}{proposition 1 (am)}~\cite{l} \\
            & $\leftrightarrow$ & $(\mathfrak{M}(u) \land (\neg \mathfrak{M}(u)) \land \neg u \notin x))$
    & \hyperref[definition:notIn]{definition~\ref*{definition:notIn}} \\
            & $\leftrightarrow$ & $(\mathfrak{M}(u) \land \neg (\mathfrak{M}(u)) \lor u \notin x))$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:propositionalCalculus:aq}{proposition 1 (aq)}~\cite{l} \\
            & $\leftrightarrow$ & $(\mathfrak{M}(u) \land \neg (u \in \overline{x}))$
    & \hyperref[theorem:complementMember]{proposition~\ref*{theorem:complementMember}} \\
            & $\leftrightarrow$ & $(\mathfrak{M}(u) \land u \notin \overline{x})$
    & \hyperref[definition:notIn]{definition~\ref*{definition:notIn}} \\
            & $\leftrightarrow$ & $u \in \overline{\overline{x}}$
    & \hyperref[theorem:complementMember]{proposition~\ref*{theorem:complementMember}}
\end{tabularx}

\par
Also haben wir gezeigt: $u \in x \leftrightarrow u \in \overline{\overline{x}}$
Nun k{\"o}nnen wir weiter schlie{\ss}en.

\mbox{}
\par
\begin{tabularx}{\linewidth}{rclX}

  $u \in x$ & $\leftrightarrow$ & $u \in \overline{\overline{x}}$
    &  \\
  $\forall u \ (u \in x$ & $\leftrightarrow$ & $u \in \overline{\overline{x}})$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{rule:derivedQuantification}{rule 11}~\cite{l} \\
  $\forall u \ u \in x$ & $\leftrightarrow$ & $\forall u \ u \in \overline{\overline{x}}$
    & \hyperref{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1_en.pdf}{}{theorem:predicateCalculus}{proposition 2}~\cite{l} \\
  $x$ & $=$ & $\overline{\overline{x}}$
    & \hyperref[theorem:extensionalitySetRestricted]{proposition~\ref*{theorem:extensionalitySetRestricted}}
\end{tabularx}
\end{proof}




\section{Boolean Algebra\index{Boolean algebra}} \label{chapter3_section1} \hypertarget{chapter3_section1}{}
The classes build together with the operators $\cap$, $\cup$, $\bar{~}$ and the
constants $\emptyset$ a Boolean algebra\index{Boolean algebra},

\par
+++
References to commutative law, associative law, distributive law, idempotence, etc.

\section{Order\index{order}} \label{chapter3_section2} \hypertarget{chapter3_section2}{}
For a boolean algebra a \emph{partial order}\index{order!partial} relation can be defined. Therefore we can do 
the same for the boolean class algebra.

\par
We define the \emph{subclass relation} (\emph{inclusion}) by an intersection.

\begin{defn}[Subclass Predicate\index{subclass}\index{inclusion}]
\label{definition:subclass} \hypertarget{definition:subclass}{}
{\tt \tiny [\verb]definition:subclass]]}
$$x \ \subseteq \ y\ :\leftrightarrow \ (x \cap y) \ =  \ x$$

\end{defn}

If $x$ and $y$ are sets we also say: $x$ is \emph{subset}\index{subset} of $y$.


\par
Now we get the common subclass definition as a proposition.

\begin{prop}
\label{theorem:subsetIfMemberschipImpl} \hypertarget{theorem:subsetIfMemberschipImpl}{}
{\tt \tiny [\verb]theorem:subsetIfMemberschipImpl]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \ \subseteq \ y\ \leftrightarrow\ \forall z\ (z \in x\ \rightarrow\ z \in y)$
\end{longtable}

\end{prop}




\par
This relation is reflexive, transitive and antisymmetric. As intended it is a partial order\index{order!partial} relation with $\emptyset$ as minimum and $\mathfrak{V}$ as maximum element.

\begin{prop}
\label{theorem:subsetIsPartialOrdered} \hypertarget{theorem:subsetIsPartialOrdered}{}
{\tt \tiny [\verb]theorem:subsetIsPartialOrdered]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $x \ \subseteq \ x$ & \label{theorem:subsetIsPartialOrdered:a} \hypertarget{theorem:subsetIsPartialOrdered:a}{} \mbox{\emph{(a)}} \\
\centering $(x \ \subseteq \ y\ \land\ y \ \subseteq \ z)\ \rightarrow\ x \ \subseteq \ z$ & \label{theorem:subsetIsPartialOrdered:b} \hypertarget{theorem:subsetIsPartialOrdered:b}{} \mbox{\emph{(b)}} \\
\centering $(x \ \subseteq \ y\ \land\ y \ \subseteq \ x)\ \leftrightarrow\ x \ =  \ y$ & \label{theorem:subsetIsPartialOrdered:c} \hypertarget{theorem:subsetIsPartialOrdered:c}{} \mbox{\emph{(c)}} \\
\centering $\emptyset \ \subseteq \ x$ & \label{theorem:subsetIsPartialOrdered:d} \hypertarget{theorem:subsetIsPartialOrdered:d}{} \mbox{\emph{(d)}} \\
\centering $x \ \subseteq \ \mathfrak{V}$ & \label{theorem:subsetIsPartialOrdered:e} \hypertarget{theorem:subsetIsPartialOrdered:e}{} \mbox{\emph{(e)}} \\
\centering $x \ \subseteq \ \emptyset\ \rightarrow\ x \ =  \ \emptyset$ & \label{theorem:subsetIsPartialOrdered:f} \hypertarget{theorem:subsetIsPartialOrdered:f}{} \mbox{\emph{(f)}} \\
\centering $\mathfrak{V} \ \subseteq \ x\ \rightarrow\ x \ =  \ \mathfrak{V}$ & \label{theorem:subsetIsPartialOrdered:g} \hypertarget{theorem:subsetIsPartialOrdered:g}{} \mbox{\emph{(g)}} 
\end{longtable}

\end{prop}




\par
An intersection is always a subclass of its original classes.

\begin{prop}
\label{theorem:intersectionIsSubset} \hypertarget{theorem:intersectionIsSubset}{}
{\tt \tiny [\verb]theorem:intersectionIsSubset]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $(x \cap y) \ \subseteq \ x$ & \label{theorem:intersectionIsSubset:a} \hypertarget{theorem:intersectionIsSubset:a}{} \mbox{\emph{(a)}} \\
\centering $(x \cap y) \ \subseteq \ y$ & \label{theorem:intersectionIsSubset:b} \hypertarget{theorem:intersectionIsSubset:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
A union has its original classes as subclasses.

\begin{prop}
\label{theorem:unionIsSuperset} \hypertarget{theorem:unionIsSuperset}{}
{\tt \tiny [\verb]theorem:unionIsSuperset]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $x \ \subseteq \ (x \cup y)$ & \label{theorem:unionIsSuperset:a} \hypertarget{theorem:unionIsSuperset:a}{} \mbox{\emph{(a)}} \\
\centering $y \ \subseteq \ (x \cup y)$ & \label{theorem:unionIsSuperset:b} \hypertarget{theorem:unionIsSuperset:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
With two classes the union of both is also subclass. And if a class is subclass of two other classes it is also subclass of their intersection. For both implications the reverse is also true.

\begin{prop}
\label{theorem:subsetAndAddition} \hypertarget{theorem:subsetAndAddition}{}
{\tt \tiny [\verb]theorem:subsetAndAddition]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $(x \ \subseteq \ z\ \land\ y \ \subseteq \ z)\ \leftrightarrow\ (x \cup y) \ \subseteq \ z$ & \label{theorem:subsetAndAddition:a} \hypertarget{theorem:subsetAndAddition:a}{} \mbox{\emph{(a)}} \\
\centering $(z \ \subseteq \ x\ \land\ z \ \subseteq \ y)\ \leftrightarrow\ z \ \subseteq \ (x \cap y)$ & \label{theorem:subsetAndAddition:b} \hypertarget{theorem:subsetAndAddition:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
Intersection and union of a class does not change an existing subclass relation.

\begin{prop}
\label{theorem:subsetAddition} \hypertarget{theorem:subsetAddition}{}
{\tt \tiny [\verb]theorem:subsetAddition]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $x \ \subseteq \ y\ \rightarrow\ (x \cup z) \ \subseteq \ (y \cup z)$ & \label{theorem:subsetAddition:a} \hypertarget{theorem:subsetAddition:a}{} \mbox{\emph{(a)}} \\
\centering $x \ \subseteq \ y\ \rightarrow\ (x \cap z) \ \subseteq \ (y \cap z)$ & \label{theorem:subsetAddition:b} \hypertarget{theorem:subsetAddition:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
Complement building inverts the subclass relation.

\begin{prop}
\label{theorem:subsetComplement} \hypertarget{theorem:subsetComplement}{}
{\tt \tiny [\verb]theorem:subsetComplement]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \ \subseteq \ y\ \leftrightarrow\ \overline{y} \ \subseteq \ \overline{x}$
\end{longtable}

\end{prop}




\par
For the complement and subclass relation the following equivalences hold.

\begin{prop}
\label{theorem:subsetComplementEquations} \hypertarget{theorem:subsetComplementEquations}{}
{\tt \tiny [\verb]theorem:subsetComplementEquations]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $x \ \subseteq \ y\ \leftrightarrow\ (x \cap \overline{y}) \ =  \ \emptyset$ & \label{theorem:subsetComplementEquations:a} \hypertarget{theorem:subsetComplementEquations:a}{} \mbox{\emph{(a)}} \\
\centering $x \ \subseteq \ y\ \leftrightarrow\ (\overline{x} \cup y) \ =  \ \mathfrak{V}$ & \label{theorem:subsetComplementEquations:b} \hypertarget{theorem:subsetComplementEquations:b}{} \mbox{\emph{(b)}} \\
\centering $x \ \subseteq \ \overline{y}\ \leftrightarrow\ (x \cap y) \ =  \ \emptyset$ & \label{theorem:subsetComplementEquations:c} \hypertarget{theorem:subsetComplementEquations:c}{} \mbox{\emph{(c)}} \\
\centering $(x \cap y) \ \subseteq \ z\ \leftrightarrow\ x \ \subseteq \ (\overline{y} \cup z)$ & \label{theorem:subsetComplementEquations:d} \hypertarget{theorem:subsetComplementEquations:d}{} \mbox{\emph{(d)}} 
\end{longtable}

\end{prop}




\section{Singletons and Class Pairs} \label{chapter3_section3} \hypertarget{chapter3_section3}{}
A class can be defined by explicitly listing its members.

\par
Especially by saying that one element is inside the class we can define the so called \emph{singleton}.
With \hyperref[theorem:comprehension]{proposition~\ref*{theorem:comprehension}} again we can extend the syntax and provide a new abbreviation.

\begin{defn}[Singleton\index{singleton}]
\label{definition:singleton} \hypertarget{definition:singleton}{}
{\tt \tiny [\verb]definition:singleton]]}
$$\{ x \}\ := \ \{ y \ | \ (\mathfrak{M}(x)\ \rightarrow\ y \ =  \ x) \} $$

\end{defn}

If $x$ is a proper class the term $\{x\}$ is also defined. In this case all sets
$y$ fulfill the condition 
$\mathfrak{M}(y) \land (\mathfrak{M}(x) \rightarrow y = x)$ and the singleton is
identical with the universal class. This leads to a smother handling of the
singleton.\footnote{Other authors as K.~G{\"o}del for example define 
$\{x\} = \{y~|~y = x\}$.}


\par
For sets the singleton has only the set itself as a member.

\begin{prop}
\label{theorem:setSingletonHasSetAsOnlyElement} \hypertarget{theorem:setSingletonHasSetAsOnlyElement}{}
{\tt \tiny [\verb]theorem:setSingletonHasSetAsOnlyElement]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \rightarrow\ \forall z\ (z \in \{ x \}\ \leftrightarrow\ z \ =  \ x)$
\end{longtable}

\end{prop}




\par
If we have a proper class the singleton is the universal class.

\begin{prop}
\label{theorem:properSingletonIsUniversalClass} \hypertarget{theorem:properSingletonIsUniversalClass}{}
{\tt \tiny [\verb]theorem:properSingletonIsUniversalClass]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\neg \mathfrak{M}(x)\ \rightarrow\ \{ x \} \ =  \ \mathfrak{V}$
\end{longtable}

\end{prop}




\par
Beeing a set singleton is equivalent to be member of its singleton.

\begin{prop}
\label{theorem:setSingletonEqualHasItselfAsElement} \hypertarget{theorem:setSingletonEqualHasItselfAsElement}{}
{\tt \tiny [\verb]theorem:setSingletonEqualHasItselfAsElement]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \leftrightarrow\ x \in \{ x \}$
\end{longtable}

\end{prop}




\par
Now we can simply define the \emph{pair} class as union of two singletons.

\begin{defn}[Pair\index{pair}]
\label{definition:pair} \hypertarget{definition:pair}{}
{\tt \tiny [\verb]definition:pair]]}
$$\{ x, y \}\ := \ (\{ x \} \cup \{ y \})$$

\end{defn}




\par
A class pair can be described directly without referencing singletons.

\begin{prop}
\label{theorem:classPairIsEqual} \hypertarget{theorem:classPairIsEqual}{}
{\tt \tiny [\verb]theorem:classPairIsEqual]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\{ x, y \} \ =  \ \{ z \ | \ ((\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ (z \ =  \ x\ \lor\ z \ =  \ y)) \} $
\end{longtable}

\end{prop}




\par
For set pairs beeing a member of a pair can canonically be simplified.

\begin{prop}
\label{theorem:membershipOfClassPair} \hypertarget{theorem:membershipOfClassPair}{}
{\tt \tiny [\verb]theorem:membershipOfClassPair]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ \forall z\ (z \in \{ x, y \}\ \leftrightarrow\ (z \ =  \ x\ \lor\ z \ =  \ y))$
\end{longtable}

\end{prop}




\par
If one of the classes for building a class pair is proper the resulting pair
is identical to the universal set.

\begin{prop}
\label{theorem:properClassPairIsUniversalClass} \hypertarget{theorem:properClassPairIsUniversalClass}{}
{\tt \tiny [\verb]theorem:properClassPairIsUniversalClass]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\neg \mathfrak{M}(x)\ \lor\ \neg \mathfrak{M}(y))\ \rightarrow\ \{ x, y \} \ =  \ \mathfrak{V}$
\end{longtable}

\end{prop}




\par
We note that building a class pair is commutative.

\begin{prop}
\label{theorem:classPairBuildingIsCommutative} \hypertarget{theorem:classPairBuildingIsCommutative}{}
{\tt \tiny [\verb]theorem:classPairBuildingIsCommutative]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\{ x, y \} \ =  \ \{ y, x \}$
\end{longtable}

\end{prop}




\par
The singleton can be expressed as a special case of a class pair.

\begin{prop}
\label{theorem:singletonIsClassPair} \hypertarget{theorem:singletonIsClassPair}{}
{\tt \tiny [\verb]theorem:singletonIsClassPair]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\{ x \} \ =  \ \{ x, x \}$
\end{longtable}

\end{prop}




\par
Being a set is equivalent to being element of a class pair.

\begin{prop}
\label{theorem:setEquiInClassPair} \hypertarget{theorem:setEquiInClassPair}{}
{\tt \tiny [\verb]theorem:setEquiInClassPair]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \leftrightarrow\ x \in \{ x, y \}$
\end{longtable}

\end{prop}




\par
For sets being an element is equal to being a subclass of its singleton.

\begin{prop}
\label{theorem:elementEquiSingletonSubclass} \hypertarget{theorem:elementEquiSingletonSubclass}{}
{\tt \tiny [\verb]theorem:elementEquiSingletonSubclass]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \rightarrow\ (x \in y\ \leftrightarrow\ \{ x \} \ \subseteq \ y)$
\end{longtable}

\end{prop}




\par
Identity of set pairs behaves as expected.

\begin{prop}
\label{theorem:pairIdentities} \hypertarget{theorem:pairIdentities}{}
{\tt \tiny [\verb]theorem:pairIdentities]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y)\ \land\ \mathfrak{M}(u)\ \land\ \mathfrak{M}(v))\ \rightarrow\ (\{ x, y \} \ =  \ \{ u, v \}\ \rightarrow\ ((x \ =  \ u\ \land\ y \ =  \ v)\ \lor\ (x \ =  \ v\ \land\ y \ =  \ u)))$
\end{longtable}

\end{prop}




\section{Infinite Boolean Operators} \label{chapter3_section4} \hypertarget{chapter3_section4}{}
It is also possible to build infinite intersections and unions. It must only be declared which classes
are used to build the result.

\par
For a class of sets a \emph{product} is defined: all sets that are elements of each set
are member of the product.

\begin{defn}[Set Product\index{set product}\index{product!of sets}]
\label{setProduct} \hypertarget{setProduct}{}
{\tt \tiny [\verb]setProduct]]}
$$\bigcap \ x\ := \ \{ z \ | \ \forall y\ (y \in x\ \rightarrow\ z \in y) \} $$

\end{defn}

This function can be viewed as a generalization of the intersection operation.
See also \hyperref[theorem:setPairSetSumProduct]{proposition~\ref*{theorem:setPairSetSumProduct}}.

\par
We also say the class $x$ defines a \emph{family of sets}\index{family!of sets}\index{set!family}. 
Any element of $x$ is a member of the family.


\par
As usual we can describe the membership of the set product as follows.

\begin{prop}
\label{theorem:setProductMembership} \hypertarget{theorem:setProductMembership}{}
{\tt \tiny [\verb]theorem:setProductMembership]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $z \in \bigcap \ x\ \leftrightarrow\ (\mathfrak{M}(z)\ \land\ \forall y\ (y \in x\ \rightarrow\ z \in y))$
\end{longtable}

\end{prop}




\par
We find for the special case of $x\,=\,\emptyset$.

\begin{prop}
\label{theorem:emptySetProduct} \hypertarget{theorem:emptySetProduct}{}
{\tt \tiny [\verb]theorem:emptySetProduct]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\bigcap \ \emptyset \ =  \ \mathfrak{V}$
\end{longtable}

\end{prop}




\par
If we build the set product of a non empty class we can
drop the set condition.

\begin{prop}
\label{theorem:nonEmptySetProductMembership} \hypertarget{theorem:nonEmptySetProductMembership}{}
{\tt \tiny [\verb]theorem:nonEmptySetProductMembership]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \ \neq \ \emptyset\ \rightarrow\ (z \in \bigcap \ x\ \leftrightarrow\ \forall y\ (y \in x\ \rightarrow\ z \in y))$
\end{longtable}

\end{prop}




\par
Analogous we  can define the \emph{set sum}.
Exactly the elements, that are member of some set in the family, should be member of the set sum.

\begin{defn}[Set Sum\index{set sum}\index{sum!of sets}]
\label{definition:setSum} \hypertarget{definition:setSum}{}
{\tt \tiny [\verb]definition:setSum]]}
$$\bigcup \ x\ := \ \{ z \ | \ \exists y\ (y \in x\ \land\ z \in y) \} $$

\end{defn}




\par
The set sum membership can be expressed by the following formula.

\begin{prop}
\label{theorem:setSumMembership} \hypertarget{theorem:setSumMembership}{}
{\tt \tiny [\verb]theorem:setSumMembership]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $z \in \bigcup \ x\ \leftrightarrow\ \exists y\ (y \in x\ \land\ z \in y)$
\end{longtable}

\end{prop}

Here we can drop the set condition $\mathfrak{M}(z)$.


\par
For the empty class we obtain.

\begin{prop}
\label{theorem:emptySetSum} \hypertarget{theorem:emptySetSum}{}
{\tt \tiny [\verb]theorem:emptySetSum]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\bigcup \ \emptyset \ =  \ \emptyset$
\end{longtable}

\end{prop}




\par
The subclass relation behaves to the set product and sum as follows.

\begin{prop}
\label{theorem:subsetSumProductImplication} \hypertarget{theorem:subsetSumProductImplication}{}
{\tt \tiny [\verb]theorem:subsetSumProductImplication]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $x \ \subseteq \ y\ \rightarrow\ \bigcap \ y \ \subseteq \ \bigcap \ x$ & \label{theorem:subsetSumProductImplication:a} \hypertarget{theorem:subsetSumProductImplication:a}{} \mbox{\emph{(a)}} \\
\centering $x \ \subseteq \ y\ \rightarrow\ \bigcup \ x \ \subseteq \ \bigcup \ y$ & \label{theorem:subsetSumProductImplication:b} \hypertarget{theorem:subsetSumProductImplication:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
The membership relation induces subclass relations in the following way.

\begin{prop}
\label{theorem:membershipToSetProductAndSum} \hypertarget{theorem:membershipToSetProductAndSum}{}
{\tt \tiny [\verb]theorem:membershipToSetProductAndSum]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $x \in y\ \rightarrow\ x \ \subseteq \ \bigcup \ y$ & \label{theorem:membershipToSetProductAndSum:a} \hypertarget{theorem:membershipToSetProductAndSum:a}{} \mbox{\emph{(a)}} \\
\centering $x \in y\ \rightarrow\ \bigcap \ y \ \subseteq \ x$ & \label{theorem:membershipToSetProductAndSum:b} \hypertarget{theorem:membershipToSetProductAndSum:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
The union and intersection operation match with the set sum and set product
as follows.

\begin{prop}
\label{theorem:unionIntersectionSetSumProduct} \hypertarget{theorem:unionIntersectionSetSumProduct}{}
{\tt \tiny [\verb]theorem:unionIntersectionSetSumProduct]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $\bigcap \ (x \cup y) \ =  \ (\bigcap \ x \cap \bigcap \ y)$ & \label{theorem:unionIntersectionSetSumProduct:a} \hypertarget{theorem:unionIntersectionSetSumProduct:a}{} \mbox{\emph{(a)}} \\
\centering $\bigcup \ (x \cup y) \ =  \ (\bigcup \ x \cup \bigcup \ y)$ & \label{theorem:unionIntersectionSetSumProduct:b} \hypertarget{theorem:unionIntersectionSetSumProduct:b}{} \mbox{\emph{(b)}} \\
\centering $\bigcup \ (x \cap y) \ \subseteq \ (\bigcup \ x \cap \bigcup \ y)$ & \label{theorem:unionIntersectionSetSumProduct:c} \hypertarget{theorem:unionIntersectionSetSumProduct:c}{} \mbox{\emph{(c)}} 
\end{longtable}

\end{prop}




\par
In case of a non empty set family we have this.

\begin{prop}
\label{theorem:nonEmptySumProductSubSet} \hypertarget{theorem:nonEmptySumProductSubSet}{}
{\tt \tiny [\verb]theorem:nonEmptySumProductSubSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\forall x\ (x \ \neq \ \emptyset\ \rightarrow\ \bigcap \ x \ \subseteq \ \bigcup \ x)$
\end{longtable}

\end{prop}




\par
For set pairs we get the expected results.

\begin{prop}
\label{theorem:setPairSetSumProduct} \hypertarget{theorem:setPairSetSumProduct}{}
{\tt \tiny [\verb]theorem:setPairSetSumProduct]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ \bigcap \ \{ x, y \} \ =  \ (x \cap y)$ & \label{theorem:setPairSetSumProduct:a} \hypertarget{theorem:setPairSetSumProduct:a}{} \mbox{\emph{(a)}} \\
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ \bigcup \ \{ x, y \} \ =  \ (x \cup y)$ & \label{theorem:setPairSetSumProduct:b} \hypertarget{theorem:setPairSetSumProduct:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\par
For set singletons we get analogous statements.

\begin{prop}
\label{theorem:singletonSetSumProduct} \hypertarget{theorem:singletonSetSumProduct}{}
{\tt \tiny [\verb]theorem:singletonSetSumProduct]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $\mathfrak{M}(x)\ \rightarrow\ \bigcap \ \{ x \} \ =  \ x$ & \label{theorem:singletonSetSumProduct:a} \hypertarget{theorem:singletonSetSumProduct:a}{} \mbox{\emph{(a)}} \\
\centering $\mathfrak{M}(x)\ \rightarrow\ \bigcup \ \{ x \} \ =  \ x$ & \label{theorem:singletonSetSumProduct:b} \hypertarget{theorem:singletonSetSumProduct:b}{} \mbox{\emph{(b)}} 
\end{longtable}

\end{prop}




\section{Power Class Building} \label{chapter3_section5} \hypertarget{chapter3_section5}{}
We can now introduce an important new class operator.

\par
The subset relation helps us to create another class operator: the \emph{power class operation}.

\begin{defn}[Power Class\index{class!power}]
\label{definition:power} \hypertarget{definition:power}{}
{\tt \tiny [\verb]definition:power]]}
$$\mathfrak{P}(x)\ := \ \{ z \ | \ z \ \subseteq \ x \} $$

\end{defn}




\par
For this new operator the following propositions hold.

\begin{prop}
\label{theorem:powerPropositions} \hypertarget{theorem:powerPropositions}{}
{\tt \tiny [\verb]theorem:powerPropositions]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $z \in \mathfrak{P}(x)\ \leftrightarrow\ (\mathfrak{M}(x)\ \land\ z \ \subseteq \ x)$ & \label{theorem:powerPropositions:a} \hypertarget{theorem:powerPropositions:a}{} \mbox{\emph{(a)}} \\
\centering $\mathfrak{P}(\mathfrak{V}) \ =  \ \mathfrak{V}$ & \label{theorem:powerPropositions:b} \hypertarget{theorem:powerPropositions:b}{} \mbox{\emph{(b)}} \\
\centering $\mathfrak{P}(\emptyset) \ =  \ \{ \emptyset \}$ & \label{theorem:powerPropositions:c} \hypertarget{theorem:powerPropositions:c}{} \mbox{\emph{(c)}} \\
\centering $\mathfrak{M}(x)\ \leftrightarrow\ x \in \mathfrak{P}(x)$ & \label{theorem:powerPropositions:d} \hypertarget{theorem:powerPropositions:d}{} \mbox{\emph{(d)}} \\
\centering $x \ \subseteq \ y\ \rightarrow\ \mathfrak{P}(x) \ \subseteq \ \mathfrak{P}(y)$ & \label{theorem:powerPropositions:e} \hypertarget{theorem:powerPropositions:e}{} \mbox{\emph{(e)}} \\
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{P}(x) \ \subseteq \ \mathfrak{P}(y))\ \rightarrow\ x \ \subseteq \ y$ & \label{theorem:powerPropositions:f} \hypertarget{theorem:powerPropositions:f}{} \mbox{\emph{(f)}} \\
\centering $\mathfrak{P}((x \cap y)) \ =  \ (\mathfrak{P}(x) \cap \mathfrak{P}(y))$ & \label{theorem:powerPropositions:g} \hypertarget{theorem:powerPropositions:g}{} \mbox{\emph{(g)}} \\
\centering $(\mathfrak{P}(x) \cup \mathfrak{P}(y)) \ \subseteq \ \mathfrak{P}((x \cup y))$ & \label{theorem:powerPropositions:h} \hypertarget{theorem:powerPropositions:h}{} \mbox{\emph{(h)}} \\
\centering $x \ \subseteq \ \mathfrak{P}(\bigcup \ x)$ & \label{theorem:powerPropositions:i} \hypertarget{theorem:powerPropositions:i}{} \mbox{\emph{(i)}} \\
\centering $\bigcup \ \mathfrak{P}(x) \ \subseteq \ x$ & \label{theorem:powerPropositions:j} \hypertarget{theorem:powerPropositions:j}{} \mbox{\emph{(j)}} 
\end{longtable}

\end{prop}




\par
Especially for power sets the following proposition holds.

\begin{prop}
\label{theorem:powerSetPropositions} \hypertarget{theorem:powerSetPropositions}{}
{\tt \tiny [\verb]theorem:powerSetPropositions]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \rightarrow\ x \ =  \ \bigcup \ \mathfrak{P}(x)$
\end{longtable}

\end{prop}

Later on we can drop the set condition because of new axioms.



%% end of chapter Boolean Algebra of Classes\index{Boolean algebra!of classes}

\chapter{Sets, Relations and Functions} \label{chapter4} \hypertarget{chapter4}{}

In this chapter we concentrate on the property \emph{is a set} and we introduce new axioms to assure
the existence of sets.

\par
To be able to define relations within our theory we need the new class operator \emph{ordered pair}. 
With this operator we can define \emph{Cartesian products} of classes. Relations are no other
than subclasses of Cartesian products and fulfill the laws of an \emph{universal algebra}\index{algebra!universal}.

\par
A special kind of relations are the \emph{equivalence relations} which form a more abstract form of 
equality. Functions are also a special kind of relations. The axiom of replacement guaranties that
sets are mapped onto sets.

\section{Sets} \label{chapter4_section0} \hypertarget{chapter4_section0}{}
For the presentation of the boolean class algebra we needed no set theoretic axioms. In the following
we get some more axioms that give conditions for being a set.

\par
The empty class should be a set.

\begin{ax}[Empty Set Axiom\index{axiom!empty set}]
\label{axiom:emptySet} \hypertarget{axiom:emptySet}{}
{\tt \tiny [\verb]axiom:emptySet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(\emptyset)$
\end{longtable}

\end{ax}

This is the first time we know about the existence of a set.


\par
To ensure the set property for set pairs we have out next axiom.

\begin{ax}[Pairing Set Axiom\index{axiom!pairing set}]
\label{axiom:pairingSet} \hypertarget{axiom:pairingSet}{}
{\tt \tiny [\verb]axiom:pairingSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ \mathfrak{M}(\{ x, y \})$
\end{longtable}

\end{ax}




\par
The sum set of a set should be a set too.

\begin{ax}[Axiom of the Sum Set\index{axiom!of the sum set}]
\label{axiom:setSumSet} \hypertarget{axiom:setSumSet}{}
{\tt \tiny [\verb]axiom:setSumSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \rightarrow\ \mathfrak{M}(\bigcup \ x)$
\end{longtable}

\end{ax}




\par
�The power class of a set should also be a set.

\begin{ax}[Power Set Axiom\index{axiom!power set}]
\label{axiom:powerSet} \hypertarget{axiom:powerSet}{}
{\tt \tiny [\verb]axiom:powerSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{M}(x)\ \rightarrow\ \mathfrak{M}(\mathfrak{P}(x))$
\end{longtable}

\end{ax}




\par
The subclass of a set should also be a set.

\begin{ax}[Subset Axiom\index{axiom!subset}]
\label{axiom:subset} \hypertarget{axiom:subset}{}
{\tt \tiny [\verb]axiom:subset]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{M}(x)\ \land\ y \ \subseteq \ x)\ \rightarrow\ \mathfrak{M}(y)$
\end{longtable}

\end{ax}




The above set axioms enables us to construct sets. Starting with 
\hyperref[axiom:emptySet]{axiom~\ref*{axiom:emptySet}} we have one first set $\emptyset$. By applying
\hyperref[axiom:powerSet]{axiom~\ref*{axiom:powerSet}} we get the set $\{ \emptyset \}$. Building the
power class again provides the set $\{ \emptyset, \{ \emptyset \} \}$. 
By repeating this procedure we get an infinite number of 
sets.\footnote{One can easily show that they are all different.}

\par
Furthermore we notice that our current axioms can show only the existence of
sets with a finite number of members. These finite classes are `save' in
the following sense: they alone can not lead to the contradictions as the 
unrestricted set theory of Zermelo.


\par
The new axioms enable us to derive some more propositions.

\begin{prop}
\label{theorem:isSet} \hypertarget{theorem:isSet}{}
{\tt \tiny [\verb]theorem:isSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $(\neg \mathfrak{M}(y)\ \land\ y \ \subseteq \ x)\ \rightarrow\ \neg \mathfrak{M}(x)$ & \label{theorem:isSet:a} \hypertarget{theorem:isSet:a}{} \mbox{\emph{(a)}} \\
\centering $\neg \mathfrak{M}(\mathfrak{V})$ & \label{theorem:isSet:b} \hypertarget{theorem:isSet:b}{} \mbox{\emph{(b)}} \\
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ \mathfrak{M}((x \cup y))$ & \label{theorem:isSet:c} \hypertarget{theorem:isSet:c}{} \mbox{\emph{(c)}} \\
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \rightarrow\ \mathfrak{M}((x \cap y))$ & \label{theorem:isSet:d} \hypertarget{theorem:isSet:d}{} \mbox{\emph{(d)}} \\
\centering $\mathfrak{M}(x)\ \rightarrow\ \mathfrak{M}(\{ x \})$ & \label{theorem:isSet:e} \hypertarget{theorem:isSet:e}{} \mbox{\emph{(e)}} \\
\centering $\mathfrak{M}(x)\ \rightarrow\ \neg \mathfrak{M}(\overline{x})$ & \label{theorem:isSet:f} \hypertarget{theorem:isSet:f}{} \mbox{\emph{(f)}} \\
\centering $x \ =  \ \bigcup \ \mathfrak{P}(x)$ & \label{theorem:isSet:g} \hypertarget{theorem:isSet:g}{} \mbox{\emph{(g)}} \\
\centering $\mathfrak{M}(x)\ \leftrightarrow\ \mathfrak{M}(\bigcup \ x)$ & \label{theorem:isSet:h} \hypertarget{theorem:isSet:h}{} \mbox{\emph{(h)}} \\
\centering $\bigcap \ \mathfrak{V} \ =  \ \emptyset$ & \label{theorem:isSet:i} \hypertarget{theorem:isSet:i}{} \mbox{\emph{(i)}} \\
\centering $\bigcup \ \mathfrak{V} \ =  \ \mathfrak{V}$ & \label{theorem:isSet:j} \hypertarget{theorem:isSet:j}{} \mbox{\emph{(j)}} \\
\centering $x \ \neq \ \emptyset\ \rightarrow\ \mathfrak{M}(\bigcap \ x)$ & \label{theorem:isSet:k} \hypertarget{theorem:isSet:k}{} \mbox{\emph{(k)}} 
\end{longtable}

\end{prop}




\section{Ordered Pair} \label{chapter4_section1} \hypertarget{chapter4_section1}{}
The concept of an ordered pair is vital for our further development.
It enables us to arrange objects. Till now our object collections did not depend on the
order of gathering. We wish to figure out which element was \emph{first} and which element
was \emph{second} after wards.

\par
Our definition of an \emph{ordered pair} $\langle x, y\rangle$ is due to  \emph{N.~Wiener} (1914) and \emph{K.~Kuratowski} (1921).

\begin{defn}[Ordered Pair\index{pair!ordered}\index{ordered pair}]
\label{definition:orderedPair} \hypertarget{definition:orderedPair}{}
{\tt \tiny [\verb]definition:orderedPair]]}
$$\langle x, y \rangle\ := \ \{ \{ x \}, \{ x, y \} \}$$

\end{defn}




\par
For an ordered pair of sets the order of the defining elements matters.
Ordered pairs should only be identical if their first elements 
are identical and their second elements are identical.

\begin{prop}
\label{theorem:orderedPairEquality} \hypertarget{theorem:orderedPairEquality}{}
{\tt \tiny [\verb]theorem:orderedPairEquality]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y)\ \land\ \mathfrak{M}(u)\ \land\ \mathfrak{M}(v))\ \rightarrow\ (\langle x, y \rangle \ =  \ \langle u, v \rangle\ \rightarrow\ (x \ =  \ u\ \land\ y \ =  \ v))$
\end{longtable}

\end{prop}




\par
An ordered pair made of sets is also a set. The reverse is also true.

\begin{prop}
\label{theorem:orderedPairOfSets} \hypertarget{theorem:orderedPairOfSets}{}
{\tt \tiny [\verb]theorem:orderedPairOfSets]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{M}(x)\ \land\ \mathfrak{M}(y))\ \leftrightarrow\ \mathfrak{M}(\langle x, y \rangle)$
\end{longtable}

\end{prop}




\par
If one of the classes is not a set the resulting ordered pair is 
identical with the universal class.

\begin{prop}
\label{theorem:orderedPairWithNonSet} \hypertarget{theorem:orderedPairWithNonSet}{}
{\tt \tiny [\verb]theorem:orderedPairWithNonSet]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\neg \mathfrak{M}(x)\ \lor\ \neg \mathfrak{M}(y))\ \rightarrow\ \langle x, y \rangle \ =  \ \mathfrak{V}$
\end{longtable}

\end{prop}




\par
To speak of ordered pairs we need a predicate that says `is an ordered pair'.

\begin{defn}[Ordered Pair Property\index{ordered pair!property}\index{pair!ordered}]
\label{definition:isOrderedPair} \hypertarget{definition:isOrderedPair}{}
{\tt \tiny [\verb]definition:isOrderedPair]]}
$$\mbox{isOrderedPair}(x)\ :\leftrightarrow \ \exists u\ \exists v\ x \ =  \ \langle u, v \rangle$$

\end{defn}

We notice that $\mathfrak{V}$ is also an ordered pair. But because we mostly speak
about class members we must only deal with sets that might be ordered pairs.


\section{Cartesian Product} \label{chapter4_section2} \hypertarget{chapter4_section2}{}
For the ordered pairs we need a meta structure. We just assemble ordered pairs into a class.

\par
The \emph{Cartesian product}\footnote{Named after the the French philosopher and mathematician \emph{R.~Descartes} also known as \emph{Cartesius}.} also called \emph{direct product} is the class of all ordered pairs, which elements are members of the origin classes.

\begin{defn}[Cartesian Product\index{product!Cartesian}\index{Cartesian product}\index{direct product}\index{product!direct}]
\label{definition:cartesianProduct} \hypertarget{definition:cartesianProduct}{}
{\tt \tiny [\verb]definition:cartesianProduct]]}
$$( x \times y)\ := \ \{ z \ | \ \exists u\ \exists v\ (u \in x\ \land\ v \in y\ \land\ z \ =  \ \langle u, v \rangle) \} $$

\end{defn}




\section{Relations} \label{chapter4_section3} \hypertarget{chapter4_section3}{}
It is important to be able to express relations between
mathematical objects and to handle them as objects
too. It turns out that we do not have to introduce new
kinds of objects. Our current structures are sufficient.

\par
We are now able to define a \emph{relation} within our set theory.

\begin{defn}[Relation\index{relation}]
\label{definition:relation} \hypertarget{definition:relation}{}
{\tt \tiny [\verb]definition:relation]]}
$$\mathfrak{Rel}(x)\ :\leftrightarrow \ \forall y\ (y \in x\ \rightarrow\ \mbox{isOrderedPair}(y))$$

\end{defn}




\par
Some propositions about relations.

\begin{prop}
\label{theorem:relationProperties} \hypertarget{theorem:relationProperties}{}
{\tt \tiny [\verb]theorem:relationProperties]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{0.9\linewidth}l}}
\centering $\mathfrak{Rel}(\emptyset)$ & \label{theorem:relationProperties:a} \hypertarget{theorem:relationProperties:a}{} \mbox{\emph{(a)}} \\
\centering $\mathfrak{Rel}(( \mathfrak{V} \times \mathfrak{V}))$ & \label{theorem:relationProperties:b} \hypertarget{theorem:relationProperties:b}{} \mbox{\emph{(b)}} \\
\centering $(\mathfrak{Rel}(x)\ \land\ \mathfrak{Rel}(y))\ \rightarrow\ \mathfrak{Rel}((x \cap y))$ & \label{theorem:relationProperties:c} \hypertarget{theorem:relationProperties:c}{} \mbox{\emph{(c)}} \\
\centering $(\mathfrak{Rel}(x)\ \land\ \mathfrak{Rel}(y))\ \rightarrow\ \mathfrak{Rel}((x \cup y))$ & \label{theorem:relationProperties:d} \hypertarget{theorem:relationProperties:d}{} \mbox{\emph{(d)}} 
\end{longtable}

\end{prop}




\par
We now give an universal definition of the concept \emph{domain}.

\begin{defn}[Domain\index{domain}]
\label{definition:domain} \hypertarget{definition:domain}{}
{\tt \tiny [\verb]definition:domain]]}
$$\mathfrak{Dom}(x)\ := \ \{ y \ | \ \exists z\ \langle y, z \rangle \in x \} $$

\end{defn}




\par
Analogous to the domain we specify the \emph{range} of a class.

\begin{defn}[Range\index{range}]
\label{definition:range} \hypertarget{definition:range}{}
{\tt \tiny [\verb]definition:range]]}
$$\mathfrak{Rng}(x)\ := \ \{ y \ | \ \exists z\ \langle z, y \rangle \in x \} $$

\end{defn}




\section{Relation Algebra} \label{chapter4_section4} \hypertarget{chapter4_section4}{}
+++

\section{Equivalence Relations} \label{chapter4_section5} \hypertarget{chapter4_section5}{}
+++

\section{Maps and Functions} \label{chapter4_section6} \hypertarget{chapter4_section6}{}
+++

\par
A function is just a special sort of relation.

\begin{defn}[Function\index{function}]
\label{definition:function} \hypertarget{definition:function}{}
{\tt \tiny [\verb]definition:function]]}
$$\mathfrak{Funct}(x)\ :\leftrightarrow \ \mathfrak{Rel}(x)\ \land\ \forall y\ (y \in \mathfrak{Dom}(x)\ \rightarrow\ \exists! z\ \langle y, z \rangle \in x)$$

\end{defn}




\par
If the domain of a function is a set so its range should be a set too.

\begin{ax}[Fraenkel's Replacement Axiom\index{axiom!of replacement}\index{Fraenkel's replacement axiom}]
\label{axiom:FraenkelsReplacement} \hypertarget{axiom:FraenkelsReplacement}{}
{\tt \tiny [\verb]axiom:FraenkelsReplacement]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $(\mathfrak{Funct}(f)\ \land\ \mathfrak{M}(\mathfrak{Dom}(f)))\ \rightarrow\ \mathfrak{M}(\mathfrak{Rng}(f))$
\end{longtable}

\end{ax}





%% end of chapter Sets, Relations and Functions

\chapter{Natural Numbers} \label{chapter5} \hypertarget{chapter5}{}

+++

\section{Foundation and Infinity} \label{chapter5_section0} \hypertarget{chapter5_section0}{}
+++

\par
Sets $x$ should not contain itself as a member, or contain an element that contains $x$. 
To avoid these and further membership circles we provide the following axiom.

\begin{ax}[Axiom of Foundation\index{axiom!of foundation}\index{axiom!of regularity}]
\label{axiom:foundation} \hypertarget{axiom:foundation}{}
{\tt \tiny [\verb]axiom:foundation]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $x \ \neq \ \emptyset\ \rightarrow\ \exists y\ (y \in x\ \land\ (y \cap x) \ =  \ \emptyset)$
\end{longtable}

\end{ax}

This axiom is also called axiom of regularity.


\par
A canonical class extension is the union with its singleton.

\begin{defn}[Successor\index{successor}]
\label{definition:successor} \hypertarget{definition:successor}{}
{\tt \tiny [\verb]definition:successor]]}
$$x'\ := \ (x \cup \{ x \})$$

\end{defn}

Because $x \notin x$ the successor function adds just one element to
the original class.


\par
We want to have a set with an infinite number of elements. So we just postulate its existence.

\begin{ax}[Axiom of Infinity\index{infinity!axiom of}\index{axiom!of infinity}]
\label{axiom:infinity} \hypertarget{axiom:infinity}{}
{\tt \tiny [\verb]axiom:infinity]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\exists x\ (\mathfrak{M}(x)\ \land\ \emptyset \in x\ \land\ \forall y\ (y \in x\ \rightarrow\ y' \in x))$
\end{longtable}

\end{ax}




\section{Definition and Basic Properties} \label{chapter5_section1} \hypertarget{chapter5_section1}{}
+++

\section{Induction} \label{chapter5_section2} \hypertarget{chapter5_section2}{}
+++

\section{Sequences and Normal Functions} \label{chapter5_section3} \hypertarget{chapter5_section3}{}
+++

\section{Recursion} \label{chapter5_section4} \hypertarget{chapter5_section4}{}
+++


%% end of chapter Natural Numbers

\chapter{Axiom of Choice} \label{chapter6} \hypertarget{chapter6}{}

+++

\section{Well-Ordering} \label{chapter6_section0} \hypertarget{chapter6_section0}{}
MISSING! OTHER: +++

\par
Now we come to the famous axiom of choice. We write it down for relations.

\begin{ax}[Axiom of Choice\index{axiom!of foundation}]
\label{axiom:choice} \hypertarget{axiom:choice}{}
{\tt \tiny [\verb]axiom:choice]]}
\mbox{}
\begin{longtable}{{@{\extracolsep{\fill}}p{\linewidth}}}
\centering $\mathfrak{Rel}(x)\ \rightarrow\ \exists y\ (\mathfrak{Funct}(y)\ \rightarrow\ (y \ \subseteq \ x\ \land\ \mathfrak{Dom}(x) \ =  \ \mathfrak{Dom}(y)))$
\end{longtable}

\end{ax}




\section{Applications of the Axiom of Choice} \label{chapter6_section1} \hypertarget{chapter6_section1}{}



%% end of chapter Axiom of Choice

\chapter{Continuum} \label{chapter7} \hypertarget{chapter7}{}

MISSING! OTHER: 

%% end of chapter Continuum

\backmatter

\begin{thebibliography}{99}
\addcontentsline{toc}{chapter}{Bibliography}


%% Used other QEDEQ modules:
\bibitem{l} qedeq\_logic\_v1 \url{http://www.qedeq.org/0_04_00/doc/math/qedeq_logic_v1.xml}


%% Other references:

\bibitem{lemmon} \emph{E. J. Lemmon}, Introduction to Axiomatic Set Theory, Routledge \& Kegan Paul Ltd, London 1968

\bibitem{monk} \emph{J. D. Monk}, Introduction to Set Theory, McGraw-Hill, New York 1996

\bibitem{schmidt} \emph{J. Schmidt}, Mengenlehre I, BI, Mannheim 1966

\end{thebibliography}
\addcontentsline{toc}{chapter}{\indexname} \printindex

\end{document}

