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

Theorem fsuppmptif 9438
Description: A function mapping an argument to either a value of a finitely supported function or zero is finitely supported. (Contributed by AV, 6-Jun-2019.)
Hypotheses
Ref Expression
fsuppmptif.f (𝜑 → 𝐹:𝐴⟶𝐵)
fsuppmptif.a (𝜑 → 𝐴 ∈ 𝑉)
fsuppmptif.z (𝜑 → 𝑍 ∈ 𝑊)
fsuppmptif.s (𝜑 → 𝐹 finSupp 𝑍)
Assertion
Ref Expression
fsuppmptif (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) finSupp 𝑍)
Distinct variable groups:   𝐴,𝑘   𝑘,𝐹   𝑘,𝑍   𝜑,𝑘
Allowed substitution hints:   𝐵(𝑘)   𝐷(𝑘)   𝑉(𝑘)   𝑊(𝑘)

Proof of Theorem fsuppmptif
StepHypRef Expression
1 fvex 6939 . . . . 5 (𝐹‘𝑘) ∈ V
2 fsuppmptif.z . . . . . 6 (𝜑 → 𝑍 ∈ 𝑊)
32adantr 486 . . . . 5 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑍 ∈ 𝑊)
4 ifexg 4537 . . . . 5 (((𝐹‘𝑘) ∈ V ∧ 𝑍 ∈ 𝑊) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
51, 3, 4sylancr 599 . . . 4 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
65fmpttd 7157 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)):𝐴⟶V)
76ffund 6754 . 2 (𝜑 → Fun (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)))
8 fsuppmptif.s . . . 4 (𝜑 → 𝐹 finSupp 𝑍)
98fsuppimpd 9409 . . 3 (𝜑 → (𝐹 supp 𝑍) ∈ Fin)
10 fsuppmptif.f . . . . . . 7 (𝜑 → 𝐹:𝐴⟶𝐵)
11 ssidd 3938 . . . . . . 7 (𝜑 → (𝐹 supp 𝑍) ⊆ (𝐹 supp 𝑍))
12 fsuppmptif.a . . . . . . 7 (𝜑 → 𝐴 ∈ 𝑉)
1310, 11, 12, 2suppssr 8260 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → (𝐹‘𝑘) = 𝑍)
1413ifeq1d 4507 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = if(𝑘 ∈ 𝐷, 𝑍, 𝑍))
15 ifid 4528 . . . . 5 if(𝑘 ∈ 𝐷, 𝑍, 𝑍) = 𝑍
1614, 15eqtrdi 2820 . . . 4 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = 𝑍)
1716, 12suppss2 8265 . . 3 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ⊆ (𝐹 supp 𝑍))
189, 17ssfid 9308 . 2 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ∈ Fin)
1912mptexd 7271 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∈ V)
20 isfsupp 9405 . . 3 (((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∈ V ∧ 𝑍 ∈ 𝑊) → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) finSupp 𝑍 ↔ (Fun (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∧ ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ∈ Fin)))
2119, 2, 20syl2anc 596 . 2 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) finSupp 𝑍 ↔ (Fun (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∧ ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ∈ Fin)))
227, 18, 21mpbir2and 726 1 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) finSupp 𝑍)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∈ wcel 2151  Vcvv 3456   ∖ cdif 4050  ifcif 4487   class class class wbr 5111   ↦ cmpt 5195  Fun wfun 6567  ⟶wf 6569  ‘cfv 6573  (class class class)co 7461   supp csupp 8224  Fincfn 9021   finSupp cfsupp 9401
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pr 5401  ax-un 7793
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-ov 7464  df-oprab 7465  df-mpo 7466  df-om 7922  df-supp 8225  df-1o 8524  df-en 9022  df-fin 9025  df-fsupp 9402
This theorem is used by:  cantnflem1d  9736  gsumzsplit  20209
  Copyright terms: Public domain W3C validator