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

Theorem n0snor2el 4791
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 4790 . . . 4 (∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → ∃𝑧 𝐴 = {𝑧})
21olcd 888 . . 3 (∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
32a1d 26 . 2 (∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
4 df-ne 2960 . . . . . . 7 (𝑤 ≠ 𝑦 ↔ ¬ 𝑤 = 𝑦)
54rexbii 3113 . . . . . 6 (∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ∃𝑦 ∈ 𝐴 ¬ 𝑤 = 𝑦)
6 rexnal 3118 . . . . . 6 (∃𝑦 ∈ 𝐴 ¬ 𝑤 = 𝑦 ↔ ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
75, 6bitri 278 . . . . 5 (∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
87ralbii 3112 . . . 4 (∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ∀𝑤 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
9 ralnex 3092 . . . 4 (∀𝑤 ∈ 𝐴 ¬ ∀𝑦 ∈ 𝐴 𝑤 = 𝑦 ↔ ¬ ∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
108, 9bitri 278 . . 3 (∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ¬ ∃𝑤 ∈ 𝐴 ∀𝑦 ∈ 𝐴 𝑤 = 𝑦)
11 neeq1 3021 . . . . . . . 8 (𝑤 = 𝑥 → (𝑤 ≠ 𝑦 ↔ 𝑥 ≠ 𝑦))
1211rexbidv 3190 . . . . . . 7 (𝑤 = 𝑥 → (∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ↔ ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦))
1312rspccva 3579 . . . . . 6 ((∀𝑤 ∈ 𝐴 ∃𝑦 ∈ 𝐴 𝑤 ≠ 𝑦 ∧ 𝑥 ∈ 𝐴) → ∃𝑦 ∈ 𝐴 𝑥 ≠ 𝑦)
1413reximdva0 4306 . . . . 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 1570  ∃wex 1812   ≠ wne 2959  ∀wral 3080  ∃wrex 3090  ∅c0 4281  {csn 4588
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-ne 2960  df-ral 3081  df-rex 3091  df-v 3456  df-ss 3901  df-dif 4050  df-nul 4282  df-sn 4589
This theorem is used by:  iunopeqop  5498  iunopeqopOLD  5499  1sdom2dom  9270
  Copyright terms: Public domain W3C validator