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

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

Proof of Theorem reuprg
StepHypRef Expression
1 reuprg.1 . . 3 (𝑥 = 𝐴 → (𝜑 ↔ 𝜓))
2 reuprg.2 . . 3 (𝑥 = 𝐵 → (𝜑 ↔ 𝜒))
31, 2reuprg0 4663 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (∃!𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ ((𝜓 ∧ (𝜒 → 𝐴 = 𝐵)) ∨ (𝜒 ∧ (𝜓 → 𝐴 = 𝐵)))))
4 orddi 1027 . . 3 (((𝜓 ∧ (𝜒 → 𝐴 = 𝐵)) ∨ (𝜒 ∧ (𝜓 → 𝐴 = 𝐵))) ↔ (((𝜓 ∨ 𝜒) ∧ (𝜓 ∨ (𝜓 → 𝐴 = 𝐵))) ∧ (((𝜒 → 𝐴 = 𝐵) ∨ 𝜒) ∧ ((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵)))))
5 curryax 907 . . . . . 6 (𝜓 ∨ (𝜓 → 𝐴 = 𝐵))
65biantru 539 . . . . 5 ((𝜓 ∨ 𝜒) ↔ ((𝜓 ∨ 𝜒) ∧ (𝜓 ∨ (𝜓 → 𝐴 = 𝐵))))
76bicomi 227 . . . 4 (((𝜓 ∨ 𝜒) ∧ (𝜓 ∨ (𝜓 → 𝐴 = 𝐵))) ↔ (𝜓 ∨ 𝜒))
8 curryax 907 . . . . . . . 8 (𝜒 ∨ (𝜒 → 𝐴 = 𝐵))
9 orcom 884 . . . . . . . 8 (((𝜒 → 𝐴 = 𝐵) ∨ 𝜒) ↔ (𝜒 ∨ (𝜒 → 𝐴 = 𝐵)))
108, 9mpbir 234 . . . . . . 7 ((𝜒 → 𝐴 = 𝐵) ∨ 𝜒)
1110biantrur 540 . . . . . 6 (((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵)) ↔ (((𝜒 → 𝐴 = 𝐵) ∨ 𝜒) ∧ ((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵))))
1211bicomi 227 . . . . 5 ((((𝜒 → 𝐴 = 𝐵) ∨ 𝜒) ∧ ((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵))) ↔ ((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵)))
13 pm4.79 1021 . . . . 5 (((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵)) ↔ ((𝜒 ∧ 𝜓) → 𝐴 = 𝐵))
1412, 13bitri 278 . . . 4 ((((𝜒 → 𝐴 = 𝐵) ∨ 𝜒) ∧ ((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵))) ↔ ((𝜒 ∧ 𝜓) → 𝐴 = 𝐵))
157, 14anbi12i 640 . . 3 ((((𝜓 ∨ 𝜒) ∧ (𝜓 ∨ (𝜓 → 𝐴 = 𝐵))) ∧ (((𝜒 → 𝐴 = 𝐵) ∨ 𝜒) ∧ ((𝜒 → 𝐴 = 𝐵) ∨ (𝜓 → 𝐴 = 𝐵)))) ↔ ((𝜓 ∨ 𝜒) ∧ ((𝜒 ∧ 𝜓) → 𝐴 = 𝐵)))
164, 15bitri 278 . 2 (((𝜓 ∧ (𝜒 → 𝐴 = 𝐵)) ∨ (𝜒 ∧ (𝜓 → 𝐴 = 𝐵))) ↔ ((𝜓 ∨ 𝜒) ∧ ((𝜒 ∧ 𝜓) → 𝐴 = 𝐵)))
173, 16bitrdi 290 1 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (∃!𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ ((𝜓 ∨ 𝜒) ∧ ((𝜒 ∧ 𝜓) → 𝐴 = 𝐵))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1570   ∈ wcel 2145  ∃!wreu 3364  {cpr 4586
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
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  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-un 3904  df-sn 4585  df-pr 4587
This theorem is used by:  reurexprg  4665
  Copyright terms: Public domain W3C validator