let r be Real; :: thesis: for n being non zero Element of NAT
for Z being open Subset of REAL
for f being PartFunc of REAL,(REAL n) st Z c= dom f & f is_differentiable_on Z holds
( r (#) f is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x)) ) )

let n be non zero Element of NAT ; :: thesis: for Z being open Subset of REAL
for f being PartFunc of REAL,(REAL n) st Z c= dom f & f is_differentiable_on Z holds
( r (#) f is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x)) ) )

let Z be open Subset of REAL; :: thesis: for f being PartFunc of REAL,(REAL n) st Z c= dom f & f is_differentiable_on Z holds
( r (#) f is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x)) ) )

let f be PartFunc of REAL,(REAL n); :: thesis: ( Z c= dom f & f is_differentiable_on Z implies ( r (#) f is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x)) ) ) )

assume that
A1: Z c= dom f and
A2: f is_differentiable_on Z ; :: thesis: ( r (#) f is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x)) ) )

reconsider g = f as PartFunc of REAL,(REAL-NS n) by REAL_NS1:def 4;
A3: dom f = dom (r (#) f) by VALUED_2:def 39;
reconsider r = r as Real ;
A4: r (#) f = r (#) g by NFCONT_4:6;
A5: Z c= dom (r (#) g) by A3, A1, NFCONT_4:6;
A6: Z c= dom g by A2;
now :: thesis: for x being Real st x in Z holds
g | Z is_differentiable_in x
end;
then g is_differentiable_on Z by A6, NDIFF_3:def 5;
then A7: ( r (#) g is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) g) `| Z) . x = r * (diff (g,x)) ) ) by A5, NDIFF_3:19;
A8: now :: thesis: for x being Real st x in Z holds
(r (#) f) | Z is_differentiable_in x
end;
then A9: r (#) f is_differentiable_on Z by A3, A1;
now :: thesis: for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x))
let x be Real; :: thesis: ( x in Z implies ((r (#) f) `| Z) . x = r * (diff (f,x)) )
assume A10: x in Z ; :: thesis: ((r (#) f) `| Z) . x = r * (diff (f,x))
then f is_differentiable_in x by A2, Th5;
then ( r (#) f is_differentiable_in x & diff ((r (#) f),x) = r * (diff (f,x)) ) by Th9;
hence ((r (#) f) `| Z) . x = r * (diff (f,x)) by A10, A9, Def4; :: thesis: verum
end;
hence ( r (#) f is_differentiable_on Z & ( for x being Real st x in Z holds
((r (#) f) `| Z) . x = r * (diff (f,x)) ) ) by A3, A8, A1; :: thesis: verum