Metamath Proof Explorer


Theorem bj-idreseq

Description: Sufficient condition for the restricted identity relation to agree with equality. Note that the instance of bj-ideqg with _V substituted for V is a direct consequence of bj-idreseq . This is a strengthening of resieq which should be proved from it (note that currently, resieq relies on ideq ). Note that the intersection in the antecedent is not very meaningful, but is a device to prove versions with either class assumed to be a set. It could be enough to prove the version with a disjunctive antecedent: |- ( ( A e. C \/ B e. C ) -> ... ) . (Contributed by BJ, 25-Dec-2023)

Ref Expression
Assertion bj-idreseq ABCAICBA=B

Proof

Step Hyp Ref Expression
1 bj-brresdm AICBAC
2 relres RelIC
3 2 brrelex2i AICBBV
4 1 3 jca AICBACBV
5 4 adantl ABCAICBACBV
6 eqimss A=BAB
7 df-ss ABAB=A
8 6 7 sylib A=BAB=A
9 8 adantl ABCA=BAB=A
10 simpl ABCA=BABC
11 9 10 eqeltrrd ABCA=BAC
12 eqimss2 A=BBA
13 sseqin2 BAAB=B
14 12 13 sylib A=BAB=B
15 14 adantl ABCA=BAB=B
16 15 10 eqeltrrd ABCA=BBC
17 16 elexd ABCA=BBV
18 11 17 jca ABCA=BACBV
19 brres BVAICBACAIB
20 19 adantl ACBVAICBACAIB
21 eqeq12 x=Ay=Bx=yA=B
22 df-id I=xy|x=y
23 21 22 brabga ACBVAIBA=B
24 23 anbi2d ACBVACAIBACA=B
25 simp3 ACBVACA=BA=B
26 25 3expib ACBVACA=BA=B
27 3simpb ACBVA=BACA=B
28 27 3expia ACBVA=BACA=B
29 26 28 impbid ACBVACA=BA=B
30 20 24 29 3bitrd ACBVAICBA=B
31 5 18 30 pm5.21nd ABCAICBA=B