MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  hasheqf1oi Structured version   Visualization version   GIF version

Theorem hasheqf1oi 14261
Description: The size of two sets is equal if there is a bijection mapping one of the sets onto the other. (Contributed by Alexander van der Vekens, 25-Dec-2017.) (Revised by AV, 4-May-2021.)
Assertion
Ref Expression
hasheqf1oi (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵)))
Distinct variable groups:   𝐴,𝑓   𝐵,𝑓   𝑓,𝑉

Proof of Theorem hasheqf1oi
Dummy variable 𝑔 is distinct from all other variables.
StepHypRef Expression
1 hasheqf1o 14259 . . . 4 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → ((♯‘𝐴) = (♯‘𝐵) ↔ ∃𝑓 𝑓:𝐴1-1-onto𝐵))
21biimprd 247 . . 3 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵)))
32a1d 25 . 2 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵))))
4 fiinfnf1o 14260 . . . 4 ((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) → ¬ ∃𝑓 𝑓:𝐴1-1-onto𝐵)
54pm2.21d 121 . . 3 ((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵)))
65a1d 25 . 2 ((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) → (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵))))
7 fiinfnf1o 14260 . . . 4 ((𝐵 ∈ Fin ∧ ¬ 𝐴 ∈ Fin) → ¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴)
8 19.41v 1953 . . . . . . 7 (∃𝑓(𝑓:𝐴1-1-onto𝐵𝐴𝑉) ↔ (∃𝑓 𝑓:𝐴1-1-onto𝐵𝐴𝑉))
9 f1orel 6792 . . . . . . . . . . . . 13 (𝑓:𝐴1-1-onto𝐵 → Rel 𝑓)
109adantr 481 . . . . . . . . . . . 12 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → Rel 𝑓)
11 f1ocnvb 6802 . . . . . . . . . . . 12 (Rel 𝑓 → (𝑓:𝐴1-1-onto𝐵𝑓:𝐵1-1-onto𝐴))
1210, 11syl 17 . . . . . . . . . . 11 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (𝑓:𝐴1-1-onto𝐵𝑓:𝐵1-1-onto𝐴))
13 f1of 6789 . . . . . . . . . . . . . 14 (𝑓:𝐴1-1-onto𝐵𝑓:𝐴𝐵)
14 fex 7181 . . . . . . . . . . . . . 14 ((𝑓:𝐴𝐵𝐴𝑉) → 𝑓 ∈ V)
1513, 14sylan 580 . . . . . . . . . . . . 13 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → 𝑓 ∈ V)
16 cnvexg 7866 . . . . . . . . . . . . 13 (𝑓 ∈ V → 𝑓 ∈ V)
17 f1oeq1 6777 . . . . . . . . . . . . . 14 (𝑔 = 𝑓 → (𝑔:𝐵1-1-onto𝐴𝑓:𝐵1-1-onto𝐴))
1817spcegv 3557 . . . . . . . . . . . . 13 (𝑓 ∈ V → (𝑓:𝐵1-1-onto𝐴 → ∃𝑔 𝑔:𝐵1-1-onto𝐴))
1915, 16, 183syl 18 . . . . . . . . . . . 12 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (𝑓:𝐵1-1-onto𝐴 → ∃𝑔 𝑔:𝐵1-1-onto𝐴))
20 pm2.24 124 . . . . . . . . . . . 12 (∃𝑔 𝑔:𝐵1-1-onto𝐴 → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵)))
2119, 20syl6 35 . . . . . . . . . . 11 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (𝑓:𝐵1-1-onto𝐴 → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵))))
2212, 21sylbid 239 . . . . . . . . . 10 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (𝑓:𝐴1-1-onto𝐵 → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵))))
2322com12 32 . . . . . . . . 9 (𝑓:𝐴1-1-onto𝐵 → ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵))))
2423anabsi5 667 . . . . . . . 8 ((𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵)))
2524exlimiv 1933 . . . . . . 7 (∃𝑓(𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵)))
268, 25sylbir 234 . . . . . 6 ((∃𝑓 𝑓:𝐴1-1-onto𝐵𝐴𝑉) → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵)))
2726ex 413 . . . . 5 (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (𝐴𝑉 → (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (♯‘𝐴) = (♯‘𝐵))))
2827com13 88 . . . 4 (¬ ∃𝑔 𝑔:𝐵1-1-onto𝐴 → (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵))))
297, 28syl 17 . . 3 ((𝐵 ∈ Fin ∧ ¬ 𝐴 ∈ Fin) → (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵))))
3029ancoms 459 . 2 ((¬ 𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵))))
31 hashinf 14245 . . . . . . . . . 10 ((𝐴𝑉 ∧ ¬ 𝐴 ∈ Fin) → (♯‘𝐴) = +∞)
3231expcom 414 . . . . . . . . 9 𝐴 ∈ Fin → (𝐴𝑉 → (♯‘𝐴) = +∞))
3332adantr 481 . . . . . . . 8 ((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) → (𝐴𝑉 → (♯‘𝐴) = +∞))
3433imp 407 . . . . . . 7 (((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) → (♯‘𝐴) = +∞)
3534adantr 481 . . . . . 6 ((((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) ∧ 𝑓:𝐴1-1-onto𝐵) → (♯‘𝐴) = +∞)
36 simpr 485 . . . . . . . 8 (((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) → 𝐴𝑉)
37 f1ofo 6796 . . . . . . . 8 (𝑓:𝐴1-1-onto𝐵𝑓:𝐴onto𝐵)
38 focdmex 7893 . . . . . . . . 9 (𝐴𝑉 → (𝑓:𝐴onto𝐵𝐵 ∈ V))
3938imp 407 . . . . . . . 8 ((𝐴𝑉𝑓:𝐴onto𝐵) → 𝐵 ∈ V)
4036, 37, 39syl2an 596 . . . . . . 7 ((((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) ∧ 𝑓:𝐴1-1-onto𝐵) → 𝐵 ∈ V)
41 hashinf 14245 . . . . . . . . 9 ((𝐵 ∈ V ∧ ¬ 𝐵 ∈ Fin) → (♯‘𝐵) = +∞)
4241expcom 414 . . . . . . . 8 𝐵 ∈ Fin → (𝐵 ∈ V → (♯‘𝐵) = +∞))
4342ad3antlr 729 . . . . . . 7 ((((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) ∧ 𝑓:𝐴1-1-onto𝐵) → (𝐵 ∈ V → (♯‘𝐵) = +∞))
4440, 43mpd 15 . . . . . 6 ((((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) ∧ 𝑓:𝐴1-1-onto𝐵) → (♯‘𝐵) = +∞)
4535, 44eqtr4d 2774 . . . . 5 ((((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) ∧ 𝑓:𝐴1-1-onto𝐵) → (♯‘𝐴) = (♯‘𝐵))
4645ex 413 . . . 4 (((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) → (𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵)))
4746exlimdv 1936 . . 3 (((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) ∧ 𝐴𝑉) → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵)))
4847ex 413 . 2 ((¬ 𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ Fin) → (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵))))
493, 6, 30, 484cases 1039 1 (𝐴𝑉 → (∃𝑓 𝑓:𝐴1-1-onto𝐵 → (♯‘𝐴) = (♯‘𝐵)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396   = wceq 1541  wex 1781  wcel 2106  Vcvv 3446  ccnv 5637  Rel wrel 5643  wf 6497  ontowfo 6499  1-1-ontowf1o 6500  cfv 6501  Fincfn 8890  +∞cpnf 11195  chash 14240
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2702  ax-rep 5247  ax-sep 5261  ax-nul 5268  ax-pow 5325  ax-pr 5389  ax-un 7677  ax-cnex 11116  ax-resscn 11117  ax-1cn 11118  ax-icn 11119  ax-addcl 11120  ax-addrcl 11121  ax-mulcl 11122  ax-mulrcl 11123  ax-mulcom 11124  ax-addass 11125  ax-mulass 11126  ax-distr 11127  ax-i2m1 11128  ax-1ne0 11129  ax-1rid 11130  ax-rnegex 11131  ax-rrecex 11132  ax-cnre 11133  ax-pre-lttri 11134  ax-pre-lttrn 11135  ax-pre-ltadd 11136  ax-pre-mulgt0 11137
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-reu 3352  df-rab 3406  df-v 3448  df-sbc 3743  df-csb 3859  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-pss 3932  df-nul 4288  df-if 4492  df-pw 4567  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4871  df-int 4913  df-iun 4961  df-br 5111  df-opab 5173  df-mpt 5194  df-tr 5228  df-id 5536  df-eprel 5542  df-po 5550  df-so 5551  df-fr 5593  df-we 5595  df-xp 5644  df-rel 5645  df-cnv 5646  df-co 5647  df-dm 5648  df-rn 5649  df-res 5650  df-ima 5651  df-pred 6258  df-ord 6325  df-on 6326  df-lim 6327  df-suc 6328  df-iota 6453  df-fun 6503  df-fn 6504  df-f 6505  df-f1 6506  df-fo 6507  df-f1o 6508  df-fv 6509  df-riota 7318  df-ov 7365  df-oprab 7366  df-mpo 7367  df-om 7808  df-2nd 7927  df-frecs 8217  df-wrecs 8248  df-recs 8322  df-rdg 8361  df-1o 8417  df-er 8655  df-en 8891  df-dom 8892  df-sdom 8893  df-fin 8894  df-card 9884  df-pnf 11200  df-mnf 11201  df-xr 11202  df-ltxr 11203  df-le 11204  df-sub 11396  df-neg 11397  df-nn 12163  df-n0 12423  df-z 12509  df-uz 12773  df-hash 14241
This theorem is referenced by:  hashf1rn  14262  hasheqf1od  14263  2lgslem1  26779  nbedgusgr  28383  rusgrnumwrdl2  28597  wwlksnexthasheq  28911  rusgrnumwlkg  28985  numclwwlkqhash  29382  bj-finsumval0  35829
  Copyright terms: Public domain W3C validator