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

Theorem n0snor2el 4763
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 group:   𝑥,𝐴,𝑦,𝑧

Proof of Theorem n0snor2el
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 issn 4762 . . . 4 (∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → ∃𝑧 𝐴 = {𝑧})
21olcd 870 . . 3 (∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
32a1d 25 . 2 (∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
4 df-ne 3017 . . . . . . 7 (𝑤𝑦 ↔ ¬ 𝑤 = 𝑦)
54rexbii 3247 . . . . . 6 (∃𝑦𝐴 𝑤𝑦 ↔ ∃𝑦𝐴 ¬ 𝑤 = 𝑦)
6 rexnal 3238 . . . . . 6 (∃𝑦𝐴 ¬ 𝑤 = 𝑦 ↔ ¬ ∀𝑦𝐴 𝑤 = 𝑦)
75, 6bitri 277 . . . . 5 (∃𝑦𝐴 𝑤𝑦 ↔ ¬ ∀𝑦𝐴 𝑤 = 𝑦)
87ralbii 3165 . . . 4 (∀𝑤𝐴𝑦𝐴 𝑤𝑦 ↔ ∀𝑤𝐴 ¬ ∀𝑦𝐴 𝑤 = 𝑦)
9 ralnex 3236 . . . 4 (∀𝑤𝐴 ¬ ∀𝑦𝐴 𝑤 = 𝑦 ↔ ¬ ∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦)
108, 9bitri 277 . . 3 (∀𝑤𝐴𝑦𝐴 𝑤𝑦 ↔ ¬ ∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦)
11 neeq1 3078 . . . . . . . 8 (𝑤 = 𝑥 → (𝑤𝑦𝑥𝑦))
1211rexbidv 3297 . . . . . . 7 (𝑤 = 𝑥 → (∃𝑦𝐴 𝑤𝑦 ↔ ∃𝑦𝐴 𝑥𝑦))
1312rspccva 3621 . . . . . 6 ((∀𝑤𝐴𝑦𝐴 𝑤𝑦𝑥𝐴) → ∃𝑦𝐴 𝑥𝑦)
1413reximdva0 4311 . . . . 5 ((∀𝑤𝐴𝑦𝐴 𝑤𝑦𝐴 ≠ ∅) → ∃𝑥𝐴𝑦𝐴 𝑥𝑦)
1514orcd 869 . . . 4 ((∀𝑤𝐴𝑦𝐴 𝑤𝑦𝐴 ≠ ∅) → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
1615ex 415 . . 3 (∀𝑤𝐴𝑦𝐴 𝑤𝑦 → (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
1710, 16sylbir 237 . 2 (¬ ∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
183, 17pm2.61i 184 1 (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398  wo 843   = wceq 1533  wex 1776  wne 3016  wral 3138  wrex 3139  c0 4290  {csn 4566
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-v 3496  df-dif 3938  df-in 3942  df-ss 3951  df-nul 4291  df-sn 4567
This theorem is referenced by:  iunopeqop  5410
  Copyright terms: Public domain W3C validator