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

Theorem fsuppmptif 9375
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 6890 . . . . 5 (𝐹‘𝑘) ∈ V
2 fsuppmptif.z . . . . . 6 (𝜑 → 𝑍 ∈ 𝑊)
32adantr 486 . . . . 5 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑍 ∈ 𝑊)
4 ifexg 4532 . . . . 5 (((𝐹‘𝑘) ∈ V ∧ 𝑍 ∈ 𝑊) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
51, 3, 4sylancr 599 . . . 4 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
65fmpttd 7107 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)):𝐴⟶V)
76ffund 6706 . 2 (𝜑 → Fun (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)))
8 fsuppmptif.s . . . 4 (𝜑 → 𝐹 finSupp 𝑍)
98fsuppimpd 9345 . . 3 (𝜑 → (𝐹 supp 𝑍) ∈ Fin)
10 fsuppmptif.f . . . . . . 7 (𝜑 → 𝐹:𝐴⟶𝐵)
11 ssidd 3954 . . . . . . 7 (𝜑 → (𝐹 supp 𝑍) ⊆ (𝐹 supp 𝑍))
12 fsuppmptif.a . . . . . . 7 (𝜑 → 𝐴 ∈ 𝑉)
1310, 11, 12, 2suppssr 8196 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → (𝐹‘𝑘) = 𝑍)
1413ifeq1d 4502 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = if(𝑘 ∈ 𝐷, 𝑍, 𝑍))
15 ifid 4523 . . . . 5 if(𝑘 ∈ 𝐷, 𝑍, 𝑍) = 𝑍
1614, 15eqtrdi 2812 . . . 4 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = 𝑍)
1716, 12suppss2 8201 . . 3 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ⊆ (𝐹 supp 𝑍))
189, 17ssfid 9244 . 2 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ∈ Fin)
1912mptexd 7222 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∈ V)
20 isfsupp 9341 . . 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 2145  Vcvv 3451   ∖ cdif 3896  ifcif 4482   class class class wbr 5103   ↦ cmpt 5186  Fun wfun 6525  ⟶wf 6527  ‘cfv 6531  (class class class)co 7412   supp csupp 8161  Fincfn 8957   finSupp cfsupp 9337
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7740
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7867  df-supp 8162  df-1o 8460  df-en 8958  df-fin 8961  df-fsupp 9338
This theorem is used by:  cantnflem1d  9673  gsumzsplit  20121
  Copyright terms: Public domain W3C validator