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

Theorem rexreusng 4621
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 2741 . . . . 5 (([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)
2 nfsbc1v 3740 . . . . . . . 8 𝑦[𝐴 / 𝑦][𝐴 / 𝑥]𝜑
3 nfv 1921 . . . . . . . 8 𝑦[𝐴 / 𝑥]𝜑
42, 3nfan 1906 . . . . . . 7 𝑦([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑)
5 nfv 1921 . . . . . . 7 𝑦 𝐴 = 𝐴
64, 5nfim 1903 . . . . . 6 𝑦(([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)
7 sbceq1a 3731 . . . . . . . 8 (𝑦 = 𝐴 → ([𝐴 / 𝑥]𝜑[𝐴 / 𝑦][𝐴 / 𝑥]𝜑))
8 dfsbcq2 3723 . . . . . . . 8 (𝑦 = 𝐴 → ([𝑦 / 𝑥]𝜑[𝐴 / 𝑥]𝜑))
97, 8anbi12d 631 . . . . . . 7 (𝑦 = 𝐴 → (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) ↔ ([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑)))
10 eqeq2 2752 . . . . . . 7 (𝑦 = 𝐴 → (𝐴 = 𝑦𝐴 = 𝐴))
119, 10imbi12d 345 . . . . . 6 (𝑦 = 𝐴 → ((([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦) ↔ (([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)))
126, 11ralsngf 4613 . . . . 5 (𝐴𝑉 → (∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦) ↔ (([𝐴 / 𝑦][𝐴 / 𝑥]𝜑[𝐴 / 𝑥]𝜑) → 𝐴 = 𝐴)))
131, 12mpbiri 257 . . . 4 (𝐴𝑉 → ∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦))
14 nfcv 2909 . . . . . 6 𝑥{𝐴}
15 nfsbc1v 3740 . . . . . . . 8 𝑥[𝐴 / 𝑥]𝜑
16 nfs1v 2157 . . . . . . . 8 𝑥[𝑦 / 𝑥]𝜑
1715, 16nfan 1906 . . . . . . 7 𝑥([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑)
18 nfv 1921 . . . . . . 7 𝑥 𝐴 = 𝑦
1917, 18nfim 1903 . . . . . 6 𝑥(([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)
2014, 19nfralw 3152 . . . . 5 𝑥𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)
21 sbceq1a 3731 . . . . . . . 8 (𝑥 = 𝐴 → (𝜑[𝐴 / 𝑥]𝜑))
2221anbi1d 630 . . . . . . 7 (𝑥 = 𝐴 → ((𝜑 ∧ [𝑦 / 𝑥]𝜑) ↔ ([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑)))
23 eqeq1 2744 . . . . . . 7 (𝑥 = 𝐴 → (𝑥 = 𝑦𝐴 = 𝑦))
2422, 23imbi12d 345 . . . . . 6 (𝑥 = 𝐴 → (((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦) ↔ (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)))
2524ralbidv 3123 . . . . 5 (𝑥 = 𝐴 → (∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦) ↔ ∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)))
2620, 25ralsngf 4613 . . . 4 (𝐴𝑉 → (∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦) ↔ ∀𝑦 ∈ {𝐴} (([𝐴 / 𝑥]𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝐴 = 𝑦)))
2713, 26mpbird 256 . . 3 (𝐴𝑉 → ∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦))
2827biantrud 532 . 2 (𝐴𝑉 → (∃𝑥 ∈ {𝐴}𝜑 ↔ (∃𝑥 ∈ {𝐴}𝜑 ∧ ∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦))))
29 reu2 3664 . 2 (∃!𝑥 ∈ {𝐴}𝜑 ↔ (∃𝑥 ∈ {𝐴}𝜑 ∧ ∀𝑥 ∈ {𝐴}∀𝑦 ∈ {𝐴} ((𝜑 ∧ [𝑦 / 𝑥]𝜑) → 𝑥 = 𝑦)))
3028, 29bitr4di 289 1 (𝐴𝑉 → (∃𝑥 ∈ {𝐴}𝜑 ↔ ∃!𝑥 ∈ {𝐴}𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1542  [wsb 2071  wcel 2110  wral 3066  wrex 3067  ∃!wreu 3068  [wsbc 3720  {csn 4567
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1545  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ral 3071  df-rex 3072  df-reu 3073  df-v 3433  df-sbc 3721  df-sn 4568
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator