Topology (Munkres)
Standard Library: Regularity
$a$ is an \in-minimal element of $A$ iff $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ and $a\notmeets A$.
LaTeX source
\begin{abbreviation}
\label{elemminimal}
$a$ is an \in-minimal element of $A$ iff
$a\in A$ and $a\notmeets A$.
\end{abbreviation}
Let $A$ be a set.
For all $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ there exists $b\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $b\notmeets A$.
LaTeX source
\begin{lemma}
\label{regularity_aux}
Let $A$ be a set.
For all $a\in A$ there exists $b\in A$ such that
$b\notmeets A$.
\end{lemma}
Proof
Take $b$ such that $b = a$.
Straightforward.
Take $a'$ such that $a'\class{latex-symbol-tip latex-symbol-id-in}{\in} a, A$.
There exists $b\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that $b\notmeets A$.
LaTeX source
\begin{byCase}
\caseOf{$a\notmeets A$.}
Take $b$ such that $b = a$.
Straightforward.
\caseOf{$a\meets A$.}
Take $a'$ such that $a'\in a, A$.
There exists $b\in A$ such that $b\notmeets A$.
\end{byCase}
LaTeX source
\begin{proof}
[Proof by \in-induction on $a$]
\begin{byCase}
\caseOf{$a\notmeets A$.}
Take $b$ such that $b = a$.
Straightforward.
\caseOf{$a\meets A$.}
Take $a'$ such that $a'\in a, A$.
There exists $b\in A$ such that $b\notmeets A$.
\end{byCase}
\end{proof}
Let $A$ be an inhabited set.
Then there exists a \in-minimal element of $A$.
LaTeX source
\begin{proposition}
[Regularity]
\label{regularity}
Let $A$ be an inhabited set.
Then there exists a \in-minimal element of $A$.
\end{proposition}
Proof
Follows by Lemma 7.
LaTeX source
\begin{proof}
Follows by \cref{regularity_aux}.
\end{proof}
Let $A$ be a set.
Then $A = \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$ or there exists $a\class{latex-symbol-tip latex-symbol-id-in}{\in} A$ such that for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} a$ we have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$.
LaTeX source
\begin{theorem}
[Foundation]\label{foundation}
Let $A$ be a set.
Then $A = \emptyset$ or there exists $a\in A$
such that for all $x\in a$ we have $x\notin A$.
\end{theorem}
Proof
Follows by assumption.
Take $a$ such that $a$ is a \in-minimal element of $A$ by Proposition 10, Proposition 409 [Regularity].
Then for all $x\class{latex-symbol-tip latex-symbol-id-in}{\in} a$ we have $x\class{latex-symbol-tip latex-symbol-id-notin}{\notin} A$.
Follows by assumption.
LaTeX source
\begin{byCase}
\caseOf{$A = \emptyset$.}
Follows by assumption.
\caseOf{$A \neq\emptyset$.}
Take $a$ such that $a$ is a \in-minimal element of $A$ by \cref{nonempty_inhabited,regularity}.
Then for all $x\in a$ we have $x\notin A$.
Follows by assumption.
\end{byCase}
LaTeX source
\begin{proof}
\begin{byCase}
\caseOf{$A = \emptyset$.}
Follows by assumption.
\caseOf{$A \neq\emptyset$.}
Take $a$ such that $a$ is a \in-minimal element of $A$ by \cref{nonempty_inhabited,regularity}.
Then for all $x\in a$ we have $x\notin A$.
Follows by assumption.
\end{byCase}
\end{proof}
.
For all sets $A$ we have $A\not\class{latex-symbol-tip latex-symbol-id-in}{\in} A$.
LaTeX source
\begin{proposition}
\label{in_irrefl}
For all sets $A$ we have $A\not\in A$.
\end{proposition}
Proof
Straightforward.
LaTeX source
\begin{proof}
[Proof by \in-induction]
Straightforward.
\end{proof}
For all sets $a, b$ such that $a\class{latex-symbol-tip latex-symbol-id-in}{\in} b$ we have $b\class{latex-symbol-tip latex-symbol-id-notin}{\notin} a$.
LaTeX source
\begin{proposition}
\label{in_asymmetric}
For all sets $a, b$ such that $a\in b$ we have $b\notin a$.
\end{proposition}
Proof
Straightforward.
LaTeX source
\begin{proof}
[Proof by \in-induction on $a$]
Straightforward.
\end{proof}
Ordinal successor
$\suc{x} = \cons{x}{x}$.
LaTeX source
\begin{definition}
\label{suc}
$\suc{x} = \cons{x}{x}$.
\end{definition}
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\suc{x}$.
LaTeX source
\begin{proposition}
\label{suc_intro_self}
$x\in\suc{x}$.
\end{proposition}
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\suc{y}$.
LaTeX source
\begin{proposition}
\label{suc_intro_in}
Suppose $x\in y$. Then $x\in\suc{y}$.
\end{proposition}
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\suc{y}$.
Then $x = y$ or $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$.
LaTeX source
\begin{proposition}
\label{suc_elim}
Suppose $x\in\suc{y}$.
Then $x = y$ or $x\in y$.
\end{proposition}
$x\class{latex-symbol-tip latex-symbol-id-in}{\in}\suc{y}$ iff $x = y$ or $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$.
LaTeX source
\begin{proposition}
\label{suc_iff}
$x\in\suc{y}$ iff $x = y$ or $x\in y$.
\end{proposition}
$\suc{x}\class{latex-symbol-tip latex-symbol-id-neq}{\neq} \class{latex-symbol-tip latex-symbol-id-emptyset}{\emptyset}$.
LaTeX source
\begin{proposition}
\label{suc_neq_emptyset}
$\suc{x}\neq \emptyset$.
\end{proposition}
Suppose $\suc{x}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$.
LaTeX source
\begin{proposition}
\label{suc_subseteq_implies_in}
Suppose $\suc{x}\subseteq y$. Then $x\in y$.
\end{proposition}
$\suc{x}\class{latex-symbol-tip latex-symbol-id-neq}{\neq} x$.
LaTeX source
\begin{proposition}
\label{suc_neq_self}
$\suc{x}\neq x$.
\end{proposition}
Suppose $\suc{x} = \suc{y}$.
Then $x = y$.
LaTeX source
\begin{proposition}
\label{suc_injective}
Suppose $\suc{x} = \suc{y}$. Then $x = y$.
\end{proposition}
Proof
Suppose not.
$\suc{x}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \suc{y}$.
Hence $x\class{latex-symbol-tip latex-symbol-id-in}{\in}\suc{y}$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$.
$\suc{y}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} \suc{x}$.
Hence $y\class{latex-symbol-tip latex-symbol-id-in}{\in}\suc{x}$.
Then $y\class{latex-symbol-tip latex-symbol-id-in}{\in} x$.
Contradiction.
LaTeX source
\begin{proof}
Suppose not.
$\suc{x}\subseteq \suc{y}$. Hence $x\in\suc{y}$.
Then $x\in y$.
$\suc{y}\subseteq \suc{x}$. Hence $y\in\suc{x}$.
Then $y\in x$.
Contradiction.
\end{proof}
$x\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq}\suc{x}$.
LaTeX source
\begin{proposition}
\label{subseteq_self_suc_intro}
$x\subseteq\suc{x}$.
\end{proposition}
Suppose $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$ and $x\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$.
Then $\suc{x}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$.
LaTeX source
\begin{proposition}
\label{suc_subseteq_intro}
Suppose $x\in y$ and $x\subseteq y$.
Then $\suc{x}\subseteq y$.
\end{proposition}
Suppose $\suc{x}\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$.
Then $x\class{latex-symbol-tip latex-symbol-id-in}{\in} y$ and $x\class{latex-symbol-tip latex-symbol-id-subseteq}{\subseteq} y$.
LaTeX source
\begin{proposition}
\label{suc_subseteq_elim}
Suppose $\suc{x}\subseteq y$.
Then $x\in y$ and $x\subseteq y$.
\end{proposition}
There exists no $z$ such that $x\class{latex-symbol-tip latex-symbol-id-subset}{\subset} z\class{latex-symbol-tip latex-symbol-id-subset}{\subset} \suc{x}$.
LaTeX source
\begin{proposition}
\label{suc_next_subset}
There exists no $z$ such that $x\subset z\subset \suc{x}$.
\end{proposition}
Proof
Follows by Definition 1, Definition 2, Definition 61, Proposition 9, Proposition 414.
LaTeX source
\begin{proof}
Follows by \cref{suc,subset,subseteq,subset_witness,suc_elim}.
\end{proof}