let p be Real; ( cos is_differentiable_in p & diff (cos,p) = - (sin . p) )
reconsider p = p as Element of REAL by XREAL_0:def 1;
deffunc H2( Real) -> Element of REAL = In ((- ($1 * (Im ((Sum (($1 * <i>) P_dt)) * ((cos . p) + ((sin . p) * <i>)))))),REAL);
consider Cr being Function of REAL,REAL such that
A1:
for th being Element of REAL holds Cr . th = H2(th)
from FUNCT_2:sch 4();
for hy1 being non-zero 0 -convergent Real_Sequence holds
( (hy1 ") (#) (Cr /* hy1) is convergent & lim ((hy1 ") (#) (Cr /* hy1)) = 0 )
then reconsider PR = Cr as RestFunc by FDIFF_1:def 2;
deffunc H3( Real) -> Element of REAL = In ((- ($1 * (sin . p))),REAL);
consider CL being Function of REAL,REAL such that
A21:
for th being Element of REAL holds CL . th = H3(th)
from FUNCT_2:sch 4();
ex r being Real st
for q being Real holds CL . q = r * q
then reconsider PL = CL as LinearFunc by FDIFF_1:def 3;
A23:
ex N being Neighbourhood of p st
( N c= dom cos & ( for r being Real st r in N holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p)) ) )
proof
A24:
for
r being
Real st
r in ].(p - 1),(p + 1).[ holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p))
take
].(p - 1),(p + 1).[
;
( ].(p - 1),(p + 1).[ is Neighbourhood of p & ].(p - 1),(p + 1).[ c= dom cos & ( for r being Real st r in ].(p - 1),(p + 1).[ holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p)) ) )
thus
(
].(p - 1),(p + 1).[ is
Neighbourhood of
p &
].(p - 1),(p + 1).[ c= dom cos & ( for
r being
Real st
r in ].(p - 1),(p + 1).[ holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p)) ) )
by A24, Th24, RCOMP_1:def 6;
verum
end;
then A26:
cos is_differentiable_in p
by FDIFF_1:def 4;
PL . jj =
H3(1)
by A21
.=
- (sin . p)
;
hence
( cos is_differentiable_in p & diff (cos,p) = - (sin . p) )
by A23, A26, FDIFF_1:def 5; verum