Metamath Proof Explorer


Theorem fcoinver

Description: Build an equivalence relation from a function. Two values are equivalent if they have the same image by the function. See also fcoinvbr . (Contributed by Thierry Arnoux, 3-Jan-2020)

Ref Expression
Assertion fcoinver F Fn X F -1 F Er X

Proof

Step Hyp Ref Expression
1 relco Rel F -1 F
2 1 a1i F Fn X Rel F -1 F
3 dmco dom F -1 F = F -1 dom F -1
4 df-rn ran F = dom F -1
5 4 imaeq2i F -1 ran F = F -1 dom F -1
6 cnvimarndm F -1 ran F = dom F
7 fndm F Fn X dom F = X
8 6 7 eqtrid F Fn X F -1 ran F = X
9 5 8 eqtr3id F Fn X F -1 dom F -1 = X
10 3 9 eqtrid F Fn X dom F -1 F = X
11 cnvco F -1 F -1 = F -1 F -1 -1
12 cnvcnvss F -1 -1 F
13 coss2 F -1 -1 F F -1 F -1 -1 F -1 F
14 12 13 ax-mp F -1 F -1 -1 F -1 F
15 11 14 eqsstri F -1 F -1 F -1 F
16 15 a1i F Fn X F -1 F -1 F -1 F
17 coass F -1 F F -1 F = F -1 F F -1 F
18 coass F F -1 F = F F -1 F
19 fnfun F Fn X Fun F
20 funcocnv2 Fun F F F -1 = I ran F
21 19 20 syl F Fn X F F -1 = I ran F
22 21 coeq1d F Fn X F F -1 F = I ran F F
23 dffn3 F Fn X F : X ran F
24 fcoi2 F : X ran F I ran F F = F
25 23 24 sylbi F Fn X I ran F F = F
26 22 25 eqtrd F Fn X F F -1 F = F
27 18 26 eqtr3id F Fn X F F -1 F = F
28 27 coeq2d F Fn X F -1 F F -1 F = F -1 F
29 17 28 eqtrid F Fn X F -1 F F -1 F = F -1 F
30 ssid F -1 F F -1 F
31 29 30 eqsstrdi F Fn X F -1 F F -1 F F -1 F
32 16 31 unssd F Fn X F -1 F -1 F -1 F F -1 F F -1 F
33 df-er F -1 F Er X Rel F -1 F dom F -1 F = X F -1 F -1 F -1 F F -1 F F -1 F
34 2 10 32 33 syl3anbrc F Fn X F -1 F Er X