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

Theorem rexcomf 3355
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 461 . . . . 5 ((𝑥𝐴𝑦𝐵) ↔ (𝑦𝐵𝑥𝐴))
21anbi1i 623 . . . 4 (((𝑥𝐴𝑦𝐵) ∧ 𝜑) ↔ ((𝑦𝐵𝑥𝐴) ∧ 𝜑))
322exbii 1840 . . 3 (∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ 𝜑) ↔ ∃𝑥𝑦((𝑦𝐵𝑥𝐴) ∧ 𝜑))
4 excom 2159 . . 3 (∃𝑥𝑦((𝑦𝐵𝑥𝐴) ∧ 𝜑) ↔ ∃𝑦𝑥((𝑦𝐵𝑥𝐴) ∧ 𝜑))
53, 4bitri 276 . 2 (∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ 𝜑) ↔ ∃𝑦𝑥((𝑦𝐵𝑥𝐴) ∧ 𝜑))
6 ralcomf.1 . . 3 𝑦𝐴
76r2exf 3322 . 2 (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑥𝑦((𝑥𝐴𝑦𝐵) ∧ 𝜑))
8 ralcomf.2 . . 3 𝑥𝐵
98r2exf 3322 . 2 (∃𝑦𝐵𝑥𝐴 𝜑 ↔ ∃𝑦𝑥((𝑦𝐵𝑥𝐴) ∧ 𝜑))
105, 7, 93bitr4i 304 1 (∃𝑥𝐴𝑦𝐵 𝜑 ↔ ∃𝑦𝐵𝑥𝐴 𝜑)
Colors of variables: wff setvar class
Syntax hints:  wb 207  wa 396  wex 1771  wcel 2105  wnfc 2958  wrex 3136
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-10 2136  ax-11 2151  ax-12 2167
This theorem depends on definitions:  df-bi 208  df-an 397  df-ex 1772  df-nf 1776  df-sb 2061  df-clel 2890  df-nfc 2960  df-ral 3140  df-rex 3141
This theorem is referenced by:  rexcom4f  30161
  Copyright terms: Public domain W3C validator