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

Theorem fipreima 9125
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 1137 . . 3 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → 𝐴 ∈ Fin)
2 dfss3 3909 . . . . . 6 (𝐴 ⊆ ran 𝐹 ↔ ∀𝑥𝐴 𝑥 ∈ ran 𝐹)
3 fvelrnb 6830 . . . . . . 7 (𝐹 Fn 𝐵 → (𝑥 ∈ ran 𝐹 ↔ ∃𝑦𝐵 (𝐹𝑦) = 𝑥))
43ralbidv 3112 . . . . . 6 (𝐹 Fn 𝐵 → (∀𝑥𝐴 𝑥 ∈ ran 𝐹 ↔ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥))
52, 4bitrid 282 . . . . 5 (𝐹 Fn 𝐵 → (𝐴 ⊆ ran 𝐹 ↔ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥))
65biimpa 477 . . . 4 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹) → ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥)
763adant3 1131 . . 3 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥)
8 fveqeq2 6783 . . . 4 (𝑦 = (𝑓𝑥) → ((𝐹𝑦) = 𝑥 ↔ (𝐹‘(𝑓𝑥)) = 𝑥))
98ac6sfi 9058 . . 3 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
101, 7, 9syl2anc 584 . 2 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
11 fimass 6621 . . . . . 6 (𝑓:𝐴𝐵 → (𝑓𝐴) ⊆ 𝐵)
12 vex 3436 . . . . . . . 8 𝑓 ∈ V
1312imaex 7763 . . . . . . 7 (𝑓𝐴) ∈ V
1413elpw 4537 . . . . . 6 ((𝑓𝐴) ∈ 𝒫 𝐵 ↔ (𝑓𝐴) ⊆ 𝐵)
1511, 14sylibr 233 . . . . 5 (𝑓:𝐴𝐵 → (𝑓𝐴) ∈ 𝒫 𝐵)
1615ad2antrl 725 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ 𝒫 𝐵)
17 ffun 6603 . . . . . 6 (𝑓:𝐴𝐵 → Fun 𝑓)
1817ad2antrl 725 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → Fun 𝑓)
19 simpl3 1192 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝐴 ∈ Fin)
20 imafi 8958 . . . . 5 ((Fun 𝑓𝐴 ∈ Fin) → (𝑓𝐴) ∈ Fin)
2118, 19, 20syl2anc 584 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ Fin)
2216, 21elind 4128 . . 3 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ (𝒫 𝐵 ∩ Fin))
23 fvco3 6867 . . . . . . . . . . 11 ((𝑓:𝐴𝐵𝑥𝐴) → ((𝐹𝑓)‘𝑥) = (𝐹‘(𝑓𝑥)))
24 fvresi 7045 . . . . . . . . . . . 12 (𝑥𝐴 → (( I ↾ 𝐴)‘𝑥) = 𝑥)
2524adantl 482 . . . . . . . . . . 11 ((𝑓:𝐴𝐵𝑥𝐴) → (( I ↾ 𝐴)‘𝑥) = 𝑥)
2623, 25eqeq12d 2754 . . . . . . . . . 10 ((𝑓:𝐴𝐵𝑥𝐴) → (((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥) ↔ (𝐹‘(𝑓𝑥)) = 𝑥))
2726ralbidva 3111 . . . . . . . . 9 (𝑓:𝐴𝐵 → (∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥) ↔ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
2827biimprd 247 . . . . . . . 8 (𝑓:𝐴𝐵 → (∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥 → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
2928adantl 482 . . . . . . 7 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ 𝑓:𝐴𝐵) → (∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥 → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
3029impr 455 . . . . . 6 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥))
31 simpl1 1190 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝐹 Fn 𝐵)
32 ffn 6600 . . . . . . . . 9 (𝑓:𝐴𝐵𝑓 Fn 𝐴)
3332ad2antrl 725 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝑓 Fn 𝐴)
34 frn 6607 . . . . . . . . 9 (𝑓:𝐴𝐵 → ran 𝑓𝐵)
3534ad2antrl 725 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ran 𝑓𝐵)
36 fnco 6549 . . . . . . . 8 ((𝐹 Fn 𝐵𝑓 Fn 𝐴 ∧ ran 𝑓𝐵) → (𝐹𝑓) Fn 𝐴)
3731, 33, 35, 36syl3anc 1370 . . . . . . 7 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹𝑓) Fn 𝐴)
38 fnresi 6561 . . . . . . 7 ( I ↾ 𝐴) Fn 𝐴
39 eqfnfv 6909 . . . . . . 7 (((𝐹𝑓) Fn 𝐴 ∧ ( I ↾ 𝐴) Fn 𝐴) → ((𝐹𝑓) = ( I ↾ 𝐴) ↔ ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
4037, 38, 39sylancl 586 . . . . . 6 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ((𝐹𝑓) = ( I ↾ 𝐴) ↔ ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
4130, 40mpbird 256 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹𝑓) = ( I ↾ 𝐴))
4241imaeq1d 5968 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ((𝐹𝑓) “ 𝐴) = (( I ↾ 𝐴) “ 𝐴))
43 imaco 6155 . . . 4 ((𝐹𝑓) “ 𝐴) = (𝐹 “ (𝑓𝐴))
44 ssid 3943 . . . . 5 𝐴𝐴
45 resiima 5984 . . . . 5 (𝐴𝐴 → (( I ↾ 𝐴) “ 𝐴) = 𝐴)
4644, 45ax-mp 5 . . . 4 (( I ↾ 𝐴) “ 𝐴) = 𝐴
4742, 43, 463eqtr3g 2801 . . 3 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹 “ (𝑓𝐴)) = 𝐴)
48 imaeq2 5965 . . . . 5 (𝑐 = (𝑓𝐴) → (𝐹𝑐) = (𝐹 “ (𝑓𝐴)))
4948eqeq1d 2740 . . . 4 (𝑐 = (𝑓𝐴) → ((𝐹𝑐) = 𝐴 ↔ (𝐹 “ (𝑓𝐴)) = 𝐴))
5049rspcev 3561 . . 3 (((𝑓𝐴) ∈ (𝒫 𝐵 ∩ Fin) ∧ (𝐹 “ (𝑓𝐴)) = 𝐴) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
5122, 47, 50syl2anc 584 . 2 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
5210, 51exlimddv 1938 1 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wex 1782  wcel 2106  wral 3064  wrex 3065  cin 3886  wss 3887  𝒫 cpw 4533   I cid 5488  ran crn 5590  cres 5591  cima 5592  ccom 5593  Fun wfun 6427   Fn wfn 6428  wf 6429  cfv 6433  Fincfn 8733
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-om 7713  df-1o 8297  df-en 8734  df-fin 8737
This theorem is referenced by:  fodomfi2  9816  cmpfi  22559  elrfirn  40517  lmhmfgsplit  40911  hbtlem6  40954
  Copyright terms: Public domain W3C validator