Metamath Proof Explorer


Theorem bj-raldifsn

Description: All elements in a set satisfy a given property if and only if all but one satisfy that property and that one also does. Typically, this can be used for characterizations that are proved using different methods for a given element and for all others, for instance zero and nonzero numbers, or the empty set and nonempty sets. (Contributed by BJ, 7-Dec-2021)

Ref Expression
Hypothesis bj-raldifsn.is x=Bφψ
Assertion bj-raldifsn BAxAφxABφψ

Proof

Step Hyp Ref Expression
1 bj-raldifsn.is x=Bφψ
2 difsnid BAABB=A
3 2 eqcomd BAA=ABB
4 3 raleqdv BAxAφxABBφ
5 ralunb xABBφxABφxBφ
6 5 a1i BAxABBφxABφxBφ
7 1 ralsng BAxBφψ
8 7 anbi2d BAxABφxBφxABφψ
9 4 6 8 3bitrd BAxAφxABφψ