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

Theorem imafi 8958
Description: Images of finite sets are finite. For a shorter proof using ax-pow 5288, see imafiALT 9112. (Contributed by Stefan O'Rear, 22-Feb-2015.) Avoid ax-pow 5288. (Revised by BTernaryTau, 7-Sep-2024.)
Assertion
Ref Expression
imafi ((Fun 𝐹𝑋 ∈ Fin) → (𝐹𝑋) ∈ Fin)

Proof of Theorem imafi
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 imaeq2 5965 . . . . 5 (𝑥 = ∅ → (𝐹𝑥) = (𝐹 “ ∅))
21eleq1d 2823 . . . 4 (𝑥 = ∅ → ((𝐹𝑥) ∈ Fin ↔ (𝐹 “ ∅) ∈ Fin))
32imbi2d 341 . . 3 (𝑥 = ∅ → ((Fun 𝐹 → (𝐹𝑥) ∈ Fin) ↔ (Fun 𝐹 → (𝐹 “ ∅) ∈ Fin)))
4 imaeq2 5965 . . . . 5 (𝑥 = 𝑦 → (𝐹𝑥) = (𝐹𝑦))
54eleq1d 2823 . . . 4 (𝑥 = 𝑦 → ((𝐹𝑥) ∈ Fin ↔ (𝐹𝑦) ∈ Fin))
65imbi2d 341 . . 3 (𝑥 = 𝑦 → ((Fun 𝐹 → (𝐹𝑥) ∈ Fin) ↔ (Fun 𝐹 → (𝐹𝑦) ∈ Fin)))
7 imaeq2 5965 . . . . 5 (𝑥 = (𝑦 ∪ {𝑧}) → (𝐹𝑥) = (𝐹 “ (𝑦 ∪ {𝑧})))
87eleq1d 2823 . . . 4 (𝑥 = (𝑦 ∪ {𝑧}) → ((𝐹𝑥) ∈ Fin ↔ (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin))
98imbi2d 341 . . 3 (𝑥 = (𝑦 ∪ {𝑧}) → ((Fun 𝐹 → (𝐹𝑥) ∈ Fin) ↔ (Fun 𝐹 → (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin)))
10 imaeq2 5965 . . . . 5 (𝑥 = 𝑋 → (𝐹𝑥) = (𝐹𝑋))
1110eleq1d 2823 . . . 4 (𝑥 = 𝑋 → ((𝐹𝑥) ∈ Fin ↔ (𝐹𝑋) ∈ Fin))
1211imbi2d 341 . . 3 (𝑥 = 𝑋 → ((Fun 𝐹 → (𝐹𝑥) ∈ Fin) ↔ (Fun 𝐹 → (𝐹𝑋) ∈ Fin)))
13 ima0 5985 . . . . 5 (𝐹 “ ∅) = ∅
14 0fin 8954 . . . . 5 ∅ ∈ Fin
1513, 14eqeltri 2835 . . . 4 (𝐹 “ ∅) ∈ Fin
1615a1i 11 . . 3 (Fun 𝐹 → (𝐹 “ ∅) ∈ Fin)
17 funfn 6464 . . . . . . . . . 10 (Fun 𝐹𝐹 Fn dom 𝐹)
18 fnsnfv 6847 . . . . . . . . . 10 ((𝐹 Fn dom 𝐹𝑧 ∈ dom 𝐹) → {(𝐹𝑧)} = (𝐹 “ {𝑧}))
1917, 18sylanb 581 . . . . . . . . 9 ((Fun 𝐹𝑧 ∈ dom 𝐹) → {(𝐹𝑧)} = (𝐹 “ {𝑧}))
20 snfi 8834 . . . . . . . . 9 {(𝐹𝑧)} ∈ Fin
2119, 20eqeltrrdi 2848 . . . . . . . 8 ((Fun 𝐹𝑧 ∈ dom 𝐹) → (𝐹 “ {𝑧}) ∈ Fin)
22 ndmima 6011 . . . . . . . . . 10 𝑧 ∈ dom 𝐹 → (𝐹 “ {𝑧}) = ∅)
2322, 14eqeltrdi 2847 . . . . . . . . 9 𝑧 ∈ dom 𝐹 → (𝐹 “ {𝑧}) ∈ Fin)
2423adantl 482 . . . . . . . 8 ((Fun 𝐹 ∧ ¬ 𝑧 ∈ dom 𝐹) → (𝐹 “ {𝑧}) ∈ Fin)
2521, 24pm2.61dan 810 . . . . . . 7 (Fun 𝐹 → (𝐹 “ {𝑧}) ∈ Fin)
26 imaundi 6053 . . . . . . . 8 (𝐹 “ (𝑦 ∪ {𝑧})) = ((𝐹𝑦) ∪ (𝐹 “ {𝑧}))
27 unfi 8955 . . . . . . . 8 (((𝐹𝑦) ∈ Fin ∧ (𝐹 “ {𝑧}) ∈ Fin) → ((𝐹𝑦) ∪ (𝐹 “ {𝑧})) ∈ Fin)
2826, 27eqeltrid 2843 . . . . . . 7 (((𝐹𝑦) ∈ Fin ∧ (𝐹 “ {𝑧}) ∈ Fin) → (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin)
2925, 28sylan2 593 . . . . . 6 (((𝐹𝑦) ∈ Fin ∧ Fun 𝐹) → (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin)
3029expcom 414 . . . . 5 (Fun 𝐹 → ((𝐹𝑦) ∈ Fin → (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin))
3130a2i 14 . . . 4 ((Fun 𝐹 → (𝐹𝑦) ∈ Fin) → (Fun 𝐹 → (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin))
3231a1i 11 . . 3 (𝑦 ∈ Fin → ((Fun 𝐹 → (𝐹𝑦) ∈ Fin) → (Fun 𝐹 → (𝐹 “ (𝑦 ∪ {𝑧})) ∈ Fin)))
333, 6, 9, 12, 16, 32findcard2 8947 . 2 (𝑋 ∈ Fin → (Fun 𝐹 → (𝐹𝑋) ∈ Fin))
3433impcom 408 1 ((Fun 𝐹𝑋 ∈ Fin) → (𝐹𝑋) ∈ Fin)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  cun 3885  c0 4256  {csn 4561  dom cdm 5589  cima 5592  Fun wfun 6427   Fn wfn 6428  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-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-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:  pwfir  8959  pwfilem  8960  fissuni  9124  fipreima  9125  fsuppcolem  9160  cmpfi  22559  mdegldg  25231  mdegcl  25234  trlsegvdeglem6  28589  fsuppcurry1  31060  fsuppcurry2  31061  elrspunidl  31606  locfinreflem  31790  zarcmplem  31831  sibfof  32307  eulerpartlemgf  32346  fineqvrep  33064  poimirlem30  35807  ftc1anclem7  35856  ftc1anc  35858  elrfirn  40517  sge0f1o  43920
  Copyright terms: Public domain W3C validator