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

Theorem mplcoe1 21148
Description: Decompose a polynomial into a finite sum of monomials. (Contributed by Mario Carneiro, 9-Jan-2015.)
Hypotheses
Ref Expression
mplcoe1.p 𝑃 = (𝐼 mPoly 𝑅)
mplcoe1.d 𝐷 = {𝑓 ∈ (ℕ0m 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
mplcoe1.z 0 = (0g𝑅)
mplcoe1.o 1 = (1r𝑅)
mplcoe1.i (𝜑𝐼𝑊)
mplcoe1.b 𝐵 = (Base‘𝑃)
mplcoe1.n · = ( ·𝑠𝑃)
mplcoe1.r (𝜑𝑅 ∈ Ring)
mplcoe1.x (𝜑𝑋𝐵)
Assertion
Ref Expression
mplcoe1 (𝜑𝑋 = (𝑃 Σg (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
Distinct variable groups:   𝑦,𝑘, 1   𝐵,𝑘   𝑓,𝑘,𝑦,𝐼   𝜑,𝑘,𝑦   𝑅,𝑓,𝑦   𝐷,𝑘,𝑦   𝑃,𝑘   0 ,𝑓,𝑘,𝑦   𝑓,𝑋,𝑘,𝑦   𝑘,𝑊,𝑦   · ,𝑘
Allowed substitution hints:   𝜑(𝑓)   𝐵(𝑦,𝑓)   𝐷(𝑓)   𝑃(𝑦,𝑓)   𝑅(𝑘)   · (𝑦,𝑓)   1 (𝑓)   𝑊(𝑓)

Proof of Theorem mplcoe1
Dummy variables 𝑤 𝑥 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mplcoe1.p . . . . . 6 𝑃 = (𝐼 mPoly 𝑅)
2 eqid 2738 . . . . . 6 (Base‘𝑅) = (Base‘𝑅)
3 mplcoe1.b . . . . . 6 𝐵 = (Base‘𝑃)
4 mplcoe1.d . . . . . 6 𝐷 = {𝑓 ∈ (ℕ0m 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
5 mplcoe1.x . . . . . 6 (𝜑𝑋𝐵)
61, 2, 3, 4, 5mplelf 21114 . . . . 5 (𝜑𝑋:𝐷⟶(Base‘𝑅))
76feqmptd 6819 . . . 4 (𝜑𝑋 = (𝑦𝐷 ↦ (𝑋𝑦)))
8 iftrue 4462 . . . . . . 7 (𝑦 ∈ (𝑋 supp 0 ) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ) = (𝑋𝑦))
98adantl 481 . . . . . 6 (((𝜑𝑦𝐷) ∧ 𝑦 ∈ (𝑋 supp 0 )) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ) = (𝑋𝑦))
10 eldif 3893 . . . . . . . 8 (𝑦 ∈ (𝐷 ∖ (𝑋 supp 0 )) ↔ (𝑦𝐷 ∧ ¬ 𝑦 ∈ (𝑋 supp 0 )))
11 ssidd 3940 . . . . . . . . . . 11 (𝜑 → (𝑋 supp 0 ) ⊆ (𝑋 supp 0 ))
12 ovex 7288 . . . . . . . . . . . . 13 (ℕ0m 𝐼) ∈ V
134, 12rabex2 5253 . . . . . . . . . . . 12 𝐷 ∈ V
1413a1i 11 . . . . . . . . . . 11 (𝜑𝐷 ∈ V)
15 mplcoe1.z . . . . . . . . . . . . 13 0 = (0g𝑅)
1615fvexi 6770 . . . . . . . . . . . 12 0 ∈ V
1716a1i 11 . . . . . . . . . . 11 (𝜑0 ∈ V)
186, 11, 14, 17suppssr 7983 . . . . . . . . . 10 ((𝜑𝑦 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → (𝑋𝑦) = 0 )
1918ifeq2d 4476 . . . . . . . . 9 ((𝜑𝑦 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), (𝑋𝑦)) = if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ))
20 ifid 4496 . . . . . . . . 9 if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), (𝑋𝑦)) = (𝑋𝑦)
2119, 20eqtr3di 2794 . . . . . . . 8 ((𝜑𝑦 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ) = (𝑋𝑦))
2210, 21sylan2br 594 . . . . . . 7 ((𝜑 ∧ (𝑦𝐷 ∧ ¬ 𝑦 ∈ (𝑋 supp 0 ))) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ) = (𝑋𝑦))
2322anassrs 467 . . . . . 6 (((𝜑𝑦𝐷) ∧ ¬ 𝑦 ∈ (𝑋 supp 0 )) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ) = (𝑋𝑦))
249, 23pm2.61dan 809 . . . . 5 ((𝜑𝑦𝐷) → if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ) = (𝑋𝑦))
2524mpteq2dva 5170 . . . 4 (𝜑 → (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 )) = (𝑦𝐷 ↦ (𝑋𝑦)))
267, 25eqtr4d 2781 . . 3 (𝜑𝑋 = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 )))
27 suppssdm 7964 . . . . 5 (𝑋 supp 0 ) ⊆ dom 𝑋
2827, 6fssdm 6604 . . . 4 (𝜑 → (𝑋 supp 0 ) ⊆ 𝐷)
29 eqid 2738 . . . . . . . . 9 (𝐼 mPwSer 𝑅) = (𝐼 mPwSer 𝑅)
30 eqid 2738 . . . . . . . . 9 (Base‘(𝐼 mPwSer 𝑅)) = (Base‘(𝐼 mPwSer 𝑅))
311, 29, 30, 15, 3mplelbas 21109 . . . . . . . 8 (𝑋𝐵 ↔ (𝑋 ∈ (Base‘(𝐼 mPwSer 𝑅)) ∧ 𝑋 finSupp 0 ))
3231simprbi 496 . . . . . . 7 (𝑋𝐵𝑋 finSupp 0 )
335, 32syl 17 . . . . . 6 (𝜑𝑋 finSupp 0 )
3433fsuppimpd 9065 . . . . 5 (𝜑 → (𝑋 supp 0 ) ∈ Fin)
35 sseq1 3942 . . . . . . . 8 (𝑤 = ∅ → (𝑤𝐷 ↔ ∅ ⊆ 𝐷))
36 mpteq1 5163 . . . . . . . . . . . 12 (𝑤 = ∅ → (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) = (𝑘 ∈ ∅ ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))
37 mpt0 6559 . . . . . . . . . . . 12 (𝑘 ∈ ∅ ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) = ∅
3836, 37eqtrdi 2795 . . . . . . . . . . 11 (𝑤 = ∅ → (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) = ∅)
3938oveq2d 7271 . . . . . . . . . 10 (𝑤 = ∅ → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑃 Σg ∅))
40 eqid 2738 . . . . . . . . . . 11 (0g𝑃) = (0g𝑃)
4140gsum0 18283 . . . . . . . . . 10 (𝑃 Σg ∅) = (0g𝑃)
4239, 41eqtrdi 2795 . . . . . . . . 9 (𝑤 = ∅ → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (0g𝑃))
43 noel 4261 . . . . . . . . . . . 12 ¬ 𝑦 ∈ ∅
44 eleq2 2827 . . . . . . . . . . . 12 (𝑤 = ∅ → (𝑦𝑤𝑦 ∈ ∅))
4543, 44mtbiri 326 . . . . . . . . . . 11 (𝑤 = ∅ → ¬ 𝑦𝑤)
4645iffalsed 4467 . . . . . . . . . 10 (𝑤 = ∅ → if(𝑦𝑤, (𝑋𝑦), 0 ) = 0 )
4746mpteq2dv 5172 . . . . . . . . 9 (𝑤 = ∅ → (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) = (𝑦𝐷0 ))
4842, 47eqeq12d 2754 . . . . . . . 8 (𝑤 = ∅ → ((𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) ↔ (0g𝑃) = (𝑦𝐷0 )))
4935, 48imbi12d 344 . . . . . . 7 (𝑤 = ∅ → ((𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 ))) ↔ (∅ ⊆ 𝐷 → (0g𝑃) = (𝑦𝐷0 ))))
5049imbi2d 340 . . . . . 6 (𝑤 = ∅ → ((𝜑 → (𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )))) ↔ (𝜑 → (∅ ⊆ 𝐷 → (0g𝑃) = (𝑦𝐷0 )))))
51 sseq1 3942 . . . . . . . 8 (𝑤 = 𝑥 → (𝑤𝐷𝑥𝐷))
52 mpteq1 5163 . . . . . . . . . 10 (𝑤 = 𝑥 → (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) = (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))
5352oveq2d 7271 . . . . . . . . 9 (𝑤 = 𝑥 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
54 eleq2 2827 . . . . . . . . . . 11 (𝑤 = 𝑥 → (𝑦𝑤𝑦𝑥))
5554ifbid 4479 . . . . . . . . . 10 (𝑤 = 𝑥 → if(𝑦𝑤, (𝑋𝑦), 0 ) = if(𝑦𝑥, (𝑋𝑦), 0 ))
5655mpteq2dv 5172 . . . . . . . . 9 (𝑤 = 𝑥 → (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )))
5753, 56eqeq12d 2754 . . . . . . . 8 (𝑤 = 𝑥 → ((𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) ↔ (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))))
5851, 57imbi12d 344 . . . . . . 7 (𝑤 = 𝑥 → ((𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 ))) ↔ (𝑥𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )))))
5958imbi2d 340 . . . . . 6 (𝑤 = 𝑥 → ((𝜑 → (𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )))) ↔ (𝜑 → (𝑥𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))))))
60 sseq1 3942 . . . . . . . 8 (𝑤 = (𝑥 ∪ {𝑧}) → (𝑤𝐷 ↔ (𝑥 ∪ {𝑧}) ⊆ 𝐷))
61 mpteq1 5163 . . . . . . . . . 10 (𝑤 = (𝑥 ∪ {𝑧}) → (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) = (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))
6261oveq2d 7271 . . . . . . . . 9 (𝑤 = (𝑥 ∪ {𝑧}) → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
63 eleq2 2827 . . . . . . . . . . 11 (𝑤 = (𝑥 ∪ {𝑧}) → (𝑦𝑤𝑦 ∈ (𝑥 ∪ {𝑧})))
6463ifbid 4479 . . . . . . . . . 10 (𝑤 = (𝑥 ∪ {𝑧}) → if(𝑦𝑤, (𝑋𝑦), 0 ) = if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))
6564mpteq2dv 5172 . . . . . . . . 9 (𝑤 = (𝑥 ∪ {𝑧}) → (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )))
6662, 65eqeq12d 2754 . . . . . . . 8 (𝑤 = (𝑥 ∪ {𝑧}) → ((𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) ↔ (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))))
6760, 66imbi12d 344 . . . . . . 7 (𝑤 = (𝑥 ∪ {𝑧}) → ((𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 ))) ↔ ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )))))
6867imbi2d 340 . . . . . 6 (𝑤 = (𝑥 ∪ {𝑧}) → ((𝜑 → (𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )))) ↔ (𝜑 → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))))))
69 sseq1 3942 . . . . . . . 8 (𝑤 = (𝑋 supp 0 ) → (𝑤𝐷 ↔ (𝑋 supp 0 ) ⊆ 𝐷))
70 mpteq1 5163 . . . . . . . . . 10 (𝑤 = (𝑋 supp 0 ) → (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) = (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))
7170oveq2d 7271 . . . . . . . . 9 (𝑤 = (𝑋 supp 0 ) → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
72 eleq2 2827 . . . . . . . . . . 11 (𝑤 = (𝑋 supp 0 ) → (𝑦𝑤𝑦 ∈ (𝑋 supp 0 )))
7372ifbid 4479 . . . . . . . . . 10 (𝑤 = (𝑋 supp 0 ) → if(𝑦𝑤, (𝑋𝑦), 0 ) = if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ))
7473mpteq2dv 5172 . . . . . . . . 9 (𝑤 = (𝑋 supp 0 ) → (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 )))
7571, 74eqeq12d 2754 . . . . . . . 8 (𝑤 = (𝑋 supp 0 ) → ((𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )) ↔ (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ))))
7669, 75imbi12d 344 . . . . . . 7 (𝑤 = (𝑋 supp 0 ) → ((𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 ))) ↔ ((𝑋 supp 0 ) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 )))))
7776imbi2d 340 . . . . . 6 (𝑤 = (𝑋 supp 0 ) → ((𝜑 → (𝑤𝐷 → (𝑃 Σg (𝑘𝑤 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑤, (𝑋𝑦), 0 )))) ↔ (𝜑 → ((𝑋 supp 0 ) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ))))))
78 mplcoe1.i . . . . . . . . 9 (𝜑𝐼𝑊)
79 mplcoe1.r . . . . . . . . . 10 (𝜑𝑅 ∈ Ring)
80 ringgrp 19703 . . . . . . . . . 10 (𝑅 ∈ Ring → 𝑅 ∈ Grp)
8179, 80syl 17 . . . . . . . . 9 (𝜑𝑅 ∈ Grp)
821, 4, 15, 40, 78, 81mpl0 21122 . . . . . . . 8 (𝜑 → (0g𝑃) = (𝐷 × { 0 }))
83 fconstmpt 5640 . . . . . . . 8 (𝐷 × { 0 }) = (𝑦𝐷0 )
8482, 83eqtrdi 2795 . . . . . . 7 (𝜑 → (0g𝑃) = (𝑦𝐷0 ))
8584a1d 25 . . . . . 6 (𝜑 → (∅ ⊆ 𝐷 → (0g𝑃) = (𝑦𝐷0 )))
86 ssun1 4102 . . . . . . . . . . 11 𝑥 ⊆ (𝑥 ∪ {𝑧})
87 sstr2 3924 . . . . . . . . . . 11 (𝑥 ⊆ (𝑥 ∪ {𝑧}) → ((𝑥 ∪ {𝑧}) ⊆ 𝐷𝑥𝐷))
8886, 87ax-mp 5 . . . . . . . . . 10 ((𝑥 ∪ {𝑧}) ⊆ 𝐷𝑥𝐷)
8988imim1i 63 . . . . . . . . 9 ((𝑥𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))) → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))))
90 oveq1 7262 . . . . . . . . . . . 12 ((𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) → ((𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))) = ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))))
91 eqid 2738 . . . . . . . . . . . . . 14 (+g𝑃) = (+g𝑃)
921mplring 21134 . . . . . . . . . . . . . . . . 17 ((𝐼𝑊𝑅 ∈ Ring) → 𝑃 ∈ Ring)
9378, 79, 92syl2anc 583 . . . . . . . . . . . . . . . 16 (𝜑𝑃 ∈ Ring)
94 ringcmn 19735 . . . . . . . . . . . . . . . 16 (𝑃 ∈ Ring → 𝑃 ∈ CMnd)
9593, 94syl 17 . . . . . . . . . . . . . . 15 (𝜑𝑃 ∈ CMnd)
9695adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑃 ∈ CMnd)
97 simprll 775 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑥 ∈ Fin)
98 simprr 769 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑥 ∪ {𝑧}) ⊆ 𝐷)
9998unssad 4117 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑥𝐷)
10099sselda 3917 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑘𝑥) → 𝑘𝐷)
10178adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑘𝐷) → 𝐼𝑊)
10279adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑘𝐷) → 𝑅 ∈ Ring)
1031mpllmod 21133 . . . . . . . . . . . . . . . . . 18 ((𝐼𝑊𝑅 ∈ Ring) → 𝑃 ∈ LMod)
104101, 102, 103syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝜑𝑘𝐷) → 𝑃 ∈ LMod)
1056ffvelrnda 6943 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑘𝐷) → (𝑋𝑘) ∈ (Base‘𝑅))
1061, 78, 79mplsca 21127 . . . . . . . . . . . . . . . . . . . 20 (𝜑𝑅 = (Scalar‘𝑃))
107106adantr 480 . . . . . . . . . . . . . . . . . . 19 ((𝜑𝑘𝐷) → 𝑅 = (Scalar‘𝑃))
108107fveq2d 6760 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑘𝐷) → (Base‘𝑅) = (Base‘(Scalar‘𝑃)))
109105, 108eleqtrd 2841 . . . . . . . . . . . . . . . . 17 ((𝜑𝑘𝐷) → (𝑋𝑘) ∈ (Base‘(Scalar‘𝑃)))
110 mplcoe1.o . . . . . . . . . . . . . . . . . 18 1 = (1r𝑅)
111 simpr 484 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑘𝐷) → 𝑘𝐷)
1121, 3, 15, 110, 4, 101, 102, 111mplmon 21146 . . . . . . . . . . . . . . . . 17 ((𝜑𝑘𝐷) → (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )) ∈ 𝐵)
113 eqid 2738 . . . . . . . . . . . . . . . . . 18 (Scalar‘𝑃) = (Scalar‘𝑃)
114 mplcoe1.n . . . . . . . . . . . . . . . . . 18 · = ( ·𝑠𝑃)
115 eqid 2738 . . . . . . . . . . . . . . . . . 18 (Base‘(Scalar‘𝑃)) = (Base‘(Scalar‘𝑃))
1163, 113, 114, 115lmodvscl 20055 . . . . . . . . . . . . . . . . 17 ((𝑃 ∈ LMod ∧ (𝑋𝑘) ∈ (Base‘(Scalar‘𝑃)) ∧ (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )) ∈ 𝐵) → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) ∈ 𝐵)
117104, 109, 112, 116syl3anc 1369 . . . . . . . . . . . . . . . 16 ((𝜑𝑘𝐷) → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) ∈ 𝐵)
118117adantlr 711 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑘𝐷) → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) ∈ 𝐵)
119100, 118syldan 590 . . . . . . . . . . . . . 14 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑘𝑥) → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) ∈ 𝐵)
120 vex 3426 . . . . . . . . . . . . . . 15 𝑧 ∈ V
121120a1i 11 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑧 ∈ V)
122 simprlr 776 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ¬ 𝑧𝑥)
12378, 79, 103syl2anc 583 . . . . . . . . . . . . . . . 16 (𝜑𝑃 ∈ LMod)
124123adantr 480 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑃 ∈ LMod)
1256adantr 480 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑋:𝐷⟶(Base‘𝑅))
12698unssbd 4118 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → {𝑧} ⊆ 𝐷)
127120snss 4716 . . . . . . . . . . . . . . . . . 18 (𝑧𝐷 ↔ {𝑧} ⊆ 𝐷)
128126, 127sylibr 233 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑧𝐷)
129125, 128ffvelrnd 6944 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑋𝑧) ∈ (Base‘𝑅))
130106adantr 480 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑅 = (Scalar‘𝑃))
131130fveq2d 6760 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (Base‘𝑅) = (Base‘(Scalar‘𝑃)))
132129, 131eleqtrd 2841 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑋𝑧) ∈ (Base‘(Scalar‘𝑃)))
13378adantr 480 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝐼𝑊)
13479adantr 480 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑅 ∈ Ring)
1351, 3, 15, 110, 4, 133, 134, 128mplmon 21146 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )) ∈ 𝐵)
1363, 113, 114, 115lmodvscl 20055 . . . . . . . . . . . . . . 15 ((𝑃 ∈ LMod ∧ (𝑋𝑧) ∈ (Base‘(Scalar‘𝑃)) ∧ (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )) ∈ 𝐵) → ((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))) ∈ 𝐵)
137124, 132, 135, 136syl3anc 1369 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))) ∈ 𝐵)
138 fveq2 6756 . . . . . . . . . . . . . . 15 (𝑘 = 𝑧 → (𝑋𝑘) = (𝑋𝑧))
139 equequ2 2030 . . . . . . . . . . . . . . . . 17 (𝑘 = 𝑧 → (𝑦 = 𝑘𝑦 = 𝑧))
140139ifbid 4479 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑧 → if(𝑦 = 𝑘, 1 , 0 ) = if(𝑦 = 𝑧, 1 , 0 ))
141140mpteq2dv 5172 . . . . . . . . . . . . . . 15 (𝑘 = 𝑧 → (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))
142138, 141oveq12d 7273 . . . . . . . . . . . . . 14 (𝑘 = 𝑧 → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = ((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))))
1433, 91, 96, 97, 119, 121, 122, 137, 142gsumunsn 19476 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = ((𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))))
144 eqid 2738 . . . . . . . . . . . . . . 15 (+g𝑅) = (+g𝑅)
145125ffvelrnda 6943 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → (𝑋𝑦) ∈ (Base‘𝑅))
1462, 15ring0cl 19723 . . . . . . . . . . . . . . . . . . . . . 22 (𝑅 ∈ Ring → 0 ∈ (Base‘𝑅))
14779, 146syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝜑0 ∈ (Base‘𝑅))
148147ad2antrr 722 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → 0 ∈ (Base‘𝑅))
149145, 148ifcld 4502 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → if(𝑦𝑥, (𝑋𝑦), 0 ) ∈ (Base‘𝑅))
150149fmpttd 6971 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )):𝐷⟶(Base‘𝑅))
151 fvex 6769 . . . . . . . . . . . . . . . . . . 19 (Base‘𝑅) ∈ V
152151, 13elmap 8617 . . . . . . . . . . . . . . . . . 18 ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ ((Base‘𝑅) ↑m 𝐷) ↔ (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )):𝐷⟶(Base‘𝑅))
153150, 152sylibr 233 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ ((Base‘𝑅) ↑m 𝐷))
15429, 2, 4, 30, 133psrbas 21057 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (Base‘(𝐼 mPwSer 𝑅)) = ((Base‘𝑅) ↑m 𝐷))
155153, 154eleqtrrd 2842 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ (Base‘(𝐼 mPwSer 𝑅)))
15613mptex 7081 . . . . . . . . . . . . . . . . . . 19 (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ V
157 funmpt 6456 . . . . . . . . . . . . . . . . . . 19 Fun (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))
158156, 157, 163pm3.2i 1337 . . . . . . . . . . . . . . . . . 18 ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ V ∧ Fun (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∧ 0 ∈ V)
159158a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ V ∧ Fun (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∧ 0 ∈ V))
160 eldifn 4058 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (𝐷𝑥) → ¬ 𝑦𝑥)
161160adantl 481 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦 ∈ (𝐷𝑥)) → ¬ 𝑦𝑥)
162161iffalsed 4467 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦 ∈ (𝐷𝑥)) → if(𝑦𝑥, (𝑋𝑦), 0 ) = 0 )
16313a1i 11 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝐷 ∈ V)
164162, 163suppss2 7987 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) supp 0 ) ⊆ 𝑥)
165 suppssfifsupp 9073 . . . . . . . . . . . . . . . . 17 ((((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ V ∧ Fun (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∧ 0 ∈ V) ∧ (𝑥 ∈ Fin ∧ ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) supp 0 ) ⊆ 𝑥)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) finSupp 0 )
166159, 97, 164, 165syl12anc 833 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) finSupp 0 )
1671, 29, 30, 15, 3mplelbas 21109 . . . . . . . . . . . . . . . 16 ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ 𝐵 ↔ ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ (Base‘(𝐼 mPwSer 𝑅)) ∧ (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) finSupp 0 ))
168155, 166, 167sylanbrc 582 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∈ 𝐵)
1691, 3, 144, 91, 168, 137mpladd 21123 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))) = ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∘f (+g𝑅)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))))
170 ovexd 7290 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )) ∈ V)
171 eqidd 2739 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )))
172 eqid 2738 . . . . . . . . . . . . . . . . 17 (.r𝑅) = (.r𝑅)
1731, 114, 2, 3, 172, 4, 129, 135mplvsca 21129 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))) = ((𝐷 × {(𝑋𝑧)}) ∘f (.r𝑅)(𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))))
174129adantr 480 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → (𝑋𝑧) ∈ (Base‘𝑅))
1752, 110ringidcl 19722 . . . . . . . . . . . . . . . . . . . 20 (𝑅 ∈ Ring → 1 ∈ (Base‘𝑅))
176175, 146ifcld 4502 . . . . . . . . . . . . . . . . . . 19 (𝑅 ∈ Ring → if(𝑦 = 𝑧, 1 , 0 ) ∈ (Base‘𝑅))
17779, 176syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → if(𝑦 = 𝑧, 1 , 0 ) ∈ (Base‘𝑅))
178177ad2antrr 722 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → if(𝑦 = 𝑧, 1 , 0 ) ∈ (Base‘𝑅))
179 fconstmpt 5640 . . . . . . . . . . . . . . . . . 18 (𝐷 × {(𝑋𝑧)}) = (𝑦𝐷 ↦ (𝑋𝑧))
180179a1i 11 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝐷 × {(𝑋𝑧)}) = (𝑦𝐷 ↦ (𝑋𝑧)))
181 eqidd 2739 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))
182163, 174, 178, 180, 181offval2 7531 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝐷 × {(𝑋𝑧)}) ∘f (.r𝑅)(𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))) = (𝑦𝐷 ↦ ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))))
183173, 182eqtrd 2778 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))) = (𝑦𝐷 ↦ ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))))
184163, 149, 170, 171, 183offval2 7531 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) ∘f (+g𝑅)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))) = (𝑦𝐷 ↦ (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )))))
185134, 80syl 17 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → 𝑅 ∈ Grp)
1862, 144, 15grplid 18524 . . . . . . . . . . . . . . . . . . . 20 ((𝑅 ∈ Grp ∧ (𝑋𝑧) ∈ (Base‘𝑅)) → ( 0 (+g𝑅)(𝑋𝑧)) = (𝑋𝑧))
187185, 129, 186syl2anc 583 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ( 0 (+g𝑅)(𝑋𝑧)) = (𝑋𝑧))
188187ad2antrr 722 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ( 0 (+g𝑅)(𝑋𝑧)) = (𝑋𝑧))
189 simpr 484 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → 𝑦 ∈ {𝑧})
190 velsn 4574 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ {𝑧} ↔ 𝑦 = 𝑧)
191189, 190sylib 217 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → 𝑦 = 𝑧)
192191fveq2d 6760 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → (𝑋𝑦) = (𝑋𝑧))
193188, 192eqtr4d 2781 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ( 0 (+g𝑅)(𝑋𝑧)) = (𝑋𝑦))
194122ad2antrr 722 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ¬ 𝑧𝑥)
195191, 194eqneltrd 2858 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ¬ 𝑦𝑥)
196195iffalsed 4467 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → if(𝑦𝑥, (𝑋𝑦), 0 ) = 0 )
197191iftrued 4464 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → if(𝑦 = 𝑧, 1 , 0 ) = 1 )
198197oveq2d 7271 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )) = ((𝑋𝑧)(.r𝑅) 1 ))
1992, 172, 110ringridm 19726 . . . . . . . . . . . . . . . . . . . . 21 ((𝑅 ∈ Ring ∧ (𝑋𝑧) ∈ (Base‘𝑅)) → ((𝑋𝑧)(.r𝑅) 1 ) = (𝑋𝑧))
200134, 129, 199syl2anc 583 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑋𝑧)(.r𝑅) 1 ) = (𝑋𝑧))
201200ad2antrr 722 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ((𝑋𝑧)(.r𝑅) 1 ) = (𝑋𝑧))
202198, 201eqtrd 2778 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )) = (𝑋𝑧))
203196, 202oveq12d 7273 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))) = ( 0 (+g𝑅)(𝑋𝑧)))
204 elun2 4107 . . . . . . . . . . . . . . . . . . 19 (𝑦 ∈ {𝑧} → 𝑦 ∈ (𝑥 ∪ {𝑧}))
205204adantl 481 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → 𝑦 ∈ (𝑥 ∪ {𝑧}))
206205iftrued 4464 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ) = (𝑋𝑦))
207193, 203, 2063eqtr4d 2788 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ 𝑦 ∈ {𝑧}) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))) = if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))
20881ad2antrr 722 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → 𝑅 ∈ Grp)
2092, 144, 15grprid 18525 . . . . . . . . . . . . . . . . . . 19 ((𝑅 ∈ Grp ∧ if(𝑦𝑥, (𝑋𝑦), 0 ) ∈ (Base‘𝑅)) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅) 0 ) = if(𝑦𝑥, (𝑋𝑦), 0 ))
210208, 149, 209syl2anc 583 . . . . . . . . . . . . . . . . . 18 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅) 0 ) = if(𝑦𝑥, (𝑋𝑦), 0 ))
211210adantr 480 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅) 0 ) = if(𝑦𝑥, (𝑋𝑦), 0 ))
212 simpr 484 . . . . . . . . . . . . . . . . . . . . . 22 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → ¬ 𝑦 ∈ {𝑧})
213212, 190sylnib 327 . . . . . . . . . . . . . . . . . . . . 21 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → ¬ 𝑦 = 𝑧)
214213iffalsed 4467 . . . . . . . . . . . . . . . . . . . 20 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → if(𝑦 = 𝑧, 1 , 0 ) = 0 )
215214oveq2d 7271 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )) = ((𝑋𝑧)(.r𝑅) 0 ))
2162, 172, 15ringrz 19742 . . . . . . . . . . . . . . . . . . . . 21 ((𝑅 ∈ Ring ∧ (𝑋𝑧) ∈ (Base‘𝑅)) → ((𝑋𝑧)(.r𝑅) 0 ) = 0 )
217134, 129, 216syl2anc 583 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑋𝑧)(.r𝑅) 0 ) = 0 )
218217ad2antrr 722 . . . . . . . . . . . . . . . . . . 19 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → ((𝑋𝑧)(.r𝑅) 0 ) = 0 )
219215, 218eqtrd 2778 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → ((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )) = 0 )
220219oveq2d 7271 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))) = (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅) 0 ))
221 elun 4079 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ (𝑥 ∪ {𝑧}) ↔ (𝑦𝑥𝑦 ∈ {𝑧}))
222 orcom 866 . . . . . . . . . . . . . . . . . . . . 21 ((𝑦𝑥𝑦 ∈ {𝑧}) ↔ (𝑦 ∈ {𝑧} ∨ 𝑦𝑥))
223221, 222bitri 274 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (𝑥 ∪ {𝑧}) ↔ (𝑦 ∈ {𝑧} ∨ 𝑦𝑥))
224 biorf 933 . . . . . . . . . . . . . . . . . . . 20 𝑦 ∈ {𝑧} → (𝑦𝑥 ↔ (𝑦 ∈ {𝑧} ∨ 𝑦𝑥)))
225223, 224bitr4id 289 . . . . . . . . . . . . . . . . . . 19 𝑦 ∈ {𝑧} → (𝑦 ∈ (𝑥 ∪ {𝑧}) ↔ 𝑦𝑥))
226225adantl 481 . . . . . . . . . . . . . . . . . 18 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → (𝑦 ∈ (𝑥 ∪ {𝑧}) ↔ 𝑦𝑥))
227226ifbid 4479 . . . . . . . . . . . . . . . . 17 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ) = if(𝑦𝑥, (𝑋𝑦), 0 ))
228211, 220, 2273eqtr4d 2788 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) ∧ ¬ 𝑦 ∈ {𝑧}) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))) = if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))
229207, 228pm2.61dan 809 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) ∧ 𝑦𝐷) → (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 ))) = if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))
230229mpteq2dva 5170 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ (if(𝑦𝑥, (𝑋𝑦), 0 )(+g𝑅)((𝑋𝑧)(.r𝑅)if(𝑦 = 𝑧, 1 , 0 )))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )))
231169, 184, 2303eqtrrd 2783 . . . . . . . . . . . . 13 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )) = ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))))
232143, 231eqeq12d 2754 . . . . . . . . . . . 12 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )) ↔ ((𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 )))) = ((𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))(+g𝑃)((𝑋𝑧) · (𝑦𝐷 ↦ if(𝑦 = 𝑧, 1 , 0 ))))))
23390, 232syl5ibr 245 . . . . . . . . . . 11 ((𝜑 ∧ ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) ∧ (𝑥 ∪ {𝑧}) ⊆ 𝐷)) → ((𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))))
234233expr 456 . . . . . . . . . 10 ((𝜑 ∧ (𝑥 ∈ Fin ∧ ¬ 𝑧𝑥)) → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → ((𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )) → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )))))
235234a2d 29 . . . . . . . . 9 ((𝜑 ∧ (𝑥 ∈ Fin ∧ ¬ 𝑧𝑥)) → (((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))) → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )))))
23689, 235syl5 34 . . . . . . . 8 ((𝜑 ∧ (𝑥 ∈ Fin ∧ ¬ 𝑧𝑥)) → ((𝑥𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))) → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 )))))
237236expcom 413 . . . . . . 7 ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) → (𝜑 → ((𝑥𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 ))) → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))))))
238237a2d 29 . . . . . 6 ((𝑥 ∈ Fin ∧ ¬ 𝑧𝑥) → ((𝜑 → (𝑥𝐷 → (𝑃 Σg (𝑘𝑥 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦𝑥, (𝑋𝑦), 0 )))) → (𝜑 → ((𝑥 ∪ {𝑧}) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑥 ∪ {𝑧}) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑥 ∪ {𝑧}), (𝑋𝑦), 0 ))))))
23950, 59, 68, 77, 85, 238findcard2s 8910 . . . . 5 ((𝑋 supp 0 ) ∈ Fin → (𝜑 → ((𝑋 supp 0 ) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 )))))
24034, 239mpcom 38 . . . 4 (𝜑 → ((𝑋 supp 0 ) ⊆ 𝐷 → (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 ))))
24128, 240mpd 15 . . 3 (𝜑 → (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑦𝐷 ↦ if(𝑦 ∈ (𝑋 supp 0 ), (𝑋𝑦), 0 )))
24226, 241eqtr4d 2781 . 2 (𝜑𝑋 = (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
24328resmptd 5937 . . . 4 (𝜑 → ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ↾ (𝑋 supp 0 )) = (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))))
244243oveq2d 7271 . . 3 (𝜑 → (𝑃 Σg ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ↾ (𝑋 supp 0 ))) = (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
245117fmpttd 6971 . . . 4 (𝜑 → (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))):𝐷𝐵)
2466, 11, 14, 17suppssr 7983 . . . . . . 7 ((𝜑𝑘 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → (𝑋𝑘) = 0 )
247246oveq1d 7270 . . . . . 6 ((𝜑𝑘 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = ( 0 · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))
248 eldifi 4057 . . . . . . 7 (𝑘 ∈ (𝐷 ∖ (𝑋 supp 0 )) → 𝑘𝐷)
249107fveq2d 6760 . . . . . . . . . 10 ((𝜑𝑘𝐷) → (0g𝑅) = (0g‘(Scalar‘𝑃)))
25015, 249eqtrid 2790 . . . . . . . . 9 ((𝜑𝑘𝐷) → 0 = (0g‘(Scalar‘𝑃)))
251250oveq1d 7270 . . . . . . . 8 ((𝜑𝑘𝐷) → ( 0 · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = ((0g‘(Scalar‘𝑃)) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))
252 eqid 2738 . . . . . . . . . 10 (0g‘(Scalar‘𝑃)) = (0g‘(Scalar‘𝑃))
2533, 113, 114, 252, 40lmod0vs 20071 . . . . . . . . 9 ((𝑃 ∈ LMod ∧ (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )) ∈ 𝐵) → ((0g‘(Scalar‘𝑃)) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = (0g𝑃))
254104, 112, 253syl2anc 583 . . . . . . . 8 ((𝜑𝑘𝐷) → ((0g‘(Scalar‘𝑃)) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = (0g𝑃))
255251, 254eqtrd 2778 . . . . . . 7 ((𝜑𝑘𝐷) → ( 0 · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = (0g𝑃))
256248, 255sylan2 592 . . . . . 6 ((𝜑𝑘 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → ( 0 · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = (0g𝑃))
257247, 256eqtrd 2778 . . . . 5 ((𝜑𝑘 ∈ (𝐷 ∖ (𝑋 supp 0 ))) → ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))) = (0g𝑃))
258257, 14suppss2 7987 . . . 4 (𝜑 → ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) supp (0g𝑃)) ⊆ (𝑋 supp 0 ))
25913mptex 7081 . . . . . . 7 (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∈ V
260 funmpt 6456 . . . . . . 7 Fun (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))
261 fvex 6769 . . . . . . 7 (0g𝑃) ∈ V
262259, 260, 2613pm3.2i 1337 . . . . . 6 ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∈ V ∧ Fun (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∧ (0g𝑃) ∈ V)
263262a1i 11 . . . . 5 (𝜑 → ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∈ V ∧ Fun (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∧ (0g𝑃) ∈ V))
264 suppssfifsupp 9073 . . . . 5 ((((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∈ V ∧ Fun (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ∧ (0g𝑃) ∈ V) ∧ ((𝑋 supp 0 ) ∈ Fin ∧ ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) supp (0g𝑃)) ⊆ (𝑋 supp 0 ))) → (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) finSupp (0g𝑃))
265263, 34, 258, 264syl12anc 833 . . . 4 (𝜑 → (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) finSupp (0g𝑃))
2663, 40, 95, 14, 245, 258, 265gsumres 19429 . . 3 (𝜑 → (𝑃 Σg ((𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 )))) ↾ (𝑋 supp 0 ))) = (𝑃 Σg (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
267244, 266eqtr3d 2780 . 2 (𝜑 → (𝑃 Σg (𝑘 ∈ (𝑋 supp 0 ) ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))) = (𝑃 Σg (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
268242, 267eqtrd 2778 1 (𝜑𝑋 = (𝑃 Σg (𝑘𝐷 ↦ ((𝑋𝑘) · (𝑦𝐷 ↦ if(𝑦 = 𝑘, 1 , 0 ))))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  {crab 3067  Vcvv 3422  cdif 3880  cun 3881  wss 3883  c0 4253  ifcif 4456  {csn 4558   class class class wbr 5070  cmpt 5153   × cxp 5578  ccnv 5579  cres 5582  cima 5583  Fun wfun 6412  wf 6414  cfv 6418  (class class class)co 7255  f cof 7509   supp csupp 7948  m cmap 8573  Fincfn 8691   finSupp cfsupp 9058  cn 11903  0cn0 12163  Basecbs 16840  +gcplusg 16888  .rcmulr 16889  Scalarcsca 16891   ·𝑠 cvsca 16892  0gc0g 17067   Σg cgsu 17068  Grpcgrp 18492  CMndccmn 19301  1rcur 19652  Ringcrg 19698  LModclmod 20038   mPwSer cmps 21017   mPoly cmpl 21019
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-iin 4924  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511  df-ofr 7512  df-om 7688  df-1st 7804  df-2nd 7805  df-supp 7949  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-map 8575  df-pm 8576  df-ixp 8644  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-fsupp 9059  df-oi 9199  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-3 11967  df-4 11968  df-5 11969  df-6 11970  df-7 11971  df-8 11972  df-9 11973  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169  df-fzo 13312  df-seq 13650  df-hash 13973  df-struct 16776  df-sets 16793  df-slot 16811  df-ndx 16823  df-base 16841  df-ress 16868  df-plusg 16901  df-mulr 16902  df-sca 16904  df-vsca 16905  df-tset 16907  df-0g 17069  df-gsum 17070  df-mre 17212  df-mrc 17213  df-acs 17215  df-mgm 18241  df-sgrp 18290  df-mnd 18301  df-mhm 18345  df-submnd 18346  df-grp 18495  df-minusg 18496  df-sbg 18497  df-mulg 18616  df-subg 18667  df-ghm 18747  df-cntz 18838  df-cmn 19303  df-abl 19304  df-mgp 19636  df-ur 19653  df-ring 19700  df-subrg 19937  df-lmod 20040  df-lss 20109  df-psr 21022  df-mpl 21024
This theorem is referenced by:  mplbas2  21153  mplcoe4  21189  ply1coe  21377
  Copyright terms: Public domain W3C validator