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

Theorem fipreima 9055
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 1136 . . 3 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → 𝐴 ∈ Fin)
2 dfss3 3905 . . . . . 6 (𝐴 ⊆ ran 𝐹 ↔ ∀𝑥𝐴 𝑥 ∈ ran 𝐹)
3 fvelrnb 6812 . . . . . . 7 (𝐹 Fn 𝐵 → (𝑥 ∈ ran 𝐹 ↔ ∃𝑦𝐵 (𝐹𝑦) = 𝑥))
43ralbidv 3120 . . . . . 6 (𝐹 Fn 𝐵 → (∀𝑥𝐴 𝑥 ∈ ran 𝐹 ↔ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥))
52, 4syl5bb 282 . . . . 5 (𝐹 Fn 𝐵 → (𝐴 ⊆ ran 𝐹 ↔ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥))
65biimpa 476 . . . 4 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹) → ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥)
763adant3 1130 . . 3 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥)
8 fveqeq2 6765 . . . 4 (𝑦 = (𝑓𝑥) → ((𝐹𝑦) = 𝑥 ↔ (𝐹‘(𝑓𝑥)) = 𝑥))
98ac6sfi 8988 . . 3 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 (𝐹𝑦) = 𝑥) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
101, 7, 9syl2anc 583 . 2 ((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
11 fimass 6605 . . . . . 6 (𝑓:𝐴𝐵 → (𝑓𝐴) ⊆ 𝐵)
12 vex 3426 . . . . . . . 8 𝑓 ∈ V
1312imaex 7737 . . . . . . 7 (𝑓𝐴) ∈ V
1413elpw 4534 . . . . . 6 ((𝑓𝐴) ∈ 𝒫 𝐵 ↔ (𝑓𝐴) ⊆ 𝐵)
1511, 14sylibr 233 . . . . 5 (𝑓:𝐴𝐵 → (𝑓𝐴) ∈ 𝒫 𝐵)
1615ad2antrl 724 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ 𝒫 𝐵)
17 ffun 6587 . . . . . 6 (𝑓:𝐴𝐵 → Fun 𝑓)
1817ad2antrl 724 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → Fun 𝑓)
19 simpl3 1191 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝐴 ∈ Fin)
20 imafi 8920 . . . . 5 ((Fun 𝑓𝐴 ∈ Fin) → (𝑓𝐴) ∈ Fin)
2118, 19, 20syl2anc 583 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ Fin)
2216, 21elind 4124 . . 3 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝑓𝐴) ∈ (𝒫 𝐵 ∩ Fin))
23 fvco3 6849 . . . . . . . . . . 11 ((𝑓:𝐴𝐵𝑥𝐴) → ((𝐹𝑓)‘𝑥) = (𝐹‘(𝑓𝑥)))
24 fvresi 7027 . . . . . . . . . . . 12 (𝑥𝐴 → (( I ↾ 𝐴)‘𝑥) = 𝑥)
2524adantl 481 . . . . . . . . . . 11 ((𝑓:𝐴𝐵𝑥𝐴) → (( I ↾ 𝐴)‘𝑥) = 𝑥)
2623, 25eqeq12d 2754 . . . . . . . . . 10 ((𝑓:𝐴𝐵𝑥𝐴) → (((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥) ↔ (𝐹‘(𝑓𝑥)) = 𝑥))
2726ralbidva 3119 . . . . . . . . 9 (𝑓:𝐴𝐵 → (∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥) ↔ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥))
2827biimprd 247 . . . . . . . 8 (𝑓:𝐴𝐵 → (∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥 → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
2928adantl 481 . . . . . . 7 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ 𝑓:𝐴𝐵) → (∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥 → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
3029impr 454 . . . . . 6 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥))
31 simpl1 1189 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝐹 Fn 𝐵)
32 ffn 6584 . . . . . . . . 9 (𝑓:𝐴𝐵𝑓 Fn 𝐴)
3332ad2antrl 724 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → 𝑓 Fn 𝐴)
34 frn 6591 . . . . . . . . 9 (𝑓:𝐴𝐵 → ran 𝑓𝐵)
3534ad2antrl 724 . . . . . . . 8 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ran 𝑓𝐵)
36 fnco 6533 . . . . . . . 8 ((𝐹 Fn 𝐵𝑓 Fn 𝐴 ∧ ran 𝑓𝐵) → (𝐹𝑓) Fn 𝐴)
3731, 33, 35, 36syl3anc 1369 . . . . . . 7 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹𝑓) Fn 𝐴)
38 fnresi 6545 . . . . . . 7 ( I ↾ 𝐴) Fn 𝐴
39 eqfnfv 6891 . . . . . . 7 (((𝐹𝑓) Fn 𝐴 ∧ ( I ↾ 𝐴) Fn 𝐴) → ((𝐹𝑓) = ( I ↾ 𝐴) ↔ ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
4037, 38, 39sylancl 585 . . . . . 6 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ((𝐹𝑓) = ( I ↾ 𝐴) ↔ ∀𝑥𝐴 ((𝐹𝑓)‘𝑥) = (( I ↾ 𝐴)‘𝑥)))
4130, 40mpbird 256 . . . . 5 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹𝑓) = ( I ↾ 𝐴))
4241imaeq1d 5957 . . . 4 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → ((𝐹𝑓) “ 𝐴) = (( I ↾ 𝐴) “ 𝐴))
43 imaco 6144 . . . 4 ((𝐹𝑓) “ 𝐴) = (𝐹 “ (𝑓𝐴))
44 ssid 3939 . . . . 5 𝐴𝐴
45 resiima 5973 . . . . 5 (𝐴𝐴 → (( I ↾ 𝐴) “ 𝐴) = 𝐴)
4644, 45ax-mp 5 . . . 4 (( I ↾ 𝐴) “ 𝐴) = 𝐴
4742, 43, 463eqtr3g 2802 . . 3 (((𝐹 Fn 𝐵𝐴 ⊆ ran 𝐹𝐴 ∈ Fin) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 (𝐹‘(𝑓𝑥)) = 𝑥)) → (𝐹 “ (𝑓𝐴)) = 𝐴)
48 imaeq2 5954 . . . . 5 (𝑐 = (𝑓𝐴) → (𝐹𝑐) = (𝐹 “ (𝑓𝐴)))
4948eqeq1d 2740 . . . 4 (𝑐 = (𝑓𝐴) → ((𝐹𝑐) = 𝐴 ↔ (𝐹 “ (𝑓𝐴)) = 𝐴))
5049rspcev 3552 . . 3 (((𝑓𝐴) ∈ (𝒫 𝐵 ∩ Fin) ∧ (𝐹 “ (𝑓𝐴)) = 𝐴) → ∃𝑐 ∈ (𝒫 𝐵 ∩ Fin)(𝐹𝑐) = 𝐴)
5122, 47, 50syl2anc 583 . 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 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  wral 3063  wrex 3064  cin 3882  wss 3883  𝒫 cpw 4530   I cid 5479  ran crn 5581  cres 5582  cima 5583  ccom 5584  Fun wfun 6412   Fn wfn 6413  wf 6414  cfv 6418  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-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
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-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-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-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-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-om 7688  df-1o 8267  df-en 8692  df-fin 8695
This theorem is referenced by:  fodomfi2  9747  cmpfi  22467  elrfirn  40433  lmhmfgsplit  40827  hbtlem6  40870
  Copyright terms: Public domain W3C validator