Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  ndiff_3.miz   Sprache: Mizar

 

:: Differentiable Functions into Real Normed Spaces
::  by Hiroyuki Okazaki , Noboru Endou , Keiko Narita and Yasunari Shidama
::
:: Received October 13, 2010
:: Copyright (c) 2010-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, NORMSP_1, PRE_TOPC, PARTFUN1, FUNCT_1, NAT_1,
      FDIFF_1, SUBSET_1, RELAT_1, RCOMP_1, TARSKI, SEQ_1, ARYTM_3, VALUED_1,
      FUNCT_2, ARYTM_1, SEQ_2, ORDINAL2, SUPINF_2, FCONT_1, COMPLEX1, STRUCT_0,
      CARD_1, VALUED_0, XXREAL_0, FUNCOP_1, XXREAL_2, XBOOLE_0, XXREAL_1,
      FUNCT_7, ASYMPT_1;
 notations TARSKI, SUBSET_1, FUNCT_1, ORDINAL1, RELSET_1, PARTFUN1, FUNCT_2,
      FUNCOP_1, NUMBERS, XXREAL_0, XCMPLX_0, XREAL_0, REAL_1, NAT_1, VALUED_0,
      COMPLEX1, VALUED_1, SEQ_1, SEQ_2, RCOMP_1, FDIFF_1, STRUCT_0, PRE_TOPC,
      RLVECT_1, VFUNCT_1, NORMSP_0, NORMSP_1, NDIFF_1, NFCONT_3;
 constructors REAL_1, FDIFF_1, VFUNCT_1, NDIFF_1, RELSET_1, RVSUM_1, BINOP_2,
      INTEGR15, NAT_D, MEASURE6, NFCONT_3, COMSEQ_2, SEQ_1, NUMBERS;
 registrations RELSET_1, STRUCT_0, ORDINAL1, XREAL_0, MEMBERED, FUNCT_2,
      NUMBERS, VALUED_0, NORMSP_0, NORMSP_1, RELAT_1, SUBSET_1, FUNCOP_1,
      NAT_1, RCOMP_1, VALUED_1, SEQ_4, FDIFF_1, SEQ_1, SEQ_2;
 requirements SUBSET, REAL, BOOLE, NUMERALS, ARITHM;
 definitions XBOOLE_0, TARSKI;
 equalities RCOMP_1, SUBSET_1, XBOOLE_0;
 expansions RCOMP_1, XBOOLE_0, TARSKI;
 theorems TARSKI, ABSVALUE, XBOOLE_0, XBOOLE_1, RLVECT_1, XCMPLX_0, XCMPLX_1,
      ZFMISC_1, SEQ_1, SEQ_2, NAT_1, RELAT_1, FUNCT_1, VFUNCT_1, FUNCT_2,
      ORDINAL1, SEQ_4, NORMSP_1, LOPBAN_1, LOPBAN_3, PARTFUN1, PARTFUN2,
      FDIFF_1, NDIFF_1, FUNCOP_1, XREAL_1, COMPLEX1, XXREAL_0, VALUED_1,
      VALUED_0, NORMSP_0, XREAL_0, RCOMP_1, SEQM_3, RFUNCT_2, NFCONT_3;
 schemes FUNCT_2, SEQ_1;

begin :: Differentiable of Functions into a Real Normed Space

reserve F for RealNormSpace;
reserve G for RealNormSpace;
reserve X for set;
reserve x,x0,g,r,s,p for Real;
reserve n,m,k for Element of NAT;
reserve Y for Subset of REAL;
reserve Z for open Subset of REAL;
reserve s1,s3 for Real_Sequence;
reserve seq for sequence of G;
reserve f,f1,f2 for PartFunc of REAL,the carrier of F;
reserve h for 0-convergent non-zero Real_Sequence;
reserve c for constant Real_Sequence;

 set cs = seq_const 0;

theorem Th1:
  (for n holds ||. seq.n .|| <= s1.n) & s1 is convergent & lim s1=0 implies
    seq is convergent & lim(seq)=0.G
  proof
    assume that
    A1: for n holds ||. seq.n .|| <= s1.n and
    A2: s1 is convergent and
    A3: lim(s1)=0;
    now
      let p be Real;
      assume 0<p;
      then consider n being Nat such that
      A4: for m being Nat st n<=m holds |.s1.m-0 .|<p by A2,A3,SEQ_2:def 7;
      reconsider n as Element of NAT by ORDINAL1:def 12;
      now
        let m be Nat;
A5:      m in NAT by ORDINAL1:def 12;
        assume n<=m; then
        A6: |.s1.m-0 .|<p by A4;
        A7: ||. seq.m-0.G .|| = ||. seq.m .|| by RLVECT_1:13;
        A8: s1.m <= |.s1.m.| by ABSVALUE:4;
        ||. seq.m .|| <= s1.m by A1,A5;
        then ||. seq.m - 0.G .|| <= |.s1.m.| by A7,A8,XXREAL_0:2;
        hence ||. seq.m - 0.G .|| < p by A6,XXREAL_0:2;
      end;
      hence ex n being Nat st
          for m being Nat st n<=m holds ||. seq.m - (0.G) .|| < p;
    end; then
A9: for p be Real st 0<p
    ex n being Nat st for m being Nat st n<=m
    holds ||. seq.m - 0.G .|| < p;
    hence seq is convergent by NORMSP_1:def 6;
    hence thesis by A9,NORMSP_1:def 7;
  end;

