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

Theorem fsuppmptif 9394
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 6898 . . . . 5 (𝐹‘𝑘) ∈ V
2 fsuppmptif.z . . . . . 6 (𝜑 → 𝑍 ∈ 𝑊)
32adantr 486 . . . . 5 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑍 ∈ 𝑊)
4 ifexg 4531 . . . . 5 (((𝐹‘𝑘) ∈ V ∧ 𝑍 ∈ 𝑊) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
51, 3, 4sylancr 599 . . . 4 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
65fmpttd 7115 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)):𝐴⟶V)
76ffund 6714 . 2 (𝜑 → Fun (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)))
8 fsuppmptif.s . . . 4 (𝜑 → 𝐹 finSupp 𝑍)
98fsuppimpd 9364 . . 3 (𝜑 → (𝐹 supp 𝑍) ∈ Fin)
10 fsuppmptif.f . . . . . . 7 (𝜑 → 𝐹:𝐴⟶𝐵)
11 ssidd 3931 . . . . . . 7 (𝜑 → (𝐹 supp 𝑍) ⊆ (𝐹 supp 𝑍))
12 fsuppmptif.a . . . . . . 7 (𝜑 → 𝐴 ∈ 𝑉)
1310, 11, 12, 2suppssr 8215 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → (𝐹‘𝑘) = 𝑍)
1413ifeq1d 4501 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = if(𝑘 ∈ 𝐷, 𝑍, 𝑍))
15 ifid 4522 . . . . 5 if(𝑘 ∈ 𝐷, 𝑍, 𝑍) = 𝑍
1614, 15eqtrdi 2811 . . . 4 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = 𝑍)
1716, 12suppss2 8220 . . 3 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ⊆ (𝐹 supp 𝑍))
189, 17ssfid 9263 . 2 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ∈ Fin)
1912mptexd 7230 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∈ V)
20 isfsupp 9360 . . 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 2144  Vcvv 3450   ∖ cdif 4045  ifcif 4481   class class class wbr 5102   ↦ cmpt 5185  Fun wfun 6532  ⟶wf 6534  ‘cfv 6538  (class class class)co 7420   supp csupp 8179  Fincfn 8976   finSupp cfsupp 9356
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-supp 8180  df-1o 8479  df-en 8977  df-fin 8980  df-fsupp 9357
This theorem is used by:  cantnflem1d  9692  gsumzsplit  20146
  Copyright terms: Public domain W3C validator