Metamath Proof Explorer


Theorem efsep

Description: Separate out the next term of the power series expansion of the exponential function. The last hypothesis allows the separated terms to be rearranged as desired. (Contributed by Paul Chapman, 23-Nov-2007) (Revised by Mario Carneiro, 29-Apr-2014)

Ref Expression
Hypotheses efsep.1 F = n 0 A n n !
efsep.2 N = M + 1
efsep.3 M 0
efsep.4 φ A
efsep.5 φ B
efsep.6 φ e A = B + k M F k
efsep.7 φ B + A M M ! = D
Assertion efsep φ e A = D + k N F k

Proof

Step Hyp Ref Expression
1 efsep.1 F = n 0 A n n !
2 efsep.2 N = M + 1
3 efsep.3 M 0
4 efsep.4 φ A
5 efsep.5 φ B
6 efsep.6 φ e A = B + k M F k
7 efsep.7 φ B + A M M ! = D
8 eqid M = M
9 3 nn0zi M
10 9 a1i φ M
11 eqidd φ k M F k = F k
12 eluznn0 M 0 k M k 0
13 3 12 mpan k M k 0
14 1 eftval k 0 F k = A k k !
15 14 adantl φ k 0 F k = A k k !
16 eftcl A k 0 A k k !
17 4 16 sylan φ k 0 A k k !
18 15 17 eqeltrd φ k 0 F k
19 13 18 sylan2 φ k M F k
20 1 eftlcvg A M 0 seq M + F dom
21 4 3 20 sylancl φ seq M + F dom
22 8 10 11 19 21 isum1p φ k M F k = F M + k M + 1 F k
23 1 eftval M 0 F M = A M M !
24 3 23 ax-mp F M = A M M !
25 2 eqcomi M + 1 = N
26 25 fveq2i M + 1 = N
27 26 sumeq1i k M + 1 F k = k N F k
28 24 27 oveq12i F M + k M + 1 F k = A M M ! + k N F k
29 22 28 eqtrdi φ k M F k = A M M ! + k N F k
30 29 oveq2d φ B + k M F k = B + A M M ! + k N F k
31 eftcl A M 0 A M M !
32 4 3 31 sylancl φ A M M !
33 peano2nn0 M 0 M + 1 0
34 3 33 ax-mp M + 1 0
35 2 34 eqeltri N 0
36 1 eftlcl A N 0 k N F k
37 4 35 36 sylancl φ k N F k
38 5 32 37 addassd φ B + A M M ! + k N F k = B + A M M ! + k N F k
39 30 38 eqtr4d φ B + k M F k = B + A M M ! + k N F k
40 7 oveq1d φ B + A M M ! + k N F k = D + k N F k
41 6 39 40 3eqtrd φ e A = D + k N F k