Metamath Proof Explorer


Theorem rexcom4

Description: Commutation of restricted and unrestricted existential quantifiers. (Contributed by NM, 12-Apr-2004) (Proof shortened by Andrew Salmon, 8-Jun-2011) Reduce axiom dependencies. (Revised by BJ, 13-Jun-2019)

Ref Expression
Assertion rexcom4 ( ∃ 𝑥𝐴𝑦 𝜑 ↔ ∃ 𝑦𝑥𝐴 𝜑 )

Proof

Step Hyp Ref Expression
1 df-rex ( ∃ 𝑥𝐴𝑦 𝜑 ↔ ∃ 𝑥 ( 𝑥𝐴 ∧ ∃ 𝑦 𝜑 ) )
2 19.42v ( ∃ 𝑦 ( 𝑥𝐴𝜑 ) ↔ ( 𝑥𝐴 ∧ ∃ 𝑦 𝜑 ) )
3 2 bicomi ( ( 𝑥𝐴 ∧ ∃ 𝑦 𝜑 ) ↔ ∃ 𝑦 ( 𝑥𝐴𝜑 ) )
4 3 exbii ( ∃ 𝑥 ( 𝑥𝐴 ∧ ∃ 𝑦 𝜑 ) ↔ ∃ 𝑥𝑦 ( 𝑥𝐴𝜑 ) )
5 excom ( ∃ 𝑥𝑦 ( 𝑥𝐴𝜑 ) ↔ ∃ 𝑦𝑥 ( 𝑥𝐴𝜑 ) )
6 df-rex ( ∃ 𝑥𝐴 𝜑 ↔ ∃ 𝑥 ( 𝑥𝐴𝜑 ) )
7 6 bicomi ( ∃ 𝑥 ( 𝑥𝐴𝜑 ) ↔ ∃ 𝑥𝐴 𝜑 )
8 7 exbii ( ∃ 𝑦𝑥 ( 𝑥𝐴𝜑 ) ↔ ∃ 𝑦𝑥𝐴 𝜑 )
9 5 8 bitri ( ∃ 𝑥𝑦 ( 𝑥𝐴𝜑 ) ↔ ∃ 𝑦𝑥𝐴 𝜑 )
10 4 9 bitri ( ∃ 𝑥 ( 𝑥𝐴 ∧ ∃ 𝑦 𝜑 ) ↔ ∃ 𝑦𝑥𝐴 𝜑 )
11 1 10 bitri ( ∃ 𝑥𝐴𝑦 𝜑 ↔ ∃ 𝑦𝑥𝐴 𝜑 )