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

Theorem rexcomf 3358
Description: Commutation of restricted existential quantifiers. (Contributed by Mario Carneiro, 14-Oct-2016.)
Hypotheses
Ref Expression
ralcomf.1 𝑦𝐴
ralcomf.2 𝑥𝐵
Assertion
Ref Expression
rexcomf (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑦𝐵𝑥𝐴 𝜑)
Distinct variable group:   𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐴(𝑥,𝑦)   𝐵(𝑥,𝑦)

Proof of Theorem rexcomf
StepHypRef Expression
1 ancom 463 . . . . 5 ((𝑥𝐴𝑦𝐵) ↔ (𝑦𝐵𝑥𝐴))
21anbi1i 625 . . . 4 (((𝑥𝐴𝑦𝐵) ∧ 𝜑) ↔ ((𝑦𝐵𝑥𝐴) ∧ 𝜑))
322exbii 1845 . . 3 (∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ 𝜑) ↔ ∃𝑥𝑦((𝑦𝐵𝑥𝐴) ∧ 𝜑))
4 excom 2165 . . 3 (∃𝑥𝑦((𝑦𝐵𝑥𝐴) ∧ 𝜑) ↔ ∃𝑦𝑥((𝑦𝐵𝑥𝐴) ∧ 𝜑))
53, 4bitri 277 . 2 (∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ 𝜑) ↔ ∃𝑦𝑥((𝑦𝐵𝑥𝐴) ∧ 𝜑))
6 ralcomf.1 . . 3 𝑦𝐴
76r2exf 3325 . 2 (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ 𝜑))
8 ralcomf.2 . . 3 𝑥𝐵
98r2exf 3325 . 2 (∃𝑦𝐵𝑥𝐴 𝜑 ↔ ∃𝑦𝑥((𝑦𝐵𝑥𝐴) ∧ 𝜑))
105, 7, 93bitr4i 305 1 (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑦𝐵𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398  wex 1776  wcel 2110  wnfc 2961  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-10 2141  ax-11 2157  ax-12 2173
This theorem depends on definitions:  df-bi 209  df-an 399  df-ex 1777  df-nf 1781  df-sb 2066  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144
This theorem is referenced by:  rexcom4f  30228
  Copyright terms: Public domain W3C validator