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

Theorem mplcoe3 20709
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 4432 . . . . . . . . . . 11 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 0, 0))
3 ifid 4467 . . . . . . . . . . 11 if(𝑘 = 𝑋, 0, 0) = 0
42, 3eqtrdi 2852 . . . . . . . . . 10 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = 0)
54mpteq2dv 5129 . . . . . . . . 9 (𝑥 = 0 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ 0))
6 fconstmpt 5582 . . . . . . . . 9 (𝐼 × {0}) = (𝑘𝐼 ↦ 0)
75, 6eqtr4di 2854 . . . . . . . 8 (𝑥 = 0 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝐼 × {0}))
87eqeq2d 2812 . . . . . . 7 (𝑥 = 0 → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝐼 × {0})))
98ifbid 4450 . . . . . 6 (𝑥 = 0 → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝐼 × {0}), 1 , 0 ))
109mpteq2dv 5129 . . . . 5 (𝑥 = 0 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
11 oveq1 7146 . . . . 5 (𝑥 = 0 → (𝑥 (𝑉𝑋)) = (0 (𝑉𝑋)))
1210, 11eqeq12d 2817 . . . 4 (𝑥 = 0 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 (𝑉𝑋))))
1312imbi2d 344 . . 3 (𝑥 = 0 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 (𝑉𝑋)))))
14 ifeq1 4432 . . . . . . . . 9 (𝑥 = 𝑛 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑛, 0))
1514mpteq2dv 5129 . . . . . . . 8 (𝑥 = 𝑛 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
1615eqeq2d 2812 . . . . . . 7 (𝑥 = 𝑛 → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0))))
1716ifbid 4450 . . . . . 6 (𝑥 = 𝑛 → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))
1817mpteq2dv 5129 . . . . 5 (𝑥 = 𝑛 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )))
19 oveq1 7146 . . . . 5 (𝑥 = 𝑛 → (𝑥 (𝑉𝑋)) = (𝑛 (𝑉𝑋)))
2018, 19eqeq12d 2817 . . . 4 (𝑥 = 𝑛 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋))))
2120imbi2d 344 . . 3 (𝑥 = 𝑛 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)))))
22 ifeq1 4432 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
2322mpteq2dv 5129 . . . . . . . 8 (𝑥 = (𝑛 + 1) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
2423eqeq2d 2812 . . . . . . 7 (𝑥 = (𝑛 + 1) → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
2524ifbid 4450 . . . . . 6 (𝑥 = (𝑛 + 1) → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
2625mpteq2dv 5129 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
27 oveq1 7146 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑥 (𝑉𝑋)) = ((𝑛 + 1) (𝑉𝑋)))
2826, 27eqeq12d 2817 . . . 4 (𝑥 = (𝑛 + 1) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋))))
2928imbi2d 344 . . 3 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋)))))
30 ifeq1 4432 . . . . . . . . 9 (𝑥 = 𝑁 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑁, 0))
3130mpteq2dv 5129 . . . . . . . 8 (𝑥 = 𝑁 → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)))
3231eqeq2d 2812 . . . . . . 7 (𝑥 = 𝑁 → (𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0))))
3332ifbid 4450 . . . . . 6 (𝑥 = 𝑁 → if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 ))
3433mpteq2dv 5129 . . . . 5 (𝑥 = 𝑁 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )))
35 oveq1 7146 . . . . 5 (𝑥 = 𝑁 → (𝑥 (𝑉𝑋)) = (𝑁 (𝑉𝑋)))
3634, 35eqeq12d 2817 . . . 4 (𝑥 = 𝑁 → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋)) ↔ (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋))))
3736imbi2d 344 . . 3 (𝑥 = 𝑁 → ((𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 (𝑉𝑋))) ↔ (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 (𝑉𝑋)))))
38 mplcoe1.p . . . . . 6 𝑃 = (𝐼 mPoly 𝑅)
39 mplcoe2.v . . . . . 6 𝑉 = (𝐼 mVar 𝑅)
40 eqid 2801 . . . . . 6 (Base‘𝑃) = (Base‘𝑃)
41 mplcoe1.i . . . . . 6 (𝜑𝐼𝑊)
42 mplcoe3.r . . . . . 6 (𝜑𝑅 ∈ Ring)
43 mplcoe3.x . . . . . 6 (𝜑𝑋𝐼)
4438, 39, 40, 41, 42, 43mvrcl 20691 . . . . 5 (𝜑 → (𝑉𝑋) ∈ (Base‘𝑃))
45 mplcoe2.g . . . . . . 7 𝐺 = (mulGrp‘𝑃)
4645, 40mgpbas 19241 . . . . . 6 (Base‘𝑃) = (Base‘𝐺)
47 eqid 2801 . . . . . . 7 (1r𝑃) = (1r𝑃)
4845, 47ringidval 19249 . . . . . 6 (1r𝑃) = (0g𝐺)
49 mplcoe2.m . . . . . 6 = (.g𝐺)
5046, 48, 49mulg0 18226 . . . . 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 20686 . . . 4 (𝜑 → (1r𝑃) = (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
5651, 55eqtr2d 2837 . . 3 (𝜑 → (𝑦𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 (𝑉𝑋)))
57 oveq1 7146 . . . . . 6 ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋)))
5841adantr 484 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → 𝐼𝑊)
5942adantr 484 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → 𝑅 ∈ Ring)
6052snifpsrbag 20607 . . . . . . . . . 10 ((𝐼𝑊𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
6141, 60sylan 583 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
62 eqid 2801 . . . . . . . . 9 (.r𝑃) = (.r𝑃)
63 1nn0 11905 . . . . . . . . . . 11 1 ∈ ℕ0
6463a1i 11 . . . . . . . . . 10 (𝑛 ∈ ℕ0 → 1 ∈ ℕ0)
6552snifpsrbag 20607 . . . . . . . . . 10 ((𝐼𝑊 ∧ 1 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) ∈ 𝐷)
6641, 64, 65syl2an 598 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) ∈ 𝐷)
6738, 40, 53, 54, 52, 58, 59, 61, 62, 66mplmonmul 20707 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 ))) = (𝑦𝐷 ↦ if(𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )))
6843adantr 484 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → 𝑋𝐼)
6939, 52, 53, 54, 58, 59, 68mvrval 20662 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → (𝑉𝑋) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )))
7069eqcomd 2807 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )) = (𝑉𝑋))
7170oveq2d 7155 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 ))) = ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)))
72 simplr 768 . . . . . . . . . . . . . 14 (((𝜑𝑛 ∈ ℕ0) ∧ 𝑘𝐼) → 𝑛 ∈ ℕ0)
73 0nn0 11904 . . . . . . . . . . . . . 14 0 ∈ ℕ0
74 ifcl 4472 . . . . . . . . . . . . . 14 ((𝑛 ∈ ℕ0 ∧ 0 ∈ ℕ0) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7572, 73, 74sylancl 589 . . . . . . . . . . . . 13 (((𝜑𝑛 ∈ ℕ0) ∧ 𝑘𝐼) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7663, 73ifcli 4474 . . . . . . . . . . . . . 14 if(𝑘 = 𝑋, 1, 0) ∈ ℕ0
7776a1i 11 . . . . . . . . . . . . 13 (((𝜑𝑛 ∈ ℕ0) ∧ 𝑘𝐼) → if(𝑘 = 𝑋, 1, 0) ∈ ℕ0)
78 eqidd 2802 . . . . . . . . . . . . 13 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
79 eqidd 2802 . . . . . . . . . . . . 13 ((𝜑𝑛 ∈ ℕ0) → (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0)))
8058, 75, 77, 78, 79offval2 7410 . . . . . . . . . . . 12 ((𝜑𝑛 ∈ ℕ0) → ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))))
81 iftrue 4434 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 𝑛)
82 iftrue 4434 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 1)
8381, 82oveq12d 7157 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (𝑛 + 1))
84 iftrue 4434 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = (𝑛 + 1))
8583, 84eqtr4d 2839 . . . . . . . . . . . . . 14 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
86 00id 10808 . . . . . . . . . . . . . . 15 (0 + 0) = 0
87 iffalse 4437 . . . . . . . . . . . . . . . 16 𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 0)
88 iffalse 4437 . . . . . . . . . . . . . . . 16 𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 0)
8987, 88oveq12d 7157 . . . . . . . . . . . . . . 15 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (0 + 0))
90 iffalse 4437 . . . . . . . . . . . . . . 15 𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = 0)
9186, 89, 903eqtr4a 2862 . . . . . . . . . . . . . 14 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
9285, 91pm2.61i 185 . . . . . . . . . . . . 13 (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0)
9392mpteq2i 5125 . . . . . . . . . . . 12 (𝑘𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))
9480, 93eqtrdi 2852 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
9594eqeq2d 2812 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → (𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) ↔ 𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
9695ifbid 4450 . . . . . . . . 9 ((𝜑𝑛 ∈ ℕ0) → if(𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 ) = if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
9796mpteq2dv 5129 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → (𝑦𝐷 ↦ if(𝑦 = ((𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )) = (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
9867, 71, 973eqtr3rd 2845 . . . . . . 7 ((𝜑𝑛 ∈ ℕ0) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)))
9938mplring 20694 . . . . . . . . . . 11 ((𝐼𝑊𝑅 ∈ Ring) → 𝑃 ∈ Ring)
10041, 42, 99syl2anc 587 . . . . . . . . . 10 (𝜑𝑃 ∈ Ring)
10145ringmgp 19299 . . . . . . . . . 10 (𝑃 ∈ Ring → 𝐺 ∈ Mnd)
102100, 101syl 17 . . . . . . . . 9 (𝜑𝐺 ∈ Mnd)
103102adantr 484 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → 𝐺 ∈ Mnd)
104 simpr 488 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → 𝑛 ∈ ℕ0)
10544adantr 484 . . . . . . . 8 ((𝜑𝑛 ∈ ℕ0) → (𝑉𝑋) ∈ (Base‘𝑃))
10645, 62mgpplusg 19239 . . . . . . . . 9 (.r𝑃) = (+g𝐺)
10746, 49, 106mulgnn0p1 18234 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ 𝑛 ∈ ℕ0 ∧ (𝑉𝑋) ∈ (Base‘𝑃)) → ((𝑛 + 1) (𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋)))
108103, 104, 105, 107syl3anc 1368 . . . . . . 7 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) (𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋)))
10998, 108eqeq12d 2817 . . . . . 6 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋)) ↔ ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r𝑃)(𝑉𝑋)) = ((𝑛 (𝑉𝑋))(.r𝑃)(𝑉𝑋))))
11057, 109syl5ibr 249 . . . . 5 ((𝜑𝑛 ∈ ℕ0) → ((𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 (𝑉𝑋)) → (𝑦𝐷 ↦ if(𝑦 = (𝑘𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) (𝑉𝑋))))
111110expcom 417 . . . 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 12069 . 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 399   = wceq 1538  wcel 2112  {crab 3113  ifcif 4428  {csn 4528  cmpt 5113   × cxp 5521  ccnv 5522  cima 5526  cfv 6328  (class class class)co 7139  f cof 7391  m cmap 8393  Fincfn 8496  0cc0 10530  1c1 10531   + caddc 10533  cn 11629  0cn0 11889  Basecbs 16478  .rcmulr 16561  0gc0g 16708  Mndcmnd 17906  .gcmg 18219  mulGrpcmgp 19235  1rcur 19247  Ringcrg 19293   mVar cmvr 20593   mPoly cmpl 20594
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-rep 5157  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445  ax-cnex 10586  ax-resscn 10587  ax-1cn 10588  ax-icn 10589  ax-addcl 10590  ax-addrcl 10591  ax-mulcl 10592  ax-mulrcl 10593  ax-mulcom 10594  ax-addass 10595  ax-mulass 10596  ax-distr 10597  ax-i2m1 10598  ax-1ne0 10599  ax-1rid 10600  ax-rnegex 10601  ax-rrecex 10602  ax-cnre 10603  ax-pre-lttri 10604  ax-pre-lttrn 10605  ax-pre-ltadd 10606  ax-pre-mulgt0 10607
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-nel 3095  df-ral 3114  df-rex 3115  df-reu 3116  df-rmo 3117  df-rab 3118  df-v 3446  df-sbc 3724  df-csb 3832  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-pss 3903  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4804  df-int 4842  df-iun 4886  df-iin 4887  df-br 5034  df-opab 5096  df-mpt 5114  df-tr 5140  df-id 5428  df-eprel 5433  df-po 5442  df-so 5443  df-fr 5482  df-se 5483  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6120  df-ord 6166  df-on 6167  df-lim 6168  df-suc 6169  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-isom 6337  df-riota 7097  df-ov 7142  df-oprab 7143  df-mpo 7144  df-of 7393  df-ofr 7394  df-om 7565  df-1st 7675  df-2nd 7676  df-supp 7818  df-wrecs 7934  df-recs 7995  df-rdg 8033  df-1o 8089  df-2o 8090  df-oadd 8093  df-er 8276  df-map 8395  df-pm 8396  df-ixp 8449  df-en 8497  df-dom 8498  df-sdom 8499  df-fin 8500  df-fsupp 8822  df-oi 8962  df-card 9356  df-pnf 10670  df-mnf 10671  df-xr 10672  df-ltxr 10673  df-le 10674  df-sub 10865  df-neg 10866  df-nn 11630  df-2 11692  df-3 11693  df-4 11694  df-5 11695  df-6 11696  df-7 11697  df-8 11698  df-9 11699  df-n0 11890  df-z 11974  df-uz 12236  df-fz 12890  df-fzo 13033  df-seq 13369  df-hash 13691  df-struct 16480  df-ndx 16481  df-slot 16482  df-base 16484  df-sets 16485  df-ress 16486  df-plusg 16573  df-mulr 16574  df-sca 16576  df-vsca 16577  df-tset 16579  df-0g 16710  df-gsum 16711  df-mre 16852  df-mrc 16853  df-acs 16855  df-mgm 17847  df-sgrp 17896  df-mnd 17907  df-mhm 17951  df-submnd 17952  df-grp 18101  df-minusg 18102  df-mulg 18220  df-subg 18271  df-ghm 18351  df-cntz 18442  df-cmn 18903  df-abl 18904  df-mgp 19236  df-ur 19248  df-ring 19295  df-subrg 19529  df-psr 20597  df-mvr 20598  df-mpl 20599
This theorem is referenced by:  mplcoe5  20711  coe1tm  20905
  Copyright terms: Public domain W3C validator