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

Theorem mplcoe3 22309
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 𝐷 = {𝑓 ∈ (ℕ0 ↑m 𝐼) ∣ (◡𝑓 “ ℕ) ∈ 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 4485 . . . . . . . . . . 11 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 0, 0))
3 ifid 4522 . . . . . . . . . . 11 if(𝑘 = 𝑋, 0, 0) = 0
42, 3eqtrdi 2811 . . . . . . . . . 10 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = 0)
54mpteq2dv 5198 . . . . . . . . 9 (𝑥 = 0 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ 0))
6 fconstmpt 5709 . . . . . . . . 9 (𝐼 × {0}) = (𝑘 ∈ 𝐼 ↦ 0)
75, 6eqtr4di 2813 . . . . . . . 8 (𝑥 = 0 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝐼 × {0}))
87eqeq2d 2771 . . . . . . 7 (𝑥 = 0 → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝐼 × {0})))
98ifbid 4505 . . . . . 6 (𝑥 = 0 → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝐼 × {0}), 1 , 0 ))
109mpteq2dv 5198 . . . . 5 (𝑥 = 0 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
11 oveq1 7415 . . . . 5 (𝑥 = 0 → (𝑥 ↑ (𝑉‘𝑋)) = (0 ↑ (𝑉‘𝑋)))
1210, 11eqeq12d 2776 . . . 4 (𝑥 = 0 → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋)) ↔ (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 ↑ (𝑉‘𝑋))))
1312imbi2d 343 . . 3 (𝑥 = 0 → ((𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋))) ↔ (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 ↑ (𝑉‘𝑋)))))
14 ifeq1 4485 . . . . . . . . 9 (𝑥 = 𝑛 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑛, 0))
1514mpteq2dv 5198 . . . . . . . 8 (𝑥 = 𝑛 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
1615eqeq2d 2771 . . . . . . 7 (𝑥 = 𝑛 → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0))))
1716ifbid 4505 . . . . . 6 (𝑥 = 𝑛 → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))
1817mpteq2dv 5198 . . . . 5 (𝑥 = 𝑛 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )))
19 oveq1 7415 . . . . 5 (𝑥 = 𝑛 → (𝑥 ↑ (𝑉‘𝑋)) = (𝑛 ↑ (𝑉‘𝑋)))
2018, 19eqeq12d 2776 . . . 4 (𝑥 = 𝑛 → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋)) ↔ (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋))))
2120imbi2d 343 . . 3 (𝑥 = 𝑛 → ((𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋))) ↔ (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋)))))
22 ifeq1 4485 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
2322mpteq2dv 5198 . . . . . . . 8 (𝑥 = (𝑛 + 1) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
2423eqeq2d 2771 . . . . . . 7 (𝑥 = (𝑛 + 1) → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
2524ifbid 4505 . . . . . 6 (𝑥 = (𝑛 + 1) → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
2625mpteq2dv 5198 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
27 oveq1 7415 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑥 ↑ (𝑉‘𝑋)) = ((𝑛 + 1) ↑ (𝑉‘𝑋)))
2826, 27eqeq12d 2776 . . . 4 (𝑥 = (𝑛 + 1) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋)) ↔ (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) ↑ (𝑉‘𝑋))))
2928imbi2d 343 . . 3 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋))) ↔ (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) ↑ (𝑉‘𝑋)))))
30 ifeq1 4485 . . . . . . . . 9 (𝑥 = 𝑁 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑁, 0))
3130mpteq2dv 5198 . . . . . . . 8 (𝑥 = 𝑁 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)))
3231eqeq2d 2771 . . . . . . 7 (𝑥 = 𝑁 → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0))))
3332ifbid 4505 . . . . . 6 (𝑥 = 𝑁 → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 ))
3433mpteq2dv 5198 . . . . 5 (𝑥 = 𝑁 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )))
35 oveq1 7415 . . . . 5 (𝑥 = 𝑁 → (𝑥 ↑ (𝑉‘𝑋)) = (𝑁 ↑ (𝑉‘𝑋)))
3634, 35eqeq12d 2776 . . . 4 (𝑥 = 𝑁 → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋)) ↔ (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 ↑ (𝑉‘𝑋))))
3736imbi2d 343 . . 3 (𝑥 = 𝑁 → ((𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑥 ↑ (𝑉‘𝑋))) ↔ (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 ↑ (𝑉‘𝑋)))))
38 mplcoe1.p . . . . . 6 𝑃 = (𝐼 mPoly 𝑅)
39 mplcoe2.v . . . . . 6 𝑉 = (𝐼 mVar 𝑅)
40 eqid 2760 . . . . . 6 (Base‘𝑃) = (Base‘𝑃)
41 mplcoe1.i . . . . . 6 (𝜑 → 𝐼 ∈ 𝑊)
42 mplcoe3.r . . . . . 6 (𝜑 → 𝑅 ∈ Ring)
43 mplcoe3.x . . . . . 6 (𝜑 → 𝑋 ∈ 𝐼)
4438, 39, 40, 41, 42, 43mvrcl 22261 . . . . 5 (𝜑 → (𝑉‘𝑋) ∈ (Base‘𝑃))
45 mplcoe2.g . . . . . . 7 𝐺 = (mulGrp‘𝑃)
4645, 40mgpbas 20327 . . . . . 6 (Base‘𝑃) = (Base‘𝐺)
47 eqid 2760 . . . . . . 7 (1r‘𝑃) = (1r‘𝑃)
4845, 47ringidval 20371 . . . . . 6 (1r‘𝑃) = (0g‘𝐺)
49 mplcoe2.m . . . . . 6 ↑ = (.g‘𝐺)
5046, 48, 49mulg0 19246 . . . . 5 ((𝑉‘𝑋) ∈ (Base‘𝑃) → (0 ↑ (𝑉‘𝑋)) = (1r‘𝑃))
5144, 50syl 18 . . . 4 (𝜑 → (0 ↑ (𝑉‘𝑋)) = (1r‘𝑃))
52 mplcoe1.d . . . . 5 𝐷 = {𝑓 ∈ (ℕ0 ↑m 𝐼) ∣ (◡𝑓 “ ℕ) ∈ Fin}
53 mplcoe1.z . . . . 5 0 = (0g‘𝑅)
54 mplcoe1.o . . . . 5 1 = (1r‘𝑅)
5538, 52, 53, 54, 47, 41, 42mpl1 22281 . . . 4 (𝜑 → (1r‘𝑃) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
5651, 55eqtr2d 2796 . . 3 (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 ↑ (𝑉‘𝑋)))
57 oveq1 7415 . . . . . 6 ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋)) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋)))
5841adantr 486 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝐼 ∈ 𝑊)
5942adantr 486 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝑅 ∈ Ring)
6052snifpsrbag 22190 . . . . . . . . . 10 ((𝐼 ∈ 𝑊 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
6141, 60sylan 592 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
62 eqid 2760 . . . . . . . . 9 (.r‘𝑃) = (.r‘𝑃)
63 1nn0 12592 . . . . . . . . . . 11 1 ∈ ℕ0
6463a1i 11 . . . . . . . . . 10 (𝑛 ∈ ℕ0 → 1 ∈ ℕ0)
6552snifpsrbag 22190 . . . . . . . . . 10 ((𝐼 ∈ 𝑊 ∧ 1 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) ∈ 𝐷)
6641, 64, 65syl2an 608 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) ∈ 𝐷)
6738, 40, 53, 54, 52, 58, 59, 61, 62, 66mplmonmul 22307 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 ))) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )))
6843adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝑋 ∈ 𝐼)
6939, 52, 53, 54, 58, 59, 68mvrval 22251 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑉‘𝑋) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )))
7069eqcomd 2766 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )) = (𝑉‘𝑋))
7170oveq2d 7424 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 ))) = ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑉‘𝑋)))
72 simplr 781 . . . . . . . . . . . . . 14 (((𝜑 ∧ 𝑛 ∈ ℕ0) ∧ 𝑘 ∈ 𝐼) → 𝑛 ∈ ℕ0)
73 0nn0 12591 . . . . . . . . . . . . . 14 0 ∈ ℕ0
74 ifcl 4527 . . . . . . . . . . . . . 14 ((𝑛 ∈ ℕ0 ∧ 0 ∈ ℕ0) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7572, 73, 74sylancl 598 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝑛 ∈ ℕ0) ∧ 𝑘 ∈ 𝐼) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7663, 73ifcli 4529 . . . . . . . . . . . . . 14 if(𝑘 = 𝑋, 1, 0) ∈ ℕ0
7776a1i 11 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝑛 ∈ ℕ0) ∧ 𝑘 ∈ 𝐼) → if(𝑘 = 𝑋, 1, 0) ∈ ℕ0)
78 eqidd 2761 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
79 eqidd 2761 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)))
8058, 75, 77, 78, 79offval2 7696 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘 ∈ 𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))))
81 iftrue 4487 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 𝑛)
82 iftrue 4487 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 1)
8381, 82oveq12d 7426 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (𝑛 + 1))
84 iftrue 4487 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = (𝑛 + 1))
8583, 84eqtr4d 2798 . . . . . . . . . . . . . 14 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
86 00id 11457 . . . . . . . . . . . . . . 15 (0 + 0) = 0
87 iffalse 4490 . . . . . . . . . . . . . . . 16 (¬ 𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 0)
88 iffalse 4490 . . . . . . . . . . . . . . . 16 (¬ 𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 0)
8987, 88oveq12d 7426 . . . . . . . . . . . . . . 15 (¬ 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (0 + 0))
90 iffalse 4490 . . . . . . . . . . . . . . 15 (¬ 𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = 0)
9186, 89, 903eqtr4a 2821 . . . . . . . . . . . . . 14 (¬ 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
9285, 91pm2.61i 184 . . . . . . . . . . . . 13 (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0)
9392mpteq2i 5200 . . . . . . . . . . . 12 (𝑘 ∈ 𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))
9480, 93eqtrdi 2811 . . . . . . . . . . 11 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
9594eqeq2d 2771 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
9695ifbid 4505 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → if(𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
9796mpteq2dv 5198 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
9867, 71, 973eqtr3rd 2804 . . . . . . 7 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑉‘𝑋)))
9938, 41, 42mplringd 22292 . . . . . . . . . 10 (𝜑 → 𝑃 ∈ Ring)
10045ringmgp 20427 . . . . . . . . . 10 (𝑃 ∈ Ring → 𝐺 ∈ Mnd)
10199, 100syl 18 . . . . . . . . 9 (𝜑 → 𝐺 ∈ Mnd)
102101adantr 486 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝐺 ∈ Mnd)
103 simpr 490 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝑛 ∈ ℕ0)
10444adantr 486 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑉‘𝑋) ∈ (Base‘𝑃))
10545, 62mgpplusg 20326 . . . . . . . . 9 (.r‘𝑃) = (+g‘𝐺)
10646, 49, 105mulgnn0p1 19257 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ 𝑛 ∈ ℕ0 ∧ (𝑉‘𝑋) ∈ (Base‘𝑃)) → ((𝑛 + 1) ↑ (𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋)))
107102, 103, 104, 106syl3anc 1398 . . . . . . 7 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑛 + 1) ↑ (𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋)))
10898, 107eqeq12d 2776 . . . . . 6 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) ↑ (𝑉‘𝑋)) ↔ ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋))))
10957, 108imbitrrid 249 . . . . 5 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋)) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) ↑ (𝑉‘𝑋))))
110109expcom 419 . . . 4 (𝑛 ∈ ℕ0 → (𝜑 → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋)) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) ↑ (𝑉‘𝑋)))))
111110a2d 30 . . 3 (𝑛 ∈ ℕ0 → ((𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋))) → (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑛 + 1) ↑ (𝑉‘𝑋)))))
11213, 21, 29, 37, 56, 111nn0ind 12764 . 2 (𝑁 ∈ ℕ0 → (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 ↑ (𝑉‘𝑋))))
1131, 112mpcom 39 1 (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )) = (𝑁 ↑ (𝑉‘𝑋)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  {crab 3412  ifcif 4481  {csn 4583   ↦ cmpt 5185   × cxp 5645  ◡ccnv 5646   “ cima 5650  ‘cfv 6527  (class class class)co 7408   ∘f cof 7674   ↑m cmap 8825  Fincfn 8951  0cc0 11172  1c1 11173   + caddc 11175  ℕcn 12305  ℕ0cn0 12576  Basecbs 17349  .rcmulr 17391  0gc0g 17572  Mndcmnd 18885  .gcmg 19239  mulGrpcmgp 20322  1rcur 20369  Ringcrg 20421   mVar cmvr 22175   mPoly cmpl 22176
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 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7734  ax-cnex 11228  ax-resscn 11229  ax-1cn 11230  ax-icn 11231  ax-addcl 11232  ax-addrcl 11233  ax-mulcl 11234  ax-mulrcl 11235  ax-mulcom 11236  ax-addass 11237  ax-mulass 11238  ax-distr 11239  ax-i2m1 11240  ax-1ne0 11241  ax-1rid 11242  ax-rnegex 11243  ax-rrecex 11244  ax-cnre 11245  ax-pre-lttri 11246  ax-pre-lttrn 11247  ax-pre-ltadd 11248  ax-pre-mulgt0 11249
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 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-tp 4588  df-op 4590  df-uni 4867  df-int 4907  df-iun 4952  df-iin 4953  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5542  df-eprel 5547  df-po 5555  df-so 5556  df-fr 5600  df-se 5601  df-we 5602  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6293  df-ord 6354  df-on 6355  df-lim 6356  df-suc 6357  df-iota 6483  df-fun 6529  df-fn 6530  df-f 6531  df-f1 6532  df-fo 6533  df-f1o 6534  df-fv 6535  df-isom 6536  df-riota 7365  df-ov 7411  df-oprab 7412  df-mpo 7413  df-of 7676  df-ofr 7677  df-om 7861  df-1st 7984  df-2nd 7985  df-supp 8156  df-frecs 8277  df-wrecs 8308  df-recs 8357  df-rdg 8396  df-1o 8454  df-2o 8455  df-er 8695  df-map 8827  df-pm 8828  df-ixp 8904  df-en 8952  df-dom 8953  df-sdom 8954  df-fin 8955  df-fsupp 9332  df-sup 9412  df-oi 9482  df-card 9992  df-pnf 11317  df-mnf 11318  df-xr 11319  df-ltxr 11320  df-le 11321  df-sub 11515  df-neg 11516  df-nn 12306  df-2 12375  df-3 12376  df-4 12377  df-5 12378  df-6 12379  df-7 12380  df-8 12381  df-9 12382  df-n0 12577  df-z 12664  df-dec 12785  df-uz 12936  df-fz 13610  df-fzo 13758  df-seq 14114  df-hash 14443  df-struct 17287  df-sets 17304  df-slot 17322  df-ndx 17334  df-base 17350  df-ress 17371  df-plusg 17403  df-mulr 17404  df-sca 17406  df-vsca 17407  df-ip 17408  df-tset 17409  df-ple 17410  df-ds 17412  df-hom 17414  df-cco 17415  df-0g 17574  df-gsum 17575  df-prds 17580  df-pws 17582  df-mre 17718  df-mrc 17719  df-acs 17721  df-mgm 18778  df-sgrp 18870  df-mnd 18886  df-mhm 18940  df-submnd 18941  df-grp 19109  df-minusg 19110  df-mulg 19240  df-subg 19295  df-ghm 19390  df-cntz 19493  df-cmn 19958  df-abl 19959  df-mgp 20323  df-rng 20337  df-ur 20370  df-ring 20423  df-subrng 20760  df-subrg 20784  df-psr 22179  df-mvr 22180  df-mpl 22181
This theorem is used by:  mplcoe5  22311  coe1tm  22554
  Copyright terms: Public domain W3C validator