Users' Mathboxes Mathbox for Alan Sare < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  unisnALT Structured version   Visualization version   GIF version

Theorem unisnALT 46016
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 46016 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 46016. 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 46016, 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.)
Hypothesis
Ref Expression
unisnALT.1 𝐴 ∈ V
Assertion
Ref Expression
unisnALT ∪ {𝐴} = 𝐴

Proof of Theorem unisnALT
Dummy variables 𝑥 𝑞 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eluni 4869 . . . . . 6 (𝑥 ∈ ∪ {𝐴} ↔ ∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}))
21biimpi 219 . . . . 5 (𝑥 ∈ ∪ {𝐴} → ∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}))
3 id 23 . . . . . . . . 9 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → (𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}))
4 simpl 488 . . . . . . . . 9 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝑞)
53, 4syl 18 . . . . . . . 8 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝑞)
6 simpr 490 . . . . . . . . . 10 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑞 ∈ {𝐴})
73, 6syl 18 . . . . . . . . 9 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑞 ∈ {𝐴})
8 elsni 4597 . . . . . . . . 9 (𝑞 ∈ {𝐴} → 𝑞 = 𝐴)
97, 8syl 18 . . . . . . . 8 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑞 = 𝐴)
10 eleq2 2849 . . . . . . . . 9 (𝑞 = 𝐴 → (𝑥 ∈ 𝑞 ↔ 𝑥 ∈ 𝐴))
1110biimpac 484 . . . . . . . 8 ((𝑥 ∈ 𝑞 ∧ 𝑞 = 𝐴) → 𝑥 ∈ 𝐴)
125, 9, 11syl2anc 596 . . . . . . 7 ((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴)
1312ax-gen 1827 . . . . . 6 ∀𝑞((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴)
14 19.23v 1974 . . . . . . 7 (∀𝑞((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴) ↔ (∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴))
1514biimpi 219 . . . . . 6 (∀𝑞((𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴) → (∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴))
1613, 15ax-mp 5 . . . . 5 (∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴)
17 pm3.35 815 . . . . 5 ((∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) ∧ (∃𝑞(𝑥 ∈ 𝑞 ∧ 𝑞 ∈ {𝐴}) → 𝑥 ∈ 𝐴)) → 𝑥 ∈ 𝐴)
182, 16, 17sylancl 598 . . . 4 (𝑥 ∈ ∪ {𝐴} → 𝑥 ∈ 𝐴)
1918ax-gen 1827 . . 3 ∀𝑥(𝑥 ∈ ∪ {𝐴} → 𝑥 ∈ 𝐴)
20 df-ss 3897 . . . 4 (∪ {𝐴} ⊆ 𝐴 ↔ ∀𝑥(𝑥 ∈ ∪ {𝐴} → 𝑥 ∈ 𝐴))
2120biimpri 231 . . 3 (∀𝑥(𝑥 ∈ ∪ {𝐴} → 𝑥 ∈ 𝐴) → ∪ {𝐴} ⊆ 𝐴)
2219, 21ax-mp 5 . 2 ∪ {𝐴} ⊆ 𝐴
23 id 23 . . . . 5 (𝑥 ∈ 𝐴 → 𝑥 ∈ 𝐴)
24 unisnALT.1 . . . . . 6 𝐴 ∈ V
2524snid 4619 . . . . 5 𝐴 ∈ {𝐴}
26 elunii 4871 . . . . 5 ((𝑥 ∈ 𝐴 ∧ 𝐴 ∈ {𝐴}) → 𝑥 ∈ ∪ {𝐴})
2723, 25, 26sylancl 598 . . . 4 (𝑥 ∈ 𝐴 → 𝑥 ∈ ∪ {𝐴})
2827ax-gen 1827 . . 3 ∀𝑥(𝑥 ∈ 𝐴 → 𝑥 ∈ ∪ {𝐴})
29 df-ss 3897 . . . 4 (𝐴 ⊆ ∪ {𝐴} ↔ ∀𝑥(𝑥 ∈ 𝐴 → 𝑥 ∈ ∪ {𝐴}))
3029biimpri 231 . . 3 (∀𝑥(𝑥 ∈ 𝐴 → 𝑥 ∈ ∪ {𝐴}) → 𝐴 ⊆ ∪ {𝐴})
3128, 30ax-mp 5 . 2 𝐴 ⊆ ∪ {𝐴}
3222, 31eqssi 3925 1 ∪ {𝐴} = 𝐴
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401  ∀wal 1567   = wceq 1569  ∃wex 1811   ∈ wcel 2144  Vcvv 3450   ⊆ wss 3896  {csn 4584  ∪ cuni 4866
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-v 3452  df-ss 3897  df-sn 4585  df-uni 4867
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator