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

Theorem fsuppmptif 9418
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 6921 . . . . 5 (𝐹‘𝑘) ∈ V
2 fsuppmptif.z . . . . . 6 (𝜑 → 𝑍 ∈ 𝑊)
32adantr 486 . . . . 5 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑍 ∈ 𝑊)
4 ifexg 4535 . . . . 5 (((𝐹‘𝑘) ∈ V ∧ 𝑍 ∈ 𝑊) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
51, 3, 4sylancr 599 . . . 4 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) ∈ V)
65fmpttd 7139 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)):𝐴⟶V)
76ffund 6736 . 2 (𝜑 → Fun (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)))
8 fsuppmptif.s . . . 4 (𝜑 → 𝐹 finSupp 𝑍)
98fsuppimpd 9389 . . 3 (𝜑 → (𝐹 supp 𝑍) ∈ Fin)
10 fsuppmptif.f . . . . . . 7 (𝜑 → 𝐹:𝐴⟶𝐵)
11 ssidd 3936 . . . . . . 7 (𝜑 → (𝐹 supp 𝑍) ⊆ (𝐹 supp 𝑍))
12 fsuppmptif.a . . . . . . 7 (𝜑 → 𝐴 ∈ 𝑉)
1310, 11, 12, 2suppssr 8240 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → (𝐹‘𝑘) = 𝑍)
1413ifeq1d 4505 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = if(𝑘 ∈ 𝐷, 𝑍, 𝑍))
15 ifid 4526 . . . . 5 if(𝑘 ∈ 𝐷, 𝑍, 𝑍) = 𝑍
1614, 15eqtrdi 2814 . . . 4 ((𝜑 ∧ 𝑘 ∈ (𝐴 ∖ (𝐹 supp 𝑍))) → if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍) = 𝑍)
1716, 12suppss2 8245 . . 3 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ⊆ (𝐹 supp 𝑍))
189, 17ssfid 9288 . 2 (𝜑 → ((𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) supp 𝑍) ∈ Fin)
1912mptexd 7253 . . 3 (𝜑 → (𝑘 ∈ 𝐴 ↦ if(𝑘 ∈ 𝐷, (𝐹‘𝑘), 𝑍)) ∈ V)
20 isfsupp 9385 . . 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 2147  Vcvv 3454   ∖ cdif 4048  ifcif 4485   class class class wbr 5106   ↦ cmpt 5189  Fun wfun 6552  ⟶wf 6554  ‘cfv 6558  (class class class)co 7443   supp csupp 8204  Fincfn 9001   finSupp cfsupp 9381
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-un 7775
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-supp 8205  df-1o 8504  df-en 9002  df-fin 9005  df-fsupp 9382
This theorem is used by:  cantnflem1d  9716  gsumzsplit  20171
  Copyright terms: Public domain W3C validator