MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  rexreusng Structured version   Visualization version   GIF version

Theorem rexreusng 4615
Description: Restricted existential uniqueness over a singleton is equivalent to a restricted existential quantification over a singleton. (Contributed by AV, 3-Apr-2023.)
Assertion
Ref Expression
rexreusng (𝐴𝑉 → (∃𝑥 ∈ {𝐴}𝜑 ↔ ∃!𝑥 ∈ {𝐴}𝜑))
Distinct variable group:   𝑥,𝐴
Allowed substitution hints:   𝜑(𝑥)   𝑉(𝑥)

Proof of Theorem rexreusng
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 eqidd 2739 . . . . 5 (([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)
2 nfsbc1v 3736 . . . . . . . 8 𝑦[𝐴 / 𝑦][𝐴 / 𝑥]𝜑
3 nfv 1917 . . . . . . . 8 𝑦[𝐴 / 𝑥]𝜑
42, 3nfan 1902 . . . . . . 7 𝑦([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑)
5 nfv 1917 . . . . . . 7 𝑦 𝐴 = 𝐴
64, 5nfim 1899 . . . . . 6 𝑦(([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)
7 sbceq1a 3727 . . . . . . . 8 (𝑦 = 𝐴 → ([𝐴 / 𝑥]𝜑[𝐴 / 𝑦][𝐴 / 𝑥]𝜑))
8 dfsbcq2 3719 . . . . . . . 8 (𝑦 = 𝐴 → ([𝑦 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
97, 8anbi12d 631 . . . . . . 7 (𝑦 = 𝐴 → (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) ↔ ([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑)))
10 eqeq2 2750 . . . . . . 7 (𝑦 = 𝐴 → (𝐴 = 𝑦𝐴 = 𝐴))
119, 10imbi12d 345 . . . . . 6 (𝑦 = 𝐴 → ((([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦) ↔ (([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)))
126, 11ralsngf 4607 . . . . 5 (𝐴𝑉 → (∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦) ↔ (([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)))
131, 12mpbiri 257 . . . 4 (𝐴𝑉 → ∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦))
14 nfcv 2907 . . . . . 6 𝑥{𝐴}
15 nfsbc1v 3736 . . . . . . . 8 𝑥[𝐴 / 𝑥]𝜑
16 nfs1v 2153 . . . . . . . 8 𝑥[𝑦 / 𝑥]𝜑
1715, 16nfan 1902 . . . . . . 7 𝑥([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑)
18 nfv 1917 . . . . . . 7 𝑥 𝐴 = 𝑦
1917, 18nfim 1899 . . . . . 6 𝑥(([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)
2014, 19nfralw 3151 . . . . 5 𝑥𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)
21 sbceq1a 3727 . . . . . . . 8 (𝑥 = 𝐴 → (𝜑[𝐴 / 𝑥]𝜑))
2221anbi1d 630 . . . . . . 7 (𝑥 = 𝐴 → ((𝜑 ∧ [𝑦 / 𝑥]𝜑) ↔ ([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑)))
23 eqeq1 2742 . . . . . . 7 (𝑥 = 𝐴 → (𝑥 = 𝑦𝐴 = 𝑦))
2422, 23imbi12d 345 . . . . . 6 (𝑥 = 𝐴 → (((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦) ↔ (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)))
2524ralbidv 3112 . . . . 5 (𝑥 = 𝐴 → (∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦) ↔ ∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)))
2620, 25ralsngf 4607 . . . 4 (𝐴𝑉 → (∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦) ↔ ∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)))
2713, 26mpbird 256 . . 3 (𝐴𝑉 → ∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦))
2827biantrud 532 . 2 (𝐴𝑉 → (∃𝑥 ∈ {𝐴}𝜑 ↔ (∃𝑥 ∈ {𝐴}𝜑 ∧ ∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦))))
29 reu2 3660 . 2 (∃!𝑥 ∈ {𝐴}𝜑 ↔ (∃𝑥 ∈ {𝐴}𝜑 ∧ ∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦)))
3028, 29bitr4di 289 1 (𝐴𝑉 → (∃𝑥 ∈ {𝐴}𝜑 ↔ ∃!𝑥 ∈ {𝐴}𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  [wsb 2067  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066  [wsbc 3716  {csn 4561
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-reu 3072  df-v 3434  df-sbc 3717  df-sn 4562
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator