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

Theorem fipreima 9358
Description: Given a finite subset 𝐴 of the range of a function, there exists a finite subset of the domain whose image is 𝐴. (Contributed by Jeff Madsen, 2-Sep-2009.) (Revised by Stefan O'Rear, 22-Feb-2015.)
Assertion
Ref Expression
fipreima ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
Distinct variable groups:   𝐴,𝑐   𝐵,𝑐   𝐹,𝑐

Proof of Theorem fipreima
Dummy variables 𝑓 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simp3 1139 . . 3 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → 𝐴 ∈ Fin)
2 dfss3 3971 . . . . . 6 (𝐴 ⊆ ran 𝐹 ↔ ∀𝑥𝐴 𝑥 ∈ ran 𝐹)
3 fvelrnb 6953 . . . . . . 7 (𝐹 Fn 𝐵 → (𝑥 ∈ ran 𝐹 ↔ ∃𝑦𝐵 (𝐹𝑦) = 𝑥))
43ralbidv 3178 . . . . . 6 (𝐹 Fn 𝐵 → (∀𝑥𝐴 𝑥 ∈ ran 𝐹 ↔ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥))
52, 4bitrid 283 . . . . 5 (𝐹 Fn 𝐵 → (𝐴 ⊆ ran 𝐹 ↔ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥))
65biimpa 478 . . . 4 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹) → ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥)
763adant3 1133 . . 3 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥)
8 fveqeq2 6901 . . . 4 (𝑦 = (𝑓𝑥) → ((𝐹𝑦) = 𝑥 ↔ (𝐹‘(𝑓𝑥)) = 𝑥))
98ac6sfi 9287 . . 3 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
101, 7, 9syl2anc 585 . 2 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
11 fimass 6739 . . . . . 6 (𝑓:𝐴𝐵 → (𝑓𝐴) ⊆ 𝐵)
12 vex 3479 . . . . . . . 8 𝑓 ∈ V
1312imaex 7907 . . . . . . 7 (𝑓𝐴) ∈ V
1413elpw 4607 . . . . . 6 ((𝑓𝐴) ∈ 𝒫 𝐵 ↔ (𝑓𝐴) ⊆ 𝐵)
1511, 14sylibr 233 . . . . 5 (𝑓:𝐴𝐵 → (𝑓𝐴) ∈ 𝒫 𝐵)
1615ad2antrl 727 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ 𝒫 𝐵)
17 ffun 6721 . . . . . 6 (𝑓:𝐴𝐵 → Fun 𝑓)
1817ad2antrl 727 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → Fun 𝑓)
19 simpl3 1194 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝐴 ∈ Fin)
20 imafi 9175 . . . . 5 ((Fun 𝑓𝐴 ∈ Fin) → (𝑓𝐴) ∈ Fin)
2118, 19, 20syl2anc 585 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ Fin)
2216, 21elind 4195 . . 3 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ (𝒫 𝐵 ∩ Fin))
23 fvco3 6991 . . . . . . . . . . 11 ((𝑓:𝐴𝐵𝑥𝐴) → ((𝐹𝑓)‘𝑥) = (𝐹‘(𝑓𝑥)))
24 fvresi 7171 . . . . . . . . . . . 12 (𝑥𝐴 → (( I ↾ 𝐴)‘𝑥) = 𝑥)
2524adantl 483 . . . . . . . . . . 11 ((𝑓:𝐴𝐵𝑥𝐴) → (( I ↾ 𝐴)‘𝑥) = 𝑥)
2623, 25eqeq12d 2749 . . . . . . . . . 10 ((𝑓:𝐴𝐵𝑥𝐴) → (((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥) ↔ (𝐹‘(𝑓𝑥)) = 𝑥))
2726ralbidva 3176 . . . . . . . . 9 (𝑓:𝐴𝐵 → (∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥) ↔ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
2827biimprd 247 . . . . . . . 8 (𝑓:𝐴𝐵 → (∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥 → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
2928adantl 483 . . . . . . 7 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ 𝑓:𝐴𝐵) → (∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥 → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
3029impr 456 . . . . . 6 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥))
31 simpl1 1192 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝐹 Fn 𝐵)
32 ffn 6718 . . . . . . . . 9 (𝑓:𝐴𝐵𝑓 Fn 𝐴)
3332ad2antrl 727 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝑓 Fn 𝐴)
34 frn 6725 . . . . . . . . 9 (𝑓:𝐴𝐵 → ran 𝑓𝐵)
3534ad2antrl 727 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ran 𝑓𝐵)
36 fnco 6668 . . . . . . . 8 ((𝐹 Fn 𝐵𝑓 Fn 𝐴 ∧ ran 𝑓𝐵) → (𝐹𝑓) Fn 𝐴)
3731, 33, 35, 36syl3anc 1372 . . . . . . 7 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹𝑓) Fn 𝐴)
38 fnresi 6680 . . . . . . 7 ( I ↾ 𝐴) Fn 𝐴
39 eqfnfv 7033 . . . . . . 7 (((𝐹𝑓) Fn 𝐴 ∧ ( I ↾ 𝐴) Fn 𝐴) → ((𝐹𝑓) = ( I ↾ 𝐴) ↔ ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
4037, 38, 39sylancl 587 . . . . . 6 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ((𝐹𝑓) = ( I ↾ 𝐴) ↔ ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
4130, 40mpbird 257 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹𝑓) = ( I ↾ 𝐴))
4241imaeq1d 6059 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ((𝐹𝑓) “ 𝐴) = (( I ↾ 𝐴) “ 𝐴))
43 imaco 6251 . . . 4 ((𝐹𝑓) “ 𝐴) = (𝐹 “ (𝑓𝐴))
44 ssid 4005 . . . . 5 𝐴𝐴
45 resiima 6076 . . . . 5 (𝐴𝐴 → (( I ↾ 𝐴) “ 𝐴) = 𝐴)
4644, 45ax-mp 5 . . . 4 (( I ↾ 𝐴) “ 𝐴) = 𝐴
4742, 43, 463eqtr3g 2796 . . 3 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹 “ (𝑓𝐴)) = 𝐴)
48 imaeq2 6056 . . . . 5 (𝑐 = (𝑓𝐴) → (𝐹𝑐) = (𝐹 “ (𝑓𝐴)))
4948eqeq1d 2735 . . . 4 (𝑐 = (𝑓𝐴) → ((𝐹𝑐) = 𝐴 ↔ (𝐹 “ (𝑓𝐴)) = 𝐴))
5049rspcev 3613 . . 3 (((𝑓𝐴) ∈ (𝒫 𝐵 ∩ Fin) ∧ (𝐹 “ (𝑓𝐴)) = 𝐴) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
5122, 47, 50syl2anc 585 . 2 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
5210, 51exlimddv 1939 1 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  w3a 1088   = wceq 1542  wex 1782  wcel 2107  wral 3062  wrex 3071  cin 3948  wss 3949  𝒫 cpw 4603   I cid 5574  ran crn 5678  cres 5679  cima 5680  ccom 5681  Fun wfun 6538   Fn wfn 6539  wf 6540  cfv 6544  Fincfn 8939
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-sep 5300  ax-nul 5307  ax-pr 5428  ax-un 7725
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-om 7856  df-1o 8466  df-en 8940  df-fin 8943
This theorem is referenced by:  fodomfi2  10055  cmpfi  22912  elrfirn  41433  lmhmfgsplit  41828  hbtlem6  41871
  Copyright terms: Public domain W3C validator