Metamath Proof Explorer


Theorem fpwwe

Description: Given any function F from the powerset of A to A , canth2 gives that the function is not injective, but we can say rather more than that. There is a unique well-ordered subset <. X , ( WX ) >. which "agrees" with F in the sense that each initial segment maps to its upper bound, and such that the entire set maps to an element of the set (so that it cannot be extended without losing the well-ordering). This theorem can be used to prove dfac8a . Theorem 1.1 of KanamoriPincus p. 415. (Contributed by Mario Carneiro, 18-May-2015) (Revised by AV, 20-Jul-2024)

Ref Expression
Hypotheses fpwwe.1 W = x r | x A r x × x r We x y x F r -1 y = y
fpwwe.2 φ A V
fpwwe.3 φ x 𝒫 A dom card F x A
fpwwe.4 X = dom W
Assertion fpwwe φ Y W R F Y Y Y = X R = W X

Proof

Step Hyp Ref Expression
1 fpwwe.1 W = x r | x A r x × x r We x y x F r -1 y = y
2 fpwwe.2 φ A V
3 fpwwe.3 φ x 𝒫 A dom card F x A
4 fpwwe.4 X = dom W
5 df-ov Y F 1 st R = F 1 st Y R
6 fo1st 1 st : V onto V
7 fofn 1 st : V onto V 1 st Fn V
8 6 7 ax-mp 1 st Fn V
9 opex Y R V
10 fvco2 1 st Fn V Y R V F 1 st Y R = F 1 st Y R
11 8 9 10 mp2an F 1 st Y R = F 1 st Y R
12 5 11 eqtri Y F 1 st R = F 1 st Y R
13 1 bropaex12 Y W R Y V R V
14 op1stg Y V R V 1 st Y R = Y
15 13 14 syl Y W R 1 st Y R = Y
16 15 fveq2d Y W R F 1 st Y R = F Y
17 12 16 eqtrid Y W R Y F 1 st R = F Y
18 17 eleq1d Y W R Y F 1 st R Y F Y Y
19 18 pm5.32i Y W R Y F 1 st R Y Y W R F Y Y
20 vex r V
21 20 cnvex r -1 V
22 21 imaex r -1 y V
23 vex u V
24 20 inex1 r u × u V
25 23 24 opco1i u F 1 st r u × u = F u
26 fveq2 u = r -1 y F u = F r -1 y
27 25 26 eqtrid u = r -1 y u F 1 st r u × u = F r -1 y
28 27 eqeq1d u = r -1 y u F 1 st r u × u = y F r -1 y = y
29 22 28 sbcie [˙ r -1 y / u]˙ u F 1 st r u × u = y F r -1 y = y
30 29 ralbii y x [˙ r -1 y / u]˙ u F 1 st r u × u = y y x F r -1 y = y
31 30 anbi2i r We x y x [˙ r -1 y / u]˙ u F 1 st r u × u = y r We x y x F r -1 y = y
32 31 anbi2i x A r x × x r We x y x [˙ r -1 y / u]˙ u F 1 st r u × u = y x A r x × x r We x y x F r -1 y = y
33 32 opabbii x r | x A r x × x r We x y x [˙ r -1 y / u]˙ u F 1 st r u × u = y = x r | x A r x × x r We x y x F r -1 y = y
34 1 33 eqtr4i W = x r | x A r x × x r We x y x [˙ r -1 y / u]˙ u F 1 st r u × u = y
35 vex x V
36 35 20 opco1i x F 1 st r = F x
37 simp1 x A r x × x r We x x A
38 velpw x 𝒫 A x A
39 37 38 sylibr x A r x × x r We x x 𝒫 A
40 19.8a r We x r r We x
41 40 3ad2ant3 x A r x × x r We x r r We x
42 ween x dom card r r We x
43 41 42 sylibr x A r x × x r We x x dom card
44 39 43 elind x A r x × x r We x x 𝒫 A dom card
45 44 3 sylan2 φ x A r x × x r We x F x A
46 36 45 eqeltrid φ x A r x × x r We x x F 1 st r A
47 34 2 46 4 fpwwe2 φ Y W R Y F 1 st R Y Y = X R = W X
48 19 47 bitr3id φ Y W R F Y Y Y = X R = W X