ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fihashf1rn GIF version

Theorem fihashf1rn 10897
Description: The size of a finite set which is a one-to-one function is equal to the size of the function's range. (Contributed by Jim Kingdon, 21-Feb-2022.)
Assertion
Ref Expression
fihashf1rn ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → (♯‘𝐹) = (♯‘ran 𝐹))

Proof of Theorem fihashf1rn
Dummy variable 𝑓 is distinct from all other variables.
StepHypRef Expression
1 f1fn 5468 . . 3 (𝐹:𝐴1-1𝐵𝐹 Fn 𝐴)
2 simpl 109 . . 3 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → 𝐴 ∈ Fin)
3 fnfi 7011 . . 3 ((𝐹 Fn 𝐴𝐴 ∈ Fin) → 𝐹 ∈ Fin)
41, 2, 3syl2an2 594 . 2 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → 𝐹 ∈ Fin)
5 f1o2ndf1 6295 . . . 4 (𝐹:𝐴1-1𝐵 → (2nd𝐹):𝐹1-1-onto→ran 𝐹)
6 df-2nd 6208 . . . . . . . . 9 2nd = (𝑥 ∈ V ↦ ran {𝑥})
76funmpt2 5298 . . . . . . . 8 Fun 2nd
8 f1f 5466 . . . . . . . . . . 11 (𝐹:𝐴1-1𝐵𝐹:𝐴𝐵)
98anim2i 342 . . . . . . . . . 10 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → (𝐴 ∈ Fin ∧ 𝐹:𝐴𝐵))
109ancomd 267 . . . . . . . . 9 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → (𝐹:𝐴𝐵𝐴 ∈ Fin))
11 fex 5794 . . . . . . . . 9 ((𝐹:𝐴𝐵𝐴 ∈ Fin) → 𝐹 ∈ V)
1210, 11syl 14 . . . . . . . 8 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → 𝐹 ∈ V)
13 resfunexg 5786 . . . . . . . 8 ((Fun 2nd𝐹 ∈ V) → (2nd𝐹) ∈ V)
147, 12, 13sylancr 414 . . . . . . 7 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → (2nd𝐹) ∈ V)
15 f1oeq1 5495 . . . . . . . . . 10 ((2nd𝐹) = 𝑓 → ((2nd𝐹):𝐹1-1-onto→ran 𝐹𝑓:𝐹1-1-onto→ran 𝐹))
1615biimpd 144 . . . . . . . . 9 ((2nd𝐹) = 𝑓 → ((2nd𝐹):𝐹1-1-onto→ran 𝐹𝑓:𝐹1-1-onto→ran 𝐹))
1716eqcoms 2199 . . . . . . . 8 (𝑓 = (2nd𝐹) → ((2nd𝐹):𝐹1-1-onto→ran 𝐹𝑓:𝐹1-1-onto→ran 𝐹))
1817adantl 277 . . . . . . 7 (((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) ∧ 𝑓 = (2nd𝐹)) → ((2nd𝐹):𝐹1-1-onto→ran 𝐹𝑓:𝐹1-1-onto→ran 𝐹))
1914, 18spcimedv 2850 . . . . . 6 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → ((2nd𝐹):𝐹1-1-onto→ran 𝐹 → ∃𝑓 𝑓:𝐹1-1-onto→ran 𝐹))
2019ex 115 . . . . 5 (𝐴 ∈ Fin → (𝐹:𝐴1-1𝐵 → ((2nd𝐹):𝐹1-1-onto→ran 𝐹 → ∃𝑓 𝑓:𝐹1-1-onto→ran 𝐹)))
2120com13 80 . . . 4 ((2nd𝐹):𝐹1-1-onto→ran 𝐹 → (𝐹:𝐴1-1𝐵 → (𝐴 ∈ Fin → ∃𝑓 𝑓:𝐹1-1-onto→ran 𝐹)))
225, 21mpcom 36 . . 3 (𝐹:𝐴1-1𝐵 → (𝐴 ∈ Fin → ∃𝑓 𝑓:𝐹1-1-onto→ran 𝐹))
2322impcom 125 . 2 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → ∃𝑓 𝑓:𝐹1-1-onto→ran 𝐹)
24 fihasheqf1oi 10896 . . . 4 ((𝐹 ∈ Fin ∧ 𝑓:𝐹1-1-onto→ran 𝐹) → (♯‘𝐹) = (♯‘ran 𝐹))
2524ex 115 . . 3 (𝐹 ∈ Fin → (𝑓:𝐹1-1-onto→ran 𝐹 → (♯‘𝐹) = (♯‘ran 𝐹)))
2625exlimdv 1833 . 2 (𝐹 ∈ Fin → (∃𝑓 𝑓:𝐹1-1-onto→ran 𝐹 → (♯‘𝐹) = (♯‘ran 𝐹)))
274, 23, 26sylc 62 1 ((𝐴 ∈ Fin ∧ 𝐹:𝐴1-1𝐵) → (♯‘𝐹) = (♯‘ran 𝐹))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104   = wceq 1364  wex 1506  wcel 2167  Vcvv 2763  {csn 3623   cuni 3840  ran crn 4665  cres 4666  Fun wfun 5253   Fn wfn 5254  wf 5255  1-1wf1 5256  1-1-ontowf1o 5258  cfv 5259  2nd c2nd 6206  Fincfn 6808  chash 10884
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1461  ax-7 1462  ax-gen 1463  ax-ie1 1507  ax-ie2 1508  ax-8 1518  ax-10 1519  ax-11 1520  ax-i12 1521  ax-bndl 1523  ax-4 1524  ax-17 1540  ax-i9 1544  ax-ial 1548  ax-i5r 1549  ax-13 2169  ax-14 2170  ax-ext 2178  ax-coll 4149  ax-sep 4152  ax-nul 4160  ax-pow 4208  ax-pr 4243  ax-un 4469  ax-setind 4574  ax-iinf 4625  ax-cnex 7987  ax-resscn 7988  ax-1cn 7989  ax-1re 7990  ax-icn 7991  ax-addcl 7992  ax-addrcl 7993  ax-mulcl 7994  ax-addcom 7996  ax-addass 7998  ax-distr 8000  ax-i2m1 8001  ax-0lt1 8002  ax-0id 8004  ax-rnegex 8005  ax-cnre 8007  ax-pre-ltirr 8008  ax-pre-ltwlin 8009  ax-pre-lttrn 8010  ax-pre-ltadd 8012
This theorem depends on definitions:  df-bi 117  df-dc 836  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1475  df-sb 1777  df-eu 2048  df-mo 2049  df-clab 2183  df-cleq 2189  df-clel 2192  df-nfc 2328  df-ne 2368  df-nel 2463  df-ral 2480  df-rex 2481  df-reu 2482  df-rab 2484  df-v 2765  df-sbc 2990  df-csb 3085  df-dif 3159  df-un 3161  df-in 3163  df-ss 3170  df-nul 3452  df-if 3563  df-pw 3608  df-sn 3629  df-pr 3630  df-op 3632  df-uni 3841  df-int 3876  df-iun 3919  df-br 4035  df-opab 4096  df-mpt 4097  df-tr 4133  df-id 4329  df-iord 4402  df-on 4404  df-ilim 4405  df-suc 4407  df-iom 4628  df-xp 4670  df-rel 4671  df-cnv 4672  df-co 4673  df-dm 4674  df-rn 4675  df-res 4676  df-ima 4677  df-iota 5220  df-fun 5261  df-fn 5262  df-f 5263  df-f1 5264  df-fo 5265  df-f1o 5266  df-fv 5267  df-riota 5880  df-ov 5928  df-oprab 5929  df-mpo 5930  df-2nd 6208  df-recs 6372  df-frec 6458  df-1o 6483  df-er 6601  df-en 6809  df-dom 6810  df-fin 6811  df-pnf 8080  df-mnf 8081  df-xr 8082  df-ltxr 8083  df-le 8084  df-sub 8216  df-neg 8217  df-inn 9008  df-n0 9267  df-z 9344  df-uz 9619  df-ihash 10885
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator