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

Theorem mplcoe3 21239
Description: Decompose a monomial in one variable into a power of a variable. (Contributed by Mario Carneiro, 7-Jan-2015.) (Proof shortened by AV, 18-Jul-2019.)
Hypotheses
Ref Expression
mplcoe1.p 𝑃 = (𝐼 mPoly 𝑅)
mplcoe1.d 𝐷 = {𝑓 ∈ (ℕ0m 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
mplcoe1.z 0 = (0g𝑅)
mplcoe1.o 1 = (1r𝑅)
mplcoe1.i (𝜑𝐼𝑊)
mplcoe2.g 𝐺 = (mulGrp‘𝑃)
mplcoe2.m = (.g𝐺)
mplcoe2.v 𝑉 = (𝐼 mVar 𝑅)
mplcoe3.r (𝜑𝑅 ∈ Ring)
mplcoe3.x (𝜑𝑋𝐼)
mplcoe3.n (𝜑𝑁 ∈ ℕ0)
Assertion
Ref Expression
mplcoe3 (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋)))
Distinct variable groups:   ,𝑘   𝑦,𝑘, 1   𝑘,𝐺   𝑓,𝑘,𝑦,𝐼   𝑘,𝑁,𝑦   𝜑,𝑘,𝑦   𝑅,𝑓,𝑦   𝐷,𝑘,𝑦   𝑃,𝑘   𝑘,𝑉   0 ,𝑓,𝑘,𝑦   𝑓,𝑋,𝑘,𝑦   𝑘,𝑊,𝑦
Allowed substitution hints:   𝜑(𝑓)   𝐷(𝑓)   𝑃(𝑦,𝑓)   𝑅(𝑘)   1 (𝑓)   (𝑦,𝑓)   𝐺(𝑦,𝑓)   𝑁(𝑓)   𝑉(𝑦,𝑓)   𝑊(𝑓)

