Users' Mathboxes Mathbox for Zhi Wang < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  mo0sn Structured version   Visualization version   GIF version

Theorem mo0sn 46172
Description: Two ways of expressing "at most one" element in a class. (Contributed by Zhi Wang, 19-Sep-2024.)
Assertion
Ref Expression
mo0sn (∃*𝑥 𝑥𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
Distinct variable groups:   𝑥,𝐴   𝑦,𝐴

Proof of Theorem mo0sn
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 nfv 1918 . . 3 𝑧 𝑥𝐴
2 nfv 1918 . . 3 𝑥 𝑧𝐴
3 eleq1w 2822 . . 3 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
41, 2, 3cbvmow 2604 . 2 (∃*𝑥 𝑥𝐴 ↔ ∃*𝑧 𝑧𝐴)
5 neq0 4280 . . . . . . . 8 𝐴 = ∅ ↔ ∃𝑧 𝑧𝐴)
65anbi1i 624 . . . . . . 7 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) ↔ (∃𝑧 𝑧𝐴 ∧ ∃*𝑧 𝑧𝐴))
7 df-eu 2570 . . . . . . 7 (∃!𝑧 𝑧𝐴 ↔ (∃𝑧 𝑧𝐴 ∧ ∃*𝑧 𝑧𝐴))
8 eu6 2575 . . . . . . 7 (∃!𝑧 𝑧𝐴 ↔ ∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦))
96, 7, 83bitr2i 299 . . . . . 6 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) ↔ ∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦))
10 dfcleq 2732 . . . . . . . 8 (𝐴 = {𝑦} ↔ ∀𝑧(𝑧𝐴𝑧 ∈ {𝑦}))
11 velsn 4578 . . . . . . . . . 10 (𝑧 ∈ {𝑦} ↔ 𝑧 = 𝑦)
1211bibi2i 338 . . . . . . . . 9 ((𝑧𝐴𝑧 ∈ {𝑦}) ↔ (𝑧𝐴𝑧 = 𝑦))
1312albii 1822 . . . . . . . 8 (∀𝑧(𝑧𝐴𝑧 ∈ {𝑦}) ↔ ∀𝑧(𝑧𝐴𝑧 = 𝑦))
1410, 13sylbbr 235 . . . . . . 7 (∀𝑧(𝑧𝐴𝑧 = 𝑦) → 𝐴 = {𝑦})
1514eximi 1838 . . . . . 6 (∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦) → ∃𝑦 𝐴 = {𝑦})
169, 15sylbi 216 . . . . 5 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) → ∃𝑦 𝐴 = {𝑦})
1716expcom 414 . . . 4 (∃*𝑧 𝑧𝐴 → (¬ 𝐴 = ∅ → ∃𝑦 𝐴 = {𝑦}))
1817orrd 860 . . 3 (∃*𝑧 𝑧𝐴 → (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
19 mo0 46170 . . . 4 (𝐴 = ∅ → ∃*𝑧 𝑧𝐴)
20 mosn 46169 . . . . 5 (𝐴 = {𝑦} → ∃*𝑧 𝑧𝐴)
2120exlimiv 1934 . . . 4 (∃𝑦 𝐴 = {𝑦} → ∃*𝑧 𝑧𝐴)
2219, 21jaoi 854 . . 3 ((𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}) → ∃*𝑧 𝑧𝐴)
2318, 22impbii 208 . 2 (∃*𝑧 𝑧𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
244, 23bitri 274 1 (∃*𝑥 𝑥𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 205  wa 396  wo 844  wal 1537   = wceq 1539  wex 1782  wcel 2107  ∃*wmo 2539  ∃!weu 2569  c0 4257  {csn 4562
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2710  ax-sep 5224
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ral 3070  df-rex 3071  df-rmo 3072  df-reu 3073  df-v 3435  df-sbc 3718  df-dif 3891  df-nul 4258  df-sn 4563
This theorem is referenced by:  mosssn2  46173  mofmo  46185  mofeu  46186  f1mo  46191  setc2othin  46348
  Copyright terms: Public domain W3C validator