Metamath Proof Explorer


Theorem fvineqsneq

Description: A theorem about functions where the image of every point intersects the domain only at that point. (Contributed by ML, 28-Mar-2021)

Ref Expression
Assertion fvineqsneq F Fn A p A F p A = p Z ran F A Z Z = ran F

Proof

Step Hyp Ref Expression
1 pssnel Z ran F x x ran F ¬ x Z
2 1 adantl F Fn A p A F p A = p Z ran F x x ran F ¬ x Z
3 df-rex x ran F ¬ x Z x x ran F ¬ x Z
4 2 3 sylibr F Fn A p A F p A = p Z ran F x ran F ¬ x Z
5 fnrnfv F Fn A ran F = x | p A x = F p
6 5 abeq2d F Fn A x ran F p A x = F p
7 6 biimpd F Fn A x ran F p A x = F p
8 7 ralrimiv F Fn A x ran F p A x = F p
9 8 adantr F Fn A p A F p A = p x ran F p A x = F p
10 9 adantr F Fn A p A F p A = p Z ran F x ran F p A x = F p
11 r19.29r x ran F ¬ x Z x ran F p A x = F p x ran F ¬ x Z p A x = F p
12 4 10 11 syl2anc F Fn A p A F p A = p Z ran F x ran F ¬ x Z p A x = F p
13 nfra1 p p A F p A = p
14 rsp p A F p A = p p A F p A = p
15 vsnid p p
16 eleq2 F p A = p p F p A p p
17 15 16 mpbiri F p A = p p F p A
18 17 elin1d F p A = p p F p
19 14 18 syl6 p A F p A = p p A p F p
20 19 adantr p A F p A = p x = F p p A p F p
21 eleq2 x = F p p x p F p
22 21 adantl p A F p A = p x = F p p x p F p
23 20 22 sylibrd p A F p A = p x = F p p A p x
24 23 ex p A F p A = p x = F p p A p x
25 24 com23 p A F p A = p p A x = F p p x
26 13 25 reximdai p A F p A = p p A x = F p p A p x
27 26 adantl F Fn A p A F p A = p p A x = F p p A p x
28 27 adantr F Fn A p A F p A = p Z ran F p A x = F p p A p x
29 28 anim2d F Fn A p A F p A = p Z ran F ¬ x Z p A x = F p ¬ x Z p A p x
30 29 reximdv F Fn A p A F p A = p Z ran F x ran F ¬ x Z p A x = F p x ran F ¬ x Z p A p x
31 12 30 mpd F Fn A p A F p A = p Z ran F x ran F ¬ x Z p A p x
32 ancom ¬ x Z p A p x p A p x ¬ x Z
33 r19.41v p A p x ¬ x Z p A p x ¬ x Z
34 32 33 bitr4i ¬ x Z p A p x p A p x ¬ x Z
35 34 rexbii x ran F ¬ x Z p A p x x ran F p A p x ¬ x Z
36 31 35 sylib F Fn A p A F p A = p Z ran F x ran F p A p x ¬ x Z
37 rexcom p A x ran F p x ¬ x Z x ran F p A p x ¬ x Z
38 36 37 sylibr F Fn A p A F p A = p Z ran F p A x ran F p x ¬ x Z
39 nfre1 x x ran F p x ¬ x Z
40 39 19.3 x x ran F p x ¬ x Z x ran F p x ¬ x Z
41 alral x x ran F p x ¬ x Z x ran F x ran F p x ¬ x Z
42 40 41 sylbir x ran F p x ¬ x Z x ran F x ran F p x ¬ x Z
43 42 reximi p A x ran F p x ¬ x Z p A x ran F x ran F p x ¬ x Z
44 38 43 syl F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z
45 nfv p F Fn A
46 45 13 nfan p F Fn A p A F p A = p
47 nfv p Z ran F
48 46 47 nfan p F Fn A p A F p A = p Z ran F
49 nfv x F Fn A p A F p A = p Z ran F p A
50 fvineqsneu F Fn A p A F p A = p p A ∃! x ran F p x
51 50 adantr F Fn A p A F p A = p Z ran F p A ∃! x ran F p x
52 rsp p A ∃! x ran F p x p A ∃! x ran F p x
53 51 52 syl F Fn A p A F p A = p Z ran F p A ∃! x ran F p x
54 53 adantrd F Fn A p A F p A = p Z ran F p A x ran F ∃! x ran F p x
55 54 imp F Fn A p A F p A = p Z ran F p A x ran F ∃! x ran F p x
56 reupick3 ∃! x ran F p x x ran F p x ¬ x Z x ran F p x ¬ x Z
57 56 3expa ∃! x ran F p x x ran F p x ¬ x Z x ran F p x ¬ x Z
58 57 expcom x ran F ∃! x ran F p x x ran F p x ¬ x Z p x ¬ x Z
59 58 adantl p A x ran F ∃! x ran F p x x ran F p x ¬ x Z p x ¬ x Z
60 59 adantl F Fn A p A F p A = p Z ran F p A x ran F ∃! x ran F p x x ran F p x ¬ x Z p x ¬ x Z
61 55 60 mpand F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z p x ¬ x Z
62 61 expr F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z p x ¬ x Z
63 49 62 ralrimi F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z p x ¬ x Z
64 63 ex F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z p x ¬ x Z
65 48 64 ralrimi F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z p x ¬ x Z
66 r19.29r p A x ran F x ran F p x ¬ x Z p A x ran F x ran F p x ¬ x Z p x ¬ x Z p A x ran F x ran F p x ¬ x Z x ran F x ran F p x ¬ x Z p x ¬ x Z
67 44 65 66 syl2anc F Fn A p A F p A = p Z ran F p A x ran F x ran F p x ¬ x Z x ran F x ran F p x ¬ x Z p x ¬ x Z
68 ralim x ran F x ran F p x ¬ x Z p x ¬ x Z x ran F x ran F p x ¬ x Z x ran F p x ¬ x Z
69 68 impcom x ran F x ran F p x ¬ x Z x ran F x ran F p x ¬ x Z p x ¬ x Z x ran F p x ¬ x Z
70 69 reximi p A x ran F x ran F p x ¬ x Z x ran F x ran F p x ¬ x Z p x ¬ x Z p A x ran F p x ¬ x Z
71 67 70 syl F Fn A p A F p A = p Z ran F p A x ran F p x ¬ x Z
72 con2b p x ¬ x Z x Z ¬ p x
73 72 ralbii x ran F p x ¬ x Z x ran F x Z ¬ p x
74 df-ral x ran F x Z ¬ p x x x ran F x Z ¬ p x
75 bi2.04 x ran F x Z ¬ p x x Z x ran F ¬ p x
76 75 albii x x ran F x Z ¬ p x x x Z x ran F ¬ p x
77 73 74 76 3bitri x ran F p x ¬ x Z x x Z x ran F ¬ p x
78 77 a1i F Fn A p A F p A = p Z ran F x ran F p x ¬ x Z x x Z x ran F ¬ p x
79 48 78 rexbid F Fn A p A F p A = p Z ran F p A x ran F p x ¬ x Z p A x x Z x ran F ¬ p x
80 71 79 mpbid F Fn A p A F p A = p Z ran F p A x x Z x ran F ¬ p x
81 nfv x F Fn A p A F p A = p Z ran F
82 nfa1 x x x Z x ran F ¬ p x
83 81 82 nfan x F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x
84 pssss Z ran F Z ran F
85 dfss2 Z ran F x x Z x ran F
86 84 85 sylib Z ran F x x Z x ran F
87 86 adantl F Fn A p A F p A = p Z ran F x x Z x ran F
88 df-ral x Z x ran F x x Z x ran F
89 87 88 sylibr F Fn A p A F p A = p Z ran F x Z x ran F
90 89 adantr F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z x ran F
91 rsp x Z x ran F x Z x ran F
92 90 91 syl F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z x ran F
93 df-ral x Z x ran F ¬ p x x x Z x ran F ¬ p x
94 93 biimpri x x Z x ran F ¬ p x x Z x ran F ¬ p x
95 94 adantl F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z x ran F ¬ p x
96 rsp x Z x ran F ¬ p x x Z x ran F ¬ p x
97 95 96 syl F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z x ran F ¬ p x
98 92 97 mpdd F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z ¬ p x
99 83 98 ralrimi F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z ¬ p x
100 99 ex F Fn A p A F p A = p Z ran F x x Z x ran F ¬ p x x Z ¬ p x
101 100 a1d F Fn A p A F p A = p Z ran F p A x x Z x ran F ¬ p x x Z ¬ p x
102 48 101 reximdai F Fn A p A F p A = p Z ran F p A x x Z x ran F ¬ p x p A x Z ¬ p x
103 80 102 mpd F Fn A p A F p A = p Z ran F p A x Z ¬ p x
104 ralnex x Z ¬ p x ¬ x Z p x
105 104 rexbii p A x Z ¬ p x p A ¬ x Z p x
106 103 105 sylib F Fn A p A F p A = p Z ran F p A ¬ x Z p x
107 eluni2 p Z x Z p x
108 107 notbii ¬ p Z ¬ x Z p x
109 108 rexbii p A ¬ p Z p A ¬ x Z p x
110 106 109 sylibr F Fn A p A F p A = p Z ran F p A ¬ p Z
111 dfss3 A Z p A p Z
112 dfral2 p A p Z ¬ p A ¬ p Z
113 111 112 bitri A Z ¬ p A ¬ p Z
114 113 con2bii2 ¬ A Z p A ¬ p Z
115 110 114 sylibr F Fn A p A F p A = p Z ran F ¬ A Z
116 115 ex F Fn A p A F p A = p Z ran F ¬ A Z
117 116 con2d F Fn A p A F p A = p A Z ¬ Z ran F
118 npss ¬ Z ran F Z ran F Z = ran F
119 117 118 syl6ib F Fn A p A F p A = p A Z Z ran F Z = ran F
120 119 com23 F Fn A p A F p A = p Z ran F A Z Z = ran F
121 120 imp32 F Fn A p A F p A = p Z ran F A Z Z = ran F