let Y be RealNormSpace; :: thesis: for g being PartFunc of REAL, the carrier of Y
for a, b, M being Real st a <= b & [.a,b.] c= dom g & ( for x being Real st x in [.a,b.] holds
g is_continuous_in x ) & ( for x being Real st x in ].a,b.[ holds
g is_differentiable_in x ) & ( for x being Real st x in ].a,b.[ holds
||.(diff (g,x)).|| <= M ) holds
||.((g /. b) - (g /. a)).|| <= M * |.(b - a).|

let g be PartFunc of REAL, the carrier of Y; :: thesis: for a, b, M being Real st a <= b & [.a,b.] c= dom g & ( for x being Real st x in [.a,b.] holds
g is_continuous_in x ) & ( for x being Real st x in ].a,b.[ holds
g is_differentiable_in x ) & ( for x being Real st x in ].a,b.[ holds
||.(diff (g,x)).|| <= M ) holds
||.((g /. b) - (g /. a)).|| <= M * |.(b - a).|

let a, b, M be Real; :: thesis: ( a <= b & [.a,b.] c= dom g & ( for x being Real st x in [.a,b.] holds
g is_continuous_in x ) & ( for x being Real st x in ].a,b.[ holds
g is_differentiable_in x ) & ( for x being Real st x in ].a,b.[ holds
||.(diff (g,x)).|| <= M ) implies ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).| )

assume AS0: a <= b ; :: thesis: ( not [.a,b.] c= dom g or ex x being Real st
( x in [.a,b.] & not g is_continuous_in x ) or ex x being Real st
( x in ].a,b.[ & not g is_differentiable_in x ) or ex x being Real st
( x in ].a,b.[ & not ||.(diff (g,x)).|| <= M ) or ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).| )

assume AS1: [.a,b.] c= dom g ; :: thesis: ( ex x being Real st
( x in [.a,b.] & not g is_continuous_in x ) or ex x being Real st
( x in ].a,b.[ & not g is_differentiable_in x ) or ex x being Real st
( x in ].a,b.[ & not ||.(diff (g,x)).|| <= M ) or ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).| )

assume AS2: for x being Real st x in [.a,b.] holds
g is_continuous_in x ; :: thesis: ( ex x being Real st
( x in ].a,b.[ & not g is_differentiable_in x ) or ex x being Real st
( x in ].a,b.[ & not ||.(diff (g,x)).|| <= M ) or ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).| )

assume AS3: for x being Real st x in ].a,b.[ holds
g is_differentiable_in x ; :: thesis: ( ex x being Real st
( x in ].a,b.[ & not ||.(diff (g,x)).|| <= M ) or ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).| )

assume AS4: for x being Real st x in ].a,b.[ holds
||.(diff (g,x)).|| <= M ; :: thesis: ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).|
the carrier of (REAL-NS 1) = REAL 1 by REAL_NS1:def 4;
then reconsider J = proj (1,1) as Function of (REAL-NS 1),REAL ;
reconsider f = g * J as PartFunc of (REAL-NS 1),Y ;
reconsider I = (proj (1,1)) " as Function of REAL,(REAL-NS 1) by PDIFF_1:2, REAL_NS1:def 4;
now :: thesis: for r being Real holds <*r*> is Point of (REAL-NS 1)end;
then reconsider p = <*a*>, q = <*b*> as Point of (REAL-NS 1) ;
Y0: ].a,b.[ c= [.a,b.] by XXREAL_1:25;
DX1: J * I = id REAL by Lm2, FUNCT_1:39;
DX2: f * I = g * (id REAL) by DX1, RELAT_1:36
.= g by FUNCT_2:17 ;
dom f = J " (dom g) by RELAT_1:147
.= I .: (dom g) by FUNCT_1:85 ;
then I .: [.a,b.] c= dom f by AS1, RELAT_1:123;
then X0: [.p,q.] c= dom f by AS0, LM519D;
X1: for x being Point of (REAL-NS 1) st x in [.p,q.] holds
f is_continuous_in x
proof
let x be Point of (REAL-NS 1); :: thesis: ( x in [.p,q.] implies f is_continuous_in x )
assume X11: x in [.p,q.] ; :: thesis: f is_continuous_in x
consider z being Real such that
X12: x = <*z*> by LM519A;
z in [.a,b.] by AS0, LM519C1, X11, X12;
then g is_continuous_in z by AS2;
hence f is_continuous_in x by NDIFF435, X12, X0, X11; :: thesis: verum
end;
X2: for x being Point of (REAL-NS 1) st x in ].p,q.[ holds
f is_differentiable_in x
proof end;
X3: for x being Point of (REAL-NS 1) st x in ].p,q.[ holds
||.(diff (f,x)).|| <= M
proof
let x be Point of (REAL-NS 1); :: thesis: ( x in ].p,q.[ implies ||.(diff (f,x)).|| <= M )
assume X11: x in ].p,q.[ ; :: thesis: ||.(diff (f,x)).|| <= M
then B11: x in [.p,q.] by XBOOLE_0:def 5;
consider z being Real such that
X12: x = <*z*> by LM519A;
per cases ( a = b or a <> b ) ;
end;
end;
S0: dom I = REAL by FUNCT_2:def 1;
S1: ( p = I . a & q = I . b ) by PDIFF_1:1;
S2: ( p in dom f & q in dom f ) by X0, RLTOPSP1:68;
( a in [.a,b.] & b in [.a,b.] ) by AS0;
then ( g /. a = g . a & g /. b = g . b ) by PARTFUN1:def 6, AS1;
then ( g /. a = f . (I . a) & g /. b = f . (I . b) ) by DX2, FUNCT_1:13, S0, XREAL_0:def 1;
then S3: ( g /. a = f /. p & g /. b = f /. q ) by S1, S2, PARTFUN1:def 6;
q - p = I . (b - a) by S1, Lm1, PDIFF_1:3;
then ||.(q - p).|| = |.(b - a).| by Lm1, PDIFF_1:3;
hence ||.((g /. b) - (g /. a)).|| <= M * |.(b - a).| by NDIFF_5:19, X0, X1, X2, X3, S3; :: thesis: verum