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

Theorem ceqsrex2v 3650
Description: Elimination of a restricted existential quantifier, using implicit substitution. (Contributed by NM, 29-Oct-2005.)
Hypotheses
Ref Expression
ceqsrex2v.1 (𝑥 = 𝐴 → (𝜑𝜓))
ceqsrex2v.2 (𝑦 = 𝐵 → (𝜓𝜒))
Assertion
Ref Expression
ceqsrex2v ((𝐴𝐶𝐵𝐷) → (∃𝑥𝐶𝑦𝐷 ((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ 𝜒))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦   𝑥,𝐶   𝑥,𝐷,𝑦   𝜓,𝑥   𝜒,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝜓(𝑦)   𝜒(𝑥)   𝐶(𝑦)

Proof of Theorem ceqsrex2v
StepHypRef Expression
1 anass 471 . . . . . 6 (((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ (𝑥 = 𝐴 ∧ (𝑦 = 𝐵𝜑)))
21rexbii 3247 . . . . 5 (∃𝑦𝐷 ((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ ∃𝑦𝐷 (𝑥 = 𝐴 ∧ (𝑦 = 𝐵𝜑)))
3 r19.42v 3350 . . . . 5 (∃𝑦𝐷 (𝑥 = 𝐴 ∧ (𝑦 = 𝐵𝜑)) ↔ (𝑥 = 𝐴 ∧ ∃𝑦𝐷 (𝑦 = 𝐵𝜑)))
42, 3bitri 277 . . . 4 (∃𝑦𝐷 ((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ (𝑥 = 𝐴 ∧ ∃𝑦𝐷 (𝑦 = 𝐵𝜑)))
54rexbii 3247 . . 3 (∃𝑥𝐶𝑦𝐷 ((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ ∃𝑥𝐶 (𝑥 = 𝐴 ∧ ∃𝑦𝐷 (𝑦 = 𝐵𝜑)))
6 ceqsrex2v.1 . . . . . 6 (𝑥 = 𝐴 → (𝜑𝜓))
76anbi2d 630 . . . . 5 (𝑥 = 𝐴 → ((𝑦 = 𝐵𝜑) ↔ (𝑦 = 𝐵𝜓)))
87rexbidv 3297 . . . 4 (𝑥 = 𝐴 → (∃𝑦𝐷 (𝑦 = 𝐵𝜑) ↔ ∃𝑦𝐷 (𝑦 = 𝐵𝜓)))
98ceqsrexv 3648 . . 3 (𝐴𝐶 → (∃𝑥𝐶 (𝑥 = 𝐴 ∧ ∃𝑦𝐷 (𝑦 = 𝐵𝜑)) ↔ ∃𝑦𝐷 (𝑦 = 𝐵𝜓)))
105, 9syl5bb 285 . 2 (𝐴𝐶 → (∃𝑥𝐶𝑦𝐷 ((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ ∃𝑦𝐷 (𝑦 = 𝐵𝜓)))
11 ceqsrex2v.2 . . 3 (𝑦 = 𝐵 → (𝜓𝜒))
1211ceqsrexv 3648 . 2 (𝐵𝐷 → (∃𝑦𝐷 (𝑦 = 𝐵𝜓) ↔ 𝜒))
1310, 12sylan9bb 512 1 ((𝐴𝐶𝐵𝐷) → (∃𝑥𝐶𝑦𝐷 ((𝑥 = 𝐴𝑦 = 𝐵) ∧ 𝜑) ↔ 𝜒))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wcel 2110  wrex 3139
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-ex 1777  df-cleq 2814  df-clel 2893  df-rex 3144
This theorem is referenced by:  opiota  7751  brdom7disj  9947  brdom6disj  9948  lsmspsn  19850
  Copyright terms: Public domain W3C validator