theorem Th2:
  (s1^\k)(#)(seq^\k)= (s1(#)seq) ^\k
  proof
    now let n;
      thus ((s1(#)seq) ^\k).n=(s1(#)seq).(n+k) by NAT_1:def 3
      .=s1.(n+k)*seq.(n+k) by NDIFF_1:def 2
      .=(s1 ^\k).n*seq.(n+k) by NAT_1:def 3
      .=(s1 ^\k).n*(seq ^\k).n by NAT_1:def 3
      .=((s1 ^\k)(#)(seq ^\k)).n by NDIFF_1:def 2;
    end;
    hence thesis by FUNCT_2:63;
  end;

definition let F;
  let IT be PartFunc of REAL,the carrier of F;
  attr IT is RestFunc-like means :Def1:
  IT is total & for h holds (h")(#)(IT/*h) is convergent &
  lim ((h")(#)(IT/*h)) = 0.F;
end;

registration let F;
  cluster RestFunc-like for PartFunc of REAL,the carrier of F;
  existence
  proof
    take f = REAL --> 0.F;
    thus f is total;
    now
      let h;
      now let n be Nat;
        A2: rng h c= dom f;
        A3: n in NAT by ORDINAL1:def 12;
        thus ((h")(#)(f/*h)).n = (h").n*((f/*h).n) by NDIFF_1:def 2
        .= (h").n*(f.(h.n)) by A3,A2,FUNCT_2:108
        .= 0.F by RLVECT_1:10;
      end;
      then (h")(#)(f/*h) is constant & ((h")(#)(f/*h)).0 = 0.F by
VALUED_0:def 18;
      hence (h")(#)(f/*h) is convergent & lim ((h")(#)(f/*h))
      = 0.F by NDIFF_1:18;
    end;
    hence thesis;
  end;
end;

definition let F;
  mode RestFunc of F is RestFunc-like PartFunc of REAL,the carrier of F;
end;

definition let F;
  let IT be Function of REAL,the carrier of F;
  attr IT is linear means :Def2:
  ex r be Point of F st for p be Real holds IT/.p = p*r;
end;

registration let F;
  cluster linear for Function of REAL,the carrier of F;
  existence
  proof
    deffunc FG(Real) = $1*(0.F);
    consider f be Function of REAL, the carrier of F such that
A1: for x being Element of REAL holds f.x = FG(x) from FUNCT_2:sch 4;
A2: for x being Real holds f/.x = FG(x)
     proof let x be Real;
       reconsider x as Element of REAL by XREAL_0:def 1;
       f/.x = FG(x) by A1;
      hence thesis;
     end;
    take f;
    thus thesis by A2;
  end;
end;

definition let F;
  mode LinearFunc of F is linear Function of REAL,the carrier of F;
end;

reserve R,R1,R2 for RestFunc of F;
reserve L,L1,L2 for LinearFunc of F;

theorem Th3:
  L1+L2 is LinearFunc of F & L1-L2 is LinearFunc of F
  proof
    consider g1 be Point of F such that
A1: for p be Real holds L1/.p = p*g1 by Def2;
    consider g2 be Point of F such that
A2: for p be Real holds L2/.p = p*g2 by Def2;
A3: L1+L2 is total by VFUNCT_1:32;
    now
      let p be Real;
       reconsider pp=p as Element of REAL by XREAL_0:def 1;
      thus (L1+L2)/.p = L1/.pp + L2/.pp by VFUNCT_1:37
      .= p*g1 + L2/.pp by A1
      .= p*g1 + p*g2 by A2
      .= p*(g1+g2) by RLVECT_1:def 5;
    end;
    hence L1+L2 is LinearFunc of F by A3,Def2;
A4: L1-L2 is total by VFUNCT_1:32;
    now
      let p be Real;
       reconsider pp=p as Element of REAL by XREAL_0:def 1;
      thus (L1-L2)/.p = L1/.pp - L2/.pp by VFUNCT_1:37
      .= p*g1 - L2/.pp by A1
      .= p*g1 - p*g2 by A2
      .= p*(g1-g2) by RLVECT_1:34;
    end;
    hence thesis by A4,Def2;
  end;

theorem Th4:
  r(#)L is LinearFunc of F
  proof
    consider g be Point of F such that
A1: for p be Real holds L/.p = p*g by Def2;
A2: r(#)L is total by VFUNCT_1:34;
    now
      let p be Real;
       reconsider pp=p as Element of REAL by XREAL_0:def 1;
      thus (r(#)L)/.p = r*L/.pp by VFUNCT_1:39
      .= r*(p*g) by A1
      .= (r*p)*g by RLVECT_1:def 7
      .= p*(r*g) by RLVECT_1:def 7;
    end;
    hence thesis by A2,Def2;
  end;

theorem Th5:
  for h1,h2 be PartFunc of REAL, the carrier of F
  for seq be Real_Sequence st rng seq c= dom h1 /\ dom h2 holds
  (h1+h2)/*seq = h1/*seq+h2/*seq & (h1-h2)/*seq=h1/*seq - h2/*seq
  proof
    let h1,h2 be PartFunc of REAL,the carrier of F;
    let seq be Real_Sequence;
    A1: dom h1 /\ dom h2 c= dom h1 by XBOOLE_1:17;
    A2: dom h1 /\ dom h2 c= dom h2 by XBOOLE_1:17;
    assume
    A3: rng seq c= dom h1 /\ dom h2; then
    A4: rng seq c= dom (h1 + h2) by VFUNCT_1:def 1;
    now let n be Nat;
A5:   n in NAT by ORDINAL1:def 12;
      A6:seq.n in rng seq by FUNCT_2:4,A5;
      thus ((h1+h2)/*seq).n = (h1+h2)/.(seq.n) by A4,FUNCT_2:109,A5
      .= h1/.(seq.n) + h2/.(seq.n) by A4,A6,VFUNCT_1:def 1
      .= (h1/*seq).n + h2/.(seq.n) by A3,A1,FUNCT_2:109,XBOOLE_1:1,A5
      .= (h1/*seq).n + (h2/*seq).n by A3,A2,FUNCT_2:109,XBOOLE_1:1,A5;
    end;
    hence (h1+h2)/*seq=h1/*seq+h2/*seq by NORMSP_1:def 2;
    A7: rng seq c= dom (h1 - h2) by A3,VFUNCT_1:def 2;
    now
      let n be Nat;
A8:   n in NAT by ORDINAL1:def 12;
      A9:seq.n in rng seq by FUNCT_2:4,A8;
      thus ((h1-h2)/*seq).n = (h1-h2)/.(seq.n) by A7,FUNCT_2:109,A8
      .= h1/.(seq.n) - h2/.(seq.n) by A7,A9,VFUNCT_1:def 2
      .= (h1/*seq).n - h2/.(seq.n) by A3,A1,FUNCT_2:109,XBOOLE_1:1,A8
      .= (h1/*seq).n - (h2/*seq).n by A3,A2,FUNCT_2:109,XBOOLE_1:1,A8;
    end;
    hence thesis by NORMSP_1:def 3;
  end;

theorem Th6:
  for h1,h2 be PartFunc of REAL,the carrier of F
  for seq be Real_Sequence st h1 is total & h2 is total holds
  (h1+h2)/*seq = h1/*seq + h2/*seq & (h1-h2)/*seq = h1/*seq - h2/*seq
  proof
    let h1,h2 be PartFunc of REAL,the carrier of F;
    let seq be Real_Sequence;
    assume h1 is total & h2 is total;
    then h1+h2 is total by VFUNCT_1:32;
    then dom (h1+h2) = REAL by PARTFUN1:def 2;
    then dom h1 /\ dom h2 = REAL by VFUNCT_1:def 1;then
A1: rng seq c= dom h1 /\ dom h2;
    hence (h1+h2)/*seq = h1/*seq + h2/*seq by Th5;
    thus thesis by A1,Th5;
  end;

theorem Th7:
  R1+R2 is RestFunc of F & R1-R2 is RestFunc of F
  proof
    A1: R1 is total & R2 is total by Def1;
    A2: now
    let h;
    A3: (h")(#)((R1+R2)/*h) = (h")(#)((R1/*h)+(R2/*h)) by A1,Th6
    .= ((h")(#)(R1/*h))+((h")(#)(R2/*h)) by NDIFF_1:9;
    A4: (h")(#)(R1/*h) is convergent & (h")(#)(R2/*h) is convergent by Def1;
    hence (h")(#)((R1+R2)/*h) is convergent by A3,NORMSP_1:19;
    lim ((h")(#)(R1/*h)) = 0.F & lim ((h")(#)(R2/*h)) = 0.F by Def1;
    hence lim ((h")(#)((R1+R2)/*h)) = 0.F+0.F by A4,A3,NORMSP_1:25
    .= 0.F by RLVECT_1:def 4;
  end;
  R1+R2 is total by A1,VFUNCT_1:32;
  hence R1+R2 is RestFunc of F by A2,Def1;
  A5: now let h;
  A6: (h")(#)((R1-R2)/*h) = (h")(#)((R1/*h)-(R2/*h)) by A1,Th6
  .= ((h")(#)(R1/*h))-((h")(#)(R2/*h)) by NDIFF_1:12;
  A7: (h")(#)(R1/*h) is convergent & (h")(#)(R2/*h) is convergent by Def1;
  hence (h")(#)((R1-R2)/*h) is convergent by A6,NORMSP_1:20;
  lim ((h")(#)(R1/*h)) = 0.F & lim ((h")(#)(R2/*h)) = 0.F by Def1;
  hence lim ((h")(#)((R1-R2)/*h)) = 0.F-0.F by A7,A6,NORMSP_1:26
  .= 0.F by RLVECT_1:13;
end;
R1-R2 is total by A1,VFUNCT_1:32;
hence R1-R2 is RestFunc of F by A5,Def1;
end;

theorem Th8:
  r(#)R is RestFunc of F
  proof
    A1: R is total by Def1; then
    A2:r(#)R is total by VFUNCT_1:34;
    now let h;
      dom R = REAL by A1,FUNCT_2:def 1; then
      rng h c= dom R; then
      A3: (h")(#)((r(#)R)/*h) = (h")(#)(r*(R/*h)) by NFCONT_3:4
      .= r*((h")(#)(R/*h)) by NDIFF_1:10;
      A4: (h")(#)(R/*h) is convergent by Def1;
      hence (h")(#)((r(#)R)/*h) is convergent by A3,NORMSP_1:22;
      lim ((h")(#)(R/*h)) = 0.F by Def1;
      hence lim ((h")(#)((r(#)R)/*h)) = r*0.F by A4,A3,NORMSP_1:28
      .= 0.F by RLVECT_1:10;
    end;
    hence thesis by A2,Def1;
  end;

definition let F,f;
  let x0 be Real;
  pred f is_differentiable_in x0 means
  ex N being Neighbourhood of x0
  st N c= dom f & ex L,R st for x st x in N
  holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0);
end;

definition
  let F,f;
  let x0 be Real;
  assume
  A1: f is_differentiable_in x0;
  func diff(f,x0) -> Point of F means
:Def4:
  ex N being Neighbourhood of x0 st N c= dom f & ex L,R st it=L/.1
  & for x st x in N holds f/.x-f/.x0 = L/.(x-x0) + R/.(x-x0);
  existence
  proof
    consider N being Neighbourhood of x0 such that
    A2: N c= dom f and
    A3: ex L,R st for x st x in N
    holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0) by A1;
    consider L,R such that
    A4: for x st x in N holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0) by A3;
    consider r be Point of F such that
    A5: for p be Real holds L/.p = p*r by Def2;
    take r;
    L/.1=1*r by A5
    .=r by RLVECT_1:def 8;
    hence thesis by A2,A4;
  end;
  uniqueness
  proof
    let r,s be Point of F;
    assume that
    A6: ex N being Neighbourhood of x0 st N c= dom f & ex L,R st r=L/.1 &
    for x be Real st x in N holds f/.x-f/.x0 = L/.(x-x0)+R/.(x-x0) and
    A7: ex N being Neighbourhood of x0 st N c= dom f & ex L,R st s=L/.1 &
    for x be Real st x in N holds f/.x-f/.x0 = L/.(x-x0) + R/.(x-x0);
    consider N being Neighbourhood of x0 such that
    N c= dom f and
    A8: ex L,R st r=L/.1 & for x be Real
    st x in N holds f/.x-f/.x0 = L/.(x-x0)+R/.(x-x0) by A6;
    consider L,R such that
    A9: r=L/.1 and
    A10: for x be Real
      st x in N holds f/.x-f/.x0 = L/.(x-x0) + R/.(x-x0) by A8;
    consider r1 be Point of F such that
    A11: for p be Real holds L/.p = p*r1 by Def2;
    consider N1 being Neighbourhood of x0 such that
    N1 c= dom f and
    A12: ex L,R st s=L/.1 & for x be Real st x in N1
    holds f/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A7;
    consider L1,R1 such that
    A13: s =L1/.1 and
    A14: for x be Real st x in N1
    holds f/.x-f/.x0 = L1/.(x-x0) + R1/.(x-x0) by A12;
    consider p1 be Point of F such that
    A15: for p be Real holds L1/.p = p*p1 by Def2;
    consider N0 be Neighbourhood of x0 such that
    A16: N0 c= N & N0 c= N1 by RCOMP_1:17;
    consider g be Real such that
    A17: 0<g and
    A18: N0 = ].x0-g,x0+g.[ by RCOMP_1:def 6;
    deffunc F(Nat) = g/($1+2);
    consider s1 such that
    A19: for n being Nat holds s1.n = F(n) from SEQ_1:sch 1;
    now
      let n be Nat;
      0<>g/(n+2) by A17,XREAL_1:139;
      hence 0<>s1.n by A19;
    end; then
    A20: s1 is non-zero by SEQ_1:5;
    s1 is convergent & lim s1 = 0 by A19,SEQ_4:31;
    then reconsider h = s1 as 0-convergent non-zero Real_Sequence
      by A20,FDIFF_1:def 1;
    A21: for n ex x be Real st x in N & x in N1 & h.n=x-x0
    proof
      let n;
      take x=x0+g/(n+2);
      reconsider z0=0 as Element of NAT;
      z0 + 1 < n+1+1 by XREAL_1:6;
      then g/(n+2)<g/1 by A17,XREAL_1:76; then
      A22: x0 + g/(n+2)<x0 + g by XREAL_1:6;
      0<g/(n+2) by A17,XREAL_1:139;
      then x0+-g<x0+g/(n+2) by A17,XREAL_1:6;
      then x0+g/(n+2) in ].x0-g,x0+g.[ by A22;
      hence thesis by A16,A18,A19;
    end;
    A23: s=1*p1 by A13,A15;
    A24: r=1*r1 by A9,A11;
    A25: now
    let x be Real;
    assume that
    A26: x in N and
    A27: x in N1;
    f/.x-f/.x0 = L/.(x-x0) + R/.(x-x0) by A10,A26;
    then L/.(x-x0) + R/.(x-x0) = L1/.(x-x0) + R1/.(x-x0) by A14,A27;
    then (x-x0)*r1 + R/.(x-x0) = L1/.(x-x0) + R1/.(x-x0) by A11;
    then ((x-x0)*1) *r1 + R/.(x-x0) = ((x-x0)*1)*p1 + R1/.(x-x0) by A15;
    then ((x-x0)*1) *r + R/.(x-x0) = ((x-x0)*1)*p1 + R1/.(x-x0)
    by A24,RLVECT_1:def 7;
    hence (x-x0)*r + R/.(x-x0) = (x-x0)*s + R1/.(x-x0) by A23,RLVECT_1:def 7;
  end;
  now
    R1 is total by Def1;
    then dom R1 = REAL by PARTFUN1:def 2; then
    A28: rng h c= dom R1;
    let n be Nat;
    R is total by Def1;
    then dom R = REAL by PARTFUN1:def 2; then
    A29: rng h c= dom R;
    A30: n in NAT by ORDINAL1:def 12;
    then ex x be Real st x in N & x in N1 & h.n=x-x0 by A21;
    then (h.n)*r + R/.(h.n) = (h.n)*s + R1/.(h.n) by A25; then
    (1/(h.n))*((h.n)*r)+(1/(h.n))*(R/.(h.n))
    =(1/(h.n))*((h.n)*s+R1/.(h.n)) by RLVECT_1:def 5; then
    ((1/(h.n))*(h.n))*r +(1/(h.n))*(R/.(h.n))
    =(1/(h.n))*((h.n)*s+R1/.(h.n)) by RLVECT_1:def 7;
    then A31:
    ((1/(h.n))*(h.n))*r +(1/(h.n))*(R/.(h.n))
    =(1/(h.n))*((h.n)*s)+ (1/(h.n))*(R1/.(h.n)) by RLVECT_1:def 5;
    A32: (1/(h.n))*(R/.(h.n)) = (h.n)"*(R/.(h.n)) by XCMPLX_1:215
    .= (h".n)*(R/.(h.n)) by VALUED_1:10
    .= (h".n)*((R/*h).n) by A30,A29,FUNCT_2:109
    .= ((h")(#)(R/*h)).n by NDIFF_1:def 2;
    A33: h.n <> 0 by SEQ_1:5;
    A34: (1/(h.n))*(R1/.(h.n)) = (h.n)"*(R1/.(h.n)) by XCMPLX_1:215
    .= (h".n)*(R1/.(h.n)) by VALUED_1:10
    .= (h".n)*((R1/*h).n) by A30,A28,FUNCT_2:109
    .= ((h")(#)(R1/*h)).n by NDIFF_1:def 2;
    A35: ((1/(h.n))*(h.n))*s = 1*s by A33,XCMPLX_1:106
    .= s by RLVECT_1:def 8;
    ((1/(h.n))*(h.n))*r = 1*r by A33,XCMPLX_1:106
    .= r by RLVECT_1:def 8;
    then r + ((h")(#)(R/*h)).n
    = s + ((h")(#)(R1/*h)).n by A31,A35,A32,A34,RLVECT_1:def 7; then
    r +( ((h")(#)(R/*h)).n - ((h")(#)(R/*h)).n )
    = s + ((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n by RLVECT_1:28; then
    r +( ((h")(#)(R/*h)).n - ((h")(#)(R/*h)).n )
    = s +( ((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n ) by RLVECT_1:28; then
    r + 0.F = s +( ((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n ) by RLVECT_1:15;
    then r = s + (((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n) by RLVECT_1:4;
    then
    r -s = (((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n) +(s-s) by RLVECT_1:28;
    then
    r -s = (((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n) +0.F by RLVECT_1:15;
    then
    A36: r -s = ((h")(#)(R1/*h)).n - ((h")(#)(R/*h)).n by RLVECT_1:4;
    thus r - s = (((h")(#)(R1/*h))-((h")(#)(R/*h))).n by A36,NORMSP_1:def 3;
  end; then
  ((h")(#)(R1/*h))-((h")(#)(R/*h)) is constant & (((h")(#)(R1/*h))-((h"
  )(#)(R /*h))).0 = r-s by VALUED_0:def 18; then
  A37: lim ( (h")(#)(R1/*h)-(h")(#)(R/*h) ) = r-s by NDIFF_1:18;
  A38: (h")(#)(R1/*h) is convergent & lim ((h")(#)(R1/*h)) = 0.F by Def1;
  (h")(#)(R/*h) is convergent & lim ((h")(#)(R/*h)) = 0.F by Def1;
  then r-s = 0.F-0.F by A37,A38,NORMSP_1:26;
  hence thesis by RLVECT_1:13,21;
end;
end;

definition let F,f,X;
  pred f is_differentiable_on X means
  X c= dom f & for x st x in X holds f|X is_differentiable_in x;
end;

theorem Th9:
  f is_differentiable_on X implies X is Subset of REAL
  by XBOOLE_1:1;

theorem Th10:
  f is_differentiable_on Z iff Z c= dom f & for x st x in Z holds
  f is_differentiable_in x
  proof
    thus f is_differentiable_on Z implies Z c=dom f & for x st x in Z holds
    f is_differentiable_in x
    proof
      assume
      A1: f is_differentiable_on Z;
      hence A2: Z c=dom f;
      let x0;
      assume
      A3: x0 in Z;
      then f|Z is_differentiable_in x0 by A1;
      then consider N being Neighbourhood of x0 such that
A4:   N c= dom(f|Z) and
A5:   ex L,R st for x st x in N
      holds (f|Z)/.x-(f|Z)/.x0=L/.(x-x0)+R/.(x-x0);
      take N;
      dom(f|Z)=dom f/\Z by RELAT_1:61;
      then dom(f|Z) c=dom f by XBOOLE_1:17;
      hence N c= dom f by A4;
      consider L,R such that
A6:   for x st x in N holds (f|Z)/.x - (f|Z)/.x0
      = L/.(x-x0) + R/.(x-x0) by A5;
      now let x;
        assume
        A7: x in N;
        then A8: (f|Z)/.x-(f|Z)/.x0=L/.(x-x0)+R/.(x-x0) by A6;
        f/.x-(f|Z)/.x0=L/.(x-x0)+R/.(x-x0) by A8,A4,A7,PARTFUN2:15;
        hence f/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A2,A3,PARTFUN2:17;
      end;
      hence thesis;
    end;
    assume that
    A9: Z c=dom f and
    A10: for x st x in Z holds f is_differentiable_in x;
    thus Z c=dom f by A9;
    let x0;
    assume
    A11: x0 in Z;
    then consider N1 being Neighbourhood of x0 such that
    A12: N1 c= Z by RCOMP_1:18;
    f is_differentiable_in x0 by A10,A11;
    then consider N being Neighbourhood of x0 such that
    A13: N c= dom f and
    A14: ex L,R st for x st x in N holds f/.x-f/.x0=L/.(x-x0)+R/.(x-x0);
    consider N2 being Neighbourhood of x0 such that
    A15: N2 c= N1 and
    A16: N2 c= N by RCOMP_1:17;
    A17: N2 c= Z by A12,A15;
    take N2;
    N2 c= dom f by A13,A16;
    then N2 c= dom f/\Z by A17,XBOOLE_1:19;
    hence
    A18: N2 c= dom(f|Z) by RELAT_1:61;
    consider L,R such that
    A19: for x st x in N holds f/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A14;
    A20: x0 in N2 by RCOMP_1:16;
    take L,R;
    now let x;
      assume
      A21: x in N2;
      then f/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A16,A19;
      then (f|Z)/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A21,A18,PARTFUN2:15;
      hence (f|Z)/.x-(f|Z)/.x0=L/.(x-x0)+R/.(x-x0) by A20,A18,PARTFUN2:15;
    end;
    hence thesis;
  end;

theorem
  f is_differentiable_on Y implies Y is open
  proof
    assume
A1: f is_differentiable_on Y;
    now
      let x0 be Element of REAL;
      assume x0 in Y;
      then f|Y is_differentiable_in x0 by A1;
      then consider N being Neighbourhood of x0 such that
      A2: N c= dom(f|Y) and
      ex L,R st for x st x in N
      holds (f|Y)/.x-(f|Y)/.x0=L/.(x-x0)+R/.(x-x0);
      take N;
      thus N c= Y by A2,XBOOLE_1:1;
    end;
    hence thesis by RCOMP_1:20;
  end;

definition let F,f,X;
  assume
  A1: f is_differentiable_on X;
  func f`|X -> PartFunc of REAL,the carrier of F means  :Def6:
  dom it = X & for x st x in X holds it.x = diff(f,x);
  existence
  proof
    deffunc FG(Real) = diff(f,$1);
    defpred P[set] means $1 in X;
    consider F0 being PartFunc of REAL,the carrier of F such that
    A2: (for x being Element of REAL holds x in dom F0 iff P[x]) &
      for x being Element of REAL st x in dom F0
    holds F0.x = FG(x) from SEQ_1:sch 3;
    take F0;
    now
      A3: X is Subset of REAL by A1,Th9;
      let y be object;
      assume y in X;
      hence y in dom F0 by A2,A3;
    end; then
    A4: X c= dom F0;
    for y be object st y in dom F0 holds y in X by A2;
    then dom F0 c= X;
    hence dom F0 = X by A4;
    now
      let x;
       reconsider xx=x as Element of REAL by XREAL_0:def 1;
      assume x in X;
      then xx in dom F0 by A2;
      hence F0.x = diff(f,x) by A2;
    end;
    hence thesis;
  end;
  uniqueness
  proof
    let F0,G0 be PartFunc of REAL,the carrier of F;
    assume that
    A5: dom F0 = X and
    A6: for x st x in X holds F0.x = diff(f,x) and
    A7: dom G0 = X and
    A8: for x st x in X holds G0.x = diff(f,x);
    now
      let x be Element of REAL;
      assume
      A9: x in dom F0;
      then F0.x = diff(f,x) by A5,A6;
      hence F0.x=G0.x by A5,A8,A9;
    end;
    hence thesis by A5,A7,PARTFUN1:5;
  end;
end;

reconsider jj=1 as Element of REAL by XREAL_0:def 1;

theorem
  (Z c= dom f & ex r be Point of F st rng f = {r})
  implies f is_differentiable_on Z &
  for x st x in Z holds (f`|Z)/.x = 0.F
  proof
    set R = REAL --> 0.F;
    A1: dom R = REAL;
    now let h;
      now let n be Nat;
        A2: rng h c= dom R;
        A3: n in NAT by ORDINAL1:def 12;
        thus ((h")(#)(R/*h)).n = (h".n)*((R/*h).n) by NDIFF_1:def 2
        .= (h".n)*(R/.(h.n)) by A3,A2,FUNCT_2:108
        .= 0.F by RLVECT_1:10;
      end; then
      (h")(#)(R/*h) is constant
      & ((h")(#)(R/*h)).0 = 0.F by VALUED_0:def 18;
      hence (h")(#)(R/*h) is convergent &
      lim ((h")(#)(R/*h)) = 0.F by NDIFF_1:18;
    end;
    then reconsider R as RestFunc of F by Def1;
    reconsider L = (REAL --> 0.F) as Function of REAL,F;
    now let p be Real;
       reconsider pp=p as Element of REAL by XREAL_0:def 1;
      thus L/.p = L/.pp
      .= (0.F)
      .= p*(0.F) by RLVECT_1:10;
    end;
    then reconsider L as LinearFunc of F by Def2;
    assume
    A4: Z c= dom f;
    given r be Point of F such that
    A5: rng f = {r};
    A6: now let x0;
    assume A7: x0 in dom f;
    then f/.x0 = f.x0 by PARTFUN1:def 6;
    then f/.x0 in {r} by A5,A7,FUNCT_1:def 3;
    hence f/.x0 = r by TARSKI:def 1;
  end;
  A8: now
  let x0;
  assume
  A9: x0 in Z;
  then consider N being Neighbourhood of x0 such that
  A10: N c= Z by RCOMP_1:18;
  A11: N c= dom f by A4,A10;
  for x st x in N holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0)
  proof
    let x;
A12:     x-x0 in REAL by XREAL_0:def 1;
    then
    A13: R/.(x-x0)=R.(x-x0) by A1,PARTFUN1:def 6
    .= 0.F by FUNCOP_1:7,A12;
    assume x in N;
    hence f/.x - f/.x0 = r - f/.x0 by A6,A11
    .= r - r by A4,A6,A9
    .=0.F by RLVECT_1:15
    .=L.(x-x0) by FUNCOP_1:7,A12
    .=L/.(x-x0) by A1,PARTFUN1:def 6,A12
    .=L/.(x-x0) + R/.(x-x0) by A13,RLVECT_1:4;
  end;
  hence f is_differentiable_in x0 by A11;
end;
hence
A14: f is_differentiable_on Z by A4,Th10;
let x0;
assume
A15: x0 in Z; then
A16: f is_differentiable_in x0 by A8;
then ex N being Neighbourhood of x0 st N c= dom f & ex L,R st for x st x in
N holds f/.x-f/.x0=L/.(x-x0)+R/.(x-x0);
then consider N being Neighbourhood of x0 such that
A17: N c= dom f;
A18: for x st x in N holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0)
proof
  let x;
A19: x-x0 in REAL by XREAL_0:def 1;
  then
  A20: R/.(x-x0)=R.(x-x0) by A1,PARTFUN1:def 6
  .= 0.F by FUNCOP_1:7,A19;
  assume x in N;
  hence f/.x - f/.x0 = r - f/.x0 by A6,A17
  .=r - r by A4,A6,A15
  .=0.F by RLVECT_1:15
  .=L.(x-x0) by FUNCOP_1:7,A19
  .=L/.(x-x0) by A1,PARTFUN1:def 6,A19
  .=L/.(x-x0) + R/.(x-x0) by A20,RLVECT_1:4;
end;
dom ((f`|Z)) = Z by A14,Def6;
hence (f`|Z)/.x0 =(f`|Z).x0 by A15,PARTFUN1:def 6
.= diff(f,x0) by A14,A15,Def6
.= L/.jj by A16,A17,A18,Def4
.=0.F;
end;

theorem Th13:
  for x0 being Real for N being Neighbourhood of x0 st
  f is_differentiable_in x0 & N c= dom f holds for h,c st rng c = {x0}
  & rng (h+c)c= N
  holds h"(#)((f/*(h+c)) - f/*c) is convergent
  & diff(f,x0) = lim (h"(#)((f/*(h+c)) - f/*c))
  proof
    let x0 be Real;
    let N be Neighbourhood of x0;
    assume that
    A1: f is_differentiable_in x0 and
    A2: N c= dom f;
    consider N1 be Neighbourhood of x0 such that
    N1 c= dom f and
    A3: ex L,R st for x st x in N1 holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0)
by A1;
    consider N2 be Neighbourhood of x0 such that
    A4: N2 c= N and
    A5: N2 c= N1 by RCOMP_1:17;
    A6: N2 c= dom f by A2,A4;
    let h,c such that
    A7: rng c = {x0} and
    A8: rng (h+c) c= N;
    consider g be Real such that
    A9: 0<g and
    A10: N2 = ].x0-g,x0+g.[ by RCOMP_1:def 6;
    reconsider z0=0 as Nat;
    x0 + z0 < x0 + g & x0 - g < x0 - 0 by A9,XREAL_1:8,15; then
    A11: x0 in N2 by A10;
    now let y be object;
      assume y in rng c;
      then y = x0 by A7,TARSKI:def 1;
      then y in N by A4,A11;
      hence y in dom f by A2;
    end; then
    A12: rng c c= dom f;
    ex n st rng (c^\n) c= N2 & rng ((h+c)^\n) c= N2
    proof
      x0 in rng c by A7,TARSKI:def 1; then
      A13: lim c = x0 by SEQ_4:25;
      reconsider z0=0 as Real;
      lim h = z0;
      then lim (h + c) = z0 + x0 by A13,SEQ_2:6
      .= x0;
      then consider n being Nat such that
      A14: for m being Nat st n<=m holds |.(h+c).m-x0.|<g
            by A9,SEQ_2:def 7;
       reconsider n as Element of NAT by ORDINAL1:def 12;
      take n;
      A15: rng (c^\n) = {x0} by A7,VALUED_0:26;
      for y be object st y in rng (c^\n) holds
      y in N2 by A11,A15,TARSKI:def 1;
      hence rng(c^\n) c= N2;
      now let y be object;
        assume y in rng ((h+c)^\n);
        then consider m such that
        A16: y = ((h+c)^\n).m by FUNCT_2:113;
        reconsider z0=0 as Nat;
        n + z0 <= n+m by XREAL_1:7; then
        A17: |.(h+c).(n+m)-x0.|<g by A14;
        then (h+c).(m+n) - x0 < g by SEQ_2:1;
        then ((h+c)^\n).m - x0 < g by NAT_1:def 3; then
        A18: ((h+c)^\n).m < x0 + g by XREAL_1:19;
        -g < (h+c).(m+n) - x0 by A17,SEQ_2:1;
        then -g < ((h+c)^\n).m - x0 by NAT_1:def 3;
        then x0 +-g < ((h+c)^\n).m by XREAL_1:20;
        hence y in N2 by A10,A16,A18;
      end;
      hence rng ((h+c)^\n) c= N2;
    end;
    then consider n such that
    rng (c^\n) c= N2 and
    A19: rng ((h+c)^\n) c= N2;
    consider L,R such that
    A20: for x st x in N1 holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0) by A3;
    now let y be object;
      assume
      A21: y in rng (c^\n);
      rng (c^\n) = rng c by VALUED_0:26;
      then y = x0 by A7,A21,TARSKI:def 1;
      then y in N by A4,A11;
      hence y in dom f by A2;
    end;
    then
    A22: rng (c^\n) c= dom f;
    A23: (h^\n)"(#)(L/*(h^\n) + R/*(h^\n)) is convergent &
    lim ((h^\n)"(#)(L/*(h^\n) + R/*(h^\n))) = L/.1
    proof
      deffunc F0(Element of NAT) = L.jj + ((h^\n)"(#)(R/*(h^\n))).$1;
      consider s1 be sequence of the carrier of F such that
      A24: for k holds s1.k = F0(k) from FUNCT_2:sch 4;
A25: now
      A26: ((h^\n)")(#)(R/*(h^\n)) is convergent & lim (((h^\n)")(#) (R/*(h^\n
      )))=0.F by Def1;
      let r be Real;
      assume 0<r;
      then consider m be Nat such that
      A27: for k be Nat
      st m<=k holds ||.(((h^\n)")(#) (R/*(h^\n))).k
      - 0.F .|| <r by A26,NORMSP_1:def 7;
      take n1=m;
      let k be Nat such that
      A28: n1<=k;
A29:   k in NAT by ORDINAL1:def 12;
      A30: ||. s1.k -L/.jj .||
      = ||. L.jj + ((h^\n)"(#)(R/*(h^\n))).k - L/.jj .|| by A24,A29
      .= ||. (((h^\n)")(#)(R/*(h^\n))).k + (L/.jj - L/.jj) .|| by RLVECT_1:28
      .= ||. (((h^\n)")(#)(R/*(h^\n))).k + 0.F .|| by RLVECT_1:15
      .= ||. (((h^\n)")(#)(R/*(h^\n))).k .|| by RLVECT_1:4;
      ||. (((h^\n)")(#)(R/*(h^\n))).k -0.F .|| < r by A27,A28;
      hence ||. s1.k -L/.jj .|| <r by A30,RLVECT_1:13;
    end;
    consider s be Point of F such that
    A31: for p1 be Real holds L/.p1=p1*s by Def2;
    A32: L/.jj = 1*s by A31
    .= s by RLVECT_1:def 8;
    now
      let m;
      A33: (h^\n).m <> 0 by SEQ_1:5;
      thus ((h^\n)"(#)(L/*(h^\n) + R/*(h^\n))).m
      = ((h^\n)"(#)(L/*(h^\n)) + (h^\n)"(#)(R/*(h^\n))).m by NDIFF_1:9
      .= ((h^\n)"(#)(L/*(h^\n))).m + ((h^\n)"(#)(R/*(h^\n))).m
        by NORMSP_1:def 2
      .= ((h^\n)").m*(L/*(h^\n)).m + ((h^\n)"(#)(R/*(h^\n))).m
        by NDIFF_1:def 2
      .= ((h^\n)").m*(L/.((h^\n).m)) + ((h^\n)"(#)(R/*(h^\n))).m
        by FUNCT_2:115
      .= ((h^\n)").m*(((h^\n).m)*s) + ((h^\n)"(#)(R/*(h^\n))).m by A31
      .= ((h^\n).m)"*(((h^\n).m) *s) + ((h^\n)"(#)(R/*(h^\n))).m
        by VALUED_1:10
      .= ((h^\n).m)"*(((h^\n).m)) *s + ((h^\n)"(#)(R/*(h^\n))).m
        by RLVECT_1:def 7
      .= 1*s + ((h^\n)"(#)(R/*(h^\n))).m by A33,XCMPLX_0:def 7
      .= s + ((h^\n)"(#)(R/*(h^\n))).m by RLVECT_1:def 8
      .= s1.m by A24,A32;
    end; then
    A34: (h^\n)"(#)(L/*(h^\n) + R/*(h^\n)) = s1 by FUNCT_2:63;
    hence (h^\n)"(#)(L/*(h^\n) + R/*(h^\n)) is convergent
      by A25,NORMSP_1:def 6;
    hence thesis by A34,A25,NORMSP_1:def 7;
  end;
  for y being object st y in rng ((h+c)^\n) holds y in dom f by A2,A4,A19;
  then
  A35: rng ((h+c)^\n) c= dom f;
  for y being object st y in rng (h+c) holds y in dom f by A2,A8;
  then
  A36: rng (h+c) c= dom f;
  A37: for k holds f/.(((h+c)^\n).k) - f/.((c^\n).k)
  = L/.((h^\n).k) + R/.((h^\n). k)
  proof
    let k;
    ((h+c)^\n).k in rng ((h+c)^\n) by VALUED_0:28; then
    A38: ((h+c)^\n).k in N2 by A19;
    (c^\n).k in rng (c^\n) & rng (c^\n) = rng c by VALUED_0:26,28; then
    A39: (c^\n).k = x0 by A7,TARSKI:def 1;
    ((h+c)^\n).k - (c^\n).k = (h^\n + c^\n).k - (c^\n).k by SEQM_3:15
    .= (h^\n).k + (c^\n).k - (c^\n).k by SEQ_1:7
    .= (h^\n).k;
    hence thesis by A20,A5,A38,A39;
  end;
  A40: R is total by Def1;
  now
    let k;
    dom R = REAL by A40,FUNCT_2:def 1; then
    A41:rng (h^\n) c= dom R;
    thus (f/*((h+c)^\n)-f/*(c^\n)).k
    = (f/*((h+c)^\n)).k-(f/*(c^\n)).k by NORMSP_1:def 3
    .= f/.(((h+c)^\n).k) - (f/*(c^\n)).k by A35,FUNCT_2:109
    .= f/.(((h+c)^\n).k) - f/.((c^\n).k) by A22,FUNCT_2:109
    .= L/.((h^\n).k) + R/.((h^\n).k) by A37
    .= (L/*(h^\n)).k + R/.((h^\n).k) by FUNCT_2:115
    .= (L/*(h^\n)).k + (R/*(h^\n)).k by A41,FUNCT_2:109
    .= (L/*(h^\n) + R/*(h^\n)).k by NORMSP_1:def 2;
  end;
  then f/*((h+c)^\n) - f/*(c^\n) = L/*(h^\n) + R/*(h^\n) by FUNCT_2:63; then
  A42: ((h^\n)"(#)(L/*(h^\n) + R/*(h^\n)))
  = ( ( h^\n)"(#)(((f/*(h+c))^\n)-f/*(c^\n))) by A36,VALUED_0:27
  .=((h^\n)"(#)(((f/*(h+c))^\n)-((f/*c)^\n))) by A12,VALUED_0:27
  .=((h^\n)"(#)(((f/*(h+c))-(f/*c))^\n)) by NDIFF_1:16
  .=(((h")^\n)(#)(((f/*(h+c))-(f/*c))^\n)) by SEQM_3:18
  .=(( h"(#)((f/*(h+c))-(f/*c)))^\n) by Th2; then
  A43: L/.1 = lim ((h")(#)((f/*(h+c)) - (f/*c))) by A23,LOPBAN_3:11;
  thus h" (#) (f/*(h+c) - f/*c) is convergent by A23,A42,LOPBAN_3:10;
  for x st x in N2 holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0) by A20,A5;
  hence thesis by A1,A6,A43,Def4;
end;

theorem Th14:
  f1 is_differentiable_in x0 & f2 is_differentiable_in x0 implies
  f1+f2 is_differentiable_in x0 & diff(f1+f2,x0)=diff(f1,x0)+diff(f2,x0)
  proof
    assume that
    A1: f1 is_differentiable_in x0 and
    A2: f2 is_differentiable_in x0;
    consider N1 be Neighbourhood of x0 such that
    A3: N1 c= dom f1 and
    A4: ex L,R st for x st x in N1 holds f1/.x - f1/.x0 = L/.(x-x0) + R/.(x-x0)
    by A1;
    consider L1,R1 such that
    A5: for x st x in N1 holds f1/.x - f1/.x0 = L1/.(x-x0) + R1/.(x-x0) by A4;
    consider N2 be Neighbourhood of x0 such that
    A6: N2 c= dom f2 and
    A7: ex L,R st for x st x in N2 holds f2/.x - f2/.x0 = L/.(x-x0) + R/.(x-x0)
    by A2;
    consider L2,R2 such that
    A8: for x st x in N2 holds f2/.x - f2/.x0 = L2/.(x-x0) + R2/.(x-x0) by A7;
    reconsider R=R1+R2 as RestFunc of F by Th7;
    reconsider L=L1+L2 as LinearFunc of F by Th3;
    consider N be Neighbourhood of x0 such that
    A9: N c= N1 and
    A10: N c= N2 by RCOMP_1:17;
    A11: N c= dom f2 by A6,A10;
    N c= dom f1 by A3,A9;
    then N /\ N c= dom f1 /\ dom f2 by A11,XBOOLE_1:27; then
    A12: N c= dom (f1+f2) by VFUNCT_1:def 1;
 R1 is total & R2 is total by Def1; then
    R1+R2 is total by VFUNCT_1:32; then
    A13: dom (R1+R2) = REAL by FUNCT_2:def 1;
  L1+L2 is total by VFUNCT_1:32; then
    A14: dom (L1+L2) = REAL by FUNCT_2:def 1;
    A15: now let x;
    A16: x0 in N by RCOMP_1:16;
A17:  x - x0 in REAL by XREAL_0:def 1;

    assume
    A18: x in N;
    hence (f1+f2)/.x - (f1+f2)/.x0 = (f1/.x+f2/.x) - (f1+f2)/.x0 by A12,
VFUNCT_1:def 1
    .=f1/.x+f2/.x - (f1/.x0+f2/.x0) by A12,A16,VFUNCT_1:def 1
    .=f1/.x+(f2/.x - (f1/.x0+f2/.x0)) by RLVECT_1:28
    .=f1/.x+((f2/.x - f2/.x0) - f1/.x0 ) by RLVECT_1:27
    .=f1/.x+(f2/.x - f2/.x0) - f1/.x0 by RLVECT_1:28
    .= (f2/.x - f2/.x0) + (f1/.x - f1/.x0) by RLVECT_1:28
    .=L1/.    ifferentiable Functions into Real::  by Hiroyuki Okazaki , Noboru Endou , Keiko Narita and Yasunari Shidama
    ::           (Stowarzyszenie Uzytkownikow:: This code can be distributed under the GNU General Public Licence
    .=L1/.(x-x0:: licenses, or see http://www.gnu.org/:: http://creativecommons.org/java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
    .=(L1/.(x-x0)+L2/.(x-x0)) + R1/.(x-x0) + R2/.(x-x0) by RLVECT_1:def 3
    .=(L1/.(x-x0)+L2/.(x-x0)) + (R1/.(x-x0) + R2/.(x-x0)) by RLVECT_1:def 3
    .=L/.(x-x0)+(R1/.(-x0)+R2/(xx0))by A14,VFUNCT_1: 1,A17
    .=L/.(x-x0)+R/.(x-x0) by A13,VFUNCT_1:def 1,A17;
  end;
  hence f1+f2 is_differentiable_in x0 by A12;
  hence diff(f1+f2,x0)=L/.jj by A12, COMPLEX1, VALUED_1,SEQ_1,SEQ_2,RCOMP_1,FDIFF_1, STRUCT_0,PRE_TOPC,
  .=L/.jj
  .=L1/.  L2/jjby ,def java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  .L/jj  /.j
  .=L1/.jj + L2/.jj
  .=diff(f1,x0) + L2/.jjrequirements SUBSET, REAL ,NUMERALS, ARITHM;
  .=diff(,x0 +diff(f2,x0)by A2,A8,Def4;
end;

theorem Th15:
        ORDINAL1, SEQ_4,NORMSP_1,LOPBAN_1, LOPBAN_3,, PARTFUN2,
  fferentiable_in x0 & diff(f1-f2,x0)=diff(f1,x0)-diff(f2,x0)
  proof
    assume  schemes FUNCT_SEQ_1;
    A1: f1 is_differentiable_injava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    : f2  x0java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    considerN1be Neighbourhood of x0 such that
       dom and
    :  L,stfor st  inN1holds f1/x-f1/.x0 = L/(x0)+ R/(x-x0)
    by A1;
    consider L1,R1 such that
    :forxstN1 x -f1/.=L1/(-x0)+ .x-)by ;
    p
          4 mbeing  =m|s1m0 |java.lang.StringIndexOutOfBoundsException: Range [56, 53) out of bounds for length 75
    A7        A7:|| seq.m-G.|=|.seq..|by 13;
    by A2;
    consider L2,R2 then|. m  G ||< s1m|by A,XXREAL_02
    A8:for st x  /x-f2.=L2/.x-x0) .x-x0)by;
    derR=R2 as RestFunc of  byTh7;
    reconsider L=L1-L2 as LinearFunc of F by Th3;
    consider NbeNeighbourhood  x0  
    A9: N =  java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
    : N  N2 byRCOMP_1:java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    11 c= f2 A6,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    Nend;
     N \N   f1 /\dom by ,XBOOLE_127 then
    A12:Nc dom- by VFUNCT_1:ef ;
    R1 total&R2  total  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 43
    R1-R2  total by:32 java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    A13:e;
1-L2 total VFUNCT_1:;then
      letIT bePartFunc  REAL,he  of;
    A15: now
    let x;
    A16: x0 in N by RCOMP_1:16;
A17:   (("()IT/*h))  .;
    assume
    xNjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    hence (f1-f2)/    now
    = (f1/. A2 rngh c= dom f
    .f1/.x-/.x -(f1/.x0-f2.x0 by ,A16,VFUNCT_1:def 2
    .=1.(/x (1/x0f2/x0)  RLVECT_1:27
    =/x-f/x+f1/.0-2/.0) byRLVECT_1:28
       =1.x(/x0+(.-f2/x0)by RLVECT_1:
    .(.f1/x)-(/x f2. byRLVECT_1:java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
    .=L1/.x-0+1/.(x-x0)- (2/.x  f2/x0)byjava.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 59
    .=L1/.(x-x0)+R1/.(x-x0) - (L2/.(x-x0) + R2/.(x-x0)) by A8,A10,A18
    .=      =0.F by NDIFF_1:18;
    .=end;
    .=L1/.(x-x0)+((R1/.(x-x0) - R2/.(x-x0))) - L2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       .(1.xx0-L2.(x0) + (1.x-x0)-R2.xx0) by :8
    .=L/.(x-x0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .=L/.(x-x0)a IT is   Def2:
  nd
  hence f1-f2 is_differentiable_in x0 by A12;

   forxbeing Element ofREAL holds f. =FG() : 4java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
  .L1jj -L2/jjby Vdef java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  =/jj- L2/.jj
  .=L1/.jj -L2.
  .=(f1x  .byA1,,Def4
  .,x0)byA2,A8,;
nd

theorem Th16:
  for r be Real st
  fA1 forpbe Real holds L1/.* java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
   &((()f),x0)=r*(fx0)
proof
    let r be Real;
    .= *g+g2) byRLVECT_1:def 5;
    A1: f is_differentiable_in x0;end
    then consider N1 be Neighbourhood java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 34
    A2: N1 c= dom f and
    A3: ex L      thus(L1-/p  L1/.pp - L2/.pp by VFUNCT_1:37
    L1,suchjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
end;
    reconsider Rend;
    erL=r#L1as LinearFuncofF Th4;
    A5: N1 c= dom(  proof
    R1 is total by Def1; then
    r() is by 34 

()1 total VFUNCT_1:4 
    A7: dom (r(#)L1) =      =r*pg)byA1
    A8:.= p*g) RLVECT_1:ef 7;
    let java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      inN1byRCOMP_1:16;
A10: x   inREAL by def ;
    
      N1
    hence((#)f)/.x - (r(#)f)/.x0
     = r*(f/.x) - (r(#)f)/.x0 by A5,VFUNCT_1:def 4
    .= r*f/.x - r*f/.x0 by A5,A9,VFUNCT_1:def 4
    .= r*(f/.x - f/.x0) by RLVECT_1:34
    .= r*(L1/.(x-x0) + R1/.(x-x0)) by A4,A11
    .= r*L1/.(x-x0) + r*R1/.(x-x0) by RLVECT_1:def 5
    =/xx0)+rR1/(-x0  A7V:def,
    .= L/.(java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 10
  endA5:   n in  by def ;
  hence r(#)f is_differentiable_in (h1+/*.  (h1+).seq.)byA4,FUNCT_2109Ajava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
  hence diff . h/seq)n+h2/(eq)by A1,109XBOOLE_11A5
  .=L/.jj
  .=*. by A7,VFUNCT_1:def 4
  .= r*hence(h1h2)*h1*h2/seq NORMSP_1:ef ;
  .= r*diff(f,x0    now
end;

theorem
  Z c= dom (f1+f2) & f1 is_differentiable_on Z &
   is_differentiable_onZ implies
  f1+ Z&
  for x st x in Z holds      = (h1*seq.  .seq.) A3,A1,UNCT_2:109XBOOLE_11,java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
  ((theorem
  
    assume that
    A1  =dom ff2 and
           ;
    now total &h2  ;
      let x0;
      assume x0 in Z;
      then f1 is_differentiable_in x0 & f2 is_differentiable_in x0 by A2,Th10;
      hence f1+f2 is_differentiable_in x0 by Th14;
    end;
    hence
 f1+  Z  A1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
      let x;
      assume
      A4by,
Af1    b A2Tjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
      let ;
      . diff(f1,)+diff(f2,)byA5,;
e;

theorem
  Z c= dom (f1-f2)    hence (h")(#)((+)*) convergentby ,19;
  f1 is_differentiable_on Z &
  f2 java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 35
  f1-f2 is_differentiable_on   R1+is  F  Def1;
  forxst x Z holds (1f2)|.  f1,)-diff(,
  proof
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
    A1: Z c= dom (f1-f2) and
ifferentiable_on;
    now
   x0;
      assumehenceR1-is ofF by ,;
      thenpjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
      hencenow  h;
    end;
    hence
     1-is_differentiable_on  byA1,h10;
     x
    assume
    A4: x in Z; then
    :f1 is_differentiable_in   f2 is_differentiable_in A2,h10;
    (f1-`Z.x =diff(-f2f2),x)by ,A4Def6
    .= diff(f1,x) - java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 8
  ;

theorem
  Zl f;
  r(#A1  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 32
   x st x  Z(r()f`Z)x =*difffxjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  con being x0 that
    assume that
    A1: Z c= dom (r(#)f) and
    A2: f consider LRsuch that
    now
      let x0;
      assume x0 in Z;
       f  x0 by ,Th10
      hencetakerjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    end;
    hence
    A3: r(#)f is_differentiable_on
    x;
    
A4: x Z;then
le_inx A,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    thus ((r(#)f)`Ncdom f 
     .= r*diff(f,x) by A5,Th16;
  end;

theorem
  Z c= dom stxinNf.-f.  L/() R/(-)=pr1;
  x Zf|)x=java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  proof
    set R = REAL --> 0.F;
    A1: dom R = REAL;
    now let h;
      now let n be Nat    holdsf.-f.=L1/(xx0 +R1.xx0)by A12;
        A2: rng h c= dom R;
        A3: n in NAT    A16: N0  N&N0 c=N1  COMP_117;
        thus ((h    java.lang.StringIndexOutOfBoundsException: Range [14, 12) out of bounds for length 32
        .=(h".n)*(R/.(h.n)) by A3,A2,FUNCT_2:108
        .=0.F by RLVECT_1:10;
      end; then    deffunc F(java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 30
     h"()R*h)isconstant
      now
      hence (h")      0<g(+)A17,:139java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
       byNDIFF_1:18java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    end;
    then reconsider R as RestFunc of F by Def1;
    set L = REAL --> 0.F;
    now let p be Real;
       reconsider =pas Elementof REAL byXREAL_0:ef ;
      thus L/.  /.pp
     =(0.)
. *(.)by RLVECT_1:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
     0g(+2 A17,:139java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    then thenx0g(+)in].x0-g,. by A22;
    assume that
    A4:Z c=domf and
    A5:f|Z is constant;
    consider r be Point of F such that
    A6: for x being Element of REAL st x in Z/\dom f holds f.x=r
      A5PARTFUN2:;
   A7:now let java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    assume A8: x in Z/\dom f;
    then in f d 4
     xx0*+R.(-x0) =(-x0)s+R1x A23 ;
    .= r by A8,A6;
  end;
  A9: R1is  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 24
  let x0;
  assume
  A10: x0 in Z;
  then consider N being Neighbourhood of x0 such that
  :18;
   c f A4,java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  A13: x0 in Z/\dom f by A4,A10,XBOOLE_0:def 4;
-x0)+*(n)s+/(n)byRLVECT_1d 5 then
 
    let java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A14:   x-x0 in REAL by XREAL_0:def 1;
     then
        A32 (1/h))(/(n) =(.)"(/(.) XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    . 0.Fby FUNCOP_17A14;
    assume x in N;
    then x in Z/\dom f by A11,A12,XBOOLE_0:def 4;
    ence .-f.0=r-f/.x0 by A7
    .r-rby A7,
    =0.F by RLVECT_1:java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    .    :((/(hn)*(.)s =by XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    .=/.(x-x0)byA1PARTFUN1:,14
    =/.(xx0) + /(-x0 A15RLVECT_14;
  end;
  hence  is_differentiable_inx0
= + ("()R1/*)n (h)()R/h)n  RLVECT_128;then
hence
A16: f     r +0F=s((h)(#(/*).  (h"()R*).n)by :5;
let x0;
assume
A17: x0 in Z;
then     r -s = ((h")#(/*h).-(h)((*).)+s-) java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 74
A18: N c= Z by RCOMP_1:18;
 f A4,;
A20:x0 Z/\om fby ,A17X:4;
A21: for
proof
  let x;
:  x0inREALbyXREAL_0:def 1;
  then
  23 /.(-x0=.x- byA1PARTFUN1:def6
. .  FUNCOP_1:7,22java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  assume x in N;
  then x in Z/\dom f by A18,A19,XBOOLE_0:def 4;
  hence f/.x - f/.x0 = r - f/.x0 byend;
  .=r - rlet F,,X;
  .=0.F by RLVECT_1:15
  .=L.(x-x0) by FUNCOP_1:7,A22
  .=LtheoremTh9
  .L-+.) RLVECT_14;
end;
A24: f is_differentiable_in java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
thus (f`|Z).x0 = diff(f,x0) by A16f x
.=L/.jj by A24,A19,A21,Def4
.=0.F;
end;

theorem Th21:
  for r,p be Point of
st   f&for  st in holds /x=x*+p
  holds f is_differentiable_on Z
   for x  x in Z Zholds(`Z). = r
      take ;
        ,p bePointofF;
    let Z,f;
    set =(REAL ->0java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55

: REAL;
    now let h;
now nbeNatjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 hcdom R;
A3: ninNAT by:12;
        thus ((h")(#)(R/*h)).n = (h".n)*((R/*h).n) by NDIFF_1:def 2
.(".*R.h.n) A3,108
        ;
      end; then
      (h")(#)(R
       ("()R*).= 0F by d18;
      hence (h")(#)(R/*h) A1: f is_differentiable_on Y;
      lim ((h")(#)(x0  
       end;
    then reconsider R as RestFuncconsider beingNeighbourhood of x0 suchthat
    assume java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    A4:end
    A5: for x st x in Z holds f/.java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 6
    dom it = X & for x st x in X holds it.x = diff(f,x);
    consider L being PartFunc of REAL,the carrier of F such that
    :(x Element  holds  indom iffP])&
     for  being of st xin  L holds .x=G(x) fromSEQ_1:sch 3;
    for x being Real holds x in dom L iff P[x]
     by A6;
    
A7:   dom L n
8 =Gxjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
     proof let x beassume y X
A9:     x in dom L by A7;
      L.x=G(x) by     for y be object dom  A2
     hence hence dom F0 X by A4;
     end;
    A10: L is total by       let x;
  reconsider xx= asElement  REAL by XREAL_0:ef1;
    let x;
     reconsider xx=x as Elementhence .x=diff(f,)by A2;
    L.x = L/xjava.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
      .=x*r by A8;
  end    A5: dom  =  and
  then reconsider L as LinearFunc of F by A10,Def2;
  A12: now
  et;
  assume
      A8:for  x inholds .  f,;
der  being Neighbourhood of x0 such that
  A14: N c= Z by RCOMP_1 then x=diff(,)by A6;
  A15: for x st x in N holds f/.x-f/.x0=L/.(x-x0)+R/.(java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 34
  proof
    let x be Real;
A16:  x-x0 in REAL by XREAL_0:def 1;
   then
    A17: R/.(x-x0)=R.(x-x0) by A1,PARTFUN1:def 6
    .forxst in holds (`Z/x =0F
    assume  proof
    hence f/.x-f/.x0=x*r+p-f/.x0    :domR=java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    .=xA3:n NAT by :def 
    .x*p-x0*p  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
    .=p+(x*r- x0*r)-p by RLVECT_1:28
    .=(x*r- x0*r)+(p-p) by RLVECT_1:28
    .=(x*       ("()R*h)0=0. V:def18;
    .=(x-x0)*r + 0.F by RLVECT_1:35
    .=L/.(x-x0       ((h)(#(/*h))= 0. byNDIFF_1:18;
  end;
  N c= dom f by A4,A14;
  hence f is_differentiable_in x0 by A15;
end;
hence
A18: f is_differentiable_on Z by A4,Th10;
let x0;
      thusL.p =.
A19: x0 in Z;
then consider N being Neighbourhood of x0 such java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 8
A20: N c=A4:Z = f;
A21: for x st x in N holds f/.x-      Point  that
proof

A22: x-x0 in REAL by XREAL_0:defthen/x0  .x0x0 def 6;
  then
  A23: R/.(x-x0)=R.(xhence .=r TARSKI:def 1;
  .= 0.F FUNCOP_1:7A22;
  assume x in N;
  hence f/.x - f/.x0 = x*rlet;
  . A9:x0  Z;
  .=the consider    of x0 that
  .=p+(x*r- x0*r)-p by RLVECT_1: A11 c=dom  byA4,
 .=(* x0*r+(p-p) by :28
  .=(x*r- x0*r)+0.F     et;
  .=(x-x0)*r + 0.F by RLVECT_1    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  .=L/.(x-x0) + hence .-fx0  -f.x0by ,
end;
A24: N c= dom f by    .L(x-x0 by FUNCOP_1:7,
 x0byA12,A19;
thus (f`|Z).x0 x0by ;
.=:fijava.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 41
.=1*r by A11
.=r by RLVECT_1:def 8;
end;

theorem Th22:
  for x0 being Real st f is_differentiable_in x0 holds
  f is_continuous_in x0
  proof
    let x0 be Real;
    assume
    A1: f is_differentiable_in x0;
    then consider N being Neighbourhood of x0 such that
    A2: N c= dom f and
    ex L,R st for x st x in N
      holds f/.x - f/.x0 = L/.(x-x0) + R/.(x-x0);
    A3:x0 in N by RCOMP_1:16;
  now
      consider g be java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 7
      A4: 0<g and
      A5: N=].x0-g,x0+g.[ by RCOMP_1:def 6;
      reconsider xx=x0 as Element of REAL by XREAL_0:def 1;
      set s2 = seq_const x0;
      let s1 such that
      A6: rng s1 c= dom then ex  Neighbourhood  x0  N c=domf& L  for st x in
      A7:s1 isconvergentand
      A8: lim s1  x0 
        n being  holds.n>x0java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      considerlet  ;
     :for being Natst<=mholds .m-0.|by,8:def ;
      reconsider c =s2^\l as constant Real_Sequence;
      deffunc G(Real) = s1.$1-s2.$1  hence .  .   f/x0 by A6,17
      consider s3 such 
      A11: for n being Nat holds s3.n=G(n) from SEQ_1:sch 1;
      A12: s3=-s2  A11,RFUNCT_2:1;
      then
      A13: s3 is convergent  A20,RLVECT_1:4;
      A14: rng c dom((f`|Z))= Z by ,;
      proof
        thus . diff(,x0) A14,,Def6
        proof let y be object;
          assume y in rng c;
           consider n  that
          A15: y=(s2^\l).n by FUNCT_2:113;
          y=s2.(n+l) by A15,NAT_1   x0   om holds hc  rng ={
          theny=x0 by SEQ_1:57;
 by :ef 1;
        end;
  ;
        assume y in {x0}; then
   : y= by :def 1;
        reconsider z0 = 0 as Element of NAT;
        c.z0 = .(0+l  NAT_1:def java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
          . by S:;
        y in  VALUED_0:28
      ;
A17: now
      let p be Real such that
      A18: 0<p;
       reconsider n=0 as Nat;
      x0 +z0 <x0 +g& 0-g   - 0by,XREAL_1815;then
      let m be Nat such that n<=m;
A19:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
   x0 in N by RCOMP_1A13:  x0 SEQ_4:;
      then rng c c= dom f by      lim h = z0;
      then ||.(f/*c).m-f/.x0 .||=||.f/.(c.m)-f/.x0 .|| by FUNCT_2:109,A19
      .=||.f/.(s2.(m+l))-f/.x0 .|| by NAT_1:def 3
      .=||.f/.x0-f/.x0 .|| by SEQ_1:57
      .=||. 0.F .|| by RLVECT_1:15
      =0;
      hence ||.(f/*c)      :  c^n  x}by ,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 47
    end; then
    A20: f/*c is convergent by NORMSP_1:def 6;
    lim s2 = s2.0 by SEQ_4:26
    .=x0 by SEQ_1:        then consider  such that
    then lim s3 =x0-x0 by A7,A8,A12,SEQ_2:12
    .=0; then
    A21 s3^l=0byA13SEQ_4:
A22java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  
    givenn such
    A23: s3.n=0;
    s1.n-s2.n=0 by A11,A23;
    hence  by A9,SEQ_1:57;
  end;
A24:
 now
  givenn Nat  that
  A25: (s3^\l).n=0;
A26: n+l in NAT by ORDINAL1:def     java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 26
  s3.(n+l)=0 by A25,    now let ybeobject;
  hence contradiction by A22,A26;
 end;
then s3^then =x0 byA7A21,TARSKI:def 1;
then       then y in  byA4,A11;
byA13,FDIFF_1: ;
 now
  let n;
thus (/(c-/c+/*c)n
=*h)f/c)n(/.  d 2
  =f*(+)).n(/c.+(f/*)nby NORMSP_1:3
  .=(f/*(h+c)).n-((f/*c      deffunc 0Element ofNAT  .+(h^n"#(/*(^\)).1
  .=(f/*(h+c)).n-0.F by RLVECT_1:15
  .(/*hc)nbyRLVECT_1:13java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
e;then
A27: f/*(h+c)-      ))0F by ;
 now
  let n;
  thus (h+c).n=((s1-s2+s2)^\      tm= holds|.(h\"()(/(^n).java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  .=(s1-s2+s2).(n+l) by NAT_1   such
  .=(s1-A29 NAT ORDINAL1:def ;
  .=(+-s2.(n+)s2(l RFUNCT_21
  =s1^l.n NAT_1:ef3java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 end; then
A28:f*h)f*(/c)f*s1^l by ,UNCT_2:
.(/*)^lby A6,VALUED_0:7
 now  beobject
  assume y in rng(h+c);
  then consider n such that
  : =hc. byFUNCT_2113;
  (h+c).=(-s2s2^\l.n by A12,SEQM_3:15
  .=(s1-s2+s2).=s by def;
  .=(s1-s2).(n+l)+s2.(n+lletm;
  .=s1.(n+l)-s2.(n+l)+s2.(n+l) by RFUNCT_2:1
  .=s1.(l+n);
  |(+)n-.|gby NAT_1:;
  hence y in N by       (h^n"#)/*(^\n)  h\)()R*(^\))).m by NDIFF_1:9
 end; then
A30:rng(h+c) c= N;
A31:l(#("#)(f/*h+)-f/c)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
= 0 * lim(h"(#) (f/*(h+c) -       .= ((h^\n)").m*(L/.((h^).)+(h\"#(/*h\))m
.=0.F      . (\))m*((\n).)*s)+ ((h^\)"#(/*(h\))m by 
 now
  let n;
  <>  ;
 (h(#)h"()(f/*(h+c -/*c)).n =h. ("#(/*(+  /*).
  by NDIFF_1:def 2
  .h(h")n(/(c)- f/c.)byNDIFF_1:ef
  .=h      =s+(h^\)()R*(^\)))m by  8
  .=h.n*((h.n)    end
  .1(f/(c  *)n byA32,:def java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  .=(f/*hc - *c. byRLVECT_1def ;
 end; then
A33: h(#)(h"(#)(f/*(h+c) - f/*c))=f/*(h+c)-f/*c by FUNCT_2:63; then
A34: f/*(h+c)-f/*c is convergent by A30,A1,A2,A14,Th13,NDIFF_1:13; then
f/*(h+c)-f/*c+f/*c is convergent by A20,NORMSP_1:19;
hence f/*s1 is convergent by   for y being object st y in rng  y  (+^n  y dom  byA2,A19
lim(f/*c)=f/.x0 : rng ((h+c)^ =domf;
+f.by ,A34,NORMSP_1:25
.=f/.x0 by RLVECT_1:4;  :rng h+  dom f;
hence f/.x0=A37: for k holds.(((hc^n.  f.(\)kjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
end;
hence thesis by A3,A2  (+)\)k N2 A19;
;

theorem
f is_differentiable_onimplies (X) 
  proof
    assume
         thesisbyA20,,A39
A40:R by java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
          by A1,Th22 rngh\ =java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28
    hence thesis by NFCONT_3:def 2;
  end;

theorem Th24:
  X&   java.lang.StringIndexOutOfBoundsException: Range [45, 43) out of bounds for length 68
  proof
     that
        =(L/*( R*h\). by: ;
    : Z c X;
    Xc dom f by A1;t
    A3(hn"#((/*hc)^nf*c\) by A36,:27
    now let x0;
      assume
      A4: x0 in Z;
      then f|X is_differentiable_in x0 by A1,A2;
      then consider N being Neighbourhood of x0 such that
      A5: N c= dom(f|X) and
      A6: ex L,R st for x st x in N
      holds (f|X)/.x-(f|X)/.x0=L/.(x-x0)+R/.(x-x0);
      consider N1 being Neighbourhood of x0java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
      
      consider N2 being Neighbourhood of x0 such that
  f1+  x0+iff(x)
      A9: N2 c= N1 by RCOMP_1:17;
A10:N2 c= Zby ,A9
      (fX)dom f/X by :61;
      then dom(f|X) c=dom    4:  Rst forst in f1/x  .  .x-x0)+R.x-0
      then N c= dom     consider L1,R1 suL1R1 such 
t N2 c=dom f  A8;
      then N2 c=dom f/\Z by A10,XBOOLE_1:19; then
      A11: N2 c=dom(f|Z) by RELAT_1:61;
A12 N2 =dom(fX  A8,A5;
     N2 c=dom f2and
      :for xstx   holds
      (f|X)/.x-(f|X)/.    consider L2 such that
      xstx inN2 holds
      (     RR+ asofFby java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
      proof
        let x;
        assume
        A14: x in N2;
        then A15:(f|X)/.x-(f|X)/.x0=L/.(x-x0)+R/.(x-x0) by A8,A13;
        A16: x0 in N2 by RCOMP_1:16;
        (f|X)/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A15,A16,A12,PARTFUN2:15;
        then f/.x-f/.x0=L/.(x-x0)+R/.(x-x0) by A14,A12,PARTFUN2:15;
        then f/.x-(f|Z)/.x0=L/.(x-x0)+R/.(x-x0) by A16,A11,PARTFUN2:15;
        hence thesis by A14,    N c= f1 by A3,9;
      end;
      hence (| is_differentiable_in x0by ;
    end;
    hence thesis by A3;
  end;

: {REALis ;

theorem
  ex R be RestFunc of F st R/.0=0.F & R is_continuous_in 0
  proof
    ([]REAL)  }REAL   = REAL&[]REAL =REAL by XBOOLE_1:37;
        A13dom (1+  by :def ;
    reconsider Z = [#]REAL as open Subset of REAL by
    set R = (REAL --> 0.F);
    reconsider f=R as PartFunc java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 31
A1: domassume
    now
      let h;
      now
        let n be Nat;
A2  hc dom java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
        A3: n in NAT by     =f1/.x -- .) /) java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 55
        thus ((h")(#)(R/*h)).n = (h".n)*((R/*h =/(x0+/(-) .  f2/x0)A18
        h"n*R.h)  A2,UNCT_2:java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
        .= 0.F by RLVECT_1:10;
      end;
      then (    =.(x-x0+/(- by VFUNCT_1:,
&(("(#R*h)0=0  def18;
      hence (h")(#)(R/*h) is convergent &
      lim ((h")(#)(  ence (1f2=/jj A15
    end;
    then reconsider R as RestFunc of F by Def1;
    set L = (REAL.jj by A1,A3,A5,Def4
    now let p be Real;
       reconsider pp=p as Element of REAL by XREAL_0:def 1;
      thus L/.p = L/.pp
      .= 0.F
      .= p*(0.F) by RLVECT_1:10;
    end;
    then reconsider L as LinearFunc of F by Def2;
A5: f|Z is constant;
    consider r be Point of F such that
A6: for x being Element of REAL  st x in Z/\dom f holds f.x=r
        by A5,PARTFUN2:57;
A7: now let x;
    assume A8: x in Z/\dom f;
    then x in dom f;
    hence f/.x= f.x by PARTFUN1:def 6
    .=   .=iff(f1,0)f2,  A2,A6,,;
  end;
  A9: now
  let x0;
  assume
  f1f2java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 72
  setN=the   java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
  forxst x in  .)+R.xx0)
  proof
A12: x0 in Z/\dom f by A10;
    let x;
A13:   x-x0 in REAL by XREAL_0:def 1;
    then
    A14: R/.(x-x0)=    A6:N2    
    =0Fby 7A13;
    assume x in N;
    then consider 2, that
    hencef.x/.x0=r-f/.x0 by A7
    .=r - r by A7,A12
    .=0.F by RLVECT_1:15
    .=L.(x-x0) by consider N be Neighbourhood of x0 such that
    .=L/.(x-x0) by    A10:N=N2 by :7java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    .=L/.(x-x0) + R/.(x-x0) by A14,RLVECT_1:4;
  end;
  hence f is_differentiable_in x0;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
set x0 = the Element of REAL

x0 A9 
consider N being Neighbourhood of x0 such that
N c= dom f and
A15: ex L,R st for x st x in N holds f/.a
hence(f2).-(f2).
A16 forxstxinN  f/.x -f/.x0  /(-x0 +R.x-x0 
take R;
consider p beof  such 
java.lang.StringIndexOutOfBoundsException: Range [28, 3) out of bounds for length 36
/x0  .  /.(x0-  /x0x0)by RCOMP_1:16; 
0.F = L/.(x0-x0) + R/.(x0-x0) by RLVECT_1:15; then
0.F = 0 * p+ R/.0 by A17;  .L1/(x0+R1(-  (2/(-x0x0  /x) A8,10,java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
0.F = 0.F + R/.0 by RLVECT_1:10;
hence
A18: R/.0=0.F by RLVECT_1:4;
A19: now
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 12
let h;
A20: s3.1 = 0;
(h")(#)(R/*h) is convergent &
lim ((h")(#)(R/*h)) = 0.F by Def1;
then ||.(h")(#)(R/*h).|| is bounded   =/
then consider M java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
A21: for n being Nat holds |.(||.((h")(#) =(1x0)-diff(2x0)by ,A8,java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
A22: now   for  be Real st
|.(||.((h"#(*h).n |< byA21 
||.("()R*). |  M by NORMSP_0:def 4;
hence ||.((h")(#) let be Real
end;
reconsider z0=0 as Real;
A23: now
letnbe Element NAT;
||.((h")(#)(R/*h)).n .||=||.((h").n)*(R/*h).n .|| by NDIFF_1:def 2
.=||.(h.n)"*(R/*h).     L1 such that
:|.(n"*(R/*h).n .||<=M by A22;
|.(h.n).|>=0 by COMPLEX1:46;
then |.(h.n).|*||.(h.n)"*(R/*h).n .|| <=M*|.(h.n).| by A24,XREAL_1:64;
then ||.(h.n)*((h.n)"    reconsider R = r(#)R1 as RestFunc of F by Th8;
java.lang.StringIndexOutOfBoundsException: Range [52, 3) out of bounds for length 65
h.n <>0 by SEQ_1:5;
then ||.1*(R/*h).n.|| <=M*|.(hR1is
then ||.(R/*h).n.|| <=M*|.(h.n).| by RLVECT_1:def 8;
 |.R*)|<=*.by1;
hence ||.    :now
end;
lim h=z0;
then lim abs(java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
.by:; then
A26: lim (M(#)abs(h)) = M*z0 by :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
=s3 byA20,EQ_4:5java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
reconsider z0=0 as Real;
lim (M(#)  end;
hence R/*h is convergent & lim (R/*h)=R/.0 by A18,A23,Th1;
end;
R is total by Def1; then
 =REAL by :def1
 now
  let s1;
  assume that rng s1 c= dom R
  A28:s1is convergent &lim s10 and
  A29:  f1f2is_differentiable_on Z java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  for proof
   by A29;
  then s1 is non-zero by SEQ_1:5;
  then s1 is 0-java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 13
henceR*is convergent &R.(,REAL)=im(R/*s1)by java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
end;
hencethesisby NFCONT_3:;
end;

definition let F;
  let f beA4:xin;then
  attr f is differentiable means  :Def7:
  f is_differentiable_on dom f;
end;

Lm2: [#]endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
by XBOOLE_1

letjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  cluster differentiable for  f2is_differentiable_onZ&
  existence
  proof
    reconsider Z = REAL as open java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 15
    reconsider f = (REAL -->now
    take f;
A1:        f1java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 78
    now let x;
       reconsider xx=x as Element of REAL by XREAL_0:def 1;
      assume x in Z;
      thus f/.x = f/.xx
      .= 0.F
      .= x*(0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      .= x*(0.F) + 0.F by RLVECT_1  (fjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 32
    end;
    then f is_differentiable_on Z by A1,Th21;
    hence thesis;
  end;
end;

theorem
  for f being differentiable PartFunc of REAL, the carrier of F
  java.lang.StringIndexOutOfBoundsException: Range [44, 4) out of bounds for length 46
  by Def7,Th24;

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.348 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,188,058
#Domains=861,589