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

Quelle  xxreal_2.miz   Sprache: Mizar

 

:: Suprema and Infima of Intervals of Extended Real Numbers
::  by Andrzej Trybulec
::
:: Received June 26, 2008
:: Copyright (c) 2008-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, INT_1, SUBSET_1, XXREAL_0, FINSET_1, ARYTM_3, XBOOLE_0,
      ARYTM_1, NAT_1, FUNCT_1, RELAT_1, TARSKI, ORDINAL1, MEMBERED, ORDINAL2,
      FINSUB_1, SETWISEO, CARD_1, XREAL_0, RAT_1, XXREAL_1, XXREAL_2, MEASURE5,
      REAL_1;
 notations TARSKI, XBOOLE_0, SUBSET_1, RELAT_1, FUNCT_1, ORDINAL1, FINSET_1,
      CARD_1, FINSUB_1, SETWISEO, NUMBERS, MEMBERED, XXREAL_0, XCMPLX_0,
      XREAL_0, INT_1, NAT_1, RAT_1, XXREAL_1;
 constructors XXREAL_0, MEMBERED, XREAL_0, INT_1, FINSET_1, RAT_1, XXREAL_1,
      SETWISEO, XCMPLX_0, REAL_1, NAT_1, XTUPLE_0, CARD_1;
 registrations XXREAL_0, MEMBERED, XXREAL_1, XBOOLE_0, FINSET_1, NUMBERS,
      SETWISEO, FINSUB_1, XREAL_0, INT_1, NAT_1, CARD_1;
 requirements BOOLE, SUBSET, NUMERALS, ARITHM, REAL;
 definitions TARSKI, MEMBERED;
 equalities ORDINAL1;
 theorems XXREAL_0, MEMBERED, TARSKI, XBOOLE_0, XXREAL_1, XBOOLE_1, FINSUB_1,
      XREAL_0, XREAL_1, INT_1, NAT_1, FINSET_1, ZFMISC_1, FUNCT_1, SETFAM_1;
 schemes XXREAL_1, NAT_1, SETWISEO, CLASSES1;

begin

scheme
  FinInter{m, n() -> Integer, F(object)->object, P[object]}:
   {F(i) where i is Element
  of INT: m()<=i & i<=n() & P[i]} is finite;
  set F = {F(i) where i is Element of INT: m()<=i & i<=n() & P[i]};
  per cases;
  suppose
A1: n() < m();
    now
      assume F <> {};
      then consider x being object such that
A2:   x in F by XBOOLE_0:def 1;
      ex i being Element of INT st x = F(i) & m()<=i & i<=n() & P[i] by A2;
      hence contradiction by A1,XXREAL_0:2;
    end;
    then reconsider F as empty set;
    F is finite;
    hence thesis;
  end;
  suppose
    m() <= n();
    then reconsider k = n()-m() as Element of NAT by INT_1:5;
    set F = {F(i) where i is Element of INT: m()<=i & i<=n() & P[i]};
    defpred Q[object,object] means
     ex i being Integer st $1 = i & $2 = F(i+m());
A3: for e being object st e in k+1 ex u being object st Q[e,u]
    proof
      let e be object;
      assume e in k+1;
      then e in Segm(k+1);
      then reconsider i = e as Nat;
      take F(i+m()),i;
      thus thesis;
    end;
    consider f being Function such that
A4: dom f = k+1 and
A5: for i being object st i in k+1 holds Q[i,f.i] from CLASSES1:sch 1(A3);
A6: F c= rng f
    proof
      let x be object;
      assume x in F;
      then consider j being Element of INT such that
A7:   x=F(j) and
A8:   m()<=j and
A9:   j<=n() and
      P[j];
      reconsider l = j-m() as Element of NAT by A8,INT_1:5;
      l <= k by A9,XREAL_1:9;
      then l < k+1 by NAT_1:13;
      then
A10:  l in Segm(k+1) by NAT_1:44;
      then Q[j-m(),f.(j-m())] by A5;
      then f.(j-m()) = F(j+m()-m()) .= F(j);
      hence thesis by A4,A7,A10,FUNCT_1:def 3;
    end;
    rng f is finite by A4,FINSET_1:8;
    hence thesis by A6;
  end;
end;

reserve x,y,z,r,s for ExtReal;

definition
  let X be ext-real-membered set;
  mode UpperBound of X -> ExtReal means
    :Def1:
    x in X implies x <= it;
  existence
  proof
    take +infty;
    thus thesis by XXREAL_0:4;
  end;
  mode LowerBound of X -> ExtReal means
    :Def2:
    x in X implies it <= x;
  existence
  proof
    take -infty;
    thus thesis by XXREAL_0:5;
  end;
end;

definition
  let X be ext-real-membered set;
  func sup X -> ExtReal means
  :Def3:
  it is UpperBound of X & for x being UpperBound of X holds it <= x;
  existence
  proof
    defpred Q[object] means $1 is UpperBound of X;
    defpred P[object] means $1 in X;
A1: for r,s st P[r] & Q[s] holds r <= s by Def1;
    consider s such that
A2: for r st P[r] holds r <= s and
A3: for r st Q[r] holds s <= r from XXREAL_1:sch 1(A1);
    take s;
    thus s is UpperBound of X by A2,Def1;
    thus thesis by A3;
  end;
  uniqueness
  proof
    let y,z such that
A4: y is UpperBound of X and
A5: for x being UpperBound of X holds y <= x and
A6: z is UpperBound of X and
A7: for x being UpperBound of X holds z <= x;
A8: y <= z by A5,A6;
    z <= y by A4,A7;
    hence thesis by A8,XXREAL_0:1;
  end;
  func inf X -> ExtReal means
  :Def4:
  it is LowerBound of X & for x being LowerBound of X holds x <= it;
  existence
  proof
    defpred Q[object] means $1 in X;
    defpred P[object] means $1 is LowerBound of X;
A9: for r,s st P[r] & Q[s] holds r <= s by Def2;
    consider s such that
A10: for r st P[r] holds r <= s and
A11: for r st Q[r] holds s <= r from XXREAL_1:sch 1(A9);
    take s;
    thus s is LowerBound of X by A11,Def2;
    thus thesis by A10;
  end;
  uniqueness
  proof
    let y,z such that
A12: y is LowerBound of X and
A13: for x being LowerBound of X holds x <= y and
A14: z is LowerBound of X and
A15: for x being LowerBound of X holds x <= z;
A16: z <= y by A13,A14;
    y <= z by A12,A15;
    hence thesis by A16,XXREAL_0:1;
  end;
end;

definition
  let X be ext-real-membered set;
  attr X is left_end means
  :Def5:
  inf X in X;
  attr X is right_end means
  :Def6:
  sup X in X;
end;

theorem Th1:
  y is UpperBound of {x} iff x <= y
proof
  x in {x} by TARSKI:def 1;
  hence y is UpperBound of {x} implies x <= y by Def1;
  assume
A1: x <= y;
  let z;
  assume z in {x};
  hence thesis by A1,TARSKI:def 1;
end;

theorem Th2:
  y is LowerBound of {x} iff y <= x
proof
  x in {x} by TARSKI:def 1;
  hence y is LowerBound of {x} implies y <= x by Def2;
  assume
A1: y <= x;
  let z;
  assume z in {x};
  hence thesis by A1,TARSKI:def 1;
end;

Lm1: sup {x} = x
proof
A1: for z being UpperBound of {x} holds x <= z
  proof
    let z be UpperBound of {x};
    x in {x} by TARSKI:def 1;
    hence thesis by Def1;
  end;
  x is UpperBound of {x} by Th1;
  hence thesis by A1,Def3;
end;

Lm2: inf {x} = x
proof
A1:  of {x}holds z <= x
  proof
    let z be LowerBound of {x};
    x in {x} by TARSKI:def 1;
    hence thesis by Def2;
  end;
  x is LowerBound of {x} by Th2;
  hence thesis by A1,Def4;
end;

registration
  cluster -> ext-real-memberedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  proof
  let X  ElementFExtREAL
    XA1: n() < m(;
    hence thesis;
  end;
   now

B forext-realmembered java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

theorem Th3:
xin A implies inf A <= x
proof
inf is  ofAjava.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 35
  hence    F is finite
end;

java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 15
x implies < sup A
proof
   is  of  by;
  hence thesis by Def1;
end

theorem Th5:
  B c= A implies for    proof
proofassumeein +java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
  assume
A1: B c= A;
  let x be LowerBound of A;
  let y;
  assume y in B;
  hence thesis by A1,Def2;
end;

theorem Th6:
  B c= A implies for x being UpperBound of A holds x is UpperBound of B
proof
  assume
A1: B c= A;
  let x be UpperBound of A;
  let y;
  assume y in B;
  hence thesis by A1,Def1;
end;

theorem Th7:
  for x being LowerBound of A      then e Segmk)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  y) is LowerBound of A\/ B
proof
  let x be LowerBound of A, y be LowerBound of B;
  set m = min(x,y);
  let z;
  assume
A1: z in A \/ B;
  per cases by A1,XBOOLE_0:def 3;
  suppose
A2: z in A;
A3: m <= x by XXREAL_0:17;
    x <= z by A2,Def2;
    hence thesis by A3,XXREAL_0:2;
  end;
  suppose
A4: z in B;
A5: m <= y by XXREAL_0:17;
    y <= z by A4,Def2;
    hence thesis by A5,take F(+m()i
  end;
end;

theorem Th8:
  for x being UpperBound java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 11
  yjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
  let x  funcs -  means
  set m = it  x being  of X holds  <=xjava.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
  z;
      defp Po] means$ inX;
A1:z in A /Bjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  per casesA2:   st P[r] holds r <= s and
  suppose
A;
A3: x <= m by XXREAL_0:25;
    thuss is  of   A2,Def1;
     A3XXREAL_0:2;
  end;
  A4  isUpperBoundof Xand
 zin B;
A5:y<  byXXREAL_025java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    z <= y by A4,Def1;
   hencethesis by A5,XREAL_02;
  end     =y A4,A7;
end;

theorem Th9:
(A \ )=mini ,nfB)
proof
  set m:ef4java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A1: inf B is LowerBound of B by Def4;
A2:existence
    Qobject]means 1in Xjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
    let x be LowerBound of A \/  r < sbyDef2;
    A10  rstPr  r<=s 
    then
A3:A11:forr st [r] holds s <= r from XXREAL_1:sch 1(A9);
    x is LowerBound of A by Th5,XBOOLE_1:7;
    then x <= inf A by Def4;
    hence thesis by A3,XXREAL_0:20;
  end;
  inf A is LowerBound of A by Def4;
  then m is LowerBound of A \/ B by A1,Th7;
  hence thesis by A2,Def4;
end;

theorem Th10:
  sup(A \/ B) = max(sup A,sup B)
proof
  set m = max(sup A,sup B);
A1: sup B is UpperBound of B by Def3;
A2: for x being UpperBound of A \/ B holds m <= x
  proof
    let x be UpperBound of A \/ B;
    x is UpperBound of B by Th6,XBOOLE_1:7;
    then
A3: sup B <= x by Def3;
    x is UpperBound of A by Th6,XBOOLE_1:7;
    then sup A <= x by Def3;
    hence thesis by A3,XXREAL_0:28;
  end;
  sup A is UpperBound of A by Def3;
  then m is UpperBound of A \/ B by A1,Th8;
  hence thesis by A2,Def3;
end;

registration
  cluster finite -> left_end right_end for non empty ext-real-membered set;
  coherence
  proof
    let X be non empty ext-real-membered set;
    defpred P[non empty ext-real-membered set] means $1 is left_end right_end;
    assume
A1: X is finite;
    X c= ExtREAL by MEMBERED:2;
    then
A2: X is non empty Element of Fin ExtREAL by A1,FINSUB_1:def 5;
A3: for B1,B2 being non empty Element of Fin ExtREAL holds P[B1] & P[B2]
    implies P[B1 \/ B2]
    proof
      let B1,B2 be non empty Element of Fin ExtREAL;
      assume
A4:   P[B1];
      inf(B1 \/ B2) = min(inf B1,inf B2) by Th9;
      then
A5:   inf(B1 \/ B2) = inf B1 or inf(B1 \/ B2) = inf B2 by XXREAL_0:15;
      assume
A6:   P[B2];
      then
A7:   inf B2 in B2 by Def5;
      inf B1 in B1 by A4,Def5;
      hence inf(B1 \/ B2) in B1 \/ B2 by A7,A5,XBOOLE_0:def 3;
      sup(B1 \/ B2) = max(sup B1,sup B2) by Th10;
      then
A8:   sup(B1 \/ B2) = sup B1 or sup(B1 \/ B2) = sup B2 by XXREAL_0:16;
A9:   sup B2 in B2 by A6,Def6;
      sup B1 in B1 by A4,Def6;
      hence sup(B1 \/ B2) in B1 \/ B2 by A9,A8,XBOOLE_0:def 3;
    end;
A10: for x being Element of ExtREAL holds P[{.x.}]
    proof
      let x being Element of ExtREAL;
      sup {x} = x by Lm1;
      then
A11:  sup {x} in {x} by TARSKI:def 1;
      inf {x} = x by Lm2;
      then inf {x} in {x} by TARSKI:def 1;
      hence thesis by A11,Def5,Def6;
    end;
    for Bbeing nonof FinPB]fromSETWISEO
        thus is   ,ef2java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    A12: y is y is ofX and
java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 6
end;

registration
  cluster -> left_end for non java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 46
  coherence
  proof
    let X be non empty natural-membered set;
    P[et means 1 inX;
A1attrX  left_end means
    consider k:ef5:
A2 k]and
A3: for   Xisright_endmeans
A4java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    proofin{} byTARSKIdef ;
      let y;
      assume yy of{} java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 54
      hence java.lang.StringIndexOutOfBoundsException: Range [12, 18) out of bounds for length 11
   endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    for x being   hencethesis by A1,TARSKId1;
    hence infy is of{}iff y<=x
  end;
end;

registration
  right_end   emptynatural-embered set;
  existence
  roof
    0;
    thus    
  endletzbe of{x;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

notation
  let X be left_end ext-real-membered set;
  minX forinfX
end;


  letX be java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 43
  synonym max X hence thesis by Def2;
end;

definition
  letjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  redefine func min X means
  Djava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  it in X & Xc=ExtREALbydef5
  compatibility
  proof
    let y;
    thusTh3
    assumethat
A1  and
A2: forx  x inX y< ;
A3: forx beingLowerBoundofX holds x =y  Def2
    y java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
hencethesisby A3D
  end;
end;

definition
     bejava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 43
  redefinea
  :Def8:
  it in X & for x lety;
  ompatibility
  proof
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 10
 y inX & x tx inX holdsx< y Def6Th4;
    assume that
A1:  assume y in java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 for x st x in X holds x <= y;
A3 forx beingUpperBoundjava.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 5
    y = minx,);
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  
end;

theorem
  max{x} = x by Lm1;

 y impliesyjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 44
proof
  assume
A1: x <=A5  =by1;
  lety < zby A4,ef2;
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20
  hence
end;

Lm4: for z being UpperBound of {x,y} holds y <= z
prooffor xbeingUpperBoundofA  ofB maxx
  letz bejava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
  y in {m= maxx,y;
  hence java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 per cases by A1,XBOOLE_0d3;

theorem
  max(x,y) = max{x,y}
proof
  now
    per cases;
    case
A1:   x <= y;
A2:   for z being UpperBound of {x,y} holds y <= z by Lm4;
      y is UpperBound of {x,y} by A1,Lm3;
      hence max{x,y} = y by A2,Def3;
    end;
    case
A3:   y < x;
A4:   for z being UpperBound of {x,y} holds x <= z by Lm4;
      x is UpperBound of {x,y} by       x is UpperBound of {x,y} by A3
      hence {y}= by A4,Def3;
    end;
  end;
  hence thesis by XXREAL_0:def 10;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem
    min{x} =java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 6

java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 44
proof =y byA4D
  assume
A1: y <= x;
  let z;
  assume z in {x,y};
  hence thesis by A1,TARSKI:def 2;
end;

:forz beingLowerBoundof xy java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 49
proof
   of{xy;
  y in {xjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  hence thesis by t
end;

theorem
  min{x,    hence20
proof
  now
    per cases;
    case
A1:   y <= x;
A2:   for z being LowerBound of {x,y} holds z <= y by java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 4
        x,y byA1Lm5java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      hence min{x,y} = y by A2,Def4;
    end;
    case
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    let x  UpperBound A \/B;
      x is LowerBound of      java.lang.StringIndexOutOfBoundsException: Range [22, 19) out of bounds for length 43
      hence min{y} = x by A4Def4
    ;
  end;
  hence thesis by XXREAL_0: thensupA< byjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
;

definition
  let X be ext-real-membered set;
attr X ismeans
  :Def9:
  ex r nfB1in B1by A4Def5;
  Xismeans
  :Def10:
  ex r being Real st r is UpperBound of X;
end;

registration
  nonemptyfinite- forsetjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  
        s B1inB1 byA4,
    take {0};
    thus thesis;
  end;
end;

definition
  let X be ext-real-membered set;
d means

  X is then inf {x} in {x} by TARSKI:def 1;


registration
  cluster real-  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
          for ext-real-membered set;
  java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
  cluster A1:exkbeingNat Pk]by12;
          for ext-A2 []and
  coherence;
end;

registration
  cluster finite -A4: k is LowerBound of X
  java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 9
  proof
    let X be real-membered set;
    
java.lang.StringIndexOutOfBoundsException: Range [15, 2) out of bounds for length 16
    per cases;
    
A2:   X is e
      take }java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      
        take 0;
        let x;
        thus thesis by A2;
      end;
      take 0;
let 
      thus thesis by  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 26
    end;
    suppose
      X is non empty;
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 70
      inf Y in X by Def5;
 java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 40
      thus X is bounded_below
      proof
        takem;
        let x;
        assume x in X;
        hencey UpperBoundXbyA2,
      end;
      sup Y 
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 7
      Lm3:x< yimplies y   ofxy}
      
      assume x in{,y}
      hence thesis by Th4;
    
  end hence maxx,  yby A2Def3
end;case

registration
  cluster real-bounded for non empty natural-membered set;
  existence
  proof
    take {0};
    thus thesis;
  
end;

theorem Th15:
  X  real-java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 63
  holds inf X in REAL
proof
  let X be non empty real-memberedmin{x} =x by 
  given r being Real such that
A1: r is let 
  consider  byA1def2
A2: sLm6  zjava.lang.StringIndexOutOfBoundsException: Range [32, 27) out of bounds for length 49
A3: y in {x,y} by TARSKI:def 2;
  REALby def 1;
A5: end;
  r <= inf X by A1,Def4;
    minminxy}=min(y)
end;

theoremA1    =x
X nonemptyrealset Xis
  holds sup X in REAL
proof
  let X be non empty real-membered set;
  given r being Real such that
A1: r is UpperBound of X;
  consider s being Real such that
A2: s in X by MEMBERED:9;
A3: s <= sup X by A2,Th4;
A4: r in REAL by XREAL_0:def 1;
A5: s in REAL by XREAL_0:def 1;
  sup X <= r by A1,Def3;
  hence thesis by A4,A5,A3,XXREAL_0:45;
end;

registration
  let X be bounded_above non empty real-membered set;
  cluster sup X -> real;
  coherence
  proof
    sup X in REAL by Th16;
    hence thesis;
  end;
end;

registration
  let X be bounded_below non empty real-membered set;
  cluster inf X -> real;
  coherence
  roof
    inf X in REAL by Th15;
    hence thesis;
  end;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

registration
   bounded_above -> right_end for non empty integer-membered set;
  
  proof
    let X be non empty integer-membered set;
ssume Xisbounded_above;
    then reconsider java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    set s = sup Y;
A1: [\ s /java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 7
    [\ s /] is java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 16
    proof
      let x;
  let X beext-real-embered set;
      thesis by Th4,:54
    end;
    then s <= [\ s /] by Def3;
    then s   by X1
    assume
A2:  X is empty;
    s - 1 is UpperBound of X
    proof
      let x;
      assume
A3:   x in X;
      then reconsider i=x as Integer;
              take 0;
      then i < s by A2,A3
      hence thesis by INT_1:52;
    endlet ;
    then s - 1s
    hence contradiction by      reconsider X asnon finitereal-java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 70
  proof
end;

registration
  cluster bounded_below -> left_end for non empty integer-membered set;
  coherence
  roof
    let X be non       sup Y in Xby ;
    Xis
    then reconsider
    set s = inf Y;
A1: [/     end;;
    [/ s \] 
    proof
      let x;
      assume x in X;
      hence thesis by Th3,INT_1:65;
    end;
    then [/;
    then reconsider
    assume
A2: not inf X in X;
    s + 1 is LowerBound of Xholds inf in EAL
    proof
      let x;
      assume
A3 xin ;
       xasInteger
      i >= s by A3,Th3;
      then s < i by A2,A3,XXREAL_0:1;
      hence thesis by INT_1:7;
    end;
    then s + 1 <= s by Def4;
    hence contradiction by XREAL_1:145;
  end;
end;

registration
  cluster -> bounded_below for naturalunded_below for -emberedset;
  coherence
  proof
    let X be A5: s in REAL by XREAL_0 s REAL byXREAL_0def 1;
    0;
    let x;
    assume x in X;
    hence thesis;
  end;
end;

registration
  let X be left_end real-membered set;
  cluster min X -> real;
  coherence
  proof
    min X in X by Def7;
    thesis;
  end;
end;

registration
  let X be A1: r is UpperBound r is  ofXjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 28
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  proof
    min X in X by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
    hence thesis;
  end;
end;

registration
  let X be left_end  Th15
  cluster min X -> integerend;
  coherence
  proof
    min X in X by Def7;
    hence thesis;
  end;
end;

registration
  let     the java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 72
  cluster min X -> natural;
  coherence
  proof
    min proof
    hence thesis;
  end;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

registration
  let X be right_end realassume
  maxX - 
  proof
  proof
       X  X 
java.lang.StringIndexOutOfBoundsException: Range [21, 17) out of bounds for length 17
  end;
end;

registration
  let X be right_end rational-membered set;
  max - 
  coherencecontradictionby:;
  proof
    max X in X end;
    hence thesis;
  end;
end;

registration
  let X be right_end integer-membered set;
  cluster max X -> integer;
  coherence
  proof
    max X in X by     X isbounded_below;
    hence thesis;
  end;
end;

registration
proof
  cluster max X ->  xin X;
  coherence
  proof
    max X in X by Def8;
    hence thesis;
  end;
end

registration
   -real-set;
  
  proof
    let X be  xinX
    assume inf X theni java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 37
    end
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 11
    let x;
    thus thesis by Th3;
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  cluster  cluster -bounded_below fornatural-emberedset
  coherence
  proof
    let X be real-membered set;
    assume sup X in X;
    then reconsider r = end
    take r;
    let x;
  coherence
  nd
end;

theorem Th17:
  x is LowerBound of [.x,y.]
proof
    
  java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 7
      hencethesisjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
end;

theorem Th18:
  x is LowerBound of ].x,y.]
proofminX in X  
  let z;
  
  
end;

theorem Th19:
  x is LowerBound of [.x,y.[
proof
  let z;
  assume z in [.x,y.[;
  hence thesis by XXREAL_1:3;
end;

theorem Th20:
  x is LowerBound of ].x,y.[
proof
  let z;
  assume z in ].x,y.[;
  hence thesis by XXREAL_1:4;
end;

theorem Th21:
  y is UpperBound of [.  cluster X - natural
proof
  let z;
  assume z in [.x,y.];
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

theorem Th22:
  y     XinXby 
proof
   ;
  java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 4
hence thesisby XXREAL_12java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 23

theorem
  y  let be memberedset
proof
  let z;
  assume   proof
  hence thesis by XXREAL_1:3;
end;

theorem Th24:
  yjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 23
proof
  let z;
  assume z in ].  cluster left_en - bounded_belowforreal-java.lang.StringIndexOutOfBoundsException: Range [57, 53) out of bounds for length 58
  hence thesis by XXREAL_1:4;
end;

theorem Th25:
  x <let
proof
  assume
A1: x <= y;
A2: for z being LowerBound

    letz LowerBoundof[xy.java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
    xthusbyTh4
    hence end
  end;
  x isx isof [.,y.]
  hence thesis by A2,Def4;
end;

 Th26java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  x < y implies
proof
  assume
A1: x < y;
or z being LowerBound of [.x,y.[ holds z <= x
  proof
    let z be LowerBound of [.x,y.[;
    x in [  thesisbyXXREAL_12;
    hence thesis by Def2;
  end;
  x is LowerBound of [.x,y.[ by Th19;
  hence thesis by A2assumez in.x,.
end;

theorem Th27:
  x < y implies inf ].x,x isof].,y.[
  letz
  assume
A1: x < y;
A2: for z java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  proof
    letz be LowerBound of ]x,.
  ssumezin[.,y];
    proof
      java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
      assume that
A3:     let z
A4:   r < y;
        henceby2
      hence thesis by java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    hence thesis by A1,XREAL_1:228;
  end;
  x is LowerBound 
  hence thesis by A2java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
endletz

theorem Th28:
  x < y implies infendjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
proof
  assume
A1: x < ypjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
A2A2 forzbeing [.,y.holdsz =x
  proof
    let z be LowerBound of ].x,y.[;
    for r st x < r & r < y   x is LowerBound of [.x,y.] by;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
    hence thesis by A1,XREAL_1:228
  end;
  x is LowerBound of ].x,y.[ by Th20;
  hence thesis by A2,Def4;
proojava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5

Th29:
  x <p
proof
  assume
A1: x <= y;
A2: forzbeingUpperBoundo .,. holdsy< z
  proof
    A3:   x < r and
    y in [.x,y.] by A1,XXREAL_1:1;
    hence thesis by Def1;
  end;
  y is UpperBound of [.x,y.] by Th21;
  hence thesis by A2,Def3;
end;

theorem Th30:
  x
proof
  assume
A1: x < y;
A2d;
  proof
    let z be UpperBound of ]  <y impliesinf ]x,y.[ = x
    y in ].xjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    hence thesis by Def1;
  end;
  y is UpperBound    let  be LowerBound of .xy.;
  hence thesis by A2,Def3;
end;

theoremTh31
  x < y implies sup [  end;
proof
  assume
A1: x  ence thesis 
A2: for z being UpperBound of e
  proof
    let z be UpperBound of [.x,y.[;
    for r stjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    proof
      let r;
      assume that
A3 hence thesisbyDef1
A4:   r < y;
      rhenceby Def3;
      hence thesis by Def1;
    end;x<y impliessup ]x,java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
    hence thesis by A1,XREAL_1:229;
  end;
  y is  z be UpperBound of ].x,y.];
  hence thesis by A2,Def3;
end;

theorem Th32:
  x < y implies sup ].x,y.[ = y
proof
  
A1: x < y;
A2: for z hence thesis A2,Def3;
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
    letz of ].y.;
    for r st x < r & r < y holds r <= z
    by XXREAL_1
    hence thesis by A1,XREAL_1:229;
  end;
  y is UpperBound of ].x,y.[ by Th24;
   thesis byA2,Def3java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4

theorem Th33:
  x <= y implies [.x,y.] is left_end java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 27
proof
  assume
A1: x <= y;
  then xin[.xy. XXREAL_1:;
  theninf[x,y. in [x,.by Th25
  hence [.x,y.] is 
  y in [.  y implies sup ].x,y.[ = y
  hence sup [.x,y.] in [.x,y.] byproof
end;

theorem Th34:
  x <java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof
  assume
A1: x < y;
  then x[.,.  XXREAL_13java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  hence inf [.x,y.[ in [. end;
end;

theorem :
  x < y implies ].x,y.] is right_end
proof
  
A1: x < y;
a
  hence sup ].x,y.] in   x [.xy] XXREAL_11;
end;

theorem Th36:
  x is LowerBound of {}
proof
  let   hence[xy.isleft_end;
  thus thesis;
end;

theoremhencesup[xy. in[.,y. byA1,;
  x is UpperBound of {}
proof
  let y;
  thus thesis;
end;

theorem Th38:
  infhence [x, [.,. java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 42
proof
A1: for x LowerBound of } holds x <= +infty by XXREAL_0:3;
  +infty is LowerBound of {} byA1 x< ;
  hence thesis by A1,Def4;
end;

theoremxisof }
  sup {} = -let ;
proof
A1: for x being UpperBound of Th37java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  -infty is UpperBound of {} by Th37
  hence thesis by A1,Def3;
end;

theoremA1:for x being LowerBound { java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 65
  forXbeingext-java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 75
proof
  let X java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  thus X  sup{ =-
  proofA1:for x beingUpperBoundof{} -java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 65
    assume X is non empty;
    then consider x such that
A1: x in X by MEMBERED:8;
A2: x =sup X by A1,Th4;
    inf X <= x by A1,Th3;
    hence thesis by A2,XXREAL_0:2;
  end;
   inf X =sup X;
  hence thesis by Th38,Th39;
end;

registration
  cluster real-bounded -> finite for integer-membered set;
  coherence
  proof
    let X be integer-membered set;
    per cases;
    suppose
      X A2: x <= s =supX A1Th4
      hence thesis;
    end
    java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 4
A1:   X is non java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 7
      assume X is java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 14
      then reconsider Z = Xjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
      integer-membered by A1
      set m = inf Z,      X is bounded_below bounded_above;
      defpredPo $1inX
      integer-embered set by A1
      set Y  set = Z n= java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
A2:   X c= Y
      proof
        let i be Integer;
A3:     i in INT by INT_1:def 2;
        assume
A4:     A3:    iin by INT_1: 2;
        then
A5:     i<=n         then
        m<=i by A4,Th3;
        hence thesis        hencethesisby A3A4,;
      end;
      Yis finite from FinInterjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      hence thesis by A2;
    end;
  endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
end;

registration
  cluster -> finite for java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  coherence;
end;

theorem
    thesisby XXREAL_03
proof
  let X be ext-real-membered setjava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 0
  let x such that
  x in X;
  thus thesis by XXREAL_0:3;
end;

theorem
  for X being ext-real-membered set java.lang.StringIndexOutOfBoundsException: Range [36, 41) out of bounds for length 13
proof
  let X be ext-real holdsXis bounded_above
  let x such thatXjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 35
xX;
  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 28
end;

theorem Th43:
  for X,Y being ext-real-membered setjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  bounded_above holds X is bounded_above
proof
  let X,Y be ext-real-membered set;
  assume
A1: X c= Y;
  given r being Real such that
  bounded_below holds Xis 
  take r;
  thus thesis by A1,A2,Th6;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theoremrbeingRealsuchthat
  for X,Y being ext-realA:r LowerBoundjava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 25
  bounded_below holds X is bounded_below
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  letXYbeext-java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 35
  assume
A1: X c= Y;
  given r being Realtheorem Th46:
A2: r is LowerBound of Y
  take r;
  thus thesis by A1  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 32
end;

theorem
  for X,Y beingEAL_1:2;
  X is real-bounded
by Th43,Th44;

theorem Th46:
  REAL is non bounded_below non bounded_above
proof
  thus is non bounded_below
  proof
    given r being Real such that
A1:A4   by1;
    consider s being Real such that
A2: s < r by XREAL_1:2;
    s in REAL by XREAL_0def1;
    hence contradiction by A1,A2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  end;
  given r being Real such that
A3: r is UpperBound of REAL;
  consider s being Real such that
A4: r < s by XREAL_1:1;
  s in REAL by XREAL_0:ef 1;
  hence contradiction byjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
endproof

registration
  cluster REAL -> non bounded_below non java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 31
  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
end

theorem
  {+infty  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 23
proof
  take 0;
  let x;
  assume x in {+infty};
  hence thesis thesis by TARSKI:def 1;
end;

theorem
  {-infty} is bounded_above
proof
  take 0;
  let x;
  assume x in {-infty};
  hence thesis by TARSKI:def 1;
end;

theorem Th49:
  for X being java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 14
  <> {-infty} holds ex x   reconsider x as ExtReal by A1
proof
  letA3:ris  ofXby Def10
assume X <> };
  then consider x being object such that
A1: x in  x = r by A3,A1Def1;
A2: x <> -infty by ZFMISC_1:35;
  reconsider x as ExtReal byA1;
  consider r being Real such that
A3:r is UpperBoundof by Def10;
A4:r in  by :ef 1;
  x <= r by A3,A1,Def1;
  then x in REAL by A4,A2,  forXbeingbounded_below non empty -ealmemberedset  X
  hence thesis by A1;
end;

theorem Th50:
  for Xbeing non empty ext-eal-embered set stX
  <> {+infty} holds ex x being Element of REAL st   X <{infty}java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
proof
  let X be bounded_below non   reconsider  as ExtReal by A1;
  assume X <> {+infty};
  then consider x being object such that
A1: xin  and
A2: x <> +infty by ZFMISC_1:35;
  ;
  consider r being Real such that
dofX by Def9;
A4:r  REAL by XREAL_0:def 1;
  r <= x by A3,A1,Def2;
  then x in   for X being ex-real-membered UpperBound of X
  hence thesis by A1;
end;

theorem Th51:
  for X being ext-real-membered set st -infty is UpperBound of X
  holds X ciassume xin X;
proof
  let X be ext-real-membered set such that
A1: -infty is UpperBound of X;
  let x;
  assume x in X;
  then x = -infty by A1,Def1,XXREAL_0:6;
  hence thesis by TARSKI holds  c +java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
end;

theorem Th52:
  for X being ext-real-membered set st +infty is java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 16
  holds X c= {+infty}
proof
  let X be ext-real-membered set such that
A1: +infty is LowerBound of X;
  let x;
  assume x in X;
  then x = +infty by A1,Def2,XXREAL_0:4;
  hence thesis by TARSKI:def 1;
end;

theorem
  for X being non empty ext-real-membered set st ex y being UpperBound
  of X st y <> +infty holds X is bounded_above
proof
  let X be non empty ext-real-membered set;
  given y being UpperBound of X such that
A1: y <> +infty;
  per cases;
  suppose
A2: y = -infty;
    ake0
    let x;
    assume
A3: x   non empty ext-ealmembered set st  y being UpperBound
    X c= {-infty} by A2,Th51;
    hence thesis by A3,TARSKI:def 1;
  end;
  suppose
    y <> -infty;
    then y in REAL by A1, 
    then reconsider y as Real;
    take y;
    thus thesis;
  end;
end;

theorem
  for X being non empty ext-real-membered set st ex y being LowerBound
  of X     y <>-java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
proof
  let X 
  given y being LowerBound of X java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
 y < -;
  percasesjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  suppose
A2: y = +infty;
    A1: y < infty
       x;
    assume
A3: x in X;
    XA2: y = infty;
    hence thesis by A3,TARSKI:def 1;
  end;
  suppose
    y <> +infty;
     REALby A114;
    then reconsider y as Real;
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    thus thesis;
  end;
end;

theorem
  forX beingnon empty ext-real-membered set, x being UpperBound of X
  st x in X holds x = sup X
proof
   X;
  assume x in X;
   fory being UpperBound ofX holds x=y byDef1;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5


theorem
  for X being nonhenceby
  st x in X holds x = inf X
proof
  let X be non empty ext-real-membered set, x be LowerBound of X;
  assume x in X;
  then for y being LowerBoundlet nonemptyext-real-java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 65
 java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 23
end;

theorem theoremTh57:
  for  being non empty ext-eal-membered stX 
  
proof
   setjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  assume
A1: X is bounded_above;
  then consider r being Real such that
A2: r is <> {-infty
  assume X <>ex ofREALst inX  A1;

A3 then
  sup X is UpperBound of X by Def3;
  then
A4 sup X  infty by DXXREAL_012
A5: r in REAL by XREAL_0:def 1;
 X< by Def3;
  hence thesis by A5,A4,XXREAL_0:13;
end;

theorem Th58:
  for X being non empty ext-java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 0


  let X be letbenon emptyextreal-embered set;
  assume
A1:X is ;
  then consider r being Real such that
A2: r is LowerBound of X;
  assume X <> {+infty};
  then
A3: ex x being Element of REAL st x in X by A1,Th50;
  inf X is LowerBound of X by Def4;
  then
A4: inf X <> +infty by A3,Def2,XXREAL_0:9;
A5: r in REAL by XREAL_0:def 1;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  hence thesis by A5,A4,XXREAL_0:10;
end;

theorem
  for X,Y being ext-real-membered set st X c= Y holds sup X <= sup Y
proof
  let  ExtRealstx in X ex y being ExtReal st
  assume
 X c=Y;
  sup Y is UpperBound of Y by Def3;
  then sup Y is UpperBound of X by A1,  proof
  hence thesis by Def3;
end;

theorem
  -membered st X c= Y holds inf Y < inf X
proof
  let X,Y beext-eal-embered set;
  assume
A1: X c= Y;
  inf Y is LowerBound of Y by Def4;
  then inf  ,Yjava.lang.StringIndexOutOfBoundsException: Range [20, 15) out of bounds for length 63
  hence thesis by Def4;
end;

theorem
  for X being ext-real   Ybeext-real-membered set;
  being ExtReal st y in X & x <java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

  let X be ext-real-membered set;
  ybe ExtReal
  given y being ExtReal such that
A1 then  x ExtReal such that
A2  <= ;
   y =supX by A1Th4;
hencethesisbyA2,2
end;

java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
  for X being ext-real-membered set, x being ExtReal st  XY ext-java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 65
  being ExtReal st y in X & y <= x) holds inf X <= proof
proof
  let X be ext-real-membered set;
  let x be ExtReal;
  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A1: y in X and
A2: y <= x;
  inf X <= y by A1,Th3;
  hence byA22java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32


theorem
  for X,Y being ext-real-membered set st being ofY holds x, isLowerBoundX /Y
  x in X ex y being letX be extreal-embered set xbe LowerBound ofX, y LowerBoundof Yjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
proof
  let X,Y be ext-real-membered set;
  assume
A1: for x being ExtReal st x in X ex y being java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 6
  y in Y & x <= y;
  sup is  X
  proof
    let x be ExtReal;
    assume x in X;
     y beingExtReal such that
A2pjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A3: x <= y by A1;
    y <= sup Y by A2,Th4;
    hence s A= impliesA  {infA}
  end;
  hence thesis by Def3;
end;

theorem
  for X,}byXXREAL_117
  y in Y ex x being ExtReal st x in Xjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33
proof
  let X
  assume
A1: for y being ExtReal st y in Y ex x being ExtReal st
  x in X & x <= y;
  inf X is LowerBound of Y
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    let y be ExtReal;
    assume y in Y;
    then consider x being ExtReal such that
x 
y< &x;
en;
    hence thesis by A3,XXREAL_0:2registration
  end;
  hence thesis   java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 28
end;

theorem Th65:
  for X,Y being ext-real-membered set, x being UpperBound of X, y
  being UpperBound of Y holds min(x,y) is     REAL;
proof
  letend
  let a be ExtReal;
  assume
A1   \B-interval;
  then a in Y java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 11

A2: a <    assumethat
  a inA1: r in A /B and
  then a <= A2:s in A\B;
  hence thesis by A2,XXREAL_0:20;
end;

theorem Th66:
  for X,Y being ext-real-membered set, x being LowerBound of X, y
  being LowerBound of Y holds max(x,y) is LowerBound of XA5  inA by A2Xdef4;
proof
  let X,Y .c Aby A5,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  let a be ExtReal;
  assume
A1: a in X /A2: ]rjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
 then a Y byXBOOLE_0:def 
  then
A2: y <= a by Def2;
  a in X by A1,XBOOLE_0:def     hence contradiction byA1,XXREAL_1:java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
  then x <= a by Def2;
  hence thesis by A2,XXREAL_0:28;
end;

theorem
  for X,Y being ext-real-membered set holds sup(X /\ Y) <= min(sup X,sup Y)
proof
  let X,Y be ext-real-membered set;
A1: sup Y is UpperBound of Y by Def3;
  sup X is UpperBound of X by Def3;
  then min(sup X,sup Y) is UpperBound of X /\ Y by A1,Th65;
  hence thesis by Def3;
end;

java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
 - setjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 75
oof
  let X,Y be ext-real-membered set;
A1: inf Y is LowerBound A2:xin  and
inf Xis  ofX byDef4;
  then max(inf X,inf Y) is LowerBound ofA4:r =x;
  hence thesis by Def4;
end;

registration
  cluster real-bounded -> real-membered for ext-real-membered set;
  coherence
  proof
    let X be ext-real-membered set such that
A1: X is real-bounded;
    let x be object;
    assume
A2: x in X;
    then reconsider X as non empty ext-real-membered set;
    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 35
   Def10
    reconsider;
A4: s in
A5: x <= s by A2,A3,Def1;
    consider r being Real such that
A6: r is LowerBound of X
A7: r in REAL by XREAL_0:def 1;
    r = xby ,A6java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    then x in REAL by A5,A7,A4,XXREAL_0:45;
    hence thesis;
  end;
end;

theorem Th69:
  A c= [.inf A, sup A.]
proof
  let x be ExtReal;
  assume
A1: x in A;
  then
A2: x <= sup A by Th4;
  inf A <= x by A1,Th3;
  hence thesis by A2,XXREAL_1:1
end;

theorem
  sup A = inf A implies A = {inf A}
proof
  assume
A1: sup A = inf A;
  then A c= [.inf A,inf A.] by Th69;
  then
A2: A c= {inf A} by XXREAL_1:17;
  A <> {} by A1,Th38,Th39;
  hence thesis by A2,ZFMISC_1:33;
end;

theorem Th71:
  x <= y & x is UpperBound of A implies y is UpperBound of   assume r in [.x,y.];
proof
  assume that
A1: x <= y and
A2: x is UpperBound of A;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  assume z in A;
thenz <=xby ;
  hence thesis by  suppose
end;

theorem Th72:
  y <= x & x is LowerBound of A implies y is LowerBound of A
proof
that
A1: y <= x and
A2: x is LowerBound of A;
  let z;
  assume z in A;
  then x <= z by A2,Def2;
  hence thesis A1,XREAL_0:2;
end;

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 7
  A is bounded_above iff sup A <> +infty
proof
  hereby
    assume
A1: A is bounded_above;
    per cases by A1,Th57;
    suppose
      A = {};
      hence sup A <> +infty by Th39;
    end;
    suppose
      A = {-infty};
      hence sup A <> +infty by Lm1;
    end;
    suppose
      sup A in REAL;
      hence sup A <> +infty;
    end;
  end;
  assume
A2: sup A <> +infty;
  per cases by A7: inf A < r by A6,XXREAL_0:2;
  suppose
A3: sup A = -infty;
    take 0;
    -infty is UpperBound of A by A3,Def3;
    hence thesis by Th71;
  end;
  suppose
    sup A in REAL;
    then reconsider r = sup A as Real;
    take r;
    thus thesis by Def3;
  end;
end;

theorem
  A is bounded_below iff inf A <> -infty
proof
  hereby
    assume
A1: A is bounded_below;
    per cases by A1,Th58;
    suppose
      A = {};
      hence inf A <> -infty by Th38;
    end;
    suppose
      A = {+infty};
      hence inf A <> -infty by Lm2;
    end;
    suppose
      inf A3:supA = infB
      henceinf <>-nfty
    end  for xyrst x  \/   A\/B& java.lang.StringIndexOutOfBoundsException: Range [64, 62) out of bounds for length 74
  end;
  assume
A2: inf A <> -infty;
  per cases by A2,XXREAL_0:14;
  suppose
A3: inf A = +infty;
        supp that
    +infty is LowerBound of A by A3,Def4;
    hence thesis by Th72cases
  end;
  suppose
    A REAL;
    then reconsider r = inf A as Real;
    take r;
    thus 
  end;
end;

begin :: Connectedness

definition
  let A be
  attr A is interval means
  :Def12:
  for r,s being ExtReal st r in A & s in A holds [.r,s.] c= Ajava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
end;

registration
  -java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
  coherence
  by MEMBERED:2;
  cluster empty -> interval for ext-real-membered set
  coherence;
  let r,s;
  cluster [.r,s.] -> interval;
  coherence
  proof
    let x,y;
     B is 
    
A1: r <= x   assume that
    assume y in [.r,s.];
    then
A2: y <= s by XXREAL_1:1;
    z;
    assume
A3by;
    then x <= z end;
    then
A4: r <= z theorem Th95:
    z <= y by A3,XXREAL_1:1;
    then z <= s by A2,XXREAL_0:2;
    hence thesis by A4,XXREAL_1:1;
  end;
  cluster .s. > interval;
  coherence
  proof
    let x,y;
    assume x in ].r,s.];
    then
A5: r < x by XXREAL_1:2;
    assume y in ].r,s.];
    then
A6: y <= s by XXREAL_1:2;
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 10
    assume
A7: z   r is L isjava.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0
    then x <= z by XXREAL_1:1;
    then
A8: r < z by A5,XXREAL_0:2;
    z <= y by A7,XXREAL_1:1;
    then z <= s by A6,XXREAL_0:2;
    hence thesis by A8,XXREAL_1:2;
  end;
  cluster [.r,s.[ -> interval;
  coherence
  proof
    let x,y;
    assume x in [.r,s.[;
    then
A9: r <= x by XXREAL_1:3;
    assume y in [.r,s.[;
    then
A10: y < s by XXREAL_1:3;
    let z;
    assume
A11: z in [.x,y.];
    then x <= z by XXREAL_1:1;
    then
A12: r <= z by A9,XXREAL_0:2;
    z <= y by A11,XXREAL_1:1;
    then z < s by A10,XXREAL_0:2;
    hence thesis by A12,XXREAL_1:3;
  end;
  cluster ].r,s.[ -> interval;
  coherence
  proof
    let x,y;
    assume x in ].r,s.[;
    then
A13: r < x by XXREAL_1:4;
    assume y in ].r,s.[;
    then
A14: y < s by XXREAL_1:4;
    let z;
    assume
A15: z in [.x,y.];
    then x <= z by XXREAL_1:1;
    then
A16: r < z by A13,XXREAL_0:2;
    z <= y by A15,XXREAL_1:1;
    then z < s by A14,XXREAL_0:2;
    hence thesis by A16,XXREAL_1:4;
  end;
end;

registration
  cluster REAL -> interval;
  coherence by XXREAL_1:224;
end;

registration
  cluster interval for non empty ext-real-membered set;
  existence
  proof
    take REAL;
    thus thesis;
  end;
end;

registration
  let A,B be interval ext-real-membered set;
  cluster A /\ B -> interval;
  coherence
  proof
    let r,s be ExtReal;
    assume that
A1: r in A /\ B and
A2: s in A /\ B;
A3: s in B by A2,XBOOLE_0:def 4;
    r in B by A1,XBOOLE_0:def 4;
    then
A4: [.r,s.] c= B by A3,Def12;
A5: s in A by A2,XBOOLE_0:def 4;
    r in A by A1,XBOOLE_0:def 4;
    then [.r,s.] c= A by A5,Def12;
    hence thesis by A4,XBOOLE_1:19;
  end;
end;

reserve A,B for ext-real-membered set;

registration
  let r,s;
  cluster ].r,s.] -> non left_end;
  coherence
  proof
    assume ].r,s.] is left_end;
    then
A1: inf ].r,s.] in ].r,s.];
    then
A2: inf ].r,s.] <= s by XXREAL_1:2;
    r < inf ].r,s.] by A1,XXREAL_1:2;
    then r < s by A2,XXREAL_0:2;
    then r = inf ].r,s.] by Th27;
    hence contradiction by A1,XXREAL_1:2;
  end;
  cluster [.r,s.[ -> non right_end;
  coherence
  proof
    assume [.r,s.[ is right_end;
    then
A3: sup [.r,s.[ in [.r,s.[;
    then
A4: sup [.r,s.[ < s by XXREAL_1:3;
    r <= sup [.r,s.[ by A3,XXREAL_1:3;
    then r < s by A4,XXREAL_0:2;
    then s = sup [.r,s.[ by Th31;
    hence contradiction by A3,XXREAL_1:3;
  end;
  cluster ].r,s.[ -> non left_end non right_end;
  coherence
  proof
    thus ].r,s.[ is non left_end
    proof
      assume ].r,s.[ is left_end;
      then
A5:   inf ].r,s.[ in ].r,s.[;
      then
A6:   inf ].r,s.[ < s by XXREAL_1:4;
      r < inf ].r,s.[ by A5,XXREAL_1:4;
      then r < s by A6,XXREAL_0:2;
      then r = inf ].r,s.[ by Th28;
      hence contradiction by A5,XXREAL_1:4;
    end;
    assume ].r,s.[ is right_end;
    then
A7: sup ].r,s.[ in ].r,s.[;
    then
A8: sup ].r,s.[ < s by XXREAL_1:4;
    r < sup ].r,s.[ by A7,XXREAL_1:4;
    then r < s by A8,XXREAL_0:2;
    then s = sup ].r,s.[ by Th32;
    hence contradiction by A7,XXREAL_1:4;
  end;
end;

registration
  cluster left_end right_end interval for ext-real-membered set;
  existence
  proof
    take [.0,1.];
    thus thesis by Th33;
  end;
  cluster non left_end right_end interval for ext-real-membered set;
  existence
  proof
    take ].0,1.];
    thus thesis by Th35;
  end;
  cluster left_end non right_end interval for ext-real-membered set;
  existence
  proof
    take [.0,1.[;
    thus thesis by Th34;
  end;
  cluster non left_end non right_end interval non empty for ext-real-membered
    set;
  existence
  proof
    take ].0,2.[;
    1 in ].0,2.[ by XXREAL_1:4;
    hence thesis;
  end;
end;

theorem
  for A being left_end right_end interval ext-real-membered set holds
  A = [.min A, max A.]
proof
  let A be left_end right_end interval ext-real-membered set;
  let x;
A1: max A in A by Def6;
  thus x in A implies x in [.min A, max A.]
  proof
    assume
A2: x in A;
    then
A3: x <= max A by Th4;
    min A <= x by A2,Th3;
    hence thesis by A3,XXREAL_1:1;
  end;
  min A in A by Def5;
  then [.min A, max A.] c= A by A1,Def12;
  hence thesis;
end;

theorem
  for A being non left_end right_end interval ext-real-membered set
  holds A = ].inf A, max A.]
proof
  let A be non left_end right_end interval ext-real-membered set;
  let x;
  defpred P[ExtReal] means $1 in A & $1 < x;
  thus x in A implies x in ].inf A, max A.]
  proof
A1: not inf A in A by Def5;
    assume
A2: x in A;
    then
A3: x <= max A by Th4;
    inf A <= x by A2,Th3;
    then inf A < x by A2,A1,XXREAL_0:1;
    hence thesis by A3,XXREAL_1:2;
  end;
  assume
A4: x in ].inf A, max A.];
  per cases;
  suppose
    not ex r st P[r];
    then x is LowerBound of A by Def2;
    then x <= inf A by Def4;
    hence thesis by A4,XXREAL_1:2;
  end;
  suppose
    ex r st P[r];
    then consider r such that
A5: r in A and
A6: r < x;
    x <= max A by A4,XXREAL_1:2;
    then
A7: x in [.r,max A.] by A6,XXREAL_1:1;
    max A in A by Def6;
    then [.r,max A.] c= A by A5,Def12;
    hence thesis by A7;
  end;
end;

theorem
  for A being left_end non right_end interval ext-real-membered set
  holds A = [.min A, sup A.[
proof
  let A be left_end non right_end interval ext-real-membered set;
  let x;
  defpred P[ExtReal] means $1 in A & $1 > x;
  thus x in A implies x in [.min A, sup A.[
  proof
A1: not sup A in A by Def6;
    assume
A2: x in A;
    then
A3: min A <= x by Th3;
    x <= sup A by A2,Th4;
    then x < sup A by A2,A1,XXREAL_0:1;
    hence thesis by A3,XXREAL_1:3;
  end;
  assume
A4: x in [.min A, sup A.[;
  per cases;
  suppose
    not ex r st P[r];
    then x is UpperBound of A by Def1;
    then sup A <= x by Def3;
    hence thesis by A4,XXREAL_1:3;
  end;
  suppose
    ex r st P[r];
    then consider r such that
A5: r in A and
A6: r > x;
    inf A <= x by A4,XXREAL_1:3;
    then
A7: x in [.inf A,r.] by A6,XXREAL_1:1;
    min A in A by Def5;
    then [.inf A,r.] c= A by A5,Def12;
    hence thesis by A7;
  end;
end;

theorem Th78:
  for A being non left_end non right_end non empty interval
  ext-real-membered set holds A =].inf A,sup A.[
proof
  let A be non left_end non right_end non empty interval ext-real-membered
  set;
  let x;
  defpred P[ExtReal] means $1 in A & $1 < x;
  defpred Q[ExtReal] means $1 in A & $1 > x;
  thus x in A implies x in ].inf A,sup A.[
  proof
    assume
A1: x in A;
    then
A2: x <> sup A by Def6;
    x <= sup A by A1,Th4;
    then
A3: x < sup A by A2,XXREAL_0:1;
A4: x <> inf A by A1,Def5;
    inf A <= x by A1,Th3;
    then inf A < x by A4,XXREAL_0:1;
    hence thesis by A3,XXREAL_1:4;
  end;
  assume
A5: x in ].inf A,sup A.[;
  per cases;
  suppose
    not ex r st P[r];
    then x is LowerBound of A by Def2;
    then x <= inf A by Def4;
    hence thesis by A5,XXREAL_1:4;
  end;
  suppose
    not ex r st Q[r];
    then x is UpperBound of A by Def1;
    then sup A <= x by Def3;
    hence thesis by A5,XXREAL_1:4;
  end;
  suppose that
A6: ex r st P[r] and
A7: ex r st Q[r];
    consider r such that
A8: r in A and
A9: r < x by A6;
    consider s such that
A10: s in A and
A11: s > x by A7;
A12: x in [.r,s.] by A9,A11,XXREAL_1:1;
    [.r,s.] c= A by A8,A10,Def12;
    hence thesis by A12;
  end;
end;

theorem
  for A being non left_end non right_end interval ext-real-membered
  set ex r,s st r <= s & A =].r,s.[
proof
  let A be non left_end non right_end interval ext-real-membered set;
  per cases;
  suppose
A1: A is empty;
    take -infty,-infty;
    thus thesis by A1;
  end;
  suppose
A2: A is not empty;
    take inf A, sup A;
    thus inf A <= sup A by A2,Th40;
    thus thesis by A2,Th78;
  end;
end;

theorem Th80:
  A is interval implies for x,y,r st x in A & y in A & x <= r & r
  <= y holds r in A
proof
  assume
A1: A is interval;
  let x,y,r such that
A2: x in A and
A3: y in A and
A4: x <= r and
A5: r <= y;
A6: r in [.x,y.] by A4,A5,XXREAL_1:1;
  [.x,y.] c= A by A1,A2,A3;
  hence thesis by A6;
end;

theorem Th81:
  A is interval implies for x,r st x in A & x <= r & r < sup A holds r in A
proof
  assume
A1: A is interval;
  let x,r such that
A2: x in A and
A3: x <= r and
A4: r < sup A;
  per cases;
  suppose
    ex y st y in A & r < y;
    hence thesis by A1,A2,A3,Th80;
  end;
  suppose
    not ex y st y in A & r < y;
    then r is UpperBound of A by Def1;
    hence thesis by A4,Def3;
  end;
end;

theorem Th82:
  A is interval implies for x,r st x in A & inf A < r & r <= x holds r in A
proof
  assume
A1: A is interval;
  let x,r such that
A2: x in A and
A3: inf A < r and
A4: r <= x;
  per cases;
  suppose
    ex y st y in A & r > y;
    hence thesis by A1,A2,A4,Th80;
  end;
  suppose
    not ex y st y in A & r > y;
    then r is LowerBound of A by Def2;
    hence thesis by A3,Def4;
  end;
end;

theorem
  A is interval implies for r st inf A < r & r < sup A holds r in A
proof
  assume
A1: A is interval;
  let r such that
A2: inf A < r and
A3: r < sup A;
  per cases;
  suppose
    ex y st y in A & r > y;
    hence thesis by A1,A3,Th81;
  end;
  suppose
    not ex y st y in A & r > y;
    then r is LowerBound of A by Def2;
    hence thesis by A2,Def4;
  end;
end;

theorem Th84:
  (for x,y,r st x in A & y in A & x < r & r < y holds r in A)
  implies A is interval
proof
  assume
A1: for x,y,r st x in A & y in A & x < r & r < y holds r in A;
  let x,y such that
A2: x in A and
A3: y in A;
  let r;
  assume r in [.x,y.];
  then r in ].x,y.[ \/ {x,y} by XXREAL_1:29,128;
  then
A4: r in ].x,y.[ or r in {x,y} by XBOOLE_0:def 3;
  per cases by A4,TARSKI:def 2;
  suppose
    r = x;
    hence thesis by A2;
  end;
  suppose
    r = y;
    hence thesis by A3;
  end;
  suppose
A5: r in ].x,y.[;
    then
A6: r < y by XXREAL_1:4;
    x < r by A5,XXREAL_1:4;
    hence thesis by A1,A2,A3,A6;
  end;
end;

theorem
  (for x,r st x in A & x < r & r < sup A holds r in A) implies A is interval
proof
  assume
A1: for x,r st x in A & x < r & r < sup A holds r in A;
  let x,y such that
A2: x in A and
A3: y in A;
  let r;
  assume r in [.x,y.];
  then r in ].x,y.[ \/ {x,y} by XXREAL_1:29,128;
  then
A4: r in ].x,y.[ or r in {x,y} by XBOOLE_0:def 3;
  per cases by A4,TARSKI:def 2;
  suppose
    r = x;
    hence thesis by A2;
  end;
  suppose
    r = y;
    hence thesis by A3;
  end;
  suppose
A5: r in ].x,y.[;
    then
A6: r < y by XXREAL_1:4;
    y <= sup A by A3,Th4;
    then
A7: r < sup A by A6,XXREAL_0:2;
    x < r by A5,XXREAL_1:4;
    hence thesis by A1,A2,A7;
  end;
end;

theorem
  (for y,r st y in A & inf A < r & r < y holds r in A) implies A is interval
proof
  assume
A1: for y,r st y in A & inf A < r & r < y holds r in A;
  let x,y such that
A2: x in A and
A3: y in A;
  let r;
  assume r in [.x,y.];
  then r in ].x,y.[ \/ {x,y} by XXREAL_1:29,128;
  then
A4: r in ].x,y.[ or r in {x,y} by XBOOLE_0:def 3;
  per cases by A4,TARSKI:def 2;
  suppose
    r = x;
    hence thesis by A2;
  end;
  suppose
    r = y;
    hence thesis by A3;
  end;
  suppose
A5: r in ].x,y.[;
    then
A6: x < r by XXREAL_1:4;
    inf A <= x by A2,Th3;
    then
A7: inf A < r by A6,XXREAL_0:2;
    r < y by A5,XXREAL_1:4;
    hence thesis by A1,A3,A7;
  end;
end;

theorem
  (for r st inf A < r & r < sup A holds r in A) implies A is interval
proof
  assume
A1: for r st inf A < r & r < sup A holds r in A;
  let x,y such that
A2: x in A and
A3: y in A;
  let r;
  assume r in [.x,y.];
  then r in ].x,y.[ \/ {x,y} by XXREAL_1:29,128;
  then
A4: r in ].x,y.[ or r in {x,y} by XBOOLE_0:def 3;
  per cases by A4,TARSKI:def 2;
  suppose
    r = x;
    hence thesis by A2;
  end;
  suppose
    r = y;
    hence thesis by A3;
  end;
  suppose
A5: r in ].x,y.[;
    then
A6: r < y by XXREAL_1:4;
    y <= sup A by A3,Th4;
    then
A7: r < sup A by A6,XXREAL_0:2;
A8: x < r by A5,XXREAL_1:4;
    inf A <= x by A2,Th3;
    then inf A < r by A8,XXREAL_0:2;
    hence thesis by A1,A7;
  end;
end;

theorem Th88:
  (for x,y,r st x in A & y in A & x <= r & r <= y holds r in A)
  implies A is interval
proof
  assume for x,y,r st x in A & y in A & x <= r & r <= y holds r in A;
  then for x,y,r st x in A & y in A & x < r & r < y holds r in A;
  hence thesis by Th84;
end;

theorem
  A is interval & B is interval & A meets B implies A \/ B is interval
proof
  assume that
A1: A is interval and
A2: B is interval;
  given z such that
A3: z in A and
A4: z in B;
  for x,y,r st x in A \/ B & y in A \/ B & x <= r & r <= y holds r in A \/ B
  proof
    let x,y,r such that
A5: x in A \/ B and
A6: y in A \/ B and
A7: x <= r and
A8: r <= y;
    per cases by A5,A6,XBOOLE_0:def 3;
    suppose
      x in A & y in A;
      then r in A by A1,A7,A8,Th80;
      hence thesis by XBOOLE_0:def 3;
    end;
    suppose that
A9:   x in A and
A10:  y in B;
      per cases;
      suppose
        r <= z;
        then r in A by A1,A3,A7,A9,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
      suppose
        z <= r;
        then r in B by A2,A4,A8,A10,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
    end;
    suppose that
A11:  x in B and
A12:  y in A;
      per cases;
      suppose
        z <= r;
        then r in A by A1,A3,A8,A12,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
      suppose
        r <= z;
        then r in B by A2,A4,A7,A11,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
    end;
    suppose
      x in B & y in B;
      then r in B by A2,A7,A8,Th80;
      hence thesis by XBOOLE_0:def 3;
    end;
  end;
  hence thesis by Th88;
end;

theorem
  A is interval & B is left_end interval & sup A = inf B implies A \/
  B is interval
proof
  assume that
A1: A is interval and
A2: B is left_end interval and
A3: sup A = inf B;
  set z = inf B;
  for x,y,r st x in A \/ B & y in A \/ B & x < r & r < y holds r in A \/ B
  proof
    let x,y,r such that
A4: x in A \/ B and
A5: y in A \/ B and
A6: x < r and
A7: r < y;
    per cases by A4,A5,XBOOLE_0:def 3;
    suppose
      x in A & y in A;
      then r in A by A1,A6,A7,Th80;
      hence thesis by XBOOLE_0:def 3;
    end;
    suppose that
A8:   x in A and
A9:  y in B;
      per cases;
      suppose
        r < z;
        then r in A by A1,A3,A6,A8,Th81;
        hence thesis by XBOOLE_0:def 3;
      end;
      suppose
        z <= r;
        then r in B by A2,A7,A9,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
    end;
    suppose that
A10:  x in B and
A11:  y in A;
      per cases;
      suppose
A12:    z < r;
        y <= z by A3,A11,Th4;
        hence thesis by A7,A12,XXREAL_0:2;
      end;
      suppose
        r <= z;
        then r in B by A2,A6,A10,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
    end;
    suppose
      x in B & y in B;
      then r in B by A2,A6,A7,Th80;
      hence thesis by XBOOLE_0:def 3;
    end;
  end;
  hence thesis by Th84;
end;

theorem
  A is right_end interval & B is interval & sup A = inf B implies A \/
  B is interval
proof
  assume that
A1: A is right_end interval and
A2: B is interval and
A3: sup A = inf B;
  set z = inf B;
A4: z in A by A1,A3;
  for x,y,r st x in A \/ B & y in A \/ B & x < r & r < y holds r in A \/ B
  proof
    let x,y,r such that
A5: x in A \/ B and
A6: y in A \/ B and
A7: x < r and
A8: r < y;
    per cases by A5,A6,XBOOLE_0:def 3;
    suppose
      x in A & y in A;
      then r in A by A1,A7,A8,Th80;
      hence thesis by XBOOLE_0:def 3;
    end;
    suppose that
A9:   x in A and
A10:  y in B;
      per cases;
      suppose
        r <= z;
        then r in A by A1,A4,A7,A9,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
      suppose
        z < r;
        then r in B by A2,A8,A10,Th82;
        hence thesis by XBOOLE_0:def 3;
      end;
    end;
    suppose that
A11:  x in B and
A12:  y in A;
      per cases;
      suppose
        z <= r;
        then r in A by A1,A4,A8,A12,Th80;
        hence thesis by XBOOLE_0:def 3;
      end;
      suppose
A13:    r < z;
        z <= x by A11,Th3;
        hence thesis by A7,A13,XXREAL_0:2;
      end;
    end;
    suppose
      x in B & y in B;
      then r in B by A2,A7,A8,Th80;
      hence thesis by XBOOLE_0:def 3;
    end;
  end;
  hence thesis by Th84;
end;

registration
 cluster left_end -> non empty for ext-real-membered set;
 coherence;
 cluster right_end -> non empty for ext-real-membered set;
 coherence;
end;

:: from HAHNBAN, 2011.04.26, A.T.

theorem
  for A being non empty Subset of ExtREAL st
   for r being Element of ExtREAL st r in A
  holds r <= -infty holds A = {-infty}
proof
  let A be non empty Subset of ExtREAL such that
A1: for r being Element of ExtREAL st r in A holds r <= -infty;
  assume A <> {-infty};
  then ex a being Element of A st a <> -infty by SETFAM_1:49;
  hence contradiction by A1,XXREAL_0:6;
end;

theorem
  for A being non empty Subset of ExtREAL st
   for r being Element of ExtREAL st r in A
  holds +infty <= r holds A = {+infty}
proof
  let A be non empty Subset of ExtREAL such that
A1: for r being Element of ExtREAL st r in A holds +infty <= r;
  assume A <> {+infty};
  then ex a being Element of A st a <> +infty by SETFAM_1:49;
  hence contradiction by A1,XXREAL_0:4;
end;

theorem Th94:
  for A being non empty Subset of ExtREAL, r being ExtReal
  st r < sup A ex s being Element of ExtREAL st s in A & r < s
proof
  let A be non empty Subset of ExtREAL, r be ExtReal;
  assume
A1: r < sup A;
  assume
A2: for s being Element of ExtREAL st s in A holds not r < s;
  r is UpperBound of A
  proof
    let x be ExtReal;
    assume x in A;
    hence thesis by A2;
  end;
  hence contradiction by A1,Def3;
end;

theorem Th95:
  for A being non empty Subset of ExtREAL, r being Element of ExtREAL
    st inf A < r
   ex s being Element of ExtREAL st s in A & s < r
proof
  let A be non empty Subset of ExtREAL, r be Element of ExtREAL;
  assume
A1: inf A < r;
  assume
A2: for s being Element of ExtREAL st s in A holds not s < r;
  r is LowerBound of A
  proof
    let x be ExtReal;
    thus thesis by A2;
  end;
  hence contradiction by A1,Def4;
end;

theorem
  for A,B being non empty Subset of ExtREAL st for r,s being ExtReal
  st r in A & s in B holds r <= s holds sup A <= inf B
proof
  let A,B be non empty Subset of ExtREAL;
  assume
A1: for r,s being ExtReal st r in A & s in B holds r <= s;
  assume not sup A <= inf B;
  then consider s1 being Element of ExtREAL such that
A2: s1 in A and
A3: inf B < s1 by Th94;
  ex s2 being Element of ExtREAL st s2 in B & s2 < s1 by A3,Th95;
  hence contradiction by A1,A2;
end;


Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.127 Sekunden  ¤

*© Formatika GbR, Deutschland