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

Theorem reurexprg 4670
Description: Convert a restricted existential uniqueness over a pair to a restricted existential quantification and an implication . (Contributed by AV, 3-Apr-2023.)
Hypotheses
Ref Expression
reuprg.1 (𝑥 = 𝐴 → (𝜑𝜓))
reuprg.2 (𝑥 = 𝐵 → (𝜑𝜒))
Assertion
Ref Expression
reurexprg ((𝐴𝑉𝐵𝑊) → (∃!𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∧ ((𝜒𝜓) → 𝐴 = 𝐵))))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝜓,𝑥   𝜒,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem reurexprg
StepHypRef Expression
1 reuprg.1 . . 3 (𝑥 = 𝐴 → (𝜑𝜓))
2 reuprg.2 . . 3 (𝑥 = 𝐵 → (𝜑𝜒))
31, 2reuprg 4669 . 2 ((𝐴𝑉𝐵𝑊) → (∃!𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ ((𝜓𝜒) ∧ ((𝜒𝜓) → 𝐴 = 𝐵))))
41, 2rexprg 4662 . . . 4 ((𝐴𝑉𝐵𝑊) → (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ (𝜓𝜒)))
54bicomd 222 . . 3 ((𝐴𝑉𝐵𝑊) → ((𝜓𝜒) ↔ ∃𝑥 ∈ {𝐴, 𝐵}𝜑))
65anbi1d 631 . 2 ((𝐴𝑉𝐵𝑊) → (((𝜓𝜒) ∧ ((𝜒𝜓) → 𝐴 = 𝐵)) ↔ (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∧ ((𝜒𝜓) → 𝐴 = 𝐵))))
73, 6bitrd 279 1 ((𝐴𝑉𝐵𝑊) → (∃!𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∧ ((𝜒𝜓) → 𝐴 = 𝐵))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  wo 846   = wceq 1542  wcel 2107  wrex 3074  ∃!wreu 3354  {cpr 4593
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 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2708
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2890  df-ral 3066  df-rex 3075  df-rmo 3356  df-reu 3357  df-v 3450  df-sbc 3745  df-un 3920  df-sn 4592  df-pr 4594
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator