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

Theorem rexcomf 3302
Description: Commutation of restricted existential quantifiers. For a version based on fewer axioms see rexcom 3292. (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 466 . . . . 5 ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ↔ (𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴))
21anbi1i 636 . . . 4 (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜑) ↔ ((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝜑))
322exbii 1882 . . 3 (∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜑) ↔ ∃𝑥∃𝑦((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝜑))
4 excom 2199 . . 3 (∃𝑥∃𝑦((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝜑) ↔ ∃𝑦∃𝑥((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝜑))
53, 4bitri 278 . 2 (∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜑) ↔ ∃𝑦∃𝑥((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝜑))
6 ralcomf.1 . . 3 Ⅎ𝑦𝐴
76r2exf 3285 . 2 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ↔ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜑))
8 ralcomf.2 . . 3 Ⅎ𝑥𝐵
98r2exf 3285 . 2 (∃𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝜑 ↔ ∃𝑦∃𝑥((𝑦 ∈ 𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝜑))
105, 7, 93bitr4i 306 1 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝜑 ↔ ∃𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝜑)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401  ∃wex 1812   ∈ wcel 2145  Ⅎwnfc 2908  ∃wrex 3087
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-11 2194  ax-12 2213
This proof depends on definitions:  df-bi 210  df-an 402  df-ex 1813  df-nf 1817  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088
This theorem is used by:  rexcom4f  33058
  Copyright terms: Public domain W3C validator