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 47020
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 1917 . . 3 𝑧 𝑥𝐴
2 nfv 1917 . . 3 𝑥 𝑧𝐴
3 eleq1w 2815 . . 3 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
41, 2, 3cbvmow 2596 . 2 (∃*𝑥 𝑥𝐴 ↔ ∃*𝑧 𝑧𝐴)
5 neq0 4310 . . . . . . . 8 𝐴 = ∅ ↔ ∃𝑧 𝑧𝐴)
65anbi1i 624 . . . . . . 7 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) ↔ (∃𝑧 𝑧𝐴 ∧ ∃*𝑧 𝑧𝐴))
7 df-eu 2562 . . . . . . 7 (∃!𝑧 𝑧𝐴 ↔ (∃𝑧 𝑧𝐴 ∧ ∃*𝑧 𝑧𝐴))
8 eu6 2567 . . . . . . 7 (∃!𝑧 𝑧𝐴 ↔ ∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦))
96, 7, 83bitr2i 298 . . . . . 6 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) ↔ ∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦))
10 dfcleq 2724 . . . . . . . 8 (𝐴 = {𝑦} ↔ ∀𝑧(𝑧𝐴𝑧 ∈ {𝑦}))
11 velsn 4607 . . . . . . . . . 10 (𝑧 ∈ {𝑦} ↔ 𝑧 = 𝑦)
1211bibi2i 337 . . . . . . . . 9 ((𝑧𝐴𝑧 ∈ {𝑦}) ↔ (𝑧𝐴𝑧 = 𝑦))
1312albii 1821 . . . . . . . 8 (∀𝑧(𝑧𝐴𝑧 ∈ {𝑦}) ↔ ∀𝑧(𝑧𝐴𝑧 = 𝑦))
1410, 13sylbbr 235 . . . . . . 7 (∀𝑧(𝑧𝐴𝑧 = 𝑦) → 𝐴 = {𝑦})
1514eximi 1837 . . . . . 6 (∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦) → ∃𝑦 𝐴 = {𝑦})
169, 15sylbi 216 . . . . 5 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) → ∃𝑦 𝐴 = {𝑦})
1716expcom 414 . . . 4 (∃*𝑧 𝑧𝐴 → (¬ 𝐴 = ∅ → ∃𝑦 𝐴 = {𝑦}))
1817orrd 861 . . 3 (∃*𝑧 𝑧𝐴 → (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
19 mo0 47018 . . . 4 (𝐴 = ∅ → ∃*𝑧 𝑧𝐴)
20 mosn 47017 . . . . 5 (𝐴 = {𝑦} → ∃*𝑧 𝑧𝐴)
2120exlimiv 1933 . . . 4 (∃𝑦 𝐴 = {𝑦} → ∃*𝑧 𝑧𝐴)
2219, 21jaoi 855 . . 3 ((𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}) → ∃*𝑧 𝑧𝐴)
2318, 22impbii 208 . 2 (∃*𝑧 𝑧𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
244, 23bitri 274 1 (∃*𝑥 𝑥𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 205  wa 396  wo 845  wal 1539   = wceq 1541  wex 1781  wcel 2106  ∃*wmo 2531  ∃!weu 2561  c0 4287  {csn 4591
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2702  ax-sep 5261
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ral 3061  df-rex 3070  df-rmo 3351  df-reu 3352  df-v 3448  df-sbc 3743  df-dif 3916  df-nul 4288  df-sn 4592
This theorem is referenced by:  mosssn2  47021  mofmo  47033  mofeu  47034  f1mo  47039  setc2othin  47196
  Copyright terms: Public domain W3C validator