Metamath Proof Explorer


Theorem sepg

Description: Version of the axiom of separation where the "containing set" is a class variable and the sethood assumption is in the antecedent. (Contributed by NM, 21-Jun-1993) Put sepgi in closed form. (Revised by BJ, 2-Jul-2022)

Ref Expression
Assertion sepg ( 𝐴𝑉 → ∃ 𝑦𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝐴𝜑 ) ) )

Proof

Step Hyp Ref Expression
1 eleq2 ( 𝑧 = 𝐴 → ( 𝑥𝑧𝑥𝐴 ) )
2 1 anbi1d ( 𝑧 = 𝐴 → ( ( 𝑥𝑧𝜑 ) ↔ ( 𝑥𝐴𝜑 ) ) )
3 2 bibi2d ( 𝑧 = 𝐴 → ( ( 𝑥𝑦 ↔ ( 𝑥𝑧𝜑 ) ) ↔ ( 𝑥𝑦 ↔ ( 𝑥𝐴𝜑 ) ) ) )
4 3 albidv ( 𝑧 = 𝐴 → ( ∀ 𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝑧𝜑 ) ) ↔ ∀ 𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝐴𝜑 ) ) ) )
5 4 exbidv ( 𝑧 = 𝐴 → ( ∃ 𝑦𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝑧𝜑 ) ) ↔ ∃ 𝑦𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝐴𝜑 ) ) ) )
6 ax-sep 𝑦𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝑧𝜑 ) )
7 5 6 vtoclg ( 𝐴𝑉 → ∃ 𝑦𝑥 ( 𝑥𝑦 ↔ ( 𝑥𝐴𝜑 ) ) )