Metamath Proof Explorer


Theorem ssrel

Description: A subclass relationship depends only on a relation's ordered pairs. Theorem 3.2(i) of Monk1 p. 33. (Contributed by NM, 2-Aug-1994) (Proof shortened by Andrew Salmon, 27-Aug-2011) Remove dependency on ax-sep , ax-nul , ax-pr . (Revised by KP, 25-Oct-2021) Remove dependency on ax-12 . (Revised by SN, 11-Dec-2024)

Ref Expression
Assertion ssrel RelAABxyxyAxyB

Proof

Step Hyp Ref Expression
1 ssel ABxyAxyB
2 1 alrimivv ABxyxyAxyB
3 df-rel RelAAV×V
4 dfss2 AV×VzzAzV×V
5 3 4 sylbb RelAzzAzV×V
6 elopabw zVzxy|xVyVxyz=xyxVyV
7 6 elv zxy|xVyVxyz=xyxVyV
8 simpl z=xyxVyVz=xy
9 8 2eximi xyz=xyxVyVxyz=xy
10 7 9 sylbi zxy|xVyVxyz=xy
11 df-xp V×V=xy|xVyV
12 10 11 eleq2s zV×Vxyz=xy
13 12 imim2i zAzV×VzAxyz=xy
14 5 13 sylg RelAzzAxyz=xy
15 eleq1 z=xyzAxyA
16 eleq1 z=xyzBxyB
17 15 16 imbi12d z=xyzAzBxyAxyB
18 17 biimprcd xyAxyBz=xyzAzB
19 18 2alimi xyxyAxyBxyz=xyzAzB
20 19.23vv xyz=xyzAzBxyz=xyzAzB
21 19 20 sylib xyxyAxyBxyz=xyzAzB
22 21 com23 xyxyAxyBzAxyz=xyzB
23 22 a2d xyxyAxyBzAxyz=xyzAzB
24 23 alimdv xyxyAxyBzzAxyz=xyzzAzB
25 14 24 syl5 xyxyAxyBRelAzzAzB
26 dfss2 ABzzAzB
27 25 26 syl6ibr xyxyAxyBRelAAB
28 27 com12 RelAxyxyAxyBAB
29 2 28 impbid2 RelAABxyxyAxyB