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

Theorem mplcoe3 22415
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 4491 . . . . . . . . . . 11 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 0, 0))
3 ifid 4528 . . . . . . . . . . 11 if(𝑘 = 𝑋, 0, 0) = 0
42, 3eqtrdi 2820 . . . . . . . . . 10 (𝑥 = 0 → if(𝑘 = 𝑋, 𝑥, 0) = 0)
54mpteq2dv 5208 . . . . . . . . 9 (𝑥 = 0 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ 0))
6 fconstmpt 5723 . . . . . . . . 9 (𝐼 × {0}) = (𝑘 ∈ 𝐼 ↦ 0)
75, 6eqtr4di 2822 . . . . . . . 8 (𝑥 = 0 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝐼 × {0}))
87eqeq2d 2780 . . . . . . 7 (𝑥 = 0 → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝐼 × {0})))
98ifbid 4511 . . . . . 6 (𝑥 = 0 → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝐼 × {0}), 1 , 0 ))
109mpteq2dv 5208 . . . . 5 (𝑥 = 0 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
11 oveq1 7462 . . . . 5 (𝑥 = 0 → (𝑥 ↑ (𝑉‘𝑋)) = (0 ↑ (𝑉‘𝑋)))
1210, 11eqeq12d 2785 . . . 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 4491 . . . . . . . . 9 (𝑥 = 𝑛 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑛, 0))
1514mpteq2dv 5208 . . . . . . . 8 (𝑥 = 𝑛 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
1615eqeq2d 2780 . . . . . . 7 (𝑥 = 𝑛 → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0))))
1716ifbid 4511 . . . . . 6 (𝑥 = 𝑛 → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))
1817mpteq2dv 5208 . . . . 5 (𝑥 = 𝑛 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )))
19 oveq1 7462 . . . . 5 (𝑥 = 𝑛 → (𝑥 ↑ (𝑉‘𝑋)) = (𝑛 ↑ (𝑉‘𝑋)))
2018, 19eqeq12d 2785 . . . 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 4491 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
2322mpteq2dv 5208 . . . . . . . 8 (𝑥 = (𝑛 + 1) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
2423eqeq2d 2780 . . . . . . 7 (𝑥 = (𝑛 + 1) → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
2524ifbid 4511 . . . . . 6 (𝑥 = (𝑛 + 1) → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
2625mpteq2dv 5208 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
27 oveq1 7462 . . . . 5 (𝑥 = (𝑛 + 1) → (𝑥 ↑ (𝑉‘𝑋)) = ((𝑛 + 1) ↑ (𝑉‘𝑋)))
2826, 27eqeq12d 2785 . . . 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 4491 . . . . . . . . 9 (𝑥 = 𝑁 → if(𝑘 = 𝑋, 𝑥, 0) = if(𝑘 = 𝑋, 𝑁, 0))
3130mpteq2dv 5208 . . . . . . . 8 (𝑥 = 𝑁 → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)))
3231eqeq2d 2780 . . . . . . 7 (𝑥 = 𝑁 → (𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0))))
3332ifbid 4511 . . . . . 6 (𝑥 = 𝑁 → if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 ))
3433mpteq2dv 5208 . . . . 5 (𝑥 = 𝑁 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑥, 0)), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑁, 0)), 1 , 0 )))
35 oveq1 7462 . . . . 5 (𝑥 = 𝑁 → (𝑥 ↑ (𝑉‘𝑋)) = (𝑁 ↑ (𝑉‘𝑋)))
3634, 35eqeq12d 2785 . . . 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 2769 . . . . . 6 (Base‘𝑃) = (Base‘𝑃)
41 mplcoe1.i . . . . . 6 (𝜑 → 𝐼 ∈ 𝑊)
42 mplcoe3.r . . . . . 6 (𝜑 → 𝑅 ∈ Ring)
43 mplcoe3.x . . . . . 6 (𝜑 → 𝑋 ∈ 𝐼)
4438, 39, 40, 41, 42, 43mvrcl 22367 . . . . 5 (𝜑 → (𝑉‘𝑋) ∈ (Base‘𝑃))
45 mplcoe2.g . . . . . . 7 𝐺 = (mulGrp‘𝑃)
4645, 40mgpbas 20427 . . . . . 6 (Base‘𝑃) = (Base‘𝐺)
47 eqid 2769 . . . . . . 7 (1r‘𝑃) = (1r‘𝑃)
4845, 47ringidval 20471 . . . . . 6 (1r‘𝑃) = (0g‘𝐺)
49 mplcoe2.m . . . . . 6 ↑ = (.g‘𝐺)
5046, 48, 49mulg0 19345 . . . . 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 22387 . . . 4 (𝜑 → (1r‘𝑃) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )))
5651, 55eqtr2d 2805 . . 3 (𝜑 → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝐼 × {0}), 1 , 0 )) = (0 ↑ (𝑉‘𝑋)))
57 oveq1 7462 . . . . . 6 ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 )) = (𝑛 ↑ (𝑉‘𝑋)) → ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋)))
5841adantr 486 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝐼 ∈ 𝑊)
5942adantr 486 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → 𝑅 ∈ Ring)
6052snifpsrbag 22296 . . . . . . . . . 10 ((𝐼 ∈ 𝑊 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
6141, 60sylan 592 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∈ 𝐷)
62 eqid 2769 . . . . . . . . 9 (.r‘𝑃) = (.r‘𝑃)
63 1nn0 12666 . . . . . . . . . . 11 1 ∈ ℕ0
6463a1i 11 . . . . . . . . . 10 (𝑛 ∈ ℕ0 → 1 ∈ ℕ0)
6552snifpsrbag 22296 . . . . . . . . . 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 22413 . . . . . . . 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 22357 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑉‘𝑋) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )))
7069eqcomd 2775 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)), 1 , 0 )) = (𝑉‘𝑋))
7170oveq2d 7471 . . . . . . . 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 12665 . . . . . . . . . . . . . 14 0 ∈ ℕ0
74 ifcl 4533 . . . . . . . . . . . . . 14 ((𝑛 ∈ ℕ0 ∧ 0 ∈ ℕ0) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7572, 73, 74sylancl 598 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝑛 ∈ ℕ0) ∧ 𝑘 ∈ 𝐼) → if(𝑘 = 𝑋, 𝑛, 0) ∈ ℕ0)
7663, 73ifcli 4535 . . . . . . . . . . . . . 14 if(𝑘 = 𝑋, 1, 0) ∈ ℕ0
7776a1i 11 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝑛 ∈ ℕ0) ∧ 𝑘 ∈ 𝐼) → if(𝑘 = 𝑋, 1, 0) ∈ ℕ0)
78 eqidd 2770 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)))
79 eqidd 2770 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0)))
8058, 75, 77, 78, 79offval2 7749 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘 ∈ 𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))))
81 iftrue 4493 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 𝑛)
82 iftrue 4493 . . . . . . . . . . . . . . . 16 (𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 1)
8381, 82oveq12d 7473 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (𝑛 + 1))
84 iftrue 4493 . . . . . . . . . . . . . . 15 (𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = (𝑛 + 1))
8583, 84eqtr4d 2807 . . . . . . . . . . . . . 14 (𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
86 00id 11528 . . . . . . . . . . . . . . 15 (0 + 0) = 0
87 iffalse 4496 . . . . . . . . . . . . . . . 16 (¬ 𝑘 = 𝑋 → if(𝑘 = 𝑋, 𝑛, 0) = 0)
88 iffalse 4496 . . . . . . . . . . . . . . . 16 (¬ 𝑘 = 𝑋 → if(𝑘 = 𝑋, 1, 0) = 0)
8987, 88oveq12d 7473 . . . . . . . . . . . . . . 15 (¬ 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = (0 + 0))
90 iffalse 4496 . . . . . . . . . . . . . . 15 (¬ 𝑘 = 𝑋 → if(𝑘 = 𝑋, (𝑛 + 1), 0) = 0)
9186, 89, 903eqtr4a 2830 . . . . . . . . . . . . . 14 (¬ 𝑘 = 𝑋 → (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0))
9285, 91pm2.61i 184 . . . . . . . . . . . . 13 (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0)) = if(𝑘 = 𝑋, (𝑛 + 1), 0)
9392mpteq2i 5210 . . . . . . . . . . . 12 (𝑘 ∈ 𝐼 ↦ (if(𝑘 = 𝑋, 𝑛, 0) + if(𝑘 = 𝑋, 1, 0))) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))
9480, 93eqtrdi 2820 . . . . . . . . . . 11 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)))
9594eqeq2d 2780 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))) ↔ 𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0))))
9695ifbid 4511 . . . . . . . . 9 ((𝜑 ∧ 𝑛 ∈ ℕ0) → if(𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 ) = if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 ))
9796mpteq2dv 5208 . . . . . . . 8 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = ((𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)) ∘f + (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 1, 0))), 1 , 0 )) = (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )))
9867, 71, 973eqtr3rd 2813 . . . . . . 7 ((𝜑 ∧ 𝑛 ∈ ℕ0) → (𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, (𝑛 + 1), 0)), 1 , 0 )) = ((𝑦 ∈ 𝐷 ↦ if(𝑦 = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑋, 𝑛, 0)), 1 , 0 ))(.r‘𝑃)(𝑉‘𝑋)))
9938, 41, 42mplringd 22398 . . . . . . . . . 10 (𝜑 → 𝑃 ∈ Ring)
10045ringmgp 20527 . . . . . . . . . 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 20426 . . . . . . . . 9 (.r‘𝑃) = (+g‘𝐺)
10646, 49, 105mulgnn0p1 19356 . . . . . . . 8 ((𝐺 ∈ Mnd ∧ 𝑛 ∈ ℕ0 ∧ (𝑉‘𝑋) ∈ (Base‘𝑃)) → ((𝑛 + 1) ↑ (𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋)))
107102, 103, 104, 106syl3anc 1401 . . . . . . 7 ((𝜑 ∧ 𝑛 ∈ ℕ0) → ((𝑛 + 1) ↑ (𝑉‘𝑋)) = ((𝑛 ↑ (𝑉‘𝑋))(.r‘𝑃)(𝑉‘𝑋)))
10898, 107eqeq12d 2785 . . . . . 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 12838 . 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 1572   ∈ wcel 2151  {crab 3418  ifcif 4487  {csn 4590   ↦ cmpt 5195   × cxp 5659  ◡ccnv 5660   “ cima 5664  ‘cfv 6570  (class class class)co 7455   ∘f cof 7727   ↑m cmap 8889  Fincfn 9015  0cc0 11243  1c1 11244   + caddc 11246  ℕcn 12379  ℕ0cn0 12650  Basecbs 17438  .rcmulr 17480  0gc0g 17671  Mndcmnd 18984  .gcmg 19338  mulGrpcmgp 20422  1rcur 20469  Ringcrg 20521   mVar cmvr 22279   mPoly cmpl 22280
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7787  ax-cnex 11299  ax-resscn 11300  ax-1cn 11301  ax-icn 11302  ax-addcl 11303  ax-addrcl 11304  ax-mulcl 11305  ax-mulrcl 11306  ax-mulcom 11307  ax-addass 11308  ax-mulass 11309  ax-distr 11310  ax-i2m1 11311  ax-1ne0 11312  ax-1rid 11313  ax-rnegex 11314  ax-rrecex 11315  ax-cnre 11316  ax-pre-lttri 11317  ax-pre-lttrn 11318  ax-pre-ltadd 11319  ax-pre-mulgt0 11320
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-rmo 3371  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-tp 4595  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-iin 4962  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-se 5615  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6334  df-ord 6395  df-on 6396  df-lim 6397  df-suc 6398  df-iota 6524  df-fun 6572  df-fn 6573  df-f 6574  df-f1 6575  df-fo 6576  df-f1o 6577  df-fv 6578  df-isom 6579  df-riota 7412  df-ov 7458  df-oprab 7459  df-mpo 7460  df-of 7729  df-ofr 7730  df-om 7916  df-1st 8039  df-2nd 8040  df-supp 8219  df-frecs 8341  df-wrecs 8372  df-recs 8421  df-rdg 8460  df-1o 8518  df-2o 8519  df-er 8759  df-map 8891  df-pm 8892  df-ixp 8968  df-en 9016  df-dom 9017  df-sdom 9018  df-fin 9019  df-fsupp 9396  df-sup 9475  df-oi 9545  df-card 10061  df-pnf 11388  df-mnf 11389  df-xr 11390  df-ltxr 11391  df-le 11392  df-sub 11586  df-neg 11587  df-nn 12380  df-2 12449  df-3 12450  df-4 12451  df-5 12452  df-6 12453  df-7 12454  df-8 12455  df-9 12456  df-n0 12651  df-z 12738  df-dec 12859  df-uz 13010  df-fz 13684  df-fzo 13833  df-seq 14189  df-hash 14520  df-struct 17376  df-sets 17393  df-slot 17411  df-ndx 17423  df-base 17439  df-ress 17460  df-plusg 17493  df-mulr 17494  df-sca 17496  df-vsca 17497  df-ip 17498  df-tset 17499  df-ple 17500  df-ds 17502  df-hom 17504  df-cco 17505  df-0g 17673  df-gsum 17674  df-prds 17679  df-pws 17681  df-mre 17817  df-mrc 17818  df-acs 17820  df-mgm 18877  df-sgrp 18969  df-mnd 18985  df-mhm 19039  df-submnd 19040  df-grp 19208  df-minusg 19209  df-mulg 19339  df-subg 19394  df-ghm 19489  df-cntz 19593  df-cmn 20058  df-abl 20059  df-mgp 20423  df-rng 20437  df-ur 20470  df-ring 20523  df-subrng 20860  df-subrg 20884  df-psr 22284  df-mvr 22285  df-mpl 22286
This theorem is used by:  mplcoe5  22417  coe1tm  22664
  Copyright terms: Public domain W3C validator