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

Theorem n0snor2el 4304
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 4303 . . . 4 (∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → ∃𝑧 𝐴 = {𝑧})
21olcd 407 . . 3 (∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
32a1d 25 . 2 (∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
4 df-ne 2782 . . . . . . 7 (𝑤𝑦 ↔ ¬ 𝑤 = 𝑦)
54rexbii 3023 . . . . . 6 (∃𝑦𝐴 𝑤𝑦 ↔ ∃𝑦𝐴 ¬ 𝑤 = 𝑦)
6 rexnal 2978 . . . . . 6 (∃𝑦𝐴 ¬ 𝑤 = 𝑦 ↔ ¬ ∀𝑦𝐴 𝑤 = 𝑦)
75, 6bitri 263 . . . . 5 (∃𝑦𝐴 𝑤𝑦 ↔ ¬ ∀𝑦𝐴 𝑤 = 𝑦)
87ralbii 2963 . . . 4 (∀𝑤𝐴𝑦𝐴 𝑤𝑦 ↔ ∀𝑤𝐴 ¬ ∀𝑦𝐴 𝑤 = 𝑦)
9 ralnex 2975 . . . 4 (∀𝑤𝐴 ¬ ∀𝑦𝐴 𝑤 = 𝑦 ↔ ¬ ∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦)
108, 9bitri 263 . . 3 (∀𝑤𝐴𝑦𝐴 𝑤𝑦 ↔ ¬ ∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦)
11 neeq1 2844 . . . . . . . . 9 (𝑤 = 𝑥 → (𝑤𝑦𝑥𝑦))
1211rexbidv 3034 . . . . . . . 8 (𝑤 = 𝑥 → (∃𝑦𝐴 𝑤𝑦 ↔ ∃𝑦𝐴 𝑥𝑦))
1312rspcva 3280 . . . . . . 7 ((𝑥𝐴 ∧ ∀𝑤𝐴𝑦𝐴 𝑤𝑦) → ∃𝑦𝐴 𝑥𝑦)
1413ancoms 468 . . . . . 6 ((∀𝑤𝐴𝑦𝐴 𝑤𝑦𝑥𝐴) → ∃𝑦𝐴 𝑥𝑦)
1514reximdva0 3891 . . . . 5 ((∀𝑤𝐴𝑦𝐴 𝑤𝑦𝐴 ≠ ∅) → ∃𝑥𝐴𝑦𝐴 𝑥𝑦)
1615orcd 406 . . . 4 ((∀𝑤𝐴𝑦𝐴 𝑤𝑦𝐴 ≠ ∅) → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
1716ex 449 . . 3 (∀𝑤𝐴𝑦𝐴 𝑤𝑦 → (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
1810, 17sylbir 224 . 2 (¬ ∃𝑤𝐴𝑦𝐴 𝑤 = 𝑦 → (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧})))
193, 18pm2.61i 175 1 (𝐴 ≠ ∅ → (∃𝑥𝐴𝑦𝐴 𝑥𝑦 ∨ ∃𝑧 𝐴 = {𝑧}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wo 382  wa 383   = wceq 1475  wex 1695  wcel 1977  wne 2780  wral 2896  wrex 2897  c0 3874  {csn 4125
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-v 3175  df-dif 3543  df-in 3547  df-ss 3554  df-nul 3875  df-sn 4126
This theorem is referenced by:  iunopeqop  4906
  Copyright terms: Public domain W3C validator