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 50444
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 1956 . . 3 Ⅎ𝑧 𝑥 ∈ 𝐴
2 nfv 1956 . . 3 Ⅎ𝑥 𝑧 ∈ 𝐴
3 eleq1w 2858 . . 3 (𝑥 = 𝑧 → (𝑥 ∈ 𝐴 ↔ 𝑧 ∈ 𝐴))
41, 2, 3cbvmow 2642 . 2 (∃*𝑥 𝑥 ∈ 𝐴 ↔ ∃*𝑧 𝑧 ∈ 𝐴)
5 neq0 4309 . . . . . . . 8 (¬ 𝐴 = ∅ ↔ ∃𝑧 𝑧 ∈ 𝐴)
65anbi1i 636 . . . . . . 7 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧 ∈ 𝐴) ↔ (∃𝑧 𝑧 ∈ 𝐴 ∧ ∃*𝑧 𝑧 ∈ 𝐴))
7 df-eu 2606 . . . . . . 7 (∃!𝑧 𝑧 ∈ 𝐴 ↔ (∃𝑧 𝑧 ∈ 𝐴 ∧ ∃*𝑧 𝑧 ∈ 𝐴))
8 eu6 2611 . . . . . . 7 (∃!𝑧 𝑧 ∈ 𝐴 ↔ ∃𝑦∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
96, 7, 83bitr2i 302 . . . . . 6 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧 ∈ 𝐴) ↔ ∃𝑦∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
10 dfcleq 2767 . . . . . . . 8 (𝐴 = {𝑦} ↔ ∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 ∈ {𝑦}))
11 velsn 4607 . . . . . . . . . 10 (𝑧 ∈ {𝑦} ↔ 𝑧 = 𝑦)
1211bibi2i 340 . . . . . . . . 9 ((𝑧 ∈ 𝐴 ↔ 𝑧 ∈ {𝑦}) ↔ (𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
1312albii 1858 . . . . . . . 8 (∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 ∈ {𝑦}) ↔ ∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
1410, 13sylbbr 239 . . . . . . 7 (∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦) → 𝐴 = {𝑦})
1514eximi 1874 . . . . . 6 (∃𝑦∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦) → ∃𝑦 𝐴 = {𝑦})
169, 15sylbi 220 . . . . 5 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧 ∈ 𝐴) → ∃𝑦 𝐴 = {𝑦})
1716expcom 419 . . . 4 (∃*𝑧 𝑧 ∈ 𝐴 → (¬ 𝐴 = ∅ → ∃𝑦 𝐴 = {𝑦}))
1817orrd 877 . . 3 (∃*𝑧 𝑧 ∈ 𝐴 → (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
19 mo0 50442 . . . 4 (𝐴 = ∅ → ∃*𝑧 𝑧 ∈ 𝐴)
20 mosn 50441 . . . . 5 (𝐴 = {𝑦} → ∃*𝑧 𝑧 ∈ 𝐴)
2120exlimiv 1972 . . . 4 (∃𝑦 𝐴 = {𝑦} → ∃*𝑧 𝑧 ∈ 𝐴)
2219, 21jaoi 871 . . 3 ((𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}) → ∃*𝑧 𝑧 ∈ 𝐴)
2318, 22impbii 212 . 2 (∃*𝑧 𝑧 ∈ 𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
244, 23bitri 278 1 (∃*𝑥 𝑥 ∈ 𝐴 ↔ (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ↔ wb 209   ∧ wa 401   ∨ wo 861  ∀wal 1570   = wceq 1572  ∃wex 1818   ∈ wcel 2156  ∃*wmo 2574  ∃!weu 2605  ∅c0 4288  {csn 4595
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-v 3463  df-sbc 3750  df-dif 4057  df-nul 4289  df-sn 4596
This theorem is used by:  mosssn2  50445  mofmo  50475  mofeu  50476  f1mo  50481  setc2othin  51117
  Copyright terms: Public domain W3C validator