Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ffsrn Structured version   Visualization version   GIF version

Theorem ffsrn 30966
Description: The range of a finitely supported function is finite. (Contributed by Thierry Arnoux, 27-Aug-2017.)
Hypotheses
Ref Expression
ffsrn.z (𝜑𝑍𝑊)
ffsrn.0 (𝜑𝐹𝑉)
ffsrn.1 (𝜑 → Fun 𝐹)
ffsrn.2 (𝜑 → (𝐹 supp 𝑍) ∈ Fin)
Assertion
Ref Expression
ffsrn (𝜑 → ran 𝐹 ∈ Fin)

Proof of Theorem ffsrn
StepHypRef Expression
1 ffsrn.1 . . . . . 6 (𝜑 → Fun 𝐹)
2 dfdm4 5793 . . . . . . 7 dom 𝐹 = ran 𝐹
3 dfrn4 6094 . . . . . . 7 ran 𝐹 = (𝐹 “ V)
42, 3eqtri 2766 . . . . . 6 dom 𝐹 = (𝐹 “ V)
5 df-fn 6421 . . . . . . 7 (𝐹 Fn (𝐹 “ V) ↔ (Fun 𝐹 ∧ dom 𝐹 = (𝐹 “ V)))
6 fnresdm 6535 . . . . . . 7 (𝐹 Fn (𝐹 “ V) → (𝐹 ↾ (𝐹 “ V)) = 𝐹)
75, 6sylbir 234 . . . . . 6 ((Fun 𝐹 ∧ dom 𝐹 = (𝐹 “ V)) → (𝐹 ↾ (𝐹 “ V)) = 𝐹)
81, 4, 7sylancl 585 . . . . 5 (𝜑 → (𝐹 ↾ (𝐹 “ V)) = 𝐹)
9 imaundi 6042 . . . . . . 7 (𝐹 “ ((V ∖ {𝑍}) ∪ {𝑍})) = ((𝐹 “ (V ∖ {𝑍})) ∪ (𝐹 “ {𝑍}))
109reseq2i 5877 . . . . . 6 (𝐹 ↾ (𝐹 “ ((V ∖ {𝑍}) ∪ {𝑍}))) = (𝐹 ↾ ((𝐹 “ (V ∖ {𝑍})) ∪ (𝐹 “ {𝑍})))
11 undif1 4406 . . . . . . . . 9 ((V ∖ {𝑍}) ∪ {𝑍}) = (V ∪ {𝑍})
12 ssv 3941 . . . . . . . . . 10 {𝑍} ⊆ V
13 ssequn2 4113 . . . . . . . . . 10 ({𝑍} ⊆ V ↔ (V ∪ {𝑍}) = V)
1412, 13mpbi 229 . . . . . . . . 9 (V ∪ {𝑍}) = V
1511, 14eqtri 2766 . . . . . . . 8 ((V ∖ {𝑍}) ∪ {𝑍}) = V
1615imaeq2i 5956 . . . . . . 7 (𝐹 “ ((V ∖ {𝑍}) ∪ {𝑍})) = (𝐹 “ V)
1716reseq2i 5877 . . . . . 6 (𝐹 ↾ (𝐹 “ ((V ∖ {𝑍}) ∪ {𝑍}))) = (𝐹 ↾ (𝐹 “ V))
18 resundi 5894 . . . . . 6 (𝐹 ↾ ((𝐹 “ (V ∖ {𝑍})) ∪ (𝐹 “ {𝑍}))) = ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ (𝐹 ↾ (𝐹 “ {𝑍})))
1910, 17, 183eqtr3i 2774 . . . . 5 (𝐹 ↾ (𝐹 “ V)) = ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ (𝐹 ↾ (𝐹 “ {𝑍})))
208, 19eqtr3di 2794 . . . 4 (𝜑𝐹 = ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ (𝐹 ↾ (𝐹 “ {𝑍}))))
2120rneqd 5836 . . 3 (𝜑 → ran 𝐹 = ran ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ (𝐹 ↾ (𝐹 “ {𝑍}))))
22 rnun 6038 . . 3 ran ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ (𝐹 ↾ (𝐹 “ {𝑍}))) = (ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ ran (𝐹 ↾ (𝐹 “ {𝑍})))
2321, 22eqtrdi 2795 . 2 (𝜑 → ran 𝐹 = (ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ ran (𝐹 ↾ (𝐹 “ {𝑍}))))
24 ffsrn.0 . . . . . 6 (𝜑𝐹𝑉)
25 ffsrn.z . . . . . 6 (𝜑𝑍𝑊)
26 suppimacnv 7961 . . . . . 6 ((𝐹𝑉𝑍𝑊) → (𝐹 supp 𝑍) = (𝐹 “ (V ∖ {𝑍})))
2724, 25, 26syl2anc 583 . . . . 5 (𝜑 → (𝐹 supp 𝑍) = (𝐹 “ (V ∖ {𝑍})))
28 ffsrn.2 . . . . 5 (𝜑 → (𝐹 supp 𝑍) ∈ Fin)
2927, 28eqeltrrd 2840 . . . 4 (𝜑 → (𝐹 “ (V ∖ {𝑍})) ∈ Fin)
30 cnvexg 7745 . . . . . 6 (𝐹𝑉𝐹 ∈ V)
31 imaexg 7736 . . . . . 6 (𝐹 ∈ V → (𝐹 “ (V ∖ {𝑍})) ∈ V)
3224, 30, 313syl 18 . . . . 5 (𝜑 → (𝐹 “ (V ∖ {𝑍})) ∈ V)
33 cnvimass 5978 . . . . . . 7 (𝐹 “ (V ∖ {𝑍})) ⊆ dom 𝐹
34 fores 6682 . . . . . . 7 ((Fun 𝐹 ∧ (𝐹 “ (V ∖ {𝑍})) ⊆ dom 𝐹) → (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))):(𝐹 “ (V ∖ {𝑍}))–onto→(𝐹 “ (𝐹 “ (V ∖ {𝑍}))))
351, 33, 34sylancl 585 . . . . . 6 (𝜑 → (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))):(𝐹 “ (V ∖ {𝑍}))–onto→(𝐹 “ (𝐹 “ (V ∖ {𝑍}))))
36 fofn 6674 . . . . . 6 ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))):(𝐹 “ (V ∖ {𝑍}))–onto→(𝐹 “ (𝐹 “ (V ∖ {𝑍}))) → (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) Fn (𝐹 “ (V ∖ {𝑍})))
3735, 36syl 17 . . . . 5 (𝜑 → (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) Fn (𝐹 “ (V ∖ {𝑍})))
38 fnrndomg 10223 . . . . 5 ((𝐹 “ (V ∖ {𝑍})) ∈ V → ((𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) Fn (𝐹 “ (V ∖ {𝑍})) → ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ≼ (𝐹 “ (V ∖ {𝑍}))))
3932, 37, 38sylc 65 . . . 4 (𝜑 → ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ≼ (𝐹 “ (V ∖ {𝑍})))
40 domfi 8935 . . . 4 (((𝐹 “ (V ∖ {𝑍})) ∈ Fin ∧ ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ≼ (𝐹 “ (V ∖ {𝑍}))) → ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∈ Fin)
4129, 39, 40syl2anc 583 . . 3 (𝜑 → ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∈ Fin)
42 snfi 8788 . . . 4 {𝑍} ∈ Fin
43 df-ima 5593 . . . . . 6 (𝐹 “ (𝐹 “ {𝑍})) = ran (𝐹 ↾ (𝐹 “ {𝑍}))
44 funimacnv 6499 . . . . . . 7 (Fun 𝐹 → (𝐹 “ (𝐹 “ {𝑍})) = ({𝑍} ∩ ran 𝐹))
451, 44syl 17 . . . . . 6 (𝜑 → (𝐹 “ (𝐹 “ {𝑍})) = ({𝑍} ∩ ran 𝐹))
4643, 45eqtr3id 2793 . . . . 5 (𝜑 → ran (𝐹 ↾ (𝐹 “ {𝑍})) = ({𝑍} ∩ ran 𝐹))
47 inss1 4159 . . . . 5 ({𝑍} ∩ ran 𝐹) ⊆ {𝑍}
4846, 47eqsstrdi 3971 . . . 4 (𝜑 → ran (𝐹 ↾ (𝐹 “ {𝑍})) ⊆ {𝑍})
49 ssfi 8918 . . . 4 (({𝑍} ∈ Fin ∧ ran (𝐹 ↾ (𝐹 “ {𝑍})) ⊆ {𝑍}) → ran (𝐹 ↾ (𝐹 “ {𝑍})) ∈ Fin)
5042, 48, 49sylancr 586 . . 3 (𝜑 → ran (𝐹 ↾ (𝐹 “ {𝑍})) ∈ Fin)
51 unfi 8917 . . 3 ((ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∈ Fin ∧ ran (𝐹 ↾ (𝐹 “ {𝑍})) ∈ Fin) → (ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ ran (𝐹 ↾ (𝐹 “ {𝑍}))) ∈ Fin)
5241, 50, 51syl2anc 583 . 2 (𝜑 → (ran (𝐹 ↾ (𝐹 “ (V ∖ {𝑍}))) ∪ ran (𝐹 ↾ (𝐹 “ {𝑍}))) ∈ Fin)
5323, 52eqeltrd 2839 1 (𝜑 → ran 𝐹 ∈ Fin)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  Vcvv 3422  cdif 3880  cun 3881  cin 3882  wss 3883  {csn 4558   class class class wbr 5070  ccnv 5579  dom cdm 5580  ran crn 5581  cres 5582  cima 5583  Fun wfun 6412   Fn wfn 6413  ontowfo 6416  (class class class)co 7255   supp csupp 7948  cdom 8689  Fincfn 8691
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-ac2 10150
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-supp 7949  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-1o 8267  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-fin 8695  df-card 9628  df-acn 9631  df-ac 9803
This theorem is referenced by:  fpwrelmapffslem  30969
  Copyright terms: Public domain W3C validator