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 46049
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 2821 . . 3 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
41, 2, 3cbvmow 2603 . 2 (∃*𝑥 𝑥𝐴 ↔ ∃*𝑧 𝑧𝐴)
5 neq0 4276 . . . . . . . 8 𝐴 = ∅ ↔ ∃𝑧 𝑧𝐴)
65anbi1i 623 . . . . . . 7 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) ↔ (∃𝑧 𝑧𝐴 ∧ ∃*𝑧 𝑧𝐴))
7 df-eu 2569 . . . . . . 7 (∃!𝑧 𝑧𝐴 ↔ (∃𝑧 𝑧𝐴 ∧ ∃*𝑧 𝑧𝐴))
8 eu6 2574 . . . . . . 7 (∃!𝑧 𝑧𝐴 ↔ ∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦))
96, 7, 83bitr2i 298 . . . . . 6 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) ↔ ∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦))
10 dfcleq 2731 . . . . . . . 8 (𝐴 = {𝑦} ↔ ∀𝑧(𝑧𝐴𝑧 ∈ {𝑦}))
11 velsn 4574 . . . . . . . . . 10 (𝑧 ∈ {𝑦} ↔ 𝑧 = 𝑦)
1211bibi2i 337 . . . . . . . . 9 ((𝑧𝐴𝑧 ∈ {𝑦}) ↔ (𝑧𝐴𝑧 = 𝑦))
1312albii 1823 . . . . . . . 8 (∀𝑧(𝑧𝐴𝑧 ∈ {𝑦}) ↔ ∀𝑧(𝑧𝐴𝑧 = 𝑦))
1410, 13sylbbr 235 . . . . . . 7 (∀𝑧(𝑧𝐴𝑧 = 𝑦) → 𝐴 = {𝑦})
1514eximi 1838 . . . . . 6 (∃𝑦𝑧(𝑧𝐴𝑧 = 𝑦) → ∃𝑦 𝐴 = {𝑦})
169, 15sylbi 216 . . . . 5 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧𝐴) → ∃𝑦 𝐴 = {𝑦})
1716expcom 413 . . . 4 (∃*𝑧 𝑧𝐴 → (¬ 𝐴 = ∅ → ∃𝑦 𝐴 = {𝑦}))
1817orrd 859 . . 3 (∃*𝑧 𝑧𝐴 → (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
19 mo0 46047 . . . 4 (𝐴 = ∅ → ∃*𝑧 𝑧𝐴)
20 mosn 46046 . . . . 5 (𝐴 = {𝑦} → ∃*𝑧 𝑧𝐴)
2120exlimiv 1934 . . . 4 (∃𝑦 𝐴 = {𝑦} → ∃*𝑧 𝑧𝐴)
2219, 21jaoi 853 . . 3 ((𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}) → ∃*𝑧 𝑧𝐴)
2318, 22impbii 208 . 2 (∃*𝑧 𝑧𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
244, 23bitri 274 1 (∃*𝑥 𝑥𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 205  wa 395  wo 843  wal 1537   = wceq 1539  wex 1783  wcel 2108  ∃*wmo 2538  ∃!weu 2568  c0 4253  {csn 4558
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-v 3424  df-sbc 3712  df-dif 3886  df-nul 4254  df-sn 4559
This theorem is referenced by:  mosssn2  46050  mofmo  46062  mofeu  46063  f1mo  46068  setc2othin  46225
  Copyright terms: Public domain W3C validator