Metamath Proof Explorer


Theorem unisnALT

Description: A set equals the union of its singleton. Theorem 8.2 of Quine p. 53. The User manually input on a mmj2 Proof Worksheet, without labels, all steps of unisnALT except 1, 11, 15, 21, and 30. With execution of the mmj2 unification command, mmj2 could find labels for all steps except for 2, 12, 16, 22, and 31 (and the then non-existing steps 1, 11, 15, 21, and 30). mmj2 could not find reference theorems for those five steps because the hypothesis field of each of these steps was empty and none of those steps unifies with a theorem in set.mm. Each of these five steps is a semantic variation of a theorem in set.mm and is 2-step provable. mmj2 does not have the ability to automatically generate the semantic variation in set.mm of a theorem in a mmj2 Proof Worksheet unless the theorem in the Proof Worksheet is labeled with a 1-hypothesis deduction whose hypothesis is a theorem in set.mm which unifies with the theorem in the Proof Worksheet. The stepprover.c program, which invokes mmj2, has this capability. stepprover.c automatically generated steps 1, 11, 15, 21, and 30, labeled all steps, and generated the RPN proof of unisnALT . Roughly speaking, stepprover.c added to the Proof Worksheet a labeled duplicate step of each non-unifying theorem for each label in a text file, labels.txt, containing a list of labels provided by the User. Upon mmj2 unification, stepprover.c identified a label for each of the five theorems which 2-step proves it. For unisnALT , the label list is a list of all 1-hypothesis propositional calculus deductions in set.mm. stepproverp.c is the same as stepprover.c except that it intermittently pauses during execution, allowing the User to observe the changes to a text file caused by the execution of particular statements of the program. (Contributed by Alan Sare, 19-Aug-2016) (Proof modification is discouraged.) (New usage is discouraged.)

Ref Expression
Hypothesis unisnALT.1
|- A e. _V
Assertion unisnALT
|- U. { A } = A

Proof

Step Hyp Ref Expression
1 unisnALT.1
 |-  A e. _V
2 eluni
 |-  ( x e. U. { A } <-> E. q ( x e. q /\ q e. { A } ) )
3 2 biimpi
 |-  ( x e. U. { A } -> E. q ( x e. q /\ q e. { A } ) )
4 id
 |-  ( ( x e. q /\ q e. { A } ) -> ( x e. q /\ q e. { A } ) )
5 simpl
 |-  ( ( x e. q /\ q e. { A } ) -> x e. q )
6 4 5 syl
 |-  ( ( x e. q /\ q e. { A } ) -> x e. q )
7 simpr
 |-  ( ( x e. q /\ q e. { A } ) -> q e. { A } )
8 4 7 syl
 |-  ( ( x e. q /\ q e. { A } ) -> q e. { A } )
9 elsni
 |-  ( q e. { A } -> q = A )
10 8 9 syl
 |-  ( ( x e. q /\ q e. { A } ) -> q = A )
11 eleq2
 |-  ( q = A -> ( x e. q <-> x e. A ) )
12 11 biimpac
 |-  ( ( x e. q /\ q = A ) -> x e. A )
13 6 10 12 syl2anc
 |-  ( ( x e. q /\ q e. { A } ) -> x e. A )
14 13 ax-gen
 |-  A. q ( ( x e. q /\ q e. { A } ) -> x e. A )
15 19.23v
 |-  ( A. q ( ( x e. q /\ q e. { A } ) -> x e. A ) <-> ( E. q ( x e. q /\ q e. { A } ) -> x e. A ) )
16 15 biimpi
 |-  ( A. q ( ( x e. q /\ q e. { A } ) -> x e. A ) -> ( E. q ( x e. q /\ q e. { A } ) -> x e. A ) )
17 14 16 ax-mp
 |-  ( E. q ( x e. q /\ q e. { A } ) -> x e. A )
18 pm3.35
 |-  ( ( E. q ( x e. q /\ q e. { A } ) /\ ( E. q ( x e. q /\ q e. { A } ) -> x e. A ) ) -> x e. A )
19 3 17 18 sylancl
 |-  ( x e. U. { A } -> x e. A )
20 19 ax-gen
 |-  A. x ( x e. U. { A } -> x e. A )
21 dfss2
 |-  ( U. { A } C_ A <-> A. x ( x e. U. { A } -> x e. A ) )
22 21 biimpri
 |-  ( A. x ( x e. U. { A } -> x e. A ) -> U. { A } C_ A )
23 20 22 ax-mp
 |-  U. { A } C_ A
24 id
 |-  ( x e. A -> x e. A )
25 1 snid
 |-  A e. { A }
26 elunii
 |-  ( ( x e. A /\ A e. { A } ) -> x e. U. { A } )
27 24 25 26 sylancl
 |-  ( x e. A -> x e. U. { A } )
28 27 ax-gen
 |-  A. x ( x e. A -> x e. U. { A } )
29 dfss2
 |-  ( A C_ U. { A } <-> A. x ( x e. A -> x e. U. { A } ) )
30 29 biimpri
 |-  ( A. x ( x e. A -> x e. U. { A } ) -> A C_ U. { A } )
31 28 30 ax-mp
 |-  A C_ U. { A }
32 23 31 eqssi
 |-  U. { A } = A