Proof of Theorem mplcoe3
Dummy variables 𝑛 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mplcoe3.n . 2 (𝜑𝑁 ∈ ℕ0)
2 ifeq1 4463 . . . . . . . . . . 11 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 0, 0))
3 ifid 4499 . . . . . . . . . . 11 if(𝑘 = 𝑋, 0, 0) = 0
42, 3eqtrdi 2794 . . . . . . . . . 10 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = 0)
54mpteq2dv 5176 . . . . . . . . 9 (𝑥 = 0 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ 0))
6 fconstmpt 5649 . . . . . . . . 9 (𝐼 × {0}) = (𝑘𝐼 ↦ 0)
75, 6eqtr4di 2796 . . . . . . . 8 (𝑥 = 0 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝐼 × {0}))
87eqeq2d 2749 . . . . . . 7 (𝑥 = 0 → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝐼 × {0})))
98ifbid 4482 . . . . . 6 (𝑥 = 0 → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝐼 × {0}), 1 , 0 ))
109mpteq2dv 5176 . . . . 5 (𝑥 = 0 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
11 oveq1 7282 . . . . 5 (𝑥 = 0 → (𝑥 (𝑉𝑋)) = (0 (𝑉𝑋)))
1210, 11eqeq12d 2754 . . . 4 (𝑥 = 0 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 (𝑉𝑋))))
1312imbi2d 341 . . 3 (𝑥 = 0 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 (𝑉𝑋)))))
14 ifeq1 4463 . . . . . . . . 9 (𝑥 = 𝑛 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑛, 0))
1514mpteq2dv 5176 . . . . . . . 8 (𝑥 = 𝑛 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
1615eqeq2d 2749 . . . . . . 7 (𝑥 = 𝑛 → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0))))
1716ifbid 4482 . . . . . 6 (𝑥 = 𝑛 → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))
1817mpteq2dv 5176 . . . . 5 (𝑥 = 𝑛 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )))
19 oveq1 7282 . . . . 5 (𝑥 = 𝑛 → (𝑥 (𝑉𝑋)) = (𝑛 (𝑉𝑋)))
2018, 19eqeq12d 2754 . . . 4 (𝑥 = 𝑛 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋))))
2120imbi2d 341 . . 3 (𝑥 = 𝑛 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)))))
22 ifeq1 4463 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
2322mpteq2dv 5176 . . . . . . . 8 (𝑥 = (𝑛 + 1) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
2423eqeq2d 2749 . . . . . . 7 (𝑥 = (𝑛 + 1) → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
2524ifbid 4482 . . . . . 6 (𝑥 = (𝑛 + 1) → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
2625mpteq2dv 5176 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
27 oveq1 7282 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑥 (𝑉𝑋)) = ((𝑛 + 1) (𝑉𝑋)))
2826, 27eqeq12d 2754 . . . 4 (𝑥 = (𝑛 + 1) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋))))
2928imbi2d 341 . . 3 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋)))))
30 ifeq1 4463 . . . . . . . . 9 (𝑥 = 𝑁 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑁, 0))
3130mpteq2dv 5176 . . . . . . . 8 (𝑥 = 𝑁 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)))
3231eqeq2d 2749 . . . . . . 7 (𝑥 = 𝑁 → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0))))
3332ifbid 4482 . . . . . 6 (𝑥 = 𝑁 → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 ))
3433mpteq2dv 5176 . . . . 5 (𝑥 = 𝑁 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )))
35 oveq1 7282 . . . . 5 (𝑥 = 𝑁 → (𝑥 (𝑉𝑋)) = (𝑁 (𝑉𝑋)))
3634, 35eqeq12d 2754 . . . 4 (𝑥 = 𝑁 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋))))
3736imbi2d 341 . . 3 (𝑥 = 𝑁 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋)))))
38 mplcoe1.p . . . . . 6 𝑃 = (𝐼 mPoly 𝑅)
39 mplcoe2.v . . . . . 6 𝑉 = (𝐼 mVar 𝑅)
40 eqid 2738 . . . . . 6 (Base‘𝑃) = (Base‘𝑃)
41 mplcoe1.i . . . . . 6 (𝜑𝐼𝑊)
42 mplcoe3.r . . . . . 6 (𝜑𝑅 ∈ Ring)
43 mplcoe3.x . . . . . 6 (𝜑𝑋𝐼)
4438, 39, 40, 41, 42, 43mvrcl 21221 . . . . 5 (𝜑 → (𝑉𝑋) ∈ (Base‘𝑃))
45 mplcoe2.g . . . . . . 7 𝐺 = (mulGrp‘𝑃)
4645, 40mgpbas 19726 . . . . . 6 (Base‘𝑃) = (Base‘𝐺)
47 eqid 2738 . . . . . . 7 (1r𝑃) = (1r𝑃)
4845, 47ringidval 19739 . . . . . 6 (1r𝑃) = (0g𝐺)
49 mplcoe2.m . . . . . 6 = (.g𝐺)
5046, 48, 49mulg0 18707 . . . . 5 ((𝑉𝑋) ∈ (Base‘𝑃) → (0 (𝑉𝑋)) = (1r𝑃))
5144, 50syl 17 . . . 4 (𝜑 → (0 (𝑉𝑋)) = (1r𝑃))
52 mplcoe1.d . . . . 5 𝐷 = {𝑓 ∈ (ℕ0m 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
53 mplcoe1.z . . . . 5 0 = (0g𝑅)
54 mplcoe1.o . . . . 5 1 = (1r𝑅)
5538, 52, 53, 54, 47, 41, 42mpl1 21216 . . . 4 (𝜑 → (1r𝑃) = (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
5651, 55eqtr2d 2779 . . 3 (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 (𝑉𝑋)))
57 oveq1 7282 . . . . . 6 ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋)))
5841adantr 481 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → 𝐼𝑊)
5942adantr 481 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → 𝑅 ∈ Ring)
6052snifpsrbag 21125 . . . . . . . . . 10 ((𝐼𝑊𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
6141, 60sylan 580 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
62 eqid 2738 . . . . . . . . 9 (.r𝑃) = (.r𝑃)
63 1nn0 12249 . . . . . . . . . . 11 1 ∈ ℕ0
6463a1i 11 . . . . . . . . . 10 (𝑛 ∈ ℕ0 → 1 ∈ ℕ0)
6552snifpsrbag 21125 . . . . . . . . . 10 ((𝐼𝑊 ∧ 1 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) ∈ 𝐷)
6641, 64, 65syl2an 596 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) ∈ 𝐷)
6738, 40, 53, 54, 52, 58, 59, 61, 62, 66mplmonmul 21237 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 ))) = (𝑦𝐷 ↦ if(𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )))
6843adantr 481 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → 𝑋𝐼)
6939, 52, 53, 54, 58, 59, 68mvrval 21190 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → (𝑉𝑋) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )))
7069eqcomd 2744 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )) = (𝑉𝑋))
7170oveq2d 7291 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 ))) = ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)))
72 simplr 766 . . . . . . . . . . . . . 14 (((𝜑𝑛 ∈ ℕ0) ∧ 𝑘𝐼) → 𝑛 ∈ ℕ0)
73 0nn0 12248 . . . . . . . . . . . . . 14 0 ∈ ℕ0
74 ifcl 4504 . . . . . . . . . . . . . 14 ((𝑛 ∈ ℕ0 ∧ 0 ∈ ℕ0) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7572, 73, 74sylancl 586 . . . . . . . . . . . . 13 (((𝜑𝑛 ∈ ℕ0) ∧ 𝑘𝐼) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7663, 73ifcli 4506 . . . . . . . . . . . . . 14 if(𝑘 = 𝑋, 1, 0) ∈ ℕ0
7776a1i 11 . . . . . . . . . . . . 13 (((𝜑𝑛 ∈ ℕ0) ∧ 𝑘𝐼) → if(𝑘 = 𝑋, 1, 0) ∈ ℕ0)
78 eqidd 2739 . . . . . . . . . . . . 13 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
79 eqidd 2739 . . . . . . . . . . . . 13 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)))
8058, 75, 77, 78, 79offval2 7553 . . . . . . . . . . . 12 ((𝜑𝑛 ∈ ℕ0) → ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))))
81 iftrue 4465 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 𝑛)
82 iftrue 4465 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 1)
8381, 82oveq12d 7293 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (𝑛 + 1))
84 iftrue 4465 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = (𝑛 + 1))
8583, 84eqtr4d 2781 . . . . . . . . . . . . . 14 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
86 00id 11150 . . . . . . . . . . . . . . 15 (0 + 0) = 0
87 iffalse 4468 . . . . . . . . . . . . . . . 16 𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 0)
88 iffalse 4468 . . . . . . . . . . . . . . . 16 𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 0)
8987, 88oveq12d 7293 . . . . . . . . . . . . . . 15 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (0 + 0))
90 iffalse 4468 . . . . . . . . . . . . . . 15 𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = 0)
9186, 89, 903eqtr4a 2804 . . . . . . . . . . . . . 14 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
9285, 91pm2.61i 182 . . . . . . . . . . . . 13 (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0)
9392mpteq2i 5179 . . . . . . . . . . . 12 (𝑘𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))
9480, 93eqtrdi 2794 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
9594eqeq2d 2749 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → (𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
9695ifbid 4482 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → if(𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
9796mpteq2dv 5176 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → (𝑦𝐷 ↦ if(𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
9867, 71, 973eqtr3rd 2787 . . . . . . 7 ((𝜑𝑛 ∈ ℕ0) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)))
9938mplring 21224 . . . . . . . . . . 11 ((𝐼𝑊𝑅 ∈ Ring) → 𝑃 ∈ Ring)
10041, 42, 99syl2anc 584 . . . . . . . . . 10 (𝜑𝑃 ∈ Ring)
10145ringmgp 19789 . . . . . . . . . 10 (𝑃 ∈ Ring → 𝐺 ∈ Mnd)
102100, 101syl 17 . . . . . . . . 9 (𝜑𝐺 ∈ Mnd)
103102adantr 481 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → 𝐺 ∈ Mnd)
104 simpr 485 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → 𝑛 ∈ ℕ0)
10544adantr 481 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → (𝑉𝑋) ∈ (Base‘𝑃))
10645, 62mgpplusg 19724 . . . . . . . . 9 (.r𝑃) = (+g𝐺)
10746, 49, 106mulgnn0p1 18715 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ 𝑛 ∈ ℕ0 ∧ (𝑉𝑋) ∈ (Base‘𝑃)) → ((𝑛 + 1) (𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋)))
108103, 104, 105, 107syl3anc 1370 . . . . . . 7 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) (𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋)))
10998, 108eqeq12d 2754 . . . . . 6 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋)) ↔ ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋))))
11057, 109syl5ibr 245 . . . . 5 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋))))
111110expcom 414 . . . 4 (𝑛 ∈ ℕ0 → (𝜑 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋)))))
112111a2d 29 . . 3 (𝑛 ∈ ℕ0 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋))) → (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋)))))
11313, 21, 29, 37, 56, 112nn0ind 12415 . 2 (𝑁 ∈ ℕ0 → (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋))))
1141, 113mpcom 38 1 (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  {crab 3068  ifcif 4459  {csn 4561  cmpt 5157   × cxp 5587  ccnv 5588  cima 5592  cfv 6433  (class class class)co 7275  f cof 7531  m cmap 8615  Fincfn 8733  0cc0 10871  1c1 10872   + caddc 10874  cn 11973  0cn0 12233  Basecbs 16912  .rcmulr 16963  0gc0g 17150  Mndcmnd 18385  .gcmg 18700  mulGrpcmgp 19720  1rcur 19737  Ringcrg 19783   mVar cmvr 21108   mPoly cmpl 21109
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-iin 4927  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-se 5545  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-isom 6442  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-of 7533  df-ofr 7534  df-om 7713  df-1st 7831  df-2nd 7832  df-supp 7978  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-er 8498  df-map 8617  df-pm 8618  df-ixp 8686  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-fsupp 9129  df-oi 9269  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-3 12037  df-4 12038  df-5 12039  df-6 12040  df-7 12041  df-8 12042  df-9 12043  df-n0 12234  df-z 12320  df-uz 12583  df-fz 13240  df-fzo 13383  df-seq 13722  df-hash 14045  df-struct 16848  df-sets 16865  df-slot 16883  df-ndx 16895  df-base 16913  df-ress 16942  df-plusg 16975  df-mulr 16976  df-sca 16978  df-vsca 16979  df-tset 16981  df-0g 17152  df-gsum 17153  df-mre 17295  df-mrc 17296  df-acs 17298  df-mgm 18326  df-sgrp 18375  df-mnd 18386  df-mhm 18430  df-submnd 18431  df-grp 18580  df-minusg 18581  df-mulg 18701  df-subg 18752  df-ghm 18832  df-cntz 18923  df-cmn 19388  df-abl 19389  df-mgp 19721  df-ur 19738  df-ring 19785  df-subrg 20022  df-psr 21112  df-mvr 21113  df-mpl 21114
This theorem is referenced by:  mplcoe5  21241  coe1tm  21444
  Copyright terms: Public domain W3C validator