HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
Unicode version

Theorem php3 4662
Description: Corollary of Pigeonhole Principle. If A is finite and B is a proper subset of A, the B is strictly less numerous than A. Stronger version of Corollary 6C of [Enderton] p. 135.
Assertion
Ref Expression
php3 |- ((A e. Fin /\ B (. A) -> B ~< A)

Proof of Theorem php3
StepHypRef Expression
1 isfi 4523 . . 3 |- (A e. Fin <-> E.x e. om A ~~ x)
2 ssdom2g 4550 . . . . . . . . . 10 |- (A e. V -> (B (_ A -> B ~<_ A))
32imp 348 . . . . . . . . 9 |- ((A e. V /\ B (_ A) -> B ~<_ A)
4 relen 4513 . . . . . . . . . 10 |- Rel ~~
54brrelexi 3291 . . . . . . . . 9 |- (A ~~ x -> A e. V)
6 pssss 2195 . . . . . . . . 9 |- (B (. A -> B (_ A)
73, 5, 6syl2an 456 . . . . . . . 8 |- ((A ~~ x /\ B (. A) -> B ~<_ A)
87adantll 392 . . . . . . 7 |- (((x e. om /\ A ~~ x) /\ B (. A) -> B ~<_ A)
9 php 4660 . . . . . . . . . . . . . 14 |- ((x e. om /\ (f"B) (. x) -> -. x ~~ (f"B))
10 imass2 3525 . . . . . . . . . . . . . . . . . . 19 |- (B (_ A -> (f"B) (_ (f"A))
116, 10syl 10 . . . . . . . . . . . . . . . . . 18 |- (B (. A -> (f"B) (_ (f"A))
1211adantl 388 . . . . . . . . . . . . . . . . 17 |- ((f:A-1-1-onto->x /\ B (. A) -> (f"B) (_ (f"A))
13 funfvima2 3967 . . . . . . . . . . . . . . . . . . . . . . . . 25 |- ((Fun f /\ (A \ B) (_ dom f) -> (y e. (A \ B) -> (f` y) e. (f"(A \ B))))
14 f1ofun 3799 . . . . . . . . . . . . . . . . . . . . . . . . 25 |- (f:A-1-1-onto->x -> Fun f)
15 difss 2219 . . . . . . . . . . . . . . . . . . . . . . . . . 26 |- (A \ B) (_ A
16 f1ofn 3798 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 |- (f:A-1-1-onto->x -> f Fn A)
17 fndm 3693 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 |- (f Fn A -> dom f = A)
18 sseq2 2135 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 |- (dom f = A -> ((A \ B) (_ dom f <-> (A \ B) (_ A))
1916, 17, 183syl 20 . . . . . . . . . . . . . . . . . . . . . . . . . 26 |- (f:A-1-1-onto->x -> ((A \ B) (_ dom f <-> (A \ B) (_ A))
2015, 19mpbiri 192 . . . . . . . . . . . . . . . . . . . . . . . . 25 |- (f:A-1-1-onto->x -> (A \ B) (_ dom f)
2113, 14, 20sylanc 473 . . . . . . . . . . . . . . . . . . . . . . . 24 |- (f:A-1-1-onto->x -> (y e. (A \ B) -> (f` y) e. (f"(A \ B))))
22 dff1o3 3802 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 |- (f:A-1-1-onto->x <-> (f:A-onto->x /\ Fun `'f))
2322pm3.27bi 324 . . . . . . . . . . . . . . . . . . . . . . . . . 26 |- (f:A-1-1-onto->x -> Fun `'f)
24 imadif 3679 . . . . . . . . . . . . . . . . . . . . . . . . . 26 |- (Fun `'f -> (f"(A \ B)) = ((f"A) \ (f"B)))
2523, 24syl 10 . . . . . . . . . . . . . . . . . . . . . . . . 25 |- (f:A-1-1-onto->x -> (f"(A \ B)) = ((f"A) \ (f"B)))
2625eleq2d 1584 . . . . . . . . . . . . . . . . . . . . . . . 24 |- (f:A-1-1-onto->x -> ((f` y) e. (f"(A \ B)) <-> (f` y) e. ((f"A) \ (f"B))))
2721, 26sylibd 200 . . . . . . . . . . . . . . . . . . . . . . 23 |- (f:A-1-1-onto->x -> (y e. (A \ B) -> (f` y) e. ((f"A) \ (f"B))))
28 n0i 2337 . . . . . . . . . . . . . . . . . . . . . . 23 |- ((f` y) e. ((f"A) \ (f"B)) -> -. ((f"A) \ (f"B)) = (/))
2927, 28syl6 22 . . . . . . . . . . . . . . . . . . . . . 22 |- (f:A-1-1-onto->x -> (y e. (A \ B) -> -. ((f"A) \ (f"B)) = (/)))
30 eldif 2109 . . . . . . . . . . . . . . . . . . . . . 22 |- (y e. (A \ B) <-> (y e. A /\ -. y e. B))
3129, 30syl5ibr 205 . . . . . . . . . . . . . . . . . . . . 21 |- (f:A-1-1-onto->x -> ((y e. A /\ -. y e. B) -> -. ((f"A) \ (f"B)) = (/)))
323119.23adv 1251 . . . . . . . . . . . . . . . . . . . 20 |- (f:A-1-1-onto->x -> (E.y(y e. A /\ -. y e. B) -> -. ((f"A) \ (f"B)) = (/)))
3332imp 348 . . . . . . . . . . . . . . . . . . 19 |- ((f:A-1-1-onto->x /\ E.y(y e. A /\ -. y e. B)) -> -. ((f"A) \ (f"B)) = (/))
34 pssnel 2384 . . . . . . . . . . . . . . . . . . 19 |- (B (. A -> E.y(y e. A /\ -. y e. B))
3533, 34sylan2 453 . . . . . . . . . . . . . . . . . 18 |- ((f:A-1-1-onto->x /\ B (. A) -> -. ((f"A) \ (f"B)) = (/))
36 ssdif0 2380 . . . . . . . . . . . . . . . . . . 19 |- ((f"A) (_ (f"B) <-> ((f"A) \ (f"B)) = (/))
3736notbii 185 . . . . . . . . . . . . . . . . . 18 |- (-. (f"A) (_ (f"B) <-> -. ((f"A) \ (f"B)) = (/))
3835, 37sylibr 198 . . . . . . . . . . . . . . . . 17 |- ((f:A-1-1-onto->x /\ B (. A) -> -. (f"A) (_ (f"B))
3912, 38jca 286 . . . . . . . . . . . . . . . 16 |- ((f:A-1-1-onto->x /\ B (. A) -> ((f"B) (_ (f"A) /\ -. (f"A) (_ (f"B)))
40 dfpss3 2186 . . . . . . . . . . . . . . . 16 |- ((f"B) (. (f"A) <-> ((f"B) (_ (f"A) /\ -. (f"A) (_ (f"B)))
4139, 40sylibr 198 . . . . . . . . . . . . . . 15 |- ((f:A-1-1-onto->x /\ B (. A) -> (f"B) (. (f"A))
42 imadmrn 3506 . . . . . . . . . . . . . . . . . . 19 |- (f"dom f) = ran f
4342a1i 8 . . . . . . . . . . . . . . . . . 18 |- (f:A-1-1-onto->x -> (f"dom f) = ran f)
44 imaeq2 3492 . . . . . . . . . . . . . . . . . . 19 |- (dom f = A -> (f"dom f) = (f"A))
4516, 17, 443syl 20 . . . . . . . . . . . . . . . . . 18 |- (f:A-1-1-onto->x -> (f"dom f) = (f"A))
46 f1ofo 3803 . . . . . . . . . . . . . . . . . . 19 |- (f:A-1-1-onto->x -> f:A-onto->x)
47 forn 3782 . . . . . . . . . . . . . . . . . . 19 |- (f:A-onto->x -> ran f = x)
4846, 47syl 10 . . . . . . . . . . . . . . . . . 18 |- (f:A-1-1-onto->x -> ran f = x)
4943, 45, 483eqtr3d 1558 . . . . . . . . . . . . . . . . 17 |- (f:A-1-1-onto->x -> (f"A) = x)
5049psseq2d 2193 . . . . . . . . . . . . . . . 16 |- (f:A-1-1-onto->x -> ((f"B) (. (f"A) <-> (f"B) (. x))
5150adantr 389 . . . . . . . . . . . . . . 15 |- ((f:A-1-1-onto->x /\ B (. A) -> ((f"B) (. (f"A) <-> (f"B) (. x))
5241, 51mpbid 193 . . . . . . . . . . . . . 14 |- ((f:A-1-1-onto->x /\ B (. A) -> (f"B) (. x)
539, 52sylan2 453 . . . . . . . . . . . . 13 |- ((x e. om /\ (f:A-1-1-onto->x /\ B (. A)) -> -. x ~~ (f"B))
54 f1ores 3811 . . . . . . . . . . . . . . . 16 |- ((f:A-1-1->x /\ B (_ A) -> (f |` B):B-1-1-onto->(f"B))
55 f1of1 3796 . . . . . . . . . . . . . . . 16 |- (f:A-1-1-onto->x -> f:A-1-1->x)
5654, 55, 6syl2an 456 . . . . . . . . . . . . . . 15 |- ((f:A-1-1-onto->x /\ B (. A) -> (f |` B):B-1-1-onto->(f"B))
57 visset 1859 . . . . . . . . . . . . . . . . . 18 |- f e. V
58 resexg 3484 . . . . . . . . . . . . . . . . . 18 |- (f e. V -> (f |` B) e. V)
5957, 58ax-mp 7 . . . . . . . . . . . . . . . . 17 |- (f |` B) e. V
60 f1oeq1 3792 . . . . . . . . . . . . . . . . 17 |- (y = (f |` B) -> (y:B-1-1-onto->(f"B) <-> (f |` B):B-1-1-onto->(f"B)))
6159, 60cla4ev 1915 . . . . . . . . . . . . . . . 16 |- ((f |` B):B-1-1-onto->(f"B) -> E.y y:B-1-1-onto->(f"B))
62 imaexg 3508 . . . . . . . . . . . . . . . . . 18 |- (f e. V -> (f"B) e. V)
6357, 62ax-mp 7 . . . . . . . . . . . . . . . . 17 |- (f"B) e. V
6463bren 4518 . . . . . . . . . . . . . . . 16 |- (B ~~ (f"B) <-> E.y y:B-1-1-onto->(f"B))
6561, 64sylibr 198 . . . . . . . . . . . . . . 15 |- ((f |` B):B-1-1-onto->(f"B) -> B ~~ (f"B))
66 entr 4555 . . . . . . . . . . . . . . . 16 |- ((x ~~ B /\ B ~~ (f"B)) -> x ~~ (f"B))
6766expcom 372 . . . . . . . . . . . . . . 15 |- (B ~~ (f"B) -> (x ~~ B -> x ~~ (f"B)))
6856, 65, 673syl 20 . . . . . . . . . . . . . 14 |- ((f:A-1-1-onto->x /\ B (. A) -> (x ~~ B -> x ~~ (f"B)))
6968adantl 388 . . . . . . . . . . . . 13 |- ((x e. om /\ (f:A-1-1-onto->x /\ B (. A)) -> (x ~~ B -> x ~~ (f"B)))
7053, 69mtod 107 . . . . . . . . . . . 12 |- ((x e. om /\ (f:A-1-1-onto->x /\ B (. A)) -> -. x ~~ B)
7170exp32 377 . . . . . . . . . . 11 |- (x e. om -> (f:A-1-1-onto->x -> (B (. A -> -. x ~~ B)))
727119.23adv 1251 . . . . . . . . . 10 |- (x e. om -> (E.f f:A-1-1-onto->x -> (B (. A -> -. x ~~ B)))
73 visset 1859 . . . . . . . . . . 11 |- x e. V
7473bren 4518 . . . . . . . . . 10 |- (A ~~ x <-> E.f f:A-1-1-onto->x)
7572, 74syl5ib 204 . . . . . . . . 9 |- (x e. om -> (A ~~ x -> (B (. A -> -. x ~~ B)))
7675imp31 360 . . . . . . . 8 |- (((x e. om /\ A ~~ x) /\ B (. A) -> -. x ~~ B)
77 entr 4555 . . . . . . . . . . 11 |- ((B ~~ A /\ A ~~ x) -> B ~~ x)
7877ex 371 . . . . . . . . . 10 |- (B ~~ A -> (A ~~ x -> B ~~ x))
7973ensym 4553 . . . . . . . . . 10 |- (B ~~ x -> x ~~ B)
8078, 79syl6com 53 . . . . . . . . 9 |- (A ~~ x -> (B ~~ A -> x ~~ B))
8180ad2antlr 405 . . . . . . . 8 |- (((x e. om /\ A ~~ x) /\ B (. A) -> (B ~~ A -> x ~~ B))
8276, 81mtod 107 . . . . . . 7 |- (((x e. om /\ A ~~ x) /\ B (. A) -> -. B ~~ A)
838, 82jca 286 . . . . . 6 |- (((x e. om /\ A ~~ x) /\ B (. A) -> (B ~<_ A /\ -. B ~~ A))
84 brsdom 4522 . . . . . 6 |- (B ~< A <-> (B ~<_ A /\ -. B ~~ A))
8583, 84sylibr 198 . . . . 5 |- (((x e. om /\ A ~~ x) /\ B (. A) -> B ~< A)
8685exp31 376 . . . 4 |- (x e. om -> (A ~~ x -> (B (. A -> B ~< A)))
8786r19.23aiv 1789 . . 3 |- (E.x e. om A ~~ x -> (B (. A -> B ~< A))
881, 87sylbi 197 . 2 |- (A e. Fin -> (B (. A -> B ~< A))
8988imp 348 1 |- ((A e. Fin /\ B (. A) -> B ~< A)
Colors of variables: wff set class
Syntax hints:  -. wn 2   -> wi 3   <-> wb 144   /\ wa 221   = wceq 992   e. wcel 994  E.wex 1016  E.wrex 1692  Vcvv 1857   \ cdif 2096   (_ wss 2099   (. wpss 2100  (/)c0 2332   class class class wbr 2692  omcom 3218  `'ccnv 3250  dom cdm 3251  ran crn 3252   |` cres 3253  "cima 3254  Fun wfun 3257   Fn wfn 3258  -1-1->wf1 3260  -onto->wfo 3261  -1-1-onto->wf1o 3262  ` cfv 3263   ~~ cen 4505   ~<_ cdom 4506   ~< csdm 4507  Fincfn 4508
This theorem is referenced by:  pssinf 4674  finminlem 11418
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 998  ax-gen 999  ax-8 1000  ax-9 1001  ax-10 1002  ax-11 1003  ax-12 1004  ax-13 1005  ax-14 1006  ax-17 1007  ax-4 1009  ax-5o 1011  ax-6o 1014  ax-9o 1159  ax-10o 1177  ax-16 1247  ax-11o 1255  ax-ext 1500  ax-rep 2767  ax-sep 2777  ax-nul 2784  ax-pow 2818  ax-pr 2855  ax-un 3089
This theorem depends on definitions:  df-bi 145  df-or 222  df-an 223  df-3or 782  df-3an 783  df-ex 1017  df-sb 1209  df-eu 1421  df-mo 1422  df-clab 1506  df-cleq 1511  df-clel 1514  df-ne 1630  df-ral 1695  df-rex 1696  df-v 1858  df-dif 2101  df-un 2102  df-in 2103  df-ss 2105  df-pss 2107  df-nul 2333  df-if 2416  df-pw 2459  df-sn 2470  df-pr 2471  df-tp 2473  df-op 2474  df-uni 2570  df-br 2693  df-opab 2741  df-tr 2755  df-eprel 2910  df-id 2913  df-po 2918  df-so 2929  df-fr 2947  df-we 2962  df-ord 2978  df-on 2979  df-lim 2980  df-suc 2981  df-om 3219  df-xp 3265  df-rel 3266  df-cnv 3267  df-co 3268  df-dm 3269  df-rn 3270  df-res 3271  df-ima 3272  df-fun 3273  df-fn 3274  df-f 3275  df-f1 3276  df-fo 3277  df-f1o 3278  df-fv 3279  df-er 4401  df-en 4509  df-dom 4510  df-sdom 4511  df-fin 4512
Copyright terms: Public domain