diff options
| author | adelon <22380201+adelon@users.noreply.github.com> | 2025-07-16 12:36:32 +0200 |
|---|---|---|
| committer | adelon <22380201+adelon@users.noreply.github.com> | 2025-07-16 12:36:32 +0200 |
| commit | 9aac1a22c4ff4b4be16800b86e34a94d358b0deb (patch) | |
| tree | 4874bcad55c1a40d8776e367b1bba0ad6c80f46e /library/set.tex | |
| parent | 92efa0fe16152c0f42cb9d05d6ef127955b03a18 (diff) | |
Add quantified calcs and relax tokenization
Use an `\iff`-calc to speed up `union_as_unions`. Also remove `in_implies_neq` which seems to interact badly with the choice axiom used by superposition-based proofs like Vampire in cut-down problems.
Diffstat (limited to 'library/set.tex')
| -rw-r--r-- | library/set.tex | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/library/set.tex b/library/set.tex index 1f7a76a..d964ce7 100644 --- a/library/set.tex +++ b/library/set.tex @@ -124,16 +124,6 @@ which applies it to goals of the form “$A = B$” and “$A \neq B$”. Suppose $A\neq\emptyset$. Then $A$ is inhabited. \end{proposition} -%\begin{proposition}\label{empty_iff_emptyset} -% $A$ is empty iff $A = \emptyset$. -%\end{proposition} - - -\begin{proposition}% -\label{empty_eq} - If $x$ and $y$ are empty, then $x = y$. -\end{proposition} - \begin{proposition}\label{emptyset_subseteq} For all $a$ we have $\emptyset \subseteq a$. \end{proposition} @@ -351,17 +341,19 @@ The $\operatorname{\textsf{cons}}$ operation is determined by the following axio If $c\in B$, then $c\in A\union B$. \end{proposition} -% TODO SLOW \begin{proposition}\label{union_as_unions} $\unions{\{x,y\}} = x\union y$. \end{proposition} \begin{proof} - %For all z we have - %\begin{align*} - % z\in \unions{\{x,y\}} - % &\iff \exists Z\in\{x,y\}. z\in Z - %\end{align*} - Follows by set extensionality. + For all $z$ we have + \begin{align*} + z\in \unions{\{x,y\}} + &\iff \exists Z\in\{x,y\}. z\in Z + &\iff z\in x \lor z\in y + &\iff z\in x\union y. + \end{align*} + Follows by \cref{setext}. + %Follows by set extensionality. \end{proof} \begin{proposition}[Commutativity of union]% |
