Metamath Proof Explorer


Theorem rabeqcda

Description: When ps is always true in a context, a restricted class abstraction is equal to the restricting class. Deduction form of rabeqc . (Contributed by Steven Nguyen, 7-Jun-2023)

Ref Expression
Hypothesis rabeqcda.1 φ x A ψ
Assertion rabeqcda φ x A | ψ = A

Proof

Step Hyp Ref Expression
1 rabeqcda.1 φ x A ψ
2 df-rab x A | ψ = x | x A ψ
3 1 ex φ x A ψ
4 3 pm4.71d φ x A x A ψ
5 4 bicomd φ x A ψ x A
6 5 abbi1dv φ x | x A ψ = A
7 2 6 syl5eq φ x A | ψ = A