Metamath Proof Explorer


Theorem elab2gw

Description: Membership in a class abstraction, using implicit substitution and an intermediate setvar y to avoid ax-10 , ax-11 , ax-12 . It also avoids a disjoint variable condition on x and A . (Contributed by SN, 16-May-2024)

Ref Expression
Hypotheses elabgw.1 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
elabgw.2 ( 𝑦 = 𝐴 → ( 𝜓𝜒 ) )
elab2gw.3 𝐵 = { 𝑥𝜑 }
Assertion elab2gw ( 𝐴𝑉 → ( 𝐴𝐵𝜒 ) )

Proof

Step Hyp Ref Expression
1 elabgw.1 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
2 elabgw.2 ( 𝑦 = 𝐴 → ( 𝜓𝜒 ) )
3 elab2gw.3 𝐵 = { 𝑥𝜑 }
4 3 eleq2i ( 𝐴𝐵𝐴 ∈ { 𝑥𝜑 } )
5 1 2 elabgw ( 𝐴𝑉 → ( 𝐴 ∈ { 𝑥𝜑 } ↔ 𝜒 ) )
6 4 5 syl5bb ( 𝐴𝑉 → ( 𝐴𝐵𝜒 ) )