Metamath Proof Explorer


Theorem ceqsralt

Description: Restricted quantifier version of ceqsalt . (Contributed by NM, 28-Feb-2013) (Revised by Mario Carneiro, 10-Oct-2016)

Ref Expression
Assertion ceqsralt
|- ( ( F/ x ps /\ A. x ( x = A -> ( ph <-> ps ) ) /\ A e. B ) -> ( A. x e. B ( x = A -> ph ) <-> ps ) )

Proof

Step Hyp Ref Expression
1 df-ral
 |-  ( A. x e. B ( x = A -> ph ) <-> A. x ( x e. B -> ( x = A -> ph ) ) )
2 eleq1
 |-  ( x = A -> ( x e. B <-> A e. B ) )
3 2 pm5.32ri
 |-  ( ( x e. B /\ x = A ) <-> ( A e. B /\ x = A ) )
4 3 imbi1i
 |-  ( ( ( x e. B /\ x = A ) -> ph ) <-> ( ( A e. B /\ x = A ) -> ph ) )
5 impexp
 |-  ( ( ( x e. B /\ x = A ) -> ph ) <-> ( x e. B -> ( x = A -> ph ) ) )
6 impexp
 |-  ( ( ( A e. B /\ x = A ) -> ph ) <-> ( A e. B -> ( x = A -> ph ) ) )
7 4 5 6 3bitr3i
 |-  ( ( x e. B -> ( x = A -> ph ) ) <-> ( A e. B -> ( x = A -> ph ) ) )
8 7 albii
 |-  ( A. x ( x e. B -> ( x = A -> ph ) ) <-> A. x ( A e. B -> ( x = A -> ph ) ) )
9 19.21v
 |-  ( A. x ( A e. B -> ( x = A -> ph ) ) <-> ( A e. B -> A. x ( x = A -> ph ) ) )
10 1 8 9 3bitri
 |-  ( A. x e. B ( x = A -> ph ) <-> ( A e. B -> A. x ( x = A -> ph ) ) )
11 10 a1i
 |-  ( ( F/ x ps /\ A. x ( x = A -> ( ph <-> ps ) ) /\ A e. B ) -> ( A. x e. B ( x = A -> ph ) <-> ( A e. B -> A. x ( x = A -> ph ) ) ) )
12 biimt
 |-  ( A e. B -> ( A. x ( x = A -> ph ) <-> ( A e. B -> A. x ( x = A -> ph ) ) ) )
13 12 3ad2ant3
 |-  ( ( F/ x ps /\ A. x ( x = A -> ( ph <-> ps ) ) /\ A e. B ) -> ( A. x ( x = A -> ph ) <-> ( A e. B -> A. x ( x = A -> ph ) ) ) )
14 ceqsalt
 |-  ( ( F/ x ps /\ A. x ( x = A -> ( ph <-> ps ) ) /\ A e. B ) -> ( A. x ( x = A -> ph ) <-> ps ) )
15 11 13 14 3bitr2d
 |-  ( ( F/ x ps /\ A. x ( x = A -> ( ph <-> ps ) ) /\ A e. B ) -> ( A. x e. B ( x = A -> ph ) <-> ps ) )