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 49895
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 1947 . . 3 Ⅎ𝑧 𝑥 ∈ 𝐴
2 nfv 1947 . . 3 Ⅎ𝑥 𝑧 ∈ 𝐴
3 eleq1w 2844 . . 3 (𝑥 = 𝑧 → (𝑥 ∈ 𝐴 ↔ 𝑧 ∈ 𝐴))
41, 2, 3cbvmow 2629 . 2 (∃*𝑥 𝑥 ∈ 𝐴 ↔ ∃*𝑧 𝑧 ∈ 𝐴)
5 neq0 4299 . . . . . . . 8 (¬ 𝐴 = ∅ ↔ ∃𝑧 𝑧 ∈ 𝐴)
65anbi1i 636 . . . . . . 7 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧 ∈ 𝐴) ↔ (∃𝑧 𝑧 ∈ 𝐴 ∧ ∃*𝑧 𝑧 ∈ 𝐴))
7 df-eu 2595 . . . . . . 7 (∃!𝑧 𝑧 ∈ 𝐴 ↔ (∃𝑧 𝑧 ∈ 𝐴 ∧ ∃*𝑧 𝑧 ∈ 𝐴))
8 eu6 2600 . . . . . . 7 (∃!𝑧 𝑧 ∈ 𝐴 ↔ ∃𝑦∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
96, 7, 83bitr2i 302 . . . . . 6 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧 ∈ 𝐴) ↔ ∃𝑦∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
10 dfcleq 2754 . . . . . . . 8 (𝐴 = {𝑦} ↔ ∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 ∈ {𝑦}))
11 velsn 4600 . . . . . . . . . 10 (𝑧 ∈ {𝑦} ↔ 𝑧 = 𝑦)
1211bibi2i 340 . . . . . . . . 9 ((𝑧 ∈ 𝐴 ↔ 𝑧 ∈ {𝑦}) ↔ (𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
1312albii 1852 . . . . . . . 8 (∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 ∈ {𝑦}) ↔ ∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦))
1410, 13sylbbr 239 . . . . . . 7 (∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦) → 𝐴 = {𝑦})
1514eximi 1868 . . . . . 6 (∃𝑦∀𝑧(𝑧 ∈ 𝐴 ↔ 𝑧 = 𝑦) → ∃𝑦 𝐴 = {𝑦})
169, 15sylbi 220 . . . . 5 ((¬ 𝐴 = ∅ ∧ ∃*𝑧 𝑧 ∈ 𝐴) → ∃𝑦 𝐴 = {𝑦})
1716expcom 419 . . . 4 (∃*𝑧 𝑧 ∈ 𝐴 → (¬ 𝐴 = ∅ → ∃𝑦 𝐴 = {𝑦}))
1817orrd 877 . . 3 (∃*𝑧 𝑧 ∈ 𝐴 → (𝐴 = ∅ ∨ ∃𝑦 𝐴 = {𝑦}))
19 mo0 49893 . . . 4 (𝐴 = ∅ → ∃*𝑧 𝑧 ∈ 𝐴)
20 mosn 49892 . . . . 5 (𝐴 = {𝑦} → ∃*𝑧 𝑧 ∈ 𝐴)
2120exlimiv 1963 . . . 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 1568   = wceq 1570  ∃wex 1812   ∈ wcel 2145  ∃*wmo 2563  ∃!weu 2594  ∅c0 4279  {csn 4584
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-v 3453  df-sbc 3740  df-dif 3902  df-nul 4280  df-sn 4585
This theorem is used by:  mosssn2  49896  mofmo  49926  mofeu  49927  f1mo  49932  setc2othin  50543
  Copyright terms: Public domain W3C validator