MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  n0snor2el Structured version   Visualization version   GIF version

Theorem n0snor2el 4792
Description: A nonempty set is either a singleton or contains at least two different elements. (Contributed by AV, 20-Sep-2020.)
Assertion
Ref Expression
n0snor2el (𝐴 ≠ ∅ → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
Distinct variable groups:   𝑦,𝐴,𝑥   𝑧,𝐴

Proof of Theorem n0snor2el
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 issn 4791 . . . 4 (∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → ∃𝑧 𝐴 = {𝑧})
21olcd 888 . . 3 (∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
32a1d 26 . 2 (∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
4 df-ne 2956 . . . . . . 7 (𝑤 ≠ 𝑦 ↔ ¬ 𝑤 = 𝑦)
54rexbii 3109 . . . . . 6 (∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ∃𝑦 ∈ 𝐴 ¬ 𝑤 = 𝑦)
6 rexnal 3114 . . . . . 6 (∃𝑦 ∈ 𝐴 ¬ 𝑤 = 𝑦 ↔ ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
75, 6bitri 278 . . . . 5 (∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
87ralbii 3108 . . . 4 (∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ∀𝑤 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
9 ralnex 3088 . . . 4 (∀𝑤 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 ↔ ¬ ∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
108, 9bitri 278 . . 3 (∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ¬ ∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
11 neeq1 3017 . . . . . . . 8 (𝑤 = 𝑥 → (𝑤 ≠ 𝑦 ↔ 𝑥 ≠ 𝑦))
1211rexbidv 3186 . . . . . . 7 (𝑤 = 𝑥 → (∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦))
1312rspccva 3575 . . . . . 6 ((∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ∧ 𝑥 ∈ 𝐴) → ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦)
1413reximdva0 4302 . . . . 5 ((∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ∧ 𝐴 ≠ ∅) → ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦)
1514orcd 887 . . . 4 ((∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ∧ 𝐴 ≠ ∅) → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
1615ex 418 . . 3 (∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 → (𝐴 ≠ ∅ → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
1710, 16sylbir 238 . 2 (¬ ∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
183, 17pm2.61i 184 1 (𝐴 ≠ ∅ → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∨ wo 861   = wceq 1569  ∃wex 1811   ≠ wne 2955  ∀wral 3076  ∃wrex 3086  ∅c0 4278  {csn 4583
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-or 862  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-v 3452  df-ss 3896  df-dif 4047  df-nul 4279  df-sn 4584
This theorem is used by:  iunopeqop  5493  iunopeqopOLD  5494  1sdom2dom  9245
  Copyright terms: Public domain W3C validator