Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 323 kB image not shown  

Quelle  fdiff_12.miz   Sprache: Mizar

 

:: Differentiation on Interval
::  by Noboru Endou
::
:: Received March 31, 2023
:: Copyright (c) 2023-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, REAL_1, SUBSET_1, SEQ_1, FDIFF_1, XXREAL_0, CARD_1,
      COMPLEX1, FUNCT_1, RELAT_1, ARYTM_3, NAT_1, ARYTM_1, VALUED_1, SEQ_2,
      ORDINAL2, SQUARE_1, VALUED_0, XXREAL_2, FUNCT_2, TARSKI, RCOMP_1,
      XXREAL_1, PARTFUN1, XBOOLE_0, FCONT_1, FUNCT_7, INTEGRA5, ZFMISC_1,
      PROB_1, MEMBERED, SEQ_4, MEASURE5, FDIFF_3, SUPINF_1, LIMFUNC1, LIMFUNC2,
      LIMFUNC3, FDIFF_12;
 notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, ORDINAL1, XXREAL_3, XCMPLX_0,
      XREAL_0, NUMBERS, XXREAL_0, COMPLEX1, XXREAL_1, MEMBERED, LIMFUNC1,
      XXREAL_2, RELSET_1, SUPINF_1, SUPINF_2, FUNCT_1, PARTFUN1, PARTFUN2,
      FUNCT_2, FCONT_1, NAT_1, VALUED_0, VALUED_1, SQUARE_1, PROB_1, RCOMP_1,
      MEASURE5, SEQ_1, RFUNCT_1, SEQ_2, SEQ_4, FDIFF_1, FDIFF_3, INTEGRA5,
      LIMFUNC2, LIMFUNC3;
 constructors FCONT_1, RELSET_1, SQUARE_1, COMPLEX1, COMSEQ_2, MEASURE6,
      MESFUNC5, INTEGRA5, LIMFUNC1, PARTFUN2, FDIFF_1, INTEGRA2, SEQ_4,
      FDIFF_3, LIMFUNC2, LIMFUNC3, REAL_1, RVSUM_1, RECDEF_1;
 registrations XREAL_0, RELSET_1, RCOMP_1, MEMBERED, XBOOLE_0, NUMBERS,
      VALUED_0, VALUED_1, FUNCT_2, XXREAL_2, FCONT_3, SQUARE_1, RELAT_1,
      ORDINAL1, XXREAL_0, NAT_1, FDIFF_1, MEASURE5, SUBSET_1, SEQ_2, SEQ_4;
 requirements NUMERALS, BOOLE, SUBSET, REAL, ARITHM;
 equalities XCMPLX_0;
 expansions FDIFF_1, TARSKI;
 theorems TARSKI, PARTFUN1, ZFMISC_1, INTEGRA1, RFUNCT_1, FUNCT_1, SEQ_1,
      SEQ_2, FDIFF_1, ABSVALUE, RCOMP_1, FCONT_1, FDIFF_2, RELAT_1, XREAL_0,
      XXREAL_0, FUNCT_2, XBOOLE_0, XBOOLE_1, SEQ_4, XREAL_1, COMPLEX1,
      INTEGRA5, VALUED_1, XXREAL_1, XXREAL_2, ORDINAL1, MEASURE5, NAT_1,
      SEQM_3, RFUNCT_2, FUNCT_3, NUMBERS, FDIFF_3, XXREAL_3, VALUED_0,
      SUBSET_1, MEASURE6, XCMPLX_0, PROB_1, LIMFUNC1, LIMFUNC2, LIMFUNC3,
      L_HOSPIT, PDIFFEQ1, SQUARE_1, XCMPLX_1;
 schemes FUNCT_2, SCHEME1, FDIFF_2;

begin  :: Preliminaries

theorem Th1: :: relaxation of FDIFF_2:23
for A,B be open Subset of REAL, f1,f2 be PartFunc of REAL,REAL st
  f1 is_differentiable_on A & rng(f1|A) c= B &
  f2 is_differentiable_on B holds
  f2*f1 is_differentiable_on A & (f2*f1)`|A = ((f2`|B)*f1) (#) (f1`|A)
proof
    let A,B be open Subset of REAL, f1,f2 be PartFunc of REAL,REAL;
    assume that
A1:  f1 is_differentiable_on A and
A2:  rng(f1|A) c= B and
A3:  f2 is_differentiable_on B;

A4: now
     let x0 be Real;
     assume
A5:   x0 in A;
     hence
A6:   f1 is_differentiable_in x0 by A1,FDIFF_1:9;
     thus x0 in dom f1 by A1,A5;
     thus f1.x0 in f1.:A by A1,A5,FUNCT_1:def 6;
     x0 in dom(f1|A) by A1,A5,RELAT_1:57; then
     (f1|A).x0 in B by A2,FUNCT_1:3; then
     f1.x0 in B by A5,FUNCT_1:49;
     hence f2 is_differentiable_in f1.x0 by A3,FDIFF_1:9;
     hence f2*f1 is_differentiable_in x0 by A6,FDIFF_2:13;
    end;

A7: now let y be Real;
     assume y in f1.:A; then
     consider x be object such that
A8:   x in dom f1 & x in A & y = f1.x by FUNCT_1:def 6;
     x in dom(f1|A) by A8,RELAT_1:57; then
     (f1|A).x in rng(f1|A) by FUNCT_1:3; then
     f1.x in rng(f1|A) by A8,FUNCT_1:49;
     hence y in B by A2,A8;
    end; then
A9: f1.:A c= B;

    B c= dom f2 by A3; then
    f1.:A c= dom f2 by A7; then
A10: A c= dom (f2*f1) by A1,FUNCT_3:3;
    for x0 be Real holds x0 in A implies f2*f1 is_differentiable_in x0 by A4;
    hence
A11:  f2*f1 is_differentiable_on A by A10,FDIFF_1:9;
    then
A12:dom ((f2*f1)`|A) = A by FDIFF_1:def 7;
A13:now
     let x0 be Element of REAL;
     assume
A14:  x0 in dom ((f2*f1)`|A);
     then
A15: f1 is_differentiable_in x0 by A4,A12;
A16: x0 in dom f1 by A4,A12,A14;
     f1.x0 in f1.:A by A4,A12,A14; then
A17: f1.x0 in B by A7;

A18: f2 is_differentiable_in f1.x0 by A4,A12,A14;
     thus ((f2*f1)`|A).x0 = diff(f2*f1,x0) by A11,A12,A14,FDIFF_1:def 7
      .= diff(f2,f1.x0) * diff(f1,x0) by A15,A18,FDIFF_2:13
      .= diff(f2,f1.x0) * (f1`|A).x0 by A1,A12,A14,FDIFF_1:def 7
      .= (f2`|B).(f1.x0) * (f1`|A).x0 by A3,A17,FDIFF_1:def 7
      .= ((f2`|B)*f1).x0 * (f1`|A).x0 by A16,FUNCT_1:13
      .= (((f2`|B)*f1) (#) (f1`|A)).x0 by VALUED_1:5;
    end;
    dom (f2`|B) = B by A3,FDIFF_1:def 7; then
    dom ((f2*f1)`|A)
       = dom ((f2`|B)*f1) /\ A by A12,A1,A9,FUNCT_1:101,XBOOLE_1:28
      .= dom ((f2`|B)*f1) /\ dom (f1`|A) by A1,FDIFF_1:def 7
      .= dom (((f2`|B)*f1) (#) (f1`|A)) by VALUED_1:def 4;
    hence thesis by A13,PARTFUN1:5;
end;

theorem Th2:
for I be Interval holds
 ].inf I,sup I.[ is open Subset of REAL & ].inf I,sup I.[ c= I
proof
    let I be Interval;
    now per cases;
    suppose inf I in REAL & sup I in REAL; then
     reconsider a = inf I, b = sup I as Real;
     ].inf I,sup I.[ = ].a,b.[;
     hence ].inf I,sup I.[ is open Subset of REAL;
    end;

    suppose A1: not inf I in REAL;
     per cases by A1,XXREAL_0:14;
     suppose A2: inf I = +infty;
      ].inf I,sup I.[ = {} by A2,XXREAL_0:3,XXREAL_1:28;
      hence ].inf I,sup I.[ is open Subset of REAL;
     end;
     suppose A3: inf I = -infty;
      per cases;
      suppose sup I in REAL; then
       reconsider b = sup I as Real;
       ].inf I,sup I.[ = halfline b by A3,PROB_1:def 10;
       hence ].inf I,sup I.[ is open Subset of REAL;
      end;
      suppose A4: not sup I in REAL;
       per cases by A4,XXREAL_0:14;
       suppose sup I = +infty; then
        ].inf I,sup I.[ = [#]REAL by A3,XXREAL_1:224,SUBSET_1:def 3;
        hence ].inf I,sup I.[ is open Subset of REAL;
       end;
       suppose sup I = -infty; then
        ].inf I,sup I.[ = {} by A3,XXREAL_1:20;
        hence ].inf I,sup I.[ is open Subset of REAL;
       end;
      end;
     end;
    end;
    suppose not sup I in REAL; then
     per cases by XXREAL_0:14;
     suppose A6: sup I = -infty;
      ].inf I,sup I.[ = {} by A6,XXREAL_0:5,XXREAL_1:28;
      hence ].inf I,sup I.[ is open Subset of REAL;
     end;
     suppose A7: sup I = +infty;
      per cases;
      suppose inf I in REAL; then
       reconsider a = inf I as Real;
       ].inf I,sup I.[ = right_open_halfline a by A7,LIMFUNC1:def 3;
       hence ].inf I,sup I.[ is open Subset of REAL;
      end;
      suppose A8: not inf I in REAL;
       per cases by A8,XXREAL_0:14;
       suppose inf I = -infty; then
        ].inf I,sup I.[ = [#]REAL by A7,XXREAL_1:224,SUBSET_1:def 3;
        hence ].inf I,sup I.[ is open Subset of REAL;
       end;
       suppose inf I = +infty; then
        ].inf I,sup I.[ = {} by A7,XXREAL_1:20;
        hence ].inf I,sup I.[ is open Subset of REAL;
       end;
      end;
     end;
    end;
    end;
    hence ].inf I,sup I.[ is open Subset of REAL;

    now let a be set;
     assume A9:a in ].inf I,sup I.[; then
     reconsider a1=a as Real;
     inf I < a1 < sup I by A9,XXREAL_1:4;
     hence a in I by XXREAL_2:83;
    end;
    hence ].inf I,sup I.[ c= I;
end;

theorem Th3:
for I be Interval, x be Real st x in I & x <> inf I & x <> sup I holds
 x in ].inf I,sup I.[
proof
    let I be Interval, x be Real;
    assume that
A1:  x in I and
A2:  x <> inf I and
A3:  x <> sup I;
    inf I <= x <= sup I by A1,XXREAL_2:61,62; then
    inf I < x < sup I by A2,A3,XXREAL_0:1;
    hence x in ].inf I,sup I.[ by XXREAL_1:4;
end;

Lm1:
for r be set, I be interval Subset of REAL st r in I & I is closed_interval
 holds (r = inf I & r = lower_bound I) or (r = sup I & r = upper_bound I) or
  r in ].inf I, sup I.[
proof
    let r be set, I be interval Subset of REAL;
    assume that
A1:  r in I and
A2:  I is closed_interval;

    consider a,b be Real such that
A3:  I = [.a,b.] by A2,MEASURE5:def 3;
A4: I = [.lower_bound I, upper_bound I.] by A1,A2,INTEGRA1:4;

    reconsider r1 = r as Real by A1;
A5: a <= r1 <= b by A1,A3,XXREAL_1:1;
    per cases;
    suppose r1 = a;
     hence (r = inf I & r = lower_bound I) or (r = sup I & r = upper_bound I)
      or r in ].inf I, sup I.[ by A1,A2,A3,A4,A5,INTEGRA1:5,XXREAL_2:25;
    end;
    suppose r1 = b;
     hence (r = inf I & r = lower_bound I) or (r = sup I & r = upper_bound I)
      or r in ].inf I, sup I.[ by A1,A2,A3,A4,A5,INTEGRA1:5,XXREAL_2:29;
    end;
    suppose A6: r1 <> a & r1 <> b;
     a = inf I & b = sup I by A3,A5,XXREAL_0:2,XXREAL_2:25,29; then
     inf I < r1 < sup I by A5,A6,XXREAL_0:1;
     hence (r = inf I & r = lower_bound I) or (r = sup I & r = upper_bound I)
      or r in ].inf I, sup I.[ by XXREAL_1:4;
    end;
end;

Lm2:
for r be set, I be interval Subset of REAL st r in I & I is right_open_interval
 holds (r = inf I & r = lower_bound I) or r in ].inf I,sup I.[
proof
    let r be set, I be interval Subset of REAL;
    assume that
A1:  r in I and
A2:  I is right_open_interval;

    consider a be Real, b be R_eal such that
A3:  I = [.a,b.[ by A2,MEASURE5:def 4;
    a is LowerBound of I by A3,XXREAL_2:19; then
    reconsider J = I as non empty bounded_below real-membered set
      by A1,XXREAL_2:def 9;
A4: inf J = lower_bound J;

    reconsider r1 = r as Real by A1;
A5: a <= r1 < b by A1,A3,XXREAL_1:3;
A6: a < b by A5,XXREAL_0:2;
    per cases;
    suppose r1 = a;
     hence (r = inf I & r = lower_bound I) or r in ].inf I,sup I.[
       by A3,A4,A5,XXREAL_2:26;
    end;
    suppose r1 <> a; then
     a < r1 < b by A5,XXREAL_0:1; then
     inf I < r1 < sup I by A3,A6,XXREAL_2:26,31;
     hence (r = inf I & r = lower_bound I) or r in ].inf I,sup I.[
       by XXREAL_1:4;
    end;
end;

Lm3:
for r be set, I be interval Subset of REAL st r in I & I is left_open_interval
 holds (r = sup I & r = upper_bound I) or r in ].inf I,sup I.[
proof
    let r be set, I be interval Subset of REAL;
    assume that
A1:  r in I and
A2:  I is left_open_interval;

    consider a be R_eal, b be Real such that
A3:  I = ].a,b.] by A2,MEASURE5:def 5;
    b is UpperBound of I by A3,XXREAL_2:22; then
    reconsider J = I as non empty bounded_above real-membered set
      by A1,XXREAL_2:def 10;
A4: sup J = upper_bound J;

    reconsider r1 = r as Real by A1;
A5: a < r1 <= b by A1,A3,XXREAL_1:2;
A6: a < b by A5,XXREAL_0:2;
    per cases;
    suppose r1 = b;
     hence (r = sup I & r = upper_bound I) or r in ].inf I,sup I.[
       by A3,A4,A5,XXREAL_2:30;
    end;
    suppose r1 <> b; then
     a < r1 < b by A5,XXREAL_0:1; then
     inf I < r1 < sup I by A3,A6,XXREAL_2:27,30;
     hence (r = sup I & r = upper_bound I) or r in ].inf I,sup I.[
       by XXREAL_1:4;
    end;
end;

Lm4:
for r be set, I be interval Subset of REAL st r in I & I is open_interval
 holds r in ].inf I,sup I.[
proof
    let r be set, I be interval Subset of REAL;
    assume that
A1:  r in I and
A2:  I is open_interval;

    consider a,b be R_eal such that
A3:  I = ].a,b.[ by A2,MEASURE5:def 2;

    reconsider r1 = r as Real by A1;
A4: a < r1 < b by A1,A3,XXREAL_1:4;
    a < b by A4,XXREAL_0:2; then
    inf I = a & sup I = b by A3,XXREAL_2:28,32;
    hence thesis by A1,A3;
end;

theorem Th4:
for f be PartFunc of REAL,REAL, I be Interval, x be Real st
 f is_right_differentiable_in x & x in I & x <> sup I holds
  f|I is_right_differentiable_in x
proof
    let f be PartFunc of REAL,REAL, I be Interval, x be Real;
    assume that
A1:  f is_right_differentiable_in x and
A2:  x in I and
A3:  x <> sup I;

    consider r be Real such that
A4:  r > 0 & [.x,x+r.] c= dom f by A1,FDIFF_3:def 3;
A5: x <= sup I by A2,XXREAL_2:4; then
A6: x < sup I by A3,XXREAL_0:1;
A7: x < +infty by XXREAL_0:9,XREAL_0:def 1;
    -infty < sup I by A5,A2,XXREAL_0:2,12; then
A8: sup I - x > 0 by A6,A7,XXREAL_3:51;
    set R0 = min(r,sup I-x);

A9: R0 > 0 by A4,A8,XXREAL_0:21;
A10:R0 <> -infty by A4,A8,XXREAL_0:21;
A11:R0 <= r & r < +infty by XREAL_0:def 1,XXREAL_0:17,9; then
    R0 in REAL by A10,XXREAL_0:14; then
    reconsider r0=R0 as Real;
    set R = r0/2;
    r0 > 0 by A4,A8,XXREAL_0:21; then
A12:R < r0 by XREAL_1:216; then
    R < r by A11,XXREAL_0:2; then
    x+R < x+r by XREAL_1:6; then
    [.x,x+R.] c= [.x,x+r.] by XXREAL_1:34; then
A13:[.x,x+R.] c= dom f by A4;

    reconsider x0=x as R_eal by XXREAL_0:def 1;
    reconsider S=R as R_eal by XXREAL_0:def 1;

A14: x in REAL by XREAL_0:def 1;

    r0 <= sup I - x by XXREAL_0:17; then
    R < sup I - x by A12,XXREAL_0:2; then
    S+x0 < sup I - x0 + x0 by A14,XXREAL_3:43; then
    S+x0 < sup I by XXREAL_3:22; then
A15:x+R < sup I by XXREAL_3:def 2;

A16: x < x+R by A9,XREAL_1:29,215; then
    x+R in I by A2,A15,XXREAL_2:81; then
    [.x,x+R.] c= I by A2,XXREAL_2:def 12; then
    [.x,x+R.] c= dom f /\ I by A13,XBOOLE_0:def 4; then
A17:[.x,x+R.] c= dom (f|I) by RELAT_1:61;

    for h be 0-convergent non-zero Real_Sequence,
     c be constant Real_Sequence st rng c = {x} & rng(h+c) c= dom(f|I) &
     (for n be Nat holds h.n > 0) holds
      h"(#)((f|I)/*(h+c) - (f|I)/*c) is convergent
    proof
     let h be 0-convergent non-zero Real_Sequence,
         c be constant Real_Sequence;
     assume that
A18:   rng c = {x} and
A19:   rng(h+c) c= dom(f|I) and
A20:   for n be Nat holds h.n > 0;
     dom(f|I) c= dom f by RELAT_1:60; then
     rng(h+c) c= dom f by A19; then
A21:  h"(#)(f/*(h+c) - f/*c) is convergent by A1,A18,A20,FDIFF_3:def 3;

A22:  (f|I)/*(h+c) = f/*(h+c) by A19,FUNCT_2:117;

     [.x,x+R.] = rng c \/ ].x,x+R.] by A16,A18,XXREAL_1:130; then
     rng c c= [.x,x+R.] by XBOOLE_1:7; then
     rng c c= dom(f|I) by A17;
     hence h"(#)((f|I)/*(h+c) - (f|I)/*c) is convergent by A22,A21,FUNCT_2:117;
    end;
    hence f|I is_right_differentiable_in x by A17,A9,XREAL_1:215,FDIFF_3:def 3;
end;

theorem Th5:
for f be PartFunc of REAL,REAL, I be Interval, x be Real st
 f is_left_differentiable_in x & x in I & x <> inf I holds
  f|I is_left_differentiable_in x
proof
    let f be PartFunc of REAL,REAL, I be Interval, x be Real;
    assume that
A1:  f is_left_differentiable_in x and
A2:  x in I and
A3:  x <> inf I;

    consider r be Real such that
A4:  r > 0 & [.x-r,x.] c= dom f by A1,FDIFF_3:def 4;
A5: inf I <= x by A2,XXREAL_2:3; then
A6: inf I < x by A3,XXREAL_0:1;
A7: x in REAL by XREAL_0:def 1;
A8: -infty < x by XREAL_0:def 1,XXREAL_0:12;
    inf I < +infty by A5,A7,XXREAL_0:2,9; then
A9: x - inf I > 0 by A6,A8,XXREAL_3:51;
    set R0 = min(r,x - inf I);

A10: R0 > 0 by A4,A9,XXREAL_0:21;
A11:R0 <> -infty by A4,A9,XXREAL_0:21;
A12:R0 <= r & r < +infty by XREAL_0:def 1,XXREAL_0:17,9; then
    R0 in REAL by A11,XXREAL_0:14; then
    reconsider r0=R0 as Real;
    set R = r0/2;

A13:R < r0 by A10,XREAL_1:216; then
    R < r by A12,XXREAL_0:2; then
    x-r < x-R by XREAL_1:10; then
    [.x-R,x.] c= [.x-r,x.] by XXREAL_1:34; then
A14:[.x-R,x.] c= dom f by A4;

    reconsider x0=x as R_eal by XXREAL_0:def 1;
    reconsider S=R as R_eal by XXREAL_0:def 1;

A15: -S = -R by XXREAL_3:def 3;

    r0 <= x - inf I by XXREAL_0:17; then
    R < x - inf I by A13,XXREAL_0:2; then
    S - x0 < x0 -inf I - x0 by A7,XXREAL_3:43; then
    S - x0 < -inf I + x0 - x0 by XXREAL_3:def 4; then
    S - x0 < -inf I by XXREAL_3:24; then
    -(S - x0) > --inf I by XXREAL_3:38; then
    x0 + -S > inf I by XXREAL_3:26; then
A16:x-R > inf I by A15,XXREAL_3:def 2;

A17: x-R < x by A10,XREAL_1:44,215; then
    x-R in I by A2,A16,XXREAL_2:82; then
    [.x-R,x.] c= I by A2,XXREAL_2:def 12; then
    [.x-R,x.] c= dom f /\ I by A14,XBOOLE_0:def 4; then
A18:[.x-R,x.] c= dom (f|I) by RELAT_1:61;

    for h be 0-convergent non-zero Real_Sequence,
     c be constant Real_Sequence st rng c = {x} & rng(h+c) c= dom(f|I) &
     (for n be Nat holds h.n < 0) holds
      h"(#)((f|I)/*(h+c) - (f|I)/*c) is convergent
    proof
     let h be 0-convergent non-zero Real_Sequence,
      c be constant Real_Sequence;
     assume that
A19:   rng c = {x} and
A20:   rng(h+c) c= dom(f|I) and
A21:   for n be Nat holds h.n < 0;
     dom(f|I) c= dom f by RELAT_1:60; then
     rng(h+c) c= dom f by A20; then
A22:  h"(#)(f/*(h+c) - f/*c) is convergent by A1,A19,A21,FDIFF_3:def 4;

A23:  (f|I)/*(h+c) = f/*(h+c) by A20,FUNCT_2:117;

     [.x-R,x.] = rng c \/ [.x-R,x.[ by A17,A19,XXREAL_1:129; then
     rng c c= [.x-R,x.] by XBOOLE_1:7; then
     rng c c= dom(f|I) by A18;
     hence h"(#)((f|I)/*(h+c) - (f|I)/*c) is convergent by A23,A22,FUNCT_2:117;
    end;
    hence f|I is_left_differentiable_in x by A18,A10,XREAL_1:215,FDIFF_3:def 4;
end;

theorem Th6:
for X be set, f1,f2 be PartFunc of X,REAL st dom f1 = dom f2 holds
 (f1 + f2) - f2 = f1 & (f1 - f2) + f2 = f1
proof
    let X be set, f1,f2 be PartFunc of X,REAL;
    assume A1: dom f1 = dom f2;
A2: dom(f1+f2) = dom f1 /\ dom f1 by A1,VALUED_1:def 1 .= dom f1; then
A3: dom((f1+f2)-f2) = dom f1 /\ dom f1 by A1,VALUED_1:12 .= dom f1;
A4: dom(f1-f2) = dom f1 /\ dom f1 by A1,VALUED_1:12 .= dom f1; then
A5: dom((f1-f2)+f2) = dom f1 /\ dom f1 by A1,VALUED_1:def 1 .= dom f1;

    for x be Element of X st x in dom f1 holds f1.x = ((f1+f2)-f2).x
    proof
     let x be Element of X;
     assume A6: x in dom f1; then
     ((f1+f2)-f2).x = (f1+f2).x - f2.x by A3,VALUED_1:13
      .= f1.x + f2.x - f2.x by A6,A2,VALUED_1:def 1;
     hence f1.x = ((f1+f2)-f2).x;
    end;
    hence (f1 + f2) - f2 = f1 by A3,PARTFUN1:5;

    for x be Element of X st x in dom f1 holds f1.x = ((f1-f2)+f2).x
    proof
     let x be Element of X;
     assume A7: x in dom f1; then
     ((f1-f2)+f2).x = (f1-f2).x + f2.x by A5,VALUED_1:def 1
      .= f1.x - f2.x + f2.x by A4,A7,VALUED_1:13;
     hence f1.x = ((f1-f2)+f2).x;
    end;
    hence (f1 - f2) + f2 = f1 by A5,PARTFUN1:5;
end;

begin :: Differentiation on Intervals

definition
  let f be PartFunc of REAL,REAL, I be non empty Interval;
  pred f is_differentiable_on_interval I means
  I c= dom f & inf I < sup I &
  (inf I in I implies f is_right_differentiable_in lower_bound I) &
  (sup I in I implies f is_left_differentiable_in upper_bound I) &
  f is_differentiable_on ].inf I,sup I.[;
end;

Lm5:
for I be interval Subset of REAL st inf I in I holds inf I = lower_bound I
proof
    let I be interval Subset of REAL;
    assume inf I in I; then
    reconsider J=I as non empty left_end real-membered set by XXREAL_2:def 5;
    inf J = lower_bound J;
    hence inf I = lower_bound I;
end;

Lm6:
for I be interval Subset of REAL st sup I in I holds sup I = upper_bound I
proof
    let I be interval Subset of REAL;
    assume sup I in I; then
    reconsider J=I as non empty right_end real-membered set by XXREAL_2:def 6;
    sup J = upper_bound J;
    hence sup I = upper_bound I;
end;

definition
  let f be PartFunc of REAL,REAL, I be interval non empty Subset of REAL;
  assume A1: f is_differentiable_on_interval I;
  func f`\I -> PartFunc of REAL,REAL means :Def2:
  dom it = I &
  for x be Real st x in I holds
   (x = inf I implies it.x = Rdiff(f,x)) &
   (x = sup I implies it.x = Ldiff(f,x)) &
   (x <> inf I & x <> sup I implies it.x = diff(f,x));
existence
proof
    defpred P[object] means $1 = inf I & $1 in I;
    defpred Q[object] means $1 = sup I & $1 in I;
    defpred R[object] means $1 in ].inf I,sup I.[;
    deffunc F(object) = In(Rdiff(f,In($1,REAL)),REAL);
    deffunc G(object) = In(Ldiff(f,In($1,REAL)),REAL);
    deffunc H(object) = In(diff(f,In($1,REAL)),REAL);

A2: for r be Element of REAL holds (P[r] implies not Q[r]) &
      (P[r] implies not R[r]) & (Q[r] implies not R[r]) by A1,XXREAL_1:4;
    consider IT being PartFunc of REAL,REAL such that
A3:  (for r be Element of REAL holds r in dom IT iff P[r] or Q[r] or R[r]) &
     for r be Element of REAL st r in dom IT holds (P[r] implies IT.r = F(r)) &
      (Q[r] implies IT.r = G(r)) & (R[r] implies IT.r = H(r))
        from SCHEME1:sch 9(A2);
    take IT;

    now let r be set;
     assume r in dom IT; then
     per cases by A3;
     suppose P[r] or Q[r];
      hence r in I;
     end;
     suppose A5: R[r]; then
      reconsider r1=r as Real;
      inf I < r1 < sup I by A5,XXREAL_1:4;
      hence r in I by XXREAL_2:83;
     end;
    end; then
A6: dom IT c= I;

    now let r be set;
     assume A7: r in I; then
     reconsider r1=r as Real;
     per cases by MEASURE5:1;
     suppose I is closed_interval; then
      P[r] or Q[r] or R[r] by A7,Lm1;
      hence r in dom IT by A3;
     end;
     suppose I is right_open_interval; then
      P[r] or R[r] by A7,Lm2;
      hence r in dom IT by A3;
     end;
     suppose I is left_open_interval; then
      Q[r] or R[r] by A7,Lm3;
      hence r in dom IT by A3;
     end;
     suppose I is open_interval;
      hence r in dom IT by A3,A7,Lm4;
     end;
    end; then
A8: I c= dom IT;
    hence dom IT = I by A6,XBOOLE_0:def 10;

    thus for x be Real st x in I holds
     (x = inf I implies IT.x = Rdiff(f,x)) &
     (x = sup I implies IT.x = Ldiff(f,x)) &
     (x <> inf I & x <> sup I implies IT.x = diff(f,x))
    proof
     let x be Real;
     assume
A9:   x in I;

     per cases;
     suppose
A10:   x = inf I; then

      IT.x = F(x) by A3,A8,A9;
      hence thesis by A10,A1;
     end;
     suppose
A11:   x = sup I; then

      IT.x = G(x) by A3,A8,A9;
      hence thesis by A11,A1;
     end;
     suppose A12: x <> inf I & x <> sup I;
A13:   x in ].inf I,sup I.[
      proof
A14:    I is closed_interval implies x in ].inf I,sup I.[ by A9,A12,Lm1;
A15:    I is right_open_interval implies x in ].inf I,sup I.[ by A9,A12,Lm2;
       I is left_open_interval implies x in ].inf I,sup I.[ by A9,A12,Lm3;
       hence thesis by A14,A15,A9,Lm4,MEASURE5:1;
      end; then
      inf I < x < sup I by XXREAL_1:4; then
      x in I by XXREAL_2:83; then
      IT.x = H(x) by A3,A8,A13;
      hence thesis by A12;
     end;
    end;
end;
uniqueness
proof
    let F1,F2 be PartFunc of REAL,REAL;
    assume that
A16:  dom F1 = I &
     for x be Real st x in I holds
      (x = inf I implies F1.x = Rdiff(f,x)) &
      (x = sup I implies F1.x = Ldiff(f,x)) &
      (x <> inf I & x <> sup I implies F1.x = diff(f,x)) and
A17:  dom F2 = I &
     for x be Real st x in I holds
      (x = inf I implies F2.x = Rdiff(f,x)) &
      (x = sup I implies F2.x = Ldiff(f,x)) &
      (x <> inf I & x <> sup I implies F2.x = diff(f,x));

    for x be Element of REAL st x in dom F1 holds F1.x = F2.x
    proof
     let x be Element of REAL;
     assume
A18:   x in dom F1;
     per cases;
     suppose x = inf I; then
      F1.x = Rdiff(f,x) & F2.x = Rdiff(f,x) by A16,A17,A18;
      hence F1.x = F2.x;
     end;
     suppose x = sup I; then
      F1.x = Ldiff(f,x) & F2.x = Ldiff(f,x) by A16,A17,A18;
      hence F1.x = F2.x;
     end;
     suppose x <> inf I & x <> sup I; then
      F1.x = diff(f,x) & F2.x = diff(f,x) by A16,A17,A18;
      hence F1.x = F2.x;
     end;
    end;
    hence F1 = F2 by A16,A17,PARTFUN1:5;
end;
end;

theorem
for f be PartFunc of REAL,REAL, a,b be Real st a < b &
 f is_differentiable_on_interval ['a,b'] holds
 f is_differentiable_on ].a,b.[
proof
    let f be PartFunc of REAL,REAL, a,b be Real;
    assume that
A1:  a < b and
A2:  f is_differentiable_on_interval ['a,b'];

A3: [.a,b.] = ['a,b'] by A1,INTEGRA5:def 3;

    a = inf [.a,b.] & b = sup [.a,b.] by A1,XXREAL_2:25,29;
    hence f is_differentiable_on ].a,b.[ by A2,A3;
end;

theorem
for f be PartFunc of REAL,REAL, a,b be Real st a <= b &
 f is_differentiable_on_interval ['a,b'] holds
 (f`\['a,b']).a = Rdiff(f,a) & (f`\['a,b']).b = Ldiff(f,b) &
 for x be Real st x in ].a,b.[ holds (f`\['a,b']).x = diff(f,x)
proof
    let f be PartFunc of REAL,REAL, a,b be Real;
    assume that
A1:  a <= b and
A2:  f is_differentiable_on_interval ['a,b'];

A3: a = inf [.a,b.] & b = sup [.a,b.] by A1,XXREAL_2:25,29; then
    reconsider I=[.a,b.] as non empty left_end right_end real-membered set
       by A1,XXREAL_1:1,XXREAL_2:def 5,def 6;
A4: I = ['a,b'] by A1,INTEGRA5:def 3;

A5: a in I & b in I by A1,XXREAL_1:1;
    hence (f`\['a,b']).a = Rdiff(f,a) by A3,A2,A4,Def2;
    thus (f`\['a,b']).b = Ldiff(f,b) by A2,A5,A4,A3,Def2;
    thus for x be Real st x in ].a,b.[ holds (f`\['a,b']).x = diff(f,x)
    proof
     let x be Real;
     assume A6: x in ].a,b.[; then
A7:  x <> a & x <> b by XXREAL_1:4;
     ].a,b.[ c= [.a,b.] by XXREAL_1:37;
     hence thesis by A2,A3,A7,A4,A6,Def2;
    end;
end;

Lm7:
for x,r be Real, h be 0-convergent non-zero Real_Sequence,
 c be constant Real_Sequence st r > 0 & rng c = {x} &
 (for n be Nat holds h.n > 0) holds
  ex N be Nat st rng(h^\N + c) c= ].x,x+r.[ &
   (for m be Nat holds (h^\N + c).m = (h+c).(N+m)) &
   for m be Nat st N <= m holds ( |. h.m .| < r & x < (h+c).m < x+r )
proof
    let x,r be Real, h be 0-convergent non-zero Real_Sequence,
    c be constant Real_Sequence;
    assume that
A1:  r > 0 and
A2:  rng c = {x} and
A3:  for n be Nat holds h.n > 0;

    h is convergent & lim h = 0; then
    consider N be Nat such that
A4:  for m be Nat st N <= m holds |. h.m - 0 .| < r by A1,SEQ_2:def 7;
    take N;

    set h1 = h^\N;

    now let p be Real;
     assume p in rng(h1 + c); then
     consider k be Element of NAT such that
A5:   p = (h1+c).k by FUNCT_2:113;
A6:  p = h1.k + c.k by A5,VALUED_1:1;
     c.k in rng c by FUNCT_2:112; then
A7:  c.k = x by A2,TARSKI:def 1;

A8:  h1.k = h.(N+k) by NAT_1:def 3; then
A9:  h1.k > 0 by A3;
     |. h1.k - 0 .| < r by A4,A8,NAT_1:11; then
     h1.k < r by A9,ABSVALUE:def 1; then
     x < p < x + r by A3,A8,A6,A7,XREAL_1:6,29;
     hence p in ].x,x+r.[ by XXREAL_1:4;
    end;
    hence
A10: rng(h^\N + c) c= ].x,x+r.[;
    thus
A11:  for m be Nat holds (h^\N + c).m = (h+c).(N+m)
    proof
     let m be Nat;
A12: dom(h1+c) = NAT & dom c = NAT & dom(h+c) = NAT by FUNCT_2:def 1; then
     m in dom(h1+c) & m in dom c & N+m in dom(h+c) & N+m in dom c
      by ORDINAL1:def 12; then
A13: c.m = c.(N+m) by FUNCT_1:def 10;

     (h1+c).m = h1.m + c.m by A12,ORDINAL1:def 12,VALUED_1:def 1
      .= h.(N+m) + c.(N+m) by A13,NAT_1:def 3;
     hence (h^\N + c).m = (h+c).(N+m) by A12,ORDINAL1:def 12,VALUED_1:def 1;
    end;

    thus for m be Nat st N <= m holds |. h.m .| < r & x < (h+c).m < x+r
    proof
     let m be Nat;
     assume
A14:  N <= m; then
     |. h.m - 0 .| < r by A4;
     hence |. h.m .| < r;

     consider m1 be Nat such that
A15:  m = N+m1 by A14,NAT_1:10;
     dom(h1+c) = NAT by FUNCT_2:def 1; then
     (h1+c).m1 in rng(h1+c) by FUNCT_1:3,ORDINAL1:def 12; then
     x < (h1+c).m1 < x+r by A10,XXREAL_1:4;
     hence x < (h+c).m < x+r by A15,A11;
    end;
end;

Lm8:
for x,r be Real, h be 0-convergent non-zero Real_Sequence,
 c be constant Real_Sequence st r > 0 & rng c = {x} &
 (for n be Nat holds h.n < 0) holds
  ex N be Nat st rng(h^\N + c) c= ].x-r,x.[ &
   (for m be Nat holds (h^\N + c).m = (h+c).(N+m)) &
   for m be Nat st N <= m holds ( |. h.m .| < r & x-r < (h+c).m < x )
proof
    let x,r be Real, h be 0-convergent non-zero Real_Sequence,
    c be constant Real_Sequence;
    assume that
A1:  r > 0 and
A2:  rng c = {x} and
A3:  for n be Nat holds h.n < 0;

    h is convergent & lim h = 0; then
    consider N be Nat such that
A4:  for m be Nat st N <= m holds |. h.m - 0 .| < r by A1,SEQ_2:def 7;
    take N;

    set h1 = h^\N;

    now let p be Real;
     assume p in rng(h1 + c); then
     consider k be Element of NAT such that
A5:   p = (h1+c).k by FUNCT_2:113;
A6:  p = h1.k + c.k by A5,VALUED_1:1;
     c.k in rng c by FUNCT_2:112; then
A7:  c.k = x by A2,TARSKI:def 1;

A8:  h1.k = h.(N+k) by NAT_1:def 3;

     |. h1.k - 0 .| < r by A4,A8,NAT_1:11; then
     -(h1.k) < r by A3,A8,ABSVALUE:def 1; then
     x-r < p < x by A3,A8,A6,A7,XREAL_1:6,25,30;
     hence p in ].x-r,x.[ by XXREAL_1:4;
    end;
    hence
A9: rng(h^\N + c) c= ].x-r,x.[;
    thus
A10:  for m be Nat holds (h^\N + c).m = (h+c).(N+m)
    proof
     let m be Nat;
A11: dom(h1+c) = NAT & dom c = NAT & dom(h+c) = NAT by FUNCT_2:def 1; then
     m in dom(h1+c) & m in dom c & N+m in dom(h+c) & N+m in dom c
      by ORDINAL1:def 12; then
A12: c.m = c.(N+m) by FUNCT_1:def 10;

     (h1+c).m = h1.m + c.m by A11,ORDINAL1:def 12,VALUED_1:def 1
      .= h.(N+m) + c.(N+m) by A12,NAT_1:def 3;
     hence (h^\N + c).m = (h+c).(N+m) by A11,ORDINAL1:def 12,VALUED_1:def 1;
    end;

    thus for m be Nat st N <= m holds |. h.m .| < r & x-r < (h+c).m < x
    proof
     let m be Nat;
     assume
A13:  N <= m; then
     |. h.m - 0 .| < r by A4;
     hence |. h.m .| < r;

     consider m1 be Nat such that
A14:  m = N+m1 by A13,NAT_1:10;
     dom(h1+c) = NAT by FUNCT_2:def 1; then
     (h1+c).m1 in rng(h1+c) by FUNCT_1:3,ORDINAL1:def 12; then
     x-r < (h1+c).m1 < x by A9,XXREAL_1:4;
     hence x-r < (h+c).m < x by A14,A10;
    end;
end;

theorem Th9:
for f be PartFunc of REAL,REAL, I be Interval, x be Real st
 f|I is_right_differentiable_in x holds
  f is_right_differentiable_in x & Rdiff(f|I,x) = Rdiff(f,x)
proof
    let f be PartFunc of REAL,REAL, I be Interval, x be Real;
    assume
A1:  f|I is_right_differentiable_in x; then
    consider r be Real such that
A2:  r > 0 & [.x,x+r.] c= dom(f|I) by FDIFF_3:def 3;

A3: dom(f|I) c= dom f by RELAT_1:60; then
A4: [.x,x+r.] c= dom f by A2;

    for h be 0-convergent non-zero Real_Sequence,
     c be constant Real_Sequence st rng c = {x} & rng(h+c) c= dom f &
     (for n be Nat holds h.n > 0) holds
      h"(#)(f/*(h+c)-f/*c) is convergent &
      lim(h"(#)(f/*(h+c)-f/*c)) = Rdiff(f|I,x)
    proof
     let h be 0-convergent non-zero Real_Sequence,
     c be constant Real_Sequence;
     assume that
A5:   rng c = {x} and
A6:   rng(h+c) c= dom f and
A7:   for n be Nat holds h.n > 0;

     consider N be Nat such that
A8:   rng(h^\N + c) c= ].x,x+r.[ &
      (for m be Nat holds (h^\N + c).m = (h+c).(N+m)) &
      for m be Nat st N <= m holds ( |. h.m .| < r & x < (h+c).m < x+r )
        by A2,A5,A7,Lm7;
     set h1 = h^\N;

     ].x,x+r.[ c= [.x,x+r.] by XXREAL_1:37; then
A9:  rng(h1+c) c= dom(f|I) by A2,A8; then
A10:  (f|I)/*(h1+c) = (f|I)*(h1+c) by FUNCT_2:def 11;

A11:  f/*(h+c) = f*(h+c) by A6,FUNCT_2:def 11;

A12:  for n be Nat holds h1.n > 0
     proof
      let n be Nat;
      h1.n = h.(N+n) by NAT_1:def 3;
      hence h1.n > 0 by A7;
     end; then
A13: h1"(#)((f|I)/*(h1+c) - (f|I)/*c) is convergent by A1,A5,A9,FDIFF_3:def 3;

     x < x+r by A2,XREAL_1:29; then
     [.x,x+r.] = rng c \/ ].x,x+r.] by A5,XXREAL_1:130; then
A14: rng c c= [.x,x+r.] by XBOOLE_1:7; then
A15: rng c c= dom(f|I) by A2;

A16:  rng c c= dom f by A2,A3,A14; then
A17:  f/*c = f*c by FUNCT_2:def 11;

     consider g be Real such that
A18:   for p be Real st 0 < p ex M be Nat st for l be Nat st M <= l holds
       |. (h1"(#)((f|I)/*(h1+c) - (f|I)/*c)).l - g .| < p
         by A13,SEQ_2:def 6;

     lim(h1"(#)((f|I)/*(h1+c) - (f|I)/*c)) = g by A13,A18,SEQ_2:def 7; then
A19:  Rdiff(f|I,x) = g by A1,A5,A9,A12,FDIFF_3:def 6;

A20:  now let p be Real;
      assume 0 < p; then
      consider M be Nat such that
A21:    for l be Nat st M <= l holds
        |. (h1"(#)((f|I)/*(h1+c) - (f|I)/*c)).l - g .| < p by A18;

      take K = N+M;
      hereby let l be Nat;
       assume K <= l; then
       reconsider i = l-(N+M) as Element of NAT by NAT_1:21;
       reconsider i1 = i+M as Element of NAT by ORDINAL1:def 12;

A22:   dom(h1+c) = NAT & dom c = NAT & dom(h+c) = NAT by FUNCT_2:def 1; then
       i1 in dom(h1+c) & i1 in dom c; then
       i1 in dom((f|I)*(h1+c)) & i1 in dom((f|I)*c) by A9,A15,RELAT_1:27; then
       i1 in dom((f|I)*(h1+c)) /\ dom((f|I)*c) by XBOOLE_0:def 4; then
A23:   i1 in dom( (f|I)*(h1+c) - (f|I)*c) by VALUED_1:12;

A24:   (h1+c).i1 in rng(h1+c) & c.i1 in rng c by A22,FUNCT_1:3;

A25:   l in dom(h+c) & l in dom c by A22,ORDINAL1:def 12; then
A26:   c.i1 = c.l by A22,FUNCT_1:def 10;

A27:   (h1").i1 = ((h")^\N).i1 by SEQM_3:18 .= (h").(N+i1) by NAT_1:def 3;

A28:   f.((h+c).l) = (f*(h+c)).l & f.(c.l) = (f*c).l
         by A22,ORDINAL1:def 12,FUNCT_1:13;

       l in dom(f*(h+c)) & l in dom(f*c) by A25,A6,A16,RELAT_1:27; then
       l in dom(f/*(h+c)) /\ dom(f/*c) by A11,A17,XBOOLE_0:def 4; then
A29:   l in dom( f/*(h+c) - f/*c ) by VALUED_1:12;

       (h1"(#)((f|I)/*(h1+c) - (f|I)/*c)).i1
         = (h1"(#)((f|I)*(h1+c) - (f|I)*c)).i1 by A10,A15,FUNCT_2:def 11
        .= (h1").i1 * ((f|I)*(h1+c)-(f|I)*c).i1 by VALUED_1:5
        .= (h1").i1 * ( ((f|I)*(h1+c)).i1 - ((f|I)*c).i1 ) by A23,VALUED_1:13
        .= (h1").i1 * ( (f|I).((h1+c).i1) - ((f|I)*c).i1 ) by A22,FUNCT_1:13
        .= (h1").i1 * ( (f|I).((h1+c).i1) - (f|I).(c.i1) ) by A22,FUNCT_1:13
        .= (h1").i1 * ( f.((h1+c).i1) - (f|I).(c.i1) ) by A24,A9,FUNCT_1:47
        .= (h1").i1 * ( f.((h1+c).i1) - f.(c.i1) ) by A2,A24,A14,FUNCT_1:47
        .= (h").l * ( (f*(h+c)).l - (f*c).l ) by A8,A26,A27,A28
        .= (h").l * (f/*(h+c)-f/*c).l by A11,A17,A29,VALUED_1:13
        .= (h"(#)(f/*(h+c)-f/*c)).l by VALUED_1:5;
       hence |. (h"(#)(f/*(h+c)-f/*c)).l - g .| < p by A21,NAT_1:11;
      end;
     end;
     hence h"(#)(f/*(h+c)-f/*c) is convergent by SEQ_2:def 6;
     hence lim(h"(#)(f/*(h+c)-f/*c)) = Rdiff(f|I,x) by A19,A20,SEQ_2:def 7;
    end;
    hence f is_right_differentiable_in x &
     Rdiff(f,x) = Rdiff(f|I,x) by A2,A4,FDIFF_3:15;
end;

theorem Th10:
for f be PartFunc of REAL,REAL, I be Interval, x be Real st
 f|I is_left_differentiable_in x holds
  f is_left_differentiable_in x & Ldiff(f|I,x) = Ldiff(f,x)
proof
    let f be PartFunc of REAL,REAL, I be Interval, x be Real;
    assume
A1:  f|I is_left_differentiable_in x; then
    consider r be Real such that
A2:  r > 0 & [.x-r,x.] c= dom(f|I) by FDIFF_3:def 4;

A3: dom(f|I) c= dom f by RELAT_1:60; then
A4: [.x-r,x.] c= dom f by A2;

    for h be 0-convergent non-zero Real_Sequence,
     c be constant Real_Sequence st rng c = {x} & rng(h+c) c= dom f &
     (for n be Nat holds h.n < 0) holds
      h"(#)(f/*(h+c)-f/*c) is convergent &
      lim(h"(#)(f/*(h+c)-f/*c)) = Ldiff(f|I,x)
    proof
     let h be 0-convergent non-zero Real_Sequence,
     c be constant Real_Sequence;
     assume that
A5:   rng c = {x} and
A6:   rng(h+c) c= dom f and
A7:   for n be Nat holds h.n < 0;

     consider N be Nat such that
A8:   rng(h^\N + c) c= ].x-r,x.[ &
      (for m be Nat holds (h^\N + c).m = (h+c).(N+m)) &
      for m be Nat st N <= m holds ( |. h.m .| < r & x-r < (h+c).m < x )
        by A2,A5,A7,Lm8;
     set h1 = h^\N;

     ].x-r,x.[ c= [.x-r,x.] by XXREAL_1:37; then
A9:  rng(h1+c) c= dom(f|I) by A2,A8; then
A10:  (f|I)/*(h1+c) = (f|I)*(h1+c) by FUNCT_2:def 11;

A11:  f/*(h+c) = f*(h+c) by A6,FUNCT_2:def 11;

A12:  for n be Nat holds h1.n < 0
     proof
      let n be Nat;
      h1.n = h.(N+n) by NAT_1:def 3;
      hence h1.n < 0 by A7;
     end; then
A13: h1"(#)((f|I)/*(h1+c) - (f|I)/*c) is convergent by A1,A5,A9,FDIFF_3:def 4;

     x-r < x by A2,XREAL_1:44; then
     [.x-r,x.] = rng c \/ [.x-r,x.[ by A5,XXREAL_1:129; then
A14: rng c c= [.x-r,x.] by XBOOLE_1:7; then
A15: rng c c= dom(f|I) by A2;

A16:  rng c c= dom f by A2,A3,A14; then
A17:  f/*c = f*c by FUNCT_2:def 11;

     consider g be Real such that
A18:   for p be Real st 0 < p ex M be Nat st for l be Nat st M <= l holds
       |. (h1"(#)((f|I)/*(h1+c) - (f|I)/*c)).l - g .| < p
         by A13,SEQ_2:def 6;

     lim(h1"(#)((f|I)/*(h1+c) - (f|I)/*c)) = g by A13,A18,SEQ_2:def 7; then
A19:  Ldiff(f|I,x) = g by A1,A5,A9,A12,FDIFF_3:def 5;

A20:  now let p be Real;
      assume 0 < p; then
      consider M be Nat such that
A21:    for l be Nat st M <= l holds
        |. (h1"(#)((f|I)/*(h1+c) - (f|I)/*c)).l - g .| < p by A18;

      take K = N+M;
      hereby let l be Nat;
       assume K <= l; then
       reconsider i = l-(N+M) as Element of NAT by NAT_1:21;
       reconsider i1 = i+M as Element of NAT by ORDINAL1:def 12;

A22:   dom(h1+c) = NAT & dom c = NAT & dom(h+c) = NAT by FUNCT_2:def 1; then
       i1 in dom(h1+c) & i1 in dom c; then
       i1 in dom((f|I)*(h1+c)) & i1 in dom((f|I)*c) by A9,A15,RELAT_1:27; then
       i1 in dom((f|I)*(h1+c)) /\ dom((f|I)*c) by XBOOLE_0:def 4; then
A23:   i1 in dom( (f|I)*(h1+c) - (f|I)*c) by VALUED_1:12;

A24:   (h1+c).i1 in rng(h1+c) & c.i1 in rng c by A22,FUNCT_1:3;

A25:   l in dom(h+c) & l in dom c by A22,ORDINAL1:def 12; then
A26:   c.i1 = c.l by A22,FUNCT_1:def 10;

A27:   (h1").i1 = ((h")^\N).i1 by SEQM_3:18 .= (h").(N+i1) by NAT_1:def 3;

A28:   f.((h+c).l) = (f*(h+c)).l & f.(c.l) = (f*c).l
         by A22,ORDINAL1:def 12,FUNCT_1:13;

       l in dom(f*(h+c)) & l in dom(f*c) by A25,A6,A16,RELAT_1:27; then
       l in dom(f/*(h+c)) /\ dom(f/*c) by A11,A17,XBOOLE_0:def 4; then
A29:   l in dom( f/*(h+c) - f/*c ) by VALUED_1:12;

       (h1"(#)((f|I)/*(h1+c) - (f|I)/*c)).i1
         = (h1"(#)((f|I)*(h1+c) - (f|I)*c)).i1 by A10,A15,FUNCT_2:def 11
        .= (h1").i1 * ((f|I)*(h1+c)-(f|I)*c).i1 by VALUED_1:5
        .= (h1").i1 * ( ((f|I)*(h1+c)).i1 - ((f|I)*c).i1 ) by A23,VALUED_1:13
        .= (h1").i1 * ( (f|I).((h1+c).i1) - ((f|I)*c).i1 ) by A22,FUNCT_1:13
        .= (h1").i1 * ( (f|I).((h1+c).i1) - (f|I).(c.i1) ) by A22,FUNCT_1:13
        .= (h1").i1 * ( f.((h1+c).i1) - (f|I).(c.i1) ) by A9,A24,FUNCT_1:47
        .= (h1").i1 * ( f.((h1+c).i1) - f.(c.i1) ) by A2,A14,A24,FUNCT_1:47
        .= (h").l * ( (f*(h+c)).l - (f*c).l ) by A8,A26,A27,A28
        .= (h").l * (f/*(h+c)-f/*c).l by A11,A17,A29,VALUED_1:13
        .= (h"(#)(f/*(h+c)-f/*c)).l by VALUED_1:5;
       hence |. (h"(#)(f/*(h+c)-f/*c)).l - g .| < p by A21,NAT_1:11;
      end;
     end;
     hence h"(#)(f/*(h+c)-f/*c) is convergent by SEQ_2:def 6;
     hence lim(h"(#)(f/*(h+c)-f/*c)) = Ldiff(f|I,x) by A19,A20,SEQ_2:def 7;
    end;
    hence f is_left_differentiable_in x &
     Ldiff(f,x) = Ldiff(f|I,x) by A2,A4,FDIFF_3:9;
end;

Lm9:
for I be non empty Interval, x be Real st inf I < x < sup I
 ex Z be open Subset of REAL st x in Z & Z c= ].inf I,sup I.[
proof
    let I be non empty Interval, x be Real;
    assume
A1:  inf I < x < sup I; then
A2: inf I < sup I by XXREAL_0:2;
    per cases;
    suppose A3: inf I = -infty;
     per cases     per cases;
     ::           (Stowarzyszenie Uzytkownikow Mizara:: This code can be distributed under the GNU :: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
      :: http://creativecommons.org/licenses/by-sa
     take Z;
      x-<<x1by :,;
        in :;
        r beReal;
       assume r in Z;
       inf I < r < sup I by A3,A4,XXREAL_0:4,6;
       hence r in ].inf I,sup I.[ by XXREAL_1:4;
      end;
      hence Z c= .inf I,up .;
     end;
suppose I  <> +;then
            FUNCT_2, F ,    java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
:x- <x  XREAL_1:;
      reconsider Z,   ;
      Z
thusx in  ,1,4;
      letrbe Real
       r  Z then
             IA36XXREAL_14java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
       SEQM_3,, FDIFF_3, XXREAL_3,,
      end;
hence=] I, I.;
     end;
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
suppose A6:inf  >i then
A7: infty     :6
supI=+ by
     reconsideri infI Real ,6XXREAL_014XREAL_0def1;
     per cases;
     A4 now

     consider   Realsuch that
A9:     by XREAL_1:1;
           thus x0 in x0 in    A1,A5;
      take Z;
      thus   Z by A1,9,XREAL_14java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
     nowlet r  ;
       assume r in Z; then
        < <   A8,XXREAL_0:,:;
       hence r in ].inf I,sup I.[ by XXREAL_1:4;

      Zc . Is .java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
     end;
     suppose sup I <>     |A)xin (1A  3;
      reconsiderendthen
    : =dom f2byA;
      take Z;
      thus x in Z by A1,    for x0 be Real holds x0 in A*1is_differentiable_in  A4;
      thus Z cc=]infIsup I.;
     end:dom (f2f1`A)=Ajava.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 42
    then


theorem Th11:
for       (*)|)x0=diff(f2f1)by ,A12,A14,DIFF_1def

 Ic dom f& for x be Real st in holds
erentiable_in )&
  (x =      . (`B))x0 * (1|)x0  A16FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
  (x end;
proof
     fbe  of REAL,EAL,I non empty Interval;
        
:   is_differentiable_on_intervalIjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
     hence I c= dom fend;
theorem :
      ( ]inf,up I. isopen Subset f  &]inf ,sup .=I
      (x =now persuppose  in&   REAL;
      (x in].IsupI.[ = ].,.;
     proof
      let x be Real;
      assume
A2:x I;
      thus]inf I,supI[= {}by ,XXREAL_0:3XXREAL_1:28;
      proof
       assume       per cases;
       f is_right_differentiable_in x by A1reconsider b=supI  ;
       hence f|      hence f|I f I,sup I.[ open Subset of REAL;
      end;
             sup I  ;
      proof
       assume A4: x        ;java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
       f is_left_differentiable_in 
hence|is_left_differentiable_in b A,4Tjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61

      assume x        per cases java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 35
      inf I < x < sup I by XXREAL_1:4; then
      consider Z be open Subset of REAL such that
A5:    x in Z & Z c= ].inf I,sup I.[ by Lm9;

      f is_differentiable_on Z by A1,A5,FDIFF_1:26;
      hence f is_differentiable_in x by A5,FDIFF_1:9;
     end;
    end;

    assume that
A6:  I c= dom f and
A7:  for x be Real st x in I holds
      (x =in x) &
      (x = sup       end;
      (  ].inf Isup.[implies f is_differentiable_inx;

A8: now assume inf I = sup I; then
A9:I={nfI by XXREAL_2:70; then
A10:  inf I in       ;
  x =inf I  Real;
     f|     assume :  . I, .[;then
java.lang.StringIndexOutOfBoundsException: Range [10, 5) out of bounds for length 33
A11:   r > 0 & [.x,x+r.] c= dom(f|I) by FDIFF_3:def 3;
     dom(f|I) c= I; then
A12:  [.x,x+r.] c= I by A11;
A13:  x < x+r by A11,XREAL_1:29; then
     x+r in {inf I} by A12,A9,XXREAL_1:1;
     hence contradiction by A13,TARSKI:def 1;
    end;

A14: inf I <= sup I by XXREAL_2:40;

A15: A1:  r in and
    
     assume A16: inf I inA3   = [a,b]by ,EASURE5:3;
     inf I =A4 I =[lower_boundI, upper_boundI.  A1,A2,NTEGRA1:4;
     f|  = =b:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
     hence f java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 8
    ;

A17: sup I in I implies f is_left_differentiable_in upper_bound I
    proof
     assume A18: sup I       I <  supby A5A6,XXREAL_01
     sup I = upper_bound I by Lm6; then
     fI is_left_differentiable_in upper_bound I by A18,7;
     hence f is_left_differentiable_in upper_bound I by Th10;
    Lm2:

A19:now  a be ;
assume A20:  .inf I,upI.;then
     reconsider a1=a as Real;
     inf I <a1<sup byA20,XXREAL_1:4java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
     henceA3: I  [ab[byA2,:def 4;
    end;
A21 reconsider J  I as non empty bounded_below real-membered set

A22:

    set J = ].inf I,supA6: a < b by A5,XXREAL_0

for bein . Isup.[ holds
     f|(].inf
    proof
     let x be Real;  <bby A5,XXREAL_0:; then
a 23: in ]I I.; then
     (r = inf I  r   I orr . I .java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 48

      exjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  st N1  . -f =L(px) +R.(-)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68

     ex r1 be Real st inf I < r1 < x
     proof
      per cases;
      =  non emptybounded_above real-membered set
       consider r1 be Real java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 26
:     r1  x  XREAL_12
       take r1;
       thus inf     hence r=sup  &r  upper_boundI or r in]inf, I.[
      end;
      suppose A27:inf I <> -infty;
A28:    inf I < x    end;
        I<> +nftyby :;then
       inf I in REAL by A27,XXREAL_0:14; then
       reconsider  =inf Ias Real;

       consider r1 be Real such that
for  beset, I be interval Subset of REAL st r in I & I is open_interval
       take     let r be set, I be interval Subset of REAL;
       thus inf I <r1 <x  A29;
      end;
     end;     consider a,b be R_eal such that
      Real such 
A30:  inf I < r1 < x;

     ex r2 be Real I  bby A3,:32java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
     
      ;
      suppose A31:sup
       consider r2 be       consider r2 be  REAL,REAL,Ibe Interval,xbe Real;
A32:     x < r2 by java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 15
       take r2;
thusx<r2<sup I byA31A32,:def 1,XREAL_0:9;
      end;
 +infty;
A34:supI> x by A23,XXREAL_14; then
       sup I <> -infty by XXREAL_0:5; then
       sup I A6: x < sup I bXXREAL_0:;
  =sup I  ;

       consider A8   - x>0by A6,,:51;
A35:A9:R0>0 by A4,8XXREAL_0:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
       aker2;
       thus x < r2 ,14 then

      
considerr2   
A36:x <r2< sup I;

A37: x-r1 > A37: x-r1 > 0c[x,+r.]by 34;
     set rr = min(x-r1,r2
      = .-rxrr.   ofx
       by A37,XXREAL_0:21,RCOMP_1:def 6;

 r2 1711,;then
A38:  ].    r0 =sup  - x  :;then
39  .,r2[c ]inf ,sup I. by ,A36,:;

     consider  java.lang.StringIndexOutOfBoundsException: Range [36, 32) out of bounds for length 47
A40:   N A16:x  x+Rby,XREAL_1:29215;then
     N c= dom f &  [x+. c= by,XXREAL_2def12;then
     N c= dom f /\ J by     [.x,x+R.] c= dom f /\ I by A13XBOOLE_0:def 4;then
A41:  N c= dom(f|J) 

     consider L be LinearFunc, R be     consider L be LinearFunc, R be c ={}  h+)c=dom(
A42:         h"#(fI/(h+c)- (|)*)is 

     for p be Real st p in Ncbe  ;
     proof
    pjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
      assume
N;
xin Nby :6;then
(|)p  . &(|J.x= f.x by A41,A43,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 58
      hencethesis ,,A40java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
     end;
     hence f|(].inf I,sup I.[) is_differentiable_in x by A41;
    end; then
    f is_differentiable_on ].inf I,sup I.[ by A22;
    hence f is_differentiable_on_interval I by A6,A14,A15,A17,A8,XXREAL_0:1;
end;

theorem
for f be PartFunc of REAL,REAL, I be non empty Interval st I is open_interval
 holds f is_differentiable_on I iff f is_differentiable_on_interval I
proof
    let f be PartFunc of REAL,REAL, I be non empty Interval;
    assume I is open_interval; then
    consider a,b be R_eal such that
A1:  I = ].a,b.[ by MEASURE5:def 2;

A2: a = inf I & b = sup I by A1,XXREAL_1:28,XXREAL_2:28,32;

    hence f is_differentiable_on I implies
     f is_differentiable_on_interval I by A1,XXREAL_1:4,28;
    assume f is_differentiable_on_interval I;
    hence f is_differentiable_on I by A1,A2;
end;

Lm10:
for  be  st isSubsetof REAL Xis  
proof
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   A1:X  Subset  ;
    bool REAL c= bool ExtREAL by NUMBERS:31,ZFMISC_1:67;
    hence   A1;
end;

Lm11:
forA1: f   
 I is A3:  x <> inf I;
proof
    let I be non empty Interval;
     :inf Iin I;
A2: now assume I is open_interval; then
     consider a,b be R_ealA6:  < xby X:;
A3:   I A8:-infty < x  XREAL_0d ,:2
     inf I = abyA3,2,XREAL_2:java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
     hence contradiction byset   (, -inf I)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
djava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    now assume
     I  ;then
 a    such that
A4:   I = ].java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
I=a  ,XXREAL_1:6,XXREAL_2:;
     hence contradiction byA1,4XXREAL_12java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    
    java.lang.StringIndexOutOfBoundsException: Range [31, 9) out of bounds for length 34
end;

Lm12::-=- def3java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
for I beR< I,XXREAL_02 
I is  or is left_open_interval
proof
;
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A2: now assume I is open_interval; then
     consider a,b be R_ealA17 -R  xby ,XREAL_1:4215 
A3:   I =    .-,x] c= I by A2,XXREAL_2:def 12;then
     sup   b  ,XREAL_1:8,32java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
     hence contradiction java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    end;
    now assume
     I is right_open_interval; then
     consider a be Real,bbeR_eal such that
A4:   I=[a.[byMEASURE5def 4;
java.lang.StringIndexOutOfBoundsException: Range [13, 5) out of bounds for length 45
     hence contradiction assume 
    end;
    hence thesis by A2,MEASURE5: domfI)=   ELAT_160;
end;

java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
for I be non A23  fI/hc =/*hc)by ,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49

Lm14:
orI nonjava.lang.StringIndexOutOfBoundsException: Range [18, 13) out of bounds for length 57
     nd;
proof
let  be   Interval;
    assume that
 Ijava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
A2 inf I < < sup I;

java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 36

 Lm10; then
q be Element   such java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
A4  inI   I< q A2,:94;
    reconsider q as Real by A4;
 I;
    thus e > 0 by A3 proof
    thus .lower_bound,lower_bound I+. =I
   

     suppose I is closed_interval; java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 8
:=[inf, I MEASURE617;
           let x be Element of X;
      hence [.     ((f1-f2)+f2)  f1.+V java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
     ;
 I  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 43
A6:  I = [.inf I,sup I.[ by MEASURE6:18;
REAL_1:3;
       [ ,I.]=I  A3A6,XXREAL_1:43;
     end;
    end;


Lm15:
 Intervalst     &inf I <  java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
 ex e be Real st e >    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 77
proof

    
A1:  supletI be 
  < ;

A3: 

    I is   assume A1 f  I;
    consider q be Element of java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 14
A4: q in I & q < sup I   x=Iimpliesitx=Ldifffx)) java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

    reconsider

thuse  by,A4,:50java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
     ,upper_boundI. c= I
    proof
     per cases by A1,Lm12;
     suppose I is closed_interval; then
A5:  I = [.inf I,sup I.] by MEASURE6:17;
      inf <   A4,A5:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
       .upper_bound I-,pper_boundI]c=I  ,,XXREAL_1:;
     end;
       is; 
java.lang.StringIndexOutOfBoundsException: Range [36, 2) out of bounds for length 40
         q by A4,,:;
      hence [.upper_bound I-ejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
     end;
    end;
end;

theorem
for f be PartFunc of REAL,REAL, x0,r be java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 34
 f is_right_differentiable_in
proof
    let reconsiderr1r Realjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    assumePr  Q  [r  A7,;
A1:  f is_right_differentiable_in x0 and
A2:  rng f = {r};

A3: ex e be      hence  in  java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
    for h be hence r inITbyA3;
+c)c f &(ornNat h.>)holds
            r  by ,7L;
     lim (h"(#)(f/*(h+c) - fA8:c ITjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
        thus  x  stxinI
     let h be non-zero 0-convergent      x=sup ITx=Ldifffx) java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
     assume let x be ;
A4:   rng c = {x0} and
:rng(+)=domfajava.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
:   orn Natn0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
     thus
A7:   h"(#)(fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

     consider e be Real such that
 e >0  [,0A1,FDIFF_3: ;

     for p be Real st 0<p ex n be Nat st for:    I is right_open_interval    ]inf ,up .[ by A9,12,m2;
      |. (       hencbyA9:;
     proof
      let p be Real;
      assume
A9:    0 < p;
      take n = 0;
      hereby let m be Nat;
         = m;
        < e 29;
:     in[x0x0e]by 1 
11     c c=domf by A8,431java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44

A12:   f/*(h+c)       xbe  xI
         by       (x = sup F2x=Ldifff,x) java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45

A13:dom(+      =NAT by :ef 1;then
       m inlet  be  of REAL;
       m in dom(f*(h+c))  per cases;
         by A5,A10,A8,A4,ZFMISC_1:31,RELAT_1:27; then
       m in       F1.x = Rdifff,)&F2.  (,)by ,A18;
A14:   m in dom(end;

       (h+c).m       F1.x = Ldiff,x  x=Ldiff(f,)  A17,A18;
         by A13,RDINAL1: 2,FUNCT_1:3; then
       f.((h+c suppose  <   & <  I 
       f(hc)m   &f.(.)  r by ,ARSKI: 1;then
A15:   (f*(h+c)).m = rend;

       
        = (hforf be PartFuncof REAL,b be Real st a<b &
       .= (h").m * ((f  ]ab.[
java.lang.StringIndexOutOfBoundsException: Range [12, 7) out of bounds for length 76
      end;
     end
      lim h"(#(/(+c)-f/*) = 0by A7,EQ_2:ef 7;
    end;
    hence
end;

theorem
or be  of REALREAL,x0,r  Real 
 f hence f is_differentiable_on.,.  A2,,A3;
proof
    let f be  REALREAL,a, Real a =b java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    
A1  is_left_differentiable_in and
A2:  rng      fbe PartFuncof ,REAL,a be ;

A3: ex:f  ['a,b'];
    for h be non-zero 0-java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
     st rng c =     st rng c = .b]asnonempty left_end  membered 
     h"(#)(f/*(h+c) - f/*c) is convergent &
     lim ("#(/*(h+c) -f/*)=0
    proof
     let   - 0 Real_Sequence, c  constantReal_Sequence;
      
:rng   x 
A5:   rng(h+c)letx ;
A6:   for n be Nat holds h.n<0;
     thus
:h()f*(+c)-f*c)isconvergent  A1,A4,,A5,6FDIFF_3def4;

  be 
:e>  .-ex0.  f ,d4java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55

     for p be Real st 0<p ex n be Nat st for m be Nat st n <= m holds
      |.h"#) -.< p
     proof
      let p be Real;
      assume
 0<p;
      take n = 0;
       let mbe
 =mjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21

       - < by44 java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
A10  c   java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
A11:    rng c c= dom fhisconvergent lim h=0 then

:*) *hc)& /*  *java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
         by A5,A10,A8

A13consider ElementNATthat
       m in dom(h+c) & m in dom c by A5:p = (1+c. by FUNCT_2113;
       m inc. in cby :;then
         by A5,A10,A8,A4,ZFMISC_1:31,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
       m in dom(f*(h+c)) /\ dom(f     |. h1k - 0.| < r by A4A8NAT_1:11; then
A14:   indom(f*h+)-fc)byVALUED_1:;

(+. rng+)&mjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
by,def12FUNCT_1 
       f.((h+c
       f.(+)m  r&f(.) =r by,:ef1 then
A15:(*(c)m=r&(*).m = by A13,:12F:;

       (h"(#)(f/*(h+c) - f/*c)).m

       .=(h)m* (*h).m- (*c)m) by A14,ALUED_1:;
       . (h"#)f*(+c) -f*c).m -0 |  p by A9,A15,COMPLEX1:44;
      end;

     hence lim (h"(#)(f
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    hence Ldiff      hN+c.  hc.m A12 ,java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 76
end thusfor m beNat  N=m | .m.  r  x <(c.  +java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71

|.m-0 |<r  A4;
for f be PartFunc of REAL,REAL, I|h| <rjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
 I<supI&(x  beReal st rng f = {)holds
fis_differentiable_on_interval &
stx inIholds f\).x = 0
proof
    let f be PartFunc of REAL,REAL, Ix hc. < +rA15A
    assumeendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
: = dom and
  constant r >  rngc={} &
A3:  ex r be Real st rng f = {r};

consider  suchthat
rngf={}byA3java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23

: assume
A6:  inf I in    java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
A7:  inf I java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 0
     consider e be Real such that
:    > 0 & [.lower_bound Ilower_bound I+e.] c= I by A6,A2,Lm14;
A9:  e > 0 & [.lower_bound I,lower_bound I+e.] c= dom f by A8,A1;

:for h  non-zero 0-convergent Real_Sequence,
      c be constant Real_Sequence st
        I  (+c)c   
( nbe Natholds h.n > 0) holds
        h"(#)(/*hc  f/c isconvergent
      & lim (h"(#)(f/*(h+c) - f/*c)) = 0
     proof
      let h be non-zero 0-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
       c  constant Real_Sequence;
      assumethat
A11:   c = {lower_bound I} and
A12:   rng(h+c) c= dom f and
        n  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 34

:forbeReal st <p
       ex N A10:  for m be holds h^N+c.=hc)(N+)
        |. (h"(#)(f/*(h+c) - f/*c)).k - 0 .    proof
      proof
       letp be ;
       assume
 0<p;
       take N=0;
hereby  beNat;
        assume N <= k;

A15:          . h.(N+m  .(N+)by ,NAT_1:ef 3

A16:    f/*c = f*c by A1,    ;
A17:f*(+c)=fh+)byA12,:def11;

A18:    dom mbeNat
k +    cbydef;then
in(f(c)&k indomf*)
          A12,,A6A,ZFMISC_131RELAT_1:; then
infc  (fc)by :ef ;
:indomf(+)-fc VALUED_112;

        (h+c).k in rng(h+c) & c.k in rng c
          by A18,ORDINAL1:def 12,FUNCT_1:3; then
f((+)k in rng & f.(.k) in rng  by ,12A15F:;
:f.(+)k = r& f(c.k)  r  A4,TARSKIdef 1;

        (h"(#)(f    end
         
        .= (h").k * ((for f be PartFunc of RE,REAL,Ibe Interval, x  Realst
        .=   is_right_differentiable_in x & Rdiff(|,x)= Rdiff(,x)
        .=(h)k*(.(h+)k  f.c.) by A18,ORDINAL1:ef 12FUNCT_1:13;
        hence |. (h"(#)(f/*(h    assume
         byA20,,COMPLEX1:44;
       end;
      end;
      henceh()(/*h+)  f/c   bySEQ_2def6;
      hence lim(h"(#)(f/*(h+c) - fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     end; then
     for h be non-zero 0-convergent Real_Sequence,
      c be constant     f  be  oldsh.n >  holds
       rng c = {lower_bound       lim(h"(#)(f/*(h+c)-f/*c(|,x
       (for n be Nat holds h.ncjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
        h"(#)(f/*(h+c) - f   (h)c 
     hence
ght_differentiable_in lower_bound I byA9,DIFF_3:ef3java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70

fh be-zero - Real_Sequencejava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
      c be constant Real_Sequence  ^;
        java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 52
       for n beNat holds h.n > 0) holds
        lim (h"(#)(f/*(h+c) - f/*c)) = 0 by A10;
      Rdifff,ower_bound I =0by A21,FDIFF_3:ef;
    end;

A22: now assume
A23:  sup I in I; then
24  sup I  upper_bound I by Lm6;
     consider e be Real such that
25&[upper_bound I-e,upper_bound I.] c= I by A23,A2,Lm15;
A26:  e > 0      hence.n>  by A7;

A27:  for h be non-zero 0-convergentA13 "#(fI)*(1c - (|I)*  convergent by A1,A5,A9,FDIFF_3:def 3;
c  constant Real_Sequence st
       rng c = {upper_bound I} & rng(h+c) c= dom f &
          holdsn )
*(h+c)- f/*c) is convergent
      & lim (h"(#)(f/*(h+c) - f/*c)) = 0
     proof
      let h A16:  rng c c= f by A2,,A14 then
       c java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 17
:    java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
A29:   rng(h+c) c= dom f and
       for n be Nat holds h.n < 0;

A30:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        NbeNatstfor  Natst < kholds
        |. (h"(#)(f/*(h+c) - f/*c)).k - 0 .| < p
      proof
       letp ealjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
       assume
A31:    0 < ;
       takeN0;
       hereby let k be Nat;
        assume N <       econsider =l(+M)as Element ofNAT  NAT_1:1;

A32:    rng c c= A22   dom(h1+)  NAT &dom c= NAT& dom(h+c)   FUNCT_2 1 then

A33:    f/*c = f*c by A1,A23,A24,A28,ZFMISC_1:31,FUNCT_2:def 11;
A34: *(+)by ,:def ;

A35:dom+c =NAT &dom =NAT by FUNCT_2:def 1; then
        k in dom(h+c) & k in dom c by ORDINAL1:def 12; then
        k in dom(*(+)) &k in dom(f*c)
         by A29,A1,A23,A24,A28,ZFMISC_1:31,RELAT_1:27; then
        k in dom(f*(h+cA24:  (1c)i1in rng(h1c  . byA22,:3;
A36:    k in dom(*(+c)  f*c)by :;

         c.k in rng c
          by A35,ORDINAL1:def 12,FUNCT_1:3A27:(1".  (h"^N)i1by :18 . (h".(+i1)byNAT_1:def 3;
        f.((h+c).k) A28   f.(h+).l) = (f*h+c).l & f(c.) =(*c)l
A37:    f.((h+c).k) = r &         byA22,RDINAL1def 12,FUNCT_1:13;


=(h").  (*(+) -f).k by A33,A34,VALUED_1:5
.=(h".k *(f*(+c)).k - (f*c.k)by,13
        .=  
        . h)k  f(h)k)-f(.k))by,ORDINAL1def 12,UNCT_113;
        hence |. (h"(#)(f/*(h+c) - f/*c)).k - 0 .| < p
         by A37,A31,COMPLEX1:44;
       end;
     java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
               )i1*((|)(h+)i1) (|.c)   ,1java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
      hence lim(h"(#)(f/*(h+c) - f/*c)) = 0 by A30,SEQ_2:def 7;
     end;
then
forh non-ero convergent Real_Sequence,
beconstant st
rngc=upper_boundI &rng(+c)c= dom f java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
( nbe holds .n <0 holds
convergent;

     hence
 fis_left_differentiable_in upper_bound I by A26,FDIFF_3def 4;

     for java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
      c be constant Real_Sequence st
       rng c = {upper_bound I} & rng(h+c) c= dom f &
       (for n be Nat holds h.n < 0) holds
        lim (h"(#)(f/*(h+c)java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
 5;
    end

;

Jc= Lm13 
A40: J c= dom fA3:domfI c=dom by :60; then
A41: dom(f|J) = J by RELAT_1:62;

    java.lang.StringIndexOutOfBoundsException: Range [49, 7) out of bounds for length 60

     let x be Real;
     assume
A42:  x inJ then
 I < <  I  :;then
java.lang.StringIndexOutOfBoundsException: Range [23, 5) out of bounds for length 48
A43:   x in Z & Z c= J:rng c = x} and

      N be Neighbourhood of  suchthat
A44:Nc=ZbyA43,RCOMP_1:18;
A45:  N c= dom(f|J) by A41,A43,A44;

     for hbe non- 0convergent Real_Sequence,
      c be constant Real_Sequence st
       rng c =rngh+c)c dom(|)holds
"(fJ/(c-f)*)is convergent
java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
      let h be non-zero 0-convergent Real_Sequence,
      c beA10: (f)*h+  (|I*(h1+c) byFUNCT_2:def 11;
      assume that
 rng  ={x} and
A47:    rng(h+c) c= dom(f|J)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

      for p be Real st 0 < p
       ex N be Nat st for k henceh1n<  A7
        |.(h"()(f|)/(h++c -(|J)*c)).k - 0 | <p
      proof
       let p be Real     x-r <xbyA2,:44;then
assume
 0  p;
       take N = 0;
       thus for k be Nat st N <= k holds
|J)*hc)-(|)*c))k-0.| < 
       proof
        let k be Nat;
        assume N <= k;

J) by A41,A42,A46,ZFMISC_131;

A50:    (f|          A13 ;
byA41ZFMISC_1:,java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 56

A51:    dom(h+c) = NAT & dom java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        k in dom(h+c) & k in dom c by ORDINAL1:def 12; then
        k in dom((f|J)*(h+c)) & kA21:for  beNat  M<=lholds
          by ,41,42,,FMISC_1:,:27; then
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A52:           assume  < l;then

n (c & k rng 
          by A51,ORDINAL1:A22:   dom(h1+c) = NAT & dom c &dom(+   byFUNCT_2def1 then
A54:    (f|J).((h+c        dom(|I*h1c))&i1 dom(f)*)byA9,15,:27;then
byA49,47FUNCT_1:47;

dom(|) c=dom  by 60;then
        f.((h+c).k) in rng f & f.A24   h1+)i1 (h1c) &c in c by A22,UNCT_1:;
k)= r&f.c.)  r byA4,:def 1;

        (h"(#)((f|J)/A26:   ci1=c. by A22,FUNCT_1def 10java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
         (h".k *(fJ*(+c)- (|)c.k by A50VALUED_1:5
        .= (h").k * (((f|J)*(h+c)).k - ((f|J)*c).java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       . h")k*(f|)((+c.k -(fJc)k
            by ,ORDINAL1:def FUNCT_113
        .= (h").k * ((f|J).((       l  dom*(+c)   (*)byA25,6A16,:;then
            ,13
        hence |. (h"(#A:    indom /hc) - f/*c )by VALUED_1:12java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
          by A48,           (h1"#)(|I)(h1+c)- (f|*c).i1 by A10,A15,FUNCT_2:def 11
       end;
      end;
      hence      hence ".i1 *( (f|)(+c)i1  (f|)c). )  ,

hence |  x byA45FDIFF_2;
    end; then
    f is_differentiable_on J by A40;
    
   is_differentiable_on_intervalIby A1,A5,22;

    thus for x be Real st x in I holds (f`\ .=(h"#)f/(+c-/c). by 5java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    proof
     let x       h"#(/(+)f*)isconvergent : 6
     assume A57: x in I;
     per cases;


(\)x  by A56A5,A58D;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
     suppose A59: x = sup    letI   Interval x Real;
      x = upper_bound I by A57,Lm6;
      hence (f`\I).x = 0 by A56,A22,A57,A59,Def2;
     end;
     suppose A60: x <> inf I & x <> sup I; then
A61:   (f`\I).x = diff(f,x) by A56,A57,Def2;
      inf I <= x <= sup I by A57,XXREAL_2:61,62; then
      inf I < x < sup I by A60,XXREAL_0:1; then
      consider Z be open Subset of REAL such that
A62:    x in Z & Z c= ].inf I,sup I.[ by Lm9;
A63:   Z c= dom f by A1,A62,A39; then
A64:   f is_differentiable_on Z & for x be Real st x in Z holds (f`|Z).xA1:inf I< x <sup I; then
        by A3,FDIFF_1:11;
      (f`|Z).x = 0 by A62,A63,A3,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 15
            reconsider Z =] x1,+[as Subset ;
     end;
    end;
end;

theorem
 f be PartFunc of REAL,,x0beReal 
 dom f c= left_open_halfline x0 & f is_Lcontinuous_in x0
  holds f is_continuous_in x0
proof
    let f be PartFunc of      suppose supI <>+nfty;then
    assume that
A1:  dom f c= left_open_halfline x0 and
A2:  f is_Lcontinuous_in x0;

          thus in by A5,1,XREAL_1:4;
       java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 26
    proof

     assume that
A3:   rng s c= dom f and
A4:   s is convergent and
A5:   lim s  x0;
     rng s c     sup  =+infty by XXREAL_0:3; then
      =left_open_halflinex0 /\ dom f  A3,XBOOLE_1:19;
     hence f/*s java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
    end;
    hence f is_continuous_in:x<1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
end;

theorem
for f be PartFunc of REAL,inf I < r < sup I by A8:XXREAL_1:;
 dom f c= right_open_halfline x0 & f is_Rcontinuous_in x0
  holds f is_continuous_in x0
proof
    let f be PartFunc of REAL,REAL,      reconsider s =  IasReal by ,2XREAL_0:def ,XXREAL_014java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
    assume       take Z;
A1:  dom f c= right_open_halfline java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 32
A2:  f is_Rcontinuous_in x0 end;

    for s be java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
f/sis convergent x0=(/)

     let s be Real_Sequence
     assume that
A3:   rng s c= (x in ].inf I,sup java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 58
A4:   s is convergent andhereby assume
A5:   lim s = x0;
     hence I c=dom f;
     rng s c= right_open_halfline x0 /thus for  Realst  in  
     hence f/*s is convergent & f.x0 = lim(      (x =I f| java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 60
    end;
    hence f is_continuous_in x0 by FCONT_1:def 1;
end;

begin :: Fundamental Properties

theorem
for f be PartFunc of REAL,REAL, I be non empty Interval st
 I c= dom f & inf I < sup I & f|I = id I holds
  f is_differentiable_on_interval I &
  for x be Real st x in I holds (f`\I).x = 1
proof
    let f be PartFunc of REAL,REAL, I be non empty Interval;
    assume that
A1:  I c= dom f and
A2:  inf I < sup I and
A3:  f|I = id I;

A4: for x be set st x in Iend;
    proof
     let java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
     assumex   I  |is_right_differentiable_in
     (f|I).x = f.x by FUNCT_1:49;
     hence f.x =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;

A6: now assume
A7:  inf inI 
A8:  inf I = lower_bound I by Lm5;
     consider e be Real such that
A9:A13:   <x+ by A11,REAL_1:29; then
A10:  e > 0 & [.lower_bound I,lower_bound I+e.] c= dom f by     xI by A12,9XXREAL_1:1;

A11:  for h be non-zero 0-convergent Real_Sequence,
      be Real_Sequencest
       rng c = {lower_bound I} &A15 I   implies f is_right_differentiable_in lower_boundjava.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
       (for n be Nat holds h.n > 0) holds
        h"(#)(f/*(h+c) - f/*c) is convergent
      & lim (h"(#)end;
     java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
      let h be non-zero 0-convergent Real_Sequence,
       c be constant Real_Sequence;
      assume that
A12:   rng c = {lower_bound I} and
A13:   rng(h+c) c= dom f and
A14:    for n be Nat holds h.n > 0;

A15:   inf I a1 < by A20X:4;
       ex N be Nat st     end;
        |. (h"(#)(f/*(h+ .Is.   Th2;
      proof
;
       assume
A16f|(].nf ,sup I.)is_differentiable_in java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
       h is convergent & lim h = 0; then
       consider N be Nat such that
A17:     for m be Nat st N <= m holds |. h.m - 0 .| < e by A9,SEQ_2:def 7;

       take N;
       let beNat;
        assume A18: N <= k;
        h.k - 0 > 0 by A14; then
        |. h.k        r1   by :2;
A19:     0 < h.k < e by A17,A14,A18;

A20:    rng c c= I by A7,A8,A12,ZFMISC_1:31;

A21 f/c =*  ,A7A8AZ31FUNCT_2def 11;

A22:    f       inf I in   A27X:;then

A23:     dom(h+c) = NAT & dom c = NAT by FUNCT_2:def 1; then
        k in dom(h+c) & k in dom c by ORDINAL1:def 12; then
        k in dom(f*(h+c)) & k in dom(f*c)
         by A13,A1,A7,A8,A12,ZFMISC_1:31,RELAT_1:27; A:     iI < r1 < xby XREAL_15;
        k in dom(f*java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A24:    k in dom(f*(h+c)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

A25:     dom h = NAT by FUNCT_2:def 1; then
A26:A32:     x r2 by:1;

A27:     h.k in rng h by A25,ORDINAL1:def 12,FUNCT_1:3;

A28:     (h+c).k sI >-by XXREAL_0: 

A29:     (h+c).k = h.k java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        c.k = lower_bound I by A28,A12,TARSKI:def 1; java.lang.StringIndexOutOfBoundsException: Range [7, 57) out of bounds for length 15
        lower_bound I < (h+c).k < lower_bound I + e by A19end; then
,XREAL_1:8,29; then
        (h+)k in .lower_bound I,ower_bound I+e.]byXXREAL_11;then
30:    f.(h+c)k  +) .k =kA4,,A20

        b XXREAL_0,java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
         =consider  of x
        .= (h"N =dom f  = J by ,A39A; then
        .= (h").k * (f.((h+c).k) - (f*c).k) by A23,ORDINAL1:def 12,FUNCT_1:13
        .= (h").k Nc=dom / J  :;then
        .= (h").k * (h.k) by A25,A26,ORDINAL1:def 12,VALUED_1:13
        . (h.k)  h.)VALUED_110
        .= 1 by A27,XCMPLX_0:def 7;
        hence |. (h"(#)(f/*(h+c) - f/*c)).k - 1 .| < p
         by A16,COMPLEX1:44;
       end;
      end;
      hence h"(#)(f/*(h+c) - f/*c) is convergent by SEQ_2:def 6;
       lim(()f*hc -f/c)= 1 ,:def 7;
     java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
     then
     for h be non-zero 0-convergent Real_Sequence,
      c be constant Real_Sequence java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
       rng c = {lower_bound I} & rng(h+c) c= holds   I iff f  
       (for n be Nat holds h.let f be PartFunc of REAL,REAL, I be non empty Interval;
        "#)f*hc)-f/c) is convergent;
     hence
A31:   f is_right_differentiable_in lower_bound I by A10,FDIFF_3:def 3;

     for h be non-zero 0-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
      c be constant Real_Sequence st
       rng c = {is_differentiable_on_interval I;
        h.n >0 
        lim (h"(#)(fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     hence Rdiff(f,lower_bound I)java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    end;

A32: now assume
A33:  sup I for I be non empty Interval st inf I in I holds
A34:sup  Iby;
     consider e be Real such that
I- I. =Iby ,
A36:  e > 0 & [.upper_bound I-e,upper_bound I.] ci= a by ,28Xjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 45

A37:  for h be nonI isleft_open_intervalthen
      c be constant Real_Sequence st
       ) c= dom  java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
       (for n be Nat holds h.n < 0) holds
        h"(#)(f/*(h+c) - f/*c) is convergent
      & lim (h"(#)(f/*(h+c) - f/*c)) = 1
     proof
      let h be non-zero 0-convergent Real_Sequence,
       c be constant Real_Sequence;
      assume that
A38:  rng ={upper_boundI and
A39:   rng(h+c) c= dom f and
A40:    for n be Nat holds h.n < 0;

java.lang.StringIndexOutOfBoundsException: Range [10, 3) out of bounds for length 29
       ex N be Nat st for k be Nat st N <= k holds
        |. (h"(#)(f/*(h+c) - f/*cL:
      proof
       let p be Real;
       assume
A42:
       h is convergent &: inf injava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
       consider N be Nat such that
:for  be Nat   <=m olds |: 7

       take N;
       hereby let k be Nat;
        assume A44: N <= k;
        h.- 0<0  ;then
        .h.k -0.   hk0 by ABSVALUE: 
        - h.k < e by A44,A43; then
A45:     -e < h.k < 0 by A40,  I = [.inf I,sup I.[ by MEASURE6

A46:    rng c c= I by A33,A34,A38,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 8

A47:    f/*c = f*c by A1,A33,A34,A38,for I be non empty Interval st sup I in I & inf I < sup I
A48:    f/*(h+c) = f*(h+c) by A39,FUNCT_2:def 11;

A49:     dom(h+c) = NAT & dom c = NATlet be non java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 32
        in dom(+)&k  dom c by ORDINAL1def 12;then
        in((+c  indom(cjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
         by A39,A1,A33,A34,A38,ZFMISC_1:31,RELAT_1:27    consider q  Element of ExtREAL such that
        k in A4: q in I & q  sup  byA2,XREAL_295;
java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 47

A51:     dom h = NAT by FUNCT_2:def 1; then
A52:     h+c-c = h by A49,Th6;

A53:     h.k in rng h by A51,ORDINAL1:def 12,FUNCT_1:3;

A54:     (h+c).k in rng(h+c) & c.k in rng c by A49,ORDINAL1:def 12,FUNCT_1:3;

java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 67
        c.k = upper_bound I by A54,A38,TARSKI:def 1; then
        upper_bound I-e < (h+c).k < upper_bound I by A45,A55,      hence [.pper_boundI-e,pper_bound I.] c= I by A3,A6,XXREAL_1:39;
        (h+c).k in [.upper_bound I-e,upper_bound I.] by XXREAL_1:1; then
A56:    f.((h+c).k) = (h+c).k & f.(ce;

        (h"#(*hc)-f/)k
         = (h").k * (f*(h+c) - f*c).k by A47,A48,VALUED_1:5
        .= (h").k * ((f*(h+c)).k - (f*c).
        .= (h").k * (f.((h+c).k) - (f*c).k) by A49,ORDINAL1:def 12,FUNCT_1:13
        .= (h").k * ((h+c).k - c.k) by A56,A49,ORDINAL1:def 12,FUNCT_1:13
        .= (h").k * (h.k) byA3:ex  be  e> & . e.] c= dom by ,:def 3;
        .= (h.k)" * (h.k) by VALUED_1:10
        .= 1 by A53,XCMPLX_0:def 7;
        .(h"#(/(h+  /*))k - 1 . <p
         by A42,COMPLEX1:44;
       end;
      end;
      hence h"(#)(f/*(h+c) nlet  be non-ero 0- Real_Sequence c  constantReal_Sequence
      hence lim(h"(#)(f/*(h+A4:  rng  ={0}and
     end;
     then
     for h be non-zero 0A7:  "#(/(+)-f/c  by ,A,: ;
      c be constant Real_Sequence st
       rng c = {upper_bound I} &        rng c = {upper_bound I} & rng
       (or n e holds h.   holds
        ()f*h+  /*c) is convergent;
     hence
A57:   f is_left_differentiable_in upper_bound I by java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 12

     for h be non-zero 0-convergent Real_Sequence,
      c be constant Real_Sequence st
       rng c = {upper_bound I} & rng(h+c) c= dom f &
       (for n be Nat holds h.n < 0) holds
        lim (h"(#)(f/*(h+c) - A12:  /(c  (+c) &f/c = *
     hence Ldiff(f,upper_bound I) = 1 by A57,FDIFF_3:def 5;
    A13:   dom(h+c) = NAT & dom c = NAT by FUNCT_2:def 1; then
    set J = ].inf I,sup I.[;

A58: J c= I        m in dom(f*((f*(h+c) & m  dom(f*)
         byA5,,A8,4ZFMISC_1:1,ELAT_1:27; then
java.lang.StringIndexOutOfBoundsException: Range [14, 3) out of bounds for length 32

A61: forh+). in (+c) & c.m in rng c
     byA13,ORDINAL1: 12,UNCT_1:;then
     let x be set;
     assume A62: x in J;
java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
     hence (f|J).x = x by A4,A62,A58;
    ;

    for x be Real st x in J holds f|J is_differentiable_in x
    proof
     et xbe Realjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
     assume
A63:  x  J 
     inf I < x < sup I by XXREAL_1:4; then
     consider Z be open Subset of REAL such that
A64:   x in Z & Z c= J by Lm9;
     consider N be Neighbourhood of x such that
A65:   N c= Z by A64,RCOMP_1:18;
A66: N = dom(|J)by A60,64A65;

     for h be non-zero 0-convergent Real_Sequence,
      c be constant Real_Sequence    letfbe PartFunc of REAL,REAL, x0,r be Real;
       rng c = {} & rng(h+)c= dom(fJ holds
        "()((|)*(h+c)(|)/*c)is 
     proof
      let h be non-zero 0-convergent Real_Sequence,
      c be constant Real_Sequence;
      assume that
A67:    rng c =for h -zero0- , c 
:   rng(+) c= dom(|J)

      for p  Real st 0<p
       ex N be Nat st for k be Nat st N <= k holds
        |. (h"(#)((f|J)/*(h+c) - (f|J)/*c)).k -    proof
      proof
        Real
       assume
A69:     0 < p;
       take N = 0;
       thus for k be Nat st N <= k holds
        | ("(#((f|J)*(h+c) -(f|J)/*c). - 1.| <p
       proof
        let k be Nat;
        assume N <= k;

A70:    rng c c= dom(f|J) by A60,A63,A67,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 0
A71:    (f|J)/*(h+c) = (f|J)*(h+c) & (f|J)/*c = (f|J)*c
          by A68,A60,A63,A67,ZFMISC_1:31,FUNCT_2:def 11;

A72:     dom(h+c) = NAT & dom c A9:     < p;
        k in dom(h+c) & k in dom c by ORDINAL1:def 12; then
        k in dom((f|J)*(h+c)) & k in dom((f|J)*c)
          by A68,A60,A63,A67,ZFMISC_1:31,RELAT_1: by A68,A60,A63,A67,ZFMISC_1:31,RELAT_1:27
        k in dom((f|J)*(h+c)) /\ dom((f|J)*c) by XBOOLE_0:def 4; then
A73:    k in dom((f|J)*(h+c) - (f|J)*c) by VALUED_1:12;

        (h+c).k in rng(h+c) & c.k in rng c
          by A72,ORDINAL1:         by A5,A10,A8,A4,ZFMI:31,FUNCT_2: 11;
A74:    (f|J).((h+c).k) = (h+c).k & (f|J).(c.k) = c.k by A60,A61,A70,A68;

A75:     dom h = NAT by FUNCT_2:def 1; then
java.lang.StringIndexOutOfBoundsException: Range [27, 3) out of bounds for length 30

A77:h.k  rng h  A75,RDINAL1:def ,FUNCT_1:3;

        (h"(#)((f|J)/*(h+c) - (f|J)/*c)).k
         = (h").k * ((f|J)*(h+c) - (f|J)*c).k by A71,VALUED_1:5
        ((f|J. by A73,VALUED_1:13
        .= (h").k * ((f|J).(
             A72,ORDINAL1:def 12,A72,ORDINAL1:def 12,FUNCT_1:13
        .= (h").k * ((h+c).k - c.k) by A74,A72,ORDINAL1:def  y ,:12,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 47
        .= (h").k * (h.k) by A75,A76,ORDINAL1:def 12,VALUED_1:13
        .= (h.k)" * (h.k) by VALUED_1:10
        .= 1 by A77,XCMPLX_0:def 7;
        java.lang.StringIndexOutOfBoundsException: Range [47, 13) out of bounds for length 62
          by A69,COMPLEX1:44;
       end;
      end;
      java.lang.StringIndexOutOfBoundsException: Range [54, 11) out of bounds for length 70
     end;
     hence f|J is_differentiable_in x by A66,FDIFF_2:11;
    end;then
    f is_differentiable_on J by A59;
    hence
A78:  f is_differentiable_on_intervalhence lim ("()(/*h+)-f/c) =0by ,SEQ_2:def 7;

        end;
    
     let x beend;
     assume A79: x in I;
     per cases;
     suppose A80: x = inf I; then
      x=lower_bound I by A79,Lm5;
      hence (f`\I).x = 1 by A6,A78,A79,A80,Def2;
       end;
     suppose A81: x = sup I; then
      x = upper_bound I by A79,Lm6;
      hence (f`\I).x = 1 by A78,A79,A81,A32,Def2;
     end;
     suppose : x< inf I & x<>sup I; then
A83:   (f`\I).x = diff(f,x) by A78,A79,Def2;
      inf I <= x <= sup I by A79,XXREAL_2:61,62; then
      inf I < x < sup I by A82,XXREAL_0:1; then
      consider Z be open Subset of REAL such that
A84:x  ZZ & Z c=]inf I,up I.  Lm9;
A85:Zc dom f by A1,58A84;then
A86:  dom(f|Z) = dom (id Z) by RELAT_1:62;
      for p be Element of REAL st p in dom(f|Z
      proof
       let p be Element of REAL;
       assume
A87:     p in dom(f|Z); thenA8:  e > 0 &[.ower_bound I,lower_bound I+e.] c= I by A6,A2,Lm14;
A88:    p in dom f & p in Z by RELAT_1:57A9:e  0 &.lower_bound I,ower_boundIe.c= dom f by A8,A1;

       Z c= I A10:  for h be n-zero0convergent Real_Sequence,
       (f|I)|Z = f|Z by RELAT_1:74; then
       (|). = (|).p by A87,FUNCT_1:49
         .= p by A3,A88,A84,A58,FUNCT_1:18;
       hence thesis by A87,FUNCT_1:18;
      end; then
A89:   f|Z = id Z by A86,PARTFUN1:5; then
A90:   f is_differentiable_on Z & for x belet  be non-ero -convergentReal_Sequence,
        by A85,FDIFF_1:17;
      (f`|Z).x = 1 by A84,A89,A85,FDIFF_1:17;
      hence (f`\I).x = 1 by A83,A84,A90,FDIFF_1:def 7;
     end;
    end;
end;

theorem
for f1,f2 be PartFunc of REAL,REAL, I be non empty Interval st
 I c= dom(f1+f2) & f1 is_differentiable_on_interval I &
 f2 is_differentiable_on_interval I holds
  f1+f2 is_differentiable_on_interval I &
  (f1+f2)`\I = f1`\I + f2`\I &
  for x be Real st x in I holds ((f1+f2)`\I).x = (f1`\java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 14

    let f1,f2 be PartFunc of REAL,REAL, I be non empty Interval;
    assume that
A1:  
A2:  f1 A16:    f/*c = f*c by A1,A6,A7,A11,ZFMISC_1:31,FUNCT_2:def 11;
A3:  f2 is_differentiable_on_interval I;

    set J = ].inf I,sup I.[;

    J c= I by Lm13; then
A4: J c= dom (f1+f2) by A1;

A5: for x beReal st x in J holds (f1+f2)|J is_differentiable_in x
    proof
     let x be Real;
     assume x in J; then
     f1| is_differentiable_in x & f2|J is_differentiable_in x
       by A2,A3,FDIFF_1:def 6; then
     f1|J + f2|J is_differentiable_in x by FDIFF_1:13;
     hence (f1+f2)|J (h+c).k in rng(+)&c.  rng c
    ndjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
    hence
 f1+f2 +f2f2 is_differentiable_on_interval java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
       by A1,A2,A3,A4,FDIFF_1:def 6,FDIFF_3:10,("#(/hc -/*c))java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34

A7: dom((f1+f2)`\I) = I by         .= (h").k * ((f*(h+c)).-(*c)k  A19V:13
    (f1`\I)  I  (2\)=I by A2,A3,Def2;then
A8: dom(f1`\I+f2`\I) = I /\ I by VALUED_1:def 1;

A9: for x        hence | h()f*h+)-f/*)k - 0 .| p
      ((f1+f2)`\I).x = (f1`\I + f2`\I).x
    
     end 
     assume A10: x in dom((f1+f2)`\I); then
A11:  x in I by A6,Def2;
     per c be cons  st
     suppose
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 22
A13:   inf I = lower_bound I byjava.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 10
      (f1`\I).x = Rdiff(f1,x) & (f2`\I).x = Rdiff(f2,x) &
      ((f1+f2)`\I).x = Rdiff(f1+f2,x) by A2,A3,A6,A11,A12,Def2; then
      ((f1+f2)`\I).x = (f1`\I).x + (f2`\I).x
        by A10,A6,Def2,A12,A13,A2,A3,FDIFF_3:16;
      hence ((f1+f2)`\I).x = (f1`\I + f2`\I).x by A7,A8,A10,VALUED_1:def 1;
     end;
     suppose
A14:   x = sup I; then
A15:   sup I = upper_bound I by A11,Lm6;
      (f1`\I).x = Ldiff(f1,x) & (f2`\I).x = Ldiff(f2,x)        rng c ={lower_boundI  hc =dom  java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
      ((f1+f2)`\I).x = Ldiff(f1+f2,x) by A2,A3,A6,A11,A14,Def2; then
      ((f1+f2)`\I).x = (f1`\I).x + (f2`\I).x
        by A10,A6,Def2,A14,A15,A2,A3,FDIFF_3:10;
      hence ((f1+java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 0
     end;
     suppose
A16:   x <> infe beRealsuchthat
A17:(1\)x  difff,  
      ((f1+f2)`\I).x = diff(f1+f2,x) by A16,A11,A2,A3,A6,Def2;

      inf I
A18:   inf I < x< sup I y A16,XXREAL_0:1;
      consider Z be open Subset of REAL such that
A19:    x in Z & Z c= ].inf I,sup I.[ by A18,Lm9;

_ Z   is_differentiable_onZ java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
      f1+f2 is_differentiable_on Z by 0
      ((f1+f2)`|Z).x = diff(f1,x) + diff(f2,x) by A19,FDIFF_1:18; then
      ((f1+f2)`\I).x = c be  Real_Sequencejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      hence ((f1+A:    c ={upper_bound I} and
     end;
    end;
    hence (f1+f2)`\I = f1`\I + f2`\I by A7,A8,PARTFUN1:5;
    hereby let x ex  beNatst for  be Nat N= k holds
     
A21:   x in I; then
     ((f1+f2)`\I).x = (f1`\I + f2`\I).x by A7,A9;
     A31:    0 < p;
    end;
end;

theorem
for f1,f2 be PartFuncA32:   rng c =dom  by A1,A23A24A28,ZFMISC_1:31;
 I c= dom(f1-f2) & f1 is_differentiable_on_interval I &
  is_differentiable_on_interval holds
  f1-f2 is_differentiable_on_interval I&
  (f1-f2)`\I = f1`\I - f2`\I &
  for x be Real  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 59

     of,,Ijava.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 64
    assume that
A1:I c=domf1f2) 
A2:  f1 is_differentiable_on_interval
A3: f2 is_differentiable_on_interval I;

    reconsider J = ].inf I,sup I.[ as open Subset of REAL by Th2;

    J c= I by Th2; then
A4: J c=("#(*hc) f/c)k

A5: for x be Real st x in J holds (f1-f2)|J is_differentiable_in x
    proof
     let x be Real;
     assume x in J; then
     f1| is_differentiable_in x & f2|J is_differentiable_in x
       by A2,A3,FDIFF_1:def 6; then
     f1|J - f2|J is_differentiable_in x by FDIFF_1:14;
     hence (f1-f2)|J is_differentiable_in x by RFUNCT_1:47;
    end;
    hence
A6:  f1-f2 is_differentiable_on_interval I
       by A1,A4,A2,A3,FDIFF_3:11,17,FDIFF_1:def 6; then

A7: dom(((or Natholds h.n  0) holds
    (1`\I) = I & dom(f2`\)=I  ,3Def2;then
A8java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

A9: for x be Element of REAL st x in dom((f1-f2)`\I) holds
     ((f1-f2)`\I).x = (f1`\I - f2`\I).x
    proof
     x be Elementof REAL;
     assume A10: x in dom((f1-f2)`\I); then
A11:  x in I by A6,Def2 lim(h"#(/(+)-f/*c)) = 0 by A27;
     per cases;
     suppose
A12:   x = inf I; then
A13:   inf I = lower_bound I by A11,Lm5;
      (f1`\I).x = Rdiff(f1,x) & (f2`\I).x = Rdiff(f2,x) &
      ((f1-f2)`\I).x = Rdiff(f1-f2,x) by A2,A3,A6,A11,A12,Def2; then
      ((f1-f2)`\I).x = (f1`\I).x - (f2`\I).x
        by A10,A6,Def2,A12,A13,A2,A3,FDIFF_3:17;
      hence ((f1-f2)`\I).x = (f1`\I - f2`\I).x by A7,A8,A10,VALUED_1:13;
     end;
     suppose
A14:   x = sup I; then
A15:   sup I = upper_bound I by A11,Lm6;
      (f1`\I).x = Ldiff(f1,x) & (f2`\I).x = Ldiff(f2,x) &
      ((f1-f2)`\I).x = Ldiff(f1-f2,x) by A2,A3,A6,A11,A14,Def2; then
      ((f1-f2)`\I).x = (f1`\I).x - (f2`\I).x
        by A10,A6,Def2,A14,A15,A2,A3,FDIFF_3:11;
      hence (f1-)\)x (1`\I -f2`\I)xby A7,,A10,VALUED_1:13;
     end;
     suppose
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
A17:   (f1`\I).x = diffA39:J =I by Lm13; hen
      (f1-f2)`I).x = diff(f1-2x) by A16,11,A2,3,6,Def2;

      inf I <
A18:   inf I < x < sup I by A16,XXREAL_0:1; then
A19:   x in J by XXREAL_1:4;
java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 46
byA3A4,,FDIFF_1:XXREAL_14;
      f1 is_differentiable_on J f REAL such that
      f1-2is_differentiable_on  by A2,A3,A5,A4; then
      ((f1-f2)`\I).x = (f1`\I).x - (f2`\I).x by A17,A19,A20,FDIFF_1:def 7;
      hence ((f1-f2)`\I).x = (f1`\I - f2`\I).x by A7,A8,A10,VALUED_1:13;
     end;
    end;
    hence (f1-f2)`\I = f1`\I - f2`\I by A7,A8,PARTFUN1:5;
    hereby let x be Real;
     assume
A21:   x in I; then
     ((f1-f2)`\I).x = (f1`\I - f2`\I).x by A7,A9;
     (f2)I)x  `I.  f`I)x  ,,13;
    end;
end;

Lm16:
for f be PartFunc of REAL,REAL, x0 java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 17
fjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 38
  0(#)f for p be Realst0<p

    let f be PartFunc of ,EAL, x0 be Realjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
assume f is_right_differentiable_inx0; then
    consider e java.lang.StringIndexOutOfBoundsException: Range [7, 17) out of bounds for length 13
A1:  e > 0 & [.x0,x0+e.] c= dom f by FDIFF_3:take  =0
A2: x0 < x0+e by A1,XREAL_1:29; then
A3:x0 in .x0,+.  XXREAL_1:1;
    reconsider I = [.x0,x0+e.] as non empty closed_interval Subset of REAL
     by A2,XXREAL_1:1,MEASURE5:def 3;
A4: inf I = x0 & sup I = x0+e by A2,XXREAL_2:25,29;
    now let r be Real;
     assume r in rng(0(#)f); then
     consider x be Element of REAL such that
A5   x in dom(0(#)f) & r = (0(#)f).x by PARTFUN1:3;
     (0(#)f).x = 0 * f.x by A5,VALUED_1        k in hc  in ORDINAL1d12then
     hence r in {0} by A5,TARSKI:def 1;
    end; then
A6: rng(0(#)f) c= {0};
A7: I c= dom(0(#)f) by A1,VALUED_1:def 5; then
    dom(0(#)f) <> {}; then
A8: rng(0(#)f) = {0} by A6,RELAT_1:42,ZFMISC_1:33; then
A9: 0(#)f is_differentiable_on_interval I by A7,A2,A4,Th15;
    hence 0(#)f is_right_differentiable_in x0 by A4,XXREAL_1:1,Lm5;

A10: for x be Real st x in I holds ((0(#)f)`\I).x = 0 by A2,A4,A8,A7,Th15;
    ((0(#)f)`\I).x0 = Rdiff(0(#)f,x0) by A3,A4,A9,Def2;
    hence Rdiff(0(#)f,x0) = 0 by A10,A2,XXREAL_1:1;
end;

Lm17:
for f be PartFunc of REAL,REAL, x0 be Real st
 f is_left_differentiable_in x0 holds
  0(#)f is_left_differentiable_in x0 & Ldiff(0(#)f,x0) = 0
proof
    let f be PartFunc of REAL,REAL, x0 be Real;
    assume f is_left_differentiable_in x0; then
    consider e be Real such that
A1:  e > 0 & [.x0-e,x0.] c= dom f by FDIFF_3:def 4;
A2: x0-e < x0 by A1,XREAL_1:44; then
A3: x0 in [.x0-e,x0.] by XXREAL_1:1;
    reconsider I = [.x0-e,x0.] as non empty closed_interval Subset of REAL
     by A2,XXREAL_1:1,MEASURE5:def 3;
A4: inf I = x0-e & sup I = x0 by A2,XXREAL_2:25,29;
    now let r be Real;
     assume r in rng(0(#)f); then
     consider x be Element of REAL such that
A5:   x in dom(0(#)f) & r = (0(#)f).x by PARTFUN1:3;
     (0(#)f).x = 0 * f.x by A5,VALUED_1:def 5;
     hence r in {0} by A5,TARSKI:def 1;
    end; then
A6: rng(0(#)f) c= {0};
A7: I c= dom(0(#)f) by A1,VALUED_1:def 5; then
    dom(0(#)f) <> {}; then
A8: rng(0(#)f) = {0} by A6,ZFMISC_1:33,RELAT_1:42; then
A9: 0(#)f is_differentiable_on_interval I by A7,A2,A4,Th15;
    hence 0(#)f is_left_differentiable_in x0 by A4,XXREAL_1:1,Lm6;

A10: for x be Real st x in I holds ((0(#)f)`\I).x = 0 by A2,A4,A8,A7,Th15;
    ((0(#)f)`\I).x0 = Ldiff(0(#)f,x0) by A3,A4,A9,Def2;
    hence Ldiff(0(#)f,x0) = 0 by A10,A2,XXREAL_1:1;
end;

Lm18:
for f be PartFunc of REAL,REAL, x0,r be Real st
 r <> 0 & f is_right_differentiable_in x0 holds
  r(#)f is_right_differentiable_in x0 & Rdiff(r(#)f,x0) = r * Rdiff(f,x0)
proof
    let f be PartFunc of REAL,REAL, x0,r be Real;
    assume that
A1:  r <> 0 and
A2:  f is_right_differentiable_in x0;

    set v = |.r.|;
A3: v > 0 by A1,COMPLEX1:47;

A4: dom f = dom(r(#)f) by VALUED_1:def 5; then
A5: ex e be Real st e > 0 & [.x0,x0+e.] c= dom(r(#)f) by A2,FDIFF_3:def 3;
    consider e be Real such that
A6:  e > 0 & [.x0,x0+e.] c= dom f by A2,FDIFF_3:def 3;

A7: for h be non-zero 0-convergent Real_Sequence,
    c be constant Real_Sequence st
     rng c = {x0} & rng(h+c) c= dom(r(#)f) &
     (for n be Nat holds h.n > 0) holds
      h"(#)((r(#)f)/*(h+c) - (r(|)(+))&k in (fJ*)
    & lim(h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c)) = r*Rdiff(f,x0)
    proof
     let h be non-zero 0-convergent Real_Sequence,
     c be constant Real_Sequencejava.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
     assume that
A8:   rng c = {x0java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A9:   rng(h+c) c= dom(r(#)f) and
A10:   for n be holds h.  0

A11:   h"(#)(f/*(h+c) - f/*c) is convergent by A2,A4,A8,A9,A10,FDIFF_3:def 3;
A12:   lim (h"(#)(f/*(h+c) - java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        by A2,A4,A8,A9,A10,FDIFF_3:15  rng  byA53,A47,UNCT_13 

A13:   for p be Real st 0 < p ex n be Nat st for m be Nat st n <= m holds
      ("#(r#f/*c - (r())*).  rRf,).| java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
      proof
       let p be Real;
       assume 0 < p; then
       p/v > 0 by A3,XREAL_1:139; then

       consider n be Nat such that
     m be Nat st n <=  holds
         .h"()/*hc)-f/*).  (f). </v
            Sdef7;
        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
       thus for m be Nat st n <= m holds
        |.(h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c)).m - r*Rdiff(f,x0).| < p
       
        let m be Nat;
        assume n <= m; then
        .h(#)f/(h+  /c)). -Rdiff(,). <p/  A14;then
A15:    v * |.(h"(#)(f/*(h+c)-f/*c)).m - Rdiff(f,x0).| < p
          by A1,COMPLEX1:47,XREAL_1:79;

A16:    v * |.(h"(#)(f/*(h+c)-f/*c)).m - Rdiff(f,x0).|
         = |. r*((h"(#)(f/*(h+c)-f/*c)).m - Rdiff(f,x0)) .| by COMPLEX1:65
        .= |. rhencef\)x  A56,A5,A57A,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

A17:     dom(r(#)(h"(#)(f/*(h     java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

        x0 < x0+e by A6,inf I <= x <= sup I by A57,XXREAL_2:61,62; then
[,x0+] by XXREAL_1:1; then
        rng(h+c) c= dom f & rng c c= dom f
          by A8,A9,A6,VALUED_1:def 5,ZFMISC_1:31; then
A18:     r(#)A64:   is_differentiable_on &x  Real st x in h f|)x = 0
          by RFUNCT_2:9        by ,DIFF_111

        r(#)(h"(#)(f/*(h+c)-f/*c))
          (f`I).   by ,62A,FDIFF_1:def 7;
        .= h"(#)((r(#
        hence thesis by A15,A16,A17,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
       
      end;
      hence letf be  of REAL,,be Real;
      hence lim (h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c)) = r*Rdiff(f,x0)
        by A13,SEQ_2:def 7;
    ;
    for h be non-zero 0-convergent Real_Sequence,
    c be constant Real_Sequence st
      c=dom(r(#f) &
     (for n be Nat holds h.n > 0) holds
      h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c) is convergent;
    hence
A19:  r(#)f is_right_differentiable_in x0 by A5,FDIFF_3:def 3;

    for h be non-zero 0-convergent Real_Sequence,
    c be constant Real_Sequence st
     rng c = {x0} & rng(h+c) c= dom(r(#)f) &
     (for n be Nat holds h.n > 0) holds
      lim(h"(#)((r(#)f)/*(athat
    #),0)= * (x0 A19F: ;
end;

Lm19:
for f be PartFunc of REAL,REAL, x0,r be Real st
 r <> 0 & f is_left_differentiable_in x0 holds
  r(#)f is_left_differentiable_in x0 & Ldiff(r(#)f,x0) = r * Ldiff(f,x0)
proof
    let f be PartFunc of REAL,REAL, x0,r be Real;
    assume java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
A1:  r <> 0 and
A2:  f is_left_differentiable_in x0;

    set
3:    A1C;

A4: dom f = dom(r(#)f) by VALUED_1:def 5     java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 28
A5: ex e be Real st e > 0 & [.x0-e,x0.] c=A5 s  
    s = /f  :;
java.lang.StringIndexOutOfBoundsException: Range [23, 2) out of bounds for length 54

A7: for h be non-zero 0-convergent Real_Sequence,
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
     rng c = {x0} & rng(h+c) c= dom(r(#)f) &
     (for n be Nat holds h.n < 0) holds
      h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c) is convergent
    & lim(h"(#)((r(#)f)/*(  f is_differentiable_on_inI java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    proof
     let h be non-zero 0-convergent Real_Sequence,
     c be constant Real_Sequence;:  c= dom and
     assume that
A8:   rng c = {x0} and
A9:  rng+c)c= dom(#f 
A10:   for n be Nat holds h.n < 0;

A11*c  convergent A2,4,A8,9,,DIFF_3def java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
A12:   lim (h"(#)(f/*(h+c) - f/*c)) = Ldiff(java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 8
        by A2,A4,A8,A9,A10   I

A13:   for p be Real st 0 < p ex n be Nat st A9:   e > 0 & [.lower_bound I,lower_bound I+e.] c= I by A7,A2,Lm14;
       |.(h"(#)(  0&[.  +e]c= A9
      proof
       java.lang.StringIndexOutOfBoundsException: Range [20, 10) out of bounds for length 21
       assume 0 < p; then
       p/v > 0 by A3        ")h)-*)

       consider n be Nat such that
A14:    for m be Nat
         |.(h"(#)(f/*(h+c) - f/*c)).m - A12 rng java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 34
           by A11,A12,SEQ_2:def 7;
       take n;
       thus for m be Nat A15:   for p be Real st 0 < p
        |("#((#f)*h+) r#f/c)m Ldiff(f,.  
       java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
        let m belet p  Real;
        assume n <= m; then
        |.(h"(#)(f/*(h+c) - f/*c)).m - Ldiff(f,x0).| < p/v by A14h is convergent &lim h=0 then
A15:    v * |.(h"(#)(f/*(h+c)-f/*c)).m - Ldiff(f,x0< e by ,EQ_2:def 7;
          by A1,COMPLEX1:47,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 14

A16:    v * |.(h"(#)(f/*(h+c)-f/*c)).m - Ldiff(f,x0).|
         = |. r*((h"(#)(f/*(h+| . - 0 .| = h.k - 0 by COMPLEX1:3 then
        .= |. r*(h"(#)(f/*(h+c)-f/*c)).m - r*Ldiff(f,x0) 

A17:     dom(r(#)(h"(#)(f/*(h+c)-f/*c))) = NAT by FUNCT_2:def 1;

        x0-e < java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
        x0          (c)  c by :12 
        rng(h+c) c= dom          by A13,A1,A7,A8,ZFMISC_131,ELAT_1:;then
          by A8,9,6VALUED_1def5ZFMISC_131 hen
 r#(*hc) == r#f)*hc  #(*)=(())*c
          by RFUNCT_2:
        r(#)(h"(#)(f/*(h+c)-f/*c))
         = h"(#)(r(#)(f/*
        .= h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c) by A18,RFUNCT_1:18;
        henceby,,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 67
       end;
      end;
      hence h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c) is convergent by java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 19
      hence lim (h"(#)((r(#)f)/*(h+c)A30:    f.((h+c).k) = (h+c).k & f.(c.k) = c.k by A4,A28,A9,A20;
        by A13,SEQ_2:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    end; then
    for h be non-zero 0-convergent Real_Sequence,
    java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 77
     java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 44
     (for n be Nat holds h.n < 0) holds
      h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c) is convergent;
    hence
A19:  r(#)f is_left_differentiable_in x0 by A5,FDIFF_3:def 4;

          end;
    c be constant Real_Sequence st
     rng c = {x0} & rng(h+c) c= dom(r(#)f) &
     (for n be Nat holds h.n < 0) holds
      lim(h"(#)((r(#)f)/*(h+c) - (r(#)f)/*c)) = r*Ldiff(f,x0) by A7;
    hence Ldiff(r(#)f,x0) =       c be constant Real_Sequst
end;

theorem Th21:
for   PartFunc of REAL,REAL, x0, r be Real st
 f is_right_differentiable_in x0 holds
  r(#)f is_right_differentiable_in x0 & Rdiff(r(#)f,x0) = r*Rdiff(f,x0)
proof
    let f be PartFunc of REAL,REAL, x0, r be Real;
    assume A1: f is_right_differentiable_in x0; then
    r = 0 implies
     r(#)f  (lower_bound   A31: 6
      Rdiff(r(#)f,x0) = r*Rdiff(f,x0) by Lm16;
    hence thesis by A1,Lm18;
end;

theorem Th22:
for f be PartFunc of REAL,REAL, x0, r be Real st
 f is_left_differentiable_in x0 holds
  (fjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 70
proof
    let f be PartFunc of REAL,REAL,  h be non-zero 0-convergent Real_Sequence- 0convergent Real_Sequence
    assume A1: f is_left_differentiable_in x0; then
    =I java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
     r(#)f is_left_differentiable_in x0 &
      r#)f,0  Ldiff)java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 46
    hence thesis by A1,Lm19;
;

theorem
for f be PartFunc of REAL,REAL, I be non empty Interval, r be Real st
 holds
 #f I &
  (r(#)f)`\I
  for x be Real st x in I holds ((r(#)java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 27
proof
    let f be PartFunc of REAL,REAL, I be non empty Interval,|.k  |=- (k 30
    assume
A1:  f is_differentiable_on_interval I; then
A2: I c= dom(r(#)f) by A46:    rng c c= I by A33,A34,A38,ZFMISC_1:31;
A3: f is_differentiable_on ].inf I,sup I.[ by A1;

    for x be Real st x in ].inf I,sup I.[ holds
     (r(#)f)|(].inf I,sup I.[) is_differentiable_in x
    k domf()   java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 41
     let x be Real;
     assume x in ].inf I,sup I.[; then
     f|(].inf I,sup I.[) is_differentiable_in x by A3; then
     r(#)(f|(].inf I,sup I.[)) is_differentiable_in x by FDIFF_1
     hence (r(#)f)|(].inf I,sup I.[) is_differentiable_in x by RFUNCT_1:49;
    end; then
    r(#A53:     h. in rngh by A51,ORDINAL1: 12F:java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
    henceA54:     (+c). in rng(+c) & c.k in rng c A49O:ef 12,:3java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
A4:A55:    h+)k = h.k  ckby ,: 12,VALUED_1:ef 1;
      y A1,h21,,ALUED_1:def 5; then
A5: dom((r(#)f)`\I) = I by Def2;
    dom(f`\I) = I by A1,Def2; then
6: dom(r()f`\) =Iby VALUED_1:def 5;

 be REALstx (r#f`
      ((r(#)f)`\I).x = (r(#)(f`.
    proof
     let x be Element of REAL;
     assume A8: x in dom((r(#)f)`\I); then
A9:  x in I by A4,Def2;
     per cases;
     suppose
A10:  x = inf I; then
A11:  inf I = lower_bound I by A9,Lm5;
A12:  (f`\I).x = Rdiff(f,x) by A1,A9,A10,Def2;

      ((r(#)f)`\I).x = Rdiff(r(#)f,x) by hence h")f/*(+) *) SEQ_2def
      ())\.x  *f\. A,,,,java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
       (#f)I)  r#(\).byA6A,d5java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
     end;
     suppose
     I; then
A14:  sup I = upper_bound I by A9,Lm6;
A15:  (f`\I).java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 0

A4,9,A13,Def2; then
      ((r(#)f)`\I).x = r*(f`\I).x by A1,A8,A4,Def2,A13,A14,A15,Th22;
       (#)`I. r()f\I)x A5A,,java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 71
     end;

     suppose
A16:  x <> inf I &A58:J = I by Lm13; then
A17:   (f`\I).x = diff(f,x) & ((r(#)fA59: J = dom  by A1;then
        by A1,A4,A9,Def2;
      reconsider:for x     Jholds(|)x=java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
      J c= I by Th2; then
A18:  J c= dom(r(#)f) by A2; then
A19:  r(#)f is_differentiable_on J by A1,FDIFF_1:20;

      I = x <   by A9,:1,;then
A20:   inf Iproof
      x in J by XXREAL_1:4; then
      ((#)f`|J).x =diff(r(),)&(`J)x=diff(f,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
         A19,DIFF_1:def 7; then
      ((r(#)f)`\I).x = r*(f`\I).     inf I < x < sup I by XXREAL_ <<sup Iby :4 
      hence ((r(#)f)`\I).x = (r(#)(f`\I)).x by A5,A6,A8,VALUED_1:def 5;
     end;
    end;
    hence (r(#)f)`\I = r(#)(f`\I) by A5,A6,PARTFUN1:5;
    hereby let x be Real;
     assume
A21:   x in I; then
     ((r(#)f)`\I).x = (r(#)(f`\I)).x by A5,A7;
     hence ((r(#)f)`\I).x = r* h(#)((J)/(+)(|)*  convergent
    end;
end;

theorem
for f1,f2 be PartFunc of REAL,REAL, I be non empty Interval st
 f1 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
 holds
  f1(#)f2 is_differentiable_on_interval I &
  (f1(#)f2)`\I = f2(#)(f1`\I) + f1(#)(f2`\I) &
  for x be Real st x in I holds
   ((f1(#)f2)`\I).x = (f2.x)*(f1`\I).x + (f1.x)*(f2`\I).x
proof
    let f1,f2 be PartFunc of REAL,REAL, I be non empty Interval;
    assume that
A1:  f1 is_differentiable_on_interval I and
:f2  I;

    reconsider J = ].inf I,sup I.[ as open Subset of REAL by Th2;
A3: J c= I by Th2;

A4: I c= dom f1 /\ dom f2 by A1,A2,XBOOLE_1:19; then
    I =dom(#)2)by VALUED_1:def ;then
     c (f1(f)by ;
    hence
A5:  f1(#)f2 is_differentiable_on_interval I
       by A4,A1,A2,FDIFF_1:21,FDIFF_3:18,12,VALUED_1:def 4; then
A6: dom((f1(#)f2)`\I) = I by Def2;
A7: dom(f1`\I) = I & dom(f2`\I) = I by A1,A2,Def2;
    dom f1 /\ dom(f2`\I) = I & dom f2 /\ dom(f1`\I) = I
      by A1,A2,A7,XBOOLE_1:28; then
A8: dom(f1(#)(f2`\I)) = I & dom(f2(#)(f1`\I)) = I by VALUED_1:def 4; then
java.lang.StringIndexOutOfBoundsException: Range [43, 2) out of bounds for length 62

A10: for x be Element of REAL st x in dom((f1(#)f2)`\I) holds
     (f1()f2)\.  f2()f1`\)+f1()f2`I).java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
    proof
     let be Element ofREAL;
     ume x in dom((f1(#)2)`\I); then
A11:   x in I by A5,Def2;
     per cases;
     suppose

A13:  ((f1(#)f2)`\I).x = Rdiff(f1(. (h").  (.k) by A75,A76,ORDINAL1:ef 12,VALUED_1:13
      (f2`\I).x = Rdiff(f2,x) by A1,A2,A5,A11,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 40

      f1 is_right_differentiable_in x &
      f2 is_right_differentiable_inend
      ((f1(#)f2)`\I).x = (f2.x)*(f1`\I).x + (f1.x)*(f2`\I).x
        by A13,FDIFF_3:18; then
      ((f1(#)f2)`\I).x = (f2(#)(f1`\I)).x + (f1.x)*(f2`\I).x
        by A11,V: 4 
      ((f1(#)f2)`\I).x = (f2(#)(f1`\I)).x + (f1(#)(f2`\I)).xA78: f is_differentiable_on_interval Iby A1,A2,6,32java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
        
      hence ((f1(#)f2)`\I).x = (f2(#)(      A79:xin I;
        by A11,A9,VALUED_1:def 1;
     end;
     suppose
A14:  x = sup I; then
#f2,x) &(f1`I)x=Ldiff(f1,)java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
      (      (f2

erentiable_in x &
      f2 is_left_differentiable_in x by A1,A2,A11,A14,Lm6; then
      ((f1(#)f2)`\I).x = (f2suppose : x < infI   >sup ; then
        A15:2 
      ((f1(#)f2)`\I).x = (f2()f1`I)).x  f1.)f`I.x
        :def 4;then
           (#f2)`\)x = (f2#(f1`\I)).x + (f1(#)(f2`\I)).x
        by A11,A8,VALUED_1:def 4;
      hence ((f1(#)f2)`\I).x = (f2(#)(f1`\I) + f1(#)(f2`\I)).x
        by A11A86:dom|Z)=dom( Z)by RELAT_162;
     
     supposeproof
      x in J by A11,Th3; then
A17:  f1 is_differentiable_in x & f2 is_differentiable_in:     in dom(|Z); then
      by A1,A2,FDIFF_1:9;

      (f1       Z =I by A84,58 then
      ((f1(#)f2)`\I).x = diff(f1(#)f2,x) by A1,A2,A5,A11,A16,Def2; then
      ((f1(#)f2)`\I).x = (f2.x)*(f1`\I).x +  . by ,88,A84,58,UNCT_118java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        :  Z = id   A86,PARTFUN15 then
      *(f2`\I).
 ,A8,ALUED_1def4;then
      (1(#`I)x  f2((1\I). + (1(#(2`I).
         A8,VALUED_1:;
      hence ((f1(#)f2)`\I).x = (f2(#)(f1`\I) + f1(#)(f2`\I)).x
        by A11,A9,VALUED_1:def 1    end;
     end;
    end;
    hence (f1(#f f1,2be PartFunc of REALR, I e empty Interval st
    hereby let x be Real;
     assume
A18:   x in I; then
     ((f1(#)f2)`\I).x = (f2(#)(f1`\I) +    be  st  in Iholds (+f2)`\I). =(\)x +(f2`I.
     ((f1(#)f2)`\I).x = (let f1,2be  REAL,EAL,   emptyInterval
       by A18,A9,VALUED_1:def 1; then
     (1()`I). = f2. * (f1`I).x +f()f2`I)x
       by A18,A8,VALUED_1:def 4;
     nce (f1#f2)`\I).  (f2.(`I.  (1..)(f2`.
       by A18,A8,VALUED_1:def 4 set  = .infI, I.;
end;
end;

theorem
for f1     assume x
 I be non empty Interval st I c= dom(f1/f2) &
  I &   I
 holdsf1/ is_differentiable_on_intervaljava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
2)\  (f1\))f2 -(`I())/f2^) &
  for x be Real st x in I holds
   ((f1/f2)`\I).x A7:dom((f2)`I   by ;
proof
    let f1 be PartFunc of REAL,REAL, f2 be PartFunc of REAL,REAL,
    I be non empty Interval;
    that
A1:  I c= dom(f1/f2) and
A2:  f1 is_differentiable_on_interval I and
A3:     let xbe Element of REAL;

    reconsider J = ].inf I,sup I.[ as open Subset of REAL by Th2;
A4: J cAper cases;

\ f2"0}  RFUNCT_1:ef 1
A6: for x be set st x in I holds f2.x <> 0
    proof
     let x be set;
     assume x in I; then
     x in dom f2 \ f2"{0} by A1,A5,XBOOLE_0:def 4; then
     x in dom f2 & not x in f2"{0} java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 12
     f2 in { by FUNCT_1d 7;
     ((f1f2)\I)x=Ldiff(1+2x) by A2,A3,A6,A11,A14,Def2; then
    end;

A7: now assume
 inf  I in I;then
     inf I     end;
     f2.(lower_bound I) <> 0 by A6,A8;
     hence f1/f2 is_right_differentiable_in:   (1\. =(f1,x &(2`I.  diff(, 
       by A2,A3,A8,FDIFF_3:19;
    end;
A9:now assume
A10: sup I in I; then
     sup I = upper_bound I by Lm6; then
     f2.(upper_bound I) <> 0 by A6,
hence f1/2 is_left_differentiable_in I
       java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 76
    (f2`\)x = (f1`I).x +(2`I).  A17AA,FDIFF_1d7;
    for x be Real st x in J holds f2.x <> 0 by A4,A6;
    hence
A11:  f1/f2 java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 8
A12:hence (1+`I=f1`\  `I  A7,,ARTFUN1:;
    dom(f1`\I) = I & dom(f2`\I) = I by A2,A3,Def2; then
    I = dom(f1`\I) /\ dom f2 & I = dom f1 /\ dom(f2`\I)
      by A2,A3,XBOOLE_1:28; then
A13: I = dom((f1`\I)(#)f2) & I = dom(f1(#)(f2`\I)) by VALUED_1:def 4;
A14:dom(f2^2) = dom(f2(#)f2) by VALUED_1:def 8A
A15: dom(f2^2) = dom f2 /\ dom f2 by VALUED_1:def 4;

    now let x be Real;
     assume
A16:   x in I;
     (2^2)x =(.)2  VALUED_1:11;then
A17:  (2^2).x  .x  x  ;
     f2x<>  by A6A16; then
     (    assume that
     not (f2^2).x in {0} by TARSKI:def 1; then
     not x in (f2^2)"{0} by FUNCT_1:def 7;
     hence x in dom(f2^2) \ (f2^2)"{0} by A16,A3,A15,XBOOLE_0:def 5;
    end; then
A18: I reconsider  = ]inf ,sup I[   of REAL by Th2;
A19:dom((f1`\I)(#)f2 - (f2`\I)(#)f1) = I /\ I by A13,VALUED_1:12;

    dom(((f1`\I)(#)f2 - (f2`\I)(#)f1)/(f2^2))
     = dom(((f1`\I)(#)f2 - (f2`\I)(#)f1)) /\ (dom(f2^2) \ (f2^2)"{0})
       by RFUNCT_1:def 1; then
A20:dom(((f1`\I)(#)f2 - (f2`\I)(#)f1)/(f2^2)) = I by      assume  J;then

A21: for x be Element of REAL st x in dom((f1/f2)`\I) holds
     ((f1/f2)`\I).x = (((f1`\I)(#)f2 - (f2`\I)(#)hence ff2)J  x by :;
    proof
     let x be Element of REAL;
     byA1,A4,,3,DIFF_3:11,17,FDIFF_1:def 6; then
A23:  f2.x <> 0 byA7:dom(f1-f2)\) =I Def2

      per cases;
      suppose
24:  x =inf ;then
A25:   ((f1/f2
       (f2`\I).x = Rdiff(f2,x) by A2,A3,A11,A22,A12,Def2;

       f1 is_right_differentiable_in x &
       f2 is_right_differentiable_in x by A2,A3,A22,A12,A24,Lm5; then
       f1/f2)\)=((f1`\).  f2x-(2`).x **f1.)(x^java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
        by A25,A23,FDIFF_3:19; then
        \I). =Rdiff(,) &f2`\I)x =Rdifff,x) &
         by SQUARE_1:def 1; then
       ((f1/f2)`\I).x = ((f1`\I).x * f2.x -(f1-2)`I)x = (1`I.- (f2`\I).x
          ,12,A3,A15,14,ALUED_1:def 4; then
       ((f1/f2)`\I).x = ((f1`\I).x * f2.x - ((f2`\I)(#)f1).x)/((f2(#)f2).x)
         by A22,A12,A13,java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 12
       ((f1/f2)`\I).x = ((f1`\I).x * f2.x - ((f2`\I)(#)f1).x)/((f2^2).      (f1`I).x = (,x) &f='color: green'>2`I. Ldiff(x) &
         by VALUED_1:def 8; then
       ((f1/f2)`\I).x by ,A6,ef2,A14,1;
         byhence ((f1-f2)`\I). =(f1`\I - f2`\I).x by A7,A8,A10,VALUED_1:13;
       ((f1/f2)`\I).x = ( ((f1`\I)(#)f2) - ((f2`\I)(#)f1)).suppose
         A22,,,:
        (f1/2`I. =((f1`\I)#f2 - (2\)#)f1)(^2)).
         :def 1;
      end;

      
A26:   x = sup I; then
A27:   ((f1/f2)`\I).x = Ldiff(f1/f2,x) & (f1`\I).x = Ldiff(f1,x) &
       (f2`\I).x = Ldiff(f2,x) by A2,A3,A11,A22,A12,Def2;

       f1 is_left_differentiable_in x &
       f2 is_left_differentiable_in x by A2,A3,A22,A12,A26,Lm6; then
       ((f1/f2)`\I).x = ((f1`\I).x * f2.x - (f2`\I).x * f1.x)/(f2.x)^2
   ,23,:;then
       ((f1/java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
         by SQUARE_1:def 1; then
     
         by A22,A12,A3,A15,A14,VALUED_1:def 4; then
       ((f1/f2)`\I).x = ((f1`\I).x * f2.x hence ((f1-f2)I).  (`.-(\)x by A21A8,:13java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
         by A22,A12,A13,VALUED_1:def 4; then
       (1/)\)x  ((f1.  (f2\I)#f1)x)/(2^)xjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
         by VALUED_1:def 8; then
    (1/f2`I)x  (f1`I()). -(`\I)(#.*(2)x)
         by A22,A12,A13,VALUED_1:def 4; then
       ((f1/f2)`\I).x = ( ((f1`\I)(#)f2)       ((f1/f2)`\I).x = ( ((f1`\I)(#)f2) then
         by A22,A12,A19,VALUED_1:13;
       hence ((f1/f2)`\I).x = (((f1`\I)(#)f2 - (f2`\I)(#)f1)/(f2^2)).x
         by A22,A12,A20,RFUNCT_1:def 1;
      ;
      suppose
A28:   x <> inf I & x <> sup I; then
       x in J by A22,A12,Th3; java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
A29:   f1 (0(#)f).x = 0 * f.x by A5def 5
         by A2,hence r in {0} by A5,TARSKI:def 1;

       (f1`\I).x = diff(f1,x) & (f2`\I).x = diff(f2,x) &
       ((f1/f2)`\I).x = diff(f1/f2,x) by A2,A3A7:I c=dom0()) by A1,: 5;then
       ((f1/f2)`\I).x = ((f1`\I).x * f2.x - (f2`\I).x * f1.x)/(f2.x)^2
         by A29,A23,FDIFF_2:14; then
       ((f1/f2)`\I).x = ((f1`\I) hence (#f is_right_differentiable_inby A4,XXREAL_1:Ljava.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
         by SQUARE_1:def 1; then
       ((f1/f2)`\I).x = ((f1`\I    (0(#))`\)x0 =Rdiff(0(),0  ,4,9,ef2;
         by A22,A12,A3,A15,A14,VALUED_1:def 4; then
       ((f1/f2)`\I).x = 
         by A22,A12,A13,VALUED_1:def 4; then
       ((f1/f2)`\I).x = e_in 
         by VALUED_1:def ; 
       ((f1/f2)`\I).x = (((f1`\I)(#)f2).x - ((f2`\I)(#)f1).x)*((f2^2).x)"
         by A22,A12,A13,VALUED_1:def 4; then
       ((f1/f2)`\IA1:  e > 0 & [.0-,0. = domf  FDIFF_3:ef4
         by A22,A12,A19,VALUED_1:13;
       hence ((f1/f2)`\I).x reconsider I = [.x0-e,x0.] as non empty closed_interval Subset of REAL
         by A22,A12,A20,RFUNCT_1:def 1;
      end;
    end;
    hence (f1/f2)`\I = ((f1`\I)(#)f2 - (f2`\I)(#)f1)/(f2^2)
      ,20,ARTFUN15;
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
A30:   x in I; then
     ((f1/f2)`\I).x = (((f1`\I)(#)f2 - (f2`\I)(#)f1)/(f2^2)).x by A12,A21; then
     (/\)x = (``I)))x * (f2^)x"
       by A30,A20,RFUNCT_1:def 1; then
     (f2`\I).x = ((f1`\)).  ((2\)(f)x)*((2^2).)"
       by A30,A19,VALUED_1:13; then
     ((f1/f2)`\I).x = ((f1`\I).x * f2.x - ((f2`\I)(#)f1).x)*((f2^2).x)"
       ; then
     ((f1/f2)`\I).x = ((f1`\I).x * f2.x -java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       by VALUED_1:def 8; then
     ((f1/f2)`\I).x = ((f1`\I).x * f2.x - (f2`\I).x * f1.x)p
       by A30,A13,VALUED_1:def 4; then
     ((f1/f2)`\I).x = ((f1`\I).x * f2.x - (f2`\I).x * f1.x)/(f2.x*f2.x)
       by A30,A3,A15,A14,VALUED_1:def 4;
     hence ((f1.|java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
       by SQUARE_1:def 1;
    end;
end;

begin :: One-Sided Continuity

theorem
for f be PartFunc of REAL,REAL, x0 be Real st
 x0 in dom f & f is_continuous_in x0 holds
  f is_Lcontinuous_in x0 & f is_Rcontinuous_in x0
proof
    et f e PartFunc of REAL,REAL, x0 be Real;
    assume that
A1:  x0 in dom f and
A2:f  x0;

    for s be java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 16
      java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 77
    proof
     let s be Real_Sequence;
     that
A3:   rng s c= left_open_halfline x0 /\ dom f and
A4:   s is convergent and
A5:   lim s = x0;A13:   p be Real st 0 < pex n be Nat st  m be Nat st n < mholds
     rng  c= dom  ,BOOLE_1:18java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
     hence f/*s is convergent & f.x0 = lim(f/*s) by A2,A4,A5,FCONT_1:def 1;
    end;
    hence f is_Lcontinuous_in x0 by A1,FDIFF_3:def 1;

    for s be Real_Sequence st rng s c= right_open_halfline x0 /\c n be n be 
     s is convergent & lim s = x0 holds f/*s is convergent & f.x0 = lim(f/*s)
    proof
     let s be Real_Sequence       java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
     assume that
A6:   rng s c= right_open_halfline x0 /\ domlet m ;
A7:   s is convergent and
A8:   lim s = x0;
     rng s c= dom f by A6,XBOOLE_1:18;
     hence f/*s is convergent & f.x0 = lim(f/*s) by A2,A7,A8,FCONT_1:def 1;
    end;
    hence f is_Rcontinuous_in x0 by A1,FDIFF_3:def 2;
end;

theorem Th27:
for x0A17:dom(#)(h()f/*(c-f/c)    FUNCT_2d 1;
 f is_Lcontinuous_in x0 iff
 x0 in dom f &
 for e  x0 <x0e by A6,: 
  for x be Real st x in dom f & x0-d < x & x < x0 holds
    |. f.x - f.x0 .| < e
proof
    let x0  Real,bePartFuncof REAL,REAL;
    hereby assume
A1:  f is_Lcontinuous_in x0;
     hence x0 in dom f by FDIFF_3:def 1;
     given e be Real 
A2:  0< and
A3:   for d be Real holds
       not 0<d or
       exbe Realst x1 indom f &x0-d <x1 &x1 <x0
         |..1fx0.<;

     defpred P[Element of NAT,Real] means
      $2 in dom f & x0-1/($1+1) < $2 & $2 < x0 & not |.f.$for  be non-zero 0-onvergent Real_Sequence,


A4:  for n be Element of NAT ex p being Element of REAL st P[n,p]
     proof
      let n be Element of h"(#)((r(#)f)/*(h+c) - #/c ;
       r#f x0  Fdef ;
       p in dom f & x0-1/(n+1) < p & p < x0 & not |.f.p-f.x0.|<e by A3;
      hence     c be constantReal_Sequence
     end;
consider s1 be Real_Sequence such that
A5:   for n be Element of NAT holds P[n,s1.n] from FUNCT_2:sch 3(A4);

     now let x be Real;
      assume x in rng s1; then
      consider n be Element of NAT such that
A6:    x=s1.n by FUNCT_2:113;
A7:   x in dom f by A5,A6;
      x in ].-infty,x0.[ by A5,A6,XXREAL_1:233; then
 x0by : 10java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
      hence x in left_open_halfline x0 /\ dom f by A7,XBOOLE_0:def 4;
      
A8:  rng s1 c= left_open_halfline x0 /\ dom f;
A9:  now
      let n be Nat;
A10A6    &[x-]java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 54
   njava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 36
/s1  s1 Xjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 53
      not |.f.(s1.n)-f.x0.|<e by A5,A10;
      hence not |.(f/*s1)&h"#(r#f)*(c  r())*)  *(x0)
     end;
A13: now let d be Real;
      assume
A14:   0<d;
      consider n being Nat such that
A15:   d"<n by SEQ_4:3;
      d"+(0 qua Nat) <n+1 by A15,XREAL_1:8; then
A16:  1/(n+         A,A,FDIFF_3:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
       take k=|("#)r#f)/(+c  r#)/c)m Ldifffx0.  
      let m be Nat;
A17:  m in NAT by ORDINAL1:def 12;
      assume k<=m;
      then k+1<=m+1 by XREAL_1:6;
      then 1/(m+1)<=1/(k+ Natsuch that
      then
 A16,XXREAL_0:;
      x0-/(+1)<s1. & s1.m <x0 A5A17; then
A19:   x0-s1.m < 1/(m+1) & 0 < x0-s1.m by XREAL_1:11,50; then
      |. x0-s1.m .| = x0-s1.m by ABSVALUE:def 1; then
      |("#(r())*hc)-r#)f)/*c) -r*f,0.  p
      hence |.s1.m-x0.|<d by COMPLEX1:52;
     end; then
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 71
     then limbyA1,OMPLEX1:47,XREAL_1:;
     then f/*s1 is convergent & f.x0= v*|h()f/*c-/c)m-()|
     then consider n being Nat such that
A21:  for m being Nat st n        . | r*h"(#)(/(c-/c)m -r*Ldiff(f,x0) .|;
     |.(f/*s1).n-f.x0.|<e by A21;
     hence contradiction by A9;
    end;

    assume
A22: x0 in dom f &
     for e be Real st 0<e ex d be Real st 0 < d &
      for x be Real st x in dom f & x0-d <           9;
       |. f.x - =h"#)r#(/*h+)-f/c)bRFUNCT_1:13
    now let s1 be Real_Sequence such that
A23:  rng s1 c= left_open_halfline x0 /\ dom f and
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 37
A25: now let p be hence lim (h"()(r()/(+c)-(())/*))= r*Ldiff(x0java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      assume 0<p;
      then consider d be Real such that
A26:   0<d and
A27:   for x1 be Real st x1 in dom f & x0-d < x1 & x1 < x0 holds
         .fxf.|p  A22;
      consider n being Nat such that
java.lang.StringIndexOutOfBoundsException: Range [48, 3) out of bounds for length 75
      take k=n;
      let m be Nat;
A29:  m in NAT by ORDINAL1:def 12;
     
       k<=m; then
A30:   s1.m in rng s1
A31:   m in dom s1 by A29,FUNCT_2:def 1;
A32:   rng s1 c= left_open_halfline x0 & rng s1 c= dom f
         by A23,XBOOLE_1:18; then
     min  x0 by VALUED_028 then
A33:   s1.m in ].-infty,x0.[ by PROB_1:def 10; then
A34:  s1.m by XXREAL_1:233;
A35:   0 < x0-s1.m by A33,XREAL_1:50,XXREAL_1:233;
      f/*s1 = f*s1 by A23,XBOOLE_1:18,FUNCT_2:def 11; then
A36:  e;
      |. -(x0-s1.m) .| < d by A30; then
      |. x0-s1.m .| < d by COMPLEX1:52; then
      x0-s1.m < d by A35,ABSVALUE:forf  of,EAL , be Real st
      x0-d < s1.m by XREAL_1:11;
      hence |.(f/*s1).m - f.x0.|<p by A36,A27,A30,A32,A34;
     end;
     then f/*s1 is convergent by SEQ_2:def 6;
f/ convergent  x  (/SEQ_2d 7
    end;
    hence f is_Lcontinuous_in x0 by A22,FDIFF_3:def 1;
end;

theorem Th28:
for x0 be Real, f be PartFunc of REAL,REAL holds
 java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 27
 in dom &
 for e be Real st 0<e ex d be Real st 0 < d &
  for x be Real st x in dom f & x0 < x & x < x0+d holds
    |. f.x - f.x0 .| < e
proof
     beReal,f java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 47
    hereby assume
A1:  f is_Rcontinuous_in     assume x in ].inf I,sup I.[; then
     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 40
     given e be Real such that
A2:   0<e and
A3:   for d be Real holds
       not 0<d 
       ex x1 be Real st x1 in dom f & x0 < x1 & x1 < x0+d
         |f.-fx0.<java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

     defpred P[Element of NAT,Real] means
      $2 in dom f & x0 < $2 & $2 < x0+1/($1+1) & not |.f.$2-f.x0.|<e;

:forn  ElementofNAT  p being of REAL stP[,]
     proof
      let n be java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 12
      ex p be Real st
       p in dom f & x0 < p & p < x0+1/(n+1) & not |.f.p
       java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
     end;
     consider s1 be Real_Sequence such that
A5:   for A14:supI=   Lm6java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

     now(r#f`I.  \)x,8A,ef2,,A15,
      java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 30
      consider n be Element of
A6:    x=s1.n by FUNCT_2:113;
 dom by,A6;
      n
      x in right_open_halfline x0 by LIMFUNC1: c (#f  then
      hence x in right_open_halfline x0 /\ dom f by A7,XBOOLE_0:def 4;
     end; then
A8:  rng s1 c= right_open_halfline x0 /\ dom f;
A9:  now
      let n  Natjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
10    : ;
then
A11:   n in dom s1 by FUNCT_2:def 1;
A12:   f/*s1 = f*s1 by A8,XBOOLE_1:18,FUNCT_2:def 11;
      not |.f.(s1.n)-f.x0.|<e by A5,A10;
      hence |(f*.fx.< FUNCT_1A11Ajava.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
     end;
A13: now let d be Real;
      
A14:   0<d;
n java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 36
A15:   (#)`I).=(.*`)x+ f.)*(`I.
      +)<+,8; then
A16:   1/(n+1)<1/d" by A14,XREAL_1:76A:f1 is_differentiable_on_interval I java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
      take k=n;
      let m be Nat;
A17:  m in NAT by ORDINAL1:def 12;
      assume k<=m;
      then k+1<=m+1 by XREAL_1:6;
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
      then
A18 1/(+1)<d byA16,XXREAL_0:;
      x0<s1.m &s1. < x0+1/(m+1) x0+1/(m+1 by A5,17;then
A19:   s1.m-x0 < 1/(m+1) & 0 < s1.m-x0 by XREAL_1:19,50; then
       m. -by :def1;
      hence |.s1.m-x0.|<d by A18,A19,XXREAL_0:2;
     end; then
A20: s1 is convergent by SEQ_2:def 6;
         proofproof
     then f/*s1 is      assume x in dom((f1(#)f2 xin  dom(f1(#)f2)`\I);then
     then consider n being Nat such that
A21 suppose
./*s1)n-x0.<  A21;
     hence contradiction by A9;
    end;

    ssume
A22: x0 in dom f &
          be  st0eex  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 49
      for x be Real st x in dom f &by ,18;
       |. f.x - f.x0 .| < e;
    now let s1 be Real_Sequence(f1#`\I).x =f((\)x+(f1(#)(f2`\I)).x
A23:  rng s1 c= right_open_halfline x0 /\ dom f and
A24:  s1 is by A11,A9,VALUED_1def 1;
A25: now let p be Real;
      assume 0<p;
      then consider d be Real such that
A26:   0<d and
A27:   for x1 be Real st x1 in dom f & x0 < x1 & x1 < x0+d holds:x =sup I java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
         |.f.x1-f.x0.|<p by A22
      consider n being Nat such that
A28:   or Nat   =holds|s1mx0|d byjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 75
      take k=(f1(f2)I.  f2()f1\)  f1.x*I.
      let m be Nat;
A29:  m in NAT by ORDINAL1:def 12;
      assume k<=m; then
A30:     en;

java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 40

A32:   rng s1 c= right_open_halfline x0 & rng s1 c= dom f
         by A23,XBOOLE_1:18; then
      m in right_open_halfline by VALUED_0:28 then
A33:   s1.m in ].x0,+infty.[ by LIMFUNC1:java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 60
A34:   x0 < s1.m by XXREAL_1:235;
A35:   0 < s1.m-x0 by A33,XREAL_1:50,XXREAL_1:235;

      f/*s1 = f*s1 by A23,XBOOLE_1:18,FUNCT_2:def 11; then
A36:  (f/*s1).m = f.(s1.m)     hereby x bejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

      s1.m-x0 < d by A30,A35,ABSVALUE:def 1; then
      s1.m < x0+d by XREAL_1:19;
      hence |.(f/*s1).m - f.x0.<p by A36,A27,A30,,A34;
     end;
     then f/*s1 is convergent by SEQ_2:def 6;
     hence f/*s1 is convergent & f.x0  by ,,:def4;;
    end;
    hence f is_Rcontinuous_in x0 by A22,FDIFF_3:def 2;
end;

theorem
, x0 be  
 f is_Lcontinuous_in x0 & f is_Rcontinuous_in x0
 holds f is_continuous_in x0
proof
    let f be PartFunc of REAL,REAL, x0 be Real;
    assume that
java.lang.StringIndexOutOfBoundsException: Range [27, 2) out of bounds for length 31
A2:  f is_Rcontinuous_in x0;

    for e be Real st 0<e A3:  f2 is_differentiable_o I;
     for x be Real st x in dom f & |. x-x0 .| < d holds |. f.x - f.x0 .| < e
    proof
     let e be Real;
     assume
:  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
     java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 34
A4:   0 < d1 &
      for x be Real st x in dom f & x0-d1 < x & x < x0 holds
      .x - f.x0 .| < e by A3,A1,Th27;
     consider d2 be Real such that
A5:   0 < d2 &
      for x be Real st x in dom f & x0 <
      |. f.x - f.x0 .| < e by A3,A2,Th28;
     take d = min(d1,d2);
     thus 0 < d by A4,A5,XXREAL_0:21;
     thus for x be Real st java.lang.StringIndexOutOfBoundsException: Range [57, 28) out of bounds for length 57
      holds |. java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 13
     java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
      let x be Real;
      assume that
A6:A6:   ;
A7:   |. x-x0 .| < d;
A8:  -d < -|. x-x0 .| by A7,XREAL_1:    `)=   (2\   java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 55
      -|. x-x0 .| <= x-x0 & x-x0 <= |. x-x0 .| by ABSVALUE:4; then
A9:  -d < x-x0 & x-x0 < A13: I = dom((f1`\I)(#)f2&I =dom(1#(\)by:ef4;
      per cases by XXREAL_0:1;
      suppose x = x0;
       f22)x=(.)2 by11 
      end;
      suppose
A10:   x < x0;
A11:   x0-d < x by A9,XREAL_1:20;
       x0-d1 <= hence x in dom(f2^2) \ (f2^2)"{0} by A16,A3,A15,XBOOLE_0:def 5;
       d  by,2;
       java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 47
      end;
      suppose
A12:   x0 < x;
    x0d19java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
       += d2by17Xjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 51
       x < A21:for  beElement of REAL st x in dom((1/2`I)holds
       hence |. f.x - f.0.  e by A5,,12
      end;
     end;
    end;
    henceper java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
end;

theorem
for x0 be Real, f be PartFunc of REAL,REAL st f is_Lcontinuous_in x0 &
 (for r be Real st r<x0 ex g be Real st r<g & g<x0 & g in dom f)
 java.lang.StringIndexOutOfBoundsException: Range [7, 1) out of bounds for length 69
proof
    let x0 be Real, f be PartFunc of REAL,REAL;
    assume that
A1: f is_Lcontinuous_in x0 and
A2: for r be Real st r<x0 ex g be Real st r<g & g<x0 & g in dom f;

A3: for seq be Real_Sequence st seq is convergent & lim seq=x0 &
      rng seq c= dom f /\ left_open_halfline(x0) holds
        f/*seq is convergent & lim(f/*seq)=f.x0 by A1,FDIFF_3:def 1;
      x0by A2,LIMFUNC2def 1;
    lim_left(,x0)=f.0by A3,LIMFUNC2def 7;
end       (f1/f2)`I).x  ((f1`\)(#)f2).x  ((f2``\)()f1)x)*(f2^2).)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73

theorem
orx0 be Real, f be PartFunc of REAL,REAL st f is_Rcontinuous_in x0 &
 (for r be Real st x0<r ex g be Real st g<r          by A22,A12,19VALUED_1:13;
 holds f is_right_convergent_in x0 & hence ((f1/f2)`\I).x = (((f1`\I)(#)f2 - (f2`\I)(#)f1)/(f2^2)).x
proof
    let x0 be Real, f be PartFunc of REAL,REAL;
    assume that
A1: f is_Rcontinuous_in x0 and
A2: for r be Real st x0<r ex g be Real st g<r & x0<g & g in dom f;

A3: for seq is_left_differentiable_injava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 68
      rng seq c= dom f /\ right_open_halfline(x0) holds
        f/*seq is convergent & lim(f/*seq)=f.x0 by A1,FDIFF_3:def 2;
    hence f is_right_convergent_in x0 by A2,LIMFUNC2:def 4;
    hence lim_right(f,x0) = f.x0 by A3,LIMFUNC2:def 8;
end;

theorem
lst
 x0 in dom f & f is_right_convergent_in x0 & lim_right(f,x0) = f.x0
  holds f is_Rcontinuous_in x0
proof
    let f be PartFunc of REAL,REAL, x0 be Real;
    assume that
A1:  x0 in dom f and
_onvergent_in x0 and
3  fx)=x;

    for a be Real_Sequence st rng a c= right_open_halfline x0 /\ dom f &
      a is convergent & lim a = x0 holds
       f/*a is convergent & f.x0 = lim(f/*a) by A2,A3,LIMFUNC2:def 8;
    hence f is_Rcontinuous_in x0 by A1,FDIFF_3:def 2;
end;

java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 73
x0 ,fbe  of REAL,REAL st
 x0 in dom f & f is_left_convergent_in x0 & lim_left(f,x0) = f.x0
  holds f is_Lcontinuous_in x0
proof
    let x0 be Real, f be PartFunc of REAL,REAL;
    assume that
A1:  x0 in dom f and
A2:  f is_left_convergent_in x0 and
A3: lim_left(f,x0) = f.x0;

    for seq be Real_Sequence st rng seq c= left_open_halfline(x0) /\ dom f &
     seq is convergent & lim seq = x0
     holds f/*seq is convergent & f.x0 = lim(f/*seq) by A2,A3,L_HOSPITby A22A,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 36
    hence f is_Lcontinuous_in x0 by A1,FDIFF_3:def 1;
end;

theorem
for f be PartFunc of REAL,REAL, x0 be Real st
 f is_convergent_in x0 & lim(f,x0) = f.x0 holds f is_continuous_in x0
proof
    let f be PartFunc a
    assume that
A1:  f ((f1/f2`I.   f`I()) ((2`\I)(#)f1)).x * ((f2^2).x)"
A2:  lim(f,x0) = f.       by A30,20,FUNCT_1def 1;

    for e be Real st 0 < e ex d be Real st 0 < d &
     for x be Real st x      ((((f1)I.=(1\.  f2x (\)#).)*(f2^)x)
    proof
     ((f1/f2)\I)x=((f1`\).x *f2. -(f2\I)(#)).)/(f2(#f2.)
     assume
java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 17
     consider d be Real such that
A4:   0 < d &
       x be Real st 0<|.x0-x .| & |. x0-x .| < d & x in dom f
        holds |. f.x-f.x0 .| < e by A1,A2,LIMFUNC3:28;
     take d;
     thus 0 < d by A4;
     thus for x be Real st x in;
     proof
      let x be Real;
      assume that
A5:    xfor f be PartFunc of REAL,REAL, x0 be Real st
A6:    |. x-x0 .|dom f & f is_continuous_in holds
A7:   |. -(x-x0) .| = |. x-x0 .| by COMPLEX1:52;
      let f be  of REAL,,x0  Real;
      suppose x=x0;
       hence | ...<by COMPLEX144;
      end;
      suppose x<>x0; then
       x0-x <> 0;
       hence |. f.x-f.x0 .|< e by A4,A5,A6,A7,COMPLEX1:47;
      end;
     end;
    end;
    henceA3   
end;

reserve h for non-zero 0-convergent Real_Sequence;
reserve c for java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0

theorem Th35:
for f be PartFunc of REAL,REAL, java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 28
 f|(right_closed_halfline x0) is_continuous_in x0
proof
    let f be PartFunc of REAL,REAL, x0 be Real;
     is_Rcontinuous_inx0;then
A2: x0 in dom f &
    for e be Real st 0<e ex d be Real st 0 < d &
     for x be Real st x in dom f & x0 < x & x < x0+d holds
      |. f.x - f.x0 .| < e by Th28;

    f1frjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 40
    for e be Real st 0<e ex d be Real st 0<d & for x be Real st
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 62
    proof
     let e be Real;
     assume
A3:   0<e; then
     consider d be Real such that
A4:   0 < d and
A5:   for x be Real st x in dom f & x0 < x & x < x0+d holds
       |. f.x - f.x0 .| < e by A1,Th28;
     take d       <
     thus 0 < d by A4;
     thus for x be Real st x in dom f1 & |. x-x0 .| < d
      holds |. f1.x - f1.x0 .| < e
     
      let x be Real;
      A4:  for n be Element of NAT ex p being Element of REAL st P[n,p]
A6:    x in dom f1 and
A7:    |. x-x0 .| < d;
      dom f1 = dom f /\ right_closed_halfline x0 by RELAT_1:61; then
A8:   x in dom f & x in right_closed_halfline x0 by A6,XBOOLE_0:def 4; then
      x in [.x0,+infty.[ by LIMFUNC1:def 
A9:   x0 <= x by XXREAL_1:236;
      per cases;
      suppose x = x0;
       hence |. f1.x - f1.x0 .| < e by A3,COMPLEX1:44;
      end;
      suppose x <> x0; then
A10:    x0 < x by A9,XXREAL_0:1; then
       x-x0 >0 by XREAL_1:50; then
       x-x0 < d by A7,ABSVALUE:      x in left_open_halfline x0 b:10;
java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 31
       x0 in [.x0,+infty.[ by XXREAL_1:236; then
       x0 in java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 19
       f1.x = f.x & f1.x0 = f.x0 by A6,A2,RELAT_1:57,FUNCT_1:47;
       hence |. f1.xA12:f/A8XBOOLE_1:18,FUNCT_2:def 11;
      end;
     end;
    end;
          not |..(s1.n)f.0.|<by A5,;
end;

theorem Th36:
for f be PartFunc of REAL,REAL, x0 java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 12
 f|(left_closed_halfline x0) java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 36
proof
    let f be  d+(0qua Nat) <n+1 by A15,XREAL_1:8; then
    assume A1: f is_Lcontinuous_in x0; then
A2: x0 in dom f &
    forjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 48
     for x be Real st x in dom f & x0-d < x & x < x0 holds
      |. f.x - f.x0 .| < e by Th27;

    set f1=()=(+)java.lang.StringIndexOutOfBoundsException: Range [42, 38) out of bounds for length 43
    for e be Real st 0<e ex d be Real st 0<djava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 35
     x in dom f1 & |. x-x0 .| < d holds |. f1.x - f1.x0 .| < e
    proof| -s1.m  ) .<d  A18,A19,XREAL_0:2;
     let e be Real;
     assume
3:  0<e;
     consider d be Real such that
A4:   0 < d and
A5:   for x be Real st x in dom f & x0-d < x & x < x0 holds
       |. f.x - f.x0 .| < e A21: m being Nat st n<m holds |(/*s1)m-..< by A2,EQ_2:ef 7;
     take d;
     thus 0 < d by A4;
     thus for x be Real st x in dom f1 & |. x-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      holds |. f1.x - f1.x0 .| <      for  be Real st 0< ex d be Real st 0<d &
     
      let        |. f.f.x  x0.  e;
      assume that
A6:    x in dom f1 and
A7:    |. x-x0 .| < d;
      dom  = dom f /\ left_closed_halfline x0 by RELAT_1:61; then
A8:   x in dom f & x in left_closed_halfline x0 by A6,XBOOLE_0:def 4; then
      x in].-infty,x0.] by LIMFUNC1:def 1; then
A9:   x <= x0 by XXREAL_1:234;
      per cases;
      suppose x = x0;
       hence |. f1.x - f1.x0 .| < e by A3,COMPLEX1:44;
      end;
      A26:  0dand
A10:A10:     java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 64
       -(x-x0) < d by A7,ABSVALUE:def 1,XREAL_1:49; then
       x0 -x < d; then
       x0 < x + d by XREAL_1:19; then
A11:    x > x0-d by java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 15
       x0 in ].-infty,x0.] by XXREAL_1:234; then
       x0 in left_closed_halfline x0 by LIMFUNC1:def 1; then
       f1.x = f.x & f1.x0 = f.x0 by A6,A2,RELAT_1:57,FUNCT_1:47;
       hence:.mins1 .java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 57
      end;
     end;
    end;
    hence thesis by FCONT_1:3;
end;

theorem
for f be PartFunc of REAL,REAL, I be non empty Interval st
 f is_differentiable_on_interval I holds f|I is continuous
proof
    let f be PartFunc of REAL,REAL, I be non empty Interval;
    assume
A1:f is_differentiable_on_interval I;

 is_continuous_in
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
     let x be Real;
     assume
A2:   x in dom(f|I);
     per cases;
     suppose
A3:   x = inf I; then
      f|I is_right_differentiable_in x by A1,A2,Th11; then
A4:   (f|I)|(right_closed_halfline x) is_continuous_in x
        by Th35,FDIFF_3:7;
      now f is_Rcontinuous_in x0 iff
       assume y in I; then
       x <= y by A3,XXREAL_2:3; then
       y in [.x,+infty.[ by XXREAL_1:236;
       hence y in right_closed_halfline x by LIMFUNC1:def 2;
      end; then
      I c= right_closed_halfline x;
      hence f|I is_continuous_in x by A4,A1  fjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 28
     end;
     suppose
A5:   x = sup I; then
      f|I is_left_differentiable_in x by A1,      f|I is_left_differentiable_in x by A1,A2
java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 55
        byTh36,DIFF_3:5;
      now let y be Real;
       assume y in I; then
       y <= x x by A5A5,XREAL_2:4; then
       y in ].-infty,x.] by XXREAL_1:234;
       hence y in left_closed_halfline x by LIMFUNC1:def 1;
      end; then
      I c= left_closed_halfline x;
      hence f|I is_continuous_in x by A6,RELAT_1:73;
     java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
     suppose x <> inf I & x <> sup I; then
      x  ]infI,upI[by A2,; then
      f is_differentiable_in x by A1,A2,Th11;
      hence f|I is_continuous_in x by A2,FDIFF_1:24,FCONT_1:1;
     end;
    end;
    hence f|I is continuous by FCONT_1:def 2;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4

theorem
for f be PartFunc of REAL,REAL, I,J be non empty Interval st
 is_differentiable_on_interval c=I &inf J < sup J holds
  f is_differentiable_on_interval J &
  for x be Real st x in J holds (f`\I).x = (f`\J).x
proof
    let f be PartFunc of REAL,REAL, I,J be non empty Interval;
    assume that
A1:  f is_differentiable_on_interval I and
A2:  J c= I and
A3: inf J < sup J;
    I c= dom f by A1; then
A4: J c= dom f by A2;
A5: inf I <= inf J & sup J <= sup I by A2,XXREAL_2:59,60;

    for x be Real st x in J holds
     (x = inf J implies f|J is_right_differentiable_in x) &
     (x = sup J implies f|J is_left_differentiable_in x) &
     (x in ].inf J,sup J.[ implies f is_differentiable_in x)
    proof
     let x be Real;
     assume
A6:xjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 13

     hereby assume
A7:   x = inf J;
      per cases;
      suppose x = inf I; then
       f|I ferentiable_in x ,Th11; then
       (f|I)|J is_right_differentiable_in x by A6,A7,A3,Th4;
       hence f|J is_right_differentiable_in x by A2,RELAT_1:74;
      end;
      suppose x <> inf I; then
       x in ].inf I,sup I.[ by A2,A7,A6,A5,A3,Th3; then
       f is_differentiable_in x by A1,A2,A6,Th11; then
x FDIFF_322;
       hence f|J is_right_differentiable_in x      assume k<=m;
      end;
     end;

     hereby assume
A8:   x = sup J;
      per cases;
uppose x = sup I; then
       f|I is_left_differentiable_in       |. s1.m-x0 .| = s1.m-x0 by ABSVA:def 1;
       (f|I)|J is_left_differentiable_in x by A6,A8,A3,Th5;
       hence f|J is_left_differentiable_in x by A2,RELAT_1:74
      end;
suppose <> supI then
       x in ].inf I,sup I.[ by A3,A5,A2,A8,A6,Th3; then
       f is_differentiable_in x by A1,A2,A6,Th11; then
       f is_left_differentiable_in x by FDIFF_3A21:  for m being  Nat st n<=m holds |.(f/*s1).m-f.x0.|<e by A2,SEQ_2:def 7;
       hence f|J is_left_differentiable_in x by A6|< by A21java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
      end;
     end;

     hereby assume x in ].inf J,sup J.[; then
REAL_14 java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
       I &   Iby: 
x],supI.[ by :;
      fis_differentiable_inxbyA1A2,,;
     end;
    end;
    hence
A9:  f is_differentiable_on_interval J by A4,Th11;
thus x beReal stxin holds f`I.  (`\).
    proof
              |.x1-f.x0.|< by A22;
     assume A10: x in J; then
A11:  inf J <= x & x <= sup J by XXREAL_2:3,4;
      cases;
     suppose
A12:   x = inf J;
      per cases;
      suppose x = inf I; then
       (f`\I).x = Rdiff(f,x) & (f`\J).x = Rdiff(f,x) by A1,A2,A10,A9,A12,Def2;
       hence (f`\I).x = (f`\J).x;
      end;
      suppose
A13:    x <> inf I; then
       x in ].inf I,sup I.[ by A2,A10,A12,A3,A5,Th3; then
       f is_differentiable_in x by A1,A2,A10,Th11; then
       diff(f,x) = Rdiff(f,x) byby A23,XBOOLE_1:18; then
       (f`\I).x = Rdiff(f,x) & (f`\J).x = Rdiff(f,x)
         by A1,A2,A10,A9,A12,A13,Def2,A5;
hence(f\).=(`\.java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
      end;
     end
     suppose
A14:   x = sup J;
      per cases;
      suppose x = sup I; then
       (f`\I).x = Ldiff(f,x) & (f`\J).x = Ldiff(f,x) by A1,A2,A9,A10,A14,Def2;
       hence (f`\I).x = (f`\J).x;
      end;
      suppose
A15:    x <> sup I; then
       x in ].inf I,sup I.[ by A2,A10,A14,A3,A5,Th3; then
       f is_differentiable_in x by A1,A2,A10,Th11; then
       diff(f,x) = Ldiff(f,x) by FDIFF_3:22; then
       (f`\I).x =        f/s1).m= f(s1.m) by:13
         by A1,A2,A10,A9,A14,A15,Def2,A5;
       hence (f`\I).x = (f`\J).x;
      end;
     end;
     suppose x <> inf J & x <> sup J; then
      inf J < x & x < sup J by A11,XXREAL_0:1; then
      (f`\I).x = diff end;
      hence (f`\I).x = (f`\J).x;
     end;
    end;
end;

theorem
for f be PartFunc of REAL,REAL, Z be open Subset of REAL,
 I be non empty Interval st I c= Z & inf I < sup I &
 f is_differentiable_on Z holds f is_differentiable_on_interval I
proof
    let f be PartFunc of REAL,REAL, Z be open Subset of REAL,
    I be non empty Interval;
    assume that
A1:  I c= Z and
A2:  inf I < sup I and
A3:  f is_differentiable_on Z;
    Z c= dom f by A3; then
A4: I c= dom f by A1;
    for xbe   x I
     (x
      f| x java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
     (forf PartFuncofREALREAL,x0be Real java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    proof
     let x be Real;
 assume
A5:  x in I; then
      is_differentiable_in x by A1,A3,FDIFF_1:9; then
A6:  f is_right_differentiable_in x & f java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 28
    for  beste  0  java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
hencex = inf I implies f|I is_right_differentiable_in x
      by A5,A2,Th4;
     let  
       A5,A2,Th5;
     assume x in ].inf I,sup I.[;
     thus f is_differentiable_in x by A5,A1,A3,FDIFF_1:9;
    end;
    hence f is_differentiable_on_interval I by        x  Realst    f&x0 <  x < holds
end;

begin:: Chain Rule

reserve ,,R2 for RestFunc;
LL, for LinearFunc

Lm20:
for x0 be Real, f1,f2 be PartFunc of REAL,REAL st
  is_right_differentiable_in x0 & f2 is_differentiable_in f1.x0 holds
   (ex r be Real st r>0 & [.x0,x0+r.] c= dom(f2*f1))
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL;
    assume that
A1:  f1 is_right_differentiable_in x0 and
A2:  f2 is_differentiable_in f1.x0;

be such  that
   > &[x0+. =  f1 byA1,: ;
    consider N2 be Neighbourhood of f1.x0      suppose x = x0;
A4:  N2 c= dom f2 by A2;

    x0       end
A5: x0 in right_closed_halfline x0 by LIMFUNC1:def 2;
    set ff1 = f1|(right_closed_halfline x0);

    reconsider N2 as Neighbourhood of ff1.x0 by A5,FUNCT_1:49;

ff1is_continuous_in x0 byA1FDIFF_3:,h35;then
der java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 48
A6:  ff1.:N3 c= N2 by FCONT_1:5;
    consider r2 be Real such that
A7:  r2 >       x<x0+2by ,:2;

    set r3 = min(r1,r2);
 >  A3,XXREAL_0:21;
A9 x0r3< x0+r1 & x0+r3<= x0+r2 by XREAL_1:6,XXREAL_0:17;

    consider x1 be Real such that
A10:  x0 < x1 & x1 < x0+r3 by A8,    hence f is_continuous_in x0 by FCONT_13;
    take r = x1-x0;
    thus r > 0 by A10,XREAL_1:50;

:-   A7XREAL_144;
A12: x0+r < x0+r1 & x0+r < x0+r2 by A9,A10,XXREAL_0:2; then
13:[.x0,x0+r . =N3byA7,,A11,XREAL_147;

    [. x0,x0+r .] c= [. x0,x0+r1 .] by A12,XXREAL_1:34; then
A14: [. x0,x0+r .] c= dom f1 by A3;

    now let x be Real;
     assume
A15:  x in [.x0,x0+r.];

     x0 <= x by A15,XXREAL_1:1; then
     x in [.x0,+infty.[ by XXREAL_1:236; then
A16: x in right_closed_halfline x0 by LIMFUNC1:def 2; then
: ff1.x = f1. by FUNCT_1:49

indomff1byA15A,A16,RELAT_1:57;
:def ;then
     f1.x in dom f2 by A6,A4,A17;
     hence x in dom(f2*f1) by A15,A14,FUNCT_1:11;
    end;
    hence [.x0,x0+r.] c= dom(f2*f1);
end;

theorem Th40:
for x0 be Real, f1,f2 be PartFunc of REAL,REAL st
 f1 is_right_differentiable_in x0 & f2 is_differentiable_in f1.x0 holds
 f2*f1 is_right_differentiable_in x0 &
 Rdiff(f2*f1,x0) = diff(f2,f1.x0)*Rdiff(f1,x0)
proof
    let x0 be Real, f1,f2 be     let x0 be Real, f1,f2 be PartFunc of L stf is_Rcontinuous_in x0 &
    assume that( r beReal  x0< ex g  Real st g<&x0<g & g in dom f)
A1:  f1 is_right_differentiable_in x0 and
A2:  f2 is_differentiable_in f1.x0;

    consider r be Real such that
A3:  r > 0 & [.x0,x0+r.] c= dom(f2*f1) by A1,A2,Lm20;

A4: f1 is_Rcontinuous_in x0 by A1,FDIFF_3:7;

    x0 < x0+r by A3,XREAL_1:29; then
A5: x0 in domA2  rbe   x0rex  Realst <  <   inf
A6: f1.x0 in dom f2 by FUNCT_1:11;

    for h,c st rng c = {x0} & rng (h + c) c= dom (f2*f1) &
    h. >0)holds
     "#(*/(+)- f2*f1/*) convergent
   & lim (h"(#)((f2*f1)/*(h+c)   hence is_right_convergent_in   A2,: 4
    proof
     let h,c;
     assume that
A7:   rng c = {x0}java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A8:   rng (h + c) c= dom (f2*f1) and
A9:   for n be Nat holds h.n > 0;

A10:  for n be Nat holds c.n = x0
     proof
      let n be Nat;
      c.n in rng c by VALUED_0:28;
      hence c.n = x0 by A7,TARSKI:def 1;
end;

A11  holds f is_Rcontinuous_in x0
      assume
A12:    x in rng(h+c); then
      consider n be Element of NAT such that
A13:    x = (h+c).n by FUNCT_2:113;
      x = h.n + c.n by A13,SEQ_1:7; then
      x = h.n + x0 by A10; then
      x > x0 by A9,XREAL_1:29; then
      x in ].x0,+infty.[ by XXREAL_1:235; then
A14:   x in right_open_halfline x0 by LIMFUNC1:def 3;
      x in dom f1 by A12,A8,FUNCT_1:11;
      hence x in right_open_halfline x0 /\ dom f1 by A14,XBOOLE_0:def 4;
     end; then
A15:  rng (h + c) c= right_open_halfline x0 /\ dom f1; then
A16:  rng (h+c) c= dom f1 by XBOOLE_1:18;
A17: rng c c= dom f1 by A7,A4,FDIFF_3:def 2,ZFMISC_1:31;

     set a = f1/*c;
     set d = f1/*(h+c) - f1/*c;

A18: lim h = 0;

     lim c = c.0 by SEQ_4:25; then
     lim c = x0 by A10; then
A19: lim (h + c) = 0 + x0 by A18,SEQ_2:6 .= x0;

A20: f1 is_Rcontinuous_in x0 by A1,FDIFF_3:7; then
A21: f1/*(h+c) is convergent by A15,A19,FDIFF_3:def 2;

A22: f1.x0 = lim (f1/*(h+c)) by A15,A19,A20,FDIFF_3:def 2;
A23: rng (f1/*(h+c)) c= dom f2 by A8,FDIFF_2:9;
     now let x be Real;
      assume x in rng a; then
      consider n be Element of NAT such that
A24:   a.n = x by FUNCT_2:113;
      c.n = x0 by A10;
      then x = f1.x0 by A17,A24,FUNCT_2:108;
      hence x in {f1.x0} by TARSKI:def 1;
     end; then
A25: rng a c= {f1.x0};

     now let x be Real;
A26:  a.0 in rng a by VALUED_0:28;
      assume x in {f1.x0}; then
A27:  x = f1.x0 by TARSKI:def 1;
      c.0 = x0 by A10;
      hence x in rng a by A17,A27,A26,FUNCT_2:108;
     end; then
     {f1.x0} c= rng a; then
A28: rng a = { f1.x0 } by A25,XBOOLE_0:def 10;

A29: now
      let n be Nat;
      a.n in rng a by VALUED_0:28;
      then
A30:  a.n = f1.x0 by A25,TARSKI:deftake java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      a.(n+1) in rng a by VALUED_0:28
      hence a.n = a.(n+1) by A25,A30,TARSKI:def 1;
     end; then
A31:  a is constant by VALUED_0:25;

     reconsider a as constant Real_Sequence by A29,VALUED_0:25;
     a.0 in rng a by VALUED_0:28;
t a. =f1.x0 by A25,TARSKI:def 1;
     then lim a = f1.x0 by SEQ_4:25;
     then
A32: lim d = f1.x0 - f1.x0 by A21,A22,SEQ_2:12 .= 0;

     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent &
     lim (h"(#)((f2*f1)/*(h+       .x=fx&f1.x0=f. byA2RELAT_1:57F:47
     proof
      per cases;
      suppose
       ex k be for f be PartFunc of REAL,REAL, x0 be Real st f is_Lcontinuous_in x0 holds
        st k <= n holds (f1/*(h+c)).n <> f1.x0;
k NATthat
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 39
A34:    now
        given n being Nat such that
A35:     (d^\k).n = 0;

         d(+k)by A35,NAT_1:def 3
         .= (f1/*(h+c)).(n+k) - (f1/*c).(n+k) by RFUNCT_2:1
         .= (f1/*(h+c)).(n+k) - f1.(c.(n+k)) by A17,FUNCT_2:108
         .= (f1/*(h+c)).(n+k) - f1.x0 by A10;
         by NAT_112
       end;

       setc1 =c\
       set h1 = h^\k;
       set a1 = a^\k;
       set s = h1"(#)(f1/*(h1 + c1) - f1/*c1);

A36:   now
        let n be Element of NAT;
        thus (d + a).n = d.n + a.n by SEQ_1:7
           .= (f1/*(h+c)).n - a.n + a.n by RFUNCT_2:1
           .= (f1/*(h+c)).n;
       end;

       lim (d^\k) = 0 by java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 21
       then reconsider d1 x,Th11; then
          by A31,A21 | Th5;

       set t = d1      inf         : 

       d1 + a1 = (d + a)^\k by SEQM_3:15; then
A37:   d1A12:x  inf 

        ((/*(c))\)c=rng(1/(c)byVALUED_021java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
       java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A38:   rng (d1 + a1) c= dom f2 by A23,A37;
A39:   rng   {1x0}byA28,VALUED_0:26;
       then
A40:   lim t = diff(f2,f1.x0) by A2,A38,FDIFF_2:12;
       diff(f2,f1.x0) = diff(f2,f1.x0);
       then
A41:   t is convergent by A2,A39,A38,FDIFF_2:12;
       rng ((h + c)^\k) c= rng (h + c) by VALUED_0:21;
       then rng ((h + c)^         . ,sup. byA2A10,,3,5,Th3;then
hen
A42:   rng (h1 + c1) c= right_open_halfline x0 /\ dom f1 by SEQM_3:15;
       right_open_halfline x0 /\ dom f1 c= dom f1 by XBOOLE_1:17; then
A43:   rng (h1+c1) c= dom f1 by A42;
A44:   endjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
A45:   for
       proof
         java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        h1.n = h.(k+n) by NAT_1:def 3;
        hence h1.n > 0 by         
       end;    assumethat
       RdiffA2 infI  sup and
       then
A46:   s is convergent by A1,A44,A45,A43,FDIFF_3:15;

letx Real
        c1) (#)h1") by SEQM_3:15
          .= d1"(#)(f2/*A6  f is_right_differentiable_in x & fis_left_differentiable_in
        h1") by A15,XBOOLE_1:hence x=  I implies f|I is_right_differentiable_in x
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1/*(h+c))^\k - (f1/*c)^is_differentiable_on_intervalA4;
        (#)h1") by A17,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (((f1/*(h+c))^\k - (f1/*c)^\k)
       #h1" bydef 10
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h1") by SEQM_3:17
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)h1" Real ,  ofst
          . f2/*(d1+a1) - f2/*a1) (#) h1" by SEQ_1:37
          .= ((f2/*(f1/*(h+c)))^\k - f2/*a1) (#) h1" by A23,A37,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - f2/*a1) (#) h1" by A8,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\k - ((f2/*a)^\k)) (#) h1"
              by A6,A28,ZFMISC_1:31,VALUED_0:
          .= (((f2*f1)/*(h+c))^\k - (((f2*f1)/*c)^\k)) (#) h1"
              by A7,A5,ZFMISC_1:31,VALUED_0:31
            byd 
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) ((h")^\k) by SEQM_3:18
          .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k by SEQM_3:19;
       hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
         by A46,A41,SEQ_4:21;

       lim s = Rdiff(f1,x0) by A1,A44,A45,A43,FDIFF_3:15;
       ()(2*1)/(hc)-(f2*)*c))^\)= diff(2f1)*
       Rdiff(f1,x0 ) by A47,A46,A41,A40,SEQ_2:15;
       hence thesis by A47,A46,A41,SEQ_4:22;
      end;
      suppose
   for be java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 30
        ex n be Element of NAT st k <= n & (f1/*;

       defpredforx0beReal f2 be  REAL st

A49:   for k be Element of NAT ex n be Element of NAT
          st k <= n & P[(f1/*(h+c)).n] by A48;
       java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 5
A50:    for n being Nat     that
        for n be Element of NAT st for r be Real st r = (f1/*(h+c)).n holds
          java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        from FDIFF_2:sch 1(A49);

       reconsider h1 = h*I1 as 0-convergent non-zero Real_Sequence
          by FDIFF_2:6;

       set c1 = c*I1;
A51:   c1 = c by VALUED_0:26;
A52:

java.lang.StringIndexOutOfBoundsException: Range [38, 3) out of bounds for length 39

A54:   for n be Nat holds h1.n > 0
       proof
        let n be Nat;
        dom h1 = NAT by FUNCT_2:def 1; then
        in dom   : 12; then
               h1.   h A53,FUNCT_1:3 
        ex m be Element of NAT st h1.n = h.m by FUNCT_2:113;
        hence h1.n > 0 by A9;
       end;

       reconsider c1 as constantcnr by 28java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
A55:   now
        let g be Real such that
  java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
        reconsider n A13:    = h)nby:
        take n;
        let m be Nat such that n <= m;
A57:    m in NAT by ORDINAL1:def 12;
        |.(h1"(#)(f1/*( let beNat;
          h1+c1) - f1/*c1).m.| by SEQ_1:8
         .= |.(h1").m *((f1/*(h1+c1)).m - (f1/*c1).m).| by RFUNCT_2
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.(c.m)).|
             by A17,A51,A57,FUNCT_2:108
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.x0).| by A10
         .= |.(h1").m *((f1/*((h+c)*I1)).m - f1.x0).| by RFUNCT_2:2
         .= |.(h1").m *((f1/*(h+c)*I1).m - f1.x0).|
             by A15,XBOOLE_1:reconsider  as constantReal_Sequence byA29,ALUED_0:;
         .= |.(h1").m *(f1.x0 - f1.x0).| by A50
         .= 0 by ABSVALUE:2;
        hence |.(h1"(#)(f1/*(h1+c1) - f1/*c1)).m - 0 .| < g by A56;
       end;

       rng ((h      h"#(f2*)*h+ -(*)*)is  &
       then rng ((h + c)*I1) c= dom f1 by A16;
       then
A58:   rng (h1 + c1) c= dom f1 by RFUNCT_2:2;
       then
A59:   lim (h1"(#)(f1/*(h1+c1) - f1/*c1)) = Rdiff(f1,x0)
          by A1,A52,A54,FDIFF_3:15;

       Rdiff(A35:     (d^\k)n=0;
       then h1"(#)(f1/*(h1+c1) - f1/*c1) is convergent
          by A1,A52,A58,A54,FDIFF_3:15;
       then
A60:   Rdiff(f1,x0) = 0=(*hc).n+k  x0by;

       now per cases;
        suppose
         ex k be Element of NAT st
          for n be Element of NAT st k <= n holds (f1/*(h+c)).n = f1.x0;
         then consider k be Element 
A61:      for n be Element of NAT st k <= n holds (f1/*(h+c)).n = f1.x0;

A62:     now let g be Real such that
A63:       0 < g;
          reconsider n = k as Nat;
          take n;
          let m be Nat;
A64:      m in NAT by ORDINAL1:def 12;
          assume n <=  +a1=(/(+c))kby A36,UNCT_2:3;
          then
A65:      (f1/*(h+c)).m = f1.x0 by A61,A64;

          |x0)=Rdifff1,0);
              - diff(f2,f1.x0)*Rdiff(f1, x0 ) .|
            = |.(h").m * ((f2,A43:
           .= |.(h").m * (((f2*f1)A47   (#s= "#(2*(d1a1  /java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
 
           .= |.(h").m * ((f2/*(f1/*(h+c))).m - ((f2*f1)/*c).m).|
               by A8,VALUED_0:31
           .= |.(h").m * (f2.((f1/*(h+c)).m) - ((f2*f1)/*c).m).|
               by A23,FUNCT_2:108,A64
           .= |.(h").m * (f2.(f1.x0) - (f2/*(f1/*c)).m).|
                ,,31,,31
           .= |.(h").m * (f2.(f1.x0) -        
               by A6,A28,ZFMISC_1:31,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 * f2.(.x0)-f2(.cm))|A17,FUNCT_2:A64
           .= |.(h").m * (f2.(f1.x0) - f2.(f1.x0)).| by A10
           .= 0 by ABSVALUE:2;
          hence
              |.(h"(#) ((f2*f1)/*(h+c) - (f2*f1)/*c)).m - diff(f2,f1.x0
              )*Rdiff(f1,x0).|<g by A63;
         
         hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent by SEQ_2:def 6;
         hence lim (h"(#)((f2*
Rdiff(,x0)byA62,:def7;
        end;
suppose
A66:     hence b  cjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
ex  Element NAT st            =|.()m *(f2**hc.m f*f1/c..java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64

          [ $  .;

:fork beElement of NAT
          end

 I2 be increasing sequence of NAT such that
A68:      for n being Nat holds P[(f1/*(h+c)*I2).n] and
.= z  1.R by 
           for r           h()(*  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
             
s(;

:java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
          ;
       (d. ;
n)yORDINAL1: 12UNCT_2:
           .that
           theoremTh5:
           .= (f1/*     dividesbimplies c*adivides c  java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
           .= (f1/*(h+c)*I2).n - f1.x0 by FUNCT_2:15,ORDINAL1:def 12;
          hence contradiction by A68;


         reconsider h2 = h*I2 as 0-convergent non-zero
              Real_Sequence by FDIFF_2:6;
         reconsider a1 = a*I2 as constant Real_Sequence;
         reconsider c2 = c*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         set s = h2"(#)(f1/*(h2+c2) - f1/*c2);

let multLoopStr;
         then reconsider R is commutative;
           by A31,A21,SEQ_4:16,A70,SEQ_1:5,FDIFF_1   java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

           divides                1)f2(d1+a1- *)( (f1*hc* *java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 76

A72:     rng a1 = {f1.x0} by A28,VALUED_0:26;
A73:     now
          letb          =f2(1)- /a1/"1()((h"  2
 ( +a. =d.n+ a. byEQ_17
   =(*+). -+ 1
             .= (f1/*(h+c)).n;
         end;

         d1 + a1 = (d + a)*I2 by RFUNCT_2:2; then
 d1  =f1*(h+)*I2byFUNCT_2:;

:     (s ")f2*d1)-f2*)()((/(h +c)*)
            - f1/*c2)(#)h2") by RFUNCT_2byZ31,java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
              .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*(h+c)*I2 - f1/*c2)
            (#)h2") by A15,XBOOLE_1:18,FUNCT_2:110
              .= d1"(#)(f2/*(d1+a1)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
            (#)h2") by A17,FUNCT_2:110
              .= ((f2rng ((h +c*I2 =domf1  A16; 
            ()" VALUED_1: java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h2") by RFUNCT_2:2
              .= ((f2/*(d1+a1) - f2/*a1)/A79       Natholdsh2. >0
              .= (f2/*(d1+a1) - f2/*a1) (#) h2" by SEQ_1:37
              .=proof
              .= ((f2*f1)/*(h+c)*I2 - f2/*a1) (#) h2" by A8,VALUED_0:31
              .= (((f2*f1)/            rng   java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 59
                  by A6,A28,ZFMISC_1:31,FUNCT_2:110
              .= (((f2*f1)/*(h+c))*I2 - (((f2*f1)/*c)*I2)) (#) h2"
                  by A7,A5,ZFMISC_1:31,VALUED_0:31
              =((*)*h+)  f2*)c)I2)()  java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 73
              .= (((f2*f1)/*(h+c) - (f2*f1)/*c)*I2) (#) ((h")*I2) by RFUNCT_2:5
              .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))*I2 by RFUNCT_2:2;

         (f1/*(h+c)I2 c=rng (*(h+c)by VALUED_0:;thenhence a =0.R;
      (1  ) c=dom f2 A23A74

         ( c*I2 c ( + )byVALUED_0: then
         rng ((h + c)*I2) c= dom f1 by A16; then
A77:     rng (h2 +   thenA/A) * A = A by Def4

A78:    rngfor  Elementof holds /1.  java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

   DF=diff(f1  (,x0)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
         proof
          let n be Nat;
          dom h2 = NAT Nat such 
          .n java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 59
NCT_2113;
          hence h2.n > 0 by A9;
         end;

A80  let a Elementof ;
A81:lim s =Rdiff(,)byA1A77,A79,FDIFF_3:15;

    (f1,0)=Rdiff(f1,0; then
82 s convergent A1,A80,77A79,DIFF_315;
         diff(f2,f1.x0) = diff(f2,f1.x0); then
A83:     t is convergent by A2,A72,A76,FDIFF_2:12;

         lim t = diff(f2,f1.x0) by A2,A72,A76,FDIFF_2:12; then
A84:     lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))*I2)
          =ff1A82,81,A83S15java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
A85:     now
          set DF = diff(f2,f1.x0) * Rdiff(f1,x0);
          let g be Real;
          assume
A86:       0 < g; then
          consider k being Nat such that
A87:       for m being Nat st k <= m holds |.((             .= |.(h").m * (((f2*f1)/*(h+c)).m -f1.  
              f1)/*c))*I2).m - DF.|<g by java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 36
A88:      k in NAT by ORDINAL1:def 12;
          reconsider n = I2.k as Nat;
          take n;
          let m be Nat such that
A89:       n <= m;
A90:      m in NAT by ORDINAL1:def 12;
          now per cases;
           suppose
:        (/*(hc))m=f1.x0;
            |.   =  *B&A2*C = BbyA1,Def4;
              = |.h).m *((*f1/*h)-(2*f1/c.)| by java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 77
             .=.(")m * (((f2*f1)/*(h+c).-((2*f1)/*c).m).
                                  FUNCT_2:
. .).*(f2 (f1/h+))impliesr1>.;
by,,31
. .()m((*f1*hc).m-.(/*)m)|
                   by A6,A28,ZFMISC_1:31,FUNCT_2:108,A90
             .= |.(h").m*((ta ) =d  dom  by:1
   thesis
             .= |            thendividesa java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 48
             .=A1c< 0.java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
                   by A8,VALUED_0:31
             .= |.(h").m*(f2.(f1.x0) - f2.(f1.x0)).|
                   by A23,A91,FUNCT_2:108,A90
             .= 0 by                      difff,.x0)*Rdifff1x0).  g
            hence |.(h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)).m
                    - diff(f2,f1.x0)*Rdiff(f1,x0) .| < g by A86;
;
           suppose
            (f1/*(h+c)).m <> f1.x0;
            then for java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 20
            then consider l be Element of NAT such that
A92:         m = I2.l by A69,A90;
            dom I2 = NAT by FUNCT_2:def 1;
            java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
+c)-(f2*c)I2l
            hence |.(h"(#)((f2*f1)/*(h+c)-(f2*f1)/*c)).m - DF.| < g
               by A92,FUNCT_2:15;
           end;
          end;
          hence |.(h"A2: f2 is_differentiable_inf1.
                    - diff(f2,f1.x0)*Rdiff(f1,x0) .| < g;
         end;
A3  r1  0 &.x0-,]c=domf1by ,FDIFF_3:ef ;
           by SEQ_2:def 6;
         hence lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))
* Rdifff1, byA85,SEQ_2:def 7;
        end;
       end;
       hence thesis;
      end;
     end;
     hence thesis;
    end;
    hence thesis by A3,FDIFF_3:15;
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4

Lm21:
for x0 be Real, f1,f2 be PartFunc of REAL,REAL st
 f1 is_left_differentiable_in x0 & f2 is_differentiable_in f1.x0 holds
   (ex r be Real st r>0 & [.x0-r,x0.] c= dom(f2*f1))
proof
x0  Real,f1 bePartFuncof REAL,EAL;
    
:f1  and
A2:  f2 is_differentiable_in f1.x0;

    consider r1 be Real such that
A3:  r1 > 0 & [.x0-r1,x0.] c= dom f1 by A1,FDIFF_3:def 4;
    consider N2 be Neighbourhood of f1.x0 such that
A4:  N2 c= dom f2 by A2;

    x0 in ].-     x < by A15,: 
5inx0 byjava.lang.StringIndexOutOfBoundsException: Range [52, 37) out of bounds for length 52
    set ff1 = f1|(left_closed_halfline x0);

    reconsider N2 as Neighbourhood of ff1.x0 by A5,FUNCT_1:49;

    ff1 is_continuous_in x0 by A1,FDIFF_3:5,Th36; then

    consider N3 be Neighbourhood of x0 such that
A6:  ff1.:N3 c= N2 by FCONT_1:5;
    consider r2 be Real such that
A7:  r2 > 0 & N3 = ].x0-r2,x0+r2.[ by RCOMP_1:def 6;

    set r3 = min(r1,r2);
A8: r3 > 0 byA3,XXREAL_0:21java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A9: x0-r1 <= x0A2:f2 f1.0java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

    consider x1 be Real such that
A10:  x0-r3 < x1 & x1 < x0 by A8,XREAL_1:5,44;
    take r = x0-x1;
    thus r > 0 by A10,XREAL_1:50;

A11: x0 < x0+r2 by A7,XREAL_1:29;
A12: x0-r1 < x0-r & x0-r2 <java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
 .x0rx0 ]c N3 A7,XXREAL_1:47;

    [. x0-r,x0 .] c= [. x0-r1,x0 .] by A12,XXREAL_1:     h()(
A14: [. x0-r,x0 .] c= dom f1 by A3;

    now let x be Real;
     assume
A15:  x in [.x0-r,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

< by ,XXREAL_1:1; then
     x in ]cn rngcby :;
A16: x in left_closed_halfline x0 by LIMFUNC1:def 1; then
A17: ff1.x = f1.x 

A18: x in dom ff1 by A15,A14,A16,RELAT_1:57;
    .  :  A15,A18,UNCT_1def 6; 
     f1.x in dom f2 by A6,A4,A17;
     hence x in dom(f2*f1) by A15,A14,FUNCT_1:11;
    end;
    hence [.x0-r,x0.] c= dom(f2*f1);
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 31

 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
for x0 beconsiderebeing  of  suchthat
 f1 is_left_differentiable_in x0 & f2 is_differentiable_in f1.x0 holds
 f2*Th14:
 Ldiff(f2*f1,x0) = diff(f2,f1.x0)*Ldiff(f1,x0)
proof
    x0 beReal ,2ofREALREAL
ssumethat
A1:  f1 is_left_differentiable_in x0 and
.;

    consider r be Real such that
A3:  r > 0 & [.x0-r,x0.] c=    that

us_in:( * B   A   A2

 <  ,:; hen
A5: java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A6: f1.x0 in dom f2 by  . C;

cstrng c =x0}& rng ( + c c=dom(f2*f1)&
     (for n be Nat holds hthen 0. divides ;
     h"#(f2*1/*(+) -(2/*)is convergent
   &assume that
    proof
      h,java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
     assume that
A7:   rng c = {x0} and
A8:   rng (h + c) c=A1:for a,b being Element of R holds a is_associated_to b implies
A9:end 

A10:  for n be Nat
     proof
      let n be Nat;
      c.n in rng c by VALUED_0:28;
      hence c.n = x0 by A7,TARSKI:def 1;
     end;

A11:  now let x be Real;
      assume
A12:    x in rng(h+c); then
      consider n be Element of NAT such that
A13:    x = (h+c).n by FUNCT_2:113;
      x = h.n + c.n by A13,SEQ_1:7; then
      x =30  n=f1.x0 by A25,TARSKI:1
      x < x0 by A9,XREAL_1:30; then
      x in ].-infty,x0.[ by XXREAL_1:233; then
A14:   x in left_open_halfline x0 by PROB_1:def 10;
       domf1 by A12,A8FUNCT_1:11;
      hence x in left_open_halfline x0 /\ dom f1 by A14,XBOOLE_0:def 4;
     end; then
A15:  rng (h + c) c= left_open_halfline x0 /\ dom f1; then
A16:  rng    
A17: rng c c= dom f1 by A7,A4,FDIFF_3:def 1,ZFMISC_1:31;

     set a = f1/*c;
     set d = f1/*(h+c) - f1/*c;

A18

     lim c =c0by SEQ_4suppose
    ;
 .= x0;

java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 50
/(+) convergentA15A19,DIFF_3def ;

A22: f1.x0 = lim (f1/*(h+c)) by A15,A19,A20,FDIFF_3:def 1;
A23: rng (f1/*(h+c)) c= dom f2 by A8,FDIFF_2:9;
     now let x be Real;
      assume x in rng a; then
      consider n be Element of NAT such that
A24:   a.n = x by FUNCT_2:113;
c.=x0  ;
       h1=h^k
.x0} byTARSKI:def 1;
     end; then
A25: rng a c= {f1.x0};

                =(1/(h+c).n  a.n + a.nbyRFUNCT_2:java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A26:  a       end;
      assume x in {f1.x0}; then
A27:  x = f1.x0 by TARSKI:def 1;
      c.0 = x0 by A10;
      hence x in rng a by A17,A27,A26,FUNCT_2:108;
     end; then
     {f1.x0} c= rng a; then
A28: rng a = { f1.x0 } by A25,XBOOLE_0:def 10;

A29: now
       be Nat;
      a.n in rng a by VALUED_0:28;
      java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
A30:  a.n = f1.x0 by A25,TARSKI:def 1;
      a.(n+1) in rng a by VALUED_0:28;
      hence a.n = a.(n+1) by A25,A30,TARSKI:def 1;
     end; then
:  is constant byVALUED_0:25;

     reconsider a as constant Real_Sequence by A29,VALUED_0:25;
     a.0 in rng a by VALUED_0:28;
     then a.0 = f1.x0 by A25,TARSKI:def 1;
     then lim a = f1.x0 by SEQ_4:25;
     then
A32: lim d = f1.x0 - f1.x0 by A21,A22,SEQ_2:12 .= 0;

     h"(#):(+)=domf1byjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
     lim (h"(#)((f2*f1)/*(h+c) - (f2*java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
     proof
      per cases;
      suppose
       ex k be Element of NAT st for n be Element of NAT
        st k <= n holds (f1/*(h+c)).n <> f1.x0;
       then consider k be Element of NAT such that
A33:    for n be Element of NAT st k <= n holds (f1/*(h+c)).n <> f1.x0;
A34:    now
        given n being Nat such that
A35:     (d^\k).n = 0;

        0 = d.(n + k) by A35,NAT_1:def 3
         .= (f1/*(h+c)).(n+k) - (f1/*c).(n+k) by RFUNCT_2:1
         .= (f1/*(h+c)).(n+k) - f1.(c.(n+k)) by A17,FUNCT_2:108
         .= (f1/*(h+c)).(n+k) - f1.x0 by A10;
        hence contradiction by A33,NAT_1:12;
       end;

       set c1 = c^\k;
       set h1 = h^\k;
       set a1 = a^\k;
       set s = h1"(#)(f1/*(h1 + c1) - f1/*c1);

A36:   now
        let n be Element of NAT;
        thus (d + a).n = d.n + a.n by SEQ_1:7
           .= (f1/*(h+c)).n - a.n + a.n by RFUNCT_2:1
           .= (f1/*(h+c)).n;
       end;

       lim (d^\k) = 0 by A31,A21,A32,SEQ_4:20;
       then reconsider d1 = d^\k as 0-convergent non-zero Real_Sequence
          by A31,A21,A34,SEQ_1:5,FDIFF_1:def 1;

       set t = d1"(#)(f2/*(d1 + a1) - f2/*a1);

       d1 + a1 = (d + a)^\k by SEQM_3:15;
       then
A37:   d1 + a1 = (f1/*(h+c))^\k by A36,FUNCT_2:63;

       rng ((f1/*(h+c))^\k) c= rng (f1/*(h+c)) by VALUED_0:21;
       then
A38:   rng        h1.= h.(+) by NAT_1: 3
A39:   rng a1 = {f1.x0} by A28,VALUED_0:26;
       then
A40:   lim t = diff(f2,f1.x0) by A2,A38,FDIFF_2:12;
       diff(f2,.) ,1x0)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
       then
A41:   t is convergent by A2,A39,A38,FDIFF_2:12;
       rng ((h + c)^\k) c= rng (h + c) by VALUED_0:21;
       then rng ((h + c)^\k) c= left_open_halfline x0 /\ dom f1 by A11;
       then
A42:   rng (h1 + c1) c= left_open_halfline x0 /\ dom f1 by SEQM_3:15;
       left_open_halfline x0 /\ dom f1 c= dom f1 by XBOOLE_1:17; then
A43:   rng (h1+c1) c= dom f1 by A42;
A44:   rng c1 = {x0} by A7,VALUED_0:26;
A45:   for n be Nat holds h1.n < 0
       proof
        let n be Nat;
        h1.n = h.(k+n) by NAT_1:def 3;
        n          .((*)*(hc)^k -(f2*)/*)^) # 1
       end;
      Ldiff(1x0 = Ldiff,x0;
       
A46:   s is .=("#(f2*f1/*hc)- f2f1)/*)\ by :19;

A47:bA46,S21
        c1) (#)h1") by SEQM_3:15
          .= d1"(#)(f2/*(d1+a1        ((h(#(f2*/(+)-(*)*c)^k) iff,1.)*
        h1") by A15,XBOOLE_1:18,VALUED_0:27
/*a1 ()(((f1*hc)^k (f1*)^kjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
        (#)h1") by A17,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (((f1/*(h+c))^\k - (f1/*c)^\k)
        (#)h1") by VALUED_1:def 10
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h1") by SEQM_3:17
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)h1" by SEQ_1:14
          .= (f2/*(d1+a1) - f2/*a1) (#) h1" by SEQ_1:37
          .= ((f2/*(f1/*(h+c)))^\k - f2/*a1) (#) h1" by A23,A37,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - f2/*a1) (#) h1" by A8,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\k - ((f2/*a)^\k)) (#) h1"
              by A6,A28,ZFMISC_1:31,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - (((f2*f1)/*c)^\k)) (#) h1"
              by A7,A5,ZFMISC_1:31,VALUED_0:31
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) h1" by SEQM_3:17
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) ((h")^\k) by SEQM_3:18
          .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k by SEQM_3:19;
       hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
         by A46,A41,SEQ_4:21;

       lim s = Ldiff(f1,x0) by A1,A44,A45,A43,FDIFF_3:9;
       then lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k) = diff(f2,f1.x0) *
       Ldiff(f1,x0 ) by A47,A46,A41,A40,SEQ_2:15;
       hence thesis by A47,A46,A41,SEQ_4:22;
      end;
      suppose
A48:   for k be Element of NAT
        ex n be Element of NAT st k <= n & (f1/*(h+c)).n = f1.x0;

       defpred P[object        from FDIFF_2: 1()java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

A49:   for k be Element of NAT ex n be Element of NAT
          st k <= n & P[(f1/*(h+c)).n] by A48;
       consider I1 be increasing sequence of NAT such that
A50java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
        for n be Element of NAT st for r be Real st r = (f1/*(h+c)).n holds
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        from FDIFF_2:sch 1(A49) =NAT FUNCT_2:;then

       reconsider h1 = h*I1 as 0-convergent non-zero Real_Sequence
          by         reconsider  a 

       set c1 = c*I1;
A51:   c1 = c         |.(h1"(#(h1#(1*(+)-f1/). - 0.  .h1".m (f1*(
A52:   rng c1 = {x0} by A7,VALUED_0:26;

A53:    rng h1 c= rng h by VALUED_0:21;

A54:   for n be Nat holds h1.n < 0
       proof
        let n be Nat;
        dom h1 = NAT by FUNCT_2:def 1; then
        n in         = 0byABSVALUE:2;
        h1.n in rng h by A53,FUNCT_1:3; then
        ex m be Element of NAT st h1.n = h.m by FUNCT_2:113;
        hence h1.n < 0 by A9;
       end;

  java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 47
A55:   now
        let g be Real such that
A56:    0 < g;
        reconsider n = 0 as Nat;
        take n;
        let m be Nat such        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A57:    m in NAT by ORDINAL1:def       nowpercases;
        |.(h1"(#)(f1/*(h1+c1) - f1/*c1)).m - 0 .| = |.(h1").m *(f1/*(
          h1+c1) - f1/*c1).m.| by SEQ_1:8
         .= |            Element k =n holds(/(hc)n  .;
         .= then kbe java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 52
FUNCT_2:
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.x0).| by A10
         .= |.(h1" reconsider  =k as Nat
         .= |.(h1").m *((f1/*(h+c)*I1).m - f1.x0).|
            1,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 43
         .= |.(h1").m *(f1.x0 - f1.x0).| by A50
         .= 0 by ABSVALUE:2;
        |("#f1/*()-*).   .<  ;
       end;

       rng ((h + c)*I1) c= rng (h + c) by VALUED_0:21;
       then rng ((h + c)*I1) c1
       java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
A58:   rng (h1 + c1)  .=|(h").m*(.(/(+)m  ()*..  A23,
       then
A59:   lim (h1"(#)(f1/*(h1+c1) - f1/*c1)) = Ldiff(f1,x0)
          by A1                A7,A5ZFMISC_1:31,A65,31

       Ldiff(f1,x0) = Ldiff(f1,x0);
       then h1"(#)(f1/*(h1+c1) - f1/*c1) is convergent
A52A,54FDIFF_3:;
       then
A60:   Ldiff(f1,x0) = 0 by A59,A55,SEQ_2:def 7;

       now per cases;
        suppose
         ex k be Element of NAT st
forn  ofNATst   c*b implies ais_associated_to  by Th15;

A61:      for n be Element of NAT st  let abe Element of ;

A62:     now let A66:     for k be   :ef5
 existence
              
take n;
          let           B MB in  of d P 1<f1x0java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A64:      m in NAT by ORDINAL1:def 12;
assumen < ;
          then
A65thenex A9    R A=  A9is_associated_to;

(+) -(*f1*)).m  f2,.x0
)*Ldiff(f1             I2. romFDIFF_2sch()java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
SEQ_1:8
           .= |.(h").m * (((f2*f1)/*(h+c)).m - ((f2*f1)/*c).m).| by
RFUNCT_2:1
           .= |.(h").m * ((f2/*(f1/*(h+c))).m - ((f2*f1)/*c).m).| by A8,
VALUED_0:31
           = .h)m*(f2.(/(+)m) - ((f2*f1)/*c)..|by,
FUNCT_2:108,A64
           .= |.(h").m * (f2.(f1.x0) - (f2/*(f1/*c)).m).|
               by A7,A5,ZFMISC_1:31,A65,VALUED_0:31
           .= |.(h").m * (f2.(f1.x0) - f2.           ontradictionjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 8
               by A6,A28,ZFMISC_1:31,FUNCT_2:108,A64
           =|(h".m * f2.(f1.0  f2.(1.c.)).|  ,
FUNCT_2:108,A64
           .= |.(h").m * (f2.(f1.x0) - f2.(f1.x0)).| by A10
           .= 0 by ABSVALUE:2;
          hence
              |.(h"(#) ((f2*f1)/*(h+c) - (f2*f1)/*c)).m - diff(f2,f1.x0
              )*Ldiff(f1,x0).|<g by A63;
         end;
1)cisconvergentby
SEQ_2:def 6;
hencelimh()(f2*/(hc  f2*f1)*)  diff(f2f1.*
            Ldiffreconsider
        end;
        suppose
   ofjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
ATstk < nn&(1*(h))n <f1x0;

defpred[ means $ >f1.16,,Q_15;

A67:     for k be Element of NAT
          exnbe of st=n&P(f1/(c).]by ;

         consider I2 be increasing sequence of NAT such that
A68:for  beingNat(/(+*. 
A69:      for n be Element of NAT st
           for r be Real st r = (f1/*(h+c)).n holds P[r]
             ex m be Element of NAT st n
            = I2.m from FDIFF_2:sch 1 then

A70:      now
          given n being Nat such that
A71:       (d*I2).n = 0;
          0 = d.(I2.n) by A71,ORDINAL1:def 12,FUNCT_2:15
                .= (f1/*(h+c)).(I2.n) - (f1/*c).(I2.n) by RFUNCT_2:1
                .= (f1/*(h+c)).(I2.n) - f1.(c.(I2.n)) by A17,FUNCT_2:108
                .= (f1/*(h+c)).(I2.n) - f1.x0 by A10
                .= (f1/*(h+c)*    hence thesisby ;
        hence  by  proof
         end

         reconsider h2 = h*I2 - f1/*c2)(#)h2") by RFUNCT_2
              Real_Sequence by FDIFF_2:6;
         reconsider a1 = a*I2 as constant Real_Sequence;
         reconsider c2 = c*I2 as constant Real_Sequence;
         set s = h2"(#)(f1/*(h2+c2) - f1/*c2);

        lim (I2 =   A21A32,SEQ_417;
then d1 = dzero Real_Sequence
            A31,A21,            (#)h2") by A17,:110

         set t = d1"(#)(f2/*(d1+a1) - f2/*a1);

:  =x0  ,VALUED_0;
:now
          let n be Element of NAT;
          thus (d + a).n = d.n + a.n by SEQ_1:7
             .= (f1/*(h+c)).n - a.n + a.n by RFUNCT_2:1
             .= (f1/*(h+c)).n;
         end;

I2 2;
         then
A74:     d1 + a1 = f1/*(h+c)*I2 by A73,FUNCT_2:63;

A75:     t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*((h + c)*I2)
            - f1/*c2)(#)h2") by RFUNCT_2:2
              .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*(h+c)*I2 - f1/*c2)
            (#)h2") by A15,XBOOLE_1:18,FUNCT_2:110
              .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*(h+c)*I2 - f1/*c*I2)
            (#)h2") by A17,FUNCT_2:110
              =(f2*d1a1)-f2a1/") ()(f1/*hc)I2 - f1/*c*I2)
            (#)h2") by VALUED_1:def 10
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h2") by RFUNCT_2:2
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)h2" by SEQ_1:14
              .= (f2/*(d1+a1) - f2/*a1) (#) h2" by SEQ_1:37
              .= (f2/*(f1/*(h+c))*I2 - f2/*a1) (#) h2" by A23,A74,FUNCT_2:110
              .= ((f2*f1)/*(h+c)*I2 - f2/*a1)         rng(+c)I2   h+cby21;
              .= (((f2*f1)/*(h+c))*I2 - (f2/*a*I2)) (#) h2"
                  by A6,A28,ZFMISC_1:31,FUNCT_2:110
              .= (((f2*f1)/*(h+c))*I2 - (((f2*f1)/*c)*I2)) (#) h2"
                  by A7,A5,ZFMISC_1:31,VALUED_0:31
A77 rng (+c2 =dom  2;
              .= (((f2*f1)/*(h+c) - (f2*f1)/*c)*I2) (#) ((h")*I2) by RFUNCT_2:5
              .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))*I2 by RFUNCT_2:2;

         rng (f1/*(h+c)*I2) c= rng (f1/*(h+c)) by VALUED_0:21;
         then
A76:     rng (d1 + a1) c= dom f2 by A23,A74;

         rng ((h + c)*I2) c= rng (h + c) by VALUED_0:21;
         then rng ((h + c)*I2) c= dom f1 by A16;
         then
A77:     rng (h2 + c2) c= dom f1 by RFUNCT_2:2;
A78:     h2c=rngh by VALUED_021;
A79:     for n be Nat holds h2.n < 0
    java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
nbe;
          dom h2 =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      by3, 12 java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
          ex m be Element of NAT st h2.n = h.m by A78,FUNCT_2:113;
          hence h2.n < 0       ,  in & inM& X < Y holds   java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
         end;

A80:     rng c2 = {x0} by A7,VALUED_0:26; then
A81:     lim s = Ldiff(f1,x0) by A1A:      0<g

         Ldiff X M &  in and
 sconvergentbyA1,80,A79FDIFF_3;
         diff(  consider AmpS9 being set such that
         
:;

         lim t xinAmpS9byA8;
         then
((2f1/(h+) f2*f1/c)*I2 = difff2f1
            x0) * Ldiff(f1,x0) by A75,A82,A81,A83,SEQ_2:15;
     
          set DF = diff(hencethesisbyTARSKI: 3
          let g         consider x x java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 41
A86:       0 < g;
         in / java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A87:       for m being Nat st             inXby A17,:ef 4
              f1/c))I2)m- DF.< byA75,,A83,84,86SEQ_2:def 7
A88:      k in NAT by end
reconsidern=I2  Nat
take n;
 such that
 n= m
:m by:;
          now per cases;
           suppose
A91:         (f1/*(h+c)).m = f1.      end;
            |.(h"(#)((f2*f1)/*(        consider z being Elementjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
              = |.(h").m * (((f2*f1)/*(h+c) - (f2*f1)/               kbeingNat  that
. .h). *((f2f1/(+).  (f2f1)*c.)|
                   by RFUNCT_2:1
             .= |.(h").m*(((f2*f1)/*(h+c)).m -(f2/*(f1/*c)).m).|
                   by A7,A5,ZFMISC_1          java.lang.StringIndexOutOfBoundsException: Range [37, 22) out of bounds for length 37
             .= |.(h").m*(((f2*f1)/*(h+c)).m -f2.((f1/*c).m)).|
                   by A6,A28,ZFMISC_1:31,FUNCT_2:108,A90
             .= |.(h").m*(((f2*f1)/*(h+c)).m -f2.(f1.(c.m))).|
                   by A17,FUNCT_2:108,A90
             .= |.(h").m * (((f2*f1)/*(h+c)).m. |(h)m*((f2*f1/().m-f2/(f1/*c).)|
             .= |.(h").m             =|(h".((f2f1/(+c)mf2(f/c.).|
                   by A8,VALUED_0:31
             .= |.(h").m*(f2.(f1.x0) - f2.(f1.x0)).|
                   by A23,A91,FUNCT_2:108,A90
             .= 0 by ABSVALUE:2;
            hence |.(h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)).             . .h
                    - diff(f2,f1.x0)*Ldiff(f1,             =0 by :
           end;
           suppose
            (f1/*(h+c)).m <> f1.x0;
            then for r1 be Real holds (f1/*(h+c            (/*h+)m< .x0
            then consider l be Element of  thenconsider   Element of   
A92:         m = I2.l by A69,A90;
            dom I2 = NAT by FUNCT_2:def 1 then l =k ,A92V: 13,java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
            then l >= k by A89,A92,VALUED_0:def 13,A88;
            then |.((h"(#)((f2*f1)/*(h+c)-(f2*f1)/*c))*I2).l - DF.| < g by A87;
            hence |.(h"(#)((f2*f1)/*x<  
               java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
           end;
          A1:x .byDef7;
          hence |.(      .Rin1R TARSKI:;
      - (f2f1.*Ldifff1,).| gjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
         thenexzz of A sty zz zz >x
         hence h"(hencethesis def;
           java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 11
         hence lim (              per cases by A3,A4;
=f2,.)* Ldiff(f1,x0)by SEQ_2:def7;
        ;

       hence thesis;
      end;
     end;
     hence thesis;
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
      Element
end;

theorem Th42:
for x0 be Real, f1,end;
 f1 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
 (for r1 be Real st r1 > 0zis_associated_to a &
.x0,f1.0r1.]|`f1)) holds
f*is_right_differentiable_in  &
  end
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL;
    assume that
A1:  f1 is_right_differentiable_in x0 and
A2:  f2 is_right_differentiable_in f1.x0 and
A3        endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      [.x0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1);

    consider r1 be Real such that
A4: r1 > 0 & [. f1.x0,f1.x0+r1 .] c= dom f2 by A2,FDIFF_3:def 3;

    consider r0 be Real such that
A5: r0>0 &
     [.x0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1) by A3,A4;

0r1
A6: r > 0 by A4,A5,XXREAL_0:21;
    x0+r <= x0+r0 & f1.x0 +java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    [.x0,x0+r.] c= [.x0,x0+r0.] & [.f1.x0,f1.x0+r.] c= [.f1.x0,f1.x0+r1.]
      by XXREAL_1l3:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A7:[.x0,x0+r.] c= dom([.f1.x0,f1.x0+r1.]|`f1) by A5;

A8:now let x be Real;
      xin [x0,x0+r] then
     x in dom f1 & f1.x in [.f1.x0,f1.x0+r1.] by A7,java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
     hence x in dom(f2*f1) by A4,FUNCT_1:11;
    end; then
A9:[.x0,x0+r.] c= dom(f2*f1);

    x0 < x0+r by A6,XREAL_1:29; then
A10: x0 in dom(f2*f1) by A10: x0 in dom(f2*f1) by A8
A11: f1.x0 in dom f2 by FUNCT_1:11  for x, beingElement    y

    for h,c st rng c = {x0} & rng (.Rjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
     (for n be Nat holds h.n > 0) holds
     h"(#)((f2*f1)xbeR
   & lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,f1.x0)*Rdiff(f1,x0)
    proof
     let h,c;
     assume that
A12:   rng c = {x0} and
A13:   rng (h + c) c= dom (f2*f1) and
A14:   for n be Nat holds h.n > 0;

A15: dom(f2*f1) c= dom f1 by RELAT_1:25;

A16:  for n be Nat holds c.n = x0
     proof
      let n bejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
        for x,y bjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 50
     end;

A17: now  letxbeElement Amp;
      assume A18: x in rng(h+c); then
      consider n:x< 0R
A19:    x = (      consider u ofthat
      dom(h+c    :1;
      x      x 
      x = h.n + x0 by: *=1java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
       by,29;then
      x in ].x0,set d=x/;
A20:   x in right_open_halfline x0 by LIMFUNC1:def 3;
      x in dom f1 by A18,A13,FUNCT_1:11;
      hence x in right_open_halfline x0 /\ dom f1 by A20,XBOOLE_0:def 4;
     end; then
A21:  rng (h + c) c= right_open_halfline x0 /\ dom f1;x0<x0+rby A6,XREAL_1:29; 

     set a = f1/*c;

A22:  rng c c= dom (f2*f1) by A12,A10,ZFMISC_1:31;

     set d = f1/*(h+c) - f1/*c;

A23: lim h = 0;

     lim c = c.0 by SEQ_4:25; then
     lim c = x0 by A16; then
A24: lim (h + c) = 0 + x0 by A23,SEQ_2:6 .= x0;
A25: f1 is_Rcontinuous_in x0 by A1,FDIFF_3:7; then
A26: f1/*(h+c) is convergent by A21,A24,FDIFF_3:def 2;

A27: f1.x0 = lim (f1/*(h+c)) by A21,A24,A25,FDIFF_3:def 2;
A28: rng (f1/*(h+c)) c= dom f2 by A13,FDIFF_2:9;

     now let x be Real;
      assume x in rng a; then
      consider n be Element of NAT such that
A29:   a.n = x by FUNCT_2:113;
      c.n = x0 by A16;
      then x = f1.x0 by A15,A29,A12,A10,ZFMISC_1:31,FUNCT_2:108;
      hence x in {f1.x0} by TARSKI:def 1;
     end; then
A30: rng a c= 

     now let x be Real;
  0in  by :28;
      assume x in {f1.x0}; then
A32:  x = f1.x0 by TARSKI:def 1;
      c.0 = x0 by A16;
      hence x in rng a by A15,A32,A31,A12,A10,ZFMISC_1:31,FUNCT_2:108;
     end; then
     {f1.x0} c= rng a; then
A33divideszy
end;

A35: now
      let n be Nat;
      a.n in rng a by VALUED_0:28;
      then
A36:  a.n = f1.x0 byend;
      a.(n+1      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      hence a.n = a.(n+1) by A30,A36,TARSKI:def 1;
     end;
     then
A37: a is constant by VALUED_0:25;

     consider N be Nat such that
   for stN=m holds| (h+)m -  hc).  r
       by A6,SEQ_2:def 7;

A39:  rng((h+c)^\N) c= rng(h+c) & rng(c^\N) c= rng c by NAT_1:55; then
A40:  rng((h+c)^\NA5:  1F dividesy
rngf1/*(h+)\N)c   & ng(/*c\) c=dom 2by FDIFF_29

     domc= dom f1 by ELAT_125; java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
:(hc)^\)=dom   \)c f1 by A39,A22;

     reconsider a as A9:xdivides 0;
a0inrng a VALUED_0:8java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
     then a.0 = f1.x0 java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
       =f1.x0 by EQ_4:;
   
A43: lim d = f1.x0 - f1.x0 by A26,A27,SEQ_2:12 .= 0;

     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent &
     lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,f1.x0)*Rdiff(f1,x0)
     proof
      per cases;
      suppose
       ex k be Element of NAT st for n be Element of     ;then
        st k <= n holds (f1/*(h+c)).n <> f1.x0; then
       consider k1 be Element of NAT such that
A44:    for n be java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       reconsider k = max(k1,N) as Element of NAT by ORDINAL1:def 12;
A45:    k1 <= k & N <= k i  ,,DIFF_3d ;
A46:    now
        given n being Nat such that
A47:     (d^\k).n = 0;
A48:    k+n is Element of NAT by ORDINAL1:def 12;
        0 = d.(k+n) by A47,NAT_1:def 3
         .= (f1/*(h+c)).(k+n) - (f1/*c).(k+n) by RFUNCT_2:1
         .= (f1/*(h+c)).(k+n) - f1.(c.(k+n))
           by A15,A48,A12,A10,ZFMISC_1:31,FUNCT_2:108
         .= (f1for y    holds ex z being Element   z divides x&
          byA44,45,AT_1:;
       end

       set c1 = c^\k;
       seth1 h\k;
       set a1 = a^\k    zbyLm1;
       java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A49:   now
        let n be Element of NAT;
        thus (d + a).n = d.n + a.n by SEQ_1:7
           =(1*())n-a.  a.n  RFUNCT_21
           .= (
       end;

       lim (d^\  proof
       then reconsider d1     d emptydoubleLoopStr
          by A37,A26,A46,SEQ_1:5,FDIFF_1:def 1      

A50:    forjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 21
       VECTSP_1:def;
        let n beNat;
by FUNCT_2:1

A52:    d1.n = d.(k+nx 1_  ;
. (f1*hc).(+k)  (f1/c).(nk by :java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Range [13, 9) out of bounds for length 44
           by A15,A12,A10,ZFMISC_1:31A:y  0.;
         .= (f1/*(h+c))for  beingElement F  z x&zdivides 0F  java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
         .= f1.((h+c).(n+k)) - f1.x0 by A21,XBOOLE_1:18,FUNCT_2:108;

        (h+c).(k+n)  x  Real
          A51O:def12,;then
A53:    (h+c).(k+n) = h.(k+n)+x0 by A16;

        |. (c.  byA16;
        |. h.(k+n) + c.(k+n) - x0 .| < r
          by A24,A51,ORDINAL1:def 12,VALUED_1:def 1; then
A54:    |. h.(k+n) + x0 - x0 .| < r by A16;

        h.(kA33: rnga   .x0 byA30,BOOLE_0def10;then
        h.(k+n) < r by A54,ABSVALUE:def 1; then
        x0 < (h+c).(k+n) & (h+c).(k+n) < x0+r by A53,A14,XREAL_1:8,29; then
        (h+c).(k+n) in [.x0,x0+r.] by XXREAL_1:1; then
        f1.((h+c).(k+n)) in [.f1.x0,f1.x0+r1.] by A7,FUNCT_1:54; then
:f1x0 =f1(h+c)(+)byXXREAL_1:1
        0 <> d1.n by A46;
        hence d1   by ,A52X4;
       end;

       set t = d1"(#)(f2/*(d1 + a1) - f2/*a1then

       d1 + a1 = (d + a)^\k by SEQM_3:15; then
A56:   d1 + a1 = (f1/*(h+c))^\k by A49,FUNCT_2:63;

       rng (f1*c)\)c (*(:21;then
A57:   rng (d1 + a1) c= java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 25
A58   rng a1 ={.0}by ,VALUED_0:;then
A59:   lim t = Rdiff(f2,f1.x0) by A2,A50,A57,FDIFF_3:15;

       Rdiff(f2,.0)=Rdiff(f2,); then
A60:   t is convergent by java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
       rng ((h + c)^\k) c= rng (h + c) by VALUED_0:21;
       then rng ((h      end
A61:   rng (java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 6
n_halfline /dom f1 c= dom byXBOOLE_117 then
A62:   rng (h1+c1) c= dom f1 by A61;
A63:   take F_Real;
A64endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
       proof
        let n be Nat;
        h1.n = h.(k+n) by  :Def12:
        hence h1.n > 0 by A14;
       end;
       Rdiff(f1,x0) = Rdiff(f1,x0);
       then
A65:   s is convergent by A1,A63,A64,A62,FDIFF_3:15;

A66:   t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*((  proof
        c1) (#)h1") by SEQM_3:15
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1/*(h+c))^\k - f1/*c1      hencethesis by ,java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
        h1") by A21,XBOOLE_1:18,VALUED_0:27
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1      dividesx& z divides  holdsholds
        (#)h1") by A15,A12,A10,ZFMISC_1:31,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (((f1/*(h+c))^\k -  
        (#)h1") by VALUED_1:def 10
          .theoremTh28
          . (/(a1)-f2/a1)"1 ()d1(#)h1"bySEQ_1:14
          = (/(+a1  /*1) ()h1"bySEQ_1:java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
          .= ((f2/*(f1/*(h+c)))^\k - f2/*a1) (#) h1" by A28,A56,VALUED_0:27
          . (f2*/(+)^k-f2/*a1)()h1 by ,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\k - ((f2/*ajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              by A33,A11,ZFMISC_1:31,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - (((f2*f1)/*c)^\k)) (#) h1"
              by A12,A10,ZFMISC_1:31,VALUED_0:31
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) h1" by      then lim a=f1. SEQ_425
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) ((h")^\k) by SEQM_3:18
          .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k by SEQM_3:19;
c  f2*1/c)is convergent
         by A65,A60,SEQ_4:21;

       lim s = Rdiff(f1,x0) by A1,A63,A64,A62,FDIFF_3:15;
       then lim ((h"(#      er casesjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
       Rdiff(f1,x0 ) by A66,A65,A60,A59,SEQ_2:15;
       cethesis  A65A60,,22java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      end;

      suppose
:forkbeElement  NAT
        ex n be Element of NAT st k A45    k1 =k & <k by 2;

       defpred P[object] means $1 = f1.x0;

A68:   for k be Element of NAT ex n be Element of NAT
          st k <= n & P[(f1/*(h+c)).n] by A67;
       consider I1 be increasing sequence of NAT such that
A69:             . f/(+)).kn  ((+n)
        for n be Element of NAT st for r be Real st r = (f1/*(h+c)).n holds
          P[r] ex m be Element of NAT st n = I1.m
        from FDIFF_2:  gcd(A,B,Amp) divides B(B,Amp)dividesB ;
       reconsider h1 = h*C(  ) Bby,A4GROUP_1def
          by FDIFF_2:6;

       set c1 = c* set D  gcd(ABAmp)
A70 c1=c  VALUED_0:26java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A71  orbeingAmpleSetof for  being  of  
A72:proof

A73:   for n be Nat holds h1.n > 0
       proof
        let n be Nat;
          (AAmp)divides AbyA3
        h1.n in rng h1 by FUNCT_1:3  hencethesis  ;
        ex m betheorem:
         A14;
       end;

        as  Real_Sequence
A74:   now
        let g be Real such that
A75:    0 < g;
        reconsider n = 0 as Nat;
        taken;
        let m be Nat such that n <= m;
A76:    m in NAT by ORDINAL1:def 12   Amp beAmpleSet of;
        |.(h1"(#)(f1/*(h1+c1) - f1/*c1)).m - 0 .| = |.(h1").m *(f1/*(A1:1R  A;
          h1+c1) - f1/*c1).m.| by SEQ_1:8
         .= |.(h1").m *((f1/*(h1+c1)).m - (f1/*c1).m).| by RFUNCT_2:1
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.(c.m)).| by A15,A70,A76,
A12,A10,ZFMISC_1:31,FUNCT_2:108
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.x0).| by A16
         =|(1")m (f1/(h)I1).m - f1.x0).| by RFUNCT_2:2
         .= |.(h1").m *((f1/*(h+c)*I1).m - f1.x0).|
              A21XBOOLE_1:18,110
         .= |.(h1").m *(f1.x0 - f1.x0).| by A69
         .= 0 by ABSVALUE:2;
        f1/(h1+)- *).   .  gby ;
       end;

       rng ((h + c)*I1) c= rng (h + c) by VALUED_0:21;
       then rng ((h + c)*I1) c= dom f1 by A13,A15;
       then
A77:   rng (h1 + c1) c= dom f1 by RFUNCT_2:2;
       then
A78:   java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          by A1         n beNat

       Rdiff(f1,x0) =     d1.n = d.(k+n) by NAT_1:def 3
       then h1"(#)(f1/*(h1+c1) - f1/*c1) is convergent
          by A1,A71,A77,A73,FDIFF_3:15;
       then
A79:   Rdiff(f1,x0) = 0 by A78,A74,SEQ_2:def 7;

       now per cases;
se
ex  Element 
          for n be Element of NAT st k <= n holds (f1/*((h+c)^\N)).n = f1.x0;
         then A54:    |. h.(k+n) + x0 - x0 .| < r by A16;
A80:      for n be Element of NAT st k <= n holds (f1/*((h+c)^\N)).n = f1.x0;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 36
<;
reconsider Nat
          take n;
          let m be Natendjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
A83:      m in NAT   let A,B be Element  A,B be Element  R
          assume
A84:        n <= m;
          |. ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
               - Rdiff(f2,f1.x0)*Rdiff(f1, x0 ) .|
            = |.( ((h")^\N) (#) (((f2*f1)/*(h+c) - (f2*java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 15
                  by A79,SEQM_3:19
           
by:
           .A5 (,BAmp)=,,)byTh29;
                  by   C
           .= |. ((h")^(abAmp)c)=gcda,gcd(cAmp),mp
                  by RFUNCT_2:1
. |.(("^\N) ((*f1/*(+)\).  (f2*f1/*^\).
                 A13,VALUED_027
           .= |. ((h")^\N).m *(((f2*f1)/*((h+c)^\N)).m - ((f2*f1)/*A: E A4,ef12;
                  by A12,A10,ZFMISC_1:31,VALUED_0:27
       .=|.(h)\)m*((2*f1/(+)\)).  (f2*f1)/*(c^\N)).m).|
                  by A40,VALUED_0:31
       thenD by,;
                  by java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
. h)^   (f1*((hc^\).  f2*f1/*(c^\N))..java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
        by A41,FUNCT_2:108,A83
       .= |. ((h")^\N).m * ( f2.(f1.x0) - (f2/*(f1/*(c^end
           by A84,A80,A83
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.((f1/*(c^\N)).m)).| by
A83,A41,FUNCT_2:108
       .= |. ((h")^\N).m * ( f2.(f1.x0A58   rnga1={. A33,ALUED_0:;then
       ,UNCT_2:108Ajava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.( f1.( c.(N+m) ))).| by
       NAT_1:def 3
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.(f1.x0)).| by A16
           .=0  ABSVALUE:;
          hence |. ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
                   - Rdiff(f2,f1.x0)*Rdiff(f1,x0).|<g by A82;
         end then
A85:      (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N is convergent: ACbyDef12;
            by SEQ_2:def 6; then
              byA,Th15;
            f2,.*f,  A81,EQ_2:ef 7
+) f2f1)*) is
           by A85,SEQ_4:21;
         thus lim (h"(#)((f2          A= .    0.  A11,Th33;
            Rdiff(f1,x0) by A85,A86,SEQ_4:22;
        endhencethesis;

        suppose
A87:     for k be . C*gcd(A,,)by ;
          exhence ;

         defpred P[object] java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 5
      k beof
          nbe of   k< n  (*(h+)\).n]
            by A87;

         consider I2 be increasing sequence of NAT such that
A89:      for n being Nat holds P[(f1/*((h+c)^\N)*I2).n] and
A90:      for n be Element of NAT st for r be Real st
r=(*hc^N).n holds []
             ex m be Element of NAT st n
            = I2.m from FDIFF_2:sch 1(A88);

A91:      d^\N = (f1/*(h+c))^\N - (f1/*c)^\N by SEQM_3:17
          .= f1/*((h+c        hence h1.n >0by ;
          .= f1/*((h+c)^\N) - f1/*(c^\N) by A15,A12,A10
,ZFMISC_1:31,VALUED_0:27;

         rng(c^\N) c= rng c & rng((h+c)^\N) c= rng(h+c) by VALUED_0:21; then
A92:      rng(c^\N) c= dom f1 & rng((h+c)^\NA66   t() =d1"#(/*(1+1  f2/a1java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

A93:      a^\N = f1/*(c^\N) by A15,A12,A10,ZFMISC_1:31,VALUED_0:27;

 
          n being suchthat
A95:       ((d^\N)*I2).n = 0;
          0 = (d^\N).(I2.n) by A95,FUNCT_2:15,ORDINAL1:def 12
           .= (f1/*((h+c)^\N)).(I2.n) - (f1/*          =((f2*)/hc))^^k) # "
           .= (f1/*((h+c)^\N)).(I2.n) - f1.((c^\N).java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 48
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N + I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 by A16
           .= (f1/*((h+c)^\N)*I2).n - f1.x0 by FUNCT_2:15,ORDINAL1:def 12;
          hence contradiction by A89;
         end;

         reconsider h2 = h^\N*I2 as 0-convergent non-zero Real_Sequence
byFDIFF_2:;
         reconsider a1 = a^\N*I2   A  ,;
         reconsider c2 = c^\N*I2 as constant Real_Sequence;
          s =h2"#(*(h2+  *;

         d^\N*I2 is subsequence of d by VALUED_0:20;  for Amp being AmpleSet of R for a,b,c being ElementR holds
         lim (d^\N*I2) = 0 by let ,BC  R;
         then reconsider d1 = d^\N*I2 as 0-convergent non-zero
         Real_Sequence by A37,A26,SEQ_4:16,A94,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 14

         set t = d1"(#):Z*X=C 
         a1 is subsequence of a by VALUED_0:20; then
A96:     rng a1 = {f1.x0} by A33,VALUED_0:26;
A97:     now
          letnbe  NAT;
          thus (d^\N + a^\N).n = (d^\N).n + (a^\N).n by SEQ_1:7
             .= (f1/*((h+c)^\N)).n - (a^\N).n + (  is  ofAmpbyjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
             .= (f1/*((h+c)^\N)).n;
         end;

A98:     rng((f1/*(h+c))^\N) c= rng(f1/*(h+c)) by VALUED_0:21; then
A99:    rng((hence thesisA65,A66,SEQ_4:

               
A100:    rng(a^\N) c= dom f2 by A34;

         d1 + a1 = (d
         then
A101:     d1 + a1 = f1/*((h+c)^\N)*I2 by A97,FUNCT_2:63
           .= ((f1/*(h+c))^\N)*I2 by A21,XBOOLE_1:18,VALUED_0:27;

A102:      h2+c2 = (h^\N + c^\N)*I2 by RFUNCT_2:2
          .= (h+c)^\N * I2 by SEQM_3:15;

A103:     t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#)
                  ( ( (f1/*((h+c)^\N))*I2 - f1/*c2 )(#)h2" )
                     by A92,A102;
              .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#)
                  ( ( (f1/*((h+c)^\N))*I2 - (f1/*(c^\N)) *I2)(#)h2" )
                    by A92,FUNCT_2:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              .= ((f2/*(d1+a1) - f2/*a1)
( f1/(h)^N)I2 -(*c^N) I()"
                    by VALUED_1:def        .inrng by :3,:  then
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*(h+c))^\N*I2 - (f1/*(c^\N)) *I2)        henceh1  0 byA14
                    by A21,XBOOLE_1:18,VALUED_0:27
              .= (  orr1,r2,s2 beingElement R holdsgcdr,,Amp = 1.R java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [22, 18) out of bounds for length 65
                     A15,A10:VALUED_027
              .= ((f2/*(d1+a1) - f2/  let Amp be AmpleSet of R;
                  ( ( ((f1/*(h+c))^\N - (f1/*c)^\N)*I2)(#)h2" )
                    by RFUNCT_2  assume that
A2 gcd(s1,s2A) =1Rand
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 25
                
              .= (A:ddivides s2 byDef12;
                    FUNCT_2110
              .= ((f2/*(f1/*(h+c)))^\N * I2 - f2/*a1thenconsidergcds1, 1RbyA2,10;
                   by A28,VALUED_0:27
              .= (((f2*f1)/*(h+c))^\N*I2 - f2/*a1) (#) h2" by A13,VALUED_0:31
              .= (((f2*f1)/*(h+c))^\N* =1R byA11,Tjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
                     by A100    considere  that
              (*/(+)\NI2-(f2/a^N)I2)()h2"
                       by A33,A11,A17: gcd(r,r1,Amp) is Element of Amp & 1Element ofAmpby ,Def12;
              .:. r,,;
LUED_0:1
              .= (( ((f2*f1)/*(h+c))^\N -   thesisA17T
                       by RFUNCT_2:2
              .= ( ((f2f1/*(+c))^N-(f2*f1)/*c^\N ) *)()
                   (  ) by A20A19,Th29Th37;
                       by RFUNCT_2:5
              .= ((h^\N)"(#)(((f2*f1)/*(h    =s  d*r)by ,A4A13,;
                       by RFUNCT_2:2;

         rng (((f1/*(h+c))^\N)*I2) c= rng ((f1/*(h+c))^\N) by java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 31
         then
A104:     rng (d1 + a1) c= dom        let mbe such that  = m;
         ((h+c)^\N)*I2 is subsequence of (h+c) by VALUED_0:20; then


         rng (((h + c)^\N)*I2) c= rng (h + c) by VALUED_0:21;
         then
         rng ((h+)^\N)I2 c=dom f1 A13,A15;
         then rng ((h^\N + c^\N)*I2) c= dom f1 by SEQM_3:15;
         then
A105:     rng (h2 + c2) c= dom f1 by RFUNCT_2:2;

         h2 is subsequence of h by VALUED_0:20; then
    VALUED_0:21;

:forn be  holds h2. >0
         proof
          let n be Nat;
          dom h2 = NAT by FUNCT_2:def 1; then
          h2.n in
          ex m beA77    h1 +)=dom f1 byRFUNCT_22;
          hence h2.n > 0 by A14;
         end;

         c2 is subsequence of c by VALUED_0       f1x0) f,;
A108:     rng c2 = {x0} by A12,VALUED_0:26;
         then
A109:     lim s = Rdiff(f1,x0) by A1,A105,A107,FDIFF_3:15;

A110:     for n be Nat holds d1.n > 0
         proof
        nbe Nat;

nin byORDINAL1:def 2 java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
A111   r1r2,s  of;
A112:      (f1/*((h+c)^\N)*I2).n
            = (f1/*((h+c)^\N)).(I2.n) by FUNCT_1:13
          =f1.(((h+)\)(n)) by ,FUNCT_2108java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56

:d1.n =(f1/*(+c^N*c\).I2n)by,,:
           r29A)dividesr29 byDef12;
           .= (f1/*((h+c)^\ then dividesr2
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N+I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 20
           .= f1.(((h+c)^\N).(I2.n)) - f1,mp)divides r1 byA11,Th2;

A114:      ((h+c   gcd,r29,) = 1R A10,h22;
      (hc)\)(.n)=h(+I2n  .N+I2.n)by7
           . h.(NI2.n + byA16;

A116:      |. ((h+c)^\N).(I2.n) -   then

          h.(N+I2.n) > 0 by A14; then
)  r A115,BSVALUEdef1;then
     x0  (+)\)(n &((+)\)(.n <+java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
byA14,:,;then
          ((h+c)^\N).(I2.n) in [. x0,x0+r .] by XXREAL_1:1
          f1.(((h+c)^\N).(I2.    =gcdr29,s19Amp)bA13Th37
            by A7,FUNCT_1:54; then
          f1.x0 <= f1.(((h+c)^\N).(I2.n)) by XXREAL_1:1; then
          f1.x0 < f1.(((h+c)^\N).(I2.n)) by A89,A112,XXREAL_0:1;
          java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         end;

         Rdiff(f1,x0) = Rdiff(f1,x0); then
A117:     s is convergent by A1,A108,A105,A107,FDIFF_3:theorem :
         Rdiff(f2,f1.x0) = Rdiff(f2,f1.x0);
         then
A118:     A118:     tx;

         lim t = Rdiff(f2,f1.x0) by A2,A96,A2:1R y
         then
A119:     lim (((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((           nbeElementof   k <  holdsholds f*(c^N)n=f1.;
           = Rdiff(f2,f1.x0) * Rdiff(f1,x0) by A103,A117,A109,A118,SEQ_2:15;

A120:
set DF =Rdiff(f1x0 *Rdiff(,x0)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
          let g be Real such that
A121:       0 < g;
          consider k being Nat such that
:       m beingNat st  =m 
            |.(((h^\N)"(#)(((f2*f1)/*(h+c))^\N
- (f2*)*)\ ))I2)m  DF.|<g
              A117A118,,defjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A123.= . ((h")^\N).m * ( ((f2*f1)*(h+c)^N-(f2f1)*^N)m.|
          reconsider n = I2.k as Nat;
          take n;
          let m           =|. (h)\).m*((*f1*(c)\)m  (f2*f1/c)^N).m).
A124:        n <= m;
A125:      m in NAT by ORDINAL1:def 12;
A126:       ( h"(#)( (f2*f1)/*(h+c                   A13V27
           =           =| ()\)m*(f2)*(h+)\)m  ((f2*f1)*(c^\).m)|
                             A12,10,FMISC_131VALUED_027

          .= (h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N) by SEQM_3:17;

          now per cases;
           
f1*(+^N)m  x0;

A128:        ((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.((f1/*(c^\N)).m))
             = ((h^\N)").m * (java.lang.StringIndexOutOfBoundsException: Range [30, 6) out of bounds for length 6
             by:8

A129:        (((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N).m
             = (((f2*f1)/*(h+c))^\N).m   x, be Element of R;

            dom((h+c)^\N) = NAT by FUNCT_2:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
let, java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 28
            domf1/(hc^N)=NAT A92,UNCT_2:def ; then
A130:        dom(f2*(f1/*((h+c)theorem Th43:

  beAmpleSet  ;
              =Amp9beingAmpleSet of  that
             .= f2then ,yare_canonical_wrtby Th42;
             .= f2*(f1/*((h+c)^\N)) by A41,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 10
131        (f2*f1)*(h+c)^\N)m =f2x0)
              by A127,A130,FUNCT_1:12,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 11

            dom(c^\N) = NAT by java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 23
            dom(f1*(c^\N)) = NAT by A92,RELAT_1:27; then
            dom(f1/*(c^\N)) = NAT by A92,FUNCT_2:def 11; then
A132:        dom 0.Rif (                     - Rf2)10.| ;

            ((f2*f1)/      (s1 *(r2/gcdr2,,Amp))/
,ZFMISC_1:31(r2s2Amp),mp);
             .= f2/*(f1/*(c^\N)) by A40,VALUED_0:31
             .= f2*(f1/*(c^\N)) by A41,FUNCT_2:def 11; then
            (((f2*f1)/*c)^\N).m = f2.((f1/*(c^\N)).m)
              by ORDINAL1:def 12,A132,FUNCT_1:12
             .= f2.(f1.((c^\N).m(  )+r2 *s1  r1 * s2  . byA7
             .= f2.(f1.(c.(N+m))) by NAT_1:def 3
             .= f2.(f1.x0) by A16;
            hence |.((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m - DF.| < g
              by A126,A121,A79,A128,A131,A129,ABSVALUE:2;
           end;
           suppose
            (f1/*((h+c)^\N)).m <> f1.x0; then
             r1be holds f/(hc^\N))m=r1 r1>x0;
            then
            consider l be Element of NAT such that
A133:         m = I2.l by A90,A125;

            dom I2 = NAT by FUNCT_2:def 1;
            then l >=            (:0. &(*s2/) =
            |.(((h^\N)"(#)(((f2*f1)/*(h+c))^\N
              - ((f2*f1)/*c)^\N ))*I2).l - DF.| < g by A122;
            hence |.((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m - DF.| < g
              by A126,A133,FUNCT_2:15;
           end;
          end;
          hence
              .("#(f1)/*(*hc)-(f1)^N.m
                - Rdiff(f2,f1.x0) *Rdiff(f1,x0).|<g;
         endA       =r1(/gcd22mp)by ,RLVECT_1:4
A134:     (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N is convergent by
           def 6 
A135:     lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N)
            = Rdiff(f2,f1.x0)*Rdiff(f1,x0) by A120,SEQ_2:def 7;

         thus h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
                by A134,SEQ_4:21;
         thus lim (h"(#) ((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,         thus lim (h"(#) ((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,f1
            Rdiff(f1,x0) by A134,A135,SEQ_4:22;
        end;
       end;
       hence thesis;
      end;
     end;
     hence thesis;
    end;
    hence thesis by A6,A9,FDIFF_3:15;
end;

theorem Th43:
for x0 be Real, f1,f2 be PartFunc of REAL,REAL st
 f1 is_left_differentiable_in x0 & f2 is_right_differentiable_in f1.x0 &
  for r1beReal st > ex  beRealst r0  0 &
    .x]c=dom(.f1x0,f1.x0+r1.]|`f1)) holds
  f2*f1 is_left_differentiable_in x0 &
  Ldiff(f2*f1,x0) = Rdiff(f2,f1.x0)*Ldiff(f1,x0)
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL;
    assume that
A1:  f1 is_left_differentiable_in x0 and
A2:  f2 is_right_differentiable_in f1.x0 and
A3: for r1 be Real st r1 > 0 ex r0 be Real st r0>0 &
      [.x0-r0,x0.] c= dom([.f1.x0,f1.x0+r1.]|`f1);

    consider r1 be Real such that
4 r1 >0  [.f1x0f1x0r1.] z s1 =r1*s2)) r *s1)

   A17:r1 =0and
A5: r0>0 &
.x0f1.+.|f1 byA3A4

    r  min(r0,)
A6: r > 0 by A4,A5,XXREAL_0:21;
    x0-r0 <= x0-r & f1.x0 + r <= f1.x0 + r1 by XREAL_1:6,10,XXREAL_0:17; then
    [.x0-r,x0.] c= [.x0-r0,x0.] & [.f1.x0,f1.x0+r.] c= [.f1.x0,f1.x0+r1.]
      by XXREAL_1:34;A95:       (d\)I2)n =0;
[x0r,x0. c=dom(.f1.x0,f1.x0+r1.]|`f1) by A5;

A8:now let x be Real;
     assume x [x0java.lang.StringIndexOutOfBoundsException: Range [23, 14) out of bounds for length 14
     x in dom f1 & f1.x in [.f1.x0,f1.x0+r1.] by A7,FUNCT_1:54;
     hence x in dom(f2*f1) by A4,FUNCT_1:11;
    end; then
A9:[.x0-r,x0.] c= dom(f2*f1);

    x0-r < x0 by A6,XREAL_1:44; then
A10: x0 in dom(f2*f1) by A8,XXREAL_1:1; then
A11: f1.x0 in dom          reconsider c2 = c^\N*I2 as constant Real_Sequence

A12:dom(f2*f1) c= dom f1 by RELAT_1:25;

    for h,c st rng c = {x0} & rng (h + c) c= dom (f2*f1) &
     (for n be Nat holds h.n < 0) holds
     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
   & lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,f1.x0)*Ldiff(f1,x0)
    proof
  leth,;
     assume that
A13:   rng c = {x0} and
A14        . s1*1Rby A24A20Th9
:forn Nat.  ;

A16:  for holdscn= x0
  
      let n be Nat;
      c.n in rng c by VALUED_0:28;
      hence c.n = x0 by A13,TARSKI:def 1;
     end;

A17: now let x be Real;
      assume A18: x in rng(h+c); then
      consider n be Element of NAT such that
A19:    x = (h+c).n by FUNCT_2:113;
      dom(h+c) = NAT by FUNCT_2:def 1; then
       1; java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
      x = h.n + x0 by A16; then
      x < x0 by= 
      x gcd1,-)Amp  * Rbyjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A20:   x in left_open_halfline: r1r,) . byA1,h43
xinf1by A18A,FUNCT_1:1java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
ncexinleft_open_halfline x0 /\ dom f1 by A20,XBOOLE_0:def 4;
     end; then
A21:  rng (h + c) c= left_open_halfline x0 /\ dom f1;

 a /c;

:cc (f2*f1)by,A10,FMISC_1:;

     set d = f1/*(h+c) - f1/*c;

A23: lim h = 0;

     lim c = c.0 by SEQ_4:25; then
     lim c = x0 by A16; then
A24: lim (h + c) = 0 + x0 by A23,SEQ_2:6 .= x0;
A25: f1 is_Lcontinuous_in x0 by A1,FDIFF_3:5; then
A26: f1/*(h+c) is convergent by A21,A24,FDIFF_3:def 1;

A27: f1.x0 = A28:  1.R <> 0.R  :     now
A28: rng (f1/*(h+c)) c= dom: rng (1(+c)c  f2by FDIFF_2:9

     now let x be Real;
x  rnga then
      consider n be Element of NAT such that
A29:   a.n = x by FUNCT_2
c  byA16;.=s1
      then x = f1.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
      hence 0R
     end; then
A30: rng a c= {f1.x0};

     nowAmp  multiplicative&
A31:  a.0 in rng a by add1(1r2,s1,s2,),add2(1r2s1s2Amp)are_normalized_wrt
        let Amp be AmpleSet  R;
A32:  x =   that
      c.0 =                    (f1/*(+)\)* f1/c2)#h2 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 33
      hence x in rng a by A32,A31,A12,A13,A10,ZFMISC_1:31,FUNCT_2:108then
     end; then
     {f1.x0} c= rng a; then
:rng a={f1.}byA30,BOOLE_0:def; then
A34: rng a c= dom f2 by A11,ZFMISC_1:31;

A35: now
      let n be Nat;
  r2,s2,( f1/h)\I2  *)^I2))")
      then
 a. =f1.x0 A30,TARSKI:def;
      a.n+1) rng by VALUED_0:8java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
      hence a.n = a.(n+1) by A30,A36,TARSKI:def 1;
     end;
     then
A37:         =1R A14Th32java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

     consider N be Nat such that
A38:   for m be A18:  1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
       thesis A19,A18;

A39:  rng((h+c)^\N) c= rng(h+c) & rng(c^\N) c= rng c by NAT_1:55; then
A40:  rng((h+c)^\N) c= dom(f2*f1) & rng(c^\N) c= dom(f2*f1) by A14,A22; then
A41:  rng(f1/*((h+c)^\N)) c= dom f2 & rng(f1/*(c^\N)) c= dom f2 by FDIFF_2:9;

     dom(f2*f1) c= dom f1 by RELAT_1:25; then
java.lang.StringIndexOutOfBoundsException: Range [37, 3) out of bounds for length 67

     reconsider a as constant Real_Sequence by A35,VALUED_0:25;
     a.0(s2/gcdr2,2Amp))Amp  gcd(r1* (2gcd(s2)))+(1*(2gcd(java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
     then a.0 = f1.x0 by A30,TARSKI:def 1;
     then lim a = f1.x0 by SEQ_4:25;
     then
A43: lim d = f1.x0 - f1.x0 by A26,A27,SEQ_2:12 .= 0;

     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent &
     lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,f1.x0)*Ldiff(f1,x0)
     proof
      per cases;
      suppose
       ex k be Element of NAT st for n be Element of NAT
        st k <= n holds (f1/*(h+c)).n <> f1.x0; then
       consider k1 be Element of NAT such that
A44:    for n be Element of NAT st k1 <= n holds (f1/*(h+c)).n <> f1.x0;
       reconsider k = max(k1,N) as Element of NAT by ORDINAL1:def 12;
A45:    k1 <= k & N <= k by XXREAL_0:25;
A46:    now
        given n being Nat such that
A47:     (d^\k).n = 0;
A48:    k+n is Element of gcd((r1 * (s2/gcd(r2,s2,Amp))) + (s1 * (r2/gcd(r2,s2,Amp))), gcd(r2,s2,Amp),Amp
          (+)by A47,NAT_1:ef3
         .= (f1/*(h+c)).(k+n) - (f1/*c).(k+n) by RFUNCT_2:1
         . f/*hc).(+n)  .(c(+n)
           by A48,A12,A13,A10,ZFMISC_1:31,FUNCT_2:108
         .= (f1/*(h+c)).(n+k) - f1.x0 by A16;
        hence contradiction by A44,A45,NAT_1:12;
       end;

       set c1 = c^\k;
       set h1 = h^\k;
       set a1 = a^\k;
       set s = h1"(#)(f1/*(h1 +c1) - 1/*1;
A49:   A27:gcdr2s2Amp divides  *s2  A23,h7;
        let n be Element of NAT;
        thus (d + a).n = d.n + a.n by SEQ_1:7
           . f1/(c)n  n+an byRFUNCT_2:
           .= (f1/*(h+c)).n;
          Amp byA1,29,A25TTh27;

       lim (d^\k) = 0 by A37,A26,A43,SEQ_4:20;
       thenreconsider d1=^\k as 0-convergent non-zero Real_Sequence
          by A37,A26,A46,SEQ_1: add1(r2,2,Amp)*(  )=

A50:    for n being Nat holds d1.n > 0
       proof
         n  Nat
A51:    dom(h+c) = NAT by FUNCT_2:def 1;

              = (^java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
         .= (f1/*      (,,,,)*(( *s2  r2)) = s2 * (0.R + (s1 *
. f1/*(h+c).n+k  then
           by A12,A13,A10,ZFMISC_1:31,FUNCT_2:108
         .= ,2,
         .=0) A10

        (h+c).(k+n) = h.(k+n)+c.(k+n)
                   
A53:    (h+c).(k+n) = h.(k+nA13:(r1

        |. (h+c).(k+n) - lim(h+c) .| < r by A38,A45,NAT_1:12; then
        |. h.(k+n) + c.(k+n)           h2           (*+s1 )byA18GROUP_1def;
: ,;java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
        |. h.(k+n) + x0 - x0 .| <;
        -h.(k+n) < r by A15,ABSVALUE:def 1; then
        -(-h.(k+n)) > -r by XREAL_1:24; then
        x0 > (h+c).(k+n) & (h+c).(k+n) > A24:  r1< 0.R &s1< . &gcdr2,s2,mp >1.R  r1  s2gcd(
        (h+c).(k+n) in [.x0-r,x0.] by XXREAL_1:1; then
t
:f1.x0< ((c)(k+) XXREAL_1:;
        0 <> d1.n by A46;
henced1. 0A54,A52XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
       end;

       set t = d1"(#)(f2/*(d1 + a1) - f2/*a1);

       d1 + a1 = (d + a)^\k       ,s2,Amp),Amp) divides (r2(/r2,)  Th7
       then
A55:   d1 + a1 = (f1/*(h+c))^\k by A49,FUNCT_2:63:gcdr2s2,Amp) divides (s1*r2  )by ,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

       rng ((f1/*(h+c))^\k) c= rng (f1/*(h+c)) by VALUED_0:21;
       then
A56:   rng (d1 + a1) c= dom f2 by A28,A55;
A57:   rng a1 = {f1.x0} by A33,VALUED_0:26;
       then
A58:   lim t = Rdiff(f2,f1.x0) by A2,A50,A56,FDIFF_3:15;

       Rdiff(f2,f1.x0) = Rdiff(f2,f1.x0);
       then
A59:   t is      then
             ,,Amp)Amp >0R by ;
line /dom  java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 71
       then
A60:   rng (h1 + c1) c= left_open_halfline x0 /\ dom f1 by SEQM_3:15;
       left_open_halfline x0 /\ dom f1 c= dom f1 by XBOOLE_1:17; then
A61:   rng (h1+c1) c= dom f1 by A60;
A62:   rng c1 = {x0} by A13,VALUED_0:26;
A63:   for n be Nat holds h1.n < 0
       proof
        let n be Nat;
        h1.n = h.(k+n) by NAT_1:def 3;
        hence h1A112:(/*(+)\N)I2.n
       end;
       Ldiff(f1,x0) = Ldiff(f1,x0); then
A64:   s is convergent by A1,A62,A63,A61         ((  s2/r2s2,)  )* s2 + (((2 /gcdr2,s2

A65:   t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*(113      .  f1/(+c^)-*c\).n A,java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 77
        c1) (#)h1") by SEQM_3:15
                   . ((/*)-f2* # (f1*hc)^k-/*)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
        h1") by           =h.N.)+x0byA16java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1/*(h+c))^\k - (f1/A116:| (+cA114,24,38,AT_1:2java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
        (#)h1") by A12,A13,A10,ZFMISC_1:31,VALUED_0:27
.f/(+1  *)")()((*h+)^k- (*)\)
        (#)h1") by VALUED_1:def 10
          =(/*a1  /a1/d1 # #h1"by:7
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)h1" by SEQ_1:14
. f2/*(+a1) /a1 # "bySEQ_1:37
          .= ((f2/*(f1/*(h+c)))^\k - f2/*a1) (#) h1" by A28,A55,VALUED_0:27
          . end
          .= (((f2*f1)/*(h+c))^\k - ((f2/*a)^\k)) (#) h1"
              by A33,A11,ZFMISC_1:31,VALUED_0:27
         =((2f1)*h+)^k - ((f2*f1)/c^k) ()h1"
              A13,A10,ZFMISC_1:31,VALUED_0:31
)*)\)()h1"by:7
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) ((h")^\k) by SEQM_3:18
          .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k by SEQM_3:19A118     tisconvergent  ,,A104,110,DIFF_3:15;
       hence h"(#)((f2*f1)/*r2/gcdr,,)  ,A39A40,
         by A64,A59,SEQ_4:21;

       lim s = Ldiff(f1,x0) by A1,A62,A63,A61,FDIFF_3:      )gcd(r2s2Amp)bydef3
        ("#(*)*h+c  f1/c)^k =(1x0 
 f1  A65A64A59,,SEQ_2:15
hencethesis  A64,A59,A65,:;
      ;

      suppose
kbe NAT
        ex n be Element of NAT st k <= n & (f1/*(h+c)(r1  s2/cd,Amp))*(2*s2)+(s1 *r2/cd(,,))*

       defpred P[object] means $1 = f1.x0;

 ofNAT
stk<  P[/(+).]by A66;
       consider I1 be increasing sequence of NAT such that
A68:    for n           reconside n = .  ;
        for n be Element java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 17
Pr   Elementof         <;
        from FDIFF_2:sch 1(A67);
       reconsider h1 = h*I1 as 0-convergent non-zero Real_Sequence


       set =c*I1
A69:   c1 = c by VALUED_0:26;
A70:   rng c1 = {x0} by A13,VALUED_0:26;

A71:    rng h1 c= rng h by VALUED_0:21;

A72:   s2,Amp),Amp divides (r  s2/(,,))+ ( (/gcdr2s2:(*(c^\N).m=.x0;
       proof
       nNat;
       h1   UNCT_2def1 
        h1.n in rng h1 by FUNCT_1:3,              ((^\)".m  (f2f1)/*(h+c))^\ - (f2f1)c)\)m
        ex m be Element of NAT        = add2(r,,,Amp*(r1*s2  s1  )  A41A45A44
         .n 0byjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
       end;

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A73:   now
        let g be Real such that
A74:     0 < g;
        reconsider n = 0 as Nat;
        take n;
         Natsuch <;
A75. f2/( V:
                     .(/*(c^N) by A41,FUNCT_2:ef ;then
          c1)  f1*1.. bySEQ_1:8
         .= |,r2s1,s2 be of;
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.(c.m)).|
                       (N Nby:1 
         .= |.(h1").m *((f1            (*c\)  NATbyA92,ELAT_127then
. |(1. *1*(+*)m .x0| :2
(f1/(+c :domf2*(f1*c\))=NAT byA41,:;
             by A21,XBOOLE_1:18,FUNCT_2:110
         .= |.(h1").m *(f1.x0 - f1.x0).| by A68
         .= 0 by ABSVALUE:2;
            Elementof holds z=0Riff z  (r1*s1)s1,Amp
       end;

       rng ((h + c)*I1) c= rng (h + c) by VALUED_0:21; then
      (  *)c  f1 by A12,A14; then
A76:   rng (h1 + c1) c= dom f1 by RFUNCT_2:2; then
A77:   lim (h1"(#)(f1/*(h1+c1) - f1/*c1)) =             = f2.f1.)by;
          ,,;

       Ldiff(f1,x0) = Ldiff(f1,x0); then
       h1"(#)(f1/*(h1+c1) - f1/*c1A:gcd(1,r2,Amp <0RbyA3Th33;
by,,76A72
:f1x0   A73 zElement R

       now per cases;
        suppose
         ex k be Element of NATcase
          for n be Element of NAT st k <= n holds (f1/*((h+c)^\N)).n = f1.x0;
         thenhence thesis;
A79:       = by,,def13A;

A80:     now let g be Real such that
:0<g;
ider = Nat;
          take n;
      r2 = .;
A82:      m in NAT by ORDINAL1:def 12;
          assume
A83 n < ;

(("#(f2*1)/(+)  f*f1)*)^N.java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
               - Rdiff(f2,f1.x0)*Ldiff(f1, x0 ) .|
            = |.( ((h")^\N) (#) (((f2*f1)/*(java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 21
S
.|("N() (*f1/(c^N-(f2*1)/^N)..endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
by17
           .= |. ((h")^\N).m * ( ((f2*f1)/*(h+c))^\N - ((f2*            (f1x0  A134A135,:;
                  by SEQ_1:8
           .= |. ((h")^\N).m *((((f2*f1)/*(h+c))^\N).m - s = .R;
                  by RFUNCT_2:1
           .= |. ((h")^\N).m *(((f2*f1)/*((h+c)^\N)).m - (((f2*f1)/*c        ( /(,,     hence thesisjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
                  by A14,VALUED_0:27
           .= |. ((h")^\N).m *(((f2*f1)/*((h+c)^\N)).m - ((f2*f1)/*(c^\N)).m).|
byA10java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 52
       .= |. ((h")^\N).m * ((      r2 =1R java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
                  by A40,VALUED_0:31
       .= |. ((h f2f1 &
                  by A40,VALUED_0:31
       .= |. ((h")^\N).m * ( f2.((f1/*((h+c)^\N)).m) - (f2/*(f1/*(c^\N))).m).|
by A41,UNCT_2:108,A82
       .= |. ((h")^\N).m * ( f2.(f1.x0) - (f2/*(f1/*(c^\N))).m).|
           by A83,A79,A82
       .= |. ((h: =NF(,Amp)
A82,A41,FUNCT_2:108
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.( f1.( (c^\N).m) )).| by
       A42,FUNCT_2:108,A82
       =.("^N.  (f2.f1x0)-f2(f1. (N+m ). by
NAT_1d
       .= |. ((hjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
           .= 0 by per cases by A7

              |. ((h"(#)((f2*f1)/*(h+c) - (f2*java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
-f2,)(1.gbyA81;
         end; then
A84:      (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N is convergent
byjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
:lim("#((f1/(hc  f2f1)/*c))^Njava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
           = Rdiff(f2,f1.x0)*Ldiff(f1,x0) by      x in    f1.  [f1.,1r1.]by A7,UNCT_1:;
         h()(f1)/*(hc - (f2*)/*c)  convergent
           by A84,SEQ_4:21;
          lim h()((f2*1/*h)  (2f1)/c) =java.lang.StringIndexOutOfBoundsException: Range [0, 62) out of bounds for length 46
            Ldiff(f1,x0) by A84,A85,SEQ_4:22;
        end;


A86:     for k  nd
          ex n be Element of NAT st k <= n & (f1/*((h+c)^\N)).n <> f1.x0;

         defpred P[
A87      k Element ofNAT
 exn be Element of NATk <n & P[(1/*((h+c)\)     ornbe holds.  holds
            by A86;

         consider I2 be increasing sequence of NAT such that
A88             et c
A89     assume that
            r = (f1/*((h+c)^\N)).n holds P[r]
             ex m be Element of NAT st n
            = I2.mA15   forn    .n< 0;

      ^ =(1/*(c)\  (f1*
          .= f1/*((h+c)^\N) - (f1/*c)^\N by A21,XBOOLE_1:18,VALUED_0:27
          . *(+c^N  *c^N byA12A13,A10
,ZFMISC_1:31,VALUED_0:27;

         rngc. =x0  A13TARSKId ;
A91:      rng(c^\N) c= dom f1 & rng((h

      ^N  f1/(c^ : x  rng(c; then

A93:      now:r2 <. by A2
          given nA19    x=(+)n FUNCT_2:;
:      (A11:s1s2 are_co-primejava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24

          0 = (d^\N).(I2.n) by A94,FUNCT_2:15,ORDINAL1:def 12
           .= (f1/*((h+c)^\N)).(I2.n) - (A15: .in Amp &1R<>0R Th22
           .= (f1/*((h+c)^\NA20   x   x0 :ef10;
           .thesis ,;

           .= (f1/*((A19:  mult2(r1,r2,s1,s2,Amp) = 1.R by A5,A11,A7,A17,Def19;
          hence contradiction by A88;
         end;

         reconsider h2 = h^\N*I2 as 0-convergent non-zero
              Real_Sequence by FDIFF_2:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         A23: lim =0;
ant Real_Sequence;
         set s = h2"(#)(f1/*(h2+c2) - f1/*c2);

         d^\N*I2 is subsequence of d by VALUED_0:20; A24:lim h+c =0+x0byA23S      then
         A23 gcd(s2,Ampjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
         then reconsider d1 = d^\N*I2      then
        byA37,A26SEQ_4:A93,SEQ_1:5,DIFF_1def1

         set t = d1"(#)(f2/*(d1+a1) - f2/*a1);
         isofVALUED_020; then
rng f1x0 byA3326;
A96:     nowmult1r,,,,)=(r1 * s1)r1,      n  that
          let n be Element of NAT;
          thus (d^\N + a^\N).n = (d^\N).n + (a^\N).n by java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 34
. (1/*h)\) ^N.n  a\).  ,92RFUNCT_2:
.=(1*(c^N)n
         ;

A97:     rng((f1/*     nowlet be ;
:rng(f1/(+c)\)c  f2A28

 byVALUED_0:;then
A99:    rng(a^\N) c= dom f2 by A34;

         d1 + a1 = (d^\N + a^\N)*I2 by RFUNCT_2:2; then
A100:     d1 + a1 = f1/*((h+c)^\N)*I2 by A96,FUNCT_2:63
           .= ((f1/*(h+c))^\N)*I2 by A21,XBOOLE_1:18,VALUED_0:27;

A101:      h2+c2 = (h^\N + c^\N)*I2 by RFUNCT_2:2
          .= (h+c)^\N * I2r r2asof by

A102:     t(#)s = d1"(#)(f2/*(d1+a1) -    
                  ( ( (     .   
                     by A91,A101,FUNCT_2:110
          . d1"(#)f2*(1a1) -f2/**a1)(java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
(((*(c\)I2 - (1c\\)I2)(#h2")
                    by,FUNCT_2:
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*((h+c)^\N))*I2 - (f1/*,
                    by VALUED_1:def 10
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*(h+c))^\N*I2 - (f1/*(c^\N)) *I2)(#)h2" )
                    by A21,XBOOLE_1:18,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*(h+c))^\A45:  v * u <> 0.R by A40,A44,VECTSPdef1;
                    by A12,A13,A10,ZFMISC_1:31,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  (
                    2
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h2") by SEQM_3:17
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)h2" by SEQ_1:14
          .= (f2/*(((f1/*(h+c))^\N)*I2) - f2/*a1) (#) h2" by A100,SEQ_1:37
          .= (   (f2 /* ((f1/*(h+c))^\N)) * I2 - f2/*a1  ) (#) h2"
            by A98,FUNCT_2 letAmp be AmpleSet of R;
          .= (   (f2/*(f1/*(h+c)))^\N * I2 - f2/*a1  ) (#) h2"
            by A28,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\N*I2 - f2/*a1) (#) h2" by A14,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\N*I2 - (f2/*(a^\N))*I2) (#) h2"
            by A99,FUNCT_2:110
          .= (((f2*f1)/*(h+c))^\N*I2 - ( (f2/*a)^\N )*I2) (#) h2"
       by A33,ZFMISC_1::1VALUED_0:27
          = ((f*)*(+c)\*I2 ( ((f2*)*c^N)I2 # 
            java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 6
          .= (( ((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ) *I2) (#) h2"
            by RFUNCT_2:2
          =((f2f1)*hc)\N  (f1)/*c)\N) *I2) (#) (((h^\N)*)
            by RFUNCT_2:5
          .= ((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1A7 s1r2Amp)<0Rby;
            by RFUNCT_2:2;

         rng (((f1/*(h+c))^\N)*I2) c= rng ((f1/*(h+c))^\N) by VALUED_0:21; then
A103:     rng (d1 + a1) c= dom f2 by A97,A28,A100;

         ((h+c)^\N)*I2 is subsequence of (h+c) by VALUED_0:20; then
         rng (((h + c)^\N)*I2) c= rng (h +A42:rng(hr2s1Amp=0. Def18
         rng (((h + c)^\N)*I2) c= dom f1 by A12,A14; then
then(,s,) *) (s1,java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 76
A104:     rng (h2 + c2) c= dom f1 by RFUNCT_2:2;

         h2 is subsequence of h by VALUED_0:20; then
A105:    rng h2 c= rng h by VALUED_0:21;

A106:     for n be Nat holds h2.n < 0
         proof

          dom h2 = NAT by FUNCT_2:def 1; then
          h2.n in rng h2 by FUNCT_1:3,ORDINAL1:def 12; then
  beofNATst h2.=h.mby,UNCT_2:;
hencen<0by;
         java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 26

         c2 is subsequence of c by VALUED_0:20; then
A43 0-.  ,java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 52
A108:     lim s = Ldiff(f1,x0) by A1,A104,A106,FDIFF_3:9;

     forn Nat holds.     lim (h"(#)((f2*f1)/*(h+c) - )cRf,.java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 76
         proof
          let n be Nat;

          n in NAT by ORDINAL1:def 12; then
A110:      n in dom I2 by FUNCT_2:def 1; then
A111:      (f1/*((h+c)^\N)*I2).n
*(
           .= f1.(((h+c)^\N).( consider k1 beof NAT suchthat

:.n f1*(h+c^N  /*c\).I2)by1java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
by1
           .= (f1/*((h+c)^    
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N+I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 by A16
           .= f1.(((h+c)^\N).(I2.n)) - f1.x0 by A42,FUNCT_2:108;

A113:      ((h+c)^\N).(I2.n) = (h+c).(N+I2.n) by NAT_1:def 3; then
A114:      ((h+c)^\N).(I2.n) = h.(N+I2.n) + c.(N+I2.n) by SEQ_1:7
           .= h.(N+I2.n) + x0 by A16;

          |. ((h+c)^\N).(I2.n) - x0 .| < r by A113,A24,A38,NAT_1:12; then
          -h.(N+I2.n)        =(*) )gcd(s1,r2,)by,,,;
          -(: (,r2, divides  java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
  (+)\)(.n)&(+c\)I2.)  x0
            by A114,A15,XREAL_1:8,30; then
in.r,x0 .] by XXREAL_1:1; then
          f1.(((h+c)^\N).(I2.n)) in [. f1.x0, f1.x0+r1 .]
            by A7,FUNCT_1:54; then
)\)I2) ;
          f1.x0 < f1.(((h+c)^\N).(I2.n)) by A88,A111,A28:r1  . ors1=0R &notr2=1.&s2= 1R s2
          hence d1.n > 0 by A112,XREAL_1:50;
         end;

:gcds1r2A)* r1,s2,Amp) divides( s2   by Th7;
:   ,,A1069;
         Rdiff(f2,java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 10
A116

         lim t = Rdiff(f2,f1.x0) by A38  gcd,),,Amp >.  ,,java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 71
A117:     lim (((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ))*I2)
           = Rdiff(f2,f1.x0) * Ldiff(f1,x0) by A102,A115,A108,A116,SEQ_2:15;

A118:     now
          set DF = Rdiff(f2,f1.x0) * Ldiff(f1,x0);
          let g be Real such that
A119:       0 < g;
          consider k being Nat such that
A120:       for m being Nat st k <= m holds
            |.(((h^\N)"(#)(((f2*f1)/*(h+c))^\N
              - ((f2*f1)/*c)^\N ))*I2).m - DF.|<g
              by A102,A115,A116,A117,A119,SEQ_2:def 7;
A121:      k in NAT by java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
           set f1/*(1+ c1)-f1*;
          take n;
let  Nat 
A122        <m;
      min  by:ef ;

A124:       ( h"(#)( (f2*f1)/*(h+c) - (f2*f1)/*c ) )^\N
           = ((h")^\N)(#)(( (f2*f1)/*(h+c) - (f2*f1)/*c )^\N) by SEQM_3:19           = ((h")^java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
          .= (h^\N)"(#)(( (f2*f1)/*(          .= (h^\N)"(#)(( (f2*f1)/*(hnon-zero Real_Sequence
          .= (h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N) by SEQM_3:17;

          now per cases;
           suppose
        f1/((h+)\). x0;

A126:        ((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N)).m
             = ((h^\N)").m * (((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N).m
             by SEQ_1:8;

A127:        (((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N).m
             = (((f2*f1)/*(h+c))^\N).m - (((f2*f1)/*c)^\N).            AA10,:FUNCT_2:

            dom((h+c)^\N) = NAT by FUNCT_2:def 1; then
            dom(f1*((h+c)^\N)) = NAT by A91,RELAT_1:27; then
            dom(f1/*((h+c)^\N)) = NAT by A91,FUNCT_2:def 11; then
A128:        dom(f2*(f1/*((A53    (+.k)= h.k) by A16;

                    .h+)(+)-lim)((,,)*gcdr1s2,mp))  r1s1  A7Th14
              = (. kn  (kn . (* )Amp*,)) ) s1java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
. 2/*f1*(+c^N)byVALUED_031
             .= f2*(f1/*((h+c)^\N)) by A41,FUNCT_2:def 11; then
A129:        (((f2*f1)/*(h+c))^\N).m
             =f2. r1(java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 71

            dom(c^\N        f1((h+)(+n) in .x0.+r1]by ,FUNCT_1:; java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
            dom(f1*(c^\N)) = NAT by A91,RELAT_1:27; then
            dom(f1/*(c^\N)) = NAT by A91,FUNCT_2:def 11; then
A130:        dom(f2*(f1/*(c^\N))) = NAT by A41,RELAT_1:27;

            ((f2*f1)/*c)^\N = (f2*f1)/*(c^\N) by A13,A10
,ZFMISC_1:31,VALUED_0:27
. /(*(^N) byVALUED_031
       then
            (((f2*f1)/*c)^\N).m = f2.((f1/*(c^\N)).m)
              by ORDINAL1:def 12,A130,FUNCT_1:12
108
             .= f2.(f1.(c.(N+m))) by NAT_1:def 3
             .= f2.(f1.x0) by A16;
            hence
              |.((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m - DF.| < g by
                 A124,A119,A78,A126,A129,A127,ABSVALUE:2;
           end;
          java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
            (f1/*((h+c)^\N)).m <> f1.x0; then
            for r1 be Real holds (f1/*((h+c)^\N)).m = r1 implies r1<>f1.x0;
            then
            consider l be Element of NAT such that
A131:         m = I2.l by A89,A123;

            dom I2 = NAT by FUNCT_2:def 1;
           l> k  AVALUED_0java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
|(^)"#(f2)(hc)^\N
              - ((f2*f1)/*c)^\N ))*I2).l - DF.| < g by A120;
"(#((f2f1/*(h+c) -(*f1)*c)^\N)m-DF.| <g
              by A124,A131,FUNCT_2:15;
           end;
          end;
          hence
              |      Ldiff(f1x0)= Ldiff(f1,x0); then
                - Rdiff(f2,f1.x0) *Ldiff(f1,x0).|<g;
         end; then
A132:     (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N isA65 t#s = d1(#f2*da1) +)\)-f1*
           SEQ_2:def 6;
         hence h"(#) .=d1"#(2/*(1+ -f2/a1)(#)((f1*h)^k- /*)#)
         lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^      (r1/gcdr1        h1" ,:8VALUED_027
            = Rdiff(f2,f1.x0)*Ldiff(f1,x0) by A118,A132,SEQ_2:def          .= d1"(#)(/*(+  * #. (*)(mp *gcd(A))*)by
         hence lim (h"(#) ((f2*f1)/*(h+c) - (f2*f1)/*c)) = Rdiff(f2,f1.x0)*
            Ldiff(f1,x0) by A132,SEQ_4:22;
        end;
       end;
       hence thesis;
      end;
     end;
     hence thesis;
    end;
     =(/(java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 55
end;

theorem Th44:
for x0 be Real, f1,f2 be PartFunc of REAL,REAL st
 f1 is_differentiable_in x0 & f2 is_right_differentiable_in f1.x0 &
   (for r1 be Real st r1 > 0 ex r0 be Real st          .= ((f2f1/(h+)^k - (f2*)c^k)(#)h"
    [.x0-r0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1)) holds
  f2*f1 is_differentiable_in x0 &
  diff(f2*f1,x0) = Rdiff(f2,f1.x0)*diff(f1,x0)
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL;
    assume that
A1:  f1 is_differentiable_in x0 and
A2:  f2 is_right_differentiable_in f1.x0 and
A3 forr1 Realstr1  0ex bejava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
[-r0,x0+r0] = dom([f1,f1.r1]|`f1);

:f1  x0 & f1is_left_differentiable_in java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    diff(f1,x0) = Rdiff(f1,x0) & diff(f1,x0) = Ldiff(f1,x0)
      by A1,FDIFF_3:22;
       Real st r1 > 0 ex r0beReal st r0> &
      .,r0 =dom[f1.,f1r1]`)

     let r1 be Real       hence thesis by A64,,A65,22;
     assume r1 > 0; then
      ;
A5:  r0>0 &
      [.x0-r0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1) by A3;
     take r0;
r0  x0  A5,XREAL_1:44; then
     [.x0,x0+r0.] c= [.x0-r0,x0+r0.] by XXREAL_1:34;
     hence thesis by       defpred P[bject] means$ =x0;

    end; then
A6: f2*f1 is_right_differentiable_in x0 &
    Rdiff(f2*f1,x0) = Rdiff(f2,f1.x0)*Rdiff(f1,x0) by A4,A2,Th42;

    for r1 be Real st r1 > 0 ex r0 be Real st r0 > 0 &
      [.x0-r0,x0.] c= dom([.f1.x0,f1.x0+r1.]|`f1)
    proof
     let r1 be Real;
     assume r1 >          P[r ex  ben  .m
     consider r0 be Real such that
A7:  r0>0 &
      [.x0r0,x0r0]c dom[f1x0,f1x0r1]|`f1)by;
     take r0;
     x0 < x0+r0 by A7,XREAL_1  b*< 0.F by A1,A2,VECTSP_1:12
     [.x0-r0,x0.] c= [.x0-r0,x0+r0.] by XXREAL_1:34;
     hence thesis by A7;
  then
    f2*f1 is_left_differentiable_in x0 &
    (2f1  f2f1x0)*java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 39
    hence thesis by A4,A6,FDIFF_3:21;
end;

theorem Th45:
for x0 be Real, f1,f2 be PartFunc of REAL,REAL st
 is_right_differentiable_in&java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 72
          m ElementofNATst h1n=hmbyA71,:;
    [.x0,x0+r0.] c= dom([.f1.x0-r1,f1.x0.]|`f1)) holds
  f2*f1 is_right_differentiable_in x0 &
  Rdiff(f2*f1,x0) = Ldiff(f2,f1.x0)*Rdiff(f1,x0)
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL;
    assume that
A1:  f1 is_right_differentiable_in x0 and
A2:  f2 is_left_differentiable_in f1.        njava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A3: for r1 be Real st r1 > 0 ex r0 be Real st r0>0 &
      [.x0,x0+r0.] c= dom([.f1.x0-r1,f1.x0.]|`f1);

    consider r1 be Real such that
A4: r1 > 0 & [. f1.x0-r1,f1.x0 .] c= dom f2 by A2,FDIFF_3:def 4;

    consider r0 be Real such that
A5: r0>0 &
     ., =[x0-,..`)byA3A4java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58

    set r = min(r0,r1);
A6   0  A4,5,XXREAL_021;
    x0+r <= x0+r0 & f1.x0 - r1 <= f1.x0 - r by XREAL_1:6,10,XXREAL_0:17; then
    [.x0,x0+r.] c= [.x0,x0+r0.] & [.f1.x0-r,f1.x0.] c= [.f1.x0-r1,f1.x0.]
      by XXREAL_1:34; then
A7:[.x0,x0+r.] c= dom([.f1.A76:rngh1+c1) f  :;then

A8:now let x be Real;
     assume x in [.x0,x0+r.]; then
     x in dom f1 & f1.x in [.f1.x0-r1,f1.x0.       "(#(/*) -f1/c1  
     hence x in dom(f2*f1) by A4,FUNCT_1:11;
    end; then
A9:[.x0,x0+r.] c= dom(f2*f1);

A10: dom(f2*f1) c= dom f1 by RELAT_1:25;

   byXREAL_1;then
A11: x0 in dom(f2*f1) by A8,XXREAL_1:1          kElement 
A12: f1.x0 in dom f2 by FUNCT_1:11;

    for h,c stA81:       0 <g;
     (for n be Nat holds h.n > 0) holds
     ")(f2)/(h+)- (
   & ("#(*1/(c)(*/c)=Ldiffff.)(,java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
    proof
     let h,c;
     A83:     n=mjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
A13:   rng c = {x0} and
A14:   rng (h + c) c= dom (f2*f1) and
A15:   for n be Nat holds h.n > 0;

A16:  for n be Nat holds c.n = x0
     proof
      let n be Nat;
      c.n in rng c by VALUED_0:28;
      hence c.n =                 by A78,EQM_319
;

A17: now let x be Real;
      assume    rngh+) then
c n of uch
A19      hc)n FUNCT_2:13;
      dom(h+c) = NAT by FUNCT_2:def 1; then
      x = h.n + c.n by A19,VALUED_1:def 1; then
      x = h.n + x0 by A16; then
      x > x0 by A15,XREAL_1:29; then
      x in ].x0,+infty.                  yA13,,FMISC_131:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A20:   x in right_open_halfline x0 by LIMFUNC1:def 3;
in f1 ,A1411
      hence x in right_open_halfline x0 /\ dom f1 by A20,XBOOLE_0:def 4;
     end; then
A21:  rng (h + c) c= right_open_halfline x0 /\ dom f1;

     set a = f1/*c;

A22:  rng c c= dom (f2*f1) by A13,A11,ZFMISC_1:31;

     set d = f1/*(h+c) - f1/*c;

h  ;

     lim c = c.0. .(h"\)m*(.  (.).  A16
     lim c = x0 by A16; then
A24: lim (h + c) = 0 + x0 by A23,SEQ_2:6 .= x0;
 x0 by A1,FDIFF_3:7; then
A26: f1/*(h+c) is convergent by A21,A24,FDIFF_3:def 2;

A27: f1.x0 = lim (f1/*(h+c)A84      h()(*/(c  f2/)Nis
A28: rng (f1/*(h+c)) c= dom f2 by A14,FDIFF_2:9;

 xbe Real;
      assume x in rng a; then
          h"#)f2*1/(h+c)- (f2*f1)/*c)isconvergent
:n=x :java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
      c.n = x0 by A16;
      then x = f1.x0 by A29,A10
      hence xin{.x0 byTARSKIdef1;
     ;then
A30: rng a c= {f1.x0};

     now let x be Real;
A31:  a.0 in rng a by VALUED_0:28;
      assume x in {f1.x0}; then
A32:  x = f1.x0 by TARSKI:def 1;
      c.0 = x0 by A16;
      hence x in rng a by A32,A31,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108;
     
     {f1.x0} c= rng a; then
A33: rng             I2m 
A34: rng a c= dom f2 by A12,ZFMISC_1:31;

:java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
      let n be Nat;
      a.n in rng a by A93:     now
      then
A36:  a.n = f1.x0 by          iven n   such
      a.(n+1) in rng a by VALUED_0:28;
               d\)(.) FUNCT_2def
     ;
     java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
A37: a is constant by VALUED_0:25;

     consider N be Nat such that
A38:   for m be Nat st N <= m holds |. (h+c).m - lim (h+c) .| < r
       by A6,hence contradiction by A88;

A39:  rng((h+c)^\N) c= rng(h+c) & rng(c^\N) c= rng c by NAT_1:55; then
A40:  rng((h+c)^\N) c= dom(f2*f1) & rng(c^\N) c= dom(f2*f1) by A14,A22; then
A41:  rng(f1/*((h+c)^\N)) c= dom f2 & rng(f1/*(c^\N)) c= dom f2 by FDIFF_2:9;

     dom(f2*f1) c= dom f1 by RELAT_1:25; then
A42:  rng((h+c)^\N) c= dom f1 & rng(c^\N) c= dom f1 by A39,A14,A22;

     reconsider a as constant Real_Sequence by A35,VALUED_0:25;
     a.0 in rng a by VALUED_0:28;
     then a.0 = f1.x0 by A30,TARSKI:def 1;
     then lim a = f1.x0 by SEQ_4:25;
     then
A43: lim d = f1.x0 - f1.x0 by A26,A27,SEQ_2:12 .= 0;

     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent &
     lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Ldiff(f2,f1.x0)*Rdiff(f1,x0)
     proof
      per cases;
      suppose
       ex k be Element of NAT st for n be Element of NAT
        st k <= n holds (f1/*(h+c)).n <> f1.x0; then
       consider k1 be Element of NAT such that
A44:    for  Real_Sequence by FDIFF_2:;
       reconsider k = max(k1,N) as Element of NAT by ORDINAL1:def 12;
A45:    k1 <= kset s  "#(*h2c2)  *)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A46:    now
        given nbeing Natsuchthat
A47:     (d^\k).n = 0;
A48:    k+n is Element of NAT by ORDINAL1:def 12;
        0 = d.(k+n) by A47,NAT_1:def 3
         .= (f1/*(h+c)).(k+n) - (f1/*c).(k+n) by RFUNCT_2:1
         .= (f1/*(h+c)).(k+n) - f1.(c.(k+n))
           by A48,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108
         .= (f1/*(          let of;
        hence contradiction by A44,A45,NAT_1:12;
       end;

       set c1 = c^\k;
       set h1 = h^\k;
       set a1 = a^\k;
       set s
:
let nbeElementof ;
        thus (d + a).n = d.n + a.n by SEQ_1:7
           .= (f1/*(h+c)).n - a.n + a.n by RFUNCT_2:1
           .= (f1/*(h+c)).n;
       end;

       lim (d^\k) = 0 by A37,A26,A43,SEQ_4:20;
       then reconsider d1 = d^\k as 0-convergent non-zero Real_Sequence
          by A37,A26,A46,SEQ_1:5,FDIFF_1:def 1;

A50:    for n being Nat holds d1.n < 0
       proof
        let n be Nat;
;then

A52:    d1.n = d.(k+n) by NAT_1:def 3
         .= (f1/*(h+c)).(n+k) - (f1/*c).(n+k) by RFUNCT_2:1
         .= (f1/*(h+c)).(n+k) - f1.(c.(n+k))
           by A10,A13,A11,ZFMISC_1:31,FUNCT_2:108
         .= (f1/*(h+c)).(n+k) - f1.x0 by A16
         .= f1.((h+c).(n+k)) - f1.x0 by A21,XBOOLE_1:18,FUNCT_2:108;

        (h+c).(k+n) = h.(k+n)+c.(k+n)
AL1def12VALUED_1: ;then
A53(((f1/(h)\))I2-(/*c^\) I2)#h2")

        |. (h+c).(k+n) - lim(h+c) .| < r by A38,A45,NAT_1:12; then
        |. h.(k+n) + c.(k+n) - x0 .| < r
          by A24,A51,ORDINAL1:def 12,VALUED_1:def 1; then
A54:    |. h.(k+n) + x0          .=(f/(+a1- */ java.lang.NullPointerException

        h.(k+n) > 0 by A15; then
,ABSVALUEdef ;
        x0 <                     A,:,
        (h+c).(k+n) in [.x0,x0+r.] by XXREAL_1:1; then
        f1.((h+c).(k+n)) in [.f1.x0-r1,f1.x0.] by A7,FUNCT_1:54; then
A55:    f1.x0 >= f1.((h+c).(k+n)) by XXREAL_1:1;
        0 <> d1.n by A46;
        hence d1.n < 0 by A55,A52,XREAL_1:47;
       end;

       set t = d1"(#)(f2/*          .   f2 / (/*)\)   / )()"

d1+a1 =(+a^kby:15java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
       then
A56:   d1 + a1 = (f1/*(h+c))^\k by A49,FUNCT_2:63;

       rng ((f1/*(h+c))^\k) c= rng (f1/*(h+c)) by VALUED_0:21;

A57:   rng (d1 + a1) c= dom f2 by A28,A56;
A58:   rng a1 = {f1.x0} by A33,VALUED_0:26;
       then
A59:   lim t = Ldiff(f2,f1.x0) by A2,A50,A57,FDIFF_3:9;

       Ldiff(f2,f1.x0) = Ldiff(f2,f1.x0);
       then
A60:   t is convergent by A2,A58,A57,A50,FDIFF_3:9;
       rng ((h + c)^\java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
       rng ((h + c)^\k) c= right_open_halfline x0 /\ dom f1 by A17; then
A61:   rng (h1 + c1) c= right_open_halfline          ((h+c)^\N)*I2 is subsequence of (h+c)20 
       right_open_halfline x0 /\ dom f1 c= dom f1 by XBOOLE_1:17; then
A62:   rng (h1+c1) c= dom f1 by A61;
rng  x0 A13,26java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A64:   for n be Nat holds h1.n > 0
       proof
        let n be Nat;
        h1.n = h.(k+n) by NAT_1:def 3;
        hence h1.n > 0 by A15;
       end;

       Rdiff(f1,x0) = Rdiff(f1,x0); then
A65:   s is convergent by A1,A63,A64,A62,FDIFF_3:15;

A66:   t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*((h+c)^\k) - f1/*
        c1) (#)h1") java.lang.StringIndexOutOfBoundsException: Range [9, 1) out of bounds for length 13
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1/*(h+c))^\k - f1/*c1)(#)
        h1") by A21,XBOOLE_1:18,VALUED_0:27
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1/*(h+c))^\k - (f1/*c)^\k)
        (#)h1"         c2 is   by20 
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#A108:lim = f1,)A,A1069;
        (#)h1") by VALUED_1:def 10
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h1") by SEQM_3:17
          .= ((f2/*(d1+a1) - f2/*a1)/ let   ;
          .= (f2/*(d1+a1) - f2/*a1) (#) h1" by SEQ_1:37
          .= ((f2/*(f1/*(h+c)))^\k - f2/*a1) (#) h1" by A28,A56,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - f2/*a1) (#) h1" by A14,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\k - ((f2/*a)^\k)) (#) h1"
              by A33,A12,ZFMISC_1:31,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - (((f2*f1)/*c)^\k)) (#) h1"
              by A13,A11,ZFMISC_1:31,VALUED_0:31
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) h1" by SEQM_3:17
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) ((h")^\k) by SEQM_3:18
          .= (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k by SEQM_3:19;
       hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
         by A65,A60,SEQ_4:21;

       lim s = Rdiff(f1,x0) by A1,A63,A64,A62,FDIFF_3:15;
       then lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k) = Ldiff(f2,f1.x0) *
       Rdiff(f1,x0 ) by A66,A65,A60,A59,SEQ_2:15;
       hence thesis by A65,A60,A66,SEQ_4:22;
      end;

      suppose
A67:   for k be Element of NAT
        ex n be Element of NAT st k <= n & (f1/*(h+c)).n = f1.x0;

defpred P[] means 1 f1.0;

A68:   for k be Element of NAT ex n be Element of NAT
          st k <= n & P[(f1/*(h+c)).n] by A67;
       consider I1 be increasing sequence of NAT such that
A69:    for n being Nat holds P[(f1:     ((c)\)(2n)=(.)by :ef 3;
ment  strbe  r  /h). 
          P[r] ex m be Element of NAT  .=h.N+n   byjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        from FDIFF_2:sch 1(A68);
       reconsider h1 = h*I1 as 0-convergent non-zero Real_Sequence
          by FDIFF_2:6;

       set c1 = c*I1;
A70:   c1 = c by VALUED_0:26;
A71:   rng c1 = {x0} by A13,VALUED_0:26;

A72:    rng h1 c= rng h by VALUED_0:21;

A73:   for n be Nat holds h1.n > 0
       proof
        let n be Nat;
         end;
        h1.n in rng h1 by FUNCT_1:3,ORDINAL1:def 12; then
        ex m be Element of NAT st h1.n = h.m by A72,FUNCT_2:113;
        hence h1.n > 0 by A15;
       end;

       reconsider c1 as constant Real_Sequence;
A74         lim t  f,.x0 by A2,AA109,:15;
        let g be Real such that
A75:    0 < g;
        reconsider n = 0 as Nat;
        take n;
        let m be Nat such that n <= m;
A76:    m in NAT by ORDINAL1:def 12;
        |.(h1"(#)(f1/*(h1+c1) - f1/*c1)).m - 0 .|
          = |.(h1").m *(f1/*(h1+c1) - f1/*c1).m.| by SEQ_1:8
         .= |.(               (f2*)*)\ )I2)m-DF|<
         .= |.(h1").m *((              byA102A115,A,S:ef7
           by A70,A76,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108
         .= |.(h1").          mbesuch
         () *f1*(+))m  .x0. :java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
         .= |.(h1").m *((f1/*(h+c)*I1).m - f1.A124:       ( h"(#)( (f2*f1)/*(h+c) - (f2*f1)/*c
             1Fjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 43
         .= |.(h1").m *(f1.x0 - f1.x0).| by A69;
        hence |.(h1"(#)(f1/*(h1+c1) - f1/*c1)).m - 0 .| < g by A75,ABSVALUE:2;
       end;

       rng ((h + c)*I1) c= rng (h + c) by VALUED_0:21;
       then rng ((h + c)*I1) c= dom f1 by A14,A10; then
:rng )= :;then
A78=(h\))*(f2/(+c^N (/^N.java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
          by A1,A71,A73,FDIFF_3:15;

Rdiff) java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 40
       h1"(#)(f1/*(h1+c1) - f1/*c1) is convergent
          by A1,A71,A77,A73,FDIFF_3:15; then
A79:   Rdiff(f1,x0) = 0 by A78,A74,SEQ_2:def 7;

       now per cases;
        suppose
         ex k be Element of             =f/(hc^N),java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 55
          for n be Element of NAT st k <= n holds (f1/*((h+c)^\N)).n = f1.x0;
         then consider k be Element of NAT such that
A80:      for            (^N =1 java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50

A81:     now let g be Real such that
A82:       0 < g;
          reconsider n = k as Nat;
          take n;
          let m be Nat;
A83:      m in NAT by ORDINAL1:def 12;
java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
A84:        n <= m;

          |. ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
               - Ldiff(f2,f1.x0)*Rdiff(f1, x0 ) .|
            = |.( ((h")^\N) (#            (f2*/c)\. = f2.f/(^N)m)
                  by A79,SEQM_3:19
           .= |.(((h")^\N) (#) ( (( byORDINAL1def,FUNCT_1:12
                  by SEQM_3:17
           .= |. ((h")^\N).m * ( ((f2*f1)/*(h+           .= |. ((h")^\N).m * ( ((f2*f1)/*(h+c:108
                  by SEQ_1:8
           .= |. ((h")^\N).m *((((f2*f1)/*(h+c))^\N).m - (((f2*f1)/*c)^\N).m).|
                  by RFUNCT_2:1
           .= |. ((h")^\N).m *(((f2*f1)/*((h+c)^\N)).m -  A124A119,,126,129,127ABSVALUE2;
                  by A14,VALUED_0:27
           .= |. ((h")^\N).m *(((f2*f1)/*((h+c)^\N)).m - ((f2*f1)/*(c^\N)).m).|
                  by A13,A11,ZFMISC_1:31,VALUED_0:27
. .()\. (f/(*(+c\).  (*)*c\)..
                  by A40,VALUED_0:31
       .= |. ((h")^\N).m * ((f2/*(f1/*((h+c)^\N))).m - (f2/*(f1/*(c^\N))).m).|
                  by A40,VALUED_0:31
       .= |. ((h")^\N).m * ( f2.((=by d 1
        by A41,FUNCT_2:108,A83
       . .()\N)m* ( .f1.)-(*f1/c\))m.java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
           by A84,A80,A83
.  ("^N.   (x0) ((f1*(c^N))m). by
A83,A41,FUNCT_2:108
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.( f1.( (c^\N).m) )).| by
       A42,FUNCT_2:108,A83
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.( f1.( c.(N+m) ))).| by
       NAT_1:def 3
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2.(f1.x0)).| by A16;
          hence
              |. ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
                   - Ldiff(f2,f1.x0)*Rdiff(f1,x0).|<g by A82,ABSVALUE:2;
         end; then
A85:      (h"(#)((f2*f1)/*(h+c) -  
            by SEQ_2:def 6;
         hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
           by SEQ_4:21;
         lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N)
           = Ldiff(f2,f1.x0)*Rdiff(f1,x0) by A85,A81,SEQ_2:def 7;
         hence lim (h"(#)((f2*f1)/*(h+        end; 
f,)by ,:;
        end;

        suppose
A86:     for          lim ( (h()(*f1(+  f2*)Njava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
          ex n be Element of NAT st k <= n & (f1/*((h+c)^\N)).n <> f1.x0;
         defpred P[object] means $1 <> f1.x0;
A87:     for k be Element of NAT
          ex n be Element of NAT st k <= n & P[(f1/*((h+c)^\N)).n] by A86;

         consider I2 be increasing sequence of NAT such that
A88endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A89:      for n be Element of NAT st for r be Real st
            r = (f1/*((h+c)^\N)).n holds P[r]
             ex m be Element of NAT st n
            = I2.m from FDIFF_2:sch 1(A87);

A90:      d^\N = (f1/*(h+c))^\N - (f1/*c)^\N by SEQM_3:17
          .= f1/*((h+c)^\N) - (f1/*c)^\N by A21,XBOOLE_1:18,VALUED_0:27
          .= f1/*((h+c)^\N) - f1/*(c^\N) by A10,A13,A11
,ZFMISC_1:31,VALUED_0:27;

         rng(c^\N) c= rng c & rng((h+c)^\N) c= rng(h+c) by VALUED_0:21; then
A91:     c^N =domf1 &rng(+)\ = A22AA14;

A92:      a^\N = f1/*(c^\N) by A10,A13,A11,ZFMISC_1:31,VALUED_0:27;

A93:      now
          given n being Nat such that
A94:       ((d^\N)*I2).n = 0;

          0 = (d^\N).(I2.n) by A94,FUNCT_2:15,ORDINAL1:def 12
           .= (f1/*((h+c)^\N)).(I2.n) - (f1/*(c^\N)).(I2.n) by A90,RFUNCT_2:1
           .= (f1/*((h+c)^\N)).(I2.n) - f1.((c^\N).(I2.n)) by A91,FUNCT_2:108
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N + I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 by A16
           .= (f1/*((h+c)^\N)*I2).n - f1.x0 by FUNCT_2:15,ORDINAL1:def 12;
          hence contradiction by A88;
         end;

         reconsider h2 = h^\N*I2 as 0-convergent non-zero
              Real_Sequence by FDIFF_2:6;
         reconsider a1 = a^\N*I2 as constant Real_Sequence;
         reconsider c2 = c^\N*I2 as constant Real_Sequence;
         set s = h2"(#)(f1/*(h2+c2) - f1/*c2);

         d^\N*I2 is subsequence of d by VALUED_0:20; then
         lim (d^\N*I2) = 0 by A37,A26,A43,SEQ_4:17;
         then reconsider d1 = d^\N*I2 as 0-convergent non-zero
         Real_Sequence by A37,A26,[.x0,x0+r0.] c= [.x0-r0,x0+r0.] by:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

         set t = d1"(#)(f2/*(d1+a1) - f2/*a1);
         a1 is subsequence of a by VALUED_0:20; then
A95:     rng a1 = {f1.x0} by A33,VALUED_0:26;
A96:     now
          let n be Element of NAT;
          thus (d^\N + a^\N).n = (d^\N).n + (a^\N)      [x0]=(.f.+.|
             .= (f1/*((h+c)^\N)).n - (a^\N).n + (a^\N).n by A90,A92,RFUNCT_2:1
             .= (f1/*((h+c)^\N)).n;
         end;

A97:     rng((f1/*(h+c))^\N) c= rng(f1/*(h+c)) by VALUED_0:21; then
A98:    rng((f1/*(h+c))^\N) c= dom f2 by A28;

         rng(a^\N) c= rng  [.-]c=.-r0]by
A99:    rng(a^\N) c= dom f2 by A34;

         d1 + a1 = (d^\N + a^\N)*I2 by RFUNCT_2:2; then
A100:     d1 + a1 = f1/*((h+c)^\N)*I2 by A96,FUNCT_2:63
           .= ((f1/*(h+c))^\N)*I2 by A21,XBOOLE_1:18,VALUED_0:27;

+c2 N+c\)I2 :
&java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 72
A101:     t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#)
                  ( ( (f1/*((h+c)^\N))*I2 -                   ( ( (f1/*((h+c)^\N))*I2 - f1
                     by A91,FUNCT_2:110
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#)
                  ( ( (f1/*((h+c)^\N))*I2 - (f1/*(c^\N)) *I2)(#)h2" )
                    by A91,FUNCT_2:110
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*((h+c)^\N))*I2 - (java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 33
                    by VALUED_1:def 10
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*(h+c))^\N*I2 - (f1/*(c^\N)) *I2)(#)h2" )
                    by A21,XBOOLE_1:18,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( (    x0+r<x+r0 &f1.-r1 = f1.   by XREAL_1610XXREAL_017 
byA13:,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 58
          .= ((f2/*(d1+a1) -A7:.0x0r]c [x0r1f..|f1 A5
                  ( ( ((f1/*(h+c))^\N - (f1/*c)^\N)*I2)(#)h2" )
                    by RFUNCT_2:2
          .= ((f2/*(d1+a1) -       indom&x  ..r1.  A7:java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1    end; 
          .=(2/((1/(+))^\)I2) -f2/*)()h2  SEQ_137
          .= ((f2 /* ((f1/*(h+c))^\N)) * I2 - f2/*a1  ) (#) h2"
                   by A98,FUNCT_2:110
          .= (f2/*(f1/*(h+c))^\N*I2 - f2/*a1) (#) h2"  by A28,java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 36
    )^N*2-f2/a1)() 2"byA14,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\N*I2 - (f2/*(a^\N))*I2) (#) h2"
                     by A99,FUNCT_2:110
          .= (((f2*f1)/*(h+c))^\N*I2 - ( (f2/*a)^\N )*I2) (#) h2"
                       by A33,A12,ZFMISC_1:31,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\N*I2 - ( ((f2*f1)/*c)^\N )*I2) (#) h2"
                        A13A11,31,31
          .= (( ((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ) *I2) (#) h2"
                       by RFUNCT_2:2
          .= (( ((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N )      assume that
                   (((h^\N)")*I2) by RFUNCT_2:5
. (\)()(f2/hc)\-(f1/^N)*java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
                       by RFUNCT_2:2;

         rng (((f1/*(h+c))^\N)*I2) c= rng ((f1/*(h+c))^\N) by VALUED_0:java.lang.StringIndexOutOfBoundsException: Range [0, 73) out of bounds for length 19
         java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
A102:     rng (d1 + a1) c= dom f2 by A97,A28,A100;
         ((h+c)^\N)*I2 is subsequence of (h+c) by VALUED_0:20; then
         rng (((h + c)^\N)*I2) c= rng (h + c) by VALUED_0:21; then
rng(h+c)^N*I2)c dom by A14,A10; then
         rng ((h^\N + c^\N)*I2) c= dom f1 by SEQM_3:15; then
A103:     = (+.n  FUNCT_2113java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

         h2 is subsequence of h by VALUED_0:20; then
A104:    rng h2 c= rng h by VALUED_0:21;

at h2. >0
         proof
          let n be Nat;
          dom h2 = NAT by FUNCT_2:def 1; then
          h2.n in rng h2 by FUNCT_1:3,ORDINAL1:def 12; then
 Elementof NAT st  =.by,:;
          hence h2.n > 0 by A15;
         end;

         c2 is subsequence of c by VALUED_0:20; then
A106:     rng c2 = {x0} by A13,VALUED_0:26; then
A107:     lim s = Rdiff(f1,x0) by A1,A103,A105,FDIFF_3:15;

A108:     for n be Nat holds d1.n < 0
         proof
          let n be Nat;

          n in NAT by ORDINAL1:def 12; then
A109:      n in dom I2 by FUNCT_2:def 1; then
A110:      (f1/*((h+c)^\N)*I2).n
            = (f1/*((h+c)^\N)).(I2.n) by FUNCT_1:13
           .= f1.(((h+c)^\N).(I2.n)) by A42,FUNCT_2:108;

A111:      d1.n = (f1/*((h+c)^\N) - f1/*(c^\N)).(I2.n) by A90,A109,FUNCT_1:13
           .= (f1/*((h+c)^\N)).(I2.n) - (f1/*(c^\N)).(I2.n) by RFUNCT_2:1
           .= (f1/*((h+c)^\N)).(I2.n) - f1.((c^\N).(I2.n)) by A42,FUNCT_2:108
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N+I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 by A16
           .= f1.(((h+c)^\N).(I2.n)) - f1.x0 by A42,FUNCT_2:108;

A112:      ((h+c)^\N).(I2.n) = (h+c).(N+I2.n) by NAT_1:def 3; then
A113:      ((h+c)^\N).(I2.n) A31:a.  rng VALUED_0:28java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
           .= h.(N+I2.n) + x0 by A16;

A114:      |. ((h+c)^\N).(I2.n) - x0 .| < r by A112,A24,A38,NAT_1:12;

          h.(N+I2.n) > 0 by java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 27
          h.(N+I2.n) < r by A114,A113,ABSVALUE:def 1; then
          x0 < ((h+c)^\N).(I2.n) & ((h+c)^\N).(I2.n) < x0+r
            by A113,A15,XREAL_1:8,29; then
          ((h+c)^;
          f1.(((h+c)^\N).(I2.n)) in [. f1.x0-r1, f1.x0 .]
            by A7,FUNCT_1:54; then
          f1.x0 >= f1.(((h+c)^\N).(I2.n)) by XXREAL_1:1; then
          .x0> f1.(hc)^\N.(I2))byA88,110XXREAL_0:1;
          hence d1.n < 0 by A111,XREAL_1:49;
         end;

         Rdiff(f1,x0) = Rdiff(f1,x0); then
A115:     s is convergent by A1,A106,A103,A105,FDIFF_3:15;
         Ldiff(f2,f1.x0) = Ldiff(f2,f1.x0); then
A116:     t is convergent by A2,A95,A102,A108,FDIFF_3:9;

         lim t = Ldiff(f2,f1.x0) by A2,A95,A102,A108,FDIFF_3:9; then
A117:     lim (((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ))*I2)
           = Ldiff(f2,f1.x0) *      dom(f2*f1) c= dom f1 by RELAT_1f2f1)c  f1RELAT_125;

A118:     now
difff.  Rdiff,x0;
          let g be Real such that
A119:       0 < g;
          k  suchthat
for java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 43
            |.(((h^\N)"(#)(((f2*f1)/*(h+c))^\N
              - ((f2*f1)/*c)^\N ))*I2).m - DF.|<g
              by A101,A115,A116,A117,A119,SEQ_2:def 7;
A121:      k in NAT by ORDINAL1:def 12;
          reconsider n = I2.k as Nat;
          take n;
          let m be Nat such that
A122:       n <= m;
A123:      m in NAT by ORDINAL1:def 12;

A124:       ( h"(#)( (f2*f1)/*(h+c) - (f2*f1)/*c ) )^\N
           = ((h")^\N)(#)(( (f2*f1)/*(h+c) - (f2*f1)/*c )^\N) by SEQM_3:19
          .= (h^\N)"(#)(( (f2*f1)/*(h+c) - (f2*f1)/*c )^\N) by SEQM_3:18
          .= (h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N) by SEQM_3:17;

          now per cases;
           suppose
A125:        (f1/*((h+c)^\N)).m = f1.x0;

A126:        ((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N)).m
             = ((h^\N)").m * (((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N).m
             by SEQ_1:8;


             = (((f2*     proof

                  suppose
            dom(f1*((h+c)^\N)) = NAT by A91,RELAT_1:27; then
            dom(f1/*((h+c)^\N)) = NAT by A91,FUNCT_2:def 11; then
A128:        dom(f2*(f1/*((h+c)^\N))) = NAT by A41,RELAT_1:27;

            ((f2*f1)/*(h+c))^\N
              = (f2*f1)/*((h+c)^\N) by A14,VALUED_0:27
             .= f2/*(f1/*((h+c)^\N)) by A40,VALUED_0:31
             .= f2*(f1/*((h+c)^\N)) by A41,FUNCT_2:def 11; then
A129:        (((f2*f1)/*(h+c))^\N).m
             = f2.(f1.x0) by A125,A128,FUNCT_1:12,ORDINAL1:def 12;

            dom(c^\N) = java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
            (*c\)=NATby A91RELAT_127;then
            dom(f1/*(c^\N)) = NAT by A91,FUNCT_2:def 11; then
A130:        dom(f2*(f1/*(c^\N))) = NAT by A41,RELAT_1:27;

            ((f2*f1)/*c)^\N = (f2*f1)/*(c^\N) by A13,A11
ZFMISC_1:,:
             . f2*(/*(^N)by A40,ALUED_0:1
             .= f2*(f1/*(c^\N)) by A41,FUNCT_2:def 11; then
            (((f2*f1)/*c)^\N).m = f2.((f1/*(c^\N)).m)
              by ORDINAL1:def 12,A130,FUNCT_1:12
             .= f2.(f1.((c^\N).m)) by A123,A91,FUNCT_2:108
             .= f2.(f1.(c.(N+m))) by NAT_1:def 3
             .= f2.(f1.x0) by A16;
            hence
              |.((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m - DF       lim(d^k =  by A37java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 46
     A124,119,79A126,,2;
           end;
           suppose
            (f1/*((h+c)^\N)).m <> f1.x0; then
            for r1 be Real holds (f1/*((h+c)^\N)).m = r1 implies r1<>f1.x0;
            then
            consider  beElement such 
A131:         m = I2.l by A89,A123;

  : ;
            
            |.(((h^\
              - ((f2*f1)/*c)^\N ))*I2).l - DF.| < g by A120;
            hence |.(( notations TARSKI,|..kn)+(+  x0.<java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
              by A124,A131,FUNCT_2:15;
           end;
          end;
          hence
              |.((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
                - Ldiff x0  h.kn  (+)(n  +rA53XREAL_18,;
         end; then
A132:     (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N is convergent by
           SEQ_2:def 6;
         hence          >by
         lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N)
            = Ldiff(f2,f1.x0)*Rdiff(f1,x0) by A118,A132,SEQ_2:def 7;
/*(hc -(*f1)*c)) =Ldiff(f2f1x0*
            Rdiff(f1            
        1+ a1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
       end;
       hence thesis;
      end;
     end;
     hence thesis;
    end;
      ,,DIFF_3:
end          .=((f2/*(d1a1 - f2/*a1)"d1)(# ((1/*(h+c))\k -(f1/*c)\k)

theorem Th46:
 x0 beReal f1,2bePartFunc of REAL,REAL st
 f1 end;
   for r1  Real  r1>  r0 beReal str0 > 0&
    [.x0-r0,x0.] c= dom([.f1.x0-r1,f1.x0.]|`f1)) holds
  f2*f1 is_left_differentiable_in   attr A is stabilizing means
  Ldiff(*f1,x0)=Ldiff(f2.x0)*diff(x0
proof
    x0 be Real,f1f2be  ofREAL,REAL;
     that
A1:  f1  it is stable  ex n being Element of NATst it = ollowing(s);
A2:f2is_left_differentiable_in f1. and
A3: for r1 be Real st r1 > 0 ex r0 be Real st r0>0 &
      [.x0-r0,x0.] c= dom([.f1.x0-r1,f1.x0.]|`f1);

    consider r1 be Real such that
A4:        thesis  A2,,A7,CIRCCMB2:4;

    consider r0A1: s  stabilizing;
A5: r0>0 &
[-0, = om([f1x0-r1,1x0.|f1 by,A4;

    set r = min(r0,r1);
A6: r >   Ajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    x0-java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
    [.x0-r,x0.] let  -empty A68:   for k be Element of N  NAT
      byXXREAL_134;then
A7:[.x0-r,x0.] c= dom([.f1.x0-r1,f1.x0.]|`f1) by A5;

A8:now letfor ElementNAT r  str  (/h+). holds
          [r]ex be  of NAT st n=I1.
      in dom f1  . in [f1.-,f1.x0.]byA7,:54java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
     hence x in dom(f2*f1) by A4,FUNCT_1:11;
    end; then
A9:[.x0-r,x0.] c= dom(f2*f1);

A10: dom(f2*f1) c= dom f1 by RELAT_1:25;

    x0-r < x0 by A6,XREAL_1:44; then
A11: x0 in dom(f2*f1) by A8,XXREAL_1:1; then
A12: f1.x0 in dom f2 by FUNCT_1:11;

    for h,c st rng c = {x0} & rng (h + c) c= dom (f2*f1) &
     (for n be Nat holds h.n < 0) holds
     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
   & lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Ldiff(f2,f1.x0exm  ofNATh1n=hmby ,UNCT_2113java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    proof
     let h,c;
     assume that
A13:   rng c = {x0} and
A14:   rng (h + c) c= dom (f2*f1) and
A15:   for n be Nat holds h.n < 0;

A16:  for n be Nat holds c.n = x0
     proof
tn  be ;
  rngc VALUED_028
hencec.=x0 by ,ARSKId 1;
     end         = |(h1").m *((f1/*(h1+c1)).m - f1.(c.m)).|

A17: now let x be Real;
      assume A18: x in rng(h+c); then
       n be Element ofNAT  that
A19    x  (+)n by :113;
      dom(h+c) = NAT by FUNCT_2:def 1; then
      x = h.n + c.n by A19,VALUED_1:def 1; then
      x = h.n + x0 by A16             by A21,:18FUNCT_2:110
      x < x0 by A15,XREAL_1:30; then
      x in ].-infty,x0.[ by XXREAL_1:        hence |.(h1(#f*h1+  f1c1).  0.  gby A75A:;
A20:   x in left_open_halfline x0 by PROB_1:def 10;
      x in dom f1 by A18,A14,FUNCT_1:11;
      hence x in left_open_halfline x0 /\ dom f1 by A20,XBOOLE_0:def 4;
     end; then
A21:  rng (h + c) c= left_open_halfline x0 /\ dom f1;

     set a = f1/*c;

A22:  rng c c= dom (f2*f1) by A13,A11,ZFMISC_1:31;

     set d = f1/*(h+c) - f1/*c;

A23: lim h = 0;

lim  .0by :25 then
lim   by A16;
 by A1,A71A73,:15;
A25:
A26:A26:   Rdiff,x0 = Rdiff(f1x0);then

A27: f1.x0 = lim (f1/*(h+c)) by A21,A24,A25,FDIFF_3:def 1;
A28: rng (f1/*(h+c)) c= dom          by A1,71,A77,A73,DIFF_3:15; then

     now let x be Real;
      assume x in rng a; then
      consider n be Element of NAT such that
A29:   a.n = x by FUNCT_2:          k  NAT st
.   A16java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
      then x = f1.x0 by A29,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108;
      hence x in {f1.x0} by TARSKI:def 1;
     end; then
A30: rng a c= {f1.x0};

     now let x be Real;
A31:  a.0 inlet  be ;
      assume x in {f1.x0}; then
A32:  x = f1.x0 by  assume
      c.0 =x0by A16
      hence x in rng a by A32,A31,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108;
     ;then
     {f1.x0                Ldiff(2,1.x0)R(1,x0  |
A33: rng a = { f1.x0 } by A30,XBOOLE_0:def 10; then
34:  being empty S    A n  of NAT

A35: now
      let n be Nat;
      a.n in rng a by VALUED_0:28;
      then
A36:  a.n = f1.x0 by A30,TARSKI:def 1;
      a.(n+1) in rng a by VALUED_0:28;
      hence a.n = a.(n+1) by A30,A36,TARSKI:def 1;
     end;
     then
A37: a is constant by VALUED_0:25;

 be Nat such that
:   formbe Nat   < mholds |. hc.m - lim (h+c).|<r
       by  for Sbeingnonvoid -likenon emptyManySortedSign for A

: rng((hc^\N)c rng(h+)&rngc\N)c rng c by NAT_1:5; then
40  rng(h+c^\) c dom(f2*f1)& ngc\N)c dom(f2*f1)byA14,22;then
A41:    st  S1 misses InnerVerticesS2&InputVertices S2 misses

    f*) domf1 by :25; then
A42:  rng((h+c)^\N) c= dom f1 & rng(c^\N) c= dom f1 by A39,A14,A22;

     reconsider a as constant Real_Sequence by A35,VALUED_0:25;
     a.0 in rng a by VALUED_0:28; then
     a.0 = f1.x0 by A30,TARSKI:def 1; then
     lim a = f1.x0 by SEQ_4:25; then
A43: lim d = f1.x0 - f1.x0 by A26,A27,SEQ_2:12 .= 0;

     h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent &
     lim (h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c)) = Ldiff(f2,f1.x0)*Ldiff(f1,x0)
     proof
      per casesjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      
       ex k be Element of NAT st for                  by A40A4 A=A1 + A2;
        st k <= n holds (f1/*(h+c)).n <>let  beState of A2;
        s2is 
:    fornbe Element  NAT st k1 <=nholds (f1/*(h+c)).n <> f1.x0;
k=max(,)asElement ofNATby ORDINAL1def12;
:    < &N< k by XXREAL_0:25;
A46:    now
        given n being Nat such that
A47:     (d^\k).n = 0;
A48:    k+n is Element 
        0 = d.(k+n) by A47,NAT_1:def 3
         .= (f1/*(h+c)).(k+n) - (f1/*c).(k+n) by RFUNCT_2:1
         .= (f1/*(h+c)).(k+n) - f1.(c.(k+n))
           by A48,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108
         .= (f1/*(h+c)).(n+k) - f1.x0 by A16;
        hence contradiction by A44,A45,NAT_1:12;
                           Ldiff(2f1x0*(,0)|g by ,:java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72

       set c1 = c^\k;
       set h1 = h^\k;
       set a1 =         hence h(#)f2*)*h) -(f2*f1/)is
       set s = h1"(#)(f1/*(h1 + c1) - f1/*c1);
         lim (h()(2f1)*h+)-(*f1)*)^N
        let n be Element of NAT;
        ( +a)n= .n  a.n by SEQ_1:7 then
da.  f/(+c))n-.  .n:;
        hence (d + a).n = (f1/*(h+c)).n;
       end;

       lim (d^\k) = 0 by A37,A26,A43,SEQ_4:20; then
       reconsider d1 = d^\k as 0-convergent non-zero Real_Sequence
          by A37,A26,A46,SEQ_1:5,FDIFF_1:def 1;

A50:    for n being Nat holds d1.n < 0
       proof
        let n be Nat;
 byFUNCT_2:ef1;

A52:    d1.n = d.(k+n) by NAT_1:def 3
         .= (f1/*(h+c)).(n+k) - (f1/*c).(n+k) by RFUNCT_2:1
         .= (f1/*(h+c)).(n+k) - f1.(c.(n+k))
           by A10,A13,A11,ZFMISC_1:31,FUNCT_2:108
         .. (+c)N)  f1(^N  A10,A13Ajava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
         .= f1.((java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        (h+c).(k+n) = h.(k+n)+c.(k+n)
,: 12VALUED_1def1 then
A53:    (h+c).(k+n) = h.(k+n)+x0 by A16

|(+c).k) -lim(+).| r ,NAT_1;then
        |. h.(k+n) + A94:       (^N*2. =;
          by A24,A51,ORDINAL1:def 12,VALUED_1:def 1; then
        |. h.(k+n) + x0 - x0 .| < r by A16; then
        -h.(k+n) < r by A15,ABSVALUE:def 1; then
        --h.(k+n) > -r by XREAL_1:24; then
        x0-r < (h+c).(k+n) & (h+c).(k+n) < x0 by A53,A15,XREAL_1:8,30; then
        (h+c).(k+n) in [.x0-r,x0.] by XXREAL_1:1; then
        f1.((h+c).(k+n)) in [.f1.x0-r1,f1.x0.] by A7,FUNCT_1:54; then
A54:    f1.x0 >= f1.((h+c).(k+n)) by XXREAL_1:1;
        0 <> d1.n by A46;
        hence d1.n < 0 by A54,A52,XREAL_1:47;


       set t = d1"(#)(f2/*(d1 + a1) - f2/*a1);

       d1 + a1 = (d + a)^\k by SEQM_3:15; then
A55:   d1 + a1 = (f1/*(h+c))^\k by A49,FUNCT_2:63;

       rng ((f1/*(h+c))^\k) c= rng (f1/*(h+c)) by VALUED_0:21; then
A56:   rng (d1 + a1) c= dom         reconsider h2  h^NI2as 0-onvergent non-ero

A57:   rng a1 = {f1.x0} by A33,java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 0
A58:   lim t = Ldiff(f2,f1.x0) by A2,A50,A56,FDIFF_3:9;

       Ldiff(f2,f1.x0) = Ldiff(f2,f1.x0);           n Element ofNAT;
:  A2A57,A56,50,:java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
       rng ((h + c)^\k) c= rng (h + c) by VALUED_0:21; then
       rng ((h + c)^\k) c= left_open_halfline x0 /\ dom f1 by A17; then
A60:   rng (h1 + c1) c= left_open_halfline x0 /\ dom f1 by SEQM_3:15;

       left_open_halfline x0 /\ dom f1 c= dom f1 by XBOOLE_1:17; then
A61:   rng (h1+c1) c= dom f1 by A60;
A62:   rng c1 = {x0} by A13,VALUED_0:26;

A63:   for n be Nat holds h1.n < 0
       proof
        let n be Nat;
        h1n=h(+n  NAT_1:ef ;
        hence A91,:110
       end;

       Ldiff(f1,x0) = Ldiff(f1,x0); then
A64:   s is convergent by A1,A62,A63,A61,FDIFF_3:9;

A65:   t(#)s = d1"(#)(f2/*(d1+a1) - f2/*a1) (#) ((f1/*((h+c)^\k) - f1/*
       )(h1"  SEQM_3:15
          =d1"(#)(2/*(d1+a1) - f2/*) # (f1/(h+)\  f1*))
        h1") by A21,XBOOLE_1:18,VALUED_0:27
          .= d1"(#)(f2/*(d1+a1) - f2/*a1) (#) (((f1/*(h+c))^                  (((f1/*h+c)^\*I2 - (1*c)\N *I2)#)h2")
        (#)h1") by A10,A13,A11,ZFMISC_1:31,VALUED_0:27
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (((f1/*(h+c))^\k - (f1/*c)^\k)
()")by10
          .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h1") by SEQM_3:17
          .          . (2*f1/*(+c)^\N*I2  f2/a1 #) h2"  byA28,ALUED_0:27
          .= (f2/*(d1+a1)          .= (f2/*(d1+a1) c)^NI2 -f2*1)()h2 by A14,VALUED_031
          .= ((f2/*(f1/*(h+c)))^\k - f2/*a1) (#) h1" by A28,A55,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - f2/*a1) (#) h1" by A14,VALUED_0:31
          .= (((f2*f1)/*(h+c))^\k - ((f2/*a)^\k)) (#) h1"
              by A33,A12,ZFMISC_1:31,VALUED_0:27
          .= (((f2*f1)/*(h+c))^\k - (((f2*f1)/*c)^\k)) (#) h1"
              by A13,A11,ZFMISC_1:31,VALUED_0:31
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) h1" by SEQM_3:17
          .= (((f2*f1)/*(h+c) - (f2*f1)/*c)^\k) (#) ((h")^\k                       by RFUNCT_2:2
          .= (h"(#)((f2*f1)/*(h+c) - (f2*          .= (( ((f2*f1)/*(h+c))^\N - ((f2*)/*c)\N )*2 #)
       hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
         by A64,A59,SEQ_4:21;

       lim s = Ldiff(f1,x0) by A1,A62,A63,A61,FDIFF_3:9;
       then lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\k) = Ldiff(f2,f1.x0) *
       Ldiff(f1,x0 ) by A65,A64,A59,A58,SEQ_2:15;
       hence thesis by A64,A59,A65,SEQ_4:22;
      end;

      suppose                       byRFUNCT_2:;
A66:   for k be Element of NAT
         n be ElementofNAT stk< n& (f1/(+c).n  f1.x0java.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65

         (h+)^\N)*I2 issubsequence of(+c) by VALUED_0:20;then

A67:   for   rng (( +c)\)*)c= dom by A14,10;
            [f1/h+).n by A66;
 be  f such
A68
        for n be Element of NAT st for r be Real st r = (f1/*(h+c)).n holds
          P[r] ex m be Element of NAT st n = I1.m
        from FDIFF_2:sch 1(A67);
       reconsider h1 = h*I1 as 0-convergent non-zero Real_Sequence
          by FDIFF_2:6;

       set c1 = c*I1;
A69:   c1 = c by VALUED_0:26;
A70           mbeElement NAT st h2.  .m  A104,UNCT_21;

A71:    rng h1 c= rng h by VALUED_0:21;

:fornbe  holds h1.  0
       
        let n be Nat;
        dom h1 = NAT by FUNCT_2:def 1; then
        h1.n in rng h1 by FUNCT_1:3,ORDINAL1:def 12; then
          be  of sth1 =h by ,UNCT_2:113;
        hence h1.n < 0 by A15;
       end;

       reconsider c1 as constant Real_Sequence;
A73:   now
        let g be Real such that
A74:    0 < g;
        reconsider n = 0 as Nat;
        take n;
        let m be Nat such that n <= m;
A75:    m in NAT by ORDINAL1:def 12;ike non empty ManySortedSign
 beingnonempty of st A1tolerates for being -empty
=.   stabilizing
         
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.(c.m)).|
           by A69,A75,A10,A13,A11,ZFMISC_1:31,FUNCT_2:108
         .= |.(h1").m *((f1/*(h1+c1)).m - f1.x0).| by A16
         .= |.(h1").m *((f1/*((h+c)*I1)).m - f1.x0).| by RFUNCT_2:2
         .= |.(h1").m *((f1/*(h+c)*I1).m - f1.x0  hence  thesis;
             by X:18,FUNCT_2:110
     . .(1".*(f1. -f1.x0). by A68
        hence |.(h1"(#)(f1/*(h1+c1) - f1/*c1)).m - 0 .| < g by A74,ABSVALUE:2;
       end;

       rng ((h + c)*I1) c= rng (h + c) by VALUED_0:21; then
       rng ((h + c)*I1) c= dom f1 by A14,A10; then
A76:   rng (h1 + c1) c= dom f1 by RFUNCT_2:2; then
A77:   lim (h1"(#)(f1/*(h1+c1) - f1/*c1)) = Ldiff(f1,x0)
          by A1,A70,A72,FDIFF_3:9;

       Ldiff(f1,x0) = Ldiff(f1,x0); then
       h1"(#)(f1/*A12: n= st1+m by NAT_1:10;
          by A1,A70,A76,A72      m NAT :def 12;
A78:   Ldiff:3

       now per cases;

        beof NAT
                     =(f1x0 *Rdiff(1,0  A101,A115,A107,A116,SEQ_215;
         then consider k be Element of NAT such that
A79:      for n be Element of NAT st k <= n holds (f1/*((h+c)^\N)).n = f1.x0;

A80:     now let g be Real  letg be  such
A81:       0 < g;
          reconsider n = k as Nat;
          take n;
          let m be Nat;
A82:      m in NAT by ORDINAL1:def 12;
          assume
A83:        n <= m;

          |. ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
               - Ldiff(f2,f1.x0)*Ldiff(f1, x0 ) .|
            = |.( ((h")^\N) (#) (((f2*f1)/*(h+c) - (f2*f1)/*c)^\N) ).m .|
                  by A78,SEQM_3:19
           .= |.(((h")^\N) (#) ( ((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N )).m.|
                  by SEQM_3:17
           .= n;
                  by SEQ_1:8
           .= |. ((h")^\N).m *((((f2*f1)/*(h+c))^\N).m - (((f2*f1)/*c)^\N).m).|
                  by RFUNCT_2:1
           .= |. ((h")^\N).m *(((f2*f1)/*((h+c)^\N)).m - (((f2*f1)/*c)^\N).m).|
                  by A14,VALUED_0:27
.=| (")\).m*(((2*f1)/*((+)\N)).m - ((f2*f1)/*(c^\N)).)|
A5  =Followings -imes1| carrierof is
. .(()\Nm (/(/*(c)^N). - ((f2*)/(c^\)).)|
                  by A40,VALUED_0:31
       .= |. ((h")^\N).m * ((f2/*(f1/*((h+c)^\N))).m - (f2/*(f1/*(c^\N))).m).|
                  by A40,VALUED_0:31
       .= |. ((h")^\N).m * ( f2.((f1/*((h+c)^\N)).m) - (f2/*(f1/*(c^\N))).m).|
        by A41,FUNCT_2:108,A82
       .= |. ((h")^\N).m * A126        (^\)(#)((f2*/(+)\N-(f2f1)/c)\)
            A82
       .= |. ((h")^\N).m * ( f2.(f1.x0) - f2             by :8;
A82,A41,FUNCT_2:108
..("^\.m  ( f2.f1.) -(f1((^N.m) ).|by
FUNCT_2:08A82
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 56
reconsider  of CIRCUIT1;
            /h)N) ATby,FUNCT_2def;
          hence
              |. ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N).m
                   -            (assumejava.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 22
;
:      h()(f2f1)*(forbeing object holds inxx2,x4}ff
            bySEQ_2def;
         hence h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c) is convergent
           by SEQ_4:21;
         lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N)
           = Ldiff(f2,f1.x0)*Ldiff(f1,x0) by A80,A84,SEQ_2:def 7;
         hence lim (h"(#):dom*f1/*c\))= NAT  A41RELAT_127
            Ldiff(f1,x0) by A84,SEQ_4:22;
        end;

        suppose
A85:     for k be Element of NAT
ex beElement of NAT st k < n &(f1/(hc)^N).n <>f1.0;

defpred Pobject]means $1 >f1.;
java.lang.StringIndexOutOfBoundsException: Range [25, 3) out of bounds for length 32
          exthesisbyFUNCT_1 ;
            byfor  beingobjectholdsyin{,x2,3x, 

         consider       suppose
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
  n               A13113A121 java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
            r = (f1/*((h+c)^\N)).n holds P[r]
             ex m be Element of NAT st n
            = I2.m from FDIFF_2:sch 1(A86);

A89:      d^\N = (f1/*(h          ;
          .= f1/*((h+c)^\N) - (f1/*c)^\N by A21,XBOOLE_1:18,VALUED_0:27
          .= f1/*((h+c)^\N) - f1/*(c^\N) by A10,A13,A11
,ZFMISC_1:31,VALUED_0:27;

         rng(c^\N) c= rng c & rng((h+c)^\N) c= rng(h+c) by VALUED_0:21; then
A90:      rng(c^\N) c= dom f1 & rng((h+c)^\N) c= dom f1 by A22,A10,A14;

A91:      a^\N = f1/*(c^\N) by A10,A13,A11,ZFMISC_1:31,VALUED_0:27;

A92:      now
          given n being Nat such that
A93:       ((d^\N)*I2).n = 0;

NIn A93FUNCT_215ORDINAL1: 12
:ef7:
           .= (f1end
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N + I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 by A16
           .= (f1/*((h+c)^\N)*I2).n - f1.x0 by FUNCT_2:15,ORDINAL1:def 12;
          hence contradiction by A87;
         end;

         reconsider h2 = h^\N*I2 as 0-convergent non-zero
              Real_Sequence by FDIFF_2:6;
         reconsider a1 = a^\N*I2 as constant Real_Sequence;
         reconsider c2 = c^\N*I2 as constant Real_Sequence;
         set s = h2"(#)(f1/*(h2+c2) - f1/*c2);

         d^\N*I2 is subsequence of d by VALUED_0:20; then
         lim (d^end;
         reconsider         
           by A37,A26,SEQ_4:6A92,SEQ_1:5,DIFF_1:ef;

         set t = d1"(#)(f2/*(d1+a1) - f2/*a1);
         a1 is subsequence of a by VALUED_0:20; then
A94:     rng a1 = {f1.x0} by A33,VALUED_0:26;
A95:     now
          etbeElement of NAT;
    ManySortedSign;
             .= (f1/*(    be non  set,n   fNAT FinSeqLen n,f
          hence (djava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
         end    be-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

A96    X f2java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 38
*hc)\N)c dom f2 by A28;

java.lang.StringIndexOutOfBoundsException: Range [42, 9) out of bounds for length 48
A98:    rng(a^\N

         A2: f2is_left_differentiable_in f1. and
:+f1*+c^NI2 by,UNCT_2:63
           .      .x0-r0,x0. =[p,f] in {[p,f]} by TARSKI 

A100:      h2+c2 = (h^\N + c^\N)*I2 by RFUNCT_2:2
          .= (h+c)^\N * I2 by SEQM_3:15;

:()s="*)(java.lang.NullPointerException
                  ( ( (f1/*(  end
                     by A90,A100,FUNCT_2:110
              . d1"#)(f2/*d1a1  f2/*a1)(java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
                  ( ( (f1/*((h+c)^\N))*I2 - (f1/*(c^\N) *I2)#)")
                    by A90,FUNCT_2:110
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
  ( f*((+c^\)* -(/*c\) I2)(#)"java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                    by VALUED_1A1:S=1GateCircStrpf by ;
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  ( ( (f1/*(h+c))^\N*I2 - (f1/*(c^\N)) *I2)(#)h2" )
                    by A21,XBOOLE_1:18,VALUED_0:27
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                      x0-<x0  A6,REAL_1:4; then
                    by A10,A13,A11,ZFMISC_1:31,VALUED_0:27
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#)
                  (((f1*h)^N- (1/c^N*)(#h2 java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
                    by RFUNCT_2:2
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(#)h2") by SEQM_3:17
              .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) d1(#)h2" by SEQ_1:14
              .= (f2/*(((f1/*(h+c))^\N)*I2) - f2/*a1) (#) h2" by A99,SEQ_1:37
              .= (   (f2 /* ((f1/*(h+c))^\N)) * I2 - f2/*a1  ) (#) h2"
                   by A97,FUNCT_2:110
              .= (   (f2/*(f1/*(h+c)))^\N * I2 - f2/*a1  ) (#) h2"
                   by A28,VALUED_0:27
              .= (((f2*f1)/*(h+c))^\N*I2 - f2/*a1) (#) h2" by A14,VALUED_0:31
              .= (((f2*f1)/A13:rng   {x0 
                     byA98,UNCT_2:110
              .= (((f2*f1)/*(h+              .= (((f2*f1)/*(h+c;
                       by A33,A12,ZFMISC_1:31,VALUED_0:27
              .= (((f2*f1)/*(h+c))^\N*I2 - ( ((f2*f1)/*c)^\N )*I2) (#) h2"
by A13,A11,ZFMISC_1:,VALUED_0:31
              .= (( ((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ) *I2) (#) h2"
                       by RFUNCT_2:2
              .= (( ((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ) *I2) (#      c.  rng   VALUED_0:28;
                   (((h^\N)")*I2)
                       by RFUNCT_2:5
              .= ((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N ))*I2
                       by RFUNCT_2:2;

*(h))^\N)*2) =rng ((1/hc)\)byVALUED_0:21; then
A102:     rng (d1 + a1) c= dom f2 by A96,A28,A99;
         ((h+c)^\N)*I2 is subsequence of (h+c) by VALUED_0:20; then
         rng (((h + c)^\N)*I2) c= rng (h + c) by VALUED_0:21; then
         rng (((h + c)^\N)*I2) c= dom f1 by A14,A10; then
         rng ((h^\N + c^\N)*I2) c= dom f1 by SEQM_3:15; then
A103:     rng (h2 + c2) c= dom f1 by RFUNCT_2:2;

         h2 is subsequence of h by VALUED_0:20; then
     c h VALUED_0:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

A105:     for n be Nat holds h2.n < 0
         
          let n be Nat;
          dom h2 =NAT by FUNCT_2:ef 1;then
          
          ex m be           =f1/(h+c)-f1/cjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
          hence h2.n < 0 by A15;
         end;

         c2 is subsequence of c by VALUED_0:20; then
A106:     rng c2 = {x0} by A13,VALUED_0:26; then
A107:     lim s = Ldiff(f1,x0) by A1,A103,A105,FDIFF_3:9;

A108:     for n be Nat holds d1.n < 0
         proof
l n Nat;

          n in NAT by ORDINAL1:def 12; then
A109:      n in dom I2     now letx Real;
A110:      (f1/*((h+c)^\N)*I2).n
            = (f1/*((h+c)^\N)).(I2.n) by FUNCT_1:13
           .= f1.(((h+c)^\N).(I2.n)) by A42,FUNCT_2:108;

d1n f1/(hc^N  f1/*(^\N)).(I2.)byA89,109FUNCT_1:13
           .= (f1/*((h+c)^\N      hence ina A32A31,A13A11,FMISC_1:,:java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
           .= (f1/*((h+c)^\N)).(I2.n) - f1.((c^\N).(I2.n)) by A42,FUNCT_2:108
           .= (f1/*((h+c)^\N)).(I2.n) - f1.(c.(N+I2.n)) by NAT_1:def 3
           .= (f1/*((h+c)^\N)).(I2.n) - f1.x0 by A16
           .= f1.(((h+c)^\N).(I2.n)) - f1.x0 by A42,FUNCT_2:108;

A112:      ((h+c)^\N).(I2.n) = (h+c).(N      then
A113:      ((h+c)^\N).(I2.n) = h.(N+I2.n) + c.(N+I2.n) by SEQ_1:7
           .= h.(N+I2.n) + x0 by A16;

          |. ((h+c)^\N).(I2.n) - x0 .| < r by A112,A24,A38,NAT_1:12; then
          -h.(N+I2.n) < r by A15,A113,ABSVALUE:def 1; then
          --h.(N+I2.n) > -r by XREAL_1:24; then
          A38:   for m  = m| hc)m  (+).  java.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65
            by A113,A15,XREAL_1:8,30; then
          ((h+c)^\N).(I2.n) in [. x0-r,x0 .] by XXREAL_1:1; then
          f1.(((h+c)^\N).(I2.n)) in [. f1.x0-r1, f1.x0 .]
            by A7,FUNCT_1:54; then
          f1.x0 >= f1.(((h+c)^\N).(I2.n)) by XXREAL_1:1; then
          f1.x0 > f1.(((h+c)^\N).(I2.n)) by A87,A110,XXREAL_0:1;
          hence d1.n < 0 by A111,XREAL_1:49;
         end;

         Ldiff(f1,x0) = Ldiff(f1,x0);
then
A114:     s is convergent by A1,A106,A103,A105,FDIFF_3:9;
         Ldiff(f2,f1.x0) = Ldiff(f2,f1.x0);
                then
A115:     t is convergent:   

           (f2f1)byA2A94A102,108,DIFF_3:;
         then
A116:     lim (((h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N )         .=(GateCircuit(,f1)by Def7
 f2,.  (A114,java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 76

A117:     now
          set DF = Ldiff(f2,f1.x0) lets Stateof1GateCircuitp,f;
          let g be Real suchjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 30
A118:       <g
          ofn,fbeingof -XX  S= 1, &
A119:for mbeing  stk =m olds
"#)((f2*f1)*hc))^N
- (f1)*)^N))I2)m-DF|<
              by A101,A114,A115,A116,A118,SEQ_2:deftake ;
A120:      k in NAT by ORDINAL1:def 12;
          reconsider   k  ;
          take n;
          let m Nat  that
A121:        n <= m;
  lim ( is stableby Th19java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

:(h() (*)*h)  f2f1)/* )\java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
           = ((h")^\N)(#)(( (f2*f1)/*(h+c) - (f2*f1): ;
         =(^N)        etnjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
          .= (h^\N)"(#)(((f2*f1)/*(h+c))^\N - ((f2*f1)/*c)^\N) by SEQM_3:17;

          cases
suppose
A124:        (f1/*((h  f(objectobject)>of()java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

A125:        (( ;
             = (hence={(,
             by SEQ_1:8;

:(**hc    fs.(s(*(),x2)>)java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
=((2f1/(+c.h+)(+-lim+    N12 

            dom(*(,x2)x3(*  x(,,(}by:128
              
            dom(f1/*((h+c)^\N)) = NAT by A90,FUNCT_2    =g.s**),x2(,3()*)by CIRCCOMB:
A127:        dom(f2*(f1/*((h+c)^\N))    =fs(,x2)sx3

            ((f2*f1)/*(h+c)  Result.( ) =f(.x1)s.x2)s.x3)s()
              = (f2*f1)/*((h+c)^\N). (.)x2).(,sx4 
             S  <)2,(,)gaso-g
. *f1(hc^N   11;
A128:        (((f2*f1)A3  A3
              = f2.(f1.x0) byX,be set

:1 
            dom(f1*(c^\N)) = NAT by A90,RELAT_1:27; then
            dom(f1/then inn-a byTARSKI:1
A129:        dom(f2*(f1/*(c^\N))) = NAT by A41,RELAT_1:27;

            ((f2    m |>ain{swhere  java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 79
,ZFMISC_1:31,VALUED_0:27
           "#(//(a1)-f2/()(f*c)k  f1/*c^k)
) FUNCT_2 
  VertexS1
ORDINAL1d ,A129,:
. .1(\)) by,,1
             .=           .= ((f2/*(d1+a1) - f2/*a1)/"d1) (#) (d1(java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 33
             .
            
              |.((h"(#)((f2*f1)/*(h+c) - (f2    heSortsof=  isgate`2den
                 A123,A118,A78,A125,A128,A126,ABSVALUE:2;
           end;
           suppose
            (1*((+)\).m< ; then
             r1  Real(1/(h+c^N). =        java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 44
            then
            consider l be Element of NAT such that
A130:         m = I2.l by A88,A122;

p)is  , 1GateCircStrpf)
            then G(,)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
            |.java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
 (f1*c^           FDIFF_2:6
            hence |.((the    java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 67
              java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
           end;
          end;
          hence
              .h((f2/(+  f2*f1)/*c))^\).m
                - Ldiff
 
A131 h((*f1*-f2/^  by
           SEQ_2:A4,A2,:      
         hence h"(#)(  then
         lim ((h"(#)((f2*f1)/*(h+c) - (f2*f1)/*c))^\N A1+*A2 gate`2den
           (  )1 c= f1  A14 
          limh"# f*/hc  f2/c)= f,*
            Ldiffjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        end;
       end;
       hence thesis;
      d;
     end;
     ;
        # -
fjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 60


theorem Th47:
for *=(g y java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 f1h(f>fjava.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 15
   (for r1 be Real st r1 > 0 ex r0 be Real          java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    [.x0-r0,x0+r0.] c= dom(A41 mC+  byORDINAL1:def 12
 *f1 x0&
  diff(f2*f1,x0) = Ldiff(f2,f1.          | f1()2;
proof
beReal,f1f  ofREAL,REALend

A1:  f1 java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 11
: x0java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
 
.-x0r0.]  ([f1.x0r1.x0]`1);

A4: f1 is_right_differentiable_in x0 & f1 is_left_differentiable_in x0   (lementof X()=F$.,1
difff,) = (, & ,x0)=Ldifff1,A1: java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 72
byFDIFF_322java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    for r1 be Real st r1 > 0 ex r0 be Real st r0>0 &
      [.x0,x0+                        RFUNCT_22
        let  Elementof X)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
     let r1 be A102:     rng (d1 )=  byA28,99java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
     assume r1 > 0;   3AryDef {X()-> non emp,(objectobject,bject) - Element  X(}:
     ;
A5:  r0>0 &
      [.x0-r0,x0+r0.] c= dom([.f1.x0-r1,f1.x0.]|`f1) by A3;
     r0;
     x0-r0 < x0 by A5,XREAL_1:44; then
     [.x0,x0+r0.] c= [.x0-r0,x0+r0.] by XXREAL_1:34;
     hence thesis by A5;

    end; then
A6: f2*f1 is_right_differentiable_in x0 &
    Rdiff(f2*f1,x0) = Ldiff(f2,f1.x0)*Rdiff(f1,x0) by A4,A2,Th45;

    A3: for x,y,z being Element of X() holds f2.<*x,y,z*> = F(x,y,z);
      ;
    proof
     let r1 be Real;
     assume:k;
     gp)  *.x1..,x4*kjava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 54
A7  r00&
[r0x0+. c (.f1.0r1..|f   ;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 13
     x0 < x0+r0 by A7,XREAL_1:29; then
     .x0r0,x0        thus *,
     hence thesis by A7;
    ;java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
f1 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    
    hence thesis by A4,A6,FDIFF_3 then
;

theorem
for x0java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 f1 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
 (ex r be Real st r a1  x1(  a2 =s() &a3  s.)holds (s.(1<
  f2*              /f/(h^N) java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 55
  Rdiff(f2*f1,x0) = Rdiff(f2,f1.x0)*Rdiff(f1,x0)
proof
om/^)  27
    assume that
A1:  f1 is_right_differentiable_in x0 and
 f2 s_right_differentiable_in.
  str>  |[x0,0+.])is nondecreasing;

 java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 32
A4:  R > 0 & f1|    end;

0 Fhence
:x0  byjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

    for A4: x3() i C byDef9
     [.assume carrier ;

       be ;
     assume
A7:   r1 > 0;  f1=1 morphism  :;
     consider d be  )- Function  -tuples_on      let f   C;
A8:   0 < d &
for beRealst                .")2f1+)-(*)c))-DF  java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
       |. | <    .= {x1(),x2(),x3(),x4(),x5={1)x2(,)x4(,5(} \/{*           ;
A9:  0 < d/2 & d/2 < d by A8,XREAL_1:215,216;
     consider          composableassociative  CategoryStr
A10:   s0 > 0 & [.x0,x0+s0.] c= dom f1 by A1,FDIFF_3:def 3;
      =(2s0java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
          

,,1,A6;
     e <= d/2 & e <= s0 & r0 <= e & r0 <= R by XXREAL_0:17; then
: =2& =NAT     finiteset  java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
A13:     byXXREAL_02

     A6x =[n11,]][11n12]]   =[n11,12by,1
      assume x in [.x0,x0+r0.]; then
A14: x0 = x  x < x0+;

      x0+r0 <= x0+s0 by A12,XREAL_1:6; then
      x <= x0+s0 by A14,XXREAL_0:2; then
java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 40

A16:  x0+r0 < x0+d bysuppose [x,2 inc3
      per cases;
      suppose x <> x0; then
A17:   x0 < x & x <A18:     = n11,n11,n12] &y1 = 11by A17,TUPLE_0:;
:| x f1x0. < r1 by A8,15;

       x0+r0 <= x0+R by XXREAL_0:17,XREAL_1:6; then
A19:    x0 < x0+R & x <= x0+        end;
x0 dom(1|[.unction -tuples_on X, being Signature of st)
,XXREAL_1:1,RELAT_1:57; 

       (f1|([.x0,x0+R   f be FunctionofA21       [, =n21[n22]]] =+  < ;
         by A4,A17,RFUNCT_2:def 3; then
149 
A20:   f1.x0 <    proof
       f1.x - f1.x0 < r1 by A18,ABSVALUE:def  then n11,12    NAT such that
       f1.x < f1.x0+r1 by XREAL_1:19;
       hence   :
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      suppose x = x0; then
< f1x0+  
       hence x in dom([.f1.x0,f1A27       x,2]= [[n21,n21n22],n21]&n22=n21 + 1&n21 <> 0;
      end;
     end;
hencethesis by A11,,XXREAL_0:21
    end    for  being 
     thenx  /c1\c2  c3by XBOOLE_0def 3
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem
for x0 be Realjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 10
f1   is_right_differentiable_inx0&
 (ex r be Real st r > 0 &         not n2 in {0} by A32:ef;
  *        1n2,]java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 58
  Ldiff(f2*f1,x0) = Rdiff(f2,f1.x0)*LdiffA35:      [n1[n1,n2],1 &n2 =n1 +1&n1 <> 0;
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL        n1,n1]]in:X,: by A36A37,FMISC_1:def2;
    assume that
 f1 x0 and
A2:  f2 is_right_differentiable_in f1.x0 and
A3:  ex r be Real in  assume   ;

   java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 32
A4:  R > 0 & f1A48 forfmorphismof   in X2 f  left_identity &

5 is_Lcontinuous_in  A1,let Signature of  such java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
A6: x0 in dom f1 by Th27;

    for r1 be Real st r1 > 0 ex r0 be         [[f,f1],y] in c0 \/ c1 \/ c2 or ,]y] in c0 \/ c1 \/ c2  [ff1]y]injava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    .-x0. = om([.f1.,f1.0+r1.|f)

             ;
  f21,=21)Rdiff1java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 48
:   0 
     consider d be Real    .= {x1,x2}  x}by ;
A8 then
      Realst x domf1&x0-    x<x0 holds
|..x -f1.0. <r1 by A5,h27;
A9:  0 < d/2 & d/2 < d by A8,XREAL_1:215,216;
     consider s0 be Real such that
      &.-,. =domby A1FDIFF_3def 4;
     set e =min(/2s);
     take r0 = min(e,R);

A11: e > 0 by A9,A10,XXREAL_0:21;
     e <= d/2 & e <= s0 & r0 <= e & r0 <= R     per casesby A1,XBOOLE_0d 3;
 reconsidernf2=f2Element NAT java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
A13then

 xbe ;
assumex .-,.;hen
A14:  x0-r0 <= x & x <A18:|.|<r1 y A8,_rng <*x1,*=x1,2x y1

      x0-s0 <= x0-r0 by A12,XREAL_1:10; then
x0- = byA14,2 then
 xin  by java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

      end;
cases;
x<x0;then
A17:   x0-d < x & x < State G      nd;
A18:   |. f1.x - f1.x0 .| < r1 by A8,A15;

x0R< x0r0by XXREAL_0:,XREAL_1: x0-R <= x0-r0 by XXREAL_0:17,XREAL_1:10
A19 x0-   then
       x0 in dom(f1|([.x0-R,x0.])) & x in dom(f1|([.x0-R,x0.]))
         by A6,A15,A14,XXREAL_1:1,RELAT_1:57; then

         InputVertices (()+SA86:[f1,f]y  [n1n2]1  n2= n1 A:f is_left_differentiable_in  and
         by A4,A2:  f2 is_right_differentiable_in. andand
java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 71
 . <= . by,14,then [<*x1()*>,f()] in {[<*x1()*>,f()& carrier S+  
x-f1x0<r1by,:def ,:8;   then g <x1)*>()]asGate of S)*5 f1 is_Lcontinuous_in x0byA1FDIFF_3:;then
       f1.x <         reconsider =f2 ElementofNATby ;
hencex indom[.            assume
      end;
      suppose x = x0; then
       f1.x0 <= f1.x & A97:         [[f1,],y]inc0\ c1 or[f2,]in
b A11Th5
      end;
     ;
     hence thesis by A11,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 6
     ofB) S suppose[f1,f2]
    A4: s9 is stabilizing by Def2;
end;

theorem
for x0 be     nowletxbeRealjava.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
 f1 is_right_differentiable_in x0 & f2 is_left_differentiable_in f1.x0 &
(   s r0 (xr)  non holds
  f2*f1               [f,f2
      -s0<-byA121;then
proof
    let x0 be Real, f1,f2 be S() tolerates S by CIRCCOMB:47
     
A1:  f1 is_right_differentiable_in               [[f1,f1],f1] in c0 by A
 f2is_left_differentiable_in f1.x0 and
A3:  ex r beA12 ( rng*(x(*  TARSKI: 2;

    consider R be Real such that
A4:  R > 0 & f1|([.x0,x0+R.]) is non-increasing by A3;

A5: f1 is_Rcontinuous_in              then  nn22be Element  NAT such that
A6: x0 in dom f1 by        x0-R <= x0-r0 by:17XREAL_110 hen

    for r1 be Real st r1 > 0 ex r0 be Real st r0>              then[[f,f1]f] in    =       x0 in dom(f1.-x0.]) x dom1[0-x0.java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 63
     A113 [ff1y]in compositionofCyA112,XTUPLE_0def 12;
    proof
     letr1beReal
     assume
A7:   r1 > 0; then
                   consider n, be ElementofNAT 
A8:   d java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      for x be Real st x in dom f1 & x0 < x & x < x0+d holds
h28;
A9:  0 < d/2 & d/2 < d by A8,XREAL_1:215,216;
     s0  Real such that
 A1,A118:f =n&f1 = [,1;
)
 r0 =min(,);

e>0 ,of   a2a3  lement of B)st(x1() in InnerVerticesS(
     e <= d/2 & e <= s0 & r0 <= e & r0 <= R by XXREAL_0
A12hence >f1by : 12
A13:  r0 A        by A15,14,:,:57;then

     now let x beendjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
      assume xin[x0,x0+r0.;then
A14:  sA129:f1 thecarrier ofC

      + =x0      x0+r0 <= x0+s0f=n1] java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 71

A15:  x in dom f1 by A10,A14t [f,] the ofCbyXBOOLE_0:def 3java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67

0A13XREAL_1:;
      per cases;
 >x0; then
A17::.,.r1|f1 of:
:.x-f1x0.|<r1 A8,A15

       x0+r0 <= x0+R by XXREAL_0:17S)          =y2,XTUPLE_0:;
java.lang.StringIndexOutOfBoundsException: Range [59, 3) out of bounds for length 67
       x0 in dom(f1|([.x0,x0+R.])) & x in dom(f1|([.x0,x0+R.]))
         ,A15A14,REAL_1RELAT_17 java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
|.,+.)> (|([x0x+.].java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
         by A4,A17,RFUNCT_2:def 4; then
       f1.x0 >A7 for ,2being ofC f1| f2
: f1.>=f1.x by,A14,XREAL_1,FUNCT_1:9;hen
       -(f1.x - f1.x0) < r1 by A18,XREAL_1:47,ABSVALUE:30; then
        r1; then]n3 in the compositionof C by A8;
       f1.x0 < f1.x + r1 by A9       java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
       f1.x0 - r1 < f1.x by       end;
      ence dom[.1.r1f1..|f1)by 15::java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
      end;
       x ; then
AL_1:44;
        x indom[f1.-r1,f1.0]`f1)byA15,UNCT_1:54,XXREAL_1:1java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
      end;
     end;
     java.lang.StringIndexOutOfBoundsException: Range [36, 10) out of bounds for length 40
    end;
hencethesis  A1,2,Th45;
end;

theorem
for x0 be Real, f1, =(    .= (Following F PartFuncof[theemptyset
 f1 is_left_differentiable_in x0 & f2 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 6
 (ex r be Real st r > 0 & f1|([.x0-r,x0.] with_right_identitiesassociativefor ;
  f2 is_left_differentiable_in
f2*,0) f,.*(,Stateof( s9 the ofS)for ,a2 ,,a5 beingElement
proof
letbeReal f2    REAL,;
    assume that
A1:  f1 is_left_differentiable_in     proof
A2:  java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 11
BOOLE_0: 3

    consider R be Real such that
A4:  R > 0 & f1|([.x0-R

A5: f1   |.f1 f1. <r1  st f >f1 f()f1  f1 &
A6: x0 in dom f1 A15: ( x5() in InnerVerti S( implies a5 =(Result s9.))&( (

    for r1 be Real st r1 > 0 ex r0 be Real st r0>0 &
     [.x.]= dom(f1.-1,
    proof
 Real

: > 
 Realsuchthat
A8:   0 < d &
      for x be Real st x in dom f1 & x0-d     end;
       |. f1.x - f1.x0 .| < r1 by A5,Th27;
:  0 <d2&d/2< d by A8    proof
considers0 Real such that
:;then
     set         byA4,:  ,a2,a3,a4,a5*> by A19,A29,A26,,,5 byA19,26,,A30A34AA33A,;
     takeA20:f1 > .x  A19A14,:,:49;then

A11: e  f1x0-f1. <r1; then
     e <= d/2 & e <= s0 & r0 <= e & r0 <= R by XXREAL_0:17; then
A12: r0 <= d/2 & r0 <= s0 & r0 <= R by XXREAL_0:2; then
A13:  r0 < d by A9,XXREAL_0:2;

now letx beReal;
      assume x in [.x0-r0,x0.]; then
  - < & x< byXXREAL_1:;

      x0-s0 <= x0-r0 by A12,XREAL_1:10; then
      x0-s0 <=  assume g1 | g2;
A15:  x in dom f1 by A10,A14,XXREAL_1:1;

:- <x0-r0 byA13,XREAL_1:15;
      per cases      end;
      suppose x <> x0; then
:x0-< &<x0 A14,A16,XXREAL_0:,2 hen
A18:   |. f1.x - f1.x0 .| < r1 by A8,A15;

       x0-R
A19:      attr  is with_nonpair_inputsmeans
       x0 in dom(f1|3:   be str> &f1|([java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 30
         by A6,A15,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

       (f1|([.x0-R
 A4,,RFUNCT_2:ef3;then
       f1.x0 >= (f1|([.x0-R,x0.])).x by A19,XXREAL_1:1,FUNCT_1:49; then
A20:   f1.x0 >= f1.x by A19,A14,XXREAL_1:1
       -(f1.x - f1.java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 4
       f1.x0 - f1.x < r1; then
       java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
       f1.x0 - r1 < f1theorem Th16:
       hence x in dom([.f1.x0-r1,f1.x0.]|`f1) by A15,A20,XXREAL_1:1,FUNCT_1:54;
      end;
      suppose x = x0  =g
       f1.x <= f1.x0 & f1.java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
       hence x in dom([.f1.x0-r1     nowlet x be ;
      end;
     endjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  byA11,,XREAL_021java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    end;
    hence thesis by A1,A2,Th46;
end;

Lm22:
for I be non java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 12
 I
 I = ].inf I,sup I.[
proof
    I be   Interval;
    I is open_interval or I is closed_interval      hence the CategoryStrof iswith_left_identities;
    
    henceforbeingmorphismofCf1 inthecarrierof C holds
end;

Lm23:
forthenx ( Arityof )         g1()g  by3h11;
.sup.or  .Isup .java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
proofthen g  as Gate ofSby FACIRC_137;
    let I .inf I,sup I.] or I = ].inf I,sup I.] or I = [.inf I,sup I.[ or

    assume inf I in I; then
    not (I = ].inf I,sup I.] or I = ].inf I,sup I.[) by XXREAL_1:2,4;
    hence thesis by Lm22;
end;

Lm24:
for
 I  [inf ,sup  end
proof
      benonemptyIntervaljava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
p in 
I [ I,[ XXREAL_1:,;

end;


for I be non empty Interval  (seq n)    Ijava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
 I = ].inf I 
proof
 beempty
java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
:notsupI  infIin;
A2java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 79
A3A9:f1.0inf1 Seg A2Th1        x in Seg n by A2,Th1; then(x12x*fi java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 78
  =.,     *,2,* registration
    inf       let,x2beNat
   I1     forf,heingmorphismof 
    supIin . , .  supA11:   R1 > 0 & [. x0,x0+R1 .] c= do ,,6,  x1   Snpairjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    inf I in [.inf I

end;

Lm26:
x0be (  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 42
  is_differentiable_on_interval Ijava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
. J&g java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  (f2*f1) is_right_differentiable_in x0 &
  Rdiff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL, I
    assume that
A1:  f1 is_differentiable_on_interval I and
A2:  f2 is_differentiable_on_interval J and
Icand
A4:  x0 = inf I and
A5:  x0 in I;

A6:          nonzero NatholdsPn fromNAT_1s     for n be non zero Nat holds P[n] from NAT_1:sch 
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 68

A8:  f1.x0 = (f1|I).x0 by A5,FUNCT_1:49;

A9: f1.x0 in f1.:I by A5,A1,FUNCT_1:def 6; java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 43
     f1.x0 in J by A3; then
A10  f1I.x0 in Jby ,FUNCT_1:49java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 R1Real |. F1.x - F1.x0 .| < s by;
   R1>   x0        ;

     java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

     .+.java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 46
r x0 ;
@

     per cases;nbe holds fromNAT_1 C
     suppose
14f1I.=inf J;then
A15| ()x0A,Th11 then
A16:   f2((@)^n1))).java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

      considerR2assume
      hereby


      set F2 = (f2|J)|(right_closed_halfline (f1|I).x0);

      f1|I is_Rcontinuous_in x0 by A7,A4,A6,FDIFF_3:7; then
 st    java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 53
       for 
        |

A19:   java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
       
      x java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
       let r1 bejava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
       set s = minassumer REAL

 r1> 
      /  2<r1byXREAL_1:215,216 forx       set s = min(r1/2,  =in/R;
      
:0< java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        for x be Real st x A1  nnonstPn [n]
         |.) java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 43

       set r0 = min(d2/2,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 15

A22:    0 < s & s <= r1/2 & s <= R2 by A20,A17,XXREAL_0:17,21;

A23:    0 < d2/2 & d2       set =mind/,)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A24:    0 < r0 & r0 <= d2/2 & r0 <= R1 by A11,XXREAL_0:17,21;

       x0+r0 <= x0+R1 by XXREAL_0:17,XREAL_1:6; then
A25:    [.x0,x0+r0.t;

       take r0;

       thus r0 > 0 by A11,A23,XXREAL_0:21;
       now let x be Real;
        assume
A26:     x in [.x0,x0+r0.]; then
A27:    x in dom(f1|I) by A25,A11; then
A28:     x in dom f1 & x in I by RELAT_1:57; then
     f1.in f1.: by :def6java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

        J
A30:(|)x0< . yA3,,,XREAL_1:,;

A31:    x0 <= x & x <= x0+r0 by A26,XXREAL_1:1; then
A32:    0 <= x-x0 & x-x0 <= r0 by XREAL_1:48,20;

        x in [.x0,+infty.[ by A31,XXREAL_1:236; then
A33:    x in right_closed_halfline x0 by LIMFUNC1:def 2;

by,:8A:ef1;then
| - <d2  A, 
        |. x-x0 .| 
| . -.x0|  byA, java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
        |. F1.x - F1.x0 .| < r1/2 by A22,XXREAL_0:2; then
A34:    |. F1.x - F1.x0 .| < r1 by A20,XXREAL_0:2;

        x in dom F1 by A33,A27,RELAT_1:57; then
A35:    F1.x = (f1|I).x           ,,,A52java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 54
| .x -
           A30A13:,def1;
        F1.x < F1hence(*f1 
        java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
          by A28,A8,A13,A30,A35,XXREAL_1:1,FUNCT_1:54;
       end;
       hence      {whereu morphismof:  is      =2x0*f1`\I))by ,A51,ef2
      end;
      hence (f2*f1) is_right_differentiable_in x0 by A4,A6,A5,A1,A16,Th42theorem Th22:

      Rdiff(f2*f1,x0)
       = Rdiff(f2,f1.x0)*Rdiff(f1,x0) by A4,A6,A5,A1,A16     end
      =f2f.)(f1\)      is ;
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A8,A2,A3,A9,A14,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence Rdiff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0 by VALUED_1:5;
     nd;
suppose
A36:   (f1|I).x0 = sup J; then
A37      Rdiff(2*,)
A38:   f2       =diff(2f1.)*Rdiff(1x0)by 4A6,,,60,61,h40

            . (f2`J.f1     A1:f =;
A39:    R2 > 0 & [. (f1|I).x0-R2,(f1|Iconsiderc bemorphismof such
,FDIFF_3:def 4;

      set F2 = (f2|J)|(left_closed_halfline (f1|I).x0);

A40:   F1 is_continuous_in x0 by A4,A6,A7,FDIFF_3:7,Th35;

A41:   for r1 be Real st r1 > 0 ex r0 be Real st r0 > 0 &
       [.x0,x0+r0.] c= dom([.        [.x0,x0+r0  st beReal ,   R ,   st
      proof
       let r1 be Real;
       set s = min(r1/2,R2);
       assume r1 > 0; then
A42:    0 < r1/2 & r1/2 < r1 by XREAL_1:215,216; then
A43:    0 < s & s <= r1/2 & s <= R2 by  Ldiff(*f1)java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13

       consider d2 be    assume that
A44:     0 < d2 &
f xbe  x  &.x-.<2holds
|F1x-F1.x0. <sA2:  2;

       set r0 = min(d2/2,R1);

A45:    0 < d2/2 & d2/2 < d2 by A44,XREAL_1:215,216; then
A46:    0 < r0 & r0 <= d2/2 & r0 <= R1 by A11,XXREAL_0:17,21;

       x0+r0 <= x0+R1 by XXREAL_0:17,XREAL_1:6; then
A47:    [x0,x0+r0]c .x0+R1. 

       take r0;

       thus r0 > 0 by A11,A45,XXREAL_0:21;
       now let x be Real;
        assume
A48:     x in [.x0,x0+r0.]; then
A49:    x in dom(f1|I) by A11,A47; then
A50:     x in dom f1 & x     
A51:     f1.x in f1.:I by FUNCT_1: assume

        J = [.inf J,sup J.] or J = ].
A52:     f1.x <= (f1|I).x0 by A3,A36,A51,XXREAL_1:1,2;

A53:    x0A6:     @)^java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
A54:    0         =(@|n') |byA5I:7;

        |. x-x0 .| = x-x0 by by A1,XXREAL_0:2,XREAL_1
        |. x-x0 .| <= d2/2 by A46,A54,XXREAL_0:2; then
 |x.  A45:

        x in [.x0,+infty.[ by A53,XXREAL_1:236; then
A56:    x in right_closed_halfline x0 by LIMFUNC1:def 2; then
        |. F1.x - F1.x0 .| < s by A44,A55,A49,RELAT_1:57; then
A57:    |. F1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        x ( cbeingmorphismofC st  >f&c identity)
A58:    F1.x = (f1|I).x & (f1|I).x = f1.java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 11
        F1.x0 >= F1.x by A52,A12,FUNCT_1:49; then
        |.  ',I/]=[0,/.  :,:3 then
        F1.x0 - F1.x < r1 by A57,A42,XXREAL_0:2; then
        F1.x0 <theorem Th33java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
        F1.x0 - r1 < F1    et  CategoryStr
        hence x in dom([. f1.x0-r1,f1.x0 .]|`f1)
          by A50,A8,A58,A13,     for o be object st o in dom  be        let  be morphism  let r1 be Realjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
       end;
..  ( f1-,. .`;
      end;
      hence (f2*f1) is_right_differentiable_in x0 by A4,A6 =1by :. REAL>. A1F:7;

      Rdiff(f2*f1,x0)
       = Ldiff(f2,f1   proof
      .= Ldiff(f2,f1A2:(sin) * (sin  @(@in # (sin)by java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A8,A2,A3,A9,A36,Def2
      . (f2`J*f1)x0*((1\I)x0 by A5,A1,UNCT_1:13;
      hence. @@sin (#) @(sin) +((cos (#)@@) java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 38
     end;
supposeA59 f1  correctness
n
:   f2 is_differentiable_inf1I. byA10,2,h11;

A61:   (f1|I).x0:::::::::::::::::::::::::::::::::
       f2*f1)is_right_differentiable_in x0 by A60,A6,A4,A5,A1,Th40;

      Rdiff(f2*f1,x0)
       = diff(f2,f1.x0)*Rdiff(f1,x0) by A4:n1=n by A1, XXREAL_0:2,XREAL_1:33;then
      .= diff(f2,f1.x0)*((f1`\I).x0) by A4,A5,A1,Def2
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A2,A3,A9,A59,A61,Def2
      reconsiderF=@@(cos),REAL;
      hence Rdiff(f2*f1,x0) = (((f2`\J)A9:   dom g =REAL by FUNCT_2:ef;
     end;
end;

Lm27:
 x0be ,f2=(-*(cos)^ RLVECT_116
 f1 is_differentiable_on_interval I & f2 is_differentiable_on_interval J &
 f1.:I c= J & x0 = sup I & x0 in       (n-1()(@(sin)^2)() @(@in|^(n-'2))13
  (f2*f1) is_left_differentiable_in x0 &
  Ldiff(2*,)=((f2`\J*f1)#)f1`I).x0
proof
by:java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    assume that
A1:  f1 let,ghA24:  ((n-'1)(#)I2)0P2]scontinuous&
A2:      n')#I)[0P/'        |g*f& |>f:  I1|[0PI' is continuous  I1 is_integrable_on[0assumeA2: |>;
:f1: = J        thus h*g |> f by      I2|['0,PI/2'] is bound|0P2    java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A4:  x0 = sup I and
A5:  x0 in I;

A6:  x0 =  byA26,COMPTRIG5A30,NTEGRA6:10;

     sup I = upper_bound  by A31,A33,13,A4
A7
        xin dom F1by A28,34 =(' by Def6;
A8:    end;

f1x=f1I.by,49java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

A10: f1.x0 in f1.:I        notCisemptyimpliesex  of,
     f1        (*n)1-1byA29,,54:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A11: (f1|I).x0 in J by A5,FUNCT_1:49;

     set F1 = (f1|I)|(left_closed_halfline x0);

     x0 in ].-infty=2   isempty;
A12: x0 in left_closed_halfline x0 by LIMFUNC1:def 1; then
A13: F1.x0 = (f1|I).x0 by FUNCT_1:49;

     per cases;
     suppose
 .(\)f1.)(`I.)  
A15:   f2|J is_right_differentiable_inhence(2*,)=(f2`)()f1  java.lang.StringIndexOutOfBoundsException: Range [22, 18) out of bounds for length 47
A16 f1.by,;

      consider R2 be Real such that
:  .fIx,1)+R2 ]c=dom(|)
          by A15,FDIFF_3:def 3;

      set F2 = (f2|java.lang.StringIndexOutOfBoundsException: Range [7, 1) out of bounds for length 17

      |Ijava.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 9
A18:   for e be Real st 0 < e ex
       forx Realjava.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 8
        |. F1.x - F1.x0 .| < e by Th36 @(sin)(*). set F2  f2|)(f|.)

A19:   for A3: (@|(*-1)x      |  by A6,7,DIFF_35 
       .-,x0 =d( ..,x0r1|1java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      proof   zero 
       let r1 be Real;
       set s = min(java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 18

A20:     r1       [x0-x0. c [ f1.0-,. ] ',2 java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37

A21:    0 < r1/2 & r1/2 < r1 by A20,XREAL_1:215,216; then
A22:    0        by A7;A7          set s minR;


A23
      forx   .xx0 .|<d2
         |. F1.A45     <s   =r1/             /hen

       set r0 = min(d2/2,R1);

A24 be  stx domF1  .-x0 .  2
      r0                  then

       x0-R1         ;
A26:    [.x0-r0,hence thesis



thusr0>0by ,X:21java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
       end;
        assume
A27:xin.-0x.;then
A28:         domf =f1 A2ven)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
:xindom f1  x inI java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A30:f1. in: FUNCT_1def;

        J = [.inf J,sup J.[ or J = [.inf J,        assume.    
. =byA,1;

A32:    x0-r0 <= x & x <= x0 by A27,XXREAL_1:1; then
        | x-x0 |=-x   end
       | x0 . =-r0  A32,REAL_11924 
2  A25,:;then
A33:    |. x-x0 .| < d2 then not Ob(C) is empty

        x in ].-infty,x0.] by java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
:let n be non zero Nat;

        |
        |. java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 8
A35 oddn1=Productodd-seq(+1;

A2:2n> *1by XREAL_1:64;then
A36:    F1.x  func Ff-    .=*n -  A2,XREAL_0:, XREAL_1:;
        F1.x0 <= F1.x by A31,A12,FUNCT_1:49; then
        |. x| .-x0     A46,A51;
        .  F1.x0  r1     ;
        hence 
                  x inA57RELAT_157;then

       hence [.x0-r0,x0.] c= dom([. f1.x0,f1.x0+r1 .]|`f1);
      end;
      hence (f2*f1) is_left_differentiable_in x0 by A6,A4,A5,A1,A16,Th43;

      Ldiff(f2*f1,x0)
       = Rdiff(f2,f1.x0)*Ldiff(f1,x0) by A6,A4,A5,A1,A16,A19,Th43
      .= Rdiff(f2,f1.x0)*((f1`\I).x0) by A4,A5,A1,Def2
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A9,A2,A3,A10,A14,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence Ldiff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0 by VALUED_1:5;
     end;
     suppose
A37:   (f1|I).x0 = sup J; then
A38:   f2|J is_left_differentiable_in (f1|I).x0 by A11,A2,Th11;

A39:   f2 is_left_differentiable_in f1.x0 by A38,A9,Th10;

      consider R2 be Real such that
A40:    R2 > 0 & [. (f1|I).x0-R2,(f1|I).x0 .] c= dom(f2|J)
          by A38,FDIFF_3:def 4;

      set F2 = (f2|J)|(left_closed_halfline (f1|I).x0);

      f1|I is_Lcontinuous_in x0 by A6,A7,FDIFF_3:5; then
A41:   for e be Real st 0 < e ex d be Real st 0 < d &
       for x be Real st x in dom F1 & |. x-x0 .| < d holds
        |. F1.x - F1.x0 .| < e by Th36,FCONT_1:3;

A42:   for r1 be Real st r1 > 0 ex r0 be Real st r0 > 0 &
       [.x0-r0,x0.] c= dom([. f1.x0-r1,f1.x0 .]|`f1)
      proof
       let r1 be Real;
       set s = min(r1/2,R2);
       assume
     r1 > 0; then

A44:    0 < r1/2 & r1/2 < r1 by XREAL_1:215,216; then
A45:    0 < s & s <= r1/2 & s <= R2 by A40,XXREAL_0:17,21;

       consider d2 be Real such that
A46:     0 < d2 &
        for x be Real st x in dom F1 & |. x-x0 .| < d2 holds
         |. F1.x - F1.x0 .| < s by A41,A44,A40,XXREAL_0:21;

       set r0 = min(d2/2,R1);
        hence F. is byTh10;
A47:    0 < d2/2 & d2/2 < d2 by A46    end;
A48:    0 < r0 & r0 <= d2/2 & r0 <= R1 by A8java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12

x0-1 <= x0-r0 byXXREAL_01,10 
A49:    [.x0-r0,x0.] c= [.x0-R1,x0.] by    casesjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14

 r0

       thus r0 > 0 by A8,A47,XXREAL_0:21;
       now let x be Real;
assume
: in.r00.]then
A51      I ,A49 java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 13
A53:    f1.x in f1.:I by FUNCT_1:def 6;

        = [ , J J= ].Jsup J.] byA11,Lm24; then
A54:    f1.x <= (f1|I).x0 by A3,A37,A53,XXREAL_1:1,2;

A55:       &F identitypreserving
        |. x-x0 .| = -(x-x0) by ABSVALUE:30,XREAL_1:47; then
        |. x-x0 .| <= --r0 by A55,XREAL_1:19,XREAL_1:24; then
|. x-x0 .| <= d2/2 by A48,XXREAL_0:2; then
A56:    |. x-x0 .| < d2 by A47,XXREAL_0:2;

        x in ].-infty,x0.] byletx object;
      (=[00,]  x=[[,1]1] orx = [01,]or   [[1,0]1
        |. F1.x - F1.x0 .| < s by A46,A56,        assume  in comp;
A58:    |. F1.x - F1.x0 .| < r1/2 by A45,XXREAL_0:2;

        x in dom F1 by A51,A57,RELAT_1:57; then
A59:    F1.x = (f1|I).x & (f1|I).x = f1.x by A50,A8,A49,FUNCT_1:47; then
=.by,9 
        |. F1.x - F1.x0 .| = -(F1.x - F1.x0) by ABSVALUE:30,XREAL_1:47; then
        F1.x0 - F1.x < r1 by A58,A44,       x0-R1 < x0-r0 & x0+r0 < x0+R1 by,15 
        x0 <F1.  byXREAL_1:19;then
        F1.x0 - r1 < F1.x java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
        hence x in dom([. f1.x0-r1,f1.x0 .]|`f1)
          by A52,A9,A13,A54,A59,FUNCT_1:54,XXREAL_1:1;
       end;
       hence [.x0-r0,x0.] c= dom([. f1.x0-r1,f1.x0 .]|`f1);
      end;
      (* is_left_differentiable_inx0 A6,,,1A39,;
      Ldiff(f2*f1,x0)
       = Ldiff(f2,f1.x0)*Ldiff(f1 .=((`\J)*f1.*(`I.)by,,13;
      .= Ldiff(f2,f1.x0)*((f1`\I).x0) by A4,A5,A1,Def2
      .= ((f2`\J).(f1.x0))*((f1A9       10 &y1  1by XTUPLE_01;
      =((\)f1.)(f1\)x0  ,A1FUNCT_1:;
      hence thenx= 00]&y2  0by :;
     end;
     suppose A60: (f1|I).x0 <> inf J & (f1|I).x0 <> sup J; then
      (f1|I).x0 in ].inf J,sup J.[ by A11,Th3end;
A61:   f2 is_differentiable_in (f1|I).x0 by A11,A2,Th11;
      hence (f2*f1) is_left_differentiable_in x0 by A6,A4,A5,A10:  xincomp

Ldifff1)

      .= diff(f2,f1.x0)*((f1`\I).x0) by:1java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 61
      =[,],];
java.lang.StringIndexOutOfBoundsException: Range [31, 6) out of bounds for length 60
      hence Ldiff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0 by VALUED_1:5;
     end;


Lm28:
x0by,  ,;
 f1 is_differentiable_on_interval I & f2 is_differentiable_on_interval J &
 f1.:I c= J & x0 in ].inf I,sup I.[ & x0 in I holds
2)   java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  diff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0
proof
    let x0 be Real, f1,f2 be PartFunc of REAL,REAL, I,J be non empty java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 57
    assume that
A1:  f1 is_differentiable_on_interval I and
A2  f2 is_differentiable_on_interval Jand
  f1:c Jand
A4:  x0 in ].inf I,sup I.[ and
A5 x0 in I;

A6: inf I < x0 & x0 < sup I by A4,XXREAL_1:4;

    reconsider A        then [f1],f2] in  compositionofDby A1;
A7: f1 is_differentiable_on A by A1;

A8: f1.x0 in f1.:I by A1,A5,FUNCT_1:def 6;

y,A7f1 in .Iby A1FUNCT_1: 6then
A10: f1 is_differentiable_in x0 by A4,PDIFFEQ1:2; then
A11: f1 is_continuous_in x0 by FDIFF_1:24;

    consider R1       | A24x0-    <;
A12:  0        r0< x-x0 &xx0 < byXREAL_1:920 let  ;
:  /2&R1/ assume

A14: A c= I by Th2; then
    x0end;
    f1.x0 in f1.:I by A1,FUNCT_1:def 6; then
A15: f1.java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9

    per cases;
    suppose A16: inf J in J & sup J in J;

     per cases;
     suppose
A17:   f1.x0 = inf J; then D  with_right_identities;
A18:   f2 is_right_differentiable_in f1.x0 by A2,A16,Lm5; then
      consider R2    f1 (*)f2 >f3  |>  *) f3       .-0 c=f1.1f1x0.|f1;
A19:    R2 > 0 & [.    proof

A20:   for r1 be Real st r1 > 0 ex r0 be Real st r0 > 0 &
       [.x0-r0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1)
      proof
       let r1 be Real;
       set      . Ldifff2f1.*(`I.)by ,A1Def2
       assumer10then
      = (f2`\J*)x0*(`I).  ,A1,FUNCT_1:3;
A22:    0 < s & s <= r1x0)=((`\J)*f1)(#)(f1`\I)).x0           end

       consider d2 be Real such that
A23:     0 < d2 &
                  end;
         | .x -f1x0 . < s by A11,A21,A19end

       set r0 = min(d2/2,R1/2);

A24:    0 < d2/2 & d2/2 < d2 by A23,XREAL_1:215,216; then
A25:    0 < r0 & r0 <= d2/2 & r0 <= R1/2 by A13,XXREAL_0:17,21; then
       r0 < R1 by A13,XXREAL_0:2; then
       x0-R1 < x0-r0 & x0+r0 < x0+R1 by XREAL_1:8,15; then
:[.0,x0+0.] = ]x0-R1,x0+R1.[ byXXREAL_1:47java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58

       take r0;

       thus r0 > 0 by A13,A24,XXREAL_0:21;
       reconsiderd1    of by: 2;
        assume
A27:     x in [.x0-r0,x0+r0.]; then
A28:     x in I by A26,A12,A14; then
A29:     f1.x in f1.:I by A1,FUNCT_1:def 6; then
A30:     f1.x0 <= f1.x by A3,A17,XXREAL_2:3;

A31:     f1.x - f1.x0 >= 0 by A3,A29,A17,XXREAL_2:3,XREAL_1:48;

        x0-r0 <= x & x <= x0+r0 by A27,XXREAL_1:1; then
        -r0 <= x-x0 & x-x0 <= r0 by XREAL_1:19,20; then
        |. x-x0 .| <= r0 by ABSVALUE:5; then
        fromFUNCT_2sch 2(A41;
|  |  d2byA24,2 hen
28,A1 then
        f1.x - f1.x0 < s by A31,ABSVALUE:def 1; then
        f1.x - f1.x0 < r1/2 by A22,XXREAL_0:2; then
     x -f1x0<  A21,XXREAL_0:2 then
        f1.x < f1.x0 + r1 by XREAL_1:19;
        hence xin dom(.f1.x0,f1.+r1.]|`f1
          by      proof
       end;
       hence [.x0-r0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1);
      end;
hence (f2*f1java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
      diff(f2*f1,x0)
       = Rdiff(f2,f1.x0)*diff(f1,x0) by A20,A18,A10,Th44
      .= Rdiff(f2,f1.x0)*((f1`\I).x0) by A5,A6,A1,Def2assume
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A17,A8,A3,A2,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence diff(f2*f1,x0A3:D empty;
     end;
     suppose
A32:   f1.x0 = sup J; A4: Fismultiplicativeor F isantimultiplicative;
A33 f2 f1.byA16,Lm6; then
      consider R2 be Real such that
A34:    R2 > 0 & [.f1.x0-R2,f1.x0.] c= dom f2 by FDIFF_3:def 4;

A35:   for r1 be Real st r1 > 0 ex r0 be Real st r0 > 0 &
       [r0,+r0 =dom([f1.-r1,1x0]|f1java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
      proof
       let r1 be Real;
sets =r2,)
       set F = the-preserving ofC;
A36:    0 < r1/2 & r1/2 < r1 by XREAL_1:215,216; then
A37:    0 < sjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10


A38     0  &
        for x be Real st x in dom f1 & |. x-x0 .| < d2 holds
         |. f1.x - f1.x0 .| < s by A11,A36,A34,XXREAL_0:21,FCONT_1:3;

       set r0 = min(d2/2,R1/2);
A39:    0 < d2/2 & d2/2 < d2 by A38,XREAL_1:215,216; then
:0< & <=d22&r0 =R1/ A1317,1 then
       r0 < R1 by A13,XXREAL_0:2; then
       x0-R1 < x0-r0 & x0+r0 < x0+R1 by XREAL_1:8,15; then
A41difff2.*f,0)y,10DIFF_2:java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57

       take r0;

       thus r0 > 0    let bemorphismofC
       now let x  ;
        assume
 in.-0,0+.; then
A43:     x in I by A12,A14,A41; then
        f1.x in     d1   by ;
A44:     f1.x0 >= f1.x by A3,A32considerc o C that

        x0-r0 <= x & x <= x0+r0 by A42,XXREAL_1:1; then
        -r0 <= x-x0 & x-x0 <= r0 by XREAL_1:19,20; then
        |. x-x0 .| <= r0 by ABSVALUE:5; then
        |. x-x0 .| <=being  emptycomposable with_identities CategoryStr,
        |. x-x0 .| < d2       o ObjectofCFi-o)=id(.o  ;
        |. f1.x - f1.x0 .| < s by A38,A43,A1; then
        -(f1A69 coherence
       .x0-,+r0]c dom[f1,f1.x0+r1.|`f1)
        f1.x0 - f1.x < r1 by A36,XXREAL_0:2; then
        
  F  covariantA70     <12&r1/2<r1by XREAL_1:,16;hen
        hence  in dom([.f1.x0-r1,f1.x0.]|`f1)
          by A1,A43,A44,XXREAL_1:1,FUNCT_1:54;
       end;
       hence [.x0-r0,x0+r0.] c= dom([.f1.x0-r1,f1.x0.]|`f1);
      end;
      hencethen

      diff(f2*f1,x0)
=f2f1)difff,0  A35A33,10Th47
      .= Ldiff    
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A32,A8,A3,A2,Def2
.       d2&
      hence diff        for be st x dom f1  | -x0.  d2 
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

     suppose    =G.F.)by ,6FUNCT_1def 2;
      f1.x0 in ].inf J,sup J.[ by A8,A3,Th3; then
A46:   f2 is_differentiable_in f1.x0 by A2,A8,A3,Th11;
      hence (f2*f1) is_differentiable_in x0 by A10,FDIFF_2:13;
      diff(f2*f1,x0)
        diff(,1x)difff1)by,,13
      
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A45,A8,A3,A2,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence diff(f2*f1,x0) = (((f2`\J)*f1)(#)percasesjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
     end;
    java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8

    suppose
A47:   not inf J in J & sup J in J;

     per cases;
     suppose
A48:   f1.x0 = sup J; then
A49:   f2 is_left_differentiable_in f1.x0 by   .  (.) A1,,;
      consider R2 be Real such that
R20 & [.f1.x0-R2,f1.0]c dom f2 by:def 4

A51 hence G()F    Def23java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
       [.x0-r0,x0+r0.end
      proof
       let r1 be Real;
       set s = min(r1/2,R2);
       assume r1 > 0; then
A52:    0 < r1/2 & r1/2 < r1       hence[.x0-,x0+.]c dom(.proof
A53:    0 < s & s <= r1/2 & s <= R2 by A50,XXREAL_0:17,21;

       consider d2 be Real such that
A54:     0 < d2 &
         Realx    .-x0| 2 
x .x0| s A11,A,:,:;

       set r0 = min(d2/2,R1/2);
A55:    0 < d2/2 & d2/2 < d2 by A54,XREAL_1:215    for  eingmorphism  Cstfisidentityidentity
 <   =d2 < / A13XXREAL_021 then
       r0 < R1 by A13,XXREAL_0:2; then
       x0-R1 < x0-r0 & x0+r0 < x0+R1 by XREAL_1:8,15; then
A57:    [.x0-r0,x0+r0.] c= ].x0-R1,x0+R1.[ by XXREAL_1:47;

       take hencef2f1)is_differentiable_in  ,13;

thus > 0  A13A55,:21;
       now let x be Real;
        assume
A58:     x in [.x0-r0,x0+r0.]; then
A59:     x in I by A57,A14,A12; then
        f1.x in f1.:I by A1,FUNCT_1:def 6; then
A60:     f1.x0 >= f1.x by A3,A48,XXREAL_2:4;

        x0-r0 <= x & x <= x0+r0 by A58,XXREAL_1:1; then
-< -x0 x0< byXREAL_11920;then
| x0. =r0byABSVALUE:; then
        |. x-x0 .| <= d2/2 by A56,XXREAL_0:2; then
        |. x-x0 .| < d2 by A55,XXREAL_0:2;   forCbeing composableCategoryStr holdsA84  J=].nf J,sup J.[byLm25;
        |. f1.x - f1.x0 .| < s by A1,A59,A54; then
        -(f1.x - f1.x0) < s by A60,XREAL_1:47,ABSVALUE:30; then
        -f1.x + f1.x0 < 
      .x0-.x<r1byA52,:2 then
        f1.x0 < f1.x + r1 by XREAL_1:19; then
        f1.x0-r1 < f1.x by XREAL_1:19;
        hence x in dom(A3 h| g&g >f;
          hence(((f h*g()byA3A1;
       end;
       hence [.x0-r0,x0+r0.] c= dom([.f1.x0-r1,f1.x0.]|`f1);
      end;
      hence (f2*f1) is_differentiable_in x0 by A10,A49,Th47;

      diff(f2*f1,      diff(f2*f1,x0
       = Ldiff(f2,f1.x0)*diff(f1,x0) by A51,A49,A10,Th47
      .= Ldiff(f2,f1.x0)*((f1`\I).x0) by A5,A6,A1,Def2
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A48,A8,A3,A2,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
hence(f2*,x0)= ((`J*f1)#)f1`I)x0by VALUED_1:;
     end;
     suppose A61: f1.x0 <> sup J; then
A62:   f1.x0 in ].inf J,sup J.[ by A47,A15,Th3; then
A63:   f2 is_differentiable_in f1.x0 by A2,A8,A3,Th11;
      hence (f2*f1) is_differentiable_in x0 by A10,FDIFF_2:13;
A64:  inf J < f1.x0 by       st a = $1 & o = $2 & = dom a
      diff(f2*f1,x0)
       = diff(f2,f1.x0)*diff(f1,x0) by A63,A10,FDIFF_2:13        reconsiderf=x 
      .= diff(f2,f1.x0)*((f1`\I).x0) by A5, take 
      .=      end;
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence diff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I      reconsider F Function MorC (C);
     end;
;

    suppose
A65:   inf J in J & not sup J in J;

     per cases;
     suppose
A66:    f1.x0 = inf J; then
A67:   f2 is_right_differentiable_in f1.x0 by A2,A65,Lm5;

      consider R2 be Real such that
A68:    R2 > 0 & [.f1.x0,f1.x0+R2.] c= dom f2 by A67,FDIFF_3:def 3;

A69:   for r1 be Real st r1 > 0 ex r0 be Real st r0 > 0 &
       [.x0-r0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`       [.x0-r0,x0+r0.] c= dom([.f1.x0,f1.x0+r1.]|`f1
      proof
       let r1 be Real;
       set s = min(r1/2,R2);
       assume r1 > 0; then
A70:    0 < r1/2 & r1/2 < r1 by XREAL_1:215,216; then
A71:    0 < s & s <= r1/2 & s <= R2 by A68,XXREAL_0:17,21; then
       consider d2 be Real such that
A72:     0 < java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 6
        for x be Real st x in dom f1 & |. x-x0 .| < d2 holds
         |. f1.x - f1.x0 .| < s by A10,FDIFF_1:24,FCONT_1:3;

       set r0 = min(d2/2,R1/2);

A73:    0 < d2/2 & d2/2 < d2 by A72,XREAL_1:215,216; then
A74:    0 < r0 & r0 <= d2/2 & r0 <= R1/2 by A13,XXREAL_0:17,21; then
       r0 < R1 by A13,XXREAL_0:2; then
      -R1 x0-&x0+0<x0+1  XREAL_1:,; then
A75:    [.x0-r0,x0+r0.] c= ].x0-R1,x0+R1.[ by XXREAL_1:47;

       take r0;

 > by,XXREAL_021;
       now let x be Real;
        assume
     xin[x0-r0,x0+] 
A77:     x in I by A75,A12,A14; then
        f1.x in f1.:I by A1,FUNCT_1:def 6; then
A78:     f1.x0 <= f1.x by A3,A66,XXREAL_2:3;

x0-<    < x0 by A76,XREAL_11 
        -r0 <= x-x0 & x-x0 <= r0 by XREAL_1:19,20; then
        |. x-x0 .| <= r0 by ABSVALUE:5; then
        |. x-x0 .| <= d2/2 by A74,XXREAL_0:2; then
        |. x-x0 .| < d2 by A73,XXREAL_0:2; then
        |. f1.x - f1.x0 .| < s by A72,A1,A77; then
        f1.x - f1.x0 < s by A78,XREAL_1:48,ABSVALUE:def 1; then
        f1.x - f1.x0 < r1/2 by A71,XXREAL_0:2; then
        f1.x - f1.x0 < r1 by A70,XXREAL_0:2; then
        f1.x < f1.x0 + r1 by XREAL_1      hence thesis by FUNCT_2:12
        hence x in dom([.f1.x0,f1.x0+r1.]|`f1)
          by A1,A77,A78,XXREAL_1:1,FUNCT_1:54;
       end;
1.x0f1.+.|`1)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
      end;
      hence (f2*f1) is_differentiable_in x0 by A10,A67,Th44;

      diff(f2*f1,x0)
=Rdiff(2,1x0)diff(1x0 by A69,,A10,Th44
      .= Rdiff(f2,f1.x0 assume [,]in(CompMapC));
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A66,A8,A3,A2,Def2
     =((f2`J)f1.)(f1`I.)by ,1FUNCT_113java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
      hence diff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0 by VALUED_1:5;
     end;
     suppose
A79:   f1.x0 <> inf J; then
A80:   f1.x0 in ].inf J,sup J.[ by A65,A15,Th3; then
A81:   f2 is_differentiable_in f1.x0 by A2,A8,A3,Th11;
    hence f2f1)is_differentiable_inx0 by A10,DIFF_2:3
A82:  f1.x0 < sup J by A80,XXREAL_1:4;
      diff(f2*f1,x0)
       = diff(f2,f1.x0)*diff(f1,x0) by A81,A10,FDIFF_2:13
      .= diff(f2,f1.x0)*((f1`\I).x0) by A5,A6,A1,Def2
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A79,A8,A3,A82,A2,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence diff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0 by VALUED_1:5;
     end;
    end;

    suppose A83: not inf J in J & not sup J in J; then
A84:  J = ].inf J,sup J.[ by Lm25;
     reconsider B = ].inf J,sup J.[ as open Subset of REAL by Th2;
     f2 is_differentiable_on B by A2; then
     f2|B is_differentiable_in f1.x0 by A8,A3,A84; then
A85:  f1 is_differentiable_in x0 &
     f2 is_differentiable_in f1.x0 by A9,A8,A3,A84,A4,PDIFFEQ1:2;
 J <f1.x0&f1. < sup J by ,A8A3,:4
     rng(f1|A) = f1.:A by RELAT_1:115; then
     rng(f1|A) c= f1.:I by Th2,RELAT_1:123; then
     rng(f1|A) c= J by A3; then
     rng(f1|A) c= B by A83,Lm25; then
     f2*f1 is_differentiable_on java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 28
     (f2*f1)|A is_differentiable_in x0 by A4;
     hence (f2*f1) is_differentiable_in x0 by A4,PDIFFEQ1:2;
     diff(f2*f1,x0)
       = diff(f2,f1.x0)*diff(f1,x0) by A85,FDIFF_2:13
      .= diff(f2,f1.x0)*((f1`\I
      .= ((f2`\J).(f1.x0))*((f1`\I).x0) by A8,A3,A86,A2,Def2
      .= (((f2`\J)*f1).x0)*((f1`\I).x0) by A5,A1,FUNCT_1:13;
      hence diff(f2*f1,x0) = (((f2`\J)*f1)(#)(f1`\I)).x0 by VALUED_1:5;
    end;
end;

theorem
for f1,f2 be PartFunc of REAL,REAL, I,J be non empty Interval st
 f1 is_differentiable_on_interval I & f2 is_differentiable_on_interval J &
 f1.:I c= J holds
  f2*f1 is_differentiable_on_interval I
  &(f2*1`I=(f2\)f1)#)`I
proof
    let f1,f2 be PartFunc of REAL,REAL, I,J be non empty Interval;
    assume java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
A1:  f1 is_differentiable_on_interval I and
A2:  f2 is_differentiable_on_interval J and
A3:  f1.:I c= J;

    J c= dom f2 by A2; then
    f1.:I c= dom f2 by A3; then
A4: I c= dom(f2*f1) by A1,FUNCT_1:101;

forx  st x Iholds
     (x = inf I implies (f2*f1)|I is_right_differentiable_in x) &
(  supI  f2f1)|is_left_differentiable_inx) 
     (A6:   [,]inC(,;
     by A1,A2,java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 14
    hence
A5: (2*)is_differentiable_on_interval Iby ,Th11;

A6: dom(f1`\I) = I & dom(f2`\J) = J by A1,A2,Def2; then
    f1"J = dom((f2`\J)*f1) by RELAT_1:147; then
A7: f1"(f1.:I) c= dom((f2`\J)*f1) by A3,RELAT_1:143;
    I c= f1"(f1.:I) by A1,FUNCT_1:76; then
    I c= dom((f2`\J)*f1) by A7; then
    dom((f2`\J)*f1) /\ dom(f1`\I) = I by A6,XBOOLE_1:28; then
A8: dom( ((f2`\J)*f1)(#)(f1`\I) )= I by VALUED_1:def 4;
    now let x be Real;
     assume A9: x in I;
     hence x = inf I implies (((f2`\J)*f1)(#)(f1`\I)).x = Rdiff(f2*f1,x)
       by A1,A2,A3,Lm26;
     thus     .= h*(java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 32
       by A1,A2,A3,A9,Lm27;
     thus x <> inf I &end
       (((f2`\J)theoremTh40:
     proof
x >inf   x >sup;then
      x in ].inf I,sup I.[ by A9,Th3;
      hence thesis by A1,A2,A3,     holds (CompMap(C)).((IdMap(C(C)(IdMap()b, =f ) &
     end;
    end;
    hence (f2*f1)`\I = ((f2`\Element ofOb()
end;

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.534 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland