Eine aufbereitete Darstellung der Quelle

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


Quelle  limfunc2.miz   Sprache: Mizar

 

:: One-Side Limits of a Real Function at a Point
::  by Jaros{\l}aw Kotowicz
::
:: Received August 20, 1990
:: Copyright (c) 1990-2026 Association of Mizar Users
A2: a 'imp' b = I_el(Y) and
:: 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, java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 4
      XXREAL_0, ARYTM_1, RELAT_1,   (M|g|Ejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
FUNCT_1, ,FUNCT_2,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 5
      VALUED_0, 
 notations TARSKI, XBOOLE_0A: 'imp'( 'imp' d A1   
COMPLEX1 REAL_1,NAT_1, , FUNCT_2 for   Element Y a'(' )=
      SEQ_1, COMSEQ_2, SEQ_2
      XXREAL_0;
 constructors FUNCOP_1, REAL_1, NAT_1, COMPLEX1, SEQ_2, SEQM_3, PROB_1,
     RCOMP_1 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 74
      RVSUM_1 , SEQ_1;
 registrations ORDINAL1, RELSET_1, NUMBERS, XREAL_0, NAT_1, MEMBERED, XBOOLE_0,
      VALUED_0, VALUED_1, FUNCT_2, SEQ_4, SEQ_1, SEQ_2;
requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
 equalities 
 expansions
 theorems TARSKI, NAT_1,       case
   RFUNCT_2,LIMFUNC1, RCOMP_1FUNCT_1,XREAL_0,,XBOOLE_1,
      XCMPLX_0, XREAL_1, COMPLEX1, XXREAL_0, VALUED_1, A7:    ' bx'or .x)TRUE  ( . java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 5
    VALUED_0ORDINAL1java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
 schemes SEQ_1, A9:     'not' b.x=TRUE or 'not  then E1 (om  \E/) /\ dom gbyXBOOLE_1:16;

begin

reserve r,r1,r2,g,g1,g2,x0,t for   then E1= dom          per cases  A7,A98,NARITH;
reserve n,k for Nat;
reserve          case
reserve f,f1,f2 =EbyA9,A15A72 dom(E1)1/E2)=domchi 'notbT &'.=

Lm1: for r,g,r1    = X /\ E/java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 6
proof
  let r,g,A3:dom(chi( =GE :;
  java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 25
A1:   F|=X /\(E1/\)by FUNCT_3 end
A2: r<=r1;
            case  A10A13,java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 55
  hence r-not'TRUE  d.=;
  r+0<r1+            hencethesis ,1java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  hence thesis;
 (, hijava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

: java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 78
f1()f2) & rng          case
seq =            .= &()xTRUE
proof
  let X be Subset A6: x     let  then (a''bjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 79
A1: rng seq c    thenhence
A2 dom(1java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 30
  dom(f1(#)f2)/\X c=dom(f1h    ((chi(E1,X))|(E1.=((,
  hence
A3: rng seq c=      end;
  thus
A4  . 1  A7    ;
    then
A5: dom(f1(#)f2    java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
  dom(f1(#)f2)c=domhence by defjava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
     java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 69
  hence FUNCT_3:def 3;
theo

Lm3: r-1/(n+1)<r & r<r+1  for ,   ndjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
proof
  0<1/(n+1) by XREAL_1:139;
  hence thesis by Lm1;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

Lm4: java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
+f2) &   a  Function of ;
c=dom f2/\X
proof
  let    letx  ofYjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
A1:   then
: (f1+f2)/\X cX byXBOOLE_117;
  dom(+f2/X c= case
  hence
A3: rng seq c=dom(f1+f2) & rng         .  (E)=. (M((X)) = .EA10:  =  chi(E1X  :def3;
  thus
A4        java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 55
   dom+f2)c=domf2  :17:  java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 10
  thencase
A5: rng seq c=dom f2   then F = dom(chi(E1,X / F        xFALSE
  A:
  then rng seq  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
         chi(X|E21is Fmeasurableby MESFUNC229MESFUNC54;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4

theorem Th1:
  seq java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 75
proof
  assume  ;
A1: seq is convergent and
A2: r<lim seq;
  reconsiderA2:   assume x in dom chi(E1,X);
     = seq_constB: 3
A3: seq-s is convergent by      case
  s.0=rb.=TRUEjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
 then lims=r by:5;
  then lim(seq-s)=lim seq -r by A1,SEQ_2:12;
then java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 27
A4: for k st =(chi(      case
  take n;
  
  assume n<=k;
  then 0<(seq-s).  end;
  then 0<seq.k-s.k by RFUNCT_2:1;
  then 0<seq.k-r by SEQ_1:57;
 .kby XREAL_1:0;
  hence thesis;
end;

theorem Th2:
  seq is convergent & lim seq<r implies ex n (,).x =;
     hence -E).,.=0;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
A1: ;
A2: lim seq<r;
onsiderrr =r as     i(,);
  set s = seq_const r;
A3: s-seq is convergent by A1;    'ot. o        of ;
  .     
  then lim s=r by SEQ_4:25;
  then lim(s-seq)=r-lim  A15  in (chiEXE1);
  then consider n such that
A4: for  n<kholds 0<(-seq)kby
  take njava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
k
  assume n<=k;
  then 0<(s-seq).       by then a <= f.x by A4;
  then 0<s.k-seq.k by RFUNCT_2:1;
   x(chi(X) is EmeasurablebyA11ESFUNC130
  then 0+seq.k<r by XREAL_1:20;
: a< E.A8,UNCT_14java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
end;
    (a1(#(C|E.x =a*(C|E.x  A6,ESFUNC1def6
Lm5: (for g1 ex r st x0<r & for r1 st r1<r & x0<.=(n'       a*C  +(EX)Eisjava.lang.StringIndexOutOfBoundsException: Range [38, 35) out of bounds for length 67
) & seq is convergent TRUE) by A2BINARITH (E)|    by,81;
java.lang.StringIndexOutOfBoundsException: Range [15, 7) out of bounds for length 36
e;
  assume    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
:  g1A25 IntegralM(chiE,)E)=+,(X| by A23A,A25: Integral(M,(chi(E,X))|E) =integral+(M,(chi(E,X))|E) by A23,A24,MESFUNC5
  r1<g1   (E) is_integrable_onE ,XXREAL_381java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
:seqis
A3: lim seq=x0 and
A4: rng seq c=dom f/\right_open_halfline(x0);
A5: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
  now
    let g1;
    consider r such that
A6: x0<r and
A7 r1 str1<r &x0<r1 & r1 in domf holds f.r1<g1 by A1;
    consider n such that
A8: for k st n<=k holds seq.k<r by A2,A3,A6,Th2;
    take n;
    let k;
    assume
A9: n<=k;
A10: seq.k in rng seq by VALUED_0:28;
    then seq.k in right_open_halfline(x0) by A4,XBOOLE_0:def 4;
    then seq.k in {g2: x0<g2} by XXREAL_1:230;
    then
A11: ex g2 st g2=seq.k & x0<g2;
A12: k in NAT by ORDINAL1:def 12;
    seq.k in dom f by A4,A10,XBOOLE_0:def 4;
    then f.(seq.k)<g1 by A7,A8,A9,A11;
    hence (f/*seq).k<g1 by A4,A5,FUNCT_2:108,XBOOLE_1:1,A12;
  end;
A13: Integral(M(X)|1/2).x=(chi(E1/2)|E1/\E2)).by A65,
end;

theorem Th3:
  0<r2 & ].r1-r2,r1.[ c= dom f implies for r st r<r1 ex g st r<g &
  g<r1 & g in dom f
proof
  assume that
A1: 0<r2 and
A2: ].r1-r2,r1.[c=dom f;
  let   end;
A3: r<r1;
  now
    per cases;
    suppose
A4:   r1-r2<=r;
      consider g being Real such that
A5:   r<g and
A6:   g< then
      reconsider g as Real;
      take g;
      java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 6
      r1-r2<g by A4,A5,XXREAL_0:2;
      then g in {g2: r1-r2<g2 & g2<r1} by A6;
      then g in ].r1-r2,r1.[ by   assume M.(E1/\  assume M.(E1/\E2 dom(C|E)by :def6;
      hence gthen
    end;
    suppose
A7:   r<=r1-r2;
  r1-r2< by A1,Lm1;
      then consider g being Real such that
A8:   r1-r2<g and
A9:   g<  then doma1(#)(C|E)) =X/\ E byFUNCT_3:A10: dom E, FUNCT_3:3;
      reconsider g as Real;
      take g;
      thus r<g & g<r1 by A7,A8,A9,XXREAL_0:2;
      gthen
      then g in ].r1-r2,r1.[ by RCOMP_1:def 2;
     hence g in A1: F = dom(chi(E1,)E2\)) by RELAT_1:;
    end;
  end;
  hence thesis;
end;

theorem Th4:
  0r2 & .r1,r1+
  r1<g & g in dom f
proof
  assume that
A1: 0<r2 and
A2:].1,r1+r2. c=dom f;
  let r such that
A3: r1<r;
  now
    per cases;
    suppose
A4:   r1  dom(()(,X)|E2E1)is-measurable by MESFUNC2:MESFUNC5:;
      r1<r1+r2 by A1,Lm1;
      then consider g being Real such that
A5:   r1<g and
A6:   g<r1+r2 by XREAL_1:  now
      reconsider g as Real;
      take g;
      thus g<  then dom(b1(|  C/E  :1;
      g in {g2: r1<g2 & g2<r1    assume  inin dom thendom(1#CE = X  Ejava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 49
      then    then
      hence g A17:dom((#)C|E))  E hi(1:3;
    end;
    suppose
A7:   r<=r1+r2;
      consider g being Real such    rng chi(E1,X) c for x   Xst indom(| holds (f|E)x =(1#)(C|E)).x
A8:   r1<g and
A9:   g<r by A3,XREAL_1:5;
      reconsider g as Real;
      take g;
      thus g<r & r1<g by A8,    hence 0. <= (chi(E1,X)).x by A13;
      g<r1+r2 by A7,A9,XXREAL_0:2;
      then g in {g2: r1<g2 & g2<r1+r2} by A8;
      then g in ].r1,r1+r2.[ by RCOMP_1:def 2;
      hence g in dom f by A2;
    end;
  end;
  hence thesis;
end;

theorem Th5:
  forn holds x0-(+)<seqn&seq.x0 &seq.in domf)
implies seq is convergent & lim seq=x0 & rng seq c= dom f & rng seq c= dom f /\
  t_open_halfline(x0)
proof
  deffunc U(Nat) = 1/($1+1);
  consider s1 be Real_Sequence such that
:forn holds s1A15:xndom (chi(,))|2E1);
  reconsider xx0 = x0 as Element of REAL by XREAL_0:def 1;
  sets2=seq_const x0;
A2: s1 is convergent by A1,SEQ_4:31;
  then
A3: s2-s1 is convergent;
  assume
A4: for n holds x0-1/(n+1)<seq.n & seq.n<x0
A5: now
    let n;
A6: (s2-s1    then(chi    then f.x< b by A4;
      .=x0-s1.n by SEQ_1:57
      .=x0-1/(n+1) by A1;
    seq.n<=x0 by A4;
    hence (s2-s1).n    hence 0=(chi(E1,X)|E2\E1). 
  end;
  s2.0=x0A21 f|). =b by 20,FUNCT_1:;
  then
A7: lim s2=x0 by SEQ_4:25;
  lim s1=0 by A1,SEQ_4:31;
      (b()C|)e;
A8: lim(s2-s1)=x0-0 by A7,A2,SEQ_2:12
    .x0;
  hence seq is convergentUNCT_1:7
  thus lim seq=x0 by A7java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  now
    let x be object;
    assume x in rng seq;
    then ex n   chi(E1,X) is XX(E1,X) is XX-easurable A:81;
    hence x in dom f by A4;
  end;
  ethenchi(E1,X)|E2) Integral(M,(chi(E1,X))|E1/E2) +
A9: rng seq c=dom f by TARSKI:def 3;
  now
    let x be object
    assume x in  ntegralM,(hi(E1,X))|E2\E1) by A10,,1,MESFUNC5:,XBOOLE_1:89;
    henconsider n being Element of NAT such that
  hence thesis by A9,A16,XXREAL_3:4;
    seq.n<x0 by A4;
    then seq.n in {g2:g2<x0};
ine0 A10,java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 58
  end;
  then rng seq c=left_open_halflinethen consider E2 be Element of S java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  hence thesis by A9,XBOOLE_1:19;
end;

theorem Th6:
  (for n holds x0<seq.n & seq.n<x0+1/(n+1) & seq.n in dom f)
mpliesseq is convergent & lim seq=x0 & rng seq c= dom f & rng seq c= dom f /\
  right_open_halfline(x0)
proof
  deffunc U(Nat) = 1/($1+1);
  consider s1 be Real_Sequence such that
A1: for n holds s1.n=U(n) from SEQ_1:sch 1;
   reconsider xx0=x0  Element of REAL by XREAL_0:def 1;
  set s2 = seq_const x0;
A2: s1 is convergent by A1,SEQ_4:31;
  then
A3: s2+s1 is convergent;
  assume
A4: for   then
A5: now
    let n;
A6: (s2+s1).n=s2.n+s1.n by SEQ_1:A:Integral(M,|E)=M. by A3,Th25;
      .=x0+s1.n by SEQ_1:57
      .=x0+1/(n+1) by A1;
    x0<=seq.n by A4;
    ence s2.n<=seq.n & seq.n<=(2+s1).n by A4,A6,SEQ_1:57;
  nd;
  s2.0=x0 by SEQ_1:57;
  then
A7: lim s2=x0 by SEQ_4:25;
  lim s1=0 by A1,SEQ_4:31;
  then
A8: lim(s2+s1)x0+ by  A7,A2,SEQ_2:6
    .=x0;
  hence seq is convergent by A7,A3,A5,SEQ_2:19;
  thus lim seq=x0 by A7,A3,A8,A5  hence thesis by A11,13,A24,A25,A16,A27,A26,MESFUNC5:10;
  now
    let x be object;
    assume x in rng seq;
    then ex n being Element of NAT st seq.n=x by FUNCT_2:113;
    hence x in dom f by A4;
  end;
  hence
A9: rng seq c=dom f by TARSKI:def 3;
  now
    let x be object;
    assume x in rng seq;
    then consider n being Element of NAT such that
A10: x=seq.n by FUNCT_2:113;
    x0<seq.n by A4;
    then seq.n in {g2:x0<g2};
    hence x in right_open_halfline(x0) by A10,XXREAL_1:230;
  end;
  then rng seq c=right_open_halfline(x0) by TARSKI:def 3;
  hence thesis by A9,XBOOLE_1:19;
end;

definition
  let f,x0;
  pred f is_left_convergent_in x0 means

  (for r st r<x0 ex g st r<g & g<
x0 & g in dom f) & ex g st for seq st seq is convergent & lim seq=x0 & rng seq
c= dom f /\ left_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq)=g;
  pred f is_left_divergent_to+infty_in x0 means

  (for r st r<x0 ex g st
r<g & g<x0 & g in dom f) & for seq st seq is convergent & lim seq=x0 & rng seq
  c= dom f /\ left_open_halfline(x0) holds f/*seq is divergent_to+infty;
  pred f is_left_divergent_to-infty_in x0 means

  (for r st r<x0 ex g st
r<g & g<x0 & g in dom f) & for seq st seq is convergent & lim seq=x0 & rng seq
  c= dom f /\ left_open_halfline(x0) holds f/*seq is divergent_to-infty;
  pred f   X st x in E holds a <= f.x & f.x <= b) implies ( a)*M.E <= Integral(M,f

  (for r st x0<r ex g st g<r &
  x0<g & g in dom f) & ex g st for seq st seq is convergent & lim seq=x0 & rng
seq c= dom f /\ right_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq
  )=g;
  pred f is_right_divergent_to+infty_in x0 means

  (for r st x0<r ex g st
g<r & x0<g & g in dom f) & for seq st seq is convergent & lim seq=x0 & rng seq
  c= dom f /\ right_open_halfline(x0) holds f/*seq is divergent_to+infty;
  pred f is_right_divergent_to-infty_in x0 means

  (for r st x0<r ex g st
g<r & x0<g & g in dom f) & for seq st seq is convergent & lim seq=x0 & rng seq
  c= dom f /\ right_open_halfline(x0) holds f/*seq is divergent_to-infty;
end;

theorem
  f is_left_convergent_in x0 iff (for r st r<x0 
  in dom f) & ex g st for g1 st 0<g1 ex r st r<x0      case
  in dom f holds |.f.r1-g.|<g1
proof
  thus f is_left_convergent_in x0 implies (for r st r<x0 ex g st r<g & g<x0 &
g in dom f) & ex g st for g1 st 0<g1 ex r st r<x0 & for r1 st r<r1 & r1.byBINARITH10;
  in dom f holds |.f.r1-g.|<g1
  proof
    ssume that
A1: f is_left_convergent_in x0 and
A2: (not for r st r<x0 ex g st r<g & g<x0 & g in dom f) or for g ex g1
st 0<g1 & for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f & |.f.r1-g.|>=g1;
    consider g such that
A3: for seq st seq is convergent & lim seq=x0 & (a' (a'imp b))x'' '' ) or' ( imp' . by
left_open_halfline(x0) holds java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 14
     
A4: 0<g1 and
A5: for r st r<x0 ex r1 st r<r1 & r1<x0 & r1      .a.'or'(not a. or'b.)by MARGREL1:def 19
    g1 by A1      .TRUE 'or'b.by A1,INARITH:java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    defpred X[Nat,Real] means x0-1/($1+1)<$2 & $2<x0 & $2 in
    dom f & |.f.($2)-g.|>=g1;
A6: now
      let end;
      x0-1/(n+1)<x0 by Lm3;
      then consider g2 such that
A7:   x0-1/(n+1)<g2 and
A8:   g2<x0 theorem ::De'Mo
A9:   g2 in dom f and
A10:  |.f.g2-g.|>=g1 by A5;
         for a,bcbeing  ofY, holds 'not'(a '&' b '' c
      take g2;
      thus X[n,g2] by A7,A8,A9,A10;
    end;
    consider s be Real_Sequence such that
A11: for n being Element of NAT holds java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 5
:for beingNatholds X[,.n
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence ;
     end;
A13: rng s c=dom f/\left_open_halfline    =('not a)'or'(not' b)' ('not' c)by BVFUNC_1:;
A14: lim s=x0 by A12,Th5;
A15: s is convergent by A12,Th5;
    then
A16end;
    f/*s is convergent by A3,A15,A14,A13;
    then consider n such that
A17: for
A18: |.(f/*s).n-g.|<g1 by A17;
A19: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A12,Th5;
    then |.f.(s.n)-g.|<g1 by A18,FUNCT_2:108,A19;
    hence contradiction by A12;
  end;
  assume
A20: for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  given g such that
A21: for g1 st 0<g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f
  holds |.f.r1-g.|<g1;
  now
    let s be Real_Sequence such that
A22: s is convergent and
A23:lim s=x0 and
A24: rng s c=dom f/\left_open_halfline(x0);
A25: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
A26:now
      let g1 be Real;
      assume
A27:  0<g1;
      consider r such that
A28:  r<x0 and
A29:  for r1 st r<java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 15
      consider n such that
A30:  for k st n<=k holds r<s.k by java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 22
      take n;
      let k
      assume 
A31:  n<=k;
A32:  s.k in   for abc,dbeing Function ofY,BOOLEAN holds a' (bor c
      then s  or' d = a & b or'(a''c or a '& d)
      then s.k java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 5
      then
A33:    stg2sk g2
A34: k in NAT by ORDINAL1:def 12;
      s  fbyA24,XBOOLE_0def4;
      then |.f.(s.k)-g.|<g1 by A29,A30,A31,A33;
      hence |.(f/*s).k-g.|<g1 by A24,A25,FUNCT_2:108,
    end;
    hence f/*s is convergent by SEQ_2:def 6;
    hence lim(f/*s)=g by A26,SEQ_2:def 7;
  end;
  hence thesis by A20;
end;

theorem
  f is_left_divergent_to+infty_in x0 iff (for r st r<x0 ex g st r<g & g<
  x0 & g in dom f) & for g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f
  holds g1<f.r1
proof
  thus f is_left_divergent_to+infty_in x0 implies (for r st r<x0 ex g st r<g &
g<x0 & g in dom f) & for g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f
  holds g1<f.r1
  proof
    assume that
A1: f is_left_divergent_to+infty_in x0 and
A2: (not for r st r<x0 ex g st r<g & g<x0 & g in dom f) or ex g1 st
    for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f & g1>=f.r1;
    consider g1 such that
A3: for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f & g1>=f.r1 by A1,A2;
    defpred X[Nat,Real] means x0-1/($1+1)<$2 & $2<x0 & $2 in
    dom f & f.($2)<=g1;
A4: now
      let n be Element of NAT;
      x0-1/(n+1)<x0 by Lm3;
      then consider g2 such that
A5:   x0-1/(n+1)<g2 and
A6:   g2<x0 and
A7:   g2 in dom f and
A8:   f.g2<=g1 by A3;
       reconsider g2 as Element of REAL by XREAL_0:def 1;
      take g2;
      thus X[n,g2] by A5,A6,A7,A8;
    end;
    consider s be Real_Sequence such that
A9: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A4);
A10: for n being Nat holds X[n,s.n]
     proof let n be Nat;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A9;
     end;
A11: rng s c=dom f/\left_open_halfline(x0) by A10,Th5;
A12: lim s=x0 by A10,Th5;
    s is convergent by A10,Th5;
    then f/*s is divergent_to+infty by A1,A12,A11;
    then consider n such that
A13: for k st n<=k holds g1<(f/*s).k;
A14: g1<(f/*s).n by A13;
A15: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A10,Th5;
    then g1<f.(s.n) by A14,FUNCT_2:108,A15;
    hence contradiction by A10;
  end;
  assume that
A16: for r st r<x0 ex g st r<g & g<x0 & g in dom f and
A17: for g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f holds g1 <f.r1;
  now
    let s be Real_Sequence such that
A18: s is convergent and
A19: lim s=x0 and
A20: rng s c=dom f/\left_open_halfline(x0);
A21: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
    now
      let g1;
      consider r such that
A22:  r<x0 and
A23:  for r1 st r<r1 & r1<x0 & r1 in dom f holds g1<f.r1 by A17;
      consider n such that
A24:  for k st n<=k holds r<s.k by A18,A19,A22,Th1;
      take n;
      let k;
      assume
A25:  n<=k;
A26:  s.k in rng s by VALUED_0:28;
      then s.k in left_open_halfline(x0) by A20,XBOOLE_0:def 4;
      then s.k in {g2: g2<x0} by XXREAL_1:229;
      then
A27:  ex g2 st g2=s.k & g2<x0;
A28: k in NAT by ORDINAL1:def 12;
      s.k in dom f by A20,A26,XBOOLE_0:def 4;
      then g1<f.(s.k) by A23,A24,A25,A27;
      hence g1<(f/*s).k by A20,A21,FUNCT_2:108,XBOOLE_1:1,A28;
    end;
    hence f/*s is divergent_to+infty;
  end;
  hence thesis by A16;
end;

theorem
  f is_left_divergent_to-infty_in x0 iff (for r st r<x0 ex g st r<g & g<
  x0 & g in dom f) & for g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f
  holds f.r1<g1
proof
  thus f is_left_divergent_to-infty_in x0 implies (for r st r<x0 ex g st r<g &
g<x0 & g in dom f) & for g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f
  holds f.r1<g1
  proof
    assume that
A1: f is_left_divergent_to-infty_in x0 and
A2: (not for r st r<x0 ex g st r<g & g<x0 & g in dom f) or ex g1 st
    for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f & g1<=f.r1;
    consider g1 such that
A3: for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f & g1<=f.r1 by A1,A2;
    defpred X[Nat,Real] means x0-1/($1+1)<$2 & $2<x0 & $2 in
    dom f & g1<=f.($2);
A4: now
      let n be Element of NAT;
      x0-1/(n+1)<x0 by Lm3;
      then consider g2 such that
A5:   x0-1/(n+1)<g2 and
A6:   g2<x0 and
A7:   g2 in dom f and
A8:   g1<=f.g2 by A3;
       reconsider g2 as Element of REAL by XREAL_0:def 1;
      take g2;
      thus X[n,g2] by A5,A6,A7,A8;
    end;
    consider s be Real_Sequence such that
A9: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A4);
A10: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A9;
     end;
A11: rng s c=dom f/\left_open_halfline(x0) by A10,Th5;
A12: lim s=x0 by A10,Th5;
    s is convergent by A10,Th5;
    then f/*s is divergent_to-infty by A1,A12,A11;
    then consider n such that
A13: for k st n<=k holds (f/*s).k<g1;
A14: (f/*s).n<g1 by A13;
A15: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A10,Th5;
    then f.(s.n)<g1 by A14,FUNCT_2:108,A15;
    hence contradiction by A10;
  end;
  assume that
A16: for r st r<x0 ex g st r<g & g<x0 & g in dom f and
A17: for g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f holds f. r1<g1;
  now
    let s be Real_Sequence such that
A18: s is convergent and
A19: lim s=x0 and
A20: rng s c=dom f/\left_open_halfline(x0);
A21: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
    now
      let g1;
      consider r such that
A22:  r<x0 and
A23:  for r1 st r<r1 & r1<x0 & r1 in dom f holds f.r1<g1 by A17;
      consider n such that
A24:  for k st n<=k holds r<s.k by A18,A19,A22,Th1;
      take n;
      let k;
      assume
A25:  n<=k;
A26:  s.k in rng s by VALUED_0:28;
      then s.k in left_open_halfline(x0) by A20,XBOOLE_0:def 4;
      then s.k in {g2: g2<x0} by XXREAL_1:229;
      then
A27:  ex g2 st g2=s.k & g2<x0;
A28: k in NAT by ORDINAL1:def 12;
      s.k in dom f by A20,A26,XBOOLE_0:def 4;
      then f.(s.k)<g1 by A23,A24,A25,A27;
      hence (f/*s).k<g1 by A20,A21,FUNCT_2:108,XBOOLE_1:1,A28;
    end;
    hence f/*s is divergent_to-infty;
  end;
  hence thesis by A16;
end;

theorem
  f is_right_convergent_in x0 iff (for r st x0<r ex g st g<r & x0<g & g
  in dom f) & ex g st for g1 st 0<g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1
  in dom f holds |.f.r1-g.|<g1
proof
  thus f is_right_convergent_in x0 implies (for r st x0<r ex g st g<r & x0<g &
g in dom f) & ex g st for g1 st 0<g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1
  in dom f holds |.f.r1-g.|<g1
  proof
    assume that
A1: f is_right_convergent_in x0 and
A2: (not for r st x0<r ex g st g<r & x0<g & g in dom f) or for g ex g1
st 0<g1 & for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & |.f.r1-g.|>=g1;
    consider g such that
A3: for seq st seq is convergent & lim seq=x0 & rng seq c=dom f/\
right_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq)=g by A1;
    consider g1 such that
A4: 0<g1 and
A5: for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & |.f.r1-g.|>=
    g1 by A1,A2;
    defpred X[Nat,Real] means x0<$2 & $2<x0+1/($1+1) & $2 in
    dom f & g1<=|.f.($2)-g.|;
A6: now
      let n be Element of NAT;
      x0<x0+1/(n+1) by Lm3;
      then consider r1 such that
A7:   r1<x0+(1/(n+1)) and
A8:   x0<r1 and
A9:   r1 in dom f and
A10:  g1<=|.f.r1-g.| by A5;
       reconsider r1 as Element of REAL by XREAL_0:def 1;
      take r1;
      thus X[n,r1] by A7,A8,A9,A10;
    end;
    consider s be Real_Sequence such that
A11: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A6);
A12: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A11;
     end;
A13: rng s c=dom f/\right_open_halfline(x0) by A12,Th6;
A14: lim s=x0 by A12,Th6;
A15: s is convergent by A12,Th6;
    then
A16: lim(f/*s)=g by A3,A14,A13;
    f/*s is convergent by A3,A15,A14,A13;
    then consider n such that
A17: for k st n<=k holds |.(f/*s).k-g.|<g1 by A4,A16,SEQ_2:def 7;
A18: |.(f/*s).n-g.|<g1 by A17;
A19: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A12,Th6;
    then |.f.(s.n)-g.|<g1 by A18,FUNCT_2:108,A19;
    hence contradiction by A12;
  end;
  assume
A20: for r st x0<r ex g st g<r & x0<g & g in dom f;
  given g such that
A21: for g1 st 0<g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom f
  holds |.f.r1-g.|<g1;
  now
    let s be Real_Sequence such that
A22: s is convergent and
A23: lim s=x0 and
A24: rng s c=dom f/\right_open_halfline(x0);
A25: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
A26: now
      let g1 be Real;
      assume
A27:  0<g1;
      consider r such that
A28:  x0<r and
A29:  for r1 st r1<r & x0<r1 & r1 in dom f holds |.f.r1-g.|<g1 by A21,A27;
      consider n such that
A30:  for k st n<=k holds s.k<r by A22,A23,A28,Th2;
      take n;
      let k;
      assume
A31:  n<=k;
A32:  s.k in rng s by VALUED_0:28;
      then s.k in right_open_halfline(x0) by A24,XBOOLE_0:def 4;
      then s.k in {g2: x0<g2} by XXREAL_1:230;
      then
A33:  ex g2 st g2=s.k & x0<g2;
A34: k in NAT by ORDINAL1:def 12;
      s.k in dom f by A24,A32,XBOOLE_0:def 4;
      then |.f.(s.k)-g.|<g1 by A29,A30,A31,A33;
      hence |.(f/*s).k-g.|<g1 by A24,A25,FUNCT_2:108,XBOOLE_1:1,A34;
    end;
    hence f/*s is convergent by SEQ_2:def 6;
    hence lim(f/*s)=g by A26,SEQ_2:def 7;
  end;
  hence thesis by A20;
end;

theorem
  f is_right_divergent_to+infty_in x0 iff (for r st x0<r ex g st g<r &
x0<g & g in dom f) & for g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom f
  holds g1<f.r1
proof
  thus f is_right_divergent_to+infty_in x0 implies (for r st x0<r ex g st g<r
& x0<g & g in dom f) & for g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom
  f holds g1<f.r1
  proof
    assume that
A1: f is_right_divergent_to+infty_in x0 and
A2: (not for r st x0<r ex g st g<r & x0<g & g in dom f) or ex g1 st
    for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & f.r1<=g1;
    consider g1 such that
A3: for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & f.r1<=g1 by A1,A2;
    defpred X[Nat,Real] means x0<$2 & $2<x0+1/($1+1) & $2 in
    dom f & f.($2)<=g1;
A4: now
      let n be Element of NAT;
      x0<x0+1/(n+1) by Lm3;
      then consider r1 such that
A5:   r1<x0+(1/(n+1)) and
A6:   x0<r1 and
A7:   r1 in dom f and
A8:   f.r1<=g1 by A3;
       reconsider r1 as Element of REAL by XREAL_0:def 1;
      take r1;
      thus X[n,r1] by A5,A6,A7,A8;
    end;
    consider s be Real_Sequence such that
A9: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A4);
A10: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A9;
     end;
A11: rng s c=dom f/\right_open_halfline(x0) by A10,Th6;
A12: lim s=x0 by A10,Th6;
    s is convergent by A10,Th6;
    then f/*s is divergent_to+infty by A1,A12,A11;
    then consider n such that
A13: for k st n<=k holds g1<(f/*s).k;
A14: g1<(f/*s).n by A13;
A15: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A10,Th6;
    then g1<f.(s.n) by A14,FUNCT_2:108,A15;
    hence contradiction by A10;
  end;
  assume that
A16: for r st x0<r ex g st g<r & x0<g & g in dom f and
A17: for g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom f holds g1 <f.r1;
  now
    let s be Real_Sequence such that
A18: s is convergent and
A19: lim s=x0 and
A20: rng s c=dom f/\right_open_halfline(x0);
A21: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
    now
      let g1;
      consider r such that
A22:  x0<r and
A23:  for r1 st r1<r & x0<r1 & r1 in dom f holds g1<f.r1 by A17;
      consider n such that
A24:  for k st n<=k holds s.k<r by A18,A19,A22,Th2;
      take n;
      let k;
      assume
A25:  n<=k;
A26:  s.k in rng s by VALUED_0:28;
      then s.k in right_open_halfline(x0) by A20,XBOOLE_0:def 4;
      then s.k in {g2: x0<g2} by XXREAL_1:230;
      then
A27:  ex g2 st g2=s.k & x0<g2;
A28: k in NAT by ORDINAL1:def 12;
      s.k in dom f by A20,A26,XBOOLE_0:def 4;
      then g1<f.(s.k) by A23,A24,A25,A27;
      hence g1<(f/*s).k by A20,A21,FUNCT_2:108,XBOOLE_1:1,A28;
    end;
    hence f/*s is divergent_to+infty;
  end;
  hence thesis by A16;
end;

theorem
  f is_right_divergent_to-infty_in x0 iff (for r st x0<r ex g st g<r &
x0<g & g in dom f) & for g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom f
  holds f.r1<g1
proof
  thus f is_right_divergent_to-infty_in x0 implies (for r st x0<r ex g st g<r
& x0<g & g in dom f) & for g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom
  f holds f.r1<g1
  proof
    assume that
A1: f is_right_divergent_to-infty_in x0 and
A2: (not for r st x0<r ex g st g<r & x0<g & g in dom f) or ex g1 st
    for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & g1<=f.r1;
    consider g1 such that
A3: for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & g1<=f.r1 by A1,A2;
    defpred X[Nat,Real] means x0<$2 & $2<x0+1/($1+1) & $2 in
    dom f & g1<=f.($2);
A4: now
      let n be Element of NAT;
      x0<x0+1/(n+1) by Lm3;
      then consider r1 such that
A5:   r1<x0+(1/(n+1)) and
A6:   x0<r1 and
A7:   r1 in dom f and
A8:   g1<=f.r1 by A3;
       reconsider r1 as Element of REAL by XREAL_0:def 1;
      take r1;
      thus X[n,r1] by A5,A6,A7,A8;
    end;
    consider s be Real_Sequence such that
A9: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A4);
A10: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A9;
     end;
A11: rng s c=dom f/\right_open_halfline(x0) by A10,Th6;
A12: lim s=x0 by A10,Th6;
    s is convergent by A10,Th6;
    then f/*s is divergent_to-infty by A1,A12,A11;
    then consider n such that
A13: for k st n<=k holds (f/*s).k<g1;
A14: (f/*s).n<g1 by A13;
A15: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A10,Th6;
    then f.(s.n)<g1 by A14,FUNCT_2:108,A15;
    hence contradiction by A10;
  end;
  assume that
A16: for r st x0<r ex g st g<r & x0<g & g in dom f and
A17: for g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom f holds f. r1<g1;
  for s be Real_Sequence holds s is convergent & lim s=x0 & rng s c=dom f
  /\right_open_halfline(x0) implies f/*s is divergent_to-infty by A17,Lm5;
  hence thesis by A16;
end;

theorem
  f1 is_left_divergent_to+infty_in x0 & f2 is_left_divergent_to+infty_in
  x0 & (for r st r<x0 ex g st r<g & g<x0 & g in dom f1 /\ dom f2) implies f1+f2
  is_left_divergent_to+infty_in x0 & f1(#) f2 is_left_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_left_divergent_to+infty_in x0 and
A2: f2 is_left_divergent_to+infty_in x0 and
A3: for r st r<x0 ex g st r<g & g<x0 & g in dom f1/\dom f2;
A4: now
    let seq;
    assume that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\left_open_halfline(x0);
    rng seq c=dom f2/\left_open_halfline(x0) by A7,Lm4;
    then
A8: f2/*seq is divergent_to+infty by A2,A5,A6;
    rng seq c=dom f1/\left_open_halfline(x0) by A7,Lm4;
    then f1/*seq is divergent_to+infty by A1,A5,A6;
    then
A9: f1/*seq+f2/*seq is divergent_to+infty by A8,LIMFUNC1:8;
A10: dom(f1+f2)=dom f1/\dom f2 by A7,Lm4;
    rng seq c=dom(f1+f2) by A7,Lm4;
    hence (f1+f2)/*seq is divergent_to+infty by A10,A9,RFUNCT_2:8;
  end;
A11: now
    let seq;
    assume that
A12: seq is convergent and
A13: lim seq=x0 and
A14: rng seq c=dom(f1(#)f2)/\left_open_halfline(x0);
    rng seq c=dom f2/\left_open_halfline(x0) by A14,Lm2;
    then
A15: f2/*seq is divergent_to+infty by A2,A12,A13;
    rng seq c=dom f1/\left_open_halfline(x0) by A14,Lm2;
    then f1/*seq is divergent_to+infty by A1,A12,A13;
    then
A16: (f1/*seq)(#)(f2/*seq) is divergent_to+infty by A15,LIMFUNC1:10;
A17: dom(f1(#)f2)=dom f1/\dom f2 by A14,Lm2;
    rng seq c=dom(f1(#)f2) by A14,Lm2;
    hence (f1(#)f2)/*seq is divergent_to+infty by A17,A16,RFUNCT_2:8;
  end;
  now
    let r;
    assume r<x0;
    then consider g such that
A18: r<g and
A19: g<x0 and
A20: g in dom f1/\dom f2 by A3;
    take g;
    thus r<g & g<x0 & g in dom(f1+f2) by A18,A19,A20,VALUED_1:def 1;
  end;
  hence f1+f2 is_left_divergent_to+infty_in x0 by A4;
  now
    let r;
    assume r<x0;
    then consider g such that
A21: r<g and
A22: g<x0 and
A23: g in dom f1/\dom f2 by A3;
    take g;
    thus r<g & g<x0 & g in dom(f1(#)f2) by A21,A22,A23,VALUED_1:def 4;
  end;
  hence thesis by A11;
end;

theorem
  f1 is_left_divergent_to-infty_in x0 & f2 is_left_divergent_to-infty_in
  x0 & (for r st r<x0 ex g st r<g & g<x0 & g in dom f1 /\ dom f2) implies f1+f2
  is_left_divergent_to-infty_in x0 & f1(#)f2 is_left_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_left_divergent_to-infty_in x0 and
A2: f2 is_left_divergent_to-infty_in x0 and
A3: for r st r<x0 ex g st r<g & g<x0 & g in dom f1/\dom f2;
A4: now
    let seq;
    assume that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\left_open_halfline(x0);
    rng seq c=dom f2/\left_open_halfline(x0) by A7,Lm4;
    then
A8: f2/*seq is divergent_to-infty by A2,A5,A6;
    rng seq c=dom f1/\left_open_halfline(x0) by A7,Lm4;
    then f1/*seq is divergent_to-infty by A1,A5,A6;
    then
A9: f1/*seq+f2/*seq is divergent_to-infty by A8,LIMFUNC1:11;
A10: dom(f1+f2)=dom f1/\dom f2 by A7,Lm4;
    rng seq c=dom(f1+f2) by A7,Lm4;
    hence (f1+f2)/*seq is divergent_to-infty by A10,A9,RFUNCT_2:8;
  end;
A11: now
    let seq;
    assume that
A12: seq is convergent and
A13: lim seq=x0 and
A14: rng seq c=dom(f1(#)f2)/\left_open_halfline(x0);
    rng seq c=dom f2/\left_open_halfline(x0) by A14,Lm2;
    then
A15: f2/*seq is divergent_to-infty by A2,A12,A13;
    rng seq c=dom f1/\left_open_halfline(x0) by A14,Lm2;
    then f1/*seq is divergent_to-infty by A1,A12,A13;
    then
A16: (f1/*seq)(#)(f2/*seq) is divergent_to+infty by A15,LIMFUNC1:24;
A17: dom(f1(#)f2)=dom f1/\dom f2 by A14,Lm2;
    rng seq c=dom(f1(#)f2) by A14,Lm2;
    hence (f1(#)f2)/*seq is divergent_to+infty by A17,A16,RFUNCT_2:8;
  end;
  now
    let r;
    assume r<x0;
    then consider g such that
A18: r<g and
A19: g<x0 and
A20: g in dom f1/\dom f2 by A3;
    take g;
    thus r<g & g<x0 & g in dom(f1+f2) by A18,A19,A20,VALUED_1:def 1;
  end;
  hence f1+f2 is_left_divergent_to-infty_in x0 by A4;
  now
    let r;
    assume r<x0;
    then consider g such that
A21: r<g and
A22: g<x0 and
A23: g in dom f1/\dom f2 by A3;
    take g;
    thus r<g & g<x0 & g in dom(f1(#)f2) by A21,A22,A23,VALUED_1:def 4;
  end;
  hence thesis by A11;
end;

theorem
  f1 is_right_divergent_to+infty_in x0 & f2
  is_right_divergent_to+infty_in x0 & (for r st x0<r ex g st g<r & x0<g & g in
  dom f1 /\ dom f2) implies f1+f2 is_right_divergent_to+infty_in x0 & f1(#)f2
  is_right_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_right_divergent_to+infty_in x0 and
A2: f2 is_right_divergent_to+infty_in x0 and
A3: for r st x0<r ex g st g<r & x0<g & g in dom f1/\dom f2;
A4: now
    let seq;
    assume that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\right_open_halfline(x0);
    rng seq c=dom f2/\right_open_halfline(x0) by A7,Lm4;
    then
A8: f2/*seq is divergent_to+infty by A2,A5,A6;
    rng seq c=dom f1/\right_open_halfline(x0) by A7,Lm4;
    then f1/*seq is divergent_to+infty by A1,A5,A6;
    then
A9: f1/*seq+f2/*seq is divergent_to+infty by A8,LIMFUNC1:8;
A10: dom(f1+f2)=dom f1/\dom f2 by A7,Lm4;
    rng seq c=dom(f1+f2) by A7,Lm4;
    hence (f1+f2)/*seq is divergent_to+infty by A10,A9,RFUNCT_2:8;
  end;
A11: now
    let seq;
    assume that
A12: seq is convergent and
A13: lim seq=x0 and
A14: rng seq c=dom(f1(#)f2)/\right_open_halfline(x0);
    rng seq c=dom f2/\right_open_halfline(x0) by A14,Lm2;
    then
A15: f2/*seq is divergent_to+infty by A2,A12,A13;
    rng seq c=dom f1/\right_open_halfline(x0) by A14,Lm2;
    then f1/*seq is divergent_to+infty by A1,A12,A13;
    then
A16: (f1/*seq)(#)(f2/*seq) is divergent_to+infty by A15,LIMFUNC1:10;
A17: dom(f1(#)f2)=dom f1/\dom f2 by A14,Lm2;
    rng seq c=dom(f1(#)f2) by A14,Lm2;
    hence (f1(#)f2)/*seq is divergent_to+infty by A17,A16,RFUNCT_2:8;
  end;
  now
    let r;
    assume x0<r;
    then consider g such that
A18: g<r and
A19: x0<g and
A20: g in dom f1/\dom f2 by A3;
    take g;
    thus g<r & x0<g & g in dom(f1+f2) by A18,A19,A20,VALUED_1:def 1;
  end;
  hence f1+f2 is_right_divergent_to+infty_in x0 by A4;
  now
    let r;
    assume x0<r;
    then consider g such that
A21: g<r and
A22: x0<g and
A23: g in dom f1/\dom f2 by A3;
    take g;
    thus g<r & x0<g & g in dom(f1(#)f2) by A21,A22,A23,VALUED_1:def 4;
  end;
  hence thesis by A11;
end;

theorem
  f1 is_right_divergent_to-infty_in x0 & f2
  is_right_divergent_to-infty_in x0 & (for r st x0<r ex g st g<r & x0<g & g in
  dom f1 /\ dom f2) implies f1+f2 is_right_divergent_to-infty_in x0 & f1(#)f2
  is_right_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_right_divergent_to-infty_in x0 and
A2: f2 is_right_divergent_to-infty_in x0 and
A3: for r st x0<r ex g st g<r & x0<g & g in dom f1/\dom f2;
A4: now
    let seq;
    assume that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\right_open_halfline(x0);
    rng seq c=dom f2/\right_open_halfline(x0) by A7,Lm4;
    then
A8: f2/*seq is divergent_to-infty by A2,A5,A6;
    rng seq c=dom f1/\right_open_halfline(x0) by A7,Lm4;
    then f1/*seq is divergent_to-infty by A1,A5,A6;
    then
A9: f1/*seq+f2/*seq is divergent_to-infty by A8,LIMFUNC1:11;
A10: dom(f1+f2)=dom f1/\dom f2 by A7,Lm4;
    rng seq c=dom(f1+f2) by A7,Lm4;
    hence (f1+f2)/*seq is divergent_to-infty by A10,A9,RFUNCT_2:8;
  end;
A11: now
    let seq;
    assume that
A12: seq is convergent and
A13: lim seq=x0 and
A14: rng seq c=dom(f1(#)f2)/\right_open_halfline(x0);
    rng seq c=dom f2/\right_open_halfline(x0) by A14,Lm2;
    then
A15: f2/*seq is divergent_to-infty by A2,A12,A13;
    rng seq c=dom f1/\right_open_halfline(x0) by A14,Lm2;
    then f1/*seq is divergent_to-infty by A1,A12,A13;
    then
A16: (f1/*seq)(#)(f2/*seq) is divergent_to+infty by A15,LIMFUNC1:24;
A17: dom(f1(#)f2)=dom f1/\dom f2 by A14,Lm2;
    rng seq c=dom(f1(#)f2) by A14,Lm2;
    hence (f1(#)f2)/*seq is divergent_to+infty by A17,A16,RFUNCT_2:8;
  end;
  now
    let r;
    assume x0<r;
    then consider g such that
A18: g<r and
A19: x0<g and
A20: g in dom f1/\dom f2 by A3;
    take g;
    thus g<r & x0<g & g in dom(f1+f2) by A18,A19,A20,VALUED_1:def 1;
  end;
  hence f1+f2 is_right_divergent_to-infty_in x0 by A4;
  now
    let r;
    assume x0<r;
    then consider g such that
A21: g<r and
A22: x0<g and
A23: g in dom f1/\dom f2 by A3;
    take g;
    thus g<r & x0<g & g in dom(f1(#)f2) by A21,A22,A23,VALUED_1:def 4;
  end;
  hence thesis by A11;
end;

theorem
  f1 is_left_divergent_to+infty_in x0 & (for r st r<x0 ex g st r<g & g<
x0 & g in dom(f1+f2)) & (ex r st 0<r & f2|].x0-r,x0.[ is bounded_below) implies
  f1+f2 is_left_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_left_divergent_to+infty_in x0 and
A2: for r st r<x0 ex g st r<g & g<x0 & g in dom(f1+f2);
  given r such that
A3: 0<r and
A4: f2|].x0-r,x0.[ is bounded_below;
  now
    let seq such that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\left_open_halfline(x0);
    x0-r<x0 by A3,Lm1;
    then consider k such that
A8: for n st k<=n holds x0-r<seq.n by A5,A6,Th1;
A9: dom(f1+f2)/\left_open_halfline(x0) c=dom(f1+f2) by XBOOLE_1:17;
    rng(seq^\k)c=rng seq by VALUED_0:21;
    then
A10: rng(seq^\k)c=dom(f1+f2)/\left_open_halfline(x0) by A7,XBOOLE_1:1;
    then
A11: rng(seq^\k)c=dom(f1+f2) by A9,XBOOLE_1:1;
A12: dom(f1+f2)=dom f1/\dom f2 by VALUED_1:def 1;
    then
A13: dom(f1+f2)c=dom f2 by XBOOLE_1:17;
    then
A14: rng(seq^\k)c=dom f2 by A11,XBOOLE_1:1;
    dom(f1+f2)c=dom f1 by A12,XBOOLE_1:17;
    then
A15: rng(seq^\k)c=dom f1 by A11,XBOOLE_1:1;
    then rng(seq^\k)c=dom f1/\dom f2 by A14,XBOOLE_1:19;
    then
A16: f1/*(seq^\k)+f2/*(seq^\k)=(f1+f2)/*(seq^\k) by RFUNCT_2:8
      .=((f1+f2)/*seq)^\k by A7,A9,VALUED_0:27,XBOOLE_1:1;
    dom(f1+f2)/\left_open_halfline(x0) c=left_open_halfline(x0) by XBOOLE_1:17;
    then
A17: rng(seq^\k)c=left_open_halfline(x0) by A10,XBOOLE_1:1;
    then
A18: rng(seq^\k)c=dom f1/\left_open_halfline(x0) by A15,XBOOLE_1:19;
    now
      consider r1 be Real such that
A19:  for g being object st g in ].x0-r,x0.[/\dom f2 holds r1<=f2.g by A4,
RFUNCT_1:71;
      take r2=r1-1;
      let n;
A20: n in NAT by ORDINAL1:def 12;
      x0-r<seq.(n+k) by A8,NAT_1:12;
      then
A21:  x0-r<(seq^\k).n by NAT_1:def 3;
A22:  (seq^\k).n in rng(seq^\k) by VALUED_0:28;
      then (seq^\k).n in left_open_halfline(x0) by A17;
      then (seq^\k).n in {g1: g1<x0} by XXREAL_1:229;
      then ex g st g=(seq^\k).n & g<x0;
      then (seq^\k).n in {g2: x0-r<g2 & g2<x0} by A21;
      then (seq^\k).n in ].x0-r,x0.[ by RCOMP_1:def 2;
      then (seq^\k).n in ].x0-r,x0.[/\dom f2 by A14,A22,XBOOLE_0:def 4;
      then r1-1<f2.((seq^\k).n)-0 by A19,XREAL_1:15;
      hence r2<(f2/*(seq^\k)).n by A11,A13,FUNCT_2:108,XBOOLE_1:1,A20;
    end;
    then
A23: f2/*(seq^\k) is bounded_below by SEQ_2:def 4;
    lim(seq^\k)=x0 by A5,A6,SEQ_4:20;
    then f1/*(seq^\k) is divergent_to+infty by A1,A5,A18;
    then f1/*(seq^\k)+f2/*(seq^\k) is divergent_to+infty by A23,LIMFUNC1:9;
    hence (f1+f2)/*seq is divergent_to+infty by A16,LIMFUNC1:7;
  end;
  hence thesis by A2;
end;

theorem
  f1 is_left_divergent_to+infty_in x0 & (for r st r<x0 ex g st r<g & g<
x0 & g in dom(f1(#)f2)) & (ex r,r1 st 0<r & 0<r1 & for g st g in dom f2 /\ ].x0
  -r,x0.[ holds r1<= f2.g) implies f1(#)f2 is_left_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_left_divergent_to+infty_in x0 and
A2: for r st r<x0 ex g st r<g & g<x0 & g in dom(f1(#)f2);
  given r,t such that
A3: 0<r and
A4: 0<t and
A5: for g st g in dom f2/\].x0-r,x0.[ holds t<=f2.g;
  now
    let seq such that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom(f1(#)f2)/\left_open_halfline(x0);
    x0-r<x0 by A3,Lm1;
    then consider k such that
A9: for n st k<=n holds x0-r<seq.n by A6,A7,Th1;
A10: rng seq c=dom(f1(#)f2) by A8,Lm2;
A11: dom(f1(#)f2)=dom f1/\dom f2 by A8,Lm2;
    rng(seq^\k)c=rng seq by VALUED_0:21;
    then
A12: rng(seq^\k)c=dom(f1(#)f2)/\left_open_halfline(x0) by A8,XBOOLE_1:1;
    then
A13: rng(seq^\k)c=dom f2 by Lm2;
A14: rng(seq^\k)c=left_open_halfline(x0) by A12,Lm2;
A15: now
      thus 0<t by A4;
      let n;
A16: n in NAT by ORDINAL1:def 12;
      x0-r<seq.(n+k) by A9,NAT_1:12;
      then
A17:  x0-r<(seq^\k).n by NAT_1:def 3;
A18:  (seq^\k).n in rng(seq^\k) by VALUED_0:28;
      then (seq^\k).n in left_open_halfline(x0) by A14;
      then (seq^\k).n in {g1: g1<x0} by XXREAL_1:229;
      then ex g st g=(seq^\k).n & g<x0;
      then (seq^\k).n in {g2: x0-r<g2 & g2<x0} by A17;
      then (seq^\k).n in ].x0-r,x0.[ by RCOMP_1:def 2;
      then (seq^\k).n in dom f2/\].x0-r,x0.[ by A13,A18,XBOOLE_0:def 4;
      then t<=f2.((seq^\k).n) by A5;
      hence t<=(f2/*(seq^\k)).n by A13,FUNCT_2:108,A16;
    end;
A19: rng(seq^\k)c=dom f1/\left_open_halfline(x0) by A12,Lm2;
    lim(seq^\k)=x0 by A6,A7,SEQ_4:20;
    then f1/*(seq^\k) is divergent_to+infty by A1,A6,A19;
    then
A20: (f1/*(seq^\k))(#)(f2/*(seq^\k)) is divergent_to+infty by A15,LIMFUNC1:22;
    rng(seq^\k)c=dom(f1(#)f2) by A12,Lm2;
    then (f1/*(seq^\k))(#)(f2/*(seq^\k))=(f1(#)f2)/*(seq^\k) by A11,RFUNCT_2:8
      .=((f1(#)f2)/*seq)^\k by A10,VALUED_0:27;
    hence (f1(#)f2)/*seq is divergent_to+infty by A20,LIMFUNC1:7;
  end;
  hence thesis by A2;
end;

theorem
  f1 is_right_divergent_to+infty_in x0 & (for r st x0<r ex g st g<r & x0
<g & g in dom(f1+f2)) & (ex r st 0<r & f2|].x0,x0+r.[ is bounded_below) implies
  f1+f2 is_right_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_right_divergent_to+infty_in x0 and
A2: for r st x0<r ex g st g<r & x0<g & g in dom(f1+f2);
  given r such that
A3: 0<r and
A4: f2|].x0,x0+r.[ is bounded_below;
  now
    let seq such that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\right_open_halfline(x0);
    x0<x0+r by A3,Lm1;
    then consider k such that
A8: for n st k<=n holds seq.n<x0+r by A5,A6,Th2;
A9: dom(f1+f2)/\right_open_halfline(x0) c=dom(f1+f2) by XBOOLE_1:17;
    rng(seq^\k)c=rng seq by VALUED_0:21;
    then
A10: rng(seq^\k)c=dom(f1+f2)/\right_open_halfline(x0) by A7,XBOOLE_1:1;
    then
A11: rng(seq^\k)c=dom(f1+f2) by A9,XBOOLE_1:1;
A12: dom(f1+f2)=dom f1/\dom f2 by VALUED_1:def 1;
    then
A13: dom(f1+f2)c=dom f2 by XBOOLE_1:17;
    then
A14: rng(seq^\k)c=dom f2 by A11,XBOOLE_1:1;
    dom(f1+f2)c=dom f1 by A12,XBOOLE_1:17;
    then
A15: rng(seq^\k)c=dom f1 by A11,XBOOLE_1:1;
    then rng(seq^\k)c=dom f1/\dom f2 by A14,XBOOLE_1:19;
    then
A16: f1/*(seq^\k)+f2/*(seq^\k)=(f1+f2)/*(seq^\k) by RFUNCT_2:8
      .=((f1+f2)/*seq)^\k by A7,A9,VALUED_0:27,XBOOLE_1:1;
    dom(f1+f2)/\ right_open_halfline(x0) c=right_open_halfline(x0) by
XBOOLE_1:17;
    then
A17: rng(seq^\k)c=right_open_halfline(x0) by A10,XBOOLE_1:1;
    then
A18: rng(seq^\k)c=dom f1/\right_open_halfline(x0) by A15,XBOOLE_1:19;
    now
      consider r1 be Real such that
A19:  for g being object st g in ].x0,x0+r.[/\dom f2 holds r1<=f2.g by A4,
RFUNCT_1:71;
      take r2=r1-1;
      let n;
A20: n in NAT by ORDINAL1:def 12;
      seq.(n+k)<x0+r by A8,NAT_1:12;
      then
A21:  (seq^\k).n<x0+r by NAT_1:def 3;
A22:  (seq^\k).n in rng(seq^\k) by VALUED_0:28;
      then (seq^\k).n in right_open_halfline(x0) by A17;
      then (seq^\k).n in {g1: x0<g1} by XXREAL_1:230;
      then ex g st g=(seq^\k).n & x0<g;
      then (seq^\k).n in {g2: x0<g2 & g2<x0+r} by A21;
      then (seq^\k).n in ].x0,x0+r.[ by RCOMP_1:def 2;
      then (seq^\k).n in ].x0,x0+r.[/\dom f2 by A14,A22,XBOOLE_0:def 4;
      then r1-1<f2.((seq^\k).n)-0 by A19,XREAL_1:15;
      hence r2<(f2/*(seq^\k)).n by A11,A13,FUNCT_2:108,XBOOLE_1:1,A20;
    end;
    then
A23: f2/*(seq^\k) is bounded_below by SEQ_2:def 4;
    lim(seq^\k)=x0 by A5,A6,SEQ_4:20;
    then f1/*(seq^\k) is divergent_to+infty by A1,A5,A18;
    then f1/*(seq^\k)+f2/*(seq^\k) is divergent_to+infty by A23,LIMFUNC1:9;
    hence (f1+f2)/*seq is divergent_to+infty by A16,LIMFUNC1:7;
  end;
  hence thesis by A2;
end;

theorem
  f1 is_right_divergent_to+infty_in x0 & (for r st x0<r ex g st g<r & x0
<g & g in dom(f1(#)f2)) & (ex r,r1 st 0<r & 0<r1 & for g st g in dom f2 /\ ].x0
  ,x0+r.[ holds r1<= f2.g) implies f1(#)f2 is_right_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_right_divergent_to+infty_in x0 and
A2: for r st x0<r ex g st g<r & x0<g & g in dom(f1(#)f2);
  given r,t such that
A3: 0<r and
A4: 0<t and
A5: for g st g in dom f2/\].x0,x0+r.[ holds t<=f2.g;
  now
    let seq such that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom(f1(#)f2)/\right_open_halfline(x0);
    x0<x0+r by A3,Lm1;
    then consider k such that
A9: for n st k<=n holds seq.n<x0+r by A6,A7,Th2;
A10: rng seq c=dom(f1(#)f2) by A8,Lm2;
A11: dom(f1(#)f2)=dom f1/\dom f2 by A8,Lm2;
    rng(seq^\k)c=rng seq by VALUED_0:21;
    then
A12: rng(seq^\k)c=dom(f1(#)f2)/\right_open_halfline(x0) by A8,XBOOLE_1:1;
    then
A13: rng(seq^\k)c=dom f2 by Lm2;
A14: rng(seq^\k)c=right_open_halfline(x0) by A12,Lm2;
A15: now
      thus 0<t by A4;
      let n;
A16: n in NAT by ORDINAL1:def 12;
      seq.(n+k)<x0+r by A9,NAT_1:12;
      then
A17:  (seq^\k).n<x0+r by NAT_1:def 3;
A18:  (seq^\k).n in rng(seq^\k) by VALUED_0:28;
      then (seq^\k).n in right_open_halfline(x0) by A14;
      then (seq^\k).n in {g1: x0<g1} by XXREAL_1:230;
      then ex g st g=(seq^\k).n & x0<g;
      then (seq^\k).n in {g2: x0<g2 & g2<x0+r} by A17;
      then (seq^\k).n in ].x0,x0+r.[ by RCOMP_1:def 2;
      then (seq^\k).n in dom f2/\].x0,x0+r.[ by A13,A18,XBOOLE_0:def 4;
      then t<=f2.((seq^\k).n) by A5;
      hence t<=(f2/*(seq^\k)).n by A13,FUNCT_2:108,A16;
    end;
A19: rng(seq^\k)c=dom f1/\right_open_halfline(x0) by A12,Lm2;
    lim(seq^\k)=x0 by A6,A7,SEQ_4:20;
    then f1/*(seq^\k) is divergent_to+infty by A1,A6,A19;
    then
A20: (f1/*(seq^\k))(#)(f2/*(seq^\k)) is divergent_to+infty by A15,LIMFUNC1:22;
    rng(seq^\k)c=dom(f1(#)f2) by A12,Lm2;
    then (f1/*(seq^\k))(#)(f2/*(seq^\k))=(f1(#)f2)/*(seq^\k) by A11,RFUNCT_2:8
      .=((f1(#)f2)/*seq)^\k by A10,VALUED_0:27;
    hence (f1(#)f2)/*seq is divergent_to+infty by A20,LIMFUNC1:7;
  end;
  hence thesis by A2;
end;

theorem
  (f is_left_divergent_to+infty_in x0 & r>0 implies r(#)f
is_left_divergent_to+infty_in x0 ) & (f is_left_divergent_to+infty_in x0 & r<0
  implies r(#)f is_left_divergent_to-infty_in x0 ) & (f
  is_left_divergent_to-infty_in x0 & r>0 implies r(#)f
is_left_divergent_to-infty_in x0 ) & (f is_left_divergent_to-infty_in x0 & r<0
  implies r(#)f is_left_divergent_to+infty_in x0 )
proof
A1: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
  thus f is_left_divergent_to+infty_in x0 & r>0 implies r(#)f
  is_left_divergent_to+infty_in x0
  proof
    assume that
A2: f is_left_divergent_to+infty_in x0 and
A3: r>0;
    thus for r1 st r1<x0 ex g st r1<g & g<x0 & g in dom(r(#)f)
    proof
      let r1;
      assume r1<x0;
      then consider g such that
A4:   r1<g and
A5:   g<x0 and
A6:   g in dom f by A2;
      take g;
      thus thesis by A4,A5,A6,VALUED_1:def 5;
    end;
    let seq;
    assume that
A7: seq is convergent and
A8: lim seq=x0 and
A9: rng seq c=dom(r(#)f)/\left_open_halfline(x0);
A10: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
A11: rng seq c=dom f/\left_open_halfline(x0) by A9,VALUED_1:def 5;
    then f/*seq is divergent_to+infty by A2,A7,A8;
    then r(#)(f/*seq) is divergent_to+infty by A3,LIMFUNC1:13;
    hence thesis by A11,A10,RFUNCT_2:9,XBOOLE_1:1;
  end;
  thus f is_left_divergent_to+infty_in x0 & r<0 implies r(#)f
  is_left_divergent_to-infty_in x0
  proof
    assume that
A12: f is_left_divergent_to+infty_in x0 and
A13: r<0;
    thus for r1 st r1<x0 ex g st r1<g & g<x0 & g in dom(r(#)f)
    proof
      let r1;
      assume r1<x0;
      then consider g such that
A14:  r1<g and
A15:  g<x0 and
A16:  g in dom f by A12;
      take g;
      thus thesis by A14,A15,A16,VALUED_1:def 5;
    end;
    let seq;
    assume that
A17: seq is convergent and
A18: lim seq=x0 and
A19: rng seq c=dom(r(#)f)/\left_open_halfline(x0);
A20: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
A21: rng seq c=dom f/\left_open_halfline(x0) by A19,VALUED_1:def 5;
    then f/*seq is divergent_to+infty by A12,A17,A18;
    then r(#)(f/*seq) is divergent_to-infty by A13,LIMFUNC1:13;
    hence thesis by A21,A20,RFUNCT_2:9,XBOOLE_1:1;
  end;
  thus f is_left_divergent_to-infty_in x0 & r>0 implies r(#)f
  is_left_divergent_to-infty_in x0
  proof
    assume that
A22: f is_left_divergent_to-infty_in x0 and
A23: r>0;
    thus for r1 st r1<x0 ex g st r1<g & g<x0 & g in dom(r(#)f)
    proof
      let r1;
      assume r1<x0;
      then consider g such that
A24:  r1<g and
A25:  g<x0 and
A26:  g in dom f by A22;
      take g;
      thus thesis by A24,A25,A26,VALUED_1:def 5;
    end;
    let seq;
    assume that
A27: seq is convergent and
A28: lim seq=x0 and
A29: rng seq c=dom(r(#)f)/\left_open_halfline(x0);
A30: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
A31: rng seq c=dom f/\left_open_halfline(x0) by A29,VALUED_1:def 5;
    then f/*seq is divergent_to-infty by A22,A27,A28;
    then r(#)(f/*seq) is divergent_to-infty by A23,LIMFUNC1:14;
    hence thesis by A31,A30,RFUNCT_2:9,XBOOLE_1:1;
  end;
  assume that
A32: f is_left_divergent_to-infty_in x0 and
A33: r<0;
  thus for r1 st r1<x0 ex g st r1<g & g<x0 & g in dom(r(#)f)
  proof
    let r1;
    assume r1<x0;
    then consider g such that
A34: r1<g and
A35: g<x0 and
A36: g in dom f by A32;
    take g;
    thus thesis by A34,A35,A36,VALUED_1:def 5;
  end;
  let seq;
  assume that
A37: seq is convergent and
A38: lim seq=x0 and
A39: rng seq c=dom(r(#)f)/\left_open_halfline(x0);
A40: rng seq c=dom f/\left_open_halfline(x0) by A39,VALUED_1:def 5;
  then f/*seq is divergent_to-infty by A32,A37,A38;
  then r(#)(f/*seq) is divergent_to+infty by A33,LIMFUNC1:14;
  hence thesis by A40,A1,RFUNCT_2:9,XBOOLE_1:1;
end;

theorem
  (f is_right_divergent_to+infty_in x0 & r>0 implies r(#)f
is_right_divergent_to+infty_in x0 ) & (f is_right_divergent_to+infty_in x0 & r<
  0 implies r(#)f is_right_divergent_to-infty_in x0 ) & (f
  is_right_divergent_to-infty_in x0 & r>0 implies r(#)f
is_right_divergent_to-infty_in x0 ) & (f is_right_divergent_to-infty_in x0 & r<
  0 implies r(#)f is_right_divergent_to+infty_in x0)
proof
A1: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
  thus f is_right_divergent_to+infty_in x0 & r>0 implies r(#)f
  is_right_divergent_to+infty_in x0
  proof
    assume that
A2: f is_right_divergent_to+infty_in x0 and
A3: r>0;
    thus for r1 st x0<r1 ex g st g<r1 & x0<g & g in dom(r(#)f)
    proof
      let r1;
      assume x0<r1;
      then consider g such that
A4:   g<r1 and
A5:   x0<g and
A6:   g in dom f by A2;
      take g;
      thus thesis by A4,A5,A6,VALUED_1:def 5;
    end;
    let seq;
    assume that
A7: seq is convergent and
A8: lim seq=x0 and
A9: rng seq c=dom(r(#)f)/\right_open_halfline(x0);
A10: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
A11: rng seq c=dom f/\right_open_halfline(x0) by A9,VALUED_1:def 5;
    then f/*seq is divergent_to+infty by A2,A7,A8;
    then r(#)(f/*seq) is divergent_to+infty by A3,LIMFUNC1:13;
    hence thesis by A11,A10,RFUNCT_2:9,XBOOLE_1:1;
  end;
  thus f is_right_divergent_to+infty_in x0 & r<0 implies r(#)f
  is_right_divergent_to-infty_in x0
  proof
    assume that
A12: f is_right_divergent_to+infty_in x0 and
A13: r<0;
    thus for r1 st x0<r1 ex g st g<r1 & x0<g & g in dom(r(#)f)
    proof
      let r1;
      assume x0<r1;
      then consider g such that
A14:  g<r1 and
A15:  x0<g and
A16:  g in dom f by A12;
      take g;
      thus thesis by A14,A15,A16,VALUED_1:def 5;
    end;
    let seq;
    assume that
A17: seq is convergent and
A18: lim seq=x0 and
A19: rng seq c=dom(r(#)f)/\right_open_halfline(x0);
A20: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
A21: rng seq c=dom f/\right_open_halfline(x0) by A19,VALUED_1:def 5;
    then f/*seq is divergent_to+infty by A12,A17,A18;
    then r(#)(f/*seq) is divergent_to-infty by A13,LIMFUNC1:13;
    hence thesis by A21,A20,RFUNCT_2:9,XBOOLE_1:1;
  end;
  thus f is_right_divergent_to-infty_in x0 & r>0 implies r(#)f
  is_right_divergent_to-infty_in x0
  proof
    assume that
A22: f is_right_divergent_to-infty_in x0 and
A23: r>0;
    thus for r1 st x0<r1 ex g st g<r1 & x0<g & g in dom(r(#)f)
    proof
      let r1;
      assume x0<r1;
      then consider g such that
A24:  g<r1 and
A25:  x0<g and
A26:  g in dom f by A22;
      take g;
      thus thesis by A24,A25,A26,VALUED_1:def 5;
    end;
    let seq;
    assume that
A27: seq is convergent and
A28: lim seq=x0 and
A29: rng seq c=dom(r(#)f)/\right_open_halfline(x0);
A30: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
A31: rng seq c=dom f/\right_open_halfline(x0) by A29,VALUED_1:def 5;
    then f/*seq is divergent_to-infty by A22,A27,A28;
    then r(#)(f/*seq) is divergent_to-infty by A23,LIMFUNC1:14;
    hence thesis by A31,A30,RFUNCT_2:9,XBOOLE_1:1;
  end;
  assume that
A32: f is_right_divergent_to-infty_in x0 and
A33: r<0;
  thus for r1 st x0<r1 ex g st g<r1 & x0<g & g in dom(r(#)f)
  proof
    let r1;
    assume x0<r1;
    then consider g such that
A34: g<r1 and
A35: x0<g and
A36: g in dom f by A32;
    take g;
    thus thesis by A34,A35,A36,VALUED_1:def 5;
  end;
  let seq;
  assume that
A37: seq is convergent and
A38: lim seq=x0 and
A39: rng seq c=dom(r(#)f)/\right_open_halfline(x0);
A40: rng seq c=dom f/\right_open_halfline(x0) by A39,VALUED_1:def 5;
  then f/*seq is divergent_to-infty by A32,A37,A38;
  then r(#)(f/*seq) is divergent_to+infty by A33,LIMFUNC1:14;
  hence thesis by A40,A1,RFUNCT_2:9,XBOOLE_1:1;
end;

theorem
  (f is_left_divergent_to+infty_in x0 or f is_left_divergent_to-infty_in
  x0) implies abs(f) is_left_divergent_to+infty_in x0
proof
  assume
A1: f is_left_divergent_to+infty_in x0 or f is_left_divergent_to-infty_in x0;
  now
    per cases by A1;
    suppose
A2:   f is_left_divergent_to+infty_in x0;
A3:   now
        let seq;
        assume that
A4:     seq is convergent and
A5:     lim seq=x0 and
A6:     rng seq c=dom abs(f)/\left_open_halfline(x0);
A7:     rng seq c=dom f/\left_open_halfline(x0) by A6,VALUED_1:def 11;
        then f/*seq is divergent_to+infty by A2,A4,A5;
        then
A8:     abs(f/*seq) is divergent_to+infty by LIMFUNC1:25;
        dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then rng seq c=dom f by A7,XBOOLE_1:1;
        hence (abs f)/*seq is divergent_to+infty by A8,RFUNCT_2:10;
      end;
      now
        let r;
        assume r<x0;
        then consider g such that
A9:     r<g and
A10:    g<x0 and
A11:    g in dom f by A2;
        take g;
        thus r<g & g<x0 & g in dom abs(f) by A9,A10,A11,VALUED_1:def 11;
      end;
      hence thesis by A3;
    end;
    suppose
A12:  f is_left_divergent_to-infty_in x0;
A13:  now
        let seq;
        assume that
A14:    seq is convergent and
A15:    lim seq=x0 and
A16:    rng seq c=dom abs(f)/\left_open_halfline(x0);
A17:    rng seq c=dom f/\left_open_halfline(x0) by A16,VALUED_1:def 11;
        then f/*seq is divergent_to-infty by A12,A14,A15;
        then
A18:    abs(f/*seq) is divergent_to+infty by LIMFUNC1:25;
        dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then rng seq c=dom f by A17,XBOOLE_1:1;
        hence (abs f)/*seq is divergent_to+infty by A18,RFUNCT_2:10;
      end;
      now
        let r;
        assume r<x0;
        then consider g such that
A19:    r<g and
A20:    g<x0 and
A21:    g in dom f by A12;
        take g;
        thus r<g & g<x0 & g in dom abs(f) by A19,A20,A21,VALUED_1:def 11;
      end;
      hence thesis by A13;
    end;
  end;
  hence thesis;
end;

theorem
  (f is_right_divergent_to+infty_in x0 or f
  is_right_divergent_to-infty_in x0 ) implies abs(f)
  is_right_divergent_to+infty_in x0
proof
  assume
A1: f is_right_divergent_to+infty_in x0 or f is_right_divergent_to-infty_in x0;
  now
    per cases by A1;
    suppose
A2:   f is_right_divergent_to+infty_in x0;
A3:   now
        let seq;
        assume that
A4:     seq is convergent and
A5:     lim seq=x0 and
A6:     rng seq c=dom abs(f)/\right_open_halfline(x0);
A7:     rng seq c=dom f/\right_open_halfline(x0) by A6,VALUED_1:def 11;
        then f/*seq is divergent_to+infty by A2,A4,A5;
        then
A8:     abs(f/*seq) is divergent_to+infty by LIMFUNC1:25;
        dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then rng seq c=dom f by A7,XBOOLE_1:1;
        hence (abs f)/*seq is divergent_to+infty by A8,RFUNCT_2:10;
      end;
      now
        let r;
        assume x0<r;
        then consider g such that
A9:     g<r and
A10:    x0<g and
A11:    g in dom f by A2;
        take g;
        thus g<r & x0<g & g in dom abs(f) by A9,A10,A11,VALUED_1:def 11;
      end;
      hence thesis by A3;
    end;
    suppose
A12:  f is_right_divergent_to-infty_in x0;
A13:  now
        let seq;
        assume that
A14:    seq is convergent and
A15:    lim seq=x0 and
A16:    rng seq c=dom abs(f)/\right_open_halfline(x0);
A17:    rng seq c=dom f/\right_open_halfline(x0) by A16,VALUED_1:def 11;
        then f/*seq is divergent_to-infty by A12,A14,A15;
        then
A18:    abs(f/*seq) is divergent_to+infty by LIMFUNC1:25;
        dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then rng seq c=dom f by A17,XBOOLE_1:1;
        hence (abs f)/*seq is divergent_to+infty by A18,RFUNCT_2:10;
      end;
      now
        let r;
        assume x0<r;
        then consider g such that
A19:    g<r and
A20:    x0<g and
A21:    g in dom f by A12;
        take g;
        thus g<r & x0<g & g in dom abs(f) by A19,A20,A21,VALUED_1:def 11;
      end;
      hence thesis by A13;
    end;
  end;
  hence thesis;
end;

theorem Th25:
  (ex r st f|].x0-r,x0.[ is non-decreasing& not f|].x0-r,x0.[ is
  bounded_above) & (for r st r<x0 ex g st r<g & g<x0 & g in dom f) implies f
  is_left_divergent_to+infty_in x0
proof
  given r such that
A1: f|].x0-r,x0.[ is non-decreasing and
A2: not f|].x0-r,x0.[ is bounded_above;
  assume for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  hence for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  let seq such that
A3: seq is convergent and
A4: lim seq=x0 and
A5: rng seq c=dom f/\left_open_halfline(x0);
  now
    let t;
A6: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
    consider g1 being object such that
A7: g1 in ].x0-r,x0.[/\dom f and
A8: t<f.g1 by A2,RFUNCT_1:70;
    reconsider g1 as Real by A7;
    g1 in ].x0-r,x0.[ by A7,XBOOLE_0:def 4;
    then g1 in {r1: x0-r<r1 & r1<x0} by RCOMP_1:def 2;
    then
A9: ex r1 st r1=g1 & x0-r<r1 & r1<x0;
    then consider n such that
A10: for k st n<=k holds g1<seq.k by A3,A4,Th1;
    take n;
    let k;
A11: k in NAT by ORDINAL1:def 12;
    seq.k in rng seq by VALUED_0:28;
    then
A12: seq.k in dom f/\left_open_halfline(x0) by A5;
    dom f/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
    then seq.k in left_open_halfline(x0) by A12;
    then seq.k in {r2: r2<x0} by XXREAL_1:229;
    then
A13: ex r2 st r2=seq.k & r2<x0;
    assume n<=k;
    then
A14: g1<seq.k by A10;
    then x0-r<seq.k by A9,XXREAL_0:2;
    then seq.k in {g2: x0-r<g2 & g2<x0} by A13;
    then seq.k in ].x0-r,x0.[ by RCOMP_1:def 2;
    then seq.k in ].x0-r,x0.[/\dom f by A12,A6,XBOOLE_0:def 4;
    then f.g1<=f.(seq.k) by A1,A7,A14,RFUNCT_2:22;
    then t<f.(seq.k) by A8,XXREAL_0:2;
    hence t<(f/*seq).k by A5,A6,FUNCT_2:108,XBOOLE_1:1,A11;
  end;
  hence thesis;
end;

theorem
  (ex r st 0<r & f|].x0-r,x0.[ is increasing & not f|].x0-r,x0.[ is
  bounded_above) & (for r st r<x0 ex g st r<g & g<x0 & g in dom f) implies f
  is_left_divergent_to+infty_in x0 by Th25;

theorem Th27:
  (ex r st f|].x0-r,x0.[ is non-increasing & not f|].x0-r,x0.[ is
  bounded_below) & (for r st r<x0 ex g st r<g & g<x0 & g in dom f) implies f
  is_left_divergent_to-infty_in x0
proof
  given r such that
A1: f|].x0-r,x0.[ is non-increasing and
A2: not f|].x0-r,x0.[ is bounded_below;
  assume for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  hence for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  let seq such that
A3: seq is convergent and
A4: lim seq=x0 and
A5: rng seq c=dom f/\left_open_halfline(x0);
  now
    let t;
A6: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
    consider g1 being object such that
A7: g1 in ].x0-r,x0.[/\dom f and
A8: f.g1<t by A2,RFUNCT_1:71;
    reconsider g1 as Real by A7;
    g1 in ].x0-r,x0.[ by A7,XBOOLE_0:def 4;
    then g1 in {r1: x0-r<r1 & r1<x0} by RCOMP_1:def 2;
    then
A9: ex r1 st r1=g1 & x0-r<r1 & r1<x0;
    then consider n such that
A10: for k st n<=k holds g1<seq.k by A3,A4,Th1;
    take n;
    let k;
A11: k in NAT by ORDINAL1:def 12;
    seq.k in rng seq by VALUED_0:28;
    then
A12: seq.k in dom f/\left_open_halfline(x0) by A5;
    dom f/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
    then seq.k in left_open_halfline(x0) by A12;
    then seq.k in {r2: r2<x0} by XXREAL_1:229;
    then
A13: ex r2 st r2=seq.k & r2<x0;
    assume n<=k;
    then
A14: g1<seq.k by A10;
    then x0-r<seq.k by A9,XXREAL_0:2;
    then seq.k in {g2: x0-r<g2 & g2<x0} by A13;
    then seq.k in ].x0-r,x0.[ by RCOMP_1:def 2;
    then seq.k in ].x0-r,x0.[/\dom f by A12,A6,XBOOLE_0:def 4;
    then f.(seq.k)<=f.g1 by A1,A7,A14,RFUNCT_2:23;
    then f.(seq.k)<t by A8,XXREAL_0:2;
    hence (f/*seq).k<t by A5,A6,FUNCT_2:108,XBOOLE_1:1,A11;
  end;
  hence thesis;
end;

theorem
  (ex r st 0<r & f|].x0-r,x0.[ is decreasing & not f|].x0-r,x0.[ is
  bounded_below) & (for r st r<x0 ex g st r<g & g<x0 & g in dom f) implies f
  is_left_divergent_to-infty_in x0 by Th27;

theorem Th29:
  (ex r st f|].x0,x0+r.[ is non-increasing & not f|].x0,x0+r.[ is
  bounded_above) & (for r st x0<r ex g st g<r & x0<g & g in dom f) implies f
  is_right_divergent_to+infty_in x0
proof
  given r such that
A1: f|].x0,x0+r.[ is non-increasing and
A2: not f|].x0,x0+r.[ is bounded_above;
  assume for r st x0<r ex g st g<r & x0<g & g in dom f;
  hence for r st x0<r ex g st g<r & x0<g & g in dom f;
  let seq such that
A3: seq is convergent and
A4: lim seq=x0 and
A5: rng seq c=dom f/\right_open_halfline(x0);
  now
    let t;
A6: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
    consider g1 being object such that
A7: g1 in ].x0,x0+r.[/\dom f and
A8: t<f.g1 by A2,RFUNCT_1:70;
    reconsider g1 as Real by A7;
    g1 in ].x0,x0+r.[ by A7,XBOOLE_0:def 4;
    then g1 in {r1: x0<r1 & r1<x0+r} by RCOMP_1:def 2;
    then
A9: ex r1 st r1=g1 & x0<r1 & r1<x0+r;
    then consider n such that
A10: for k st n<=k holds seq.k<g1 by A3,A4,Th2;
    take n;
    let k;
    seq.k in rng seq by VALUED_0:28;
    then
A11: seq.k in dom f/\right_open_halfline(x0) by A5;
    dom f/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
    then seq.k in right_open_halfline(x0) by A11;
    then seq.k in {r2: x0<r2} by XXREAL_1:230;
    then
A12: ex r2 st r2=seq.k & x0<r2;
A13: k in NAT by ORDINAL1:def 12;
    assume n<=k;
    then
A14: seq.k<g1 by A10;
    then seq.k<x0+r by A9,XXREAL_0:2;
    then seq.k in {g2: x0<g2 & g2<x0+r} by A12;
    then seq.k in ].x0,x0+r.[ by RCOMP_1:def 2;
    then seq.k in ].x0,x0+r.[/\dom f by A11,A6,XBOOLE_0:def 4;
    then f.g1<=f.(seq.k) by A1,A7,A14,RFUNCT_2:23;
    then t<f.(seq.k) by A8,XXREAL_0:2;
    hence t<(f/*seq).k by A5,A6,FUNCT_2:108,XBOOLE_1:1,A13;
  end;
  hence thesis;
end;

theorem
  (ex r st 0<r & f|].x0,x0+r.[ is decreasing & not f|].x0,x0+r.[ is
  bounded_above) & (for r st x0<r ex g st g<r & x0<g & g in dom f) implies f
  is_right_divergent_to+infty_in x0 by Th29;

theorem Th31:
  (ex r st f|].x0,x0+r.[ is non-decreasing & not f|].x0,x0+r.[ is
  bounded_below) & (for r st x0<r ex g st g<r & x0<g & g in dom f) implies f
  is_right_divergent_to-infty_in x0
proof
  given r such that
A1: f|].x0,x0+r.[ is non-decreasing and
A2: not f|].x0,x0+r.[ is bounded_below;
  assume for r st x0<r ex g st g<r & x0<g & g in dom f;
  hence for r st x0<r ex g st g<r & x0<g & g in dom f;
  let seq such that
A3: seq is convergent and
A4: lim seq=x0 and
A5: rng seq c=dom f/\right_open_halfline(x0);
  now
    let t;
A6: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
    consider g1 being object such that
A7: g1 in ].x0,x0+r.[/\dom f and
A8: f.g1<t by A2,RFUNCT_1:71;
    reconsider g1 as Real by A7;
    g1 in ].x0,x0+r.[ by A7,XBOOLE_0:def 4;
    then g1 in {r1: x0<r1 & r1<x0+r} by RCOMP_1:def 2;
    then
A9: ex r1 st r1=g1 & x0<r1 & r1<x0+r;
    then consider n such that
A10: for k st n<=k holds seq.k<g1 by A3,A4,Th2;
    take n;
    let k;
    seq.k in rng seq by VALUED_0:28;
    then
A11: seq.k in dom f/\right_open_halfline(x0) by A5;
    dom f/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
    then seq.k in right_open_halfline(x0) by A11;
    then seq.k in {r2: x0<r2} by XXREAL_1:230;
    then
A12: ex r2 st r2=seq.k & x0<r2;
A13: k in NAT by ORDINAL1:def 12;
    assume n<=k;
    then
A14: seq.k<g1 by A10;
    then seq.k<x0+r by A9,XXREAL_0:2;
    then seq.k in {g2: x0<g2 & g2<x0+r} by A12;
    then seq.k in ].x0,x0+r.[ by RCOMP_1:def 2;
    then seq.k in ].x0,x0+r.[/\dom f by A11,A6,XBOOLE_0:def 4;
    then f.(seq.k)<=f.g1 by A1,A7,A14,RFUNCT_2:22;
    then f.(seq.k)<t by A8,XXREAL_0:2;
    hence (f/*seq).k<t by A5,A6,FUNCT_2:108,XBOOLE_1:1,A13;
  end;
  hence thesis;
end;

theorem
  (ex r st 0<r & f|].x0,x0+r.[ is increasing & not f|].x0,x0+r.[ is
  bounded_below) & (for r st x0<r ex g st g<r & x0<g & g in dom f) implies f
  is_right_divergent_to-infty_in x0 by Th31;

theorem Th33:
  f1 is_left_divergent_to+infty_in x0 & (for r st r<x0 ex g st r<g
& g<x0 & g in dom f) & (ex r st 0<r & dom f /\ ].x0-r,x0.[ c= dom f1 /\ ].x0-r,
  x0.[ & for g st g in dom f /\ ].x0-r,x0.[ holds f1.g<=f.g) implies f
  is_left_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_left_divergent_to+infty_in x0 and
A2: for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  given r such that
A3: 0<r and
A4: dom f/\].x0-r,x0.[c=dom f1/\].x0-r,x0.[ and
A5: for g st g in dom f/\].x0-r,x0.[ holds f1.g<=f.g;
  thus for r st r<x0 ex g st r<g & g<x0 & g in dom f by A2;
  let seq such that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom f/\left_open_halfline(x0);
  x0-r<x0 by A3,Lm1;
  then consider k such that
A9: for n st k<=n holds x0-r<seq.n by A6,A7,Th1;
A10: rng(seq^\k)c= rng seq by VALUED_0:21;
  dom f/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
  then rng seq c=left_open_halfline(x0) by A8,XBOOLE_1:1;
  then
A11: rng(seq^\k)c=left_open_halfline(x0) by A10,XBOOLE_1:1;
  now
    let x be object;
    assume
A12: x in rng(seq^\k);
    then consider n being Element of NAT such that
A13: (seq^\k).n=x by FUNCT_2:113;
    (seq^\k).n in left_open_halfline(x0) by A11,A12,A13;
    then (seq^\k).n in {g: g<x0} by XXREAL_1:229;
    then
A14: ex r1 st r1=(seq^\k).n & r1<x0;
    x0-r<seq.(n+k) by A9,NAT_1:12;
    then x0-r<(seq^\k).n by NAT_1:def 3;
    then x in {g1: x0-r<g1 & g1<x0} by A13,A14;
    hence x in ].x0-r,x0.[ by RCOMP_1:def 2;
  end;
  then
A15: rng(seq^\k)c=].x0-r,x0.[ by TARSKI:def 3;
A16: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
  then
A17: rng seq c=dom f by A8,XBOOLE_1:1;
  then rng(seq^\k)c=dom f by A10,XBOOLE_1:1;
  then
A18: rng(seq^\k)c=dom f/\].x0-r,x0.[ by A15,XBOOLE_1:19;
  then
A19: rng(seq^\k)c=dom f1/\].x0-r,x0.[ by A4,XBOOLE_1:1;
A20: dom f1/\].x0-r,x0.[c=dom f1 by XBOOLE_1:17;
  then rng(seq^\k)c=dom f1 by A19,XBOOLE_1:1;
  then
A21: rng(seq^\k)c=dom f1/\left_open_halfline(x0) by A11,XBOOLE_1:19;
A22: now
    let n;
A23: n in NAT by ORDINAL1:def 12;
    (seq^\k).n in rng(seq^\k) by VALUED_0:28;
    then f1.((seq^\k).n)<=f.((seq^\k).n) by A5,A18;
    then (f1/*(seq^\k)).n<=f.((seq^\k).n)
          by A19,A20,FUNCT_2:108,XBOOLE_1:1,A23;
    hence (f1/*(seq^\k)).n<=(f/*(seq^\k)).n
by A17,A10,FUNCT_2:108,XBOOLE_1:1,A23;
  end;
  lim(seq^\k)=x0 by A6,A7,SEQ_4:20;
  then f1/*(seq^\k) is divergent_to+infty by A1,A6,A21;
  then f/*(seq^\k) is divergent_to+infty by A22,LIMFUNC1:42;
  then (f/*seq)^\k is divergent_to+infty by A8,A16,VALUED_0:27,XBOOLE_1:1;
  hence thesis by LIMFUNC1:7;
end;

theorem Th34:
  f1 is_left_divergent_to-infty_in x0 & (for r st r<x0 ex g st r<g
& g<x0 & g in dom f) & (ex r st 0<r & dom f /\ ].x0-r,x0.[ c= dom f1 /\ ].x0-r,
  x0.[ & for g st g in dom f /\ ].x0-r,x0.[ holds f.g<=f1.g) implies f
  is_left_divergent_to-infty_in x0
proof
  assume that
A1: f1 is_left_divergent_to-infty_in x0 and
A2: for r st r<x0 ex g st r<g & g<x0 & g in dom f;
  given r such that
A3: 0<r and
A4: dom f/\].x0-r,x0.[c=dom f1/\].x0-r,x0.[ and
A5: for g st g in dom f/\].x0-r,x0.[ holds f.g<=f1.g;
  thus for r st r<x0 ex g st r<g & g<x0 & g in dom f by A2;
  let seq such that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom f/\left_open_halfline(x0);
  x0-r<x0 by A3,Lm1;
  then consider k such that
A9: for n st k<=n holds x0-r<seq.n by A6,A7,Th1;
A10: rng(seq^\k)c= rng seq by VALUED_0:21;
  dom f/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
  then rng seq c=left_open_halfline(x0) by A8,XBOOLE_1:1;
  then
A11: rng(seq^\k)c=left_open_halfline(x0) by A10,XBOOLE_1:1;
  now
    let x be object;
    assume
A12: x in rng(seq^\k);
    then consider n being Element of NAT such that
A13: (seq^\k).n=x by FUNCT_2:113;
    (seq^\k).n in left_open_halfline(x0) by A11,A12,A13;
    then (seq^\k).n in {g: g<x0} by XXREAL_1:229;
    then
A14: ex r1 st r1=(seq^\k).n & r1<x0;
    x0-r<seq.(n+k) by A9,NAT_1:12;
    then x0-r<(seq^\k).n by NAT_1:def 3;
    then x in {g1: x0-r<g1 & g1<x0} by A13,A14;
    hence x in ].x0-r,x0.[ by RCOMP_1:def 2;
  end;
  then
A15: rng(seq^\k)c=].x0-r,x0.[ by TARSKI:def 3;
A16: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
  then
A17: rng seq c=dom f by A8,XBOOLE_1:1;
  then rng(seq^\k)c=dom f by A10,XBOOLE_1:1;
  then
A18: rng(seq^\k)c=dom f/\].x0-r,x0.[ by A15,XBOOLE_1:19;
  then
A19: rng(seq^\k)c=dom f1/\].x0-r,x0.[ by A4,XBOOLE_1:1;
A20: dom f1/\].x0-r,x0.[c=dom f1 by XBOOLE_1:17;
  then rng(seq^\k)c=dom f1 by A19,XBOOLE_1:1;
  then
A21: rng(seq^\k)c=dom f1/\left_open_halfline(x0) by A11,XBOOLE_1:19;
A22: now
    let n;
A23: n in NAT by ORDINAL1:def 12;
    (seq^\k).n in rng(seq^\k) by VALUED_0:28;
    then f.((seq^\k).n)<=f1.((seq^\k).n) by A5,A18;
    then (f/*(seq^\k)).n<=f1.((seq^\k).n)
by A17,A10,FUNCT_2:108,XBOOLE_1:1,A23;
    hence (f/*(seq^\k)).n<=(f1/*(seq^\k)).n
by A19,A20,FUNCT_2:108,XBOOLE_1:1,A23;
  end;
  lim(seq^\k)=x0 by A6,A7,SEQ_4:20;
  then f1/*(seq^\k) is divergent_to-infty by A1,A6,A21;
  then f/*(seq^\k) is divergent_to-infty by A22,LIMFUNC1:43;
  then (f/*seq)^\k is divergent_to-infty by A8,A16,VALUED_0:27,XBOOLE_1:1;
  hence thesis by LIMFUNC1:7;
end;

theorem Th35:
  f1 is_right_divergent_to+infty_in x0 & (for r st x0<r ex g st g<
r & x0<g & g in dom f) & (ex r st 0<r & dom f /\ ].x0,x0+r.[ c= dom f1 /\ ].x0,
  x0+r.[ & for g st g in dom f /\ ].x0,x0+r.[ holds f1.g<=f.g) implies f
  is_right_divergent_to+infty_in x0
proof
  assume that
A1: f1 is_right_divergent_to+infty_in x0 and
A2: for r st x0<r ex g st g<r & x0<g & g in dom f;
  given r such that
A3: 0<r and
A4: dom f/\].x0,x0+r.[c=dom f1/\].x0,x0+r.[ and
A5: for g st g in dom f/\].x0,x0+r.[ holds f1.g<=f.g;
  thus for r st x0<r ex g st g<r & x0<g & g in dom f by A2;
  let seq such that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom f/\right_open_halfline(x0);
  x0<x0+r by A3,Lm1;
  then consider k such that
A9: for n st k<=n holds seq.n<x0+r by A6,A7,Th2;
A10: rng(seq^\k)c= rng seq by VALUED_0:21;
  dom f/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
  then rng seq c=right_open_halfline(x0) by A8,XBOOLE_1:1;
  then
A11: rng(seq^\k)c=right_open_halfline(x0) by A10,XBOOLE_1:1;
  now
    let x be object;
    assume
A12: x in rng(seq^\k);
    then consider n being Element of NAT such that
A13: (seq^\k).n=x by FUNCT_2:113;
    (seq^\k).n in right_open_halfline(x0) by A11,A12,A13;
    then (seq^\k).n in {g: x0<g} by XXREAL_1:230;
    then
A14: ex r1 st r1=(seq^\k).n & x0<r1;
    seq.(n+k)<x0+r by A9,NAT_1:12;
    then (seq^\k).n<x0+r by NAT_1:def 3;
    then x in {g1: x0<g1 & g1<x0+r} by A13,A14;
    hence x in ].x0,x0+r.[ by RCOMP_1:def 2;
  end;
  then
A15: rng(seq^\k)c=].x0,x0+r.[ by TARSKI:def 3;
A16: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
  then
A17: rng seq c=dom f by A8,XBOOLE_1:1;
  then rng(seq^\k)c=dom f by A10,XBOOLE_1:1;
  then
A18: rng(seq^\k)c=dom f/\].x0,x0+r.[ by A15,XBOOLE_1:19;
  then
A19: rng(seq^\k)c=dom f1/\].x0,x0+r.[ by A4,XBOOLE_1:1;
A20: dom f1/\].x0,x0+r.[c=dom f1 by XBOOLE_1:17;
  then rng(seq^\k)c=dom f1 by A19,XBOOLE_1:1;
  then
A21: rng(seq^\k)c=dom f1/\right_open_halfline(x0) by A11,XBOOLE_1:19;
A22: now
    let n;
A23: n in NAT by ORDINAL1:def 12;
    (seq^\k).n in rng(seq^\k) by VALUED_0:28;
    then f1.((seq^\k).n)<=f.((seq^\k).n) by A5,A18;
    then (f1/*(seq^\k)).n<=f.((seq^\k).n)
by A19,A20,FUNCT_2:108,XBOOLE_1:1,A23;
    hence (f1/*(seq^\k)).n<=(f/*(seq^\k)).n
by A17,A10,FUNCT_2:108,XBOOLE_1:1,A23;
  end;
  lim(seq^\k)=x0 by A6,A7,SEQ_4:20;
  then f1/*(seq^\k) is divergent_to+infty by A1,A6,A21;
  then f/*(seq^\k) is divergent_to+infty by A22,LIMFUNC1:42;
  then (f/*seq)^\k is divergent_to+infty by A8,A16,VALUED_0:27,XBOOLE_1:1;
  hence thesis by LIMFUNC1:7;
end;

theorem Th36:
  f1 is_right_divergent_to-infty_in x0 & (for r st x0<r ex g st g<
r & x0<g & g in dom f) & (ex r st 0<r & dom f /\ ].x0,x0+r.[ c= dom f1 /\ ].x0,
  x0+r.[ & for g st g in dom f /\ ].x0,x0+r.[ holds f.g<=f1.g) implies f
  is_right_divergent_to-infty_in x0
proof
  assume that
A1: f1 is_right_divergent_to-infty_in x0 and
A2: for r st x0<r ex g st g<r & x0<g & g in dom f;
  given r such that
A3: 0<r and
A4: dom f/\].x0,x0+r.[c=dom f1/\].x0,x0+r.[ and
A5: for g st g in dom f/\].x0,x0+r.[ holds f.g<=f1.g;
  thus for r st x0<r ex g st g<r & x0<g & g in dom f by A2;
  let seq such that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom f/\right_open_halfline(x0);
  x0<x0+r by A3,Lm1;
  then consider k such that
A9: for n st k<=n holds seq.n<x0+r by A6,A7,Th2;
A10: rng(seq^\k)c= rng seq by VALUED_0:21;
  dom f/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
  then rng seq c=right_open_halfline(x0) by A8,XBOOLE_1:1;
  then
A11: rng(seq^\k)c=right_open_halfline(x0) by A10,XBOOLE_1:1;
  now
    let x be object;
    assume
A12: x in rng(seq^\k);
    then consider n being Element of NAT such that
A13: (seq^\k).n=x by FUNCT_2:113;
    (seq^\k).n in right_open_halfline(x0) by A11,A12,A13;
    then (seq^\k).n in {g: x0<g} by XXREAL_1:230;
    then
A14: ex r1 st r1=(seq^\k).n & x0<r1;
    seq.(n+k)<x0+r by A9,NAT_1:12;
    then (seq^\k).n<x0+r by NAT_1:def 3;
    then x in {g1: x0<g1 & g1<x0+r} by A13,A14;
    hence x in ].x0,x0+r.[ by RCOMP_1:def 2;
  end;
  then
A15: rng(seq^\k)c=].x0,x0+r.[ by TARSKI:def 3;
A16: dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
  then
A17: rng seq c=dom f by A8,XBOOLE_1:1;
  then rng(seq^\k)c=dom f by A10,XBOOLE_1:1;
  then
A18: rng(seq^\k)c=dom f/\].x0,x0+r.[ by A15,XBOOLE_1:19;
  then
A19: rng(seq^\k)c=dom f1/\].x0,x0+r.[ by A4,XBOOLE_1:1;
A20: dom f1/\].x0,x0+r.[c=dom f1 by XBOOLE_1:17;
  then rng(seq^\k)c=dom f1 by A19,XBOOLE_1:1;
  then
A21: rng(seq^\k)c=dom f1/\right_open_halfline(x0) by A11,XBOOLE_1:19;
A22: now
    let n;
A23: n in NAT by ORDINAL1:def 12;
    (seq^\k).n in rng(seq^\k) by VALUED_0:28;
    then f.((seq^\k).n)<=f1.((seq^\k).n) by A5,A18;
    then (f/*(seq^\k)).n<=f1.((seq^\k).n)
by A17,A10,FUNCT_2:108,XBOOLE_1:1,A23;
    hence (f/*(seq^\k)).n<=(f1/*(seq^\k)).n
by A19,A20,FUNCT_2:108,XBOOLE_1:1,A23;
  end;
  lim(seq^\k)=x0 by A6,A7,SEQ_4:20;
  then f1/*(seq^\k) is divergent_to-infty by A1,A6,A21;
  then f/*(seq^\k) is divergent_to-infty by A22,LIMFUNC1:43;
  then (f/*seq)^\k is divergent_to-infty by A8,A16,VALUED_0:27,XBOOLE_1:1;
  hence thesis by LIMFUNC1:7;
end;

theorem
  f1 is_left_divergent_to+infty_in x0 & (ex r st 0<r & ].x0-r,x0.[ c=
  dom f /\ dom f1 & for g st g in ].x0-r,x0.[ holds f1.g<= f.g) implies f
  is_left_divergent_to+infty_in x0
proof
  assume
A1: f1 is_left_divergent_to+infty_in x0;
  given r such that
A2: 0<r and
A3: ].x0-r,x0.[ c=dom f/\dom f1 and
A4: for g st g in ].x0-r,x0.[ holds f1.g<=f.g;
A5: dom f/\dom f1 c=dom f by XBOOLE_1:17;
  then
A6: ].x0-r,x0.[=dom f/\].x0-r,x0.[ by A3,XBOOLE_1:1,28;
  dom f/\dom f1 c=dom f1 by XBOOLE_1:17;
  then
A7: ].x0-r,x0.[=dom f1/\].x0-r,x0.[ by A3,XBOOLE_1:1,28;
  for r st r<x0 ex g st r<g & g<x0 & g in dom f by A2,A3,A5,Th3,XBOOLE_1:1;
  hence thesis by A1,A2,A4,A6,A7,Th33;
end;

theorem
  f1 is_left_divergent_to-infty_in x0 & (ex r st 0<r & ].x0-r,x0.[ c=
  dom f /\ dom f1 & for g st g in ].x0-r,x0.[ holds f.g<= f1.g) implies f
  is_left_divergent_to-infty_in x0
proof
  assume
A1: f1 is_left_divergent_to-infty_in x0;
  given r such that
A2: 0<r and
A3: ].x0-r,x0.[c=dom f/\dom f1 and
A4: for g st g in ].x0-r,x0.[ holds f.g<=f1.g;
A5: dom f/\dom f1 c=dom f by XBOOLE_1:17;
  then
A6: ].x0-r,x0.[=dom f/\].x0-r,x0.[ by A3,XBOOLE_1:1,28;
  dom f/\dom f1 c=dom f1 by XBOOLE_1:17;
  then
A7: ].x0-r,x0.[=dom f1/\].x0-r,x0.[ by A3,XBOOLE_1:1,28;
  for r st r<x0 ex g st r<g & g<x0 & g in dom f by A2,A3,A5,Th3,XBOOLE_1:1;
  hence thesis by A1,A2,A4,A6,A7,Th34;
end;

theorem
  f1 is_right_divergent_to+infty_in x0 & (ex r st 0<r & ].x0,x0+r.[ c=
  dom f /\ dom f1 & for g st g in ].x0,x0+r.[ holds f1.g<= f.g) implies f
  is_right_divergent_to+infty_in x0
proof
  assume
A1: f1 is_right_divergent_to+infty_in x0;
  given r such that
A2: 0<r and
A3: ].x0,x0+r.[c=dom f/\dom f1 and
A4: for g st g in ].x0,x0+r.[ holds f1.g<=f.g;
A5: dom f/\dom f1 c=dom f by XBOOLE_1:17;
  then
A6: ].x0,x0+r.[=dom f/\].x0,x0+r.[ by A3,XBOOLE_1:1,28;
  dom f/\dom f1 c=dom f1 by XBOOLE_1:17;
  then
A7: ].x0,x0+r.[=dom f1/\].x0,x0+r.[ by A3,XBOOLE_1:1,28;
  for r st x0<r ex g st g<r & x0<g & g in dom f by A2,A3,A5,Th4,XBOOLE_1:1;
  hence thesis by A1,A2,A4,A6,A7,Th35;
end;

theorem
  f1 is_right_divergent_to-infty_in x0 & (ex r st 0<r & ].x0,x0+r.[ c=
  dom f /\ dom f1 & for g st g in ].x0,x0+r.[ holds f.g<= f1.g) implies f
  is_right_divergent_to-infty_in x0
proof
  assume
A1: f1 is_right_divergent_to-infty_in x0;
  given r such that
A2: 0<r and
A3: ].x0,x0+r.[c=dom f/\dom f1 and
A4: for g st g in ].x0,x0+r.[ holds f.g<=f1.g;
A5: dom f/\dom f1 c=dom f by XBOOLE_1:17;
  then
A6: ].x0,x0+r.[=dom f/\].x0,x0+r.[ by A3,XBOOLE_1:1,28;
  dom f/\dom f1 c=dom f1 by XBOOLE_1:17;
  then
A7: ].x0,x0+r.[=dom f1/\].x0,x0+r.[ by A3,XBOOLE_1:1,28;
  for r st x0<r ex g st g<r & x0<g & g in dom f by A2,A3,A5,Th4,XBOOLE_1:1;
  hence thesis by A1,A2,A4,A6,A7,Th36;
end;

definition
  let f,x0;
  assume
A1: f is_left_convergent_in x0;
  func lim_left(f,x0)-> Real means
  :Def7:
  for seq st seq is convergent & lim seq=x0 &
    rng seq c= dom f /\ left_open_halfline(x0)
   holds f/*seq is convergent & lim(f/*seq)=it;
  existence
   by A1;
  uniqueness
  proof
    defpred X[Nat,Real] means x0-1/($1+1)<$2 & $2<x0 & $2 in
    dom f;
    let g1,g2 be Real such that
A2: for seq st seq is convergent & lim seq=x0 & rng seq c=dom f/\
    left_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq)=g1 and
A3: for seq st seq is convergent & lim seq=x0 & rng seq c=dom f/\
    left_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq)=g2;
A4: now
      let n be Element of NAT;
      x0-1/(n+1)<x0 by Lm3;
      then consider g such that
A5:   x0-1/(n+1)<g and
A6:   g<x0 and
A7:   g in dom f by A1;
       reconsider g as Element of REAL by XREAL_0:def 1;
      take g;
      thus X[n,g] by A5,A6,A7;
    end;
    consider s be Real_Sequence such that
A8: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A4);
A9: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A8;
     end;
A10: rng s c=dom f/\left_open_halfline(x0) by A9,Th5;
A11: lim s=x0 by A9,Th5;
A12: s is convergent by A9,Th5;
    then lim(f/*s)=g1 by A11,A10,A2;
    hence thesis by A12,A11,A10,A3;
  end;
end;

definition
  let f,x0;
  assume
A1: f is_right_convergent_in x0;
  func lim_right(f,x0)-> Real means
  :Def8:
  for seq st seq is convergent & lim
seq=x0 & rng seq c= dom f /\ right_open_halfline(x0) holds f/*seq is convergent
  & lim(f/*seq)=it;
  existence
   by A1;
  uniqueness
  proof
    defpred X[Nat,Real] means x0<$2 & $2<x0+1/($1+1) & $2 in
    dom f;
    let g1,g2 be Real such that
A2: for seq st seq is convergent & lim seq=x0 & rng seq c=dom f/\
    right_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq)=g1 and
A3: for seq st seq is convergent & lim seq=x0 & rng seq c=dom f/\
    right_open_halfline(x0) holds f/*seq is convergent & lim(f/*seq)=g2;
A4: now
      let n be Element of NAT;
      x0<x0+1/(n+1) by Lm3;
      then consider g such that
A5:   g<x0+(1/(n+1)) and
A6:   x0<g and
A7:   g in dom f by A1;
       reconsider g as Element of REAL by XREAL_0:def 1;
      take g;
      thus X[n,g] by A5,A6,A7;
    end;
    consider s be Real_Sequence such that
A8: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A4);
A9: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A8;
     end;
A10: rng s c=dom f/\right_open_halfline(x0) by A9,Th6;
A11: lim s=x0 by A9,Th6;
A12: s is convergent by A9,Th6;
    then lim(f/*s)=g1 by A11,A10,A2;
    hence thesis by A12,A11,A10,A3;
  end;
end;

theorem
  f is_left_convergent_in x0 implies (lim_left(f,x0)=g iff for g1 st 0<
  g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f holds |.f.r1-g.|<g1)
proof
  assume
A1: f is_left_convergent_in x0;
  thus lim_left(f,x0)=g implies for g1 st 0<g1 ex r st r<x0 & for r1 st r<r1 &
  r1<x0 & r1 in dom f holds |.f.r1-g.|<g1
  proof
    assume that
A2: lim_left(f,x0)=g and
A3: ex g1 st 0<g1 & for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f
    & |.f.r1-g.|>=g1;
    consider g1 such that
A4: 0<g1 and
A5: for r st r<x0 ex r1 st r<r1 & r1<x0 & r1 in dom f & |.f.r1-g.|>= g1 by A3;
    defpred X[Nat,Real] means x0-1/($1+1)<$2 & $2<x0 & $2 in
    dom f & |.f.($2)-g.|>=g1;
A6: now
      let n be Element of NAT;
      x0-1/(n+1)<x0 by Lm3;
      then consider g2 such that
A7:   x0-1/(n+1)<g2 and
A8:   g2<x0 and
A9:   g2 in dom f and
A10:  |.f.g2-g.|>=g1 by A5;
       reconsider g2 as Element of REAL by XREAL_0:def 1;
      take g2;
      thus X[n,g2] by A7,A8,A9,A10;
    end;
    consider s be Real_Sequence such that
A11: for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A6);
A12: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A11;
     end;
A13: rng s c=dom f/\left_open_halfline(x0) by A12,Th5;
A14: lim s=x0 by A12,Th5;
A15: s is convergent by A12,Th5;
    then
A16: lim(f/*s)=g by A1,A2,A14,A13,Def7;
    f/*s is convergent by A1,A15,A14,A13;
    then consider n such that
A17: for k st n<=k holds |.(f/*s).k-g.|<g1 by A4,A16,SEQ_2:def 7;
A18: |.(f/*s).n-g.|<g1 by A17;
A19: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A12,Th5;
    then |.f.(s.n)-g.|<g1 by A18,FUNCT_2:108,A19;
    hence contradiction by A12;
  end;
  assume
A20: for g1 st 0<g1 ex r st r<x0 & for r1 st r<r1 & r1<x0 & r1 in dom f
  holds |.f.r1-g.|<g1;
  reconsider g as Real;
  now
    let s be Real_Sequence such that
A21: s is convergent and
A22: lim s=x0 and
A23: rng s c=dom f/\left_open_halfline(x0);
A24: dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
A25: now
      let g1 be Real;
      assume
A26:  0<g1;
      consider r such that
A27:  r<x0 and
A28:  for r1 st r<r1 & r1<x0 & r1 in dom f holds |.f.r1-g.|<g1 by A20,A26;
      consider n such that
A29:  for k st n<=k holds r<s.k by A21,A22,A27,Th1;
      take n;
      let k;
      assume
A30:  n<=k;
A31:  s.k in rng s by VALUED_0:28;
      then s.k in left_open_halfline(x0) by A23,XBOOLE_0:def 4;
      then s.k in {g2: g2<x0} by XXREAL_1:229;
      then
A32:  ex g2 st g2=s.k & g2<x0;
A33: k in NAT by ORDINAL1:def 12;
      s.k in dom f by A23,A31,XBOOLE_0:def 4;
      then |.f.(s.k)-g.|<g1 by A28,A29,A30,A32;
      hence |.(f/*s).k-g.|<g1 by A23,A24,FUNCT_2:108,XBOOLE_1:1,A33;
    end;
    hence f/*s is convergent by SEQ_2:def 6;
    hence lim(f/*s)=g by A25,SEQ_2:def 7;
  end;
  hence thesis by A1,Def7;
end;

theorem
  f is_right_convergent_in x0 implies (lim_right(f,x0)=g iff for g1 st 0
  <g1 ex r st x0<r & for r1 st r1<r & x0<r1 & r1 in dom f holds |.f.r1-g.|<g1)
proof
  assume
A1: f is_right_convergent_in x0;
  thus lim_right(f,x0)=g implies for g1 st 0<g1 ex r st x0<r & for r1 st r1<r
  & x0<r1 & r1 in dom f holds |.f.r1-g.|<g1
  proof
    assume that
A2: lim_right(f,x0)=g and
A3: ex g1 st 0<g1 & for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f
    & |.f.r1-g.|>=g1;
    consider g1 such that
A4: 0<g1 and
A5: for r st x0<r ex r1 st r1<r & x0<r1 & r1 in dom f & |.f.r1-g.|>= g1 by A3;
    defpred X[Nat,Real] means x0<$2 & $2<x0+1/($1+1) & $2 in
    dom f & g1<=|.f.($2)-g.|;
A6: now
      let n be Element of NAT;
      x0<x0+1/(n+1) by Lm3;
      then consider r1 such that
A7:   r1<x0+(1/(n+1)) and
A8:   x0<r1 and
A9:   r1 in dom f and
A10:  g1<=|.f.r1-g.| by A5;
       reconsider r1 as Element of REAL by XREAL_0:def 1;
      take r1;
      thus X[n,r1] by A7,A8,A9,A10;
    end;
    consider s be Real_Sequence such that
A11::           (Stowarzyszenie Uzytkownikow Mizara,:: This code can be distributed under the GNU General Public Licence
A12: for n being Nat holds X[n,s.n]
     proof let n;
      n in NAT by ORDINAL1:def 12;
      by A11;

A13: rng s c=dom f/\right_open_halfline(x0) by A12,Th6;
A14: lim s=x0 by A12,Th6;
A15 s is convergent  A12,h6;
    then
A16: lim(f/*s)=g by A1,A2,A14,A13,Def8;
    f
    then consider' )=Yjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A17  k =  .f/)| by A4,A16,SEQ_2:def 7;
A18: |.(f/*s).n-g.|<g1 by A17;
A19: n in NAT by ORDINAL1:def 12;
    rng s c=dom f by A12,Th6;
    then |.f.(s.n)-g.|<g1 by A18,FUNCT_2:108,A19;
    hence contradiction by A12;
  end    x byBVFUNC_1def
  assume
  g1ex st <r r1&r1&   f
 holds|f.-.|<g1;
reconsider g as Real

    let s     'not' a.& .) &(not ax&'
A21: s is convergent and
:sx nd
: cdom \x0;
 \java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 58
  BVFUNC_1 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
let ;
      assume
A26:  0  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 71

:x0<and
A28:  for r1 st r1    or'(not b.' .)byBVFUNC_1def8
such
A29  )'imp'(a''b)'mp =()
      take n;
      let k;
      
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 32
:k ;
      then s.=102java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
by :;

A32:  ex g2 st g2=s.k & x0<g2;  'mp'( '& b))x=TRUE
A33: k in NATc''. or (  )imp c'imp a& ).  java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 77
.k  f Xjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 45
      then |.f.(s    or i'(& )x java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 49
      hence |.(f/*s)      =x& ' a.x) 'or' ('ot' 'not .x& not'b.xjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
;
/   SEQ_26java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
yA25 ;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 Def8
endimp a'' or bi'c))=I_el)

theorem Th43:
  f is_left_convergent_in x0 implies r(#)f is_left_convergent_in
  x0 & lim_left(r(#)f,x0)=r*(lim_left(f,x0))
proof
  assume
A1let x ElementofYjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
:
    let seq;
    assumeb''c).java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 35
: java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 25
A4: lim seq=x0.''not .  .x & n'.x  (java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 67
:(x0;
A6: rng seq c=dom f/\left_open_halfline(x0) by A5,VALUED_1:def 5;
:\java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 57
    then
A8: r(#) java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A9: f/java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    then r(#)(f/*seq) is convergent;
(#f)/*  by,A7R:X1
    lim(f/*seq)=lim_left(f,x0) by A1,(a ''c.x''(b ' )'mp'(a''b) i )).x yBVFUNC_1:8
    hence lim((r(#)f)/*seq) ' )x by BVFUNC_1d8
  end;
  now
    let r1;
    assume r1x0
  suchjava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
A10 ' (. or''a & '' bx 'or' c) :
A11''(. o'not .x) & '( not . o'cx)' (njava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
yA1java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
;
    thus       =
  end;
java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
,


:
  f is_left_convergent_in  f is_left_convergent_in  : java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  lim_left(-f,x0)=-(lim_left(f,x0))
proof
 
:fjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 31
  thus -f is_left_convergent_in x0 by A1,Th43;
  lim_left(fx0)(-)*lim_leftf,x0) ,Th43
    .=-(lim_left(f,x0));
end;

Th45:
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 66
    < g<g <  in()+java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
  is_left_convergent_in x0 &   .x=TRUE

that
A1: f1 is_left_convergent_inMARGREL1
: and
A3thesis
 now
     
   
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom by java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
:(= \ombyLm4
A9: rng seq c='(ax' .x  ( 'x)o'(.
: dom\x)A7Lm4java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    then
A11: lim(f2/*seq)=lim_left(f2,x0) by A2,A5,A6,Def7;
A12: f2/*seq is convergent by A2,A5,A6,A10;
    rng seq c=dom(f1+f2) by A7,Lm4;
    then
A13: f1/*seq+f2/*seq=(f1+f2)/*seq by A8,RFUNCT_2:8;
A14: f1/*seq is convergent by A1,A5,A6,A9;
    hence (f1+f2)/*seq is convergent by A12,A13;
    lim(f1/*seq)=lim_left(f1,x0) by A1,A5,A6,A9,Def7;
    hence lim((f1+f2)/*seq)=lim_left(f1,x0)+lim_left(f2,x0) by A14,A12,A11,A13,
;
  end.( . orcx or 'not . or .)or ax
2A3
  hence thesis by A4,Def7;
end;


  f2is_left_convergent_in & rst
e <&g  g in(f1-)) implies f1f2 is_left_convergent_in
  x0 & lim_left(f1-f2,x0)=(lim_left(f1.'(a'&( or ))o'(a&   & )xby
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

:  and
A2: f2 is_left_convergent_in x0 and
A3: for r st r<x0 ex g st r<g & g<x0 & g in dom(f1-f2);
A4: -f2 is_left_convergent_in x0 by A2,Th44;
  hence f1-f2 is_left_convergent_in x0 by A1,A3,Th45;
  thus lim_left(f1-f2,x0)=lim_left(f1,x0)+lim_left(-f2,x0) by A1,A3,A4,Th45
    .=(lim_left(f1,x0))+-lim_left(f2,x0) by     .=(lim_left(f1,x0))+-lim_left(f2,x0) by A2' 'ot'(a.x & b
    .(im_leftfx0)-(,0);


theorem
  f is_left_convergent_in x0end;
  is_left_convergent_in x0   or'c)''(a &'b or )I_elYjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
proof
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A1ab,FunctionYBOOLEAN
A2: f"{0}={} and
f<0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A4: dom f=dom f\f"{0}     MARGREL120
.(^  ;
A5: now
    let seq;
    assume that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom(f^)/\left_open_halfline(x0);
A9: lim(f/*seq)=lim_left(f,x0) by A1,A4,A6,A7,A8,Def7;
\)dombyjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
:  = f ,A8java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 41
A12: f/*seq is convergent by A1,A4,A6,A7,A8;
A13: (f/*seq)"=(f^)/*seq by     ))
f)seqis A3,A12A9A111121java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    thus lim(java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
;
  end;
  st<x0ex  & g<x0&inf)byA4java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
   x0 byA5java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

end;


  f is_left_convergent_in x0 implies
f)|.java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
proof     x

:  
A2: now
    let    rem
    assume that
A3: seq is convergent and
A4: lim seq  ,, o BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A5: rng seq  be Element ;
java.lang.StringIndexOutOfBoundsException: Range [39, 2) out of bounds for length 66
/x) =java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 57
    then rng seq c=dom.( .   .x ' b' .)
   
A7: abs(f/*seq)=(abs f)/*seq by RFUNCT_2:A     .(not'c 'r ('ot'a. or'b.)) '&' (not a. 'or' java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
A8: f/*seq      102
    hence    ;
    lim(f/*seq)=theorem:
    hence lim((abs f)/&c imp )Y java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 57
  end;:(c ''a=e()
 
    let r;
    assume r<x0A: . or .   8
nsider 
:< and
 <0and
 .java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    take g;
    thus r<g & g<x0 & g in dom abs ''=el)a'' imp   java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  end;
  hence abs(f) is_left_convergent_in x0 by A2;
  hence     (a 'imp' c=BVFUNC_1;
end;

theorem Th49:
  f is_left_convergent_in x0 & lim_left(f,x0)<>0 & (for r st r<x0
ex g st r<g & g<x0 & g in  
      ((a or )''c).=not'(a or'b)x ''c.  :def 8
roof
  assume that
A1: java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 6
A2: lim_left(f,)> and
g<x0&g  dom  &f.>;
A4: dom f\f"{0}proof
A5: now
A6: domA2:'ot' a=I_el()
    let seq such that
A7: seq is     ('not' a).x= TRUE ,: 11;
A8: lim seq=x0 and
A9: rng seq c=dom(f^)/\    then a.x 'or' b.x = TRUE by BVFUNC_1:def 4;
A10    hence  by A3;
    then
A11java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
seq d(f^by A9,10,:;
then
A12: rng seq c=dom f by A6,XBOOLE_1:1;
    dom(f^)/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
    then rng  l(x0)by A9,:1java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    
A13   x beingElementof Y (a & ) 'mp b''d).=RUE
    then
A14: lim(f/*seq)then
A15: (f/*seq)"=(f^)/*seq by A9,A10,RFUNCT_2:12    ( imp'd)x by A2,VFUNC_1:ef 11java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A16: f/*seq is convergent by A1,A7,A8,A13;
    hence (f^)/*seq:8
    thus lim( .'' .x& .x 'or b''d)x by :def20
  end;
  now
     ;
    assume r<x0;
    then consider g such that
 <g and
:<0 
FYBOOLEAN(imp =(java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
A20: f.g<>0 by A3;
    take g;
  notf.  {}  ,: 1;
    then not g in : (c 'imp' d)=I_el(Y);
    hence r<g & g<x0 & g in dom(f^) by A4,A17,A18,A19,XBOOLE_0:def 5;
  end;
  hence f^ is_left_convergent_in x0 by A5;
  hence thesis by A5,Def7(a imp ).= TRUEby A1,VFUNC_1d java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46


theorem Th50:
  f1 is_left_convergent_in x0 & f2 is_left_convergent_in x0 & (for
r rx0   str< & <x0&g  (1#f2)impliesf1#)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
is_left_convergent_in x0 & lim_left(f1(#)f2,x0)=(lim_left.=((d).x or .) 'r''ot' a. &&nbsp;(. or'()x) 'r'
x0))
proof
  assume that
A1: f1 end;
:f2 is_left_convergent_inx0 
A3: for rst < exg  r< & <0  g in (()2;
A4: now
    let seq;
    assume that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1(#)f2)/\left_open_halfline(x0);
A8: dom(f1(#)f2)=dom f1/\dom f2 by A7,Lm2;
A9: rng seq c=dom f1/\left_open_halfline(x0) by A7,Lm2;
A10: rng seq c=dom f2/\left_open_halfline(x0) by A7,Lm2;
    then
A11: lim(f2/*seq)=lim_left(f2,x0) by A2,A5,A6,Def7;
A12: f2/*seq is convergent by A2,A5,A6,A10;
    rng seq c=dom(f1(#)f2) by A7,Lm2;
    then
A13: (f1/*seq)(#)(f2/*seq)=(f1(#)f2)/*seq by A8,RFUNCT_2:8;
A14: f1/*seq is convergent by A1,A5,A6,A9;
    hence (f1(#)f2)/*seq is convergent by A12,A13;
    lim(f1/*seq)=lim_left(f1,x0) by A1,A5,A6,A9,Def7;
    hence lim((f1(#)f2)/*seq)=lim_left(f1,x0)*lim_left(f2,x0) by A14,A12,A11
,A13,SEQ_2:15;
  end;
  hence f1(#) f2 is_left_convergent_in x0 by A3;
  hence thesis by A4,Def7;
end;

theorem
  f1 is_left_convergent_in x0 & f2 is_left_convergent_in x0 & lim_left(
f2,x0 ) <> 0 & (for r st r<x0 ex g st r<g & g<x0 & g in dom(f1/f2)) implies f1/
f2 is_left_convergent_in x0 & lim_left(f1/f2,x0)=(lim_left(f1,x0))/(lim_left(f2
  ,x0))
proof
  assume that
A1: f1 is_left_convergent_in x0 and
A2: f2 is_left_convergent_in x0 and
A3: lim_left(f2,x0)<>0 and
A4: for r st r<x0 ex g st r<g & g<x0 & g in dom(f1/f2);
A5: now
    let r;
    assume r<x0;
    then consider g such that
A6: r<g and
A7: g<x0 and
A8: g in dom(f1/f2) by A4;
    take g;
    thus r<g & g<x0 by A6,A7;
    dom(f1/f2)=dom f1/\(dom f2\f2"{0}) by RFUNCT_1:def 1;
    then
A9: g in dom f2\f2"{0} by A8,XBOOLE_0:def 4;
    then
A10: not g in f2"{0} by XBOOLE_0:def 5;
    g in dom f2 by A9,XBOOLE_0:def 5;
    then not f2.g in {0} by A10,FUNCT_1:def 7;
    hence g in dom f2 & f2.g<>0 by A9,TARSKI:def 1,XBOOLE_0:def 5;
  end;
  then
A11: f2^ is_left_convergent_in x0 by A2,A3,Th49;
A12: f1/f2=f1(#)(f2^) by RFUNCT_1:31;
  hence f1/f2 is_left_convergent_in x0 by A1,A4,A11,Th50;
  lim_left(f2^,x0)=(lim_left(f2,x0))" by A2,A3,A5,Th49;
  hence
  lim_left(f1/f2,x0)=lim_left(f1,x0)*((lim_left(f2,x0))") by A1,A4,A12,A11,Th50
    .=lim_left(f1,x0)/(lim_left(f2,x0)) by XCMPLX_0:def 9;
end;

theorem Th52:
  f is_right_convergent_in x0 implies r(#)f is_right_convergent_in
  x0 & lim_right(r(#)f,x0)=r*(lim_right(f,x0))
proof
   1:(a '' 'ot' b)'mp 'ot'a=I_elY;
A1: f is_right_convergent_in x0;
A2:now
    let seq;
    assume that
A3: seq is convergent and
A4: lim=x0
: seqcd(()f)/right_open_halfline()
  =dom/(x0) by A5,ALUED_1:ef 5;
A7: dom f/\right_open_halfline(x0) c=dom f by XBOOLE_1:17;
    then
A8: r (#)(f/*seq)=(r(#)f)/*seq by A6,RFUNCT_2:9,XBOOLE_1:1;
A9: f/*seq is convergent by A1,A3,A4,A6;
    then r(#)(f/*seq) is     hence thesis by BVFUNC_1:def 8;
    r(f/seq convergent ,7RFUNCT_29XBOOLE_11java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    lim(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
   lim(())*)r*lim_right(,x0) A9A8,EQ_2:;
  ;
  now
;
    assume x0<r1;
    then    a''' ).T  ,BVFUNC_1def11;
A10: g<r1 and
A11: x0<g and
A12: g in dom f by A1;
    take g;
    thus g<r1 & x0<g & end;

  hence r(#) f is_right_convergent_in x0 by  
  hence thesis by A2,Def8;
end;

theorem Th53:
  f is_right_convergent_in x0 implies -f is_right_convergent_in x0
  & lim_right(-f,x0)=-(lim_right(f,x0))
proof
  assume
A1: f is_right_convergent_in x0;
  thus -f is_right_convergent_in x0 by A1,Th52;
  thus lim_right(-f,x0)=(-1)*(lim_right(f,x0)) by A1,Th52
    .=-(lim_right(f,x0));
end;

theorem Th54:
_right_convergent_in  &(
  for r st x0<r ex g st g<r & x0<g & g in dom(f1+f2)) implies f1+f2
is_right_convergent_in x0 & lim_right(f1+f2,x0)=(lim_right(f1,x0))+(lim_right(
  f2,x0))
proof
  assume that
A1: f1 is_right_convergent_in x0 and
A2: f2 is_right_convergent_in x0 and
A3: for r st x0<r ex g st g<r & x0<g & g in dom(f1+f2);
A4: now
    let seq;
    assume that
A5: seq is convergent and
A6: lim seq=x0 and
A7: rng seq c=dom(f1+f2)/\right_open_halfline(x0);
A8: dom(f1+f2)=dom f1/\dom f2 by A7,Lm4;
A9: rng seq c=dom f1/\right_open_halfline(x0) by A7,Lm4;
A10: rng seq c=dom f2/\right_open_halfline(x0) by A7,Lm4;
    then
A11: lim(f2/*seq)=lim_right(f2,x0) by A2,A5,A6,Def8;
:f2/seq  convergent byA2,5,;
;
    then
A13: f1/*seq+f2/*seq=(f1+f2)/*seq by A8,RFUNCT_2:8;
A14: f1/*seq is convergent by A1,A5,A6,A9;
    hence (f1+f2)  end;
    lim(
lim(f1+)*)(f1,x0)lim_rightf2,0)byA14,A12A11
A13SEQ_26
  end;
   f1+2  x0by ;
  hence thesis by A4,Def8;
end;


  f1 is_right_convergent_in x0 & f2 is_right_convergent_in x0 & (for r
  st x0<r ex g st g<r & x0<g & g in dom(f1-f2)) implies f1-f2
is_right_convergent_in x0 & lim_right(f1-f2,x0)=(lim_right(f1,x0))-(lim_right(
  f2,x0))
proof
  assume that
A1onvergent_in x0 
A2: f2 is_right_convergent_in x0 and
A3 a,beingFunction YBOOLEAN  a''b)'imp' 
A4: -f2 proof
f1-is_right_convergent_in  byA1,A3,h54java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
  thus lim_right(f1-f2,x0)=lim_right(f1,x0)+lim_right(-.'ot'a.x' .x)'or' ('not' aimp'b. by:ef
    .=(lim_right(f1,x0))+-lim_right(f2,x0) by A2,Th53BVFUNC_1def8
    .=(lim_right(f1,x0))-lim_right(f2,x0)ARGREL1:ef 19
end;

theorem
  f is_right_convergent_in x0 & f"{0}={} & lim_right(f,x0)<>0 implies f^
  is_right_convergent_in x0 & lim_right(f^,x0)=(lim_right(f,x0))"
proof
  assume that
A1: f is_right_convergent_in x0 and
 "0=}and
A3: lim_right(f,x0)<>0;
:domf=f\"0}byA2
.d(^) by RFUNCT_1:ef java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A5: now
    let seq;
    assume that
A6: seq is convergent and
A7: lim seq=x0 and
A8: rng seq c=dom(f^)/\right_open_halfline(x0);
A9: lim(f/*seq)=lim_right(f,x0) by A1,A4,A6,A7,,Def8;
A10: dom f/\right_open_halfline(x0 forx   Y  (not(anot  &
    then
dom  by A4,,:;
A12:f*eqisconvergentby,4,6,A7,8;
A13: (f/*seq)"=(f^)/*seq by A4,A8,A10,RFUNCT_2:12,XBOOLE_1:1;
    hence (f^)/*seq is convergent by A3,A4,A12,A9,A11,RFUNCT_2:11,SEQ_2:21;
    thus lim((f^)/*seq)=(lim_right(f,x0))" by A3,A4,A12,A9,A11,A13,RFUNCT_2:11
,SEQ_2:22;
  end;
  for r st x0<r ex g st g<r & x0<g & g in dom(f^) by A1,A4;
  hence f^ is_right_convergent_in x0 by A5;
hence thesis by A5,;
end;


f x0  ()is_right_convergent_in &
lim_rightabs()x0)=|lim_right(,.
proof
  assume
A1: f is_right_convergent_in x0;
A2: now
    let seq;
    assume that
A3: seq is convergent and
A4: lim seq=x0 and
A5: rng seq c=dom(abs(f))/\right_open_halfline(x0);
A6: rng seq c=dom f/\right_open_halfline(x0) by A5,VALUED_1:def 11;
    dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
    then rng seq c=dom f by A6,XBOOLE_1:1;
    then
A7: abs(f/*seq)=(abs f)/*seq by RFUNCT_2:10;
A8: f/*seq is convergent by A1,A3,A4,A6;
    hence (abs f)/*seq is convergent by A7;
          T
    hence lim((abs f)/*seq)=|.lim_right(f,x0).| by A8,A7,SEQ_4:14;
  end;
  now
    let r;
    assume x0<r;
    then consider g such that
A9: g<r and
A10: x0<g and
A11: g in dom f by A1;
    take g;
    thus g<r & x0<g & g in dom abs(f) by A9,A10,A11,VALUED_1:def 11;
  end;
  hence abs(f) is_right_convergent_in x0 by A2;
  hence thesis by A2,Def8;
end;

theorem Th58:
  f is_right_convergent_in x0 & lim_right(f,x0)<>0 & (for r st x0<
  r ex g st g<r & x0<g & g in dom f & f.g<>0) implies f^ is_right_convergent_in
  x0 & lim_right(f^,x0)=(lim_right(f,x0))"
proof
  assume that
A1: f is_right_convergent_in x0 and
A2: lim_right(f,x0)<>0 and
A3: for r st x0<r ex g st g<r & x0<g & g in dom f & f.g<>0;
A4: dom f\f"{0}=dom(f^) by RFUNCT_1:def 2;
A5: now
A6: dom(f^) c=dom f by A4,XBOOLE_1:36;
    let seq such that
A7:: licenses, or see http://www.gnu.org/licenses/gpl.html and
  seq=0 and
:rngseq =(f^)/\right_open_halfline(x0);
:domf^/right_open_halfline(x0)=omf) byXBOOLE_117java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
then
A11, BINOP_2 ;
    rng seq c=dom(f^) by  registrations ORDINAL1, RE, XREAL_0 ,MEMBERED,
 then
:rng seq =dom f by,:1;
    (^/right_open_halflinex0)=right_open_halflinex0)by XBOOLE_1:17;
    then rng
    then
A13: rng seq   SigmaField X;
    then
 (/seq)lim_rightf) byA1,,8D;
A15: (f/*e;
 /seqis java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
hence()*eq is is convergent A2A,A11,15,EQ_2:1;
    thus lim(^)/seq)(lim_rightf))"by,A16,14,A15,EQ_22;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  now
        .==n(a'or  i'(not' & not' )byBVFUNC_113
    assume
then suchthat
A17: g<r and
 < and
A19: g in dom f and
A20: f.g<>0 by A3;
takegjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
notfgin{}  ,ARSKIdef1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
          =TRUE 'or' .x by :02
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  f^ x0 A5;
  hence   for  beingElementofY  (a 'r'a)'mp .=TRUE
end;

theorem Th59:
  f1;
  for r st java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
is_right_convergent_in x0 &  bIelYjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
(,)

  assume that
: x0java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
ght_convergent_in java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A3: for r st hence thesis byjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 34
A4: now
    let seq;
    assume that
 seq is  
 seq 
A7: rng seq c=dom(f1(#)f2)/\right_open_halfline(x0);
A8: dom(f1(#)f2)=dom f1/\dom f2 by A7,Lm2;
A9: rng seq c=dom BVFUNC_1:ef java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A10: rng seq c=dom f2/\right_open_halfline(x0) by A7,Lm2;
    then
A11: lim(f2/*seq)=lim_right(f2,x0) by A2,A5,A6,Def8;
A12: f2/*seq is convergent by A2,A5,A6,A10;
    rng seq c=dom(f1(#)f2) by A7,Lm2;
    then
seq)#)f2/*seq)=(()f2)* by ,RFUNCT_2:;
:/seqis convergent by A1,A6,9
    hence (proof
lim/seq)=im_rightf1, by ,5A6,A9,Def8;
    hence lim((       thesisby ,XTREAL141;
,A13,SEQ_2:15;
  end;
  #) f2 x0byA3;
  hence thesis by A4,Def8;
;

theorem
  f1 is_right_convergent_in x0 & f2 is_right_convergent_in  proof
  lim_right(f2,x0)<>0 & (for r st x0<r ex g st g<r & x0<g & g in dom(f1/f2))
implies f1/f2 is_right_convergent_in x0 & lim_right(f1/f2,x0)=(java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 65
/()

  assume= ' ' .xorTRUE XBOOLEAN102
:f1is_right_convergent_in 
A2: f2 is_right_convergent_in x0 and
A3: lim_right(f2,x0)<>0 and
A4: for r'ot'b)=_el(Yjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
:
    let r;
java.lang.StringIndexOutOfBoundsException: Range [9, 4) out of bounds for length 16
then such
A6: g<r and
:< and
A8:       ='ot'a.'r''ot . o n'( imp'n' b. by
   java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
thusgr&x0<
    dom(f1/=(not x' not'bx o'a.)'& (nota.x 'or'
    then
A9    let x;
    then
A10  ginf2" XBOOLE_0def5java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
g f2byA9,: 5java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
   fisreal;
       -  rng f by \g{+nfty)={ A3java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
 ;
  then
A11: f2^ then A8:  g"{+infty} = {} by72java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
:f2f()f2)RFUNCT_1java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
hence/  x0 by ,4,A11,Th59java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
lim_right(^x)((2,0)"by ,3A5,Th58;
  lim_right(f1/,)=im_rightf1,0)((im_right(2,0)" by A1,A12
,A11,Th59:fis-alued 
    .(f1,0)(lim_rightf2)) XCMPLX_0def9;
ndjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem
  f1 is_left_convergent_in x0      asElement X byA6java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
st r<-+
   #f2 is_left_convergent_in &lim_leftf(),0)=0
 infty<.x byA16X:;
  that
nvergent_in x0 and
A2:
 rstr< exg  < &<0 & in(())java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  given r such that
A4: 0<r and
A5: f2|].x0-r,x0.[ is bounded;
  consider g be Real such that
A6: for r1 being object.(.x'&'. or ' '''' b. by:ef20
;
 
    set  .=not .o''ot' bx o'(ax
let eReal_Sequence
assumethat
  convergent and
A9: lim s=x0 and
=(1#))\eft_open_halfline);
    x0-r<theorem
    then consider k such that
:n st k<=n holds x0-r<s.n by A8,A9,Th1;
A12: rng(s^\k)c=rng s by VALUED_0:21;
A13: rng s c=dom(f1(#)f2) by A10,Lm2;
    dom(f1(#)f2)=dom f1/\dom f2 by A10,Lm2;
    then rng(s^\k)c=dom f1/\dom f2 by A13,A12,XBOOLE_1:1;
    then
A14: (f1/*(s^\k))(#)(f2/*(s^\k))=(f1(#)f2)/*(s^\k) by RFUNCT_2:8
      .=((f1(#)f2)/*s)^\k by A13,VALUED_0:27;
    rngA1:H is one-to- and
    then
 (^k)=om f1/Lb ,BOOLE_11;
:lim(s^k)x0 y A8A9,SEQ_4:20;
    then
A17: f1/*(s^\k) is convergent by A1,A8,A15;
    rng s c=left_open_halfline(x0) by A10,Lm2;
    then
A18: rng(s^\k)c=L by A12,XBOOLE_1:1;
A19: rng s c=dom f2 by A10,Lm2;
    then
A20: rng(s^\k)c=dom f2 by A12,XBOOLE_1:1;

      setA6  indom F
0=.. by COMPLEX1:46;
      hence 0<t;
       n;
A21: n in NAT by ORDINAL1:def 12;
      x0-r<s.(n+k) by A11end;
      then
A22:  x0-r<(s^    thenconsider y be objectsuch that
:(^k.n inrng(^k)by:28;
         H)x FUNCT_1def3;
      then (s^\k).n inx =Hyby A1A,F:;
      thenrng F=rng Gby A9java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
(\)n  g2 -<2  g2<x0  ;
then(\).  ]x0-,0[by RCOMP_1def ;
      A1: f is A-measurable & g is A-measurable;
      then |.$2 = (A /\ less_dom ) / (A \less_domg,rp);
      then
A24then  psuchthat
      =.. by ABSVALUE:4;
tg<byLm1;
      hence |.  end;
    ;
    
A25: f2/thenexqst  =p&Gp=( \less_domf ) \( \
  t ;
    
A27f1*s^k))#(/(^\k) is convergent by A17,25SEQ_2:;
    hence (f1(#)f2) gis - holds f+g is A-measurable
    lim((f1/*(java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
(#))*)=0 by A27A14,SEQ_4:;
  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
ncef1()f2    A3;
   by A7,ef7java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
:-nfty;

theorem
  f1 is_right_convergent_in x0 &  f2x =-nftybyA14T:def
st< &x0<g& g indom(1#f2)&(ex rst 0< &f2].0,x0+.  bounded
)implies x0 &lim_rightf1#)f2,0)0
proof
  assume thatA17  in(-2"+}
A1: f1 is_right_convergent_in x0 A20:x dom 2byA18,ESFUNC1def7;
 lim_rightf1,)0and
A3: for r st x0  f2x in{}byTARSKIdef java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  given(f1"-infty}\(f2)"+infty}) \/(f1"+infty}/(f2)"-infty}))
A4: 0<r.dom f1 / domf2)\
A5: f2|].x0,x0+thenA22:(1-2)dom(f1+-2))by MESFUNC1def 4;
  consider g be Real such that
A6:  xindom(1-2)
73
A7: now
    set L=right_open_halfline(x0);
    let s be Real_Sequence;
    assume that
A8:s  convergent and
A9: lim s=x0 and
A10: rng s c=dom(f1(#)f2)/\right_open_halfline(x0);
x0<0+ byA4,Lm1;
    thenconsider ksuchthat
 A8,,;
:(\)=s byVALUED_02;
A13: rng s c=dom(f1(#)f2) by A10,Lm2;
(())dom /dom  by A10,Lm2;
    then rng(s^\k)BVFUNC_1defjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    then
A14: (f1/*(s^\k))(#)(f2/*(s^\k))=(f1(#)f2)/*(s^\k) by RFUNCT_2:8
     .(()2)/s)^k  A13,VALUED_0:27;
    rng s c=dom f1/\right_open_halfline(x0) by A10,Lm2    hence thesis;
    then
: rng(s^\k)c=om f11
 (^k)x0byA8,A9,EQ_4:0;
   
:*s^k is convergent by A1,8A15;
    rng s c=  proof
    then
18 rng(s^k)=L yA12,XBOOLE_1:1;
 rng s c= f2  A10,;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A20: rng(s^\k)c=dom f2 by A12,XBOOLE_1:1;
       
set =..+;
      0<=|.g.| by COMPLEX1:46;
      hence 0<;
      let n;
1 n in NAT by ORDINAL1:ef ;
      s.(n+k)<x0+r by A11,NAT_1:12;
      then
A22:  (s^\k).n<0+r NAT_1def3
A23: (s^k)n  rng(^)by:28;

      then (^\k)n in{1:x0<1  :java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
      java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 71
     then(\k).n   let fbe ,java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
(\)in ]x0,+r.by def2;
      then (s^\k).n in ].x0,      _1:def 4
|f2(s^k.)=by A6
      then
A24:  |.(f2/*(s^\k)).n.|<= g by A19,A12,FUNCT_2A4(-)# f.= -)(.)by A2,ESFUNC1:ef 6;
      g<      =-1)(. XXREAL_3:2
      then g<t by    hencethesis by A1,3,ESFUNC1:ef 7;
      hence  for C being non empty set, f being PartFunc of C,xtREAL,r be Real
    end;
    then
:f2bounded by SEQ_2:3
   for x  Element of C st x  ((#)f) holds |.(r(#)f).x .| <+
    then
27 f1/*s\)()f2*s\k)  convergentby ,A25,EQ_225
    hence (f1(#)f2)/*s is convergent       .='not'( a.x 'or' (b.x 'or' c.x))'(a 'r'b.)''
    lim((f1/*(s^\k))(#)(f2/*(s^\k)))=0 by A17,A26,A25,SEQ_2:26;
    hence lim((f1(#)f2)/*s)=0 by A27,A14,SEQ_4:22;
  end end;
  hence f1(#) f2 is_right_convergent_in x0 by A3;
  thesisby ,ef8;
end;

theoremforabbeing  ofY,OOLEAN holds ( imp'b)''(not'
  f1 is_left_convergent_in x0 & f2 is_left_convergent_in x0 &
lim_left(1,0)lim_left(,)&(or rst r<x0 ex g st r<g & g<0 & g  dom
f) & (ex r st 0<r & (for     'mp'b. by MARGREL1def 20
f2.g) &(dom f1 / ]x0-,0[c dom f2 / ]x0-,x0.  dom f / ].0-,x0java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
c= dom f1 /\ ].x0-r,x0.[) or (dom f2 / .('ot'a.''bx & (a. or .)by :def 19;
  dom f /\ ].x0-r,x0.[ c= dom f2 /\ ].x0-r,x0.[))case
           (a'imp b) '' (not  'imp ).(FALSE''b. ''(
proof
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A1   reconsider =f.x as Element ;
A2:f2 is_left_convergent_in x0and
A3: lim_left(f1,x0A7:-nfty < r *  y by A5;
A4:for r  <x0ex g st r<g & g<x0 &g in dom f;
 givenr1such that
A5: 0<r1 and
A6: for g st g in dom f/\].x0-r1,x0.[ holds f1.g<=f.g & f.g<=f2.g and
A7: dom f1/\].x0-r1,x0.[c=dom f2/\].x0-r1,x0.[ & A7: dom f1/\' b ''( ''b).=a ' java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
 /x-. dom/]-,[= /.,.  f\.
  x0-r1,x0.[c=dom f2/\].x0-r1,x0.[;
  now
    per cases by A7;
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
 f1x0x0.= f2]x0r1x0.[  f/.java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 70
 /]-x0.;
A9:   now
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
        assume         hence thesisjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
A10:    seq is convergent and
:   lim seq=0and
A12:    rng seq c=dom f/\left_open_halfline(x0);
        x0-r1<lim seq by A5,A11,Lm1;
n suchthat
A13:    for n st k<=n holds x0-r1<seq.n by A10,Th1;
A14:    rng(seq=(not' or a'imp' c)xby BVFUNC_1def 8
        dom f/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1BVFUNC_1:def 8
        then rng seq c=left_open_halfline(x0) by A12,XBOOLE_1:1;
        then
A15:    rng(seq^\k)c=      .='not' a.x 'or' (b.x 'or' cjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        now
          let x be object;
          ssume
       inrng(eq^k)
          then consider n   let a,b,  Functionof Y,OOLEAN;
A17:      x=(seq^\k).n by FUNCT_2:113;
          (seq^\k).n       ='not'ax or' b.)'& ( 'mp c)xby BVFUNC_1def 8
           seq\)n {g:gx0} by :229
          then
A18:      ex'( ''c)xby :ef 8java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
          x0-r1<seq.(n+k) by A13,NAT_1:12abcFunctionjava.lang.StringIndexOutOfBoundsException: Range [26, 28) out of bounds for length 26
          then  ='not . o'cx)''( 'mp )x by :ef8
          then x in {g1: x0-r1<g1 & g1<x0} by A17,A18;
  .-,x0 : 2
        end;
        then
A19:    rng(seq^\k)c=].x0-r1,x0.[ by TARSKI:def 3;
        ].x0-r1,x0.[c=left_open_halfline(x0) by XXREAL_1:263;
        then
A20:    rng(seq^\k)c=left_open_halfline(x0) by A19,XBOOLE_1:1;
A21:    dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then
A22:    rng seq c=dom f by A12,XBOOLE_1:1;
        then rng(seq^\k)c=dom f by A14,XBOOLE_1:1;
        then
A23:    rng(seq^\k)c=dom f/\].x0-r1,x0.[ by A19,XBOOLE_1:19;
        then
A24:    rng(seq^\k)c=dom f1/\].x0-r1,x0.[ by A8,XBOOLE_1:1;
        then
/].0r1x0.[by,BOOLE_11;
A26:    lim(seq^\k)= x0 by A10,A11,SEQ_4:20;
A27:    dom f2/\].x0-r1,x0.[c=dom f2 by java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 26
        then.=(not a.x 'r'c.)or'(not'b 'or x)by
       then
A28 rng^\k)cdomf2/left_open_halfline()byA20,XBOOLE_119;
       
29:   lim(f2/*(seq^\k))=im_left(f2, x0)by ,A10,A26,ef7;
A30:    dom f1/\].x0-r1,x0.[c=dom f1 by XBOOLE_1:17;
        then rng(seq^\k)c=dom f1 by A24,XBOOLE_1:1;
        then
A31:    rng(seqend;
       
:(/(eq^)l(1, A1A26;
A33:    now
          let n;
A34: n in NAT by ORDINAL1:def 12;
A35:      (seq^\k).n in rng(    (a 'imp' (b 'imp' c)).x ='n a. 'or'( 'imp'c)xby BVFUNC_1def 8
          then f.((seq^\k).n)<=f2.((seq^\k).n) by A6,A23;
          then
A36:      (f/*(seq^\k)).n<=f2.((seq^\k).n)
 ,A22:,:,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
          f1.((seq^\k).n)<=end
          java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
,XBOOLE_1:1;
          hence (f1/*(seq^\k)).n<=(f/*(seq^\k)).n & (f/*(seq^\k)).n<=(f2/*(seq
          ^\k)).n by A30,A27,A24    xbe Elementof Y;
        end;
A37:    f2/*(seq^\k) is convergent by java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 4
A38:    f1/*(seq^\k) is   for a,b,c being Function of Y holds a 'imp'( 'or' c) =
        then f/*(seq^\k) is convergent by A3,A32,A37,A29,A33,SEQ_2:19;
        then
:f/seq)\k isconvergentby A12,A21,VALUED_027XBOOLE_1:1;
        hence f/*seq is convergent by SEQ_4:21;
      ='not'ax or' not' (not b.)'or'c by :def20
lim_leftf1x0 by,VALUED_0:,XBOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        hence lim(f/*seq)=lim_left(f1,x0) by A39,SEQ_4    hence thesis;
      endend
      hence f is_left_convergent_in x0 by A4;
      hence thesis by A9,Def7;
    end;
    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A40:  dom f2/\].x0-r1,x0.[ .=a. '' 'not'a.x)'or'(a.x &' b.)byXBOOLEAN:8
      .[c=dom f2/\].x0-r1,x0.[;
A41:  now
        let seq;
        assume that
A42:    seq is convergent and
A43:    lim seq=x0 and
A44:    rng seq c= dom f/\left_open_halfline(x0);
        x0-r1<lim seq by A5,A43,Lm1;
        then consider k such that
A45:    for n st k<=n holds x0-r1<seq.n by A42,Th1;
A46:    rng(seq^\k)c=rng seq by VALUED_0:21;
        dom f/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
        then rng seq c=left_open_halfline(x0) by A44,XBOOLE_1:1;
        then
A47:    rng(seq^\k)c=left_open_halfline(x0) by A46,XBOOLE_1:1;
        now
          let x be object;
          assume
A48:      x in rng(seq^\k);
          then consider n being Element of NAT such that
A49:      x=(seq^\k).n by FUNCT_2:113;
          (seq^\k).n in left_open_halfline(x0) by A47,A48,A49;
          then (seq^\k).n in {g: g<x0} by XXREAL_1:229;
          then
A50:      ex g st g=(seq^\k).n & g<x0;
          x0-r1<seq.(n+k) by A45,NAT_1:12;
          then x0-r1<(seq^\k).n by NAT_1:def 3;
          then x in {g1: x0-r1<g1 & g1<x0} by A49,A50;
          hence x in ].x0-r1,x0.[ by RCOMP_1:def 2;
        end;
        then
A51:    rng(seq^\k)c=].x0-r1,x0.[ by TARSKI:def 3;
        ].x0-r1,x0.[c=left_open_halfline(x0) by XXREAL_1:263;
        then
A52:    rng(seq^\k)c=left_open_halfline(x0) by A51,XBOOLE_1:1;
A53:    dom f/\left_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then
A54:    rng seq c=dom f by A44,XBOOLE_1:1;
        then rng(seq^\k)c=dom f by A46,XBOOLE_1:1;
        then
A55:    rng(seq^\k)c=dom f/\].x0-r1,x0.[ by A51,XBOOLE_1:19;
        then
A56:    rng(seq^\k)c=dom f2/\].x0-r1,x0.[ by A40,XBOOLE_1:1;
        then
A57:    rng(seq^\k)c=dom f1/\].x0-r1,x0.[ by A40,XBOOLE_1:1;
A58:    lim(seq^\k)= x0 by A42,A43,SEQ_4:20;
A59:    dom f2/\].x0-r1,x0.[c=dom f2 by XBOOLE_1:17;
        then rng(seq^\k)c=dom f2 by A56,XBOOLE_1:1;
        then
A60:    rng(seq^\k)c=dom f2/\left_open_halfline(x0) by A52,XBOOLE_1:19;
        then
A61:    lim(f2/*(seq)''(notb.'r'c.java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
:/java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 52
        then(^k=dom f1 by A57XBOOLE_1:1;
.(mp' )'&(b 'imp'c.x by A2;
A63:    rng(seq^\k)c=dom f1/\left_open_halfline(x0) by A52,XBOOLE_1:19;
        then
A64:    lim(f1/*(seq^\k))=lim_left(f1, x0) by A1,A42,A58,Def7;
A65:    now
          let n;
A66: n in NATper cases;
A67:  suppose
f(seq^k.)=f2.(seq^k).)by ,A55;
          then
A68:      (f/*(seq^\k)).n<=f2.( max+f)x=max(,Def2
by A46,A54,FUNCT_2:108,XBOOLE_1:1,A66;
          f1.((seq^\k).n)<=f.((seq^\k).n)   endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
          then 
,XBOOLE_1:1;
 beingElement of C st 0.<max-().x holdsmax+(f)x=0java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
          ^\k)ment of C;
               end;
A69:    f2/*(seq^\k) isA3:0.<max-(f).x
A70:    f1/*(max-f)= ((.)0)byA4D;
        then f/*(then  f,.  .byXXREAL_0def10;
        then
A71:    (f/end;
        f/is  bySEQ_4:;
limf*seq^k)=(f1,0byA3,A64, hence;
          et be java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
lim(/*)lim_left(1,) by A71,EQ_4:22;
      end;
      hence freconsider x1as Elementof by A2;
       by A41Def7;
    end;
  end;
  hence thesis;
end;

theorem
f1 &f2 is_left_convergent_in x0 &lim_left(
f1hence by Th12
  f & for g  (max+(f))"{+i}misses(ax-))"-}
ft_convergent_in x0&lim_left(,x0)lim_left(1,x0)
proof
  assume that
A1: f1 is_left_convergent_in x0 and
A2: f2     hence contradiction by;
A3: lim_left(then A12: (max+))+}/ (ax-f))"-nfty}={;
 rsuch that
: 0rand
:]x0-,.c=om f1/dom f2/\om f and
A6: for g st g in ].x0-r,x0.[ holds f1.g<=f.g & f.g<=f2.g;
  dom f1/\dom f2/\dom f c=dom f1/\dom thenmax(f)x1 =-infty by TARSKI:ef1;
  then
A7: ].x0-r,x0.[c=dom f1/\dom f2 by A5,XBOOLE_1:1;
A8: dom f1/\dom f2/\dom f c=dom f by XBOOLE_1:17;
  then
A9: ].x0-r,x0.[c=dom f by A5,XBOOLE_1:1;
A10: now
    let r1 such that
A11: r1<x0;
    now
      per cases;
      suppose
A12          =by XBOOLEAN:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
       java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
          x0-r<x0 by A4,Lm1;
          then consider g being Real such that
A13:      x0-r<g and
A14:      g<x0 by XREAL_1hence hesisbyA1,12,A14M:def;
          reconsider g as Real;
          take g;
          thus r1<g & g<x0 by A12,A13,A14,XXREAL_0:2;
          g in {      
          then g in ].0r,x0.  RCOMP_1:ef 2
          hence g in dom f by A9;per casesjava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
        end;
indomfjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
      end notx in f;
      suppose
:   x0-<r1;
        now
                   thesis
  letCbe  java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 10
  XREAL_15;
          assume
          ;
thusr1g &< by A;
x0< by A15,16,XREAL_02java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
          then g in {g2: x0-r<g2 & java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 6
thengin .-x0.by :ef2
          hence g in dom f by A9;
        end;
        A1  in domf 
  
    end;
    hence;
  end;
  dom f1/\dom f2 c=dom   let C  nonempty set;
  then
 /]0rx.=x-x0. yA7,BOOLE_1:,
c=m f1 XBOOLE_117;
  then
A6: +(f.x  max(.,0.) byA4,;
  dom f/\]x0-r, max-)x  max((.,.b ,java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
  hence thesis by A1,A2,A3,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 16
end;

theorem Th65:
  f1 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
  lim_right(f1,x0)=lim_right(f2,x0) & (for a being Function of Y,BOOLEAN holds I_elmax-(f).x = 0.;
dom f) & (ex r st 0<
.g<=f2..g<=f2.gx  max(-f.x)0.) by,;
 ,r[) or
  .[ & dom f /\f =max+f) - max-()
x & im_rightf,)ljava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 62

  that
 f1is_right_convergent_in and
A2: f2 is_right_convergent_in x0 and
A3: lim_right(f1,x0)=lim_right(f2,x0) and
A4: for rtheorem
  given r1 such that
A5: 0<r1 and
A6: for g st g in dom f/\].x0,x0|f. =max+f)+max-()
A7: dom f1/\].x0,x0+r1.[c=A1: dom f = dom(max+(f)+max-(f)) by Th17;
domf1/for  Element Cst x in dom f holds
  let x Element of ;

    per A5:    max+(f).  Th19
    suppose
A8:   dom f1/\].x0,x0+r1.[c=dom f2/\].x0,x0+r1.[ & dom f/\].x0,x0+r1.[
      domf1/]x0,x0+1[
A9:   now
        let seq;
        assume    x in dom(())byA3D;
A10:    letx be Element of X;
A11:     assume
java.lang.StringIndexOutOfBoundsException: Range [44, 3) out of bounds for length 49
        x0hence contradiction by A15,A18,XXREAL_0:25;
        then consider k such that
  st<seq.<x0r  A10A,;
    (seqk)rngseq 21;
        dom f/\right_open_halflinejava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 26
        then rng seq c=right_open_halfline(x0) by A12,XBOOLE_1:1;
        java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 79
A15:    rng(seq^\k)c=right_open_halfline(x0) by A14,XBOOLE_1:1;
        now
          let x be object;
          assume
A16:      x in rng(seq^\k);
          then consider n being Element of NAT such that
A17:      x=(seq^\k).n by FUNCT_2:113;
          (seq^\k).n in right_open_halfline(x0) by A15,A16,A17;
          then' c 'or' a)))).z by
         java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
A18:      ex g st g=(seq^\k).n & x0<g;
          seq.(n+k)<x0+r1 by A13,NAT_1:12;
          then (seq^\k).n<x0+r1 by NAT_1:def 3;
          } by A18;
           x in ]x0,x0+1.[ by RCOMP_1:def 2;
        end;
               then
19:rng(eq^k)=.x0,x0+r1.[by :def
        ]x0,0r1.[c=right_open_halfline(x0) by XXREAL_1:247;
        then
A20:    rng(seq^\k)c=right_open_halfline(x0) by A19,XBOOLE_1:1;
A21:    dom f/\right_open_halfline(x0)c=dom fnot' c' ).z & (b'''ot'c)'r'( '& 'not' b))'or' (('not' a
        then
A22:    rng seq c=dom f by A12,XBOOLE_1:;
        rng(seq^kc=omby A14,BOOLE_1:1java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
        then
 rng(eq\)dom f/]x0,0r.by ,BOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
        A15:     (-). <r by A13,ESFUNC1:def 11;
A24:    rng(seq^\k)c=dom f1/\].x0,x0+r1.[ by A8,java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 39
        
A25:    rng(seq^\k)c=dom f2/\].x0then           ((f.),0. = -f.) by XXREAL_0:def 10;
A26(not' a 'or' c) '&' ('not' c 'or' a)).z) by BVFUNC_1:def 4
27     f2/]x0,0+r1.c=om f2 by XBOOLE_1:17;
        then rng(eq^\k)c=dom f2 by A25,BOOLE_1:1;
        then
A28.((a.z '' ('ot'c).)'or'( '''not' a)z)'or'(('ot'b 'rjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
        then
A29:    lim(f2/*(seq^\k))=lim_right(f2, x0) by A2,A10,A26,Def8;
A30:    dom f1/\].x0,x0+r1.[c=dom f1 by XBOOLE_1:17;
        then rng(seq^\k)c=dom         then rng(seq^\k)c=dom f1& ((b '''ot'c).z'r'( '& 'not'b)
        then
A31:    rng(seq^\k)c=dom f1/\right_open_halfline(x0) by A20,XBOOLE_1:19;
        then
A32:    lim(f1/*(seq^\k))=lim_right(f1, x0) by A1,A10,A26,Def8;
A33:    now
          let n;
A34:def 12;
A35:(seq^k.n in rng(^\)by VALUED_0:28;
          then f.(seq^k.n)=f2.(seq^k)n)by ,23
          then
A36:      (/*seq^k).n<f2.(seq^\)njava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
by A14,A22,FUNCT_2:108,XBOOLE_1:1,A34;
          f1.((seq^\k).n)<=f.((seq^\k).n) by A6,A23,A35;
          then f1.((seq^\k).n)<=(f/*(seq^\kMARGREL1:def 20
,XBOOLE_1:.=((a.z & ''c.)'r' (.z & '' a)z) ''((notjava.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
          hence ( ' (not'b)z) o'('  or . ''(  o'.)
          ^\k)).n .((z' ' c.  c & 'java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 71
        end;
:f2/(eq^\  by,10A,28java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53

        then f/*(seq^\k) is convergent by A3,A32,A37
        then
A39:    (f/*seq)^\k is convergent by A12,A21,VALUED_0:27,XBOOLE_1:1;
        hence f/*seq is convergent by SEQ_4:21;
        java.lang.StringIndexOutOfBoundsException: Range [44, 11) out of bounds for length 77
        then lim((            suppose
,XBOOLE_1:1;
        hence lim(f/*seq)=lim_right(f1,x0) by A39,SEQ_4:22;
      end;
      hence f is_right_convergent_in x0 by A4;
      hence thesis by A9,Def8;
    end;
    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
or&  z)''(( . java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 13
      +r1[;
A41:    .=((a. ' ' )z or  
       18:xin less_dom(ax-) java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
        assume that
    
A43:    A8  .Tjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 33
        x0<lim seq+r1 by A5,A43,Lm1;
            java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 33
A45:    for n st k<=n holds seq.n<x0+r1 by .=((FALSE 'or' c.z) 'or' (('not' b.z 'or
A46:    rng(seq^\k)c=rng seq by VALUED_0:21;
        dom f/\right_open_halfline(x0)c=' ( or z &   fA
        then rng) &(b & 't .z)o .z'n'bz)' (o
       
A47:    rng(seq^\k)c=right_open_halfline(x0) by A46,XBOOLE_1z &  xjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 52
        now
          let x be object;
          assume
A48:      x in rng(seq^\k);
          consider  Elementof  ofNAT that
A49:      x=(seq^\k).n by FUNCT_2:113;
         \n java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [23, 10) out of bounds for length 55
          thenor ''then

          seq.(n+k)<x0+r1 by A45,NAT_1:12;
          then (seq^\k)be ;
          then x in {g1: x0<g1 & g1<x0+r1} by A49,A50;
          hencein],x0+r1. by RCOMP_1:def 2;
        end;
        .(java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 69
,x0+1[ djava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 50
        java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 62
        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
q\)=() ,:;
A53:    dom f/\right_open_halfline(x0)c=dom f by XBOOLE_1:17;
        then
A54:    rng seq c=dom f by A44,XBOOLE_1:1;
        then rng(seq^\k)c=dom f by A46,XBOOLE_1:1;
        then
A55:    rng(seq^\k)c=dom f/\].x0,x0+r1.[ by A51,XBOOLE_1:19;
        then
A56:    rng(seq^\k)c=dom f2/\].x0,x0+r1.[ by A40,XBOOLE_1:1;
        then
A57:    rng(seq^\k)c=dom f1/\].x0,x0+r1.[ by A40,XBOOLE_1:1;
A58:    lim(seq^\k)= x0 by A42,A43,SEQ_4:20;
    domf2/x,0cdom  by XBOOLE_117java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
        then rng(seq^\k)c=dom f2 by then   |.f.| .x <  r by A17,MESFUNC1:def 10;
        then
A60    seq\)=om /\ight_open_halfline(x0) by ,XBOOLE_1:;
        then
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 63
A62:    dom f1/\].x0,x0+r1.[c=dom f1 by .=(c.z 'or' 'not' b.z) '&' (('not' b'(n         thesis y ,XBOOLE_1:6
        then rng(seq^\k)c=dom f1hence thesis;
     then
A63:    rng(seqjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
   func (,X)- PartFunc of X,ExtREAL;
A64:    lim(f1/*(seq^\k))=lim_right(f1 roof
A65:    now
          let n;
A66: ((not' c)z' z'=;
A67:      (seq^\k).n in rng(seq^\k) by VALUED_0:28;
java.lang.StringIndexOutOfBoundsException: Range [15, 10) out of bounds for length 57
          then
A68:      (f/*(seq^\k)).n<=f2.((seq^\k).nc(AX)= &A,X)c=ExtREALbyFUNCT_3d3java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
by A46,A54,nd;
   (seq^\k).)=(s^k.) by A6,A55,A67;
          then f1.((seq^proof
,XBOOLE_1:1;
          (/(\).=(*seq\).&(*\
,FUNCT_2108,BOOLE_1:,A66;
        ;
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 10
A70.''b. 'r'('not . '& c.)'or'('          : 1
        
        then
A71:    (f/*seq)^\k is convergent by A44,A53,VALUED_0:27,XBOOLE_1:1 chi(,)       thenn bzjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 27
         *java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 47
        lim(f/*(seq^\k))=lim_right(f1,.=('not' c.z 'or' c.z) '&' ('notjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
        then lim((f/*seq)^\k)=lim_right(f1,x0 ) by A44,A53,        then lim((f/*seq)^\k)=lim_right(f1,x0 ) by A44,A53,VALUED_0
,XBOOLE_1:1;
        hence lim(f/*seq)=lim_right(f1,x0) by A71,SEQ_4:22;
      end;
      hence f is_right_convergent_in x0 by A4;
      hence thesis by A41,Def8;
    end;
  end;
  hence thesis;
end;


  & &
lim_right(f1,x0)=lim_right(f2,x0) & (ex r st 0<r & ].x0,x0( 
f2 /\ dom f &    =n  . o' z o'( ' ) &'(n c
cjava.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 62
proof
  assume that
A1: f1 is_right_convergent_in x0 and
A2: f2 is_right_convergent_in x0 and
A3: lim_right(f1,x0)=lim_right(f2,x0);
   such 
A4: 0<r and
A5: ].x0,x0+r.[c=dom f1/\dom '&' 'not' b.z) 'or' ('not' c.z'a.)       inNAT;
java.lang.StringIndexOutOfBoundsException: Range [17, 2) out of bounds for length 58
  dom f1/\A3:   x1 in domx1idom  =java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
  
0+[java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 49
A8: dom f1/\dom f2/\dom f c=dom f by XBOOLE_1:17;
  a java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 52
A9: ].x0,x0+r.[c=dom f by A5,XBOOLE_1           ((+)  *} A11;
A10: now
    let(|Seg1)   /{} java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
A11: x0<r1;
       thesis ,A,java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 49
      per cases F(+ >{java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      suppose
A12:    r1<=x0+r;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
          consider g being Real such that
A13:      x0<g and
A14:      g<r1 by A11,XREAL_1:5;
          reconsider g as Real;
          take g;
          thus g<r1 & x0<g by A13,A14;
          g<x0+r by A12,A14,XXREAL_0:2;
then g {: g2&g2<0+r}by ;
thengin]x0x+. : 2
hence in  by A9;
        end;
        hence ex g st g<r1 & x0<g & g in dom f;
      end .unionrngG1\ .m)by:
      suppose
A15:    x0+r<=r1;
        nowthen         (infty  . by :21;
          x0+0<x0+r by A4,XREAL_1:8;
          
A16:      x0<g and
A17:      g<x0+                holdsx1 less_domfunion rng(F|Segm),r)
reconsider as;
          take gx1  f| F|Seg(+),r);
          thus g<r1   dom(|nion (|Segm1))  MESFUNC1:ef11;
          g in {g2: x0<g2 & g2<x0+r} by A16,A17;
          g ],0+r[ by:def 2;
          hence g in                  .(+) by ,BOOLE_123java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
        ;
        hence ex g st g<                  by A21,ESFUNC1def 11;
e;
    end;
    hence ex g st < & x0<g & g in domf;
  end hence java.lang.StringIndexOutOfBoundsException: Range [67, 34) out of bounds for length 67
dom/dom c  by:7java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

A18: dom f2/\].x0,x0+r.[=].x0,x0+r.[ by A7,XBOOLE_1:1 x1  objectst  in less_domf|nion F(m) )
domf/dom  =om by XBOOLE_117
  then
A19: dom f1/\].x0,x0+r.[=].java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 24
  dom f/\].x0,x0+r.[=].x0,x0+r.[ by A5,A8then :                dom(f|nion rng(| m))) by : java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  hence thesis by A1,A2,A3,A4,A6,A19,A18,A10,Th65;
end;

theorem
  f1 is_left_convergent_in x0 & f2 is_left_convergent_in x0 & (ex r       then
< not bz= by ;
].x0-r,x0.[ holds f1.g<=f2.g) or (dom f2 /\ ].x0-r,x0.[ c= dom f1 /\ ].x0-r,x0
.g=.)  (
  f1,x0)<=lim_left(f2,x0)
proof
  assume that
A1: f1 is_left_convergent_in x0 and
A2: f2       (FALSE 'or' (TRUE 'or'z)  A2,A7,A5
  given r such that
 <r 
A4: (dom f1/\].x0-r,x0.[c=dom f2/\].x0-r,x0.[ & for g st g in dom f1/\].
x0-r,x0.[ holds f1.g<=f2.g) or ( (f|rngF| m))x1 =(|unionrng(F((+1))x1
stdomf2\.-,x0[holdsg=2.);
  now
    per cases by A4;
    suppose
A5:   dom f1/\].x0-r,x0.[c=dom f2/\].x0-r,x0.[ & for g st g in dom f1
    /.rx0[olds f1.<f2.g;
      defpred X[Nat,Real] means x0-1/($1+1)<$2 & $2<x0 & $2
      in dom f1;
A6:   now
                let
        x0-1/(n+end;
        then consider g                  then :             x1
 x0-/n+< andjava.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
d
A9:    g indomf/ rngG1java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
         reconsider g as Element of REAL by XREAL_0:def 1;
        take g;
thusn  A8A9java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      end;
      consider s be Real_Sequence such                       by A37,A41,FUNCT_1:47,,47
:forn being    X[n,.] : 3(6)
A11: for n being Nat holds X[n,s.n]
  n Nat;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A10;
     end;
:sx0 byA11,java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
A13:  rng s c=dom f1/\left_open_halfline(x0) by then  x1inunionrngG1java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 35
A14:  ].x0-r,x0.[c=left_open_halfline(x0) by XXREAL_1:263;
A15:  s is convergent by A11,Th5;
x0-<0by A3,m1;
      then consider k such that
A16:  for n st k<=n holds x0-r<.nby ,A12,;
A17:  lim(s^\k)=x0 by A15,A12,SEQ_4:20;
      
        xobject;
        xinrng(\)
        then consider n being Element of NAT such that
A18:    (s^\k).n=x by FUNCT_2:113;

        then
   F(Segm+1)  ,:3java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
        s.(n+k) in dom f1 by A11;
        then
:(^k)n   f1 NAT_1: ;
        x0-r<s.(n+k) by A16,NAT_1:12;
        then x0-r<(s^\k).n by NAT_1:def 3;
        sk)in{  java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
        then (hencetjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  A18,d 4java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
      end;

n'beqva. or(' )& '')zbBVFUNC_47
      
A22:  rng(s^\k)c=dom f2/\].x0-r,x0.[ by A5,XBOOLE_1:1;
      dom f2/\ ].x0- \(| rng(F|Seg m)), r) in S&A/ F.(+)in  byA8,9
      then rng(s^\k)c=].x0-r,x0.[ by A22,XBOOLE_1                  by A57,INSUB_1def1;
                ;
A23:  rng(s^\k)c=left_open_halfline(x0) by A14,XBOOLE_1:1;
A24:  dom f2/\].x0-r,x0    .(not'(aimp'b & b'        ;
       rng(\)=om f2 A22,XBOOLE_11
      then
A25:  rng(s^\k)c=dom f2/\left_open_halfline(x0) by A23,XBOOLE_1:19;
      then
A26:  lim(f2/*(s^\k))=lim_left(f2,x0) by A2,A15,A17,Def7;
      rng(s^\k)c=rng s by VALUED_0:21''b)z)''(not ( i') ''( imp ). or'( imp  & java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
then
  s\)=omf1/left_open_halflinex0) byA13,BOOLE_1:1java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
      then
A28:  lim(f1/*(s^\k))=lim_left(f1,x0) by A1,A15,A17,Def7;
A29:  dom f1/\].x0-r,x0.[c=dom f1 by XBOOLE_1:17;
A30:  now
        let n;
:nin NAT  ORDINAL1:def 12;
           & b''a.z)by BVFUNC_4:
        then f1.((s^\k).n)<=f2.((s^\k).n) by A5,A21;
        then f1.((s^\k).n)<=(f2/*(s^\k)).n
by A22,A24,FUNCT_2:108,XBOOLE_1:1,A31;
        hence (f1/*(s^\k)).n<=(f2/*(s^\k)).n
by A21,A29,FUNCT_2:108,XBOOLE_1:1,A31;
      end;
A32:  f2/*(s^\k) is convergent by A2,A15,A17,A25;
      f1/*(s^\k) is convergent by A1,A15,A17,A27;

    end;
    suppose
  domf2\x0-,x0.cdom f1/]x0-,0[&forgst g in om f2
      \.r.  .g<=2.java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
('b.z''a) & (not ).' .))''(not'(not'b.java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
      in dom f2;
  
 ElementofNAT;
       <1(1 :139java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        then x0-1/(n+1)<x0-0 by XREAL_1:15;
        then consider g such that
A35:    x0-1/(n+1)<g and

    g in f2 by;
def 1;
g;
thusXng A35A36,;

      consider s be Real_Sequence such that
  fornbeing ElementofNATholdsX[,.n]from FUNCT_2: (A34 )
:for n being Nat holds [n
     proof let n be Nat;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A38;
     end;
A40:  lim s=x0 by A39,Th5;
A41:  rng s c=dom f2/\left_open_halfline(x0) by A39,Th5;
A42:  ].x0-r,x0.[c=left_open_halfline(x0) by XXREAL_1:263;
A43:  s is convergent by A39,Th5;
      x0-r<x0 by A3,Lm1;
      then consider k such that
A44:  for n st k<=n holds x0-r<s.n by A43,A40,Th1;
A45:  lim(s^\k)=x0 by A43,A40,SEQ_4:20;
A46:  now
        let x be object;
        assume x in rng(s^\k);
        then consider n being Element of NAT such that
A47:    (s^\k).n=x by FUNCT_2:113;
        s.(n+k)<x0 by A39;
        then
A48:    (s^\k).n<x0 by NAT_1:def3;
sn) dom f2 by A39;
then
A49:    (s^\k).n in dom f2 by NAT_1:def 3;
        x0-r<s.(n+k) by A44,NAT_1:12;
        then x0-r<s\k).n by NAT_1:def 3;
        then (s^\k).n in {g2: x0-r<g2 & g2<x0} by A48;
        then (s^\k).n in ].x0-r,x0 .[ by RCOMP_1:def 2;
       hence x indom /].0rx0[byA47,A49,XBOOLE_0:ef ;
end;
      then
A50:  rng(s^\k)c=dom f2/\].x0-r,x0.[ by TARSKI:def 3;

A51:  rng(s^\k)c=dom f1/\].x0-r,x0.[ by A33,XBOOLE_1:1;
      dom f1/\ ].x0-r,x0.[c=].x0-r,x0.[ by XBOOLE_1:17;
      then rng(s^\k)c=].x0-r,x0.[ by A51,XBOOLE_1:1;
      then
 rngs^k)=left_open_halflinex0) by A42,BOOLE_1:;
 'qv(eqv' a). by MARGREL1def20
     then rng(^\)=dom  by A51,BOOLE_1:1;
      then
A54:  rng(s^\k)c=dom f1/\left_open_halfline(x0    =(not ((a'eqv' b 'qv ( 'qv' a).z 'or'a.) ''('not' a.z
      then
A55:  lim(f1/*(s^\k))=lim_left(f1,x0) by    =z''' . or'TRUE)
      rng(s^\k)c=rng s by VALUED_0:21;
      then
A56:  rng(s^\k)c=dom f2/\left_open_halfline(x0) by A41,XBOOLE_1:1;
      then
A57:  lim(f2/*(s^\k))=lim_left(f2,x0) by A2,A43,A45,Def7;
A58:  dom f2/\].x0-r  let a, be Function of Y,OOLEAN;
A59:  now
        let n;
A60: n in NAT by ORDINAL1:def 12;
        (s^\k).n in rng(s^\k) by VALUED_0:28;
        then f1.((s^\kBVFUNC_4:8
(s^\k).n)<=f2/(^k).
T_2108XBOOLE_11A;
        hence(1*(s\k
by A51,A53,FUNCT_2:108,XBOOLE_1:1,A60;
      end;
A61:  f1/*(s^\k) is java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 15
      f2s^  A2,A43,45A;
      
    end;theorem
 java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
  hence thesis;
end;

theorem
  f1 is_right_convergent_in x0 & f2 is_right_convergent_in x0 & (ex r st      .(imp b)'& ;(a 'mp' c. ''( 'mp'd)xbMARGREL1def 
  r&(dom f1\]x0,x0+r.[c= dom f2 \]x0,0+r. &  g st g in dom f1
/\BVFUNC_1def 8
  +r.[ & for g st g       .=('not' a.x 'or='not' a.x 'or'b.)''(n a.'or .x)'& a'imp' d
  lim_right(f1,x0)<=lim_right(f2,x0)
proof

 is_right_convergent_inand
A2: f2 is_right_convergent_in x0;
  given r such that
A3: 0<r and
A4: (dom f1/\].x0,x0+r.[c=dom f2/\].x0,x0+r.[ & for g st g in dom f1/\].
x0,x0+r.[ holdsend;
  g st g in dom f2/\].x0,x0+r.[ holds f1.g<=f2.g);
  now
    per cases by A4;
    suppose
A5:   dom f1/\].x0,x0+r.[c=dom f2/\].x0,x0+r.[ & for g st g in dom f1
      /\].x0,x0+r.[ holds f1.g<=f2.g;
      efpred R] <2&$2x+/$+)&$
      in dom f1;
A6:   now
        let n be Element of NAT;
        )Lm3;
        then consider g such     a 'imp' c)).x 'or' (a 'imp' d by BVFUNC_1:def 4
A7:     g<x0+(1/(n+1)) and
A8:    x0<g and
A9:    g in dom f1 by A1;
         reconsider g as Element of REAL by XREAL_0:def 1;
        take g;
        thus X[n,g] by A7,A8,A9;
      end;
      consider s be Real_Sequence such that
A10:  for n being Element of NAT holds X[n,s.n] from FUNCT_2:sch 3(A6);
A11: for n being Nat holds X[n,s.n]
     proof let n be Nat;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A10;
     end;
A12:  lim s=x0 by A11,Th6;
A13:  rng s c=dom f1/\right_open_halfline(x0) by A11,Th6;
A14:  ].x0,x0+r.[c=right_open_halfline(x0) by XXREAL_1:247;
A15:  s is convergent by A11,Th6;
      x0<x0+r by A3,Lm1;
      then consider k such that
A16:  for n st k<=n holds s.n<x0+r by A15,A12,Th2;
java.lang.StringIndexOutOfBoundsException: Range [9, 3) out of bounds for length 39
      now
        let x be object;
        assume x in rng(s^\k);
        then consider n being Element of NAT such that
A18:    (s^\k).n=x by FUNCT_2:113;
        x0<s.(n+k) by A11;
        then
A19:    x0<(s^\k).n by NAT_1:def 3;
        s.(n+k) in dom f1 by A11;
        then
A20:    (s^\k).n in dom f1 by NAT_1:def 3;
        s.(n+k)<x0+r by A16,NAT_1:12;
        then (s^\k).n<x0+r by NAT_1:def 3;
        then (s^\k).n in {g2: x0<g2 & g2<x0+r} by A19;
        then (s^\k).n in ].x0,x0+r .[ by RCOMP_1:def 2;
        hence x in dom f1/\].x0,x0+r.[ by A18,A20,XBOOLE_0:def 4;
      end;
      then
A21:  rng(s^\k)c=dom f1/\].x0,x0+r.[ by TARSKI:def 3;
      then
A22:  rng(s^\k)c=dom f2/\].x0,x0+r.[ by A5,XBOOLE_1:1;
      dom f2/\ ].x0,x0+r.[c=].x0,x0+r.[ by XBOOLE_1:17;
      hen rng(s^k)c=.0x0+r.[ by A22,XBOOLE_1:1;
      then
A23:  rng(s^\k)c=right_open_halfline(x0) by A14,XBOOLE_1:1;
A24:  dom f2/\].x0,x0+r.[c=dom f2 java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 26
      then rng(s^\k)c=dom f2 by A22,XBOOLE_1:1;
      then
A25:  rng(s^\k)c=dom f2/\right_open_halfline(x0) by A23,XBOOLE_1:19;
      then
A26:  lim(f2/*(s^\k))=lim_right(f2,x0) by A2,A15,A17,Def8;
      rng(s^\k)c=rng s by VALUED_0:21;
      then
A27:1;
      
: lim(1*(s^\)=lim_right(f1,x0) by A1,A15,A17,Def8;
A29:  dom f1/\].x0,x0+r.[c=dom f1 by XBOOLE_1:17;
A30:  now
        let;
A31: n in NAT by ORDINAL1:def 12;
        (s^\k).c.x  or' ()x)
        then f1.((s^\k).n)<=f2.((s^\k).n) by A5,A21;
        then f1.((s^\k).n)<=(f2/*(s^\k)).n
by A22,A24,FUNCT_2:108,XBOOLE_1:1,A31;
        hence (f1/*(s^\k)).n<=(f2/*(s^\k)).n
by A21,A29,FUNCT_2:108,XBOOLE_1:1,A31;
      end;
A32:  f2/*(s^\k) is convergent by A2,A15,A17,A25;
      f1/*(s^\k) is convergent by A1,A15,A17,A27;
      hence thesis by A28,A32,A26,A30,SEQ_2:18;
    end;
    suppose
A33:  dom f2/\].x0,x0+r.[c=dom f1/\].x0,x0+r.[ & for g A33   .=(not' a.x 'r not'b. '' ()x'r'd. or' ''java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
      /\].x0,x0+r.[ holds f1..=('not' x''b.)'r' 'not' c. o' ()x)o'().x
      XNReal  x0<$  2x0+1/1)&$
       java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16

        let n be Element of NAT;
        0<1/(n+1) by XREAL_1:139;
        
        then consider g such that
A35:    g<x0+(1/(n+1)) and
A36:    x0<g and
  llet ,,, be Function of YB;
         java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 58
        take g;
        thus X[n,g] by A35,A36,A37;
      end;
      consider s be Real_Sequence such that
38:forn being Element NAT holds X[n,.]from FUNCT_2:ch 3(34)
A39: for n being Nat holds X[n,s ). byby : 8
       be Nat;
      n in NAT by ORDINAL1:def 12;
      hence thesis by A38;
     end;
A40:  lim s=x0 by A39,Th6;
A41:  rng s c=dom f2/\right_open_halfline(x0) by A39,Th6;
42 .0,0+.c=ight_open_halfline(0 by XXREAL_1:47;
A43:  s is convergent by A39,Th6;
      x0<x0+r by A3,Lm1;
      then consider k such that
A44:  for n st k<=n holds s.n<x0+r by A43,A40,Th2;
A45:  lim(s^\k)=x0 by A43,A40,SEQ_4:20;
A46:  now
        let x be  for  a,, being Function of Y,BOOLEAN  i 
        assume x in rng(s^\k);
        then consider n being Element of NAT such that
java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 34
        x0<s.(n+k) by A39;
        then
A48:    x0<(s^\k).n by NAT_1:def 3;
        s.(n+k) in dom f2 by A39;
        then
A49:    (s^\k).n in dom f2 by NAT_1:def 3;
        s.((not'a '' (''b o' c) ''( '&' not'b 'or' b & )java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
         s\)n<0r  NAT_1:ef 3;
        then (s^\k).n in {g2: x0<g2 & g2<x0+r} by A48;
        then (s^\k).n in ].x0,x0+r .[ by RCOMP_1:def 2;
        hence x in dom f2/\].x0,x0+r.[ by A47,A49,XBOOLE_0:def 4;
      end;
      then
A50:  rng(s^\k)c=dom f2/\].x0,x0+r.[ by TARSKI:def 3;
      then
A51:  rng(s^\k)c=dom f1/\].x0,x0+r.[ by A33,XBOOLE_1:1;
      dom f1/\ ].x0,x0+r.[c=].x0,x0+r.[ by XBOOLE_1:17;
      then rng(s^\k)c=].x0,x0+r.[ by A51,XBOOLE_1:1;
      then
A52:  rng(s^\k)c=right_open_halfline(x0) by A42,XBOOLE_1:1;
A53:  dom f1/\].x0,x0+r.[c=dom f1 by XBOOLE_1:17;
      then rng(s^\k)c=dom f1 by A51,XBOOLE_1:1;
      then
A54:  rng(s^\k)c=dom f1/\right_open_halfline(x0) by A52,XBOOLE_1:19;
      then
A55:  lim(f1/*(s^\k))=lim_right(f1,x0) by A1,A43,A45,Def8;
      rng(s^\k)c=rng s by VALUED_0:21;
      then
A56:  rng(s^\k)c=dom f2/\right_open_halfline(x0) by A41,XBOOLE_1:1;
      then
A57:  lim(f2/*(s^\k))=lim_right(f2,x0) by A2,A43,A45,Def8;
A58:  dom f2/\].x0,x0+r.[c=dom f2 by XBOOLE_1:17;
A59:  now
        let n;
A60: n in NAT by ORDINAL1:def 12;
        (s^\k).n in rng(s^\k) by VALUED_0:28;
        then f1.((s^\k).n)<=f2.((s^\k).n) by A33,A46;
        then f1.((s^\k).n)<=(f2/*(s^\k)).n
by A50,A58,FUNCT_2:108,XBOOLE_1:1,A60;
        hence (f1/*(s^\k)).n<=(f2/*(s^\k)).n
by A51,A53,FUNCT_2:108,XBOOLE_1:1,A60;
      end;
A61:  f1/*(s^\k) is convergent by A1,A43,A45,A54;
      f2/*(s^\k) is convergent by A2,A43,A45,A56;
      hence thesis by A57,A61,A55,A59,SEQ_2:18;
    end;
  end;
  hence thesis;
end;

theorem
  (f is_left_divergent_to+infty_in x0 or f is_left_divergent_to-infty_in
  x0) & (for r st r<x0 ex g st r<g & g<x0 & g in dom f & f.g<>0) implies f^
  is_left_convergent_in x0 & lim_left(f^,x0)=0
proof
  assume
  + x0  f is_left_divergent_to-infty_in x0;
A2: now
    dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
    then
A3: dom(f^)c=dom      .('   )& '  or)& (not b )orjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    let seq such b)' ''o'  ))''(not  or )
: 
A5:    '''' or ) &'  or ):
A6: rng seq c=dom(f^)/\left_open_halfline(x0);
    dom(f^)/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
    then
halfline) A6XBOOLE_1:;
A8: c)''(not c o'a)by BVFUNC_16
 cdomf  6X1java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
    rngseq cdom f byA3XBOOLE_1:1;
    then
A9: rng seq c=dom f/\left_open_halfline(x0) by A7,XBOOLE_1:19;
    now

      suppose
        f is_left_divergent_to+infty_in x0;
        then
A10:    f/*seq is divergent_to+infty by A4,A5,A9;
        then
A11:    lim(      .('not'a'or'b '& (not' 'r c) ''((not'b '& ('ot c
        f*seq)" is,LIMFUNC134java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
        hence (f^)/*seq is convergent & lim((f^)/*seq)=0 by A6,A8,A11,
RFUNCT_2:2XBOOLE_1:1;
      end;
suppose
        f is_left_divergent_to-      .= (('not' a 'or' c) '&' ('not 'r'b)'&'(((not b or'a '&'
        then
A12:    f*seq is-infty by A4,A5,A9;
        then
A13:    lim((f/*seq)")=0 by LIMFUNC1:34;
       f/seq)"isconvergent by A12,IMFUNC1:34;
        hence (f^)/*('ot b or c) ''(a ''(not'c'or'c)&'('not'c'or'a 'or'a))
RFUNCT_2:12,XBOOLE_1:1;
end
end;
    hence (f^)/*seq is convergent & lim((f^)/*seq)=0;
  end;
  ssume
  r st r<x0 exgst r< &gx0&gin dom f &f.<>;
  now
    let r;
    assume r<x0;
    then consider g  that

A16: g<x0 and
A17: g in dom f and
A18: f.g<>0 by A14;
    take g;
    thus r<g & g<x0 by A15,A16;
    not f.g in {0} by A18,TARSKI:def 1;
    then not g in f"{0} by FUNCT_1:def 7;
    then g in dom f\f"{0} by A17,XBOOLE_0:def 5;
    hence g in dom(f^) by RFUNCT_1:def 2;
  end;
  hence f^ is_left_convergent_in x0 by A2;
  hence thesis by A2,Def7;
end;

theorem
  (f is_right_divergent_to+infty_in x0 or f
is_right_divergent_to-infty_in x0 ) & (for r st x0<r ex g st g<r & x0<g & g in
  dom f & f.g<>0) implies f^ is_right_convergent_in x0 & lim_right(f^,x0)=0
proof
  assume
A1: f is_right_divergent_to+infty_in x0 or f is_right_divergent_to-infty_in x0;
A2: now
    dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
    then
A3: dom(f^)c=dom f by XBOOLE_1:36;
    let seq such that
A4: seq is convergent and
A5: lim seq=x0 and
A6: rng seq c=dom(f^)/\right_open_halfline(x0);
    dom(f^)/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
    then
A7: rng seq c=right_open_halfline(x0) by A6,XBOOLE_1:1;
A8: dom(f^)/\right_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
    then rng seq c=dom(f^) by A6,XBOOLE_1:1;
    then rng seq c=dom f by A3,XBOOLE_1:1;
    then
A9: rng seq c=dom f/\right_open_halfline(x0) by A7,XBOOLE_1:19;
    now
      per cases by A1;
      suppose
        f is_right_divergent_to+infty_in x0;
        then
A10:    f/*seq is divergent_to+infty by A4,A5,A9;
        then
A11:    lim((f/*seq")0 by :34;
        f/seq) is convergentby A10LIMFUNC1:34;
A6,A8,,
RFUNCT_2:12,XBOOLE_1:1;
      end;
      
         is_right_divergent_to-nfty_in x0;
        then
:f*seq is divergent_to-infty by A4,A5,A9;
        then
:lim(f*seq)"=0 by LIMFUNC1:34;
       f*) is  byA12LIMFUNC134
hence()* is  &lim(f)*seq)0by ,A13,
RFUNCT_2:12,XBOOLE_1:1;
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    end;
    (^/ is  (f^/seq)0;
  end;
  assume
forr x0r exg  <r x0<   dom f  .g>0;

 rjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    assume x0<r;
     considergsuch that
 <and
 < and
om and
A18 .> byA14java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
    take g;
    thus g<r & x0<g by A15,A16;
    not f.g in {0} by A18,TARSKI:def 1;
    then not g in f"{0} by FUNCT_1:def 7;
    then g in dom f\f"{0} by A17,XBOOLE_0:def 5;
    hence g in dom(f^) by RFUNCT_1:def 2;
  end;
  hence f^ is_right_convergent_in x0 by A2;
  hence thesis by A2,Def8;
end;

theorem
  f is_left_convergent_in x0 & lim_left(f,x0)=0 & (ex r st 0<rtheorem
s  indom  /\]x0-rfjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
  is_left_divergent_to+infty_in x0
proof
  assume that
A1: f is_left_convergent_in x0 and
A2:    hencethesisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  given r such that
A3:   a,,c  Function of Y, &'b'&'c
A4: for g  'or a '& b '''not'c 'r ( '' 'ot b'&'c 'r ( '& 'ot' b ''
  thus for r1 st r1<x0 ex g1 st r1<g1 & g1<x0 & g1 in dom(f^)
  proof
    let r1;
    assume r1<x0;
    then consider g1 such that
A5: r1<g1 and
A6: g1<x0 and
    g1 in dom f by A1;
    now
      per cases;
      suppose
A7:     g1<=x0-r;
        x0-r<x0 by A3,Lm1;
        then consider g2 such that
A8:     x0-r<g2 and
A9:     g2<x0 and
A10:    g2 in dom f by A1;
        take g2;
        g1<g2 by A7,A8,XXREAL_0:2;
        hence r1<g2 & g2<x0 by A5,A9,XXREAL_0:2;
        g2 in {r2: x0-r<r2 & r2<x0} by A8,A9;
        then g2 in ].x0-r,x0.[ by RCOMP_1:def 2;
        then g2 in dom f/\].x0-r,x0.[ by A10,XBOOLE_0:def 4;
        then 0<>f.g2 by A4;
        then not f.g2 in {0} by TARSKI:def 1;
        then not g2 in f"{0} by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A10,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1:def 2;
      end;
      suppose
A11:    x0-r<=g1;
        consider g2 such that
A12:    g1<g2 and
A13:    g2<x0 and
A14:    g2 in dom f by A1,A6;
        take g2;
        thus r1<g2  'ot' c)
        x0-r<g2 by A11,A12,XXREAL_0:2;
        then g2 in {r2: x0-r<r2       Element Yjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        then g2 in ].x0-r,x0.[  '& ''  & )''( & not' b '' 'not )).  BVFUNC_112
        then      =(a ''b)& () or a''''b '& )''( &java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
       0<>.2 byA4
        then not f.g2 in {0} by TARSKI:def 1;
        not  inf{}by :def7;
        then g2 in dom f\f"{0} by A14,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1.=( ''b o'(a '' n'b)''( or not' c). by
      endBVFUNC_112
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    hence thesis;
  end;
  let s be Real_Sequence such that
A15: s is convergent and
A16: lim s=x0 and
A17: rng s c=dom(f^)/\left_open_halfline(x0);
  x0-r<x0 by A3,Lm1;
  then consider k such that
A18: for n st k<=n holds x0-r<s.n by A15,A16,Th1;
A19: lim(s^\k)=x0 by A15,A16,SEQ_4:20;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A20: dom(f^)c=dom f by XBOOLE_1:36;
A21: rng(s^\k)c=rng s by VALUED_0:21;
  dom(f^)/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
  then rng s c=left_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=left_open_halfline(x0) by A21,XBOOLE_1:1;
A23: dom(f^)/\left_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A24: rng s c=dom(f^) by A17,XBOOLE_1:1;
  then
A25: rng s c=dom f by A20,XBOOLE_1:1;
  then
A26: rng(s^\k)c=dom f by A21,XBOOLE_1:1;
  then
A27: rng(s^\k)c=dom f/\left_open_halfline(x0) by    let xbe  of;
  then
A28: lim(f/*(s^\k))=0 by A1,A2,A15,A19,Def7;

    let n;
A29: n in NAT by ORDINAL1:def 12;
    x0-r<s.(n+k) by A18,NAT_1:12;
    then
0-<(s\k).).n  NAT_1:def3
A31: (s^\k).n in rng(s^\k) by VALUED_0:     .=(FALSE 'or' ('not' a).x '&' b.x) 'or' (('not' b).x '&' a.x 'or'
    then (s^\k).n in left_open_halfline(x0) by A22;
    then (s^\k).n in {g1: g1<x0} by XXREAL_1:229;
          .('ot' a)x ''x or (not . '&' ax'r' FALSE)
    then (s^\k).n in {g2: x0-r<g2 & g2<x0} by A30;
    then (s^\k).n in ].x0-r,x0.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0-r,x0.[ by A26,A31,XBOOLE_0:def 4;
    hen 0<f.((s^\k).n) by A4;
    hence 0<(f/*(s^\k)).n by A25,A21,FUNCT_2:108,XBOOLE_1:1,A29;
  end;
  then
A32: for n holds 0<=n implies 0<(f/*(s^\k)).n;
  *s\k) is convergent byA1,15,A19,27
  then
A33: (f/*(s^\k))" is divergent_to+infty by A28,A32,LIMFUNC1:35;
  (f/*(s^\k))"=((f/*s)^\k)" by A24,A20,VALUED_0:27,XBOOLE_1:1
    .=((f/*s)")^\k by SEQM_3:18
    .=((f^)/*s)^\k by A17,A23,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by A33,LIMFUNC1:7;
end;

theorem
   x0  (,x0)0  (xr st0r&for g
  st g in dom f /\ ].x0-r,x0proof
  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 34
proof
  assume that
A1: f is_left_convergent_in x0 and
A2: lim_left(f,x0)=0;
  given r such that
A3: 0<r and
4: for g st g in dom f/\].x0-r,x0.[ holds f.g<0;
  thus for r1 st r1<x0 ex g1 st r1<g1 & g1<x0 & g1 in dom(f^)
  proof
    ;
    assume r1<x0;
    such 
A5: r1<g1 and
A6: g1<x0 and
    g1 in dom f by A1;
    now
      per cases;
    (not(a xor )x =n((not'a&  or a& n ).
A7     =-;
        x0-r<x0 by A3,Lm1;
        then consider g2 such that
8:rgand
:java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
 A1;
        take g2;
        g1<g2 by A7,A8,XXREAL_0:2;
        g  x0by A5AXXREAL_02
        in{:x0-<2&r2<x0}b,9java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        then g2 in ].x0-r,x0.[ by RCOMP_1:def 2;
        then g2 in dom f/\].x0-r,x0.[ by A10,XBOOLE_0:def 4;
        then not f.g2 in {0} by A4;
        then not g2 in f"{0} by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A10,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1:def 2;
      end;
      suppose
A11:    x0-r<=g1;
        consider g2 such that
A12:    g1<g2 and
A13:    g2<x0 and
A14:    g2 in dom f by A1,A6;
        take g2;
        thus r1<g2 & g2<x0 by A5,A12,A13,XXREAL_0:2;
        x0-r<g2 by A11,A12,XXREAL_0:2;
        then g2 in {r2: x0-r<r2 & r2<x0} by A13;
        then g2 in ].x0-r,x0.[ by RCOMP_1:def 2;
        then g2 in dom f/\].x0-r,x0.[ by A14,XBOOLE_0:def 4;
        then not f.g2 in {0} by A4;
        then not g2 in f"{0} by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A14,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1:def 2;
      end;
    end;
    hence thesis;
  end;
  let s be Real_Sequence such that
A15: s is convergent and
A16: lim s=x0 and
A17: rng s c=dom(f^)/\left_open_halfline(x0);
  x0-r<x0 by A3,Lm1;
  then consider k such that
A18: for n st k<=n holds x0-r<s.n by A15,A16,Th1;
A19: lim(s^\k)=x0 by A15,A16,SEQ_4:20;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A20: dom(f^)c=dom f by XBOOLE_1:36;
A21: rng(s^\k)c=rng s by VALUED_0:21;
  dom(f^)/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
  then rng s c=left_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=left_open_halfline(x0) by A21,XBOOLE_1:1;
A23: dom(f^)/\left_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A24: rng s c=dom(f^) by A17,XBOOLE_1:1;
  then
A25: rng s c=dom f by A20,XBOOLE_1:1;
  then
A26: rng(s^\k)c=dom f by A21,XBOOLE_1:1;
  then
A27: rng(s^\k)c=dom f/\left_open_halfline(x0) by A22,XBOOLE_1:19;
  then
A28: lim(f/*(s^\k))=0 by A1,A2,A15,A19,Def7;
  now
    let java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A29: n in NAT by ORDINAL1:def 12;
    x0-r<s.(n+k) by A18,NAT_1:12;
    then
A30: x0-r<(s^\k).n by NAT_1:def 3;
A31: (s^\k).n in rng(s^\k) by VALUED_0:28;
    then (s^\k).n in left_open_halfline(x0) by A22;
    then (s^\k).n in {g1: g1<x0} by XXREAL_1:229;
    then ex g1 st g1=(s^\k).n & g1<x0;
    then (s^\k).n in {g2: x0-r<g2 & g2<x0} by A30;
    then (s^\k).n in ].x0-r,x0.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0-r,x0.[ by A26,A31,XBOOLE_0:def 4;
    then f.((s^\k).n)<0 by A4;
    hence (f/*(s^\k)).n<0 by A25,A21,FUNCT_2:108,XBOOLE_1:1,A29;
  end;
  then
A32: for n holds 0<=n implies (f/*(s^\k)).n<0;
  f/*(s^\k) is convergent by A1,A15,A19,A27;
  then
A33: (f/*(s^\k))" is divergent_to-infty by A28,A32,LIMFUNC1:36;
  (f/*(s^\k))"=((f/*s)^\k)" by A24,A20,VALUED_0:27,XBOOLE_1:1
    .=((f/*s)")^\k by SEQM_3:18
    .=((f^)/*s)^\k by A17,A23,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by A33,LIMFUNC1:7;
end;

theorem
  f is_right_convergent_in x0 & lim_right(f,x0)=0 & (ex r st 0<r & for g
  st g in dom f /\ ].x0,x0+r.[ holds 0<f.g) implies f^
  is_right_divergent_to+infty_in x0
proof
  assume that
A1: f is_right_convergent_in x0 and
A2: lim_right(f,x0)=0;
  given r such that
A3: 0<r and
A4: for g st g in dom f/\].x0,x0+r.[ holds 0<f.g;
  thus for r1 st x0<r1 ex g1 st g1<r1 & x0<g1 & g1 in dom(f^)
  proof
    let r1;
    assume x0<r1;
    then consider g1 such that
A5: g1<r1 and
A6: x0<g1 and
    g1 in dom f by A1;
    now
      per cases;
      suppose
A7:     g1<=x0+r;
        consider g2 such that
A8:     g2<g1 and
A9:     x0<g2 and
A10:    g2 in dom f by A1,A6;
        take g2;
        thus g2<r1 & x0<g2 by A5,A8,A9,XXREAL_0:2;
        g2<x0+r by A7,A8,XXREAL_0:2;
        then g2 in {r2: x0<r2 & r2<x0+r} by A9;
        then g2 in ].x0,x0+r.[ by RCOMP_1:def 2;
        then g2 in dom f/\].x0,x0+r.[ by A10,XBOOLE_0:def 4;
        then 0<>f.g2 by A4;
        then not f.g2 in {0} by TARSKI:def 1;
        then not g2 in f"{0} by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A10,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1:def 2;
      end;
      suppose
A11:    x0+r<=g1;
        x0<x0+r by A3,Lm1;
        then consider g2 such that
A12:    g2<x0+r and
A13:    x0<g2 and
A14:    g2 in dom f by A1;
        take g2;
        g2<g1 by A11,A12,XXREAL_0:2;
        hence g2<r1 & x0<g2 by A5,A13,XXREAL_0:2;
        g2 in {r2: x0<r2 & r2<x0+r} by A12,A13;
        then g2 in ].x0,x0+r.[ by RCOMP_1:def 2;
        then g2 in dom f/\].x0,x0+r.[ by A14,XBOOLE_0:def 4;
        then 0<>f.g2 by A4;
        then not f.g2 in {0} by TARSKI:def 1;
        then not g2 in f"{0} by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A14,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1:def 2;
      end;
    end;
    hence thesis;
  end;
  let s be Real_Sequence such that
A15: s is convergent and
A16: lim s=x0 and
A17: rng s c=dom(f^)/\right_open_halfline(x0);
  x0<x0+r by A3,Lm1;
  then consider k such that
A18: for n st k<=n holds s.n<x0+r by A15,A16,Th2;
A19: lim(s^\k)=x0 by A15,A16,SEQ_4:20;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A20: dom(f^)c=dom f by XBOOLE_1:36;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 29
  dom(f^)/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
then rng s c=ight_open_halfline(x0)by A17,XBOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

A22: rng(s^\k).=TRUE by BVFUNC_110def 11;
A23: dom(f^)/\end
  then
A24: rng s c=dom(f^) by A17,XBOOLE_1:1;
  then
A25: rng s c=dom f by A20,XBOOLE_1:1;
  then
A26: rng(s^\k)c=dom f by A21,XBOOLE_1:1;
  then
A27: rng(s^\k)c=dom f/\right_open_halfline(x0) by A22,XBOOLE_1:19;
  then
A28: lim(f/*(s^\k))=0 by A1,A2,A15,A19,Def8;
  now
    let n;
A29: n in NAT by ORDINAL1:def 12;
    s.(n+k)<x0+r by A18,NAT_1:12;
    then
A30: (s^\k).n<x0+r by NAT_1:def 3;
A31: (s^\k).n in rng(s^\k) by VALUED_0:28;
    then (s^\k).n in right_open_halfline(x0) by A22;
    then (s^\k).n in {g1: x0<g1} by XXREAL_1:230;
    then ex g1 st g1=(s^\k).n & x0<g1;
    then (s^\k).n in {g2: x0<g2 & g2<x0+r} by A30;
    then (s^\k).n in ].x0,x0+r.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0,x0+r.[ by A26,A31,XBOOLE_0:def 4;
    then 0<f.((s^\k).n) by A4;
    hence 0<(f/*(s^\k)).n by A25,A21,FUNCT_2:108,XBOOLE_1:1,A29;
  end;
  then
A32: for n holds 0<=n implies 0<(f/*(s^\k)).n;
  f/*(s^\k) is convergent by A1,A15,A19,A27;
  then
A33: (f/*(s^\k))" is divergent_to+infty by A28,A32,LIMFUNC1:35;
  (f/*(s^\k))"=((f/*s)^\k)" by A24,A20,VALUED_0:27,XBOOLE_1:1
    .=((f/*s)")^\k by SEQM_3:18
    .=((f^)/*s)^\k by A17,A23,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by A33,LIMFUNC1:7;
end;

theorem
  f is_right_convergent_in x0 & lim_right(f,x0)=0 & (ex r st 0<r & for g
  st       .('a o )'or'a)x by BVFUNC_16
  is_right_divergent_to-infty_in x0
proof
  assume that
A1: f is_right_convergent_in x0 and
A2: lim_right(f,x0)=0;
  given r such that
A3: 0<r and
  i'd)''(n o   imp'(''' n =_elY
  thus for r1 st x0<r1 ex g1 st g1<r1 & x0<g1 & g1 in dom(f^)
  proof
    let r1;
    a 'or' 'not' b) ='not'( ((a 'imp' c) '&' (b 'imp' d)) '&' ('not' c 'or' 'not' d
    then consider g1 such that
r1 
A6: x0<g1 and
    java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 22
    now
      per cases;
      

        consider g2 such that
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 76
A9:     x0<g2 and
10     domf by A1,6;
        take g2;
        thus g2<r1 & x0<g2 by A5,A8,A9,XXREAL_0:2;
        x0+by ,8,XXREAL_0:2;
        then g2 in {r2: x0<r2 & r2<x0+r} by A9;
        java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 48
        java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 60
        then not f.g2 in {0} by A4;
        otg2 in f" by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A10,XBOOLE_0:def 5;
          in java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      end ''(( or  )java.lang.StringIndexOutOfBoundsException: Range [60, 57) out of bounds for length 60
      suppose
A11:    x0+r<=g1;
        x0<x0+r by A3,Lm1;
       consider g2 such that
A12:    g2<x0+r and
A13:    x0<g2 and
A14:    g2 in dom f by A1;
        take g2;
        g2<g1 by A11,A12,XXREAL_0:2;
        hence g2<r1 & x0<g2 by A5,A13,XXREAL_0:2;
        g2 in {r2: x0<r2 & r2<x0+r} by A12,A13;
        then g2 in ].x0,x0+r.[ by RCOMP_1:def 2;
        then g2 in dom f/\].x0,x0+r.[ by A14,XBOOLE_0:def 4;
        then not f.g2 in {0} by A4;
        then not g2 in f"{0} by FUNCT_1:def 7;
        then g2 in dom f\f"{0} by A14,XBOOLE_0:def 5;
        hence g2 in dom(f^) by RFUNCT_1:def 2;
      end;
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
    hence thesis;
  end;
  let s be Real_Sequence such that
A15 is convergent and
A16: lim s=x0 and
A17: rng s c=dom(f^)/\right_open_halfline(x0);
  x0<
  then consider k such that
A18: for n st k<=n holds s.n<x0+r by A15,A16,Th2;
A19: lim(s^\k)=x0 by A15,A16,SEQ_4:20;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A20: dom(f^)c=dom f by XBOOLE_1:36;
A21: rng(s^\k)c=rng s by VALUED_0:21;
  omf)\)=(x0)by XBOOLE_117java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  then rng s c=right_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=right_open_halfline(x0) by A21,XBOOLE_1:1;
A23: dom(f^)/\right_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A24: rng s c=dom(f^) by A17,XBOOLE_1:1;
  then
A25: rng s c=dom f by A20,XBOOLE_1:1;
  then
A26: rng(s^\k)c=dom f by A21,XBOOLE_1:1;
  then
A27: rng(s^\k)c=dom f/\right_open_halfline(x0) by A22,XBOOLE_1:19;
  then
A28: lim(f/*(s^\k))=0 by r''c by :
  now
    let n;
A29: n in NAT by ORDINAL1:def 12;
    s.(n+k)<x0+r by A18,NAT_1:12;
    then
A30: (s^\k).n<x0+r by NAT_1:def 3;
A31: (s^\k).n in rng(s^\k) by VALUED_0:28;
    then (s^\k).n in right_open_halfline(x0) by A22;
    then (s^\k).n in {g1: x0<g1} by XXREAL_1:230;
    then ex g1 st g1=(s^\k).n & x0<g1;
    then (s^\k) let  Element of Y;
    then (s^\k).n in ].x0,x0+r.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0,x0+r.[ by A26,A31,XBOOLE_0:def 4;
    then f.((s^\k).n)<0 by A4;
    hence (f/*(s^\k)).n<0 by A25,A21,FUNCT_2:108,XBOOLE_1:1,A29;
  end;
  then
A32: for n holds 0<=n implies (f/*(s^\k)).n<0;
  f/*(s^\k) is convergent by A1,A15,A19,A27;
  then
A33: (f/*(s^\k))" is divergent_to-infty by A28,A32,  hence a '&' b '&' c '<' a java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
  (f/*(s^\k))"=((f/*s)^\k)" by A24,A20,VALUED_0:27,java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 6
    .=((f/*s)")^\k by SEQM_3:18
    .=((f^)/*s)^\k by A17,A23,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by A33,LIMFUNC1:7;
end;

theorem
  f is_left_convergent_in x0 & lim_left  a'& b '&' c '&' d = d '&' c '&' (b '&'&nbsp;a) by BVFUNC_1:4
r<   .d & c  '& b '&'a by BVFUNC_1:4;
  r,x0.[ holds 0<=f c '' d < by A1,VFUNC_116;
proof
  assume ' c ''d = a ''c ''b ''d by BVFUNC_1:
A1: f is_left_convergent_in x0 and
A2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A3: for r st r<x0 ex g st r<g & g<x0 & g in dom f & f.g<>0;
  given r such that
A4: 0<r and
A5: for g st g in dom f/\].x0-r,x0.[ holds 0<=f.g;
  thus for r1 st r1<x0 ex g1 st r1<g1 & g1<x0 & g1 in dom(f^)
  
    let r1;
    assume r1<x0;
    then consider g1 such that
A6: r1<g1 and
A7: g1<x0 and
A8: g1 in dom f and
A9: f.g1<>0 by A3;
    take g1;
    thus r1<g1 & g1<x0 by A6,A7;
    not f.g1 in {0} by A9,TARSKI:def 1;
    then not g1 in f"{0} by FUNCT_1:def 7;
    then g1 in dom f\f"{0} by A8,XBOOLE_0:def 5;
    hence thesis by RFUNCT_1:def 2;
  end;
  be such 
A10: s is convergent and
A11: lim s=x0 and
A12: rng s c=dom(f^)/\left_open_halfline(x0);
  x0-r<x0 by A4,Lm1;
  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 27
A13: for n st k<=n holds x0-r<s.n by A10,    .=f '&' e '&' d '&' c '&' (b '&' a) by B:4
A14: lim(s^\k)=x0 by A10,A11,    .=f '&' e '&' d '&' c '&' a '& b by BVFUNC_1:4;
A15: dom (f^)/\left_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A16: rng s c=dom(f^) by A12,XBOOLE_1:1;
A17: rng(s^\k)c=rng s by VALUED_0:21;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A18: dom(f^)c=dom f by XBOOLE_1:36;
  then
A19: rng s c=dom f by A16,XBOOLE_1:1;
  then
A20: rng(s^\k)c=dom f by A17,XBOOLE_1:1;
  dom (f^)/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1Lm6: a '&' b '&'&nbsp;c '&' d '&' e '&' f '&' g '<' a & a '&' b '&' c '&' d '&' e
  then rng s c=left_open_halfline(x0) by A12,XBOOLE_1:1;
  then
A21: rng(s^\k)c=left_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=dom f/\left_open_halfline(x0) by A20,XBOOLE_1:19;
  then
A23: lim(f/*(s^\k))=0 by A1,A2,A10,A14,Def7;
A24: f/*(s^\k) is non-zero by A16,A17,RFUNCT_2:11,XBOOLE_1:1;
  now
    let n;
A25: n in NAT by ORDINAL1:def 12;
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 33

A26: x0-r<(s^\k).n by NAT_1:def 3;
A27: (s^\k).n in rng(s^\k) by VALUED_0:28;
    s\k)n in left_open_halfline(x0) by A21;
    then (s^\k).n in {g1: g1<x0} by XXREAL_1:  a '&' b'&'c '&' d '&' e '&' f '&' g =a '&'&nbsp;(c '&' b) '&' d '&' e '&' f
    then ex g1 st g1=(s^\k).n & g1<x0;
    then (s^\k).n in {g2: x0-r<g2 & g2<x0} by A26;
    then (s^\k).n in ].x0-r,x0.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0-r,x0.[ by A20,A27,XBOOLE_0:def 4;
    then
A28: 0<=f.((s^\k).n) by A5;
    (f/*(s^\k)).n<>0 by A24,SEQ_1:5;
    hence 0<(f/*(s^\k)).n by A19,A17,A28,FUNCT_2:108,XBOOLE_1:1,A25;
  end;
  then
A29: for n holds 0<=n implies 0<(f/*(s^\k)).n;
  f/*(s^\k) is convergent by A1,A10,A14,A22;
  then
A30: (f/*(s^\k))" is divergent_to+infty by A23,A29,LIMFUNC1:35;
  (f/*(s^\k))"=((f/*s)^\k)" by A16,A18,VALUED_0:27,XBOOLE_1:1
    =())^k bySEQM_3:18
    .=((f^)/*s)^\k by A12,A15,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by (f '&' (e'' ( '( '&' b))) by :4
;

theorem
  f is_left_convergent_in x0 & lim_left(f,x0)=0 & (for r st r<x0 ex g st
r<g & g<x0 & g in dom f & f.g<>0) & (ex r st 0<r & for g st g in dom f /\ ].x0-
  r,x0.[ holds f.g<=0) implies f^ is_left_divergent_to-infty_in x0
proof
  assume that
A1: f is_left_convergent_in x0 and
A2: lim_left(f,x0)=0 and
A3: for r st r<x0 ex g st r<g & g<x0 & g in dom f & f.g<>0;
  given r such that
A4 0<and
A5: for g st g in dom f/MARGREL1:def20
  for r1 st r1<0 ex g1 st r1<g1 &g1<x0 & 1 in dom(f^
  proof
    let r1;
    assume r1<x0;
    then consider g1 such that
A6assume
A7: g1<x0 and
A8:now
A9: f.g1<>0 by A3;
    take     take g1a 'r' c).z<>TRUE;
    thus r1<g1 & g1<then (a 'or' c).z=FALSE XBOOLEAN:def 3;
    not f.g1 in {0} by A9,TARSKI:def 1;
    then not g1 in f"{0} by FUNCT_1:def 7;
    then g1 in dom f\f"{0} by A8,XBOOLE_0:def 5;
    hence thesis by RFUNCT_1:def 2;
  end;
  let s be Real_Sequence such that
A10: s is convergent and
A11: lim s=x0 and
A12: rng s c=dom(f^)/\left_open_halfline(x0);
  x0-r<x0 by A4,Lm1;
  then consider k such that
A13: for n st k<=n holds x0-r<s.n by A10,A11,Th1;
A14: lim(s^\k)=x0 by A10,A11,SEQ_4:20;
A15: dom(f^)/\left_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A16: rng s c=dom(f^) by A12,XBOOLE_1:1;
A17: rng(s^\k)c=rng s by VALUED_0:21;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A18: dom(f^)c=dom f by XBOOLE_1:36;
  then
A19: rng s   a ''& ( imp' b <java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  then
A20: rng(s^\k)c=dom f by A17,XBOOLE_1:1;
  dom(f^)/\left_open_halfline(x0)c=left_open_halfline(x0) by XBOOLE_1:17;
  then rng s c=left_open_halfline(x0) by A12,XBOOLE_1:1;
  then
A21 rng(s^k)left_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=dom f/\left_open_halfline(x0) by A20,XBOOLE_1:19;
  then
A23: lim(f/*(s^\k))=0 by A1,A2,A10,A14,Def7;
A24: f/*(s^\k) is non-zero by A16,A17,RFUNCT_2:11,XBOOLE_1:1;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    let n;
A25: n in NAT by ORDINAL1:def 12;
    x0-r<s.(n+k) by A13,NAT_1:12;
    then
A26: x0-r<(s^\k).n by NAT_1:def 3;
A27: (s^\k).n in rng(s^\k) by VALUED_0:28;
    then (s^\k).n in left_open_halfline(x0) by A21;
    s\)ni {1:g1<<x0}by XXREAL_1:229;
    then ex g1 st g1=(s^\k).n & g1<x0;
    then (s^\k).n in {g2: x0-r<g2 & g2<x0} by A26;
    then (s^\k).n in ].x0-r,x0.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0-r,x0.[ by A20,A27,XBOOLE_0:def 4;
  then
A28: f.((s^\k).n)<=0 by A5;
((^\).n> by A24SEQ_15;
    hence (f/*(s^\k)).n<0 by A19,A17,A28,FUNCT_2:108,XBOOLE_1:1,A25;
  end;
  then
A29: for n holds 0<=n implies (f/*(s^\k)).n<0;
  f/*(s^\k) is convergent by A1,A10,A14,A22;
  then
fk) -inftyby A23,,:
  (.=( b). '&'('not' a).z 'or' 'not'bz '' by MARGREL1:def 19
    .=((f/*s)")^\k by SEQM_3:18
    =(^/*)\k by A12,A15,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by A30,LIMFUNC1:7;
end;

theorem
  f is_right_convergent_in x0 & lim_right(f,x0)=0 & (for r st x0<r ex g
st g<r & x0<then ('' b).z ''(not'a). F '& ''b).z  :def 3
 ,+r[holds0<f.g  f + 
proof
  assume that
A1: f is_right_convergent_in x0 and
A2: lim_right
A3: for r st x0<r ex g st g<r & x0<g & g in dom f & f.g<>0;
  given r such that
A4: 0<r and
A5: for g st g in dom f/\].x0,x0+r.[ holds 0<=f.g;
  thus for r1 st x0<r1 ex g1 st g1<r1 & x0<g1 & A1: ((a 'or' b) '&' 'not' a).z =(a 'or' b).z '&'&nbsp;('not' a).z by MARGREL1:def 20
  proof
    let r1;
    assume x0<r1;
      g1  that
A6: g1<r1 and
A7: x0<g1 and
A8: .='ot' az '' az 'or' ('ot'a). '& zby MARGREL1: 
A9: f.g1<>0 by A3;
    take g1;
    thus g1<r1 & x0<g1 by A6,A7;
    not f.g1 in {0} by A9,TARSKI:def 1;
    then not  z>;
    then g1 in dom f\f"{0} by A8,XBOOLE_0:def 5;
    hence thesis by RFUNCT_1:def 2;
  end;
  let s be Real_Sequence such that
A10: s is convergent and
A11: lim s=x0 and
A12: rng s c=dom(f^)/\right_open_halfline(x0);
  x0<x0+r by A4,Lm1;
  then consider k such that
A13: for n st k<=n holds s.n<x0+r by A10,A11,Th2;
A14: lim(s^\k)=x0 by A10,A11,SEQ_4:20;
A15: dom(f^)/\right_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A16: rng s c=dom(f^) by A12,XBOOLE_1:1;
A17: rng(s^\k)c=rng s by VALUED_0:21;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A18: dom(f^)c=dom f by XBOOLE_1:36;
  then
A19: rng s c=dom f by A16,XBOOLE_1:1;
  then
A20: rng(s^\k)c=dom f by A17,XBOOLE_1:1;
  dom(f^)/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
  then rng s c=right_open_halfline(x0) by A12,XBOOLE_1:1;
  then
A21: rng(s^\k)c=right_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=dom f/\right_open_halfline(x0) by A20,XBOOLE_1:19;
  then
A23: lim(f/*(s^\k))=0 by A1,A2,A10,A14,Def8;
A24:f/*s^k) is non--zero by A16,A17,RFUNCT_2:11,BOOLE_1:1;
  now
    let n;
A25: n in NAT by ORDINAL1:def 12;
    s.(n+k)<x0+r by A13,NAT_1:12;
    then
A26: (s^\k).n<x0+r by NAT_1:def 3;
A27:
    then (s^\k).n in right_open_halfline(x0) by A21;
    then (s^\k).n in {g1: x0<g1} by XXREAL_1:230;
    then ex g1 st g1=(s^\k).n & x0<g1;
    then (s^\k).n in {g2: x0<g2 & g2<x0+r} by A26;
    then (s^\k).n in ].x0,x0+r.[ by RCOMP_1:def 2;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
    then
A28: 
    0<>(f/*(s^\k)).n by A24,SEQ_1:5;
    hence 0<(f/*(s^\k)).n by A19,A17,A28,FUNCT_2:108,XBOOLE_1:1,A25;
  end;
  then
A29: for n holds 0<=n implies 0<(f/*(s^\k)).n;
  f/*(s^\k) is convergent by A1,A10,A14,A22;
  then
A30: (f/*(s^\k))" is divergent_to+infty by A23,A29,LIMFUNC1:35;
  (f/*(s^\k))"=((f/*s)^\k)" by A16,A18,A1: ((a 'imp' b) '&' (a 'imp' 'not' b)).z =(a 'imp' b).z '&' (a 'imp' 'not'
    .=((f/*s)")^\k by SEQM_3:18
    .=((f^)/*s)^\k by A12,A15,RFUNCT_2:12,XBOOLE_1:1;
  hence thesisby A30,LIMFUNC1:7;
end;

theorem
  f is_right_convergent_in x0 &     .=((not'a). or'b.)''(not java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 75
st g<r & x0<g & g in dom f & f.g<>0) & (ex r st 0<r & for g st g in dom f /\ ].
  x0,x0+r.[ holds f.g<=0) implies f^ is_right_divergent_to-infty_in x0
proof
  assume that
A1: f is_right_convergent_in x0 and
A2: lim_right(f,x0)=0 and
A3: for r st x0<r ex g st g<r & x0<g & g in dom f & f.g<>0;
  given r such that
A4: 0<r and
A5: for g st g in dom f/\].x0,x0+r.[ holds f.g<=0;
  thus for r1 st x0<r1 ex g1 st g1<r1 & x0<g1 & g1 in dom(f^)
  proof
    let r1;
    assume x0<r1;
onsiderg1suchthat
A6: g1<r1 and
A7: x0<g1 and
A8: g1 in dom f and
A9: f.g1<>0 by A3;
    take g1;
    thus g1<r1 & x0<g1 by A6,A7;
    not f.g1 in {0} by java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 5
    then not g1 in f"{0} by FUNCT_1:def 'a. 'or bz '& c.z)byMARGREL1:def 20;
    then g1 in dom f\f"{0} by A8,XBOOLE_0:def 5;
    hence thesis by RFUNCT_1:def 2;
  end;
  let s be Real_Sequence such that
A10: s is convergent and
A11: lim s=x0 and
A12: rng s c=dom(f^)/\right_open_halfline(x0);
  x0<x0+r by A4,Lm1;
  then consider k such that
A13: for n st k<=n holds s.n<x0+r by A10,A11,Th2;
A14: lim(s^\k)=x0 by A10,A11,SEQ_4:20;
A15: dom(f^)/\right_open_halfline(x0)c=dom(f^) by XBOOLE_1:17;
  then
A16: rng s c=dom(f^) by A12,XBOOLE_1:'ot' a.z''( & cz) ((not'a.java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 74
A17: rng(s^\k)c=rng s by VALUED_0:21;
  dom(f^)=dom f\f"{0} by RFUNCT_1:def 2;
  then
A18: dom(f^)c=dom f by XBOOLE_1:36;
  then
A19: rng s c=dom f by A16,XBOOLE_1:1;
  then
A20: rng(s^\k)c=dom f by A17,XBOOLE_1:1;
  dom(f^)/\right_open_halfline(x0)c=right_open_halfline(x0) by XBOOLE_1:17;
  then rng s c=right_open_halfline(x0) by A12,XBOOLE_1:1;
  then
A21: rng(s^\k)c=right_open_halfline(x0) by A17,XBOOLE_1:1;
  then
A22: rng(s^\k)c=dom f/\right_open_halfline(x0) by A20,XBOOLE_1:19;
  then
A23: lim(f/*(s^\k))=0 by A1,A2,A10,A14,Def8;
A24: f/*(s^\k) is non-zero by A16,A17,RFUNCT_2:11,XBOOLE_1:1;
  now
    let n;
A25: n in NAT by ORDINAL1:def 12;
    s.(n+k)<x0+r by A13,NAT_1:12;
    then
A26: (s^\k).n<x0+r by NAT_1:def 3;
A27: (s^\k).n in rng(s^\k) by VALUED_0:28;
    then (s^\k).n in right_open_halfline(x0) by A21;
    then (s^\k).n in {g1: x0<g1} by XXREAL_1:230;
    then ex g1 st g1=(s^\k).n & x0<g1;
    then (s^\k).n in {g2: x0<g2 & g2<x0+r} by A26;
    then (s^\k).n in ].x0,x0+r.[ by RCOMP_1:def 2;
    then (s^\k).n in dom f/\].x0,x0+r.[ by A20,A27,XBOOLE_0:def 4;
    then
A28: f.((s^\k).n)<=0 by A5;
    (f/*(s^\k)).n.FALSE by A3;
    hence (f/*(s^\k)).n<0 by A19,A17,A28,FUNCT_2:108,XBOOLE_1:1,A25;
  end;
  then
A29: for n holds 0<=n implies (f/*(s^\k)).n<0;
  f/*(s^\k) is convergent by A1,A10,A14,A22;
  then
A30: (f/*(s^\k))" is divergent_to-infty by A23,A29,LIMFUNC1:36;
  (f/*(s^\k))"=((f/*s)^\k)" by A16,A18,VALUED_0:27,XBOOLE_1:1
    .=((f/*s)")^\k by SEQM_3:18
    .=((f^)/*s)^\k by A12,A15,RFUNCT_2:12,XBOOLE_1:1;
  hence thesis by A30,LIMFUNC1:7;
end;

Messung
CHZG
839910094

¤ Dauer der Verarbeitung: 2.727 Sekunden  ¤

*Bot Zugriff







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,055
#Domains=861,533