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

Theorem rextpg 4627
Description: Convert a restricted existential quantification over a triple to a disjunction. (Contributed by Mario Carneiro, 23-Apr-2015.)
Hypotheses
Ref Expression
ralprg.1 (𝑥 = 𝐴 → (𝜑𝜓))
ralprg.2 (𝑥 = 𝐵 → (𝜑𝜒))
raltpg.3 (𝑥 = 𝐶 → (𝜑𝜃))
Assertion
Ref Expression
rextpg ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥 ∈ {𝐴, 𝐵, 𝐶}𝜑 ↔ (𝜓𝜒𝜃)))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝜓,𝑥   𝜒,𝑥   𝜃,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝑉(𝑥)   𝑊(𝑥)   𝑋(𝑥)

Proof of Theorem rextpg
StepHypRef Expression
1 ralprg.1 . . . . . 6 (𝑥 = 𝐴 → (𝜑𝜓))
2 ralprg.2 . . . . . 6 (𝑥 = 𝐵 → (𝜑𝜒))
31, 2rexprg 4625 . . . . 5 ((𝐴𝑉𝐵𝑊) → (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ↔ (𝜓𝜒)))
43orbi1d 910 . . . 4 ((𝐴𝑉𝐵𝑊) → ((∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∨ ∃𝑥 ∈ {𝐶}𝜑) ↔ ((𝜓𝜒) ∨ ∃𝑥 ∈ {𝐶}𝜑)))
5 raltpg.3 . . . . . 6 (𝑥 = 𝐶 → (𝜑𝜃))
65rexsng 4606 . . . . 5 (𝐶𝑋 → (∃𝑥 ∈ {𝐶}𝜑𝜃))
76orbi2d 909 . . . 4 (𝐶𝑋 → (((𝜓𝜒) ∨ ∃𝑥 ∈ {𝐶}𝜑) ↔ ((𝜓𝜒) ∨ 𝜃)))
84, 7sylan9bb 510 . . 3 (((𝐴𝑉𝐵𝑊) ∧ 𝐶𝑋) → ((∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∨ ∃𝑥 ∈ {𝐶}𝜑) ↔ ((𝜓𝜒) ∨ 𝜃)))
983impa 1102 . 2 ((𝐴𝑉𝐵𝑊𝐶𝑋) → ((∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∨ ∃𝑥 ∈ {𝐶}𝜑) ↔ ((𝜓𝜒) ∨ 𝜃)))
10 df-tp 4562 . . . 4 {𝐴, 𝐵, 𝐶} = ({𝐴, 𝐵} ∪ {𝐶})
1110rexeqi 3412 . . 3 (∃𝑥 ∈ {𝐴, 𝐵, 𝐶}𝜑 ↔ ∃𝑥 ∈ ({𝐴, 𝐵} ∪ {𝐶})𝜑)
12 rexun 4163 . . 3 (∃𝑥 ∈ ({𝐴, 𝐵} ∪ {𝐶})𝜑 ↔ (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∨ ∃𝑥 ∈ {𝐶}𝜑))
1311, 12bitri 276 . 2 (∃𝑥 ∈ {𝐴, 𝐵, 𝐶}𝜑 ↔ (∃𝑥 ∈ {𝐴, 𝐵}𝜑 ∨ ∃𝑥 ∈ {𝐶}𝜑))
14 df-3or 1080 . 2 ((𝜓𝜒𝜃) ↔ ((𝜓𝜒) ∨ 𝜃))
159, 13, 143bitr4g 315 1 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (∃𝑥 ∈ {𝐴, 𝐵, 𝐶}𝜑 ↔ (𝜓𝜒𝜃)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396  wo 841  w3o 1078  w3a 1079   = wceq 1528  wcel 2105  wrex 3136  cun 3931  {csn 4557  {cpr 4559  {ctp 4561
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3or 1080  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-rex 3141  df-v 3494  df-sbc 3770  df-un 3938  df-sn 4558  df-pr 4560  df-tp 4562
This theorem is referenced by:  rextp  4634  fr3nr  7483  nb3grprlem2  27090  frgr3vlem2  27980  3vfriswmgr  27984
  Copyright terms: Public domain W3C validator