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 V
Assertion unisnALT A = A

Proof

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