Eine aufbereitete Darstellung der Quelle

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


Quelle  integra3.miz   Sprache: Mizar

 

:: Darboux's Theorem
::  by Noboru Endou , Katsumi Wasaki and Yasunari Shidama
::
:: Received December 7, 1999
:: Copyright (c) 1999-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 FINSEQ_1, ARYTM_1, INTEGRA1, RELAT_1, ORDINAL2, FUNCT_1, CARD_1,
      FUNCT_3, SEQ_2, JORDAN3, RFINSEQ, INTEGRA2, FDIFF_1, ARYTM_3, SEQ_4,
      CLASSES1, VALUED_0, XBOOLE_0, NUMBERS, MEASURE7, REAL_1, SUBSET_1,
      XXREAL_2, XXREAL_0, NAT_1, TARSKI, ORDINAL4, COMPLEX1, CARD_3, XXREAL_1,
      PARTFUN1, SEQ_1, MEASURE5, FUNCT_7, XCMPLX_0;
 notations TARSKI, XBOOLE_0, SUBSET_1, ORDINAL1, CARD_1, NUMBERS, XXREAL_0,
      XREAL_0, XCMPLX_0, COMPLEX1, REAL_1, NAT_1, NAT_D, RELAT_1, FUNCT_1,
      FUNCT_2, XXREAL_2, SEQ_4, VALUED_0, PARTFUN1, MEASURE6, FINSEQ_1,
      RFUNCT_1, RVSUM_1, INTEGRA1, SEQ_1, COMSEQ_2, SEQ_2, FINSEQ_6, RCOMP_1,
      FDIFF_1, CLASSES1, RFINSEQ, MEASURE5, INTEGRA2;
 constructors PARTFUN1, REAL_1, SQUARE_1, NAT_1, COMPLEX1, FINSOP_1, RFUNCT_1,
      FDIFF_1, RFINSEQ, BINARITH, MEASURE6, FINSEQ_6, INTEGRA2, BINOP_2,
      XXREAL_2, NAT_D, RVSUM_1, CLASSES1, SEQ_4, RELSET_1, SEQ_2, COMSEQ_2;
 registrations XBOOLE_0, RELAT_1, ORDINAL1, NUMBERS, XXREAL_0, XREAL_0, NAT_1,
      MEMBERED, FINSEQ_1, SEQM_3, INTEGRA1, VALUED_0, FUNCT_2, FINSET_1,
      XXREAL_2, CARD_1, SEQ_2, MEASURE5, RELSET_1;
 requirements REAL, NUMERALS, BOOLE, SUBSET, ARITHM;
 definitions TARSKI;
 equalities RVSUM_1;
 expansions TARSKI;
 theorems SEQ_4, SUBSET_1, PARTFUN1, INTEGRA1, RFUNCT_1, FUNCT_1, FINSEQ_1,
      RVSUM_1, SEQ_1, SEQ_2, FDIFF_1, ABSVALUE, NAT_1, RFINSEQ, TARSKI,
      FINSEQ_5, FINSEQ_3, FINSEQ_4, FINSEQ_6, INTEGRA2, RELAT_1, XREAL_0,
      FUNCT_2, XBOOLE_0, XBOOLE_1, XREAL_1, COMPLEX1, XXREAL_0, FINSOP_1,
      ORDINAL1, XXREAL_2, SEQM_3, CLASSES1, MEASURE5;
 schemes FINSEQ_2, NAT_1, SEQ_1;

begin :: Lemmas of Division

reserve a,b,e,r,x,y for Real,
  i,j,k,n,m for Element of NAT,
  x1 for set,
  p,q for FinSequence of REAL,
  A for non empty closed_interval Subset of REAL,
  D,D1,D2 for Division of A,
  f,g for Function of A,REAL,
  T for DivSequence of A;

Lm1: j-'j+1 = 1
proof
  j-'j=j-j by XREAL_1:233
    .= 0;
  hence thesis;
end;

Lm2: for n st 1 <= n & n <= 2 holds n = 1 or n = 2
proof
  let n;
  assume that
A1: 1<=n and
A2: n<=2;
  per cases by A1,XXREAL_0:1;
  suppose
    n=1;
    hence thesis;
  end;
  suppose
    n>1;
    then n >= 1+1 by NAT_1:13;
    hence thesis by A2,XXREAL_0:1;
  end;
end;

definition
  let A be non empty closed_interval Subset of REAL, D be Division of A;
  func delta(D) -> Real equals
  max rng upper_volume(chi(A,A),D);
  correctness;
end;

definition
  let A be non empty closed_interval Subset of REAL, T be DivSequence of A;
  func delta(T) -> Real_Sequence means :Def2:
  for i holds it.i = delta(T.i);
  existence
  proof
    deffunc F(Nat)=delta(T.In($1,NAT));
    consider IT being Real_Sequence such that
A1:   for i being Nat holds IT.i = F(i)
      from SEQ_1:sch 1;
   take IT;
   let i;
    IT.i = F(i) by A1;
   hence thesis;
  end;
  uniqueness
  proof
    let F1,F2 be Real_Sequence such that
A2: for i holds F1.i = delta(T.i) and
A3: for i holds F2.i = delta(T.i);
    for i holds F1.i = F2.i
    proof
      let i;
      F1.i = delta(T.i) by A2
        .= F2.i by A3;
      hence thesis;
    end;
    hence thesis by FUNCT_2:63;
  end;
end;

theorem
  D1 <= D2 implies delta(D1) >= delta(D2)
proof
  delta(D2) in rng upper_volume(chi(A,A),D2) by XXREAL_2:def 8;
  then consider j such that
A1: j in dom upper_volume(chi(A,A),D2) and
A2: delta(D2) = upper_volume(chi(A,A),D2).j by PARTFUN1:3;
  len upper_volume(chi(A,A),D2) = len D2 by INTEGRA1:def 6;
  then
A3: j in dom D2 by A1,FINSEQ_3:29;
  then
A4: delta(D2) = vol(divset(D2,j)) by A2,INTEGRA1:20;
  assume D1 <= D2;
  then consider i being Nat such that
A5: i in dom D1 and
A6: divset(D2,j) c= divset(D1,i) by A3,INTEGRA2:37;
A7: vol(divset(D1,i)) = upper_volume(chi(A,A),D1).i by A5,INTEGRA1:20;
  len upper_volume(chi(A,A),D1) = len D1 by INTEGRA1:def 6;
  then i in dom upper_volume(chi(A,A),D1) by A5,FINSEQ_3:29;
  then vol(divset(D1,i)) in rng upper_volume(chi(A,A),D1) by A7,FUNCT_1:def 3;
  then delta(D2) <= max rng upper_volume(chi(A,A),D1)
    by A4,A6,INTEGRA2:38,XXREAL_2:61;
  hence thesis;
end;

theorem Th2:
  vol(A) <> 0 implies ex i st i in dom D & vol(divset(D,i)) > 0
proof
  assume
A1: vol(A) <>0;
A2: len D in dom D by FINSEQ_5:6;
  assume
A3: for i st i in dom D holds vol(divset(D,i))<=0;
A4: i in dom D implies vol(divset(D,i))=0
  proof
    assume i in dom D;
    then vol(divset(D,i)) <= 0 by A3;
    hence thesis by INTEGRA1:9;
  end;
A5: i in dom D implies upper_bound divset(D,i)=lower_bound divset(D,i)
  proof
    assume i in dom D;
    then vol(divset(D,i))=0 by A4;
    then upper_bound divset(D,i)-lower_bound divset(D,i)=0 by INTEGRA1:def 5;
    hence thesis;
  end;
A6: len D = 1
  proof
    len D < len D+1 by NAT_1:13;
    then
A7: len D-1 < len D by XREAL_1:19;
    assume
A8: len D <> 1;
    then
A9: upper_bound divset(D,len D)=D.(len D) by A2,INTEGRA1:def 4;
A10: len D-1 in dom D by A2,A8,INTEGRA1:7;
    lower_bound divset(D,len D)=D.(len D-1) by A2,A8,INTEGRA1:def 4;
    then lower_bound divset(D,len D)<upper_bound divset(D,len D) by A2,A9,A10
,A7,SEQM_3:def 1;
    hence contradiction by A5,A2;
  end;
  then upper_bound divset(D,len D)=D.(len D) by A2,INTEGRA1:def 4;
  then
A11: upper_bound divset(D,len D)=upper_bound A by INTEGRA1:def 2;
  lower_bound divset(D,len D)=lower_bound A by A2,A6,INTEGRA1:def 4;
  then upper_bound A = lower_bound A+0 by A5,A2,A11;
  then upper_bound A- lower_bound A = 0;
  hence contradiction by A1,INTEGRA1:def 5;
end;

theorem Th3:
  x in A implies ex j st j in dom D & x in divset(D,j)
proof
  assume
A1: x in A;
  then
A2: lower_bound A <= x by INTEGRA2:1;
A3: x <= upper_bound A by A1,INTEGRA2:1;
A4: rng D <> {};
  then
A5: 1 in dom D by FINSEQ_3:32;
  per cases;
  suppose
    x in rng D;
    then consider j such that
A6: j in dom D and
A7: D.j = x by PARTFUN1:3;
    x in divset(D,j)
    proof
      per cases;
      suppose
A8:     j=1;
A9:     ex a,b st a <= b & a=lower_bound divset(D,j) & b= upper_bound
        divset(D,j) by SEQ_4:11;
        upper_bound divset(D,j)=D.j by A6,A8,INTEGRA1:def 4;
        hence thesis by A7,A9,INTEGRA2:1;
      end;
      suppose
A10:    j<>1;
A11:    ex a,b st a <= b & a=lower_bound divset(D,j) & b= upper_bound
        divset(D,j) by SEQ_4:11;
        upper_bound divset(D,j)=D.j by A6,A10,INTEGRA1:def 4;
        hence thesis by A7,A11,INTEGRA2:1;
      end;
    end;
    hence thesis by A6;
  end;
  suppose
A12: not x in rng D;
    defpred MIN[Nat] means x < upper_bound divset(D,$1) & $1 in dom D;
A13: len D in dom D by FINSEQ_5:6;
    upper_bound divset(D,len D)=D.(len D)
    proof
      per cases;
      suppose
        len D=1;
        hence thesis by A13,INTEGRA1:def 4;
      end;
      suppose
        len D<>1;
        hence thesis by A13,INTEGRA1:def 4;
      end;
    end;
    then
A14: upper_bound divset(D,len D) = upper_bound A by INTEGRA1:def 2;
    x <> upper_bound A
    proof
      assume x = upper_bound A;
      then x = D.(len D) by INTEGRA1:def 2;
      hence contradiction by A12,A13,FUNCT_1:def 3;
    end;
    then x < upper_bound divset(D,len D) by A3,A14,XXREAL_0:1;
    then
A15: ex k be Nat st MIN[k] by A13;
    consider k be Nat such that
A16: MIN[k] & for n be Nat st MIN[n] holds k <= n from NAT_1:sch 5(A15
    );
    defpred MAX[Nat] means x >= lower_bound divset(D,$1) & $1 in dom D;
    lower_bound divset(D,1)=lower_bound A by A5,INTEGRA1:def 4;
    then
A17: ex k be Nat st MAX[k] by A2,A4,FINSEQ_3:32;
A18: for k be Nat holds MAX[k] implies k <= len D by FINSEQ_3:25;
    consider j be Nat such that
A19: MAX[j] & for n be Nat st MAX[n] holds n <= j from NAT_1:sch 6(A18
    ,A17);
    k=j
    proof
      assume
A20:  k<>j;
      per cases by A20,XXREAL_0:1;
      suppose
A21:    k < j;
A22:    upper_bound divset(D,k)=D.k
        proof
          per cases;
          suppose
            k=1;
            hence thesis by A16,INTEGRA1:def 4;
          end;
          suppose
            k<>1;
            hence thesis by A16,INTEGRA1:def 4;
          end;
        end;
A23:    1 <= k by A16,FINSEQ_3:25;
        then D.(j-1) <= x by A19,A21,INTEGRA1:def 4;
        then
A24:    D.(j-1) < D.k by A16,A22,XXREAL_0:2;
        j-1 in dom D by A19,A21,A23,INTEGRA1:7;
        then j-1 < k by A16,A24,SEQ_4:137;
        then j < k+1 by XREAL_1:19;
        hence contradiction by A21,NAT_1:13;
      end;
      suppose
A25:    k > j;
        x < upper_bound divset(D,j)
        proof
A26:      upper_bound divset(D,j)=D.j
          proof
            per cases;
            suppose
              j=1;
              hence thesis by A19,INTEGRA1:def 4;
            end;
            suppose
              j<>1;
              hence thesis by A19,INTEGRA1:def 4;
            end;
          end;
          assume
A27:      x >= upper_bound divset(D,j);
A28:      j+1 <= k by A25,NAT_1:13;
A29:      1 <= j by A19,FINSEQ_3:25;
          then
A30:      1 <= j+1 by NAT_1:13;
          k <= len D by A16,FINSEQ_3:25;
          then j+1 <= len D by A28,XXREAL_0:2;
          then
A31:      j+1 in dom D by A30,FINSEQ_3:25;
          j+1 > 1 by A29,NAT_1:13;
          then lower_bound divset(D,j+1) = D.(j+1-1) by A31,INTEGRA1:def 4
            .=D.j;
          then j+1 <= j by A19,A27,A26,A31;
          hence contradiction by NAT_1:13;
        end;
        hence contradiction by A16,A19,A25;
      end;
    end;
    then x in divset(D,k) by A16,A19,INTEGRA2:1;
    hence thesis by A16;
  end;
end;

theorem Th4:
  ex D st D1 <= D & D2 <= D & rng D = rng D1 \/ rng D2
proof
  consider D being FinSequence of REAL such that
A1: rng D = rng(D1^D2) and
A2: len D = card rng(D1^D2) and
A3: D is increasing by SEQ_4:140;
  reconsider D as increasing FinSequence of REAL by A3;
  reconsider D as non empty increasing FinSequence of REAL by A1;
A4: rng D2 c= A by INTEGRA1:def 2;
A5: rng(D1^D2) = rng D1 \/ rng D2 by FINSEQ_1:31;
  then
A6: rng D1 c= rng(D1^D2) by XBOOLE_1:7;
  rng D1 c= A by INTEGRA1:def 2;
  then
A7: rng D c= A by A1,A5,A4,XBOOLE_1:8;
  D.len D = upper_bound A
  proof
    len D1 in dom D1 by FINSEQ_5:6;
    then D1.len D1 in rng D1 by FUNCT_1:def 3;
    then consider k such that
A8: k in dom D and
A9: D1.len D1=D.k by A1,A6,PARTFUN1:3;
    assume
A10: D.len D <> upper_bound A;
A11: len D in dom D by FINSEQ_5:6;
    then D.len D in rng D by FUNCT_1:def 3;
    then D.len D <= upper_bound A by A7,INTEGRA2:1;
    then
A12: D.len D < upper_bound A by A10,XXREAL_0:1;
    D1.len D1 = upper_bound A by INTEGRA1:def 2;
    then k > len D by A11,A12,A8,A9,SEQ_4:137;
    hence contradiction by A8,FINSEQ_3:25;
  end;
  then reconsider D as Division of A by A7,INTEGRA1:def 2;
  take D;
  card rng D1 <= len D by A2,A5,NAT_1:43,XBOOLE_1:7;
  then len D1 <= len D by FINSEQ_4:62;
  hence D1 <= D by A1,A6,INTEGRA1:def 18;
A13: rng D2 c= rng(D1^D2) by A5,XBOOLE_1:7;
  card rng D2 <= len D by A2,A5,NAT_1:43,XBOOLE_1:7;
  then len D2 <= len D by FINSEQ_4:62;
  hence D2 <= D by A1,A13,INTEGRA1:def 18;
  thus thesis by A1,FINSEQ_1:31;
end;

theorem Th5:
  delta(D1) < min rng upper_volume(chi(A,A),D) implies for x,y,i st
i in dom D1 & x in rng D /\ divset(D1,i) & y in rng D /\ divset(D1,i) holds x=y
proof
  assume
A1: delta(D1)<min rng upper_volume(chi(A,A),D);
  let x,y,i;
  assume
A2: i in dom D1;
  assume
A3: x in rng D /\ divset(D1,i);
  then x in rng D by XBOOLE_0:def 4;
  then consider n such that
A4: n in dom D and
A5: x=D.n by PARTFUN1:3;
  assume
A6: y in rng D /\ divset(D1,i);
  then y in rng D by XBOOLE_0:def 4;
  then consider m such that
A7: m in dom D and
A8: y=D.m by PARTFUN1:3;
  assume
A9: x<>y;
A10: |.D.n-D.m.| >= min rng upper_volume(chi(A,A),D)
  proof
    per cases by A9,A5,A8,XXREAL_0:1;
    suppose
      n<m;
      then
A11:  n+1<=m by NAT_1:13;
A12:  1<=n+1 by NAT_1:12;
      m in Seg len D by A7,FINSEQ_1:def 3;
      then m<=len D by FINSEQ_1:1;
      then n+1<=len D by A11,XXREAL_0:2;
      then
A13:  n+1 in Seg len D by A12,FINSEQ_1:1;
      then
A14:  n+1 in dom D by FINSEQ_1:def 3;
      then D.m>=D.(n+1) by A7,A11,SEQ_4:137;
      then D.n-D.m <= D.n-D.(n+1) by XREAL_1:10;
      then
A15:  -(D.n-D.m) >= -(D.n-D.(n+1)) by XREAL_1:24;
      n+1 in Seg len upper_volume(chi(A,A),D) by A13,INTEGRA1:def 6;
      then n+1 in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
      then
A16:  (upper_volume(chi(A,A),D)).(n+1) in rng upper_volume(chi(A,A),D) by
FUNCT_1:def 3;
      n in Seg len D by A4,FINSEQ_1:def 3;
      then 1<=n by FINSEQ_1:1;
      then
A17:  n+1 <> 1 by NAT_1:13;
      then
A18:  upper_bound divset(D,n+1)=D.(n+1) by A14,INTEGRA1:def 4;
      -|.D.n-D.m.| <= D.n-D.m by ABSVALUE:4;
      then
A19:  |.D.n-D.m.| >= -(D.n-D.m) by XREAL_1:26;
      lower_bound divset(D,n+1)=D.((n+1)-1) by A14,A17,INTEGRA1:def 4;
      then vol(divset(D,n+1))=D.(n+1)-D.n by A18,INTEGRA1:def 5;
      then D.(n+1)-D.n=(upper_volume(chi(A,A),D)).(n+1) by A14,INTEGRA1:20;
      then D.(n+1)-D.n>=min rng upper_volume(chi(A,A),D) by A16,XXREAL_2:def 7;
      then -(D.n-D.m) >= min rng upper_volume(chi(A,A),D) by A15,XXREAL_0:2;
      hence thesis by A19,XXREAL_0:2;
    end;
    suppose
      n>m;
      then
A20:  m+1<=n by NAT_1:13;
      n in Seg len D by A4,FINSEQ_1:def 3;
      then n<=len D by FINSEQ_1:1;
      then
A21:  m+1<=len D by A20,XXREAL_0:2;
A22:  1<=m+1 by NAT_1:12;
      then
A23:  m+1 in dom D by A21,FINSEQ_3:25;
      then D.(m+1)<=D.n by A4,A20,SEQ_4:137;
      then
A24:  D.n-D.m >= D.(m+1)-D.m by XREAL_1:9;
      m+1 in Seg len D by A22,A21,FINSEQ_1:1;
      then m+1 in Seg len upper_volume(chi(A,A),D) by INTEGRA1:def 6;
      then m+1 in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
      then
A25:  (upper_volume(chi(A,A),D)).(m+1) in rng upper_volume(chi(A,A),D) by
FUNCT_1:def 3;
      m in Seg len D by A7,FINSEQ_1:def 3;
      then 1<=m by FINSEQ_1:1;
      then
A26:  1 < m+1 by NAT_1:13;
      then
A27:  upper_bound divset(D,m+1)=D.(m+1) by A23,INTEGRA1:def 4;
      lower_bound divset(D,m+1)=D.((m+1)-1) by A23,A26,INTEGRA1:def 4;
      then vol(divset(D,m+1))=D.(m+1)-D.m by A27,INTEGRA1:def 5;
      then D.(m+1)-D.m=(upper_volume(chi(A,A),D)).(m+1) by A23,INTEGRA1:20;
      then D.(m+1)-D.m>=min rng upper_volume(chi(A,A),D) by A25,XXREAL_2:def 7;
      then
A28:  D.n-D.m >= min rng upper_volume(chi(A,A),D) by A24,XXREAL_0:2;
      |.D.n-D.m.| >= D.n-D.m by ABSVALUE:4;
      hence thesis by A28,XXREAL_0:2;
    end;
  end;
  |.D.n-D.m.| <= delta D1
  proof
    per cases by A9,A5,A8,XXREAL_0:1;
    suppose
A29:  n<m;
      i in Seg len D1 by A2,FINSEQ_1:def 3;
      then i in Seg len upper_volume(chi(A,A),D1) by INTEGRA1:def 6;
      then i in dom upper_volume(chi(A,A),D1) by FINSEQ_1:def 3;
      then upper_volume(chi(A,A),D1).i in rng upper_volume(chi(A,A),D1) by
FUNCT_1:def 3;
      then
      upper_volume(chi(A,A),D1).i <= max rng upper_volume(chi(A,A),D1) by
XXREAL_2:def 8;
      then
A30:  upper_volume(chi(A,A),D1).i<=delta(D1);
      D.m in divset(D1,i) by A6,A8,XBOOLE_0:def 4;
      then D.m <= upper_bound divset(D1,i) by INTEGRA2:1;
      then
A31:  D.m-lower_bound divset(D1,i)<= upper_bound divset(D1,i)-lower_bound
      divset(D1,i) by XREAL_1:9;
      D.n in divset(D1,i) by A3,A5,XBOOLE_0:def 4;
      then D.n >= lower_bound divset(D1,i) by INTEGRA2:1;
      then D.m-D.n <= D.m-lower_bound divset(D1,i) by XREAL_1:10;
      then D.m-D.n <= upper_bound divset(D1,i)- lower_bound divset(D1,i) by A31
,XXREAL_0:2;
      then D.m-D.n <= vol(divset(D1,i)) by INTEGRA1:def 5;
      then
A32:  D.m-D.n <= upper_volume(chi(A,A),D1).i by A2,INTEGRA1:20;
      D.n<D.m by A4,A7,A29,SEQM_3:def 1;
      then D.n-D.m<0 by XREAL_1:49;
      then |.D.n-D.m.|=-(D.n-D.m) by ABSVALUE:def 1
        .= D.m-D.n;
      hence thesis by A32,A30,XXREAL_0:2;
    end;
    suppose
A33:  n>m;
      i in Seg len D1 by A2,FINSEQ_1:def 3;
      then i in Seg len upper_volume(chi(A,A),D1) by INTEGRA1:def 6;
      then i in dom upper_volume(chi(A,A),D1) by FINSEQ_1:def 3;
      then upper_volume(chi(A,A),D1).i in rng upper_volume(chi(A,A),D1) by
FUNCT_1:def 3;
      then
      upper_volume(chi(A,A),D1).i <= max rng upper_volume(chi(A,A),D1) by
XXREAL_2:def 8;
      then
A34:  upper_volume(chi(A,A),D1).i<=delta(D1);
      D.n in divset(D1,i) by A3,A5,XBOOLE_0:def 4;
      then D.n <= upper_bound divset(D1,i) by INTEGRA2:1;
      then
A35:  D.n-lower_bound divset(D1,i)<= upper_bound divset(D1,i)-
      lower_bound divset(D1,i) by XREAL_1:9;
      D.m in divset(D1,i) by A6,A8,XBOOLE_0:def 4;
      then D.m >= lower_bound divset(D1,i) by INTEGRA2:1;
      then D.n-D.m <= D.n-lower_bound divset(D1,i) by XREAL_1:10;
      then
      D.n-D.m <= upper_bound divset(D1,i)-lower_bound divset(D1,i) by A35,
XXREAL_0:2;
      then D.n-D.m <= vol(divset(D1,i)) by INTEGRA1:def 5;
      then
A36:  D.n-D.m <= upper_volume(chi(A,A),D1).i by A2,INTEGRA1:20;
      D.n>D.m by A4,A7,A33,SEQM_3:def 1;
      then D.n-D.m>0 by XREAL_1:50;
      then |.D.n-D.m.|=D.n-D.m by ABSVALUE:def 1;
      hence thesis by A36,A34,XXREAL_0:2;
    end;
  end;
  hence contradiction by A1,A10,XXREAL_0:2;
end;

theorem Th6:
  for p,q st rng p = rng q & p is increasing & q is increasing
  holds p = q
proof
  let p,q;
  assume
A1: rng p = rng q;
  assume that
A2: p is increasing and
A3: q is increasing;
A4: q is one-to-one by A3;
  p is one-to-one by A2;
  then len p = len q by A1,A4,FINSEQ_1:48;
  hence thesis by A1,A2,A3,SEQ_4:141;
end;

theorem Th7:
  D <= D1 & i in dom D & j in dom D & i <= j implies indx(D1,D,i)
  <= indx(D1,D,j) & indx(D1,D,i) in dom D1
proof
  assume that
A1: D <= D1 and
A2: i in dom D and
A3: j in dom D and
A4: i <= j;
A5: D.i = D1.indx(D1,D,i) by A1,A2,INTEGRA1:def 19;
A6: indx(D1,D,j) in dom D1 by A1,A3,INTEGRA1:def 19;
A7: D.j = D1.indx(D1,D,j) by A1,A3,INTEGRA1:def 19;
A8: indx(D1,D,i) in dom D1 by A1,A2,INTEGRA1:def 19;
  D.i <= D.j by A2,A3,A4,SEQ_4:137;
  hence thesis by A5,A8,A7,A6,SEQM_3:def 1;
end;

theorem Th8:
  D <= D1 & i in dom D & j in dom D & i < j implies indx(D1,D,i) <
  indx(D1,D,j)
proof
  assume that
A1: D <= D1 and
A2: i in dom D and
A3: j in dom D and
A4: i < j;
A5: D.i = D1.indx(D1,D,i) by A1,A2,INTEGRA1:def 19;
A6: indx(D1,D,j) in dom D1 by A1,A3,INTEGRA1:def 19;
A7: D.j = D1.indx(D1,D,j) by A1,A3,INTEGRA1:def 19;
A8: indx(D1,D,i) in dom D1 by A1,A2,INTEGRA1:def 19;
  D.i < D.j by A2,A3,A4,SEQM_3:def 1;
  hence thesis by A5,A8,A7,A6,SEQ_4:137;
end;

theorem Th9:
  delta(D) >= 0
proof
  consider y being Element of REAL such that
A1: y in rng D by SUBSET_1:4;
  consider n such that
A2: n in dom D and
  y=D.n by A1,PARTFUN1:3;
  n in Seg len D by A2,FINSEQ_1:def 3;
  then n in Seg len upper_volume(chi(A,A),D) by INTEGRA1:def 6;
  then n in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
  then upper_volume(chi(A,A),D).n in rng upper_volume(chi(A,A),D) by
FUNCT_1:def 3;
  then
A3: upper_volume(chi(A,A),D).n <= max rng upper_volume(chi(A,A),D) by
XXREAL_2:def 8;
  vol(divset(D,n))=upper_volume(chi(A,A),D).n by A2,INTEGRA1:20;
  then upper_volume(chi(A,A),D).n >= 0 by INTEGRA1:9;
  hence thesis by A3;
end;

Lm3: for A be non empty closed_interval Subset of REAL,
  g be Function of A,REAL st g|A
is bounded holds upper_bound rng g >= lower_bound rng g
proof
  let A be non empty closed_interval Subset of REAL;
  let g be Function of A,REAL;
  assume
A1: g|A is bounded;
  then
A2: rng g is bounded_below by INTEGRA1:11;
  rng g is bounded_above by A1,INTEGRA1:13;
  hence thesis by A2,SEQ_4:11;
end;

Lm4: for A,B be non empty closed_interval Subset of REAL,
 f be Function of A,REAL st f|A
is bounded & B c= A holds lower_bound rng(f|B) >= lower_bound rng f &
lower_bound rng f <= upper_bound rng(f|B) & upper_bound rng(f|B) <= upper_bound
rng f & lower_bound rng(f|B) <= upper_bound rng f
proof
  let A,B be non empty closed_interval Subset of REAL, f be Function of A,REAL;
  assume that
A1: f|A is bounded and
A2: B c= A;
  B c=dom f by A2,FUNCT_2:def 1;
  then
A3: dom(f|B)=B by RELAT_1:62;
  then
A4: rng(f|B) <> {} by RELAT_1:42;
  consider x being Element of REAL such that
A5: x in B by SUBSET_1:4;
A6: (f|B).x in rng(f|B) by A5,A3,FUNCT_1:def 3;
A7: rng f is bounded_below by A1,INTEGRA1:11;
  hence
A8: lower_bound rng(f|B) >= lower_bound rng f by A4,RELAT_1:70,SEQ_4:47;
  rng(f|B) is bounded_below by A7,RELAT_1:70,XXREAL_2:44;
  then
A9: lower_bound rng(f|B)<=(f|B).x by A6,SEQ_4:def 2;
A10: rng f is bounded_above by A1,INTEGRA1:13;
  then rng(f|B) is bounded_above by RELAT_1:70,XXREAL_2:43;
  then upper_bound rng(f|B)>=(f|B).x by A6,SEQ_4:def 1;
  then
A11: lower_bound rng(f|B) <= upper_bound rng(f|B) by A9,XXREAL_0:2;
  hence upper_bound rng(f|B) >= lower_bound rng f by A8,XXREAL_0:2;
  thus upper_bound rng(f|B) <= upper_bound rng f by A10,A4,RELAT_1:70,SEQ_4:48;
  hence thesis by A11,XXREAL_0:2;
end;

Lm5: j in dom D1 implies vol(divset(D1,j)) <= delta D1
proof
  assume
A1: j in dom D1;
  then j in Seg len D1 by FINSEQ_1:def 3;
  then j in Seg len upper_volume(chi(A,A),D1) by INTEGRA1:def 6;
  then j in dom upper_volume(chi(A,A),D1) by FINSEQ_1:def 3;
  then upper_volume(chi(A,A),D1).j in rng upper_volume(chi(A,A),D1) by
FUNCT_1:def 3;
  then upper_volume(chi(A,A),D1).j <= max rng upper_volume(chi(A,A),D1) by
XXREAL_2:def 8;
  then vol(divset(D1,j)) <= max rng upper_volume(chi(A,A),D1) by A1,INTEGRA1:20
;
  hence thesis;
end;

Lm6: for j1 be Element of NAT st j1 = len D1 - 1 & x in divset(D1,len D1) &
len D1 >= 2 & D1 <= D2 & rng D2 = rng D1 \/ {x} holds rng (D2|indx(D2,D1,j1)) =
rng (D1|j1)
proof
  let j1 be Element of NAT;
  assume that
A1: j1 = len D1 - 1 and
A2: x in divset(D1,len D1) and
A3: len D1 >= 2;
A4: len D1 in dom D1 by FINSEQ_5:6;
  assume that
A5: D1<=D2 and
A6: rng D2 = rng D1 \/ {x};
A7: len D1 <> 1 by A3;
  then
A8: len D1-1 in dom D1 by A4,INTEGRA1:7;
  then
A9: indx(D2,D1,j1) in dom D2 by A1,A5,INTEGRA1:def 19;
  then
A10: indx(D2,D1,j1) <= len D2 by FINSEQ_3:25;
A11: j1 in dom D1 by A1,A4,A7,INTEGRA1:7;
  then
A12: 1 <= j1 by FINSEQ_3:25;
A13: j1 <= len D1 by A11,FINSEQ_3:25;
  lower_bound divset(D1,len D1) <= x by A2,INTEGRA2:1;
  then
A14: D1.j1 <= x by A1,A4,A7,INTEGRA1:def 4;
  for x1 being object st x1 in rng(D2|indx(D2,D1,j1)) holds x1 in rng(D1|j1)
  proof
    let x1 be object;
    assume x1 in rng(D2|indx(D2,D1,j1));
    then consider k such that
A15: k in dom(D2|indx(D2,D1,j1)) and
A16: x1=(D2|indx(D2,D1,j1)).k by PARTFUN1:3;
    k in Seg len(D2|indx(D2,D1,j1)) by A15,FINSEQ_1:def 3;
    then
A17: k in Seg indx(D2,D1,j1) by A10,FINSEQ_1:59;
    then
A18: k in dom D2 by A9,RFINSEQ:6;
A19: len(D1|j1) = j1 by A13,FINSEQ_1:59;
    k <= indx(D2,D1,j1) by A17,FINSEQ_1:1;
    then D2.k <= D2.indx(D2,D1,j1) by A9,A18,SEQ_4:137;
    then
A20: D2.k <= D1.j1 by A1,A5,A8,INTEGRA1:def 19;
A21: D2.k in rng D1 implies D2.k in rng(D1|j1)
    proof
      assume D2.k in rng D1;
      then consider m such that
A22:  m in dom D1 and
A23:  D2.k = D1.m by PARTFUN1:3;
      m in Seg len D1 by A22,FINSEQ_1:def 3;
      then
A24:  1 <= m by FINSEQ_1:1;
A25:  m <= j1 by A11,A20,A22,A23,SEQM_3:def 1;
      then m in Seg j1 by A24,FINSEQ_1:1;
      then
A26:  D2.k = (D1|j1).m by A11,A23,RFINSEQ:6;
      m in dom (D1|j1) by A19,A24,A25,FINSEQ_3:25;
      hence thesis by A26,FUNCT_1:def 3;
    end;
A27: D2.k in {x} implies D2.k = D1.j1
    proof
      assume D2.k in {x};
      then D1.j1 <= D2.k by A14,TARSKI:def 1;
      hence thesis by A20,XXREAL_0:1;
    end;
A28: D2.k in {x} implies D2.k in rng(D1|j1)
    proof
      j1 in dom(D1|j1) by A12,A19,FINSEQ_3:25;
      then
A29:  (D1|j1).j1 in rng(D1|j1) by FUNCT_1:def 3;
      assume
A30:  D2.k in {x};
      j1 in Seg j1 by A12,FINSEQ_1:1;
      hence thesis by A11,A27,A30,A29,RFINSEQ:6;
    end;
    D2.k in rng D2 by A18,FUNCT_1:def 3;
    hence thesis by A6,A9,A16,A17,A28,A21,RFINSEQ:6,XBOOLE_0:def 3;
  end;
  then
A31: rng(D2|indx(D2,D1,j1)) c= rng (D1|j1);
  for x1 being object st x1 in rng(D1|j1) holds x1 in rng(D2|indx(D2,D1,j1))
  proof
    let x1 be object;
    assume x1 in rng(D1|j1);
    then consider k such that
A32: k in dom(D1|j1) and
A33: x1=(D1|j1).k by PARTFUN1:3;
    k in Seg len(D1|j1) by A32,FINSEQ_1:def 3;
    then
A34: k in Seg j1 by A13,FINSEQ_1:59;
    then
A35: k in dom D1 by A11,RFINSEQ:6;
    k <= j1 by A34,FINSEQ_1:1;
    then D1.k <= D1.j1 by A1,A8,A35,SEQ_4:137;
    then D2.indx(D2,D1,k) <= D1.j1 by A5,A35,INTEGRA1:def 19;
    then
A36: D2.indx(D2,D1,k)<=D2.indx(D2,D1,j1) by A1,A5,A8,INTEGRA1:def 19;
A37: (D1|j1).k = D1.k by A11,A34,RFINSEQ:6;
    D1.k in rng D1 by A35,FUNCT_1:def 3;
    then x1 in rng D2 by A6,A33,A37,XBOOLE_0:def 3;
    then consider n such that
A38: n in dom D2 and
A39: x1=D2.n by PARTFUN1:3;
    D2.indx(D2,D1,k)=D2.n by A5,A33,A37,A35,A39,INTEGRA1:def 19;
    then
A40: n <= indx(D2,D1,j1) by A9,A38,A36,SEQM_3:def 1;
    1 <= n by A38,FINSEQ_3:25;
    then
A41: n in Seg indx(D2,D1,j1) by A40,FINSEQ_1:1;
    then n in Seg len(D2|indx(D2,D1,j1)) by A10,FINSEQ_1:59;
    then
A42: n in dom(D2|indx(D2,D1,j1)) by FINSEQ_1:def 3;
    D2.n = (D2|indx(D2,D1,j1)).n by A9,A41,RFINSEQ:6;
    hence thesis by A39,A42,FUNCT_1:def 3;
  end;
  then rng(D1|j1) c= rng(D2|indx(D2,D1,j1));
  hence thesis by A31,XBOOLE_0:def 10;
end;

theorem Th10:
  x in divset(D1,len D1) & len D1 >= 2 & D1<=D2 & rng D2 = rng D1
\/ {x} & g|A is bounded implies Sum lower_volume(g,D2) - Sum lower_volume(g,D1)
  <= (upper_bound rng g-lower_bound rng g)*delta(D1)
proof
  assume that
A1: x in divset(D1,len D1) and
A2: len D1 >= 2;
  set j = len D1;
  assume that
A3: D1<=D2 and
A4: rng D2 = rng D1 \/ {x};
A5: len D1 in dom D1 by FINSEQ_5:6;
  then
A6: indx(D2,D1,j) in dom D2 by A3,INTEGRA1:def 19;
A7: len D1 <> 1 by A2;
  then reconsider j1=len D1-1 as Element of NAT by A5,INTEGRA1:7;
A8: j1 in dom D1 by A5,A7,INTEGRA1:7;
  then
A9: j1 <= len D1 by FINSEQ_3:25;
A10: 1 <= j1 by A8,FINSEQ_3:25;
  then mid(D1,1,j1) is increasing by A5,A7,INTEGRA1:7,35;
  then
A11: D1|j1 is increasing by A10,FINSEQ_6:116;
A12: len D1-1 in dom D1 by A5,A7,INTEGRA1:7;
  then
A13: indx(D2,D1,j1) in dom D2 by A3,INTEGRA1:def 19;
  then
A14: 1 <= indx(D2,D1,j1) by FINSEQ_3:25;
  then mid(D2,1,indx(D2,D1,j1)) is increasing by A13,INTEGRA1:35;
  then
A15: D2|indx(D2,D1,j1) is increasing by A14,FINSEQ_6:116;
A16: indx(D2,D1,j1) <= len D2 by A13,FINSEQ_3:25;
  then
A17: len (D2|indx(D2,D1,j1))=indx(D2,D1,j1) by FINSEQ_1:59;
A18: rng (D2|indx(D2,D1,j1)) = rng (D1|j1) by A1,A2,A3,A4,Lm6;
  then
A19: D2|indx(D2,D1,j1)=D1|j1 by A15,A11,Th6;
A20: for k st 1 <= k & k <= j1 holds k=indx(D2,D1,k)
  proof
    let k;
    assume that
A21: 1 <= k and
A22: k <= j1;
    assume
A23: k<>indx(D2,D1,k);
    per cases by A23,XXREAL_0:1;
    suppose
A24:  k > indx(D2,D1,k);
      k <= len D1 by A9,A22,XXREAL_0:2;
      then
A25:  k in dom D1 by A21,FINSEQ_3:25;
      then indx(D2,D1,k) in dom D2 by A3,INTEGRA1:def 19;
      then indx(D2,D1,k) in Seg len D2 by FINSEQ_1:def 3;
      then
A26:  1<=indx(D2,D1,k) by FINSEQ_1:1;
A27:  indx(D2,D1,k) < j1 by A22,A24,XXREAL_0:2;
      then
A28:  indx(D2,D1,k) in Seg j1 by A26,FINSEQ_1:1;
      indx(D2,D1,k)<=indx(D2,D1,j1) by A3,A8,A22,A25,Th7;
      then indx(D2,D1,k) in Seg indx(D2,D1,j1) by A26,FINSEQ_1:1;
      then
A29:  (D2|indx(D2,D1,j1)).indx(D2,D1,k)=D2.indx(D2,D1,k) by A13,RFINSEQ:6;
      indx(D2,D1,k) <= len D1 by A9,A27,XXREAL_0:2;
      then indx(D2,D1,k) in dom D1 by A26,FINSEQ_3:25;
      then
A30:  D1.k > D1.indx(D2,D1,k) by A24,A25,SEQM_3:def 1;
      D1.k=D2.indx(D2,D1,k) by A3,A25,INTEGRA1:def 19;
      hence contradiction by A8,A19,A29,A30,A28,RFINSEQ:6;
    end;
    suppose
A31:  k < indx(D2,D1,k);
      k <= len D1 by A9,A22,XXREAL_0:2;
      then
A32:  k in dom D1 by A21,FINSEQ_3:25;
      then indx(D2,D1,k) <= indx(D2,D1,j1) by A3,A8,A22,Th7;
      then
A33:  k <= indx(D2,D1,j1) by A31,XXREAL_0:2;
      then k <= len D2 by A16,XXREAL_0:2;
      then
A34:  k in dom D2 by A21,FINSEQ_3:25;
      k in Seg j1 by A21,A22,FINSEQ_1:1;
      then
A35:  D1.k = (D1|j1).k by A12,RFINSEQ:6;
      indx(D2,D1,k) in dom D2 by A3,A32,INTEGRA1:def 19;
      then
A36:  D2.k < D2.indx(D2,D1,k) by A31,A34,SEQM_3:def 1;
A37:  k in Seg indx(D2,D1,j1) by A21,A33,FINSEQ_1:1;
      D1.k=D2.indx(D2,D1,k) by A3,A32,INTEGRA1:def 19;
      hence contradiction by A13,A19,A35,A36,A37,RFINSEQ:6;
    end;
  end;
A38: for k be Nat st 1 <= k & k <= len(lower_volume(g,D1)|j1) holds (
  lower_volume(g,D1)|j1).k = (lower_volume(g,D2)|indx(D2,D1,j1)).k
  proof
    indx(D2,D1,j1) in Seg len D2 by A13,FINSEQ_1:def 3;
    then indx(D2,D1,j1) in Seg len lower_volume(g,D2) by INTEGRA1:def 7;
    then
A39: indx(D2,D1,j1) in dom lower_volume(g,D2) by FINSEQ_1:def 3;
    let k be Nat;
    assume that
A40: 1 <= k and
A41: k <= len(lower_volume(g,D1)|j1);
    reconsider k as Element of NAT by ORDINAL1:def 12;
A42: len(lower_volume(g,D1)) = len D1 by INTEGRA1:def 7;
    then
A43: k <= j1 by A9,A41,FINSEQ_1:59;
    then k <= len D1 by A9,XXREAL_0:2;
    then k in Seg len D1 by A40,FINSEQ_1:1;
    then
A44: k in dom D1 by FINSEQ_1:def 3;
    then
A45: indx(D2,D1,k) in dom D2 by A3,INTEGRA1:def 19;
A46: k in Seg j1 by A40,A43,FINSEQ_1:1;
    then indx(D2,D1,k) in Seg j1 by A20,A40,A43;
    then
A47: indx(D2,D1,k) in Seg indx(D2,D1,j1) by A10,A20;
    then indx(D2,D1,k)<=indx(D2,D1,j1) by FINSEQ_1:1;
    then
A48: indx(D2,D1,k)<=len D2 by A16,XXREAL_0:2;
A49: D1.k=D2.indx(D2,D1,k) by A3,A44,INTEGRA1:def 19;
A50: lower_bound divset(D1,k)=lower_bound divset(D2,indx(D2,D1,k)) &
    upper_bound divset(D1,k)=upper_bound divset(D2,indx(D2,D1,k))
    proof
      per cases;
      suppose
A51:    k=1;
        then
A52:    upper_bound divset(D1,k)=D1.k by A44,INTEGRA1:def 4;
A53:    lower_bound divset(D1,k)=lower_bound A by A44,A51,INTEGRA1:def 4;
        indx(D2,D1,k)=1 by A10,A20,A51;
        hence thesis by A45,A49,A53,A52,INTEGRA1:def 4;
      end;
      suppose
A54:    k<>1;
        then reconsider k1=k-1 as Element of NAT by A44,INTEGRA1:7;
A55:    k-1 in dom D1 by A44,A54,INTEGRA1:7;
        then
A56:    1 <= k1 by FINSEQ_3:25;
        k <= k+1 by NAT_1:11;
        then k1 <= k by XREAL_1:20;
        then
A57:    k1 <= j1 by A43,XXREAL_0:2;
A58:    indx(D2,D1,k)<>1 by A20,A40,A43,A54;
        then
A59:    lower_bound divset(D2,indx(D2,D1,k))=D2.(indx(D2,D1,k)-1) by A45,
INTEGRA1:def 4;
A60:    upper_bound divset(D1,k)=D1.k by A44,A54,INTEGRA1:def 4;
A61:    lower_bound divset(D1,k)=D1.(k-1) by A44,A54,INTEGRA1:def 4;
A62:    upper_bound divset(D2,indx(D2,D1,k))=D2.indx(D2,D1,k) by A45,A58,
INTEGRA1:def 4;
        D2.(indx(D2,D1,k)-1)=D2.(k-1) by A20,A40,A43
          .= D2.indx(D2,D1,k1) by A20,A57,A56;
        hence thesis by A3,A44,A61,A60,A55,A59,A62,INTEGRA1:def 19;
      end;
    end;
    divset(D1,k)=[. lower_bound divset(D1,k), upper_bound divset(D1,k) .]
    by INTEGRA1:4;
    then
A63: divset(D1,k)=divset(D2,indx(D2,D1,k)) by A50,INTEGRA1:4;
    j1 in Seg len(lower_volume(g,D1)) by A8,A42,FINSEQ_1:def 3;
    then j1 in dom(lower_volume(g,D1)) by FINSEQ_1:def 3;
    then
A64: (lower_volume(g,D1)|j1).k = lower_volume(g,D1).k by A46,RFINSEQ:6
      .=(lower_bound(rng(g|divset(D2,indx(D2,D1,k)))))* vol(divset(D2,indx(
    D2,D1,k))) by A44,A63,INTEGRA1:def 7;
    1<=indx(D2,D1,k) by A20,A40,A43;
    then
A65: indx(D2,D1,k) in dom D2 by A48,FINSEQ_3:25;
    (lower_volume(g,D2)|indx(D2,D1,j1)).k =(lower_volume(g,D2)|indx(D2,
    D1,j1)).indx(D2,D1,k) by A20,A40,A43
      .=lower_volume(g,D2).indx(D2,D1,k) by A47,A39,RFINSEQ:6
      .=(lower_bound(rng(g|divset(D2,indx(D2,D1,k)))))* vol(divset(D2,indx(
    D2,D1,k))) by A65,INTEGRA1:def 7;
    hence thesis by A64;
  end;
A66: len D2 in dom D2 by FINSEQ_5:6;
  deffunc LVg(Division of A) = lower_volume(g,$1);
  deffunc PLg(Division of A,Nat) = (PartSums(lower_volume(g,$1))).$2;
A67: j >= len lower_volume(g,D1) by INTEGRA1:def 7;
A68: j <= len LVg(D1) by INTEGRA1:def 7;
A69: len D1 in Seg len D1 by FINSEQ_1:3;
  then
A70: 1 <= j by FINSEQ_1:1;
  then
A71: j in dom LVg(D1) by A68,FINSEQ_3:25;
  assume
A72: g|A is bounded;
  j < j+1 by NAT_1:13;
  then
A73: j1 < j by XREAL_1:19;
  then j1 < len LVg(D1) by INTEGRA1:def 7;
  then j1 in dom LVg(D1) by A10,FINSEQ_3:25;
  then PLg(D1,j1)=Sum(LVg(D1)|j1) by INTEGRA1:def 20;
  then PLg(D1,j1)+Sum mid(LVg(D1),j,j) =Sum((LVg(D1)|j1)^mid(LVg(D1),j,j)) by
RVSUM_1:75
    .=Sum(mid(LVg(D1),1,j1)^mid(LVg(D1),j1+1,j)) by A10,FINSEQ_6:116
    .=Sum(mid(LVg(D1),1,j)) by A10,A68,A73,INTEGRA2:4
    .=Sum(LVg(D1)|j) by A70,FINSEQ_6:116;
  then
A74: PLg(D1,j1)+Sum mid(lower_volume(g,D1),j,j)=PLg(D1,j) by A71,
INTEGRA1:def 20;
A75: indx(D2,D1,j) in dom D2 by A3,A5,INTEGRA1:def 19;
  then
A76: indx(D2,D1,j) in Seg len D2 by FINSEQ_1:def 3;
  then
A77: 1 <= indx(D2,D1,j) by FINSEQ_1:1;
  len D1 < len D1+1 by NAT_1:13;
  then j1 < len D1 by XREAL_1:19;
  then
A78: indx(D2,D1,j1) < indx(D2,D1,len D1) by A3,A5,A8,Th8;
  then
A79: indx(D2,D1,j1)+1 <= indx(D2,D1,len D1) by NAT_1:13;
A80: j1 in dom D1 by A5,A7,INTEGRA1:7;
A81: Sum mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,len D1)) -Sum
mid(lower_volume(g,D1),len D1,len D1) <= (upper_bound rng g-lower_bound rng g)*
  delta(D1)
  proof
A82: indx(D2,D1,j)-indx(D2,D1,j1) <= 2
    proof
      set ID1=indx(D2,D1,j1)+1;
      set ID2=ID1+1;
      assume indx(D2,D1,j)-indx(D2,D1,j1) > 2;
      then
A83:  indx(D2,D1,j1)+(1+1)<indx(D2,D1,j) by XREAL_1:20;
A84:  ID1 < ID2 by NAT_1:13;
      then indx(D2,D1,j1) <= ID2 by NAT_1:13;
      then
A85:  1 <= ID2 by A14,XXREAL_0:2;
A86:  indx(D2,D1,j) in dom D2 by A3,A5,INTEGRA1:def 19;
      then
A87:  indx(D2,D1,j) <= len D2 by FINSEQ_3:25;
      then ID2 <= len D2 by A83,XXREAL_0:2;
      then
A88:  ID2 in dom D2 by A85,FINSEQ_3:25;
      then
A89:  D2.ID2<D2.indx(D2, D1,j) by A83,A86,SEQM_3:def 1;
A90:  1 <= ID1 by A14,NAT_1:13;
A91:  D1.j1 = D2.indx(D2,D1,j1) by A3,A8,INTEGRA1:def 19;
      ID1 <= indx(D2,D1,j) by A83,A84,XXREAL_0:2;
      then ID1 <= len D2 by A87,XXREAL_0:2;
      then
A92:  ID1 in dom D2 by A90,FINSEQ_3:25;
A93:  D1.j = D2.indx(D2,D1,j) by A3,A5,INTEGRA1:def 19;
      indx(D2,D1,j1) < ID1 by NAT_1:13;
      then
A94:  D2.indx(D2,D1,j1)<D2.ID1 by A13,A92,SEQM_3:def 1;
A95:  D2.ID1<D2.ID2 by A84,A92,A88,SEQM_3:def 1;
A96:  not D2.ID1 in rng D1 & not D2.ID2 in rng D1
      proof
        assume
A97:    D2.ID1 in rng D1 or D2.ID2 in rng D1;
        per cases by A97;
        suppose
          D2.ID1 in rng D1;
          then consider n such that
A98:      n in dom D1 and
A99:      D1.n=D2.ID1 by PARTFUN1:3;
          j1<n by A80,A94,A91,A98,A99,SEQ_4:137;
          then
A100:     j<n+1 by XREAL_1:19;
          D2.ID1<D2.indx(D2,D1,j) by A95,A89,XXREAL_0:2;
          then n<j by A5,A93,A98,A99,SEQ_4:137;
          hence contradiction by A100,NAT_1:13;
        end;
        suppose
          D2.ID2 in rng D1;
          then consider n such that
A101:     n in dom D1 and
A102:     D1.n=D2.ID2 by PARTFUN1:3;
          D2.indx(D2,D1,j1)<D2.ID2 by A94,A95,XXREAL_0:2;
          then j1<n by A8,A91,A101,A102,SEQ_4:137;
          then
A103:     j<n+1 by XREAL_1:19;
          n<j by A5,A89,A93,A101,A102,SEQ_4:137;
          hence contradiction by A103,NAT_1:13;
        end;
      end;
      D2.ID1 in rng D2 by A92,FUNCT_1:def 3;
      then D2.ID1 in {x} by A4,A96,XBOOLE_0:def 3;
      then
A104: D2.ID1 = x by TARSKI:def 1;
      D2.ID2 in rng D2 by A88,FUNCT_1:def 3;
      then D2.ID2 in {x} by A4,A96,XBOOLE_0:def 3;
      then D2.ID1=D2.ID2 by A104,TARSKI:def 1;
      hence contradiction by A84,A92,A88,SEQ_4:138;
    end;
A105: j <= len lower_volume(g,D1) by INTEGRA1:def 7;
A106: 1 <= j by A69,FINSEQ_1:1;
    then
A107: mid(lower_volume(g,D1),j,j).1 = lower_volume(g,D1).j by A105,FINSEQ_6:118
;
    reconsider lv = lower_volume(g,D1).j as Element of REAL by XREAL_0:def 1;
    j-'j+1 = 1 by Lm1;
    then len mid(lower_volume(g,D1),j,j)=1 by A106,A105,FINSEQ_6:118;
    then
A108: mid(lower_volume(g,D1),j,j)=<*lv*> by A107,FINSEQ_1:40;
A109: 1 <= indx(D2,D1,j1)+1 by A14,NAT_1:13;
    indx(D2,D1,j) in dom D2 by A3,A5,INTEGRA1:def 19;
    then
A110: indx(D2,D1,j) in Seg len D2 by FINSEQ_1:def 3;
    then
A111: 1 <= indx(D2,D1,j) by FINSEQ_1:1;
    indx(D2,D1,j) in Seg len lower_volume(g,D2) by A110,INTEGRA1:def 7;
    then
A112: indx(D2,D1,j) <= len lower_volume(g,D2) by FINSEQ_1:1;
    then
A113: indx(D2,D1,j1)+1 <= len lower_volume(g,D2 ) by A79,XXREAL_0:2;
    then indx(D2,D1,j1)+1 in Seg len lower_volume(g,D2) by A109,FINSEQ_1:1;
    then
A114: indx(D2,D1,j1)+1 in Seg len D2 by INTEGRA1:def 7;
    indx(D2,D1,j)-'(indx(D2,D1,j1)+1) =indx(D2,D1,j)-(indx(D2,D1,j1)+1)
    by A79,XREAL_1:233;
    then indx(D2,D1,j)-'(indx(D2,D1,j1) +1)+1 <= 2 by A82;
    then
A115: len mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))<=2 by A79
,A111,A112,A109,A113,FINSEQ_6:118;
    len lower_volume(g,D2) = len D2 by INTEGRA1:def 7;
    then
A116: indx(D2,D1,j1)+1 in dom D2 by A109,A113,FINSEQ_3:25;
    indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1 >= 0+1 by XREAL_1:6;
    then
A117: 1 <= len mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) by A79
,A111,A112,A109,A113,FINSEQ_6:118;
    now
      per cases by A117,A115,Lm2;
      suppose
A118:   len mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))
        =1;
        upper_bound divset(D1,j)=D1.j by A5,A7,INTEGRA1:def 4;
        then
A119:   upper_bound divset(D1,j)=D2. indx(D2,D1,j) by A3,A5,INTEGRA1:def 19;
        lower_bound divset(D1,j)=D1.j1 by A5,A7,INTEGRA1:def 4;
        then lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A3,A8,
INTEGRA1:def 19;
        then
A120:   divset(D1,j)=[. D2.indx(D2,D1,j1),D2.indx(D2,D1,j).] by A119,INTEGRA1:4
;
A121:   delta(D1) >= 0 by Th9;
A122:   upper_bound rng g - lower_bound rng g >= 0 by A72,Lm3,XREAL_1:48;
A123:   indx(D2,D1,j) in dom D2 by A3,A5,INTEGRA1:def 19;
        len mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =
indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1 by A79,A111,A112,A109,A113,FINSEQ_6:118;
        then
A124:   indx(D2,D1,j)-(indx(D2,D1,j1)+1)=0 by A79,A118,XREAL_1:233;
        then indx(D2,D1,j)<>1 by A13,FINSEQ_3:25;
        then
A125:   upper_bound divset(D2,indx(D2,D1,j))=D2.indx(D2,D1,j) by A123,
INTEGRA1:def 4;
        lower_bound divset(D2,indx(D2,D1,j))=D2.(indx(D2,D1,j)-1) by A14,A124
,A123,INTEGRA1:def 4;
        then
A126:   divset(D2,indx(D2,D1,j))=divset(D1,j) by A124,A120,A125,INTEGRA1:4;
        reconsider li = lower_volume(g,D2).(indx(D2,D1,j1)+1)
           as Element of REAL
                   by XREAL_0:def 1;
        mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)).1 =
lower_volume(g,D2).(indx(D2,D1,j1)+1) by A111,A112,A109,A113,FINSEQ_6:118;
        then mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =
          <*li*> by A118,FINSEQ_1:40;
        then Sum mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j )) =
        lower_volume(g,D2).(indx(D2,D1,j1)+1) by FINSOP_1:11
          .=(lower_bound(rng(g|divset(D2,(indx(D2,D1,j1)+1))))) *vol(divset(
        D2,(indx(D2,D1,j1)+1))) by A116,INTEGRA1:def 7
          .=lower_volume(g,D1).j by A5,A124,A126,INTEGRA1:def 7
          .=Sum mid(lower_volume(g,D1),j,j) by A108,FINSOP_1:11;
        hence thesis by A121,A122;
      end;
      suppose
A127:   len mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))
        =2;
A128:   mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)).1 =
lower_volume(g,D2).(indx(D2,D1,j1)+1) by A111,A112,A109,A113,FINSEQ_6:118;
A129:   2+(indx(D2,D1,j1)+1)>=0+1 by XREAL_1:7;
        mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)).2 =LVg(
D2).(2+(indx(D2,D1,j1)+1)-'1) by A79,A111,A112,A109,A113,A127,FINSEQ_6:118
          .=LVg(D2).(2+(indx(D2,D1,j1)+1)-1) by A129,XREAL_1:233
          .=LVg(D2).(indx(D2,D1,j1)+(1+1));
        then mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =<*
lower_volume(g,D2).(indx(D2,D1,j1)+1), lower_volume(g,D2).(indx(D2,D1,j1)+2)*>
        by A127,A128,FINSEQ_1:44;
        then
A130:   Sum mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j )) =
lower_volume(g,D2).(indx(D2,D1,j1)+1) +lower_volume(g,D2).(indx(D2,D1,j1)+2)
by RVSUM_1:77;
A131:   vol(divset(D2,indx(D2,D1,j1)+1))>=0 by INTEGRA1:9;
        upper_bound divset(D1,j)=D1.j by A5,A7,INTEGRA1:def 4;
        then
A132:   upper_bound divset(D1,j)=D2. indx(D2,D1,j) by A3,A5,INTEGRA1:def 19;
A133:   vol(divset(D2,indx(D2,D1,j1)+2))>=0 by INTEGRA1:9;
        indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1=2 by A79,A111,A112,A109,A113,A127,
FINSEQ_6:118;
        then
A134:   indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1=2 by A79,XREAL_1:233;
        then
A135:   indx(D2,D1,j1)+2 in dom D2 by A3,A5,INTEGRA1:def 19;
        lower_bound divset(D1,j)=D1.j1 by A5,A7,INTEGRA1:def 4;
        then lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A3,A8,
INTEGRA1:def 19;
        then
A136:   vol(divset(D1,j))=D2.(indx(D2,D1,j1)+2)-D2.(indx(D2,D1,j1)+1) +
        D2.(indx(D2,D1,j1)+1)-D2.indx(D2,D1,j1) by A132,A134,INTEGRA1:def 5;
        indx(D2,D1,j1)+1 in Seg len lower_volume(g,D2) by A109,A113,FINSEQ_1:1;
        then indx(D2,D1,j1)+1 in Seg len D2 by INTEGRA1:def 7;
        then
A137:   indx(D2,D1,j1)+1 in dom D2 by FINSEQ_1:def 3;
A138:   indx(D2,D1,j1)+1 <> 1 by A14,NAT_1:13;
        then
A139:   upper_bound divset(D2,(indx( D2,D1,j1)+1))=D2.(indx(D2,D1,j1)+1)
        by A137,INTEGRA1:def 4;
        indx(D2,D1,j1)+1-1=indx(D2,D1,j1)+0;
        then
A140:   lower_bound divset(D2,(indx(D2,D1,j1)+1))=D2.indx(D2,D1,j1) by A137
,A138,INTEGRA1:def 4;
A141:   indx(D2,D1,j1)+1+1 > 1 by A109,NAT_1:13;
        indx(D2,D1,j1)+2-1=indx(D2,D1,j1)+1;
        then
A142:   lower_bound divset(D2,(indx(D2,D1,j1)+2))=D2.(indx(D2,D1,j1)+1)
        by A135,A141,INTEGRA1:def 4;
        upper_bound divset(D2,(indx(D2,D1,j1)+2))=D2.(indx(D2,D1,j1)+2)
        by A135,A141,INTEGRA1:def 4;
        then vol(divset(D1,j))=vol(divset(D2,indx(D2,D1,j1)+2)) +D2.(indx(D2,
        D1,j1)+1)-D2.indx(D2,D1,j1) by A142,A136,INTEGRA1:def 5
          .=vol(divset(D2,indx(D2,D1,j1)+2)) +(upper_bound divset(D2,indx(D2
        ,D1,j1)+1)- lower_bound divset(D2,indx(D2,D1,j1)+1)) by A140,A139;
        then
A143:   vol(divset(D1,j)) =vol(divset(D2,indx(D2,D1,j1)+1))+vol(divset(
        D2,indx(D2,D1,j1)+2)) by INTEGRA1:def 5;
        then
A144:   lower_volume(g,D1).j=(lower_bound(rng(g|divset(D1,j))))* (vol(
        divset(D2,indx(D2,D1,j1)+1))+vol(divset(D2,indx(D2,D1,j1)+2))) by A5,
INTEGRA1:def 7;
A145:   Sum mid(LVg(D2),indx(D2,D1,j1)+1,indx(D2,D1,j))-Sum mid(LVg(D1),
j,j) <=(upper_bound rng g - lower_bound rng g)* (vol(divset(D2,indx(D2,D1,j1)+2
        )) +vol(divset(D2,indx(D2,D1,j1)+1)))
        proof
          set ID1=indx(D2,D1,j1)+1, ID2=indx(D2,D1,j1)+2;
          set IR = (lower_bound rng g)*vol(divset(D2,ID2));
          divset(D1,j)c=A by A5,INTEGRA1:8;
          then
A146:     lower_bound rng(g|divset(D1,j)) >= lower_bound rng g by A72,Lm4;
          Sum mid(LVg(D1),j,j)=(lower_bound rng(g|divset(D1,j)))* vol(
divset(D2,indx(D2, D1,j1)+2)) +(lower_bound rng(g|divset(D1,j)))*vol(divset(D2
          ,indx(D2,D1,j1)+1)) by A108,A144,FINSOP_1:11;
          then Sum mid(LVg(D1),j,j)-(lower_bound rng(g|divset(D1,j)))*vol(
          divset(D2,ID1)) >=IR by A133,A146,XREAL_1:64;
          then Sum mid(LVg(D1),j,j)>=(lower_bound rng(g|divset(D1,j)))* vol(
          divset(D2,ID1)) +IR by XREAL_1:19;
          then
A147:     Sum mid(LVg(D1),j,j)-(lower_bound rng g)*vol(divset(D2,ID2))
>=(lower_bound rng(g|divset(D1,j)))*vol(divset(D2,ID1)) by XREAL_1:19;
          (lower_bound rng(g|divset(D1,j)))*vol(divset(D2,ID1)) >=(
          lower_bound rng g)*vol(divset(D2,ID1)) by A131,A146,XREAL_1:64;
          then Sum mid(LVg(D1),j,j)-(lower_bound rng g)*vol(divset(D2,ID2))
          >=(lower_bound rng g)*vol(divset(D2,ID1)) by A147,XXREAL_0:2;
          then
A148:     Sum mid(LVg(D1),j,j) >=IR+(lower_bound rng g)* vol(divset(D2,
          ID1)) by XREAL_1:19;
          indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1=2 by A79,A111,A112,A109,A113,A127
,FINSEQ_6:118;
          then
A149:     indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1=2 by A79,XREAL_1:233;
          ID1 in dom D2 by A114,FINSEQ_1:def 3;
          then divset(D2,ID1) c= A by INTEGRA1:8;
          then lower_bound rng(g|divset(D2,ID1)) <= upper_bound rng g by A72
,Lm4;
          then
A150:     (lower_bound rng(g|divset(D2,ID1)))*vol(divset(D2,ID1)) <=(
          upper_bound rng g)*vol(divset(D2,ID1)) by A131,XREAL_1:64;
A151:     indx(D2,D1,j) in dom D2 by A3,A5,INTEGRA1:def 19;
          then divset(D2,ID2)c=A by A149,INTEGRA1:8;
          then
A152:     lower_bound rng(g|divset(D2,ID2)) <= upper_bound rng g by A72,Lm4;
          Sum mid(LVg(D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =(
lower_bound rng(g|divset(D2,indx(D2,D1,j1)+2))) *vol(divset(D2,indx(D2,D1,j1)+2
          )) +LVg(D2).(indx(D2,D1,j1)+1) by A130,A151,A149,INTEGRA1:def 7
            .=(lower_bound rng(g|divset(D2,indx(D2,D1,j1)+2))) *vol(divset(
D2,indx(D2,D1,j1)+2)) +(lower_bound rng(g|divset(D2,indx(D2,D1,j1)+1))) *vol(
          divset(D2,indx(D2,D1,j1)+1)) by A116,INTEGRA1:def 7;
          then Sum mid(LVg(D2),ID1,indx(D2,D1,j)) -(lower_bound rng(g|divset(
D2,ID1)))*vol(divset(D2,ID1)) <=(upper_bound rng g)*vol(divset(D2,ID2)) by A133
,A152,XREAL_1:64;
          then Sum mid(LVg(D2),ID1,indx(D2,D1,j)) <=(upper_bound rng g)*vol(
divset(D2,ID2)) +(lower_bound rng(g|divset(D2,ID1)))*vol(divset(D2,ID1)) by
XREAL_1:20;
          then Sum mid(LVg(D2),ID1,indx(D2,D1,j))-(upper_bound rng g)*vol(
divset(D2,ID2)) <=(lower_bound rng(g|divset(D2,ID1)))*vol(divset(D2,ID1)) by
XREAL_1:20;
          then Sum mid(LVg(D2),ID1,indx(D2,D1,j))-(upper_bound rng g)*vol(
divset(D2,ID2)) <=(upper_bound rng g)*vol(divset(D2,ID1)) by A150,XXREAL_0:2;
          then Sum mid(LVg(D2),ID1,indx(D2,D1,j))<= (upper_bound rng g)*vol(
divset(D2,ID2)) + (upper_bound rng g)*vol(divset(D2,ID1)) by XREAL_1:20;
          then Sum mid(LVg(D2),ID1,indx(D2,D1,j))-Sum mid(LVg(D1),j,j) <=(
upper_bound rng g)*vol(divset(D2,ID2))+(upper_bound rng g)* vol(divset(D2,ID1))
          -(IR+(lower_bound rng g)*vol(divset(D2,ID1))) by A148,XREAL_1:13;
          hence thesis;
        end;
        upper_bound rng g - lower_bound rng g >= 0 by A72,Lm3,XREAL_1:48;
        then (upper_bound rng g - lower_bound rng g)*(vol(divset(D1,j))) <=(
        upper_bound rng g - lower_bound rng g)*delta(D1) by A5,Lm5,XREAL_1:64;
        hence thesis by A143,A145,XXREAL_0:2;
      end;
    end;
    hence thesis;
  end;
  indx(D2,D1,j1) in dom D2 by A3,A12,INTEGRA1:def 19;
  then indx(D2,D1,j1) <= len D2 by FINSEQ_3:25;
  then
A153: indx(D2,D1,j1) <= len lower_volume(g,D2) by INTEGRA1:def 7;
  j1 <= len D1 by A12,FINSEQ_3:25;
  then
A154: j1 <= len lower_volume(g,D1) by INTEGRA1:def 7;
A155: D2.indx(D2,D1,j)=D1.(len D1) by A3,A5,INTEGRA1:def 19;
A156: indx(D2,D1,j) >= len lower_volume(g,D2)
  proof
    assume indx(D2,D1,j) < len lower_volume(g,D2);
    then indx(D2,D1,j) < len D2 by INTEGRA1:def 7;
    then
A157: D1.(len D1) < D2.(len D2) by A66,A6,A155,SEQM_3:def 1;
A158: not D2.(len D2) in rng D1
    proof
      assume D2.(len D2) in rng D1;
      D2.(len D2) <= upper_bound A by INTEGRA1:def 2;
      hence contradiction by A157,INTEGRA1:def 2;
    end;
    D2.(len D2) in rng D2 by A66,FUNCT_1:def 3;
    then D2.(len D2) in rng D1 or D2.(len D2) in {x} by A4,XBOOLE_0:def 3;
    then D2.(len D2) = x by A158,TARSKI:def 1;
    then D2.(len D2) <= upper_bound divset(D1,len D1) by A1,INTEGRA2:1;
    hence contradiction by A5,A7,A157,INTEGRA1:def 4;
  end;
  indx(D2,D1,j) in Seg len D2 by A6,FINSEQ_1:def 3;
  then indx(D2,D1,j) in Seg len lower_volume(g,D2) by INTEGRA1:def 7;
  then indx(D2,D1,j) in dom lower_volume(g,D2) by FINSEQ_1:def 3;
  then
A159: PLg(D2,indx(D2,D1,j))=Sum(lower_volume(g,D2)|indx(D2,D1,j)) by
INTEGRA1:def 20
    .=Sum lower_volume(g,D2) by A156,FINSEQ_1:58;
  j in Seg len lower_volume(g,D1) by A69,INTEGRA1:def 7;
  then j in dom lower_volume(g,D1) by FINSEQ_1:def 3;
  then
A160: PLg(D1,j)=Sum(lower_volume(g,D1)|j) by INTEGRA1:def 20
    .=Sum lower_volume(g,D1) by A67,FINSEQ_1:58;
  len D1 = len lower_volume(g,D1) by INTEGRA1:def 7;
  then
A161: j1 in dom lower_volume(g,D1) by A8,FINSEQ_3:29;
  len (D2|indx(D2,D1,j1))=len (D1|j1) by A15,A11,A18,Th6;
  then indx(D2,D1,j1) =j1 by A9,A17,FINSEQ_1:59;
  then len(lower_volume(g,D1)|j1)=indx(D2,D1,j1) by A154,FINSEQ_1:59;
  then len(lower_volume(g,D1)|j1)=len(lower_volume(g,D2)|indx(D2,D1,j1)) by
A153,FINSEQ_1:59;
  then
A162: lower_volume(g,D2)|indx(D2,D1,j1)=lower_volume(g,D1)|j1 by A38,
FINSEQ_1:14;
  len D2 = len lower_volume(g,D2) by INTEGRA1:def 7;
  then indx(D2,D1,j1) in dom lower_volume(g,D2) by A13,FINSEQ_3:29;
  then
A163: PLg(D2,indx(D2,D1,j1))=Sum(lower_volume(g,D2)|indx(D2,D1,j1)) by
INTEGRA1:def 20
    .=PLg(D1,j1) by A162,A161,INTEGRA1:def 20;
  indx(D2,D1,j) <= len D2 by A76,FINSEQ_1:1;
  then
A164: indx(D2,D1,j) <= len LVg(D2) by INTEGRA1:def 7;
A165: len D2 = len LVg(D2) by INTEGRA1:def 7;
  then
A166: indx(D2,D1,j) in dom LVg(D2) by A75,FINSEQ_3:29;
  indx(D2,D1,j1) in dom LVg(D2) by A13,A165,FINSEQ_3:29;
  then PLg(D2,indx(D2,D1,j1)) =Sum(LVg(D2)|indx(D2,D1,j1)) by INTEGRA1:def 20;
  then PLg(D2,indx(D2,D1,j1)) +Sum mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),
indx(D2,D1,j)) =Sum(LVg(D2)|indx(D2,D1,j1) ^mid(LVg(D2),(indx(D2,D1,j1)+1),indx
  (D2,D1,j))) by RVSUM_1:75
    .=Sum(mid(LVg(D2),1,indx(D2,D1,j1)) ^mid(LVg(D2),indx(D2,D1,j1)+1,indx(
  D2,D1,j))) by A14,FINSEQ_6:116
    .=Sum(mid(LVg(D2),1,indx(D2,D1,j))) by A14,A78,A164,INTEGRA2:4
    .=Sum(LVg(D2)|indx(D2,D1,j)) by A77,FINSEQ_6:116;
  then PLg(D2,indx(D2,D1,j1)) +Sum mid(lower_volume(g,D2),(indx(D2,D1,j1)+1),
  indx(D2,D1,j)) =PLg(D2,indx(D2,D1,j)) by A166,INTEGRA1:def 20;
  hence thesis by A163,A81,A74,A159,A160;
end;

theorem Th11:
  x in divset(D1,len D1) & len D1 >= 2 & D1<=D2 & rng D2 = rng D1
\/ {x} & g|A is bounded implies Sum upper_volume(g,D1) - Sum upper_volume(g,D2)
  <= (upper_bound rng g-lower_bound rng g)*delta(D1)
proof
  assume that
A1: x in divset(D1,len D1) and
A2: len D1 >= 2;
  set j = len D1;
  assume that
A3: D1<=D2 and
A4: rng D2 = rng D1 \/ {x};
A5: len D1 in Seg len D1 by FINSEQ_1:3;
  then
A6: len D1 in dom D1 by FINSEQ_1:def 3;
  then
A7: indx(D2,D1,j) in dom D2 by A3,INTEGRA1:def 19;
  deffunc UVg(Division of A) = upper_volume(g,$1);
  deffunc PUg(Division of A,Nat) = (PartSums(upper_volume(g,$1))).$2;
A8: j >= len upper_volume(g,D1) by INTEGRA1:def 6;
A9: len D1 <> 1 by A2;
  then
A10: len D1-1 in dom D1 by A6,INTEGRA1:7;
  reconsider j1=len D1-1 as Element of NAT by A6,A9,INTEGRA1:7;
A11: indx(D2,D1,j1) in dom D2 by A3,A10,INTEGRA1:def 19;
  then
A12: 1 <= indx(D2,D1,j1) by FINSEQ_3:25;
  then mid(D2,1,indx(D2,D1,j1)) is increasing by A11,INTEGRA1:35;
  then
A13: D2|indx(D2,D1,j1) is increasing by A12,FINSEQ_6:116;
  len D1 < len D1+1 by NAT_1:13;
  then j1 < len D1 by XREAL_1:19;
  then
A14: indx(D2,D1,j1) < indx(D2,D1,len D1) by A3,A6,A10,Th8;
  then
A15: indx(D2,D1,j1)+1 <= indx(D2,D1,len D1) by NAT_1:13;
  len D2 in Seg len D2 by FINSEQ_1:3;
  then
A16: len D2 in dom D2 by FINSEQ_1:def 3;
A17: D2.indx(D2,D1,j)=D1.(len D1) by A3,A6,INTEGRA1:def 19;
A18: indx(D2,D1,j) >= len upper_volume(g,D2)
  proof
    assume indx(D2,D1,j) < len upper_volume(g,D2);
    then indx(D2,D1,j) < len D2 by INTEGRA1:def 6;
    then
A19: D1.(len D1) < D2.(len D2) by A16,A7,A17,SEQM_3:def 1;
A20: not D2.(len D2) in rng D1
    proof
      assume D2.(len D2) in rng D1;
      D2.(len D2) <= upper_bound A by INTEGRA1:def 2;
      hence contradiction by A19,INTEGRA1:def 2;
    end;
    D2.(len D2) in rng D2 by A16,FUNCT_1:def 3;
    then D2.(len D2) in rng D1 or D2.(len D2) in {x} by A4,XBOOLE_0:def 3;
    then D2.(len D2) = x by A20,TARSKI:def 1;
    then D2.(len D2) <= upper_bound divset(D1,len D1) by A1,INTEGRA2:1;
    hence contradiction by A6,A9,A19,INTEGRA1:def 4;
  end;
  indx(D2,D1,j) in Seg len D2 by A7,FINSEQ_1:def 3;
  then indx(D2,D1,j) in Seg len upper_volume(g,D2) by INTEGRA1:def 6;
  then indx(D2,D1,j) in dom upper_volume(g,D2) by FINSEQ_1:def 3;
  then
A21: PUg(D2,indx(D2,D1,j))=Sum(upper_volume(g,D2)|indx(D2,D1,j)) by
INTEGRA1:def 20
    .=Sum upper_volume(g,D2) by A18,FINSEQ_1:58;
  indx(D2,D1,j) in dom D2 by A3,A6,INTEGRA1:def 19;
  then
A22: indx(D2,D1,j) in Seg len D2 by FINSEQ_1:def 3;
  then
A23: 1 <= indx(D2,D1,j) by FINSEQ_1:1;
A24: indx(D2,D1,j1) <= len D2 by A11,FINSEQ_3:25;
  then
A25: len (D2|indx(D2,D1,j1))=indx(D2,D1,j1) by FINSEQ_1:59;
A26: j1 <= len D1 by A10,FINSEQ_3:25;
  assume
A27: g|A is bounded;
A28: Sum mid(upper_volume(g,D1),len D1,len D1) -Sum mid(upper_volume(g,D2),
(indx(D2,D1,j1)+1),indx(D2,D1,len D1)) <= (upper_bound rng g-lower_bound rng g)
  *delta(D1)
  proof
A29: indx(D2,D1,j)-indx(D2,D1,j1) <= 2
    proof
      reconsider ID1=indx(D2,D1,j1)+1 as Element of NAT;
      reconsider ID2=ID1+1 as Element of NAT;
      assume indx(D2,D1,j)-indx(D2,D1,j1) > 2;
      then
A30:  indx(D2,D1,j1)+(1+1)<indx(D2,D1,j) by XREAL_1:20;
A31:  ID1 < ID2 by NAT_1:13;
      then indx(D2,D1,j1) <= ID2 by NAT_1:13;
      then
A32:  1 <= ID2 by A12,XXREAL_0:2;
A33:  indx(D2,D1,j) in dom D2 by A3,A6,INTEGRA1:def 19;
      then
A34:  indx(D2,D1,j) <= len D2 by FINSEQ_3:25;
      then ID2 <= len D2 by A30,XXREAL_0:2;
      then
A35:  ID2 in dom D2 by A32,FINSEQ_3:25;
      then
A36:  D2.ID2<D2.indx(D2, D1,j) by A30,A33,SEQM_3:def 1;
A37:  1 <= ID1 by A12,NAT_1:13;
A38:  D1.j1 = D2.indx(D2,D1,j1) by A3,A10,INTEGRA1:def 19;
      ID1 <= indx(D2,D1,j) by A30,A31,XXREAL_0:2;
      then ID1 <= len D2 by A34,XXREAL_0:2;
      then
A39:  ID1 in dom D2 by A37,FINSEQ_3:25;
A40:  D1.j = D2.indx(D2,D1,j) by A3,A6,INTEGRA1:def 19;
      indx(D2,D1,j1) < ID1 by NAT_1:13;
      then
A41:  D2.indx(D2,D1,j1)<D2.ID1 by A11,A39,SEQM_3:def 1;
A42:  D2.ID1<D2.ID2 by A31,A39,A35,SEQM_3:def 1;
A43:  not D2.ID1 in rng D1 & not D2.ID2 in rng D1
      proof
        assume
A44:    D2.ID1 in rng D1 or D2.ID2 in rng D1;
        now
          per cases by A44;
          suppose
            D2.ID1 in rng D1;
            then consider n such that
A45:        n in dom D1 and
A46:        D1.n=D2.ID1 by PARTFUN1:3;
            j1<n by A10,A41,A38,A45,A46,SEQ_4:137;
            then
A47:        j<n+1 by XREAL_1:19;
            D2.ID1<D2.indx(D2,D1,j) by A42,A36,XXREAL_0:2;
            then n<j by A6,A40,A45,A46,SEQ_4:137;
            hence contradiction by A47,NAT_1:13;
          end;
          suppose
            D2.ID2 in rng D1;
            then consider n such that
A48:        n in dom D1 and
A49:        D1.n=D2.ID2 by PARTFUN1:3;
            D2.indx(D2,D1,j1)<D2.ID2 by A41,A42,XXREAL_0:2;
            then j1<n by A10,A38,A48,A49,SEQ_4:137;
            then
A50:        j<n+1 by XREAL_1:19;
            n<j by A6,A36,A40,A48,A49,SEQ_4:137;
            hence contradiction by A50,NAT_1:13;
          end;
        end;
        hence thesis;
      end;
      D2.ID1 in rng D2 by A39,FUNCT_1:def 3;
      then D2.ID1 in {x} by A4,A43,XBOOLE_0:def 3;
      then
A51:  D2.ID1 = x by TARSKI:def 1;
      D2.ID2 in rng D2 by A35,FUNCT_1:def 3;
      then D2.ID2 in {x} by A4,A43,XBOOLE_0:def 3;
      then D2.ID1=D2.ID2 by A51,TARSKI:def 1;
      hence contradiction by A31,A39,A35,SEQ_4:138;
    end;
A52: j <= len upper_volume(g,D1) by INTEGRA1:def 6;
A53: 1 <= j by A5,FINSEQ_1:1;
    then
A54: mid(upper_volume(g,D1),j,j).1 = upper_volume(g,D1).j by A52,FINSEQ_6:118;
    reconsider uv = upper_volume(g,D1).j as Element of REAL by XREAL_0:def 1;
    j-'j+1 = 1 by Lm1;
    then len mid(upper_volume(g,D1),j,j)=1 by A53,A52,FINSEQ_6:118;
    then mid(upper_volume(g,D1),j,j)=<*uv*> by A54,FINSEQ_1:40;
    then
A55: Sum mid(upper_volume(g,D1),j,j)=upper_volume(g,D1).j by FINSOP_1:11;
A56: 1 <= indx(D2,D1,j1)+1 by A12,NAT_1:13;
    indx(D2,D1,j) in dom D2 by A3,A6,INTEGRA1:def 19;
    then
A57: indx(D2,D1,j) in Seg len D2 by FINSEQ_1:def 3;
    then
A58: 1 <= indx(D2,D1,j) by FINSEQ_1:1;
    indx(D2,D1,j) in Seg len upper_volume(g,D2) by A57,INTEGRA1:def 6;
    then
A59: indx(D2,D1,j) <= len upper_volume(g,D2) by FINSEQ_1:1;
    then
A60: indx(D2,D1,j1)+1 <= len upper_volume(g,D2 ) by A15,XXREAL_0:2;
    then indx(D2,D1,j1)+1 in Seg len upper_volume(g,D2) by A56,FINSEQ_1:1;
    then
A61: indx(D2,D1,j1)+1 in Seg len D2 by INTEGRA1:def 6;
    then
A62: indx(D2,D1,j1)+1 in dom D2 by FINSEQ_1:def 3;
    indx(D2,D1,j)-'(indx(D2,D1,j1)+1) =indx(D2,D1,j)-(indx(D2,D1,j1)+1)
    by A15,XREAL_1:233;
    then indx(D2,D1,j)-'(indx(D2,D1,j1) +1)+1 <= 2 by A29;
    then
A63: len mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))<=2 by A15,A58
,A59,A56,A60,FINSEQ_6:118;
    indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1 >= 0+1 by XREAL_1:6;
    then
A64: 1 <= len mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) by A15
,A58,A59,A56,A60,FINSEQ_6:118;
    now
      per cases by A64,A63,Lm2;
      suppose
A65:    len mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))
        =1;
        upper_bound divset(D1,j)=D1.j by A6,A9,INTEGRA1:def 4;
        then
A66:    upper_bound divset(D1,j)=D2.indx(D2,D1,j) by A3,A6,INTEGRA1:def 19;
        lower_bound divset(D1,j)=D1.j1 by A6,A9,INTEGRA1:def 4;
        then lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A3,A10,
INTEGRA1:def 19;
        then
A67:    divset(D1,j)=[. D2.indx(D2,D1,j1),D2.indx(D2,D1,j).] by A66,INTEGRA1:4;
A68:    delta(D1) >= 0 by Th9;
A69:    upper_bound rng g - lower_bound rng g >= 0 by A27,Lm3,XREAL_1:48;
A70:    indx(D2,D1,j) in dom D2 by A3,A6,INTEGRA1:def 19;
        len mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =
        indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1 by A15,A58,A59,A56,A60,FINSEQ_6:118
;
        then
A71:    indx(D2,D1,j)-(indx(D2,D1,j1)+1)=0 by A15,A65,XREAL_1:233;
        then indx(D2,D1,j)<>1 by A11,FINSEQ_3:25;
        then
A72:    upper_bound divset(D2,indx(D2,D1,j))=D2.indx(D2,D1,j) by A70,
INTEGRA1:def 4;
        lower_bound divset(D2,indx(D2,D1,j))=D2.(indx(D2,D1,j)-1) by A12,A71
,A70,INTEGRA1:def 4;
        then
A73:    divset(D2,indx(D2,D1,j))=divset(D1,j) by A71,A67,A72,INTEGRA1:4;
        reconsider uv =upper_volume(g,D2).(indx(D2,D1,j1)+1)
           as Element of REAL
           by XREAL_0:def 1;
        mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)).1 =
        upper_volume(g,D2).(indx(D2,D1,j1)+1) by A58,A59,A56,A60,FINSEQ_6:118;
        then mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))
               = <*uv*> by A65,FINSEQ_1:40;
        then Sum mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j )) =
        upper_volume(g,D2).(indx(D2,D1,j1)+1) by FINSOP_1:11
          .=(upper_bound(rng(g|divset(D2,(indx(D2,D1,j1)+1))))) *vol(divset(
        D2,(indx(D2,D1,j1)+1))) by A62,INTEGRA1:def 6
          .=Sum mid(upper_volume(g,D1),j,j) by A6,A55,A71,A73,INTEGRA1:def 6;
        hence thesis by A68,A69;
      end;
      suppose
A74:    len mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))
        =2;
A75:    mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)).1 =
        upper_volume(g,D2).(indx(D2,D1,j1)+1) by A58,A59,A56,A60,FINSEQ_6:118;
A76:    2+(indx(D2,D1,j1)+1)>=0+1 by XREAL_1:7;
        mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)).2 =UVg(
        D2).(2+(indx(D2,D1,j1)+1)-'1) by A15,A58,A59,A56,A60,A74,FINSEQ_6:118
          .=UVg(D2).(2+(indx(D2,D1,j1)+1)-1) by A76,XREAL_1:233
          .=UVg(D2).(indx(D2,D1,j1)+(1+1));
        then mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =<*
upper_volume(g,D2).(indx(D2,D1,j1)+1), upper_volume(g,D2).(indx(D2,D1,j1)+2)*>
        by A74,A75,FINSEQ_1:44;
        then
A77:    Sum mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),indx(D2,D1,j )) =
upper_volume(g,D2).(indx(D2,D1,j1)+1) +upper_volume(g,D2).(indx(D2,D1,j1)+2)
by RVSUM_1:77;
A78:    vol(divset(D2,indx(D2,D1,j1)+1))>=0 by INTEGRA1:9;
        upper_bound divset(D1,j)=D1.j by A6,A9,INTEGRA1:def 4;
        then
A79:    upper_bound divset(D1,j) =D2. indx(D2,D1,j) by A3,A6,INTEGRA1:def 19;
A80:    vol(divset(D2,indx(D2,D1,j1)+2))>=0 by INTEGRA1:9;
        indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1=2 by A15,A58,A59,A56,A60,A74,
FINSEQ_6:118;
        then
A81:    indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1=2 by A15,XREAL_1:233;
        then
A82:    indx(D2,D1,j1)+2 in dom D2 by A3,A6,INTEGRA1:def 19;
        lower_bound divset(D1,j)=D1.j1 by A6,A9,INTEGRA1:def 4;
        then lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A3,A10,
INTEGRA1:def 19;
        then
A83:    vol(divset(D1,j)) =D2.(indx(D2,D1,j1)+2)-D2.(indx(D2,D1,j1)+1) +
        D2.(indx(D2,D1,j1)+1)-D2.indx(D2,D1,j1) by A79,A81,INTEGRA1:def 5;
        indx(D2,D1,j1)+1 in Seg len upper_volume(g,D2) by A56,A60,FINSEQ_1:1;
        then indx(D2,D1,j1)+1 in Seg len D2 by INTEGRA1:def 6;
        then
A84:    indx(D2,D1,j1)+1 in dom D2 by FINSEQ_1:def 3;
A85:    indx(D2,D1,j1)+1 <> 1 by A12,NAT_1:13;
        then
A86:    upper_bound divset(D2,(indx( D2,D1,j1)+1))=D2.(indx(D2,D1,j1)+1)
        by A84,INTEGRA1:def 4;
        indx(D2,D1,j1)+1-1=indx(D2,D1,j1)+0;
        then
A87:    lower_bound divset(D2,(indx(D2,D1,j1)+1))=D2.indx(D2,D1,j1) by A84,A85,
INTEGRA1:def 4;
A88:    indx(D2,D1,j1)+1+1 > 1 by A56,NAT_1:13;
        indx(D2,D1,j1)+2-1=indx(D2,D1,j1)+1;
        then
A89:    lower_bound divset(D2,(indx(D2,D1,j1)+2))=D2.(indx(D2,D1,j1)+1)
        by A82,A88,INTEGRA1:def 4;
        upper_bound divset(D2,(indx(D2,D1,j1)+2))=D2.(indx(D2,D1,j1)+2)
        by A82,A88,INTEGRA1:def 4;
        then vol(divset(D1,j)) =vol(divset(D2,indx(D2,D1,j1)+2)) +D2.(indx(D2
        ,D1,j1)+1)-D2.indx(D2,D1,j1) by A89,A83,INTEGRA1:def 5
          .=vol(divset(D2,indx(D2,D1,j1)+2)) +(upper_bound divset(D2,indx(D2
        ,D1,j1)+1)-lower_bound divset(D2,indx(D2,D1,j1)+1)) by A87,A86;
        then
A90:    vol(divset(D1,j)) =vol(divset(D2,indx(D2,D1,j1)+1))+vol(divset(
        D2,indx(D2,D1,j1)+2)) by INTEGRA1:def 5;
        then
A91:    upper_volume(g,D1).j=(upper_bound(rng(g|divset(D1,j))))* (vol(
        divset(D2,indx(D2,D1,j1)+1))+vol(divset(D2,indx(D2,D1,j1)+2))) by A6,
INTEGRA1:def 6;
A92:    Sum mid(UVg(D1),j,j)-Sum mid(UVg(D2),indx(D2,D1,j1)+1,indx(D2,D1
,j)) <=(upper_bound rng g - lower_bound rng g)*(vol(divset(D2, indx(D2,D1,j1)+2
        )) +vol(divset(D2,indx(D2,D1,j1)+1)))
        proof
          set ID1=indx(D2,D1,j1)+1, ID2=indx(D2,D1,j1)+2;
A93:      Sum mid(UVg(D1),j,j)-(upper_bound rng(g|divset(D1,j)))* vol(
divset(D2,ID1)) = (upper_bound rng(g|divset(D1,j)))*vol(divset(D2,ID2)) by A55
,A91;
          divset(D1,j)c=A by A6,INTEGRA1:8;
          then
A94:      upper_bound rng(g|divset(D1,j)) <= upper_bound rng g by A27,Lm4;
          then (upper_bound rng(g|divset(D1,j)))*vol(divset(D2,ID2)) <=(
          upper_bound rng g)*vol(divset(D2,ID2)) by A80,XREAL_1:64;
          then Sum mid(UVg(D1),j,j)<=(upper_bound rng(g|divset(D1,j)))* vol(
divset(D2,ID1)) +(upper_bound rng g)*vol(divset(D2,ID2)) by A93,XREAL_1:20;
          then
A95:      Sum mid(UVg(D1),j,j)-(upper_bound rng g)*vol(divset(D2,ID2))
<=(upper_bound rng(g|divset(D1,j)))*vol(divset(D2,ID1)) by XREAL_1:20;
          (upper_bound rng(g|divset(D1,j)))*vol(divset(D2,ID1)) <=(
          upper_bound rng g)*vol(divset(D2,ID1)) by A78,A94,XREAL_1:64;
          then Sum mid(UVg(D1),j,j)-(upper_bound rng g)*vol(divset(D2,ID2))
          <=(upper_bound rng g)*vol(divset(D2,ID1)) by A95,XXREAL_0:2;
          then
A96:      Sum mid(UVg(D1),j,j) <=(upper_bound rng g)*vol(divset(D2,ID2))
          +(upper_bound rng g)* vol(divset(D2,ID1)) by XREAL_1:20;
          ID1 in dom D2 by A61,FINSEQ_1:def 3;
          then divset(D2,ID1)c=A by INTEGRA1:8;
          then upper_bound rng(g|divset(D2,ID1)) >= lower_bound rng g by A27
,Lm4;
          then
A97:      (upper_bound rng(g|divset(D2,ID1)))*vol(divset(D2,ID1)) >=(
          lower_bound rng g)*vol(divset(D2,ID1)) by A78,XREAL_1:64;
          indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1=2 by A15,A58,A59,A56,A60,A74,
FINSEQ_6:118;
          then
A98:      indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1=2 by A15,XREAL_1:233;
A99:      indx(D2,D1,j) in dom D2 by A3,A6,INTEGRA1:def 19;
          then divset(D2,ID2)c=A by A98,INTEGRA1:8;
          then
A100:     upper_bound rng(g|divset(D2,ID2)) >= lower_bound rng g by A27,Lm4;
          Sum mid(UVg(D2),(indx(D2,D1,j1)+1),indx(D2,D1,j)) =(
upper_bound rng(g|divset(D2,indx(D2,D1,j1)+2))) *vol(divset(D2,indx(D2,D1,j1)+2
          )) +UVg(D2).(indx(D2,D1,j1)+1) by A77,A99,A98,INTEGRA1:def 6
            .=(upper_bound rng(g|divset(D2,indx(D2,D1,j1)+2))) *vol(divset(
D2,indx(D2,D1,j1)+2)) +(upper_bound rng(g|divset(D2,indx(D2,D1,j1)+1))) *vol(
          divset(D2,indx(D2,D1,j1)+1)) by A62,INTEGRA1:def 6;
          then Sum mid(UVg(D2),ID1,indx(D2,D1,j)) -(upper_bound rng(g|divset(
D2,ID1)))*vol(divset(D2,ID1)) >=(lower_bound rng g)*vol(divset(D2,ID2)) by A80
,A100,XREAL_1:64;
          then Sum mid(UVg(D2),ID1,indx(D2,D1,j)) >=(lower_bound rng g)*vol(
divset(D2,ID2)) +(upper_bound rng(g|divset(D2,ID1)))*vol(divset(D2,ID1)) by
XREAL_1:19;
          then Sum mid(UVg(D2),ID1,indx(D2,D1,j))-(lower_bound rng g)*vol(
divset(D2,ID2)) >=(upper_bound rng(g|divset(D2,ID1)))*vol(divset(D2,ID1)) by
XREAL_1:19;
          then Sum mid(UVg(D2),ID1,indx(D2,D1,j))-(lower_bound rng g)*vol(
divset(D2,ID2)) >=(lower_bound rng g)*vol(divset(D2,ID1)) by A97,XXREAL_0:2;
          then Sum mid(UVg(D2),ID1,indx(D2,D1,j)) >= (lower_bound rng g)*vol(
divset(D2,ID2) ) + (lower_bound rng g)*vol(divset(D2,ID1)) by XREAL_1:19;
          then Sum mid(UVg(D1),j,j)-Sum mid(UVg(D2),ID1,indx(D2,D1,j)) <=(
upper_bound rng g)*vol(divset(D2,ID2))+(upper_bound rng g)* vol(divset(D2,ID1))
-((lower_bound rng g)*vol(divset(D2,ID2))+(lower_bound rng g)* vol(divset(D2,
          ID1))) by A96,XREAL_1:13;
          hence thesis;
        end;
        upper_bound rng g - lower_bound rng g >= 0 by A27,Lm3,XREAL_1:48;
        then (upper_bound rng g - lower_bound rng g)*(vol(divset(D1,j))) <=(
        upper_bound rng g - lower_bound rng g)*delta(D1) by A6,Lm5,XREAL_1:64;
        hence thesis by A90,A92,XXREAL_0:2;
      end;
    end;
    hence thesis;
  end;
  j in Seg len upper_volume(g,D1) by A5,INTEGRA1:def 6;
  then j in dom upper_volume(g,D1) by FINSEQ_1:def 3;
  then
A101: PUg(D1,j)=Sum(upper_volume(g,D1)|j) by INTEGRA1:def 20
    .=Sum upper_volume(g,D1) by A8,FINSEQ_1:58;
A102: j <= len UVg(D1) by INTEGRA1:def 6;
A103: 1 <= j1 by A10,FINSEQ_3:25;
  then mid(D1,1,j1) is increasing by A6,A9,INTEGRA1:7,35;
  then
A104: D1|j1 is increasing by A103,FINSEQ_6:116;
A105: rng (D2|indx(D2,D1,j1)) = rng (D1|j1) by A1,A2,A3,A4,Lm6;
  then
A106: D2|indx(D2,D1,j1)=D1|j1 by A13,A104,Th6;
A107: for k st 1 <= k & k <= j1 holds k=indx(D2,D1,k)
  proof
    let k;
    assume that
A108: 1 <= k and
A109: k <= j1;
    assume
A110: k<>indx(D2,D1,k);
    now
      per cases by A110,XXREAL_0:1;
      suppose
A111:   k > indx(D2,D1,k);
        k <= len D1 by A26,A109,XXREAL_0:2;
        then
A112:   k in dom D1 by A108,FINSEQ_3:25;
        then indx(D2,D1,k) in dom D2 by A3,INTEGRA1:def 19;
        then indx(D2,D1,k) in Seg len D2 by FINSEQ_1:def 3;
        then
A113:   1<=indx(D2,D1,k) by FINSEQ_1:1;
A114:   indx(D2,D1,k) < j1 by A109,A111,XXREAL_0:2;
        then
A115:   indx(D2,D1,k) in Seg j1 by A113,FINSEQ_1:1;
        indx(D2,D1,k)<=indx(D2,D1,j1) by A3,A10,A109,A112,Th7;
        then indx(D2,D1,k) in Seg indx(D2,D1,j1) by A113,FINSEQ_1:1;
        then
A116:   (D2|indx(D2,D1,j1)).indx(D2,D1,k)=D2.indx(D2,D1,k) by A11,RFINSEQ:6;
        indx(D2,D1,k) <= len D1 by A26,A114,XXREAL_0:2;
        then indx(D2,D1,k) in Seg len D1 by A113,FINSEQ_1:1;
        then indx(D2,D1,k) in dom D1 by FINSEQ_1:def 3;
        then
A117:   D1.k > D1.indx(D2,D1,k) by A111,A112,SEQM_3:def 1;
        D1.k=D2.indx(D2,D1,k) by A3,A112,INTEGRA1:def 19;
        hence contradiction by A10,A106,A116,A117,A115,RFINSEQ:6;
      end;
      suppose
A118:   k < indx(D2,D1,k);
        k <= len D1 by A26,A109,XXREAL_0:2;
        then
A119:   k in dom D1 by A108,FINSEQ_3:25;
        then indx(D2,D1,k) <= indx(D2,D1,j1) by A3,A10,A109,Th7;
        then
A120:   k <= indx(D2,D1,j1) by A118,XXREAL_0:2;
        then k <= len D2 by A24,XXREAL_0:2;
        then
A121:   k in dom D2 by A108,FINSEQ_3:25;
        k in Seg j1 by A108,A109,FINSEQ_1:1;
        then
A122:   D1.k = (D1|j1).k by A10,RFINSEQ:6;
        indx(D2,D1,k) in dom D2 by A3,A119,INTEGRA1:def 19;
        then
A123:   D2.k < D2.indx(D2,D1,k) by A118,A121,SEQM_3:def 1;
A124:   k in Seg indx(D2,D1,j1) by A108,A120,FINSEQ_1:1;
        D1.k=D2.indx(D2,D1,k) by A3,A119,INTEGRA1:def 19;
        hence contradiction by A11,A106,A122,A123,A124,RFINSEQ:6;
      end;
    end;
    hence contradiction;
  end;
A125: for k be Nat st 1 <= k & k <= len(upper_volume(g,D1)|j1) holds (
  upper_volume(g,D1)|j1).k = (upper_volume(g,D2)|indx(D2,D1,j1)).k
  proof
    indx(D2,D1,j1) in Seg len D2 by A11,FINSEQ_1:def 3;
    then indx(D2,D1,j1) in Seg len upper_volume(g,D2) by INTEGRA1:def 6;
    then
A126: indx(D2,D1,j1) in dom upper_volume(g,D2) by FINSEQ_1:def 3;
    let k be Nat;
    assume that
A127: 1 <= k and
A128: k <= len(upper_volume(g,D1)|j1);
    reconsider k as Element of NAT by ORDINAL1:def 12;
A129: len(upper_volume(g,D1)) = len D1 by INTEGRA1:def 6;
    then
A130: k <= j1 by A26,A128,FINSEQ_1:59;
    then
A131: k <= len D1 by A26,XXREAL_0:2;
    then k in Seg len D1 by A127,FINSEQ_1:1;
    then
A132: k in dom D1 by FINSEQ_1:def 3;
    then
A133: indx(D2,D1,k) in dom D2 by A3,INTEGRA1:def 19;
A134: k in Seg j1 by A127,A130,FINSEQ_1:1;
    then indx(D2,D1,k) in Seg j1 by A107,A127,A130;
    then
A135: indx(D2,D1,k) in Seg indx(D2,D1,j1) by A103,A107;
    then indx(D2,D1,k)<=indx(D2,D1,j1) by FINSEQ_1:1;
    then
A136: indx(D2,D1,k)<=len D2 by A24,XXREAL_0:2;
A137: D1.k=D2.indx(D2,D1,k) by A3,A132,INTEGRA1:def 19;
A138: lower_bound divset(D1,k)=lower_bound divset(D2,indx(D2,D1,k)) &
    upper_bound divset(D1,k)=upper_bound divset(D2,indx(D2,D1,k))
    proof
      per cases;
      suppose
A139:   k=1;
        then
A140:   upper_bound divset(D1,k)=D1.k by A132,INTEGRA1:def 4;
A141:   lower_bound divset(D1,k)=lower_bound A by A132,A139,INTEGRA1:def 4;
        indx(D2,D1,k)=1 by A103,A107,A139;
        hence thesis by A133,A137,A141,A140,INTEGRA1:def 4;
      end;
      suppose
A142:   k<>1;
        then reconsider k1=k-1 as Element of NAT by A132,INTEGRA1:7;
        k <= k+1 by NAT_1:11;
        then k1 <= k by XREAL_1:20;
        then
A143:   k1 <= j1 by A130,XXREAL_0:2;
A144:   k-1 in dom D1 by A132,A142,INTEGRA1:7;
        then 1 <= k1 by FINSEQ_3:25;
        then k1=indx(D2,D1,k1) by A107,A143;
        then
A145:   D2.(indx(D2,D1,k)-1)= D2.indx(D2,D1,k1) by A107,A127,A130;
A146:   indx(D2,D1,k)<>1 by A107,A127,A130,A142;
        then
A147:   lower_bound divset(D2,indx(D2,D1,k))=D2.(indx(D2,D1,k)-1) by A133,
INTEGRA1:def 4;
A148:   upper_bound divset(D2,indx(D2,D1,k))=D2.indx(D2,D1,k) by A133,A146,
INTEGRA1:def 4;
A149:   upper_bound divset(D1,k)=D1.k by A132,A142,INTEGRA1:def 4;
        lower_bound divset(D1,k)=D1.(k-1) by A132,A142,INTEGRA1:def 4;
        hence thesis by A3,A132,A149,A144,A147,A148,A145,INTEGRA1:def 19;
      end;
    end;
    divset(D1,k)=[. lower_bound divset(D1,k), upper_bound divset(D1,k) .]
    by INTEGRA1:4;
    then
A150: divset(D1,k)=divset(D2,indx(D2,D1,k)) by A138,INTEGRA1:4;
A151: k in dom D1 by A127,A131,FINSEQ_3:25;
    j1 in Seg len(upper_volume(g,D1)) by A10,A129,FINSEQ_1:def 3;
    then j1 in dom(upper_volume(g,D1)) by FINSEQ_1:def 3;
    then
A152: (upper_volume(g,D1)|j1).k = upper_volume(g,D1).k by A134,RFINSEQ:6
      .=(upper_bound(rng(g|divset(D2,indx(D2,D1,k)))))*vol(divset(D2, indx(
    D2,D1,k))) by A151,A150,INTEGRA1:def 6;
    1<=indx(D2,D1,k) by A107,A127,A130;
    then
A153: indx(D2,D1,k) in dom D2 by A136,FINSEQ_3:25;
    (upper_volume(g,D2)|indx(D2,D1,j1)).k =(upper_volume(g,D2)|indx(D2,
    D1,j1)).indx(D2,D1,k) by A107,A127,A130
      .=upper_volume(g,D2).indx(D2,D1,k) by A135,A126,RFINSEQ:6
      .=(upper_bound(rng(g|divset(D2,indx(D2,D1,k)))))*vol(divset(D2, indx(
    D2,D1,k))) by A153,INTEGRA1:def 6;
    hence thesis by A152;
  end;
  indx(D2,D1,j1) in dom D2 by A3,A10,INTEGRA1:def 19;
  then indx(D2,D1,j1) <= len D2 by FINSEQ_3:25;
  then
A154: indx(D2,D1,j1) <= len upper_volume(g,D2) by INTEGRA1:def 6;
  j1 in Seg len D1 by A10,FINSEQ_1:def 3;
  then j1 <= len D1 by FINSEQ_1:1;
  then
A155: j1 <= len upper_volume(g,D1) by INTEGRA1:def 6;
  len (D2|indx(D2,D1,j1))=len (D1|j1) by A13,A104,A105,Th6;
  then indx(D2,D1,j1) =j1 by A26,A25,FINSEQ_1:59;
  then len(upper_volume(g,D1)|j1)=indx(D2,D1,j1) by A155,FINSEQ_1:59;
  then len(upper_volume(g,D1)|j1)=len(upper_volume(g,D2)|indx(D2,D1,j1)) by
A154,FINSEQ_1:59;
  then
A156: upper_volume(g,D2)|indx(D2,D1,j1)=upper_volume(g,D1)|j1 by A125,
FINSEQ_1:14;
  j1 in Seg len D1 by A10,FINSEQ_1:def 3;
  then j1 in Seg len upper_volume(g,D1) by INTEGRA1:def 6;
  then
A157: j1 in dom upper_volume(g,D1) by FINSEQ_1:def 3;
  j < j+1 by NAT_1:13;
  then
A158: j1 < j by XREAL_1:19;
  indx(D2,D1,j) <= len D2 by A22,FINSEQ_1:1;
  then
A159: indx(D2,D1,j) <= len UVg(D2) by INTEGRA1:def 6;
  then
A160: indx(D2,D1,j) in dom UVg(D2) by A23,FINSEQ_3:25;
  indx(D2,D1,j1) in Seg len D2 by A11,FINSEQ_1:def 3;
  then indx(D2,D1,j1) in Seg len UVg(D2) by INTEGRA1:def 6;
  then indx(D2,D1,j1) in dom UVg(D2) by FINSEQ_1:def 3;
  then PUg(D2,indx(D2,D1,j1)) =Sum(UVg(D2)|indx(D2,D1,j1)) by INTEGRA1:def 20;
  then PUg(D2,indx(D2,D1,j1)) +Sum mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),
indx(D2,D1,j)) =Sum(UVg(D2)|indx(D2,D1,j1) ^mid(UVg(D2),(indx(D2,D1,j1)+1),indx
  (D2,D1,j))) by RVSUM_1:75
    .=Sum(mid(UVg(D2),1,indx(D2,D1,j1)) ^mid(UVg(D2),indx(D2,D1,j1)+1,indx(
  D2,D1,j))) by A12,FINSEQ_6:116
    .=Sum(mid(UVg(D2),1,indx(D2,D1,j))) by A12,A14,A159,INTEGRA2:4
    .=Sum(UVg(D2)|indx(D2,D1,j)) by A23,FINSEQ_6:116;
  then
A161: PUg(D2,indx(D2,D1,j1)) +Sum mid(upper_volume(g,D2),(indx(D2,D1,j1)+1),
  indx(D2,D1,j)) =PUg(D2,indx(D2,D1,j)) by A160,INTEGRA1:def 20;
A162: 1 <= j by A5,FINSEQ_1:1;
  then
A163: j in dom UVg(D1) by A102,FINSEQ_3:25;
  j1 in Seg len D1 by A10,FINSEQ_1:def 3;
  then j1 in Seg len UVg(D1) by INTEGRA1:def 6;
  then j1 in dom UVg(D1) by FINSEQ_1:def 3;
  then PUg(D1,j1)=Sum(UVg(D1)|j1) by INTEGRA1:def 20;
  then PUg(D1,j1)+Sum mid(UVg(D1),j,j) =Sum((UVg(D1)|j1)^mid(UVg(D1),j,j)) by
RVSUM_1:75
    .=Sum(mid(UVg(D1),1,j1)^mid(UVg(D1),j1+1,j)) by A103,FINSEQ_6:116
    .=Sum(mid(UVg(D1),1,j)) by A103,A102,A158,INTEGRA2:4
    .=Sum(UVg(D1)|j) by A162,FINSEQ_6:116;
  then
A164: PUg(D1,j1)+Sum mid(upper_volume(g,D1),j,j)=PUg(D1,j) by A163,
INTEGRA1:def 20;
  indx(D2,D1,j1) in Seg len D2 by A11,FINSEQ_1:def 3;
  then indx(D2,D1,j1) in Seg len upper_volume(g,D2) by INTEGRA1:def 6;
  then indx(D2,D1,j1) in dom upper_volume(g,D2) by FINSEQ_1:def 3;
  then PUg(D2,indx(D2,D1,j1))=Sum(upper_volume(g,D2)|indx(D2,D1,j1)) by
INTEGRA1:def 20
    .=PUg(D1,j1) by A156,A157,INTEGRA1:def 20;
  hence thesis by A28,A161,A164,A21,A101;
end;

Lm7: vol(A)<>0 & y in rng lower_sum_set(f) implies ex D being Division of A st
D in dom lower_sum_set(f) & y=(lower_sum_set(f)).D & D.1 > lower_bound A
proof
  assume
A1: vol(A)<>0;
  assume y in rng lower_sum_set(f);
  then consider D3 being Element of divs A such that
A2: D3 in dom lower_sum_set(f) and
A3: y=(lower_sum_set(f)).D3 by PARTFUN1:3;
  reconsider D3 as Division of A by INTEGRA1:def 3;
  rng D3 <> {};
  then
A4: 1 in dom D3 by FINSEQ_3:32;
A5: len D3 in Seg len D3 by FINSEQ_1:3;
  now
    per cases;
    suppose
A6:   D3.1 <> lower_bound A;
      D3.1 in A by A4,INTEGRA1:6;
      then lower_bound A <= D3.1 by INTEGRA2:1;
      then D3.1 > lower_bound A by A6,XXREAL_0:1;
      hence thesis by A2,A3;
    end;
    suppose
A7:   D3.1 = lower_bound A;
      ex D being Division of A st D in dom lower_sum_set(f) & y=(
      lower_sum_set(f)).D & D.1 > lower_bound A
      proof
A8:     lower_volume(f,D3).1=(lower_bound rng(f|divset(D3,1)))* vol(
        divset(D3,1)) by A4,INTEGRA1:def 7;
        vol(A) >= 0 by INTEGRA1:9;
        then
A9:     upper_bound A - lower_bound A > 0 by A1,INTEGRA1:def 5;
A10:    y=lower_sum(f,D3) by A3,INTEGRA1:def 11
          .=Sum(lower_volume(f,D3)) by INTEGRA1:def 9
          .=Sum((lower_volume(f,D3)|1)^(lower_volume(f,D3)/^1)) by RFINSEQ:8;
A11:    D3.(len D3) = upper_bound A by INTEGRA1:def 2;
        len D3 in dom D3 by A5,FINSEQ_1:def 3;
        then
A12:    len D3 > 1 by A4,A7,A11,A9,SEQ_4:137,XREAL_1:47;
        then reconsider D=D3/^1 as increasing FinSequence of REAL by
INTEGRA1:34;
A13:    len D = len D3 - 1 by A12,RFINSEQ:def 1;
        upper_bound A > lower_bound A by A9,XREAL_1:47;
        then len D <> 0 by A7,A13,INTEGRA1:def 2;
        then reconsider D as non empty increasing FinSequence of REAL;
A14:    len D in dom D by FINSEQ_5:6;
        len D+1=len D3 by A13;
        then
A15:    D.(len D)=upper_bound A by A11,A12,A14,RFINSEQ:def 1;
A16:    len D3 >= 1+1 by A12,NAT_1:13;
        then
A17:    2 <= len lower_volume(f,D3) by INTEGRA1:def 7;
        1+1 <= len D3 by A12,NAT_1:13;
        then 2 in dom D3 by FINSEQ_3:25;
        then
A18:    D3.1 < D3.2 by A4,SEQM_3:def 1;
A19:    rng D3 c= A by INTEGRA1:def 2;
        rng D c= rng D3 by FINSEQ_5:33;
        then rng D c= A by A19;
        then reconsider D as Division of A by A15,INTEGRA1:def 2;
A20:    1 in Seg 1 by FINSEQ_1:1;
A21:    1 <= len lower_volume(f,D3) by A12,INTEGRA1:def 7;
A22:    len (lower_volume(f,D3)|1)=1;
        1 <= len lower_volume(f,D3) by A12,INTEGRA1:def 7;
        then
A23:    len(mid(lower_volume(f,D3),2,len lower_volume(f,D3))) =len
        lower_volume(f,D3)-'2+1 by A17,FINSEQ_6:118
          .=len D3-'2+1 by INTEGRA1:def 7
          .=len D3-2+1 by A16,XREAL_1:233
          .=len D3-1;
A24:    for i be Nat st 1<=i&i<=len mid(lower_volume(f,D3),2,len
lower_volume(f,D3)) holds mid(lower_volume(f,D3),2,len lower_volume(f,D3)).i =
        lower_volume(f,D).i
        proof
          let i be Nat;
          assume that
A25:      1<=i and
A26:      i<=len mid(lower_volume(f,D3),2,len lower_volume(f,D3));
A27:      1 <= i+1 by NAT_1:12;
          i+1 <= len D3 by A23,A26,XREAL_1:19;
          then
A28:      i+1 in Seg len D3 by A27,FINSEQ_1:1;
          then
A29:      i+1 in dom D3 by FINSEQ_1:def 3;
A30:      divset(D3,i+1)=divset(D,i)
          proof
A31:        i+1 in dom D3 by A28,FINSEQ_1:def 3;
A32:        1<>i+1 by A25,NAT_1:13;
            then
A33:        upper_bound divset(D3,i+1)=D3.(i+1) by A31,INTEGRA1:def 4;
A34:        i in dom D by A13,A23,A25,A26,FINSEQ_3:25;
            then
A35:        D.i=D3.(i+1) by A12,RFINSEQ:def 1;
A36:        lower_bound divset( D3,i+1)=D3.(i+1- 1) by A32,A31,INTEGRA1:def 4;
            per cases;
            suppose
A37:          i=1;
              then
A38:          upper_bound divset(D,i )=D.i by A34,INTEGRA1:def 4;
A39:          lower_bound divset(D,i)=lower_bound A by A34,A37,INTEGRA1:def 4;
              divset(D3,i+1)=[.lower_bound A, D.i.] by A7,A33,A36,A35,A37,
INTEGRA1:4;
              hence thesis by A39,A38,INTEGRA1:4;
            end;
            suppose
A40:          i<>1;
              then i-1 in dom D by A34,INTEGRA1:7;
              then
A41:          D.(i-1)=D3.(i-1+1) by A12,RFINSEQ:def 1
                .=D3.i;
A42:          upper_bound divset(D,i)=D.i by A34,A40,INTEGRA1:def 4;
              lower_bound divset(D,i)=D.(i-1) by A34,A40,INTEGRA1:def 4;
              then divset(D3,i+1)=[.lower_bound divset(D,i), upper_bound
              divset(D,i).] by A33,A36,A35,A42,A41,INTEGRA1:4;
              hence thesis by INTEGRA1:4;
            end;
          end;
          i<=len lower_volume(f,D3) - 1 by A23,A26,INTEGRA1:def 7;
          then
A43:      i <= len lower_volume(f,D3)-2+1;
          mid(lower_volume(f,D3),2,len lower_volume(f,D3 )).i =
          lower_volume(f,D3).(i+2-1) by A17,A25,A43,FINSEQ_6:122
            .=lower_volume(f,D3).(i+1);
          then
A44:      mid(lower_volume(f,D3),2,len lower_volume(f,D3 )).i =(
lower_bound rng(f|divset(D3,i+1)))*vol(divset(D3,i+1)) by A29,INTEGRA1:def 7;
          i in Seg len D by A13,A23,A25,A26,FINSEQ_1:1;
          then i in dom D by FINSEQ_1:def 3;
          hence thesis by A44,A30,INTEGRA1:def 7;
        end;
        1 in dom lower_volume(f,D3) by A21,FINSEQ_3:25;
        then (lower_volume(f,D3)|1).1 = lower_volume(f,D3).1 by A20,RFINSEQ:6;
        then
A45:    lower_volume(f,D3)|1 = <*lower_volume(f,D3).1*> by A22,FINSEQ_1:40;
A46:    2-'1=2-1 by XREAL_1:233
          .= 1;
        rng D <> {};
        then 1 in dom D by FINSEQ_3:32;
        then
A47:    D.1=D3.(1+1) by A12,RFINSEQ:def 1
          .=D3.2;
        D in divs A by INTEGRA1:def 3;
        then
A48:    D in dom lower_sum_set(f) by FUNCT_2:def 1;
        len lower_volume(f,D3) >= 2 by A16,INTEGRA1:def 7;
        then
A49:    mid(lower_volume(f,D3),2,len lower_volume(f,D3)) =lower_volume(f,
        D3)/^1 by A46,FINSEQ_6:117;
        len(mid(lower_volume(f,D3),2,len lower_volume(f,D3))) =len
        lower_volume(f, D) by A13,A23,INTEGRA1:def 7;
        then
A50:    lower_volume(f,D3)/^1 = lower_volume(f,D) by A49,A24,FINSEQ_1:14;
        vol(divset(D3,1))=upper_bound divset(D3,1)-lower_bound divset(D3,
        1) by INTEGRA1:def 5
          .=upper_bound divset(D3,1) - lower_bound A by A4,INTEGRA1:def 4
          .=D3.1 - lower_bound A by A4,INTEGRA1:def 4
          .=0 by A7;
        then y=0+Sum(lower_volume(f,D)) by A10,A45,A8,A50,RVSUM_1:76
          .=lower_sum(f,D) by INTEGRA1:def 9;
        then y=(lower_sum_set(f)).D by INTEGRA1:def 11;
        hence thesis by A7,A48,A47,A18;
      end;
      hence thesis;
    end;
  end;
  hence thesis;
end;

theorem Th12:
  i in dom D & j in dom D & i<=j & r < mid(D,i,j).1 implies
  ex B be non empty closed_interval Subset of REAL st r = lower_bound B &
  upper_bound B=mid(D,i,j).(len mid(D,i,j)) &  mid(D,i,j) is Division of B
proof
  assume
A1: i in dom D;
  assume
A2: j in dom D;
  assume i <= j;
  then consider C being non empty closed_interval Subset of REAL such that
A3: lower_bound C=mid(D,i,j).1 and
A4: upper_bound C=mid(D,i,j).(len mid(D,i,j)) and
A5: mid(D,i,j) is Division of C by A1,A2,INTEGRA1:36;
  reconsider MD=mid(D,i,j) as non empty increasing FinSequence of REAL by A5;
  assume
A6: r < mid(D,i,j).1;
  reconsider rr=r, ub=upper_bound C as Real;
  ex a,b st a <= b & a = lower_bound C & b = upper_bound C by SEQ_4:11;
  then r <= upper_bound C by A6,A3,XXREAL_0:2;
  then reconsider B=[.rr,ub.]
   as non empty closed_interval Subset of REAL by MEASURE5:14;
A7: B=[.lower_bound B,upper_bound B.] by INTEGRA1:4;
  then
A8: lower_bound B = r by INTEGRA1:5;
A9: upper_bound B = upper_bound C by A7,INTEGRA1:5;
  for x being Element of REAL holds x in C implies x in B
  proof let x be Element of REAL;
    assume
A10: x in C;
    then lower_bound C <= x by INTEGRA2:1;
    then
A11: r <= x by A6,A3,XXREAL_0:2;
    x <= upper_bound C by A10,INTEGRA2:1;
    hence thesis by A8,A9,A11,INTEGRA2:1;
  end;
  then
A12: C c= B;
  rng mid(D,i,j) c= C by A5,INTEGRA1:def 2;
  then rng mid(D,i,j) c= B by A12;
  then MD is Division of B by A4,A9,INTEGRA1:def 2;
  hence thesis by A4,A8,A9;
end;

Lm8: vol(A)<>0 & len D1 = 1 implies <*lower_bound A*>^D1 is non empty
increasing FinSequence of REAL
proof
  assume
A1: vol(A)<>0;
  reconsider lb = lower_bound A as Element of REAL by XREAL_0:def 1;
  set MD1 = <*lb*>^D1;
A2: vol(A) >= 0 by INTEGRA1:9;
  assume len D1 = 1;
  then D1.1=upper_bound A by INTEGRA1:def 2;
  then
A3: D1.1 - lower_bound A > 0 by A1,A2,INTEGRA1:def 5;
  then
A4: lower_bound A < D1.1 by XREAL_1:47;
  for n,m being Nat holds
  n in dom MD1 & m in dom MD1 & n<m implies MD1.n < MD1.m
  proof let n,m be Nat;
    assume that
A5: n in dom MD1 and
A6: m in dom MD1 and
A7: n<m;
A8: not m in dom <*lower_bound A*>
    proof
      assume m in dom <*lower_bound A*>;
      then m in Seg len <*lower_bound A*> by FINSEQ_1:def 3;
      then m in {1} by FINSEQ_1:2,39;
      then
A9:   n < 1 by A7,TARSKI:def 1;
      n in Seg len MD1 by A5,FINSEQ_1:def 3;
      hence contradiction by A9,FINSEQ_1:1;
    end;
A10: not MD1.m in rng <*lower_bound A*>
    proof
      assume MD1.m in rng <*lower_bound A*>;
      then MD1.m in {lower_bound A} by FINSEQ_1:38;
      then
A11:  MD1.m = lower_bound A by TARSKI:def 1;
      rng D1 <> {};
      then
A12:  1 in dom D1 by FINSEQ_3:32;
      consider n being Nat such that
A13:  n in dom D1 and
A14:  m=len <*lower_bound A*>+n by A6,A8,FINSEQ_1:25;
      n in Seg len D1 by A13,FINSEQ_1:def 3;
      then
A15:  1 <= n by FINSEQ_1:1;
      D1.n=MD1.m by A13,A14,FINSEQ_1:def 7;
      hence contradiction by A3,A11,A13,A15,A12,SEQ_4:137,XREAL_1:47;
    end;
    MD1.m in rng MD1 by A6,FUNCT_1:def 3;
    then MD1.m in rng <*lower_bound A*> \/ rng D1 by FINSEQ_1:31;
    then
A16: MD1.m in rng D1 by A10,XBOOLE_0:def 3;
    now
      per cases by A5,FINSEQ_1:25;
      suppose
A17:    n in dom <*lower_bound A*>;
        then n in Seg len <*lower_bound A*> by FINSEQ_1:def 3;
        then n in {1} by FINSEQ_1:2,39;
        then
A18:    n = 1 by TARSKI:def 1;
A19:    MD1.n = <*lower_bound A*>.n by A17,FINSEQ_1:def 7
          .= lower_bound A by A18;
        rng D1 <> {};
        then
A20:    1 in dom D1 by FINSEQ_3:32;
        consider k such that
A21:    k in dom D1 and
A22:    MD1.m = D1.k by A16,PARTFUN1:3;
        1 <= k by A21,FINSEQ_3:25;
        then D1.1 <= MD1.m by A21,A22,A20,SEQ_4:137;
        hence thesis by A4,A19,XXREAL_0:2;
      end;
      suppose
        ex i be Nat st i in dom D1 & n = len <*lower_bound A*> + i;
        then consider i such that
A23:    i in dom D1 and
A24:    n=len <*lower_bound A*> + i;
A25:    D1.i=MD1.n by A23,A24,FINSEQ_1:def 7;
        consider j be Nat such that
A26:    j in dom D1 and
A27:    m=len <*lower_bound A*> + j by A6,A8,FINSEQ_1:25;
A28:    D1.j=MD1.m by A26,A27,FINSEQ_1:def 7;
        i < j by A7,A24,A27,XREAL_1:6;
        hence thesis by A23,A26,A25,A28,SEQM_3:def 1;
      end;
    end;
    hence thesis;
  end;
  hence thesis by SEQM_3:def 1;
end;

Lm9: lower_bound A < D2.1 implies <*lower_bound A*>^D2 is non empty increasing
FinSequence of REAL
proof
  reconsider lb = lower_bound A as Element of REAL by XREAL_0:def 1;
  set MD2=<*lb*>^D2;
  assume
A1: lower_bound A < D2.1;
  for n,m being Nat holds
  n in dom MD2 & m in dom MD2 & n<m implies MD2.n < MD2.m
  proof let n,m be Nat;
    assume that
A2: n in dom MD2 and
A3: m in dom MD2 and
A4: n<m;
A5: not m in dom <*lower_bound A*>
    proof
      assume m in dom <*lower_bound A*>;
      then m in Seg len <*lower_bound A*> by FINSEQ_1:def 3;
      then m in {1} by FINSEQ_1:2,39;
      then
A6:   n < 1 by A4,TARSKI:def 1;
      n in Seg len MD2 by A2,FINSEQ_1:def 3;
      hence contradiction by A6,FINSEQ_1:1;
    end;
A7: not MD2.m in rng <*lower_bound A*>
    proof
      assume MD2.m in rng <*lower_bound A*>;
      then MD2.m in {lower_bound A} by FINSEQ_1:38;
      then
A8:   MD2.m = lower_bound A by TARSKI:def 1;
      rng D2 <> {};
      then
A9:   1 in dom D2 by FINSEQ_3:32;
      consider n be Nat such that
A10:  n in dom D2 and
A11:  m=len <*lower_bound A*>+n by A3,A5,FINSEQ_1:25;
      n in Seg len D2 by A10,FINSEQ_1:def 3;
      then
A12:  1 <= n by FINSEQ_1:1;
      D2.n=MD2.m by A10,A11,FINSEQ_1:def 7;
      hence contradiction by A1,A8,A10,A12,A9,SEQ_4:137;
    end;
    MD2.m in rng MD2 by A3,FUNCT_1:def 3;
    then MD2.m in rng <*lower_bound A*> \/ rng D2 by FINSEQ_1:31;
    then
A13: MD2.m in rng <*lower_bound A*> or MD2.m in rng D2 by XBOOLE_0:def 3;
    now
      per cases by A2,FINSEQ_1:25;
      suppose
A14:    n in dom <*lower_bound A*>;
        then n in Seg len <*lower_bound A*> by FINSEQ_1:def 3;
        then n in {1} by FINSEQ_1:2,39;
        then
A15:    n = 1 by TARSKI:def 1;
A16:    MD2.n = <*lower_bound A*>.n by A14,FINSEQ_1:def 7
          .= lower_bound A by A15;
        rng D2 <> {};
        then
A17:    1 in dom D2 by FINSEQ_3:32;
        consider k such that
A18:    k in dom D2 and
A19:    MD2.m = D2.k by A13,A7,PARTFUN1:3;
        k in Seg len D2 by A18,FINSEQ_1:def 3;
        then 1 <= k by FINSEQ_1:1;
        then D2.1 <= MD2.m by A18,A19,A17,SEQ_4:137;
        hence thesis by A1,A16,XXREAL_0:2;
      end;
      suppose
        ex i be Nat st i in dom D2 & n = len <*lower_bound A*> + i;
        then consider i such that
A20:    i in dom D2 and
A21:    n=len <*lower_bound A*> + i;
A22:    D2.i=MD2.n by A20,A21,FINSEQ_1:def 7;
        consider j be Nat such that
A23:    j in dom D2 and
A24:    m=len <*lower_bound A*> + j by A3,A5,FINSEQ_1:25;
A25:    D2.j=MD2.m by A23,A24,FINSEQ_1:def 7;
        i < j by A4,A21,A24,XREAL_1:6;
        hence thesis by A20,A23,A22,A25,SEQM_3:def 1;
      end;
    end;
    hence thesis;
  end;
  hence thesis by SEQM_3:def 1;
end;

theorem Lm10:
for MD1 be Division of A holds MD1 = <*lower_bound A*>^D1 implies (for i
st i in Seg len D1 holds divset(MD1,i+1)=divset(D1,i)) & upper_volume(f,D1)=
upper_volume(f,MD1)/^1 & lower_volume(f,D1)=lower_volume(f,MD1)/^1
proof
  let MD1 be Division of A;
  assume
A1: MD1 = <*lower_bound A*>^D1;
  thus
A2: for i st i in Seg len D1 holds divset(MD1,i+1)=divset(D1,i)
  proof
    let i;
    assume
A3: i in Seg len D1;
    then
A4: i in dom D1 by FINSEQ_1:def 3;
    i <= len D1 by A3,FINSEQ_1:1;
    then i+1 <= len D1+1 by XREAL_1:6;
    then i+1 <= len D1 + len<*lower_bound A*> by FINSEQ_1:39;
    then
A5: i+1 <= len MD1 by A1,FINSEQ_1:22;
    1 <= i+1 by NAT_1:11;
    then
A6: i+1 in dom MD1 by A5,FINSEQ_3:25;
A7: 1 <= i by A3,FINSEQ_1:1;
A8: lower_bound divset(D1,i)=lower_bound divset(MD1,i+1) & upper_bound
    divset(D1,i)=upper_bound divset(MD1,i+1)
    proof
      per cases;
      suppose
A9:     i=1;
A10:    i+1 > 1 by A7,NAT_1:13;
        then lower_bound divset(MD1,i+1)=MD1.(i+1-1) by A6,INTEGRA1:def 4;
        then
A11:    lower_bound divset(MD1,i+1) = lower_bound A by A1,A9,FINSEQ_1:41;
A12:    MD1.(i+1) = MD1.(i+len <*lower_bound A*>) by FINSEQ_1:40
          .= D1.i by A1,A4,FINSEQ_1:def 7;
        upper_bound divset(MD1,i+1)=MD1. (i+1) by A6,A10,INTEGRA1:def 4;
        hence thesis by A4,A9,A11,A12,INTEGRA1:def 4;
      end;
      suppose
A13:    i<>1;
A14:    i+1 > 1 by A7,NAT_1:13;
        MD1.(i+1) = MD1.(i+len <*lower_bound A*>) by FINSEQ_1:40
          .= D1.i by A1,A4,FINSEQ_1:def 7;
        then
A15:    upper_bound divset(MD1,i+1)=D1.i by A6,A14,INTEGRA1:def 4
          .= upper_bound divset(D1,i) by A4,A13,INTEGRA1:def 4;
        i-1 in dom D1 by A4,A13,INTEGRA1:7;
        then D1.(i-1) = MD1.(i-1+len <*lower_bound A*>) by A1,FINSEQ_1:def 7
          .=MD1.(i-1+1) by FINSEQ_1:39
          .=MD1.(i+1-1);
        then lower_bound divset(D1,i)=MD1.(i+1-1) by A4,A13,INTEGRA1:def 4
          .=lower_bound divset(MD1,i+1) by A6,A14,INTEGRA1:def 4;
        hence thesis by A15;
      end;
    end;
    divset(D1,i)=[.lower_bound divset(D1,i), upper_bound divset(D1,i).]
    by INTEGRA1:4;
    hence thesis by A8,INTEGRA1:4;
  end;
A16: len MD1=len <*lower_bound A*> + len D1 by A1,FINSEQ_1:22
    .= 1+len D1 by FINSEQ_1:39;
  thus upper_volume(f,D1)=upper_volume(f,MD1)/^1
  proof
    set D2 = D1, MD2 = MD1;
    rng upper_volume(f,MD2) <> {};
    then 1 in dom upper_volume(f,MD2) by FINSEQ_3:32;
    then 1 <= len upper_volume(f,MD2) by FINSEQ_3:25;
    then len (upper_volume(f,MD2)/^1)=len upper_volume(f,MD2)-1 by
RFINSEQ:def 1
      .=len MD2 -1 by INTEGRA1:def 6
      .=len D2 by A16;
    then
A17: len upper_volume(f,D2)=len (upper_volume(f,MD2)/^1) by INTEGRA1:def 6;
    for k be Nat holds 1 <= k & k <= len upper_volume(f,D2) implies
    upper_volume(f,D2).k = (upper_volume(f,MD2)/^1).k
    proof
      let k be Nat;
      assume that
A18:  1 <= k and
A19:  k <= len upper_volume(f,D2);
      k+1 <= len upper_volume(f,D2)+1 by A19,XREAL_1:6;
      then
A20:  k+1 <= len D2+1 by INTEGRA1:def 6;
      k in Seg len upper_volume(f,D2) by A18,A19,FINSEQ_1:1;
      then
A21:  k in Seg len D2 by INTEGRA1:def 6;
      then k in dom D2 by FINSEQ_1:def 3;
      then
A22:  upper_volume(f,D2).k=(upper_bound rng(f|divset(D2,k)))*vol(divset(
      D2,k )) by INTEGRA1:def 6
        .=(upper_bound rng(f|divset(MD2,k+1)))*vol(divset(D2,k)) by A2,A21
        .=(upper_bound rng(f|divset(MD2,k+1)))*vol(divset(MD2,k+1)) by A2,A21;
A23:  len (upper_volume(f,MD2)/^1) <= len upper_volume(f,MD2) by FINSEQ_5:25;
      1 <= k+1 by NAT_1:11;
      then k+1 in Seg len MD2 by A16,A20,FINSEQ_1:1;
      then
A24:  k+1 in dom MD2 by FINSEQ_1:def 3;
      1 <= len upper_volume(f,D2) by A18,A19,XXREAL_0:2;
      then
A25:  1 <= len upper_volume(f,MD2) by A17,A23,XXREAL_0:2;
      k in dom (upper_volume(f,MD2)/^1) by A17,A18,A19,FINSEQ_3:25;
      then (upper_volume(f,MD2)/^1).k=upper_volume(f,MD2).(k+1) by A25,
RFINSEQ:def 1
        .=(upper_bound rng(f|divset(MD2,k+1)))*vol(divset(MD2,k+1)) by A24,
INTEGRA1:def 6;
      hence thesis by A22;
    end;
    hence thesis by A17,FINSEQ_1:14;
  end;
  rng lower_volume(f,MD1) <> {};
  then 1 in dom lower_volume(f,MD1) by FINSEQ_3:32;
  then 1 <= len lower_volume(f,MD1) by FINSEQ_3:25;
  then len (lower_volume(f,MD1)/^1)=len lower_volume(f,MD1)-1 by RFINSEQ:def 1
    .=len MD1 -1 by INTEGRA1:def 7
    .=len D1 by A16;
  then
A26: len lower_volume(f,D1)=len (lower_volume(f,MD1)/^1) by INTEGRA1:def 7;
  for k be Nat holds 1 <= k & k <= len lower_volume(f,D1) implies
  lower_volume(f,D1).k = (lower_volume(f,MD1)/^1).k
  proof
    let k be Nat;
    assume that
A27: 1 <= k and
A28: k <= len lower_volume(f,D1);
A29: 1 <= k+1 by NAT_1:11;
    k in Seg len lower_volume(f,D1) by A27,A28,FINSEQ_1:1;
    then
A30: k in Seg len D1 by INTEGRA1:def 7;
    then k in dom D1 by FINSEQ_1:def 3;
    then
A31: lower_volume(f,D1).k=(lower_bound rng(f|divset(D1,k)))*vol(divset(D1,
    k)) by INTEGRA1:def 7
      .=(lower_bound rng(f|divset(MD1,k+1)))*vol(divset(D1,k)) by A2,A30
      .=(lower_bound rng(f|divset(MD1,k+1)))*vol(divset(MD1,k+1)) by A2,A30;
A32: len (lower_volume(f,MD1)/^1) <= len lower_volume(f,MD1) by FINSEQ_5:25;
    k+1 <= len lower_volume(f,D1)+1 by A28,XREAL_1:6;
    then
A33: k+1 <= len D1+1 by INTEGRA1:def 7;
    len MD1=len <*lower_bound A*>+len D1 by A1,FINSEQ_1:22
      .=len D1 + 1 by FINSEQ_1:39;
    then k+1 in Seg len MD1 by A29,A33,FINSEQ_1:1;
    then
A34: k+1 in dom MD1 by FINSEQ_1:def 3;
    1 <= len (lower_volume(f,MD1)/^1) by A26,A27,A28,XXREAL_0:2;
    then
A35: 1 <= len lower_volume(f,MD1) by A32,XXREAL_0:2;
    k in dom (lower_volume(f,MD1)/^1) by A26,A27,A28,FINSEQ_3:25;
    then (lower_volume(f,MD1)/^1).k=lower_volume(f,MD1).(k+1) by A35,
RFINSEQ:def 1
      .=(lower_bound rng(f|divset(MD1,k+1)))*vol(divset(MD1,k+1)) by A34,
INTEGRA1:def 7;
    hence thesis by A31;
  end;
  hence thesis by A26,FINSEQ_1:14;
end;

Lm11: for MD2 being Division of A st MD2 = <*lower_bound A*>^D2 holds vol(
divset(MD2,1))=0
proof
  let MD2 be Division of A;
  assume
A1: MD2 = <*lower_bound A*>^D2;
  rng MD2 <> {};
  then
A2: 1 in dom MD2 by FINSEQ_3:32;
  then
A3: upper_bound divset(MD2,1) = MD2.1 by INTEGRA1:def 4;
  lower_bound divset(MD2,1) = lower_bound A by A2,INTEGRA1:def 4;
  then vol(divset(MD2,1)) = MD2.1 - lower_bound A by A3,INTEGRA1:def 5
    .=lower_bound A-lower_bound A by A1,FINSEQ_1:41;
  hence thesis;
end;

Lm12: for MD1 be Division of A holds MD1 = <*lower_bound A*>^D1 implies delta(
MD1)=delta(D1)
proof
  let MD1 be Division of A;
  assume
A1: MD1 = <*lower_bound A*>^D1;
  then
A2: vol(divset(MD1,1))=0 by Lm11;
  delta(D1) in rng upper_volume(chi(A,A),D1) by XXREAL_2:def 8;
  then consider i such that
A3: i in dom upper_volume(chi(A,A),D1) and
A4: upper_volume(chi(A,A),D1).i=delta(D1) by PARTFUN1:3;
  delta(MD1) in rng upper_volume(chi(A,A),MD1) by XXREAL_2:def 8;
  then consider j such that
A5: j in dom upper_volume(chi(A,A),MD1) and
A6: upper_volume(chi(A,A),MD1).j=delta(MD1 ) by PARTFUN1:3;
  j in Seg len upper_volume(chi(A,A),MD1) by A5,FINSEQ_1:def 3;
  then
A7: j in Seg len MD1 by INTEGRA1:def 6;
  then
A8: j in dom MD1 by FINSEQ_1:def 3;
  then
A9: delta(MD1)=(upper_bound rng(chi(A,A)|divset(MD1,j)))*vol(divset(MD1,j))
  by A6,INTEGRA1:def 6;
A10: delta(MD1) <= delta(D1)
  proof
    per cases;
    suppose
      j=1;
      hence thesis by A2,A9,Th9;
    end;
    suppose
      j<>1;
      then not j in Seg 1 by FINSEQ_1:2,TARSKI:def 1;
      then not j in Seg len <*lower_bound A*> by FINSEQ_1:39;
      then
A11:  not j in dom <*lower_bound A*> by FINSEQ_1:def 3;
      j in dom MD1 by A7,FINSEQ_1:def 3;
      then consider k be Nat such that
A12:  k in dom D1 and
A13:  j=len <*lower_bound A*>+k by A1,A11,FINSEQ_1:25;
A14:  k in Seg len D1 by A12,FINSEQ_1:def 3;
      then divset(D1,k)=divset(MD1,k+1) by A1,Lm10
        .=divset(MD1,j) by A13,FINSEQ_1:39;
      then delta(MD1) = (upper_bound rng(chi(A,A)|divset(D1,k)))* vol(divset(
      D1,k)) by A6,A8,INTEGRA1:def 6;
      then
A15:  delta(MD1)=upper_volume(chi(A,A),D1).k by A12,INTEGRA1:def 6;
      k in Seg len upper_volume(chi(A,A),D1) by A14,INTEGRA1:def 6;
      then k in dom upper_volume(chi(A,A),D1) by FINSEQ_1:def 3;
      then delta(MD1) in rng upper_volume(chi(A,A),D1) by A15,FUNCT_1:def 3;
      hence thesis by XXREAL_2:def 8;
    end;
  end;
  i in Seg len upper_volume(chi(A,A),D1) by A3,FINSEQ_1:def 3;
  then
A16: i in Seg len D1 by INTEGRA1:def 6;
  then i in dom D1 by FINSEQ_1:def 3;
  then len <*lower_bound A*>+i in dom MD1 by A1,FINSEQ_1:28;
  then
A17: i+1 in dom MD1 by FINSEQ_1:39;
  then i+1 in Seg len MD1 by FINSEQ_1:def 3;
  then i+1 in Seg len upper_volume(chi(A,A),MD1) by INTEGRA1:def 6;
  then
A18: i+1 in dom upper_volume(chi(A,A),MD1) by FINSEQ_1:def 3;
  i in dom D1 by A16,FINSEQ_1:def 3;
  then delta(D1)=(upper_bound rng (chi(A,A)|divset(D1,i)))*vol(divset(D1,i))
  by A4,INTEGRA1:def 6
    .=(upper_bound rng(chi(A,A)|divset(MD1,i+1)))*vol(divset(D1,i)) by A1,A16
,Lm10
    .=(upper_bound rng (chi(A,A)|divset(MD1,i+1)))*vol(divset(MD1,i+1)) by A1
,A16,Lm10;
  then delta(D1)=upper_volume(chi(A,A),MD1).(i+1) by A17,INTEGRA1:def 6;
  then delta(D1) in rng upper_volume(chi(A,A),MD1) by A18,FUNCT_1:def 3;
  then delta(D1) <= delta(MD1) by XXREAL_2:def 8;
  hence thesis by A10,XXREAL_0:1;
end;

theorem Th13:
  x in divset(D1,len D1) & vol(A)<>0 & D1<=D2 & rng D2 = rng D1 \/
  {x} & f|A is bounded & x > lower_bound A implies Sum lower_volume(f,D2)-Sum
  lower_volume(f,D1)<=(upper_bound rng f-lower_bound rng f)*delta(D1)
proof
  assume that
A1: x in divset(D1,len D1) and
A2: vol(A)<>0 and
A3: D1 <= D2 and
A4: rng D2 = rng D1 \/ {x} and
A5: f|A is bounded and
A6: x > lower_bound A;
  len D1 in Seg len D1 by FINSEQ_1:3;
  then
A7: 1 <= len D1 by FINSEQ_1:1;
  then len D1 = 1 or len D1 > 1 by XXREAL_0:1;
  then
A8: len D1 = 1 or len D1 >= 1+1 by NAT_1:13;
  now
    per cases by A8;
    suppose
A9:   len D1 = 1;
      then reconsider MD1 = <*lower_bound A*>^D1 as non empty increasing
      FinSequence of REAL by A2,Lm8;
A10:  len MD1 = len <*lower_bound A*> + len D1 by FINSEQ_1:22;
      len <*lower_bound A*> + 1 <= len <*lower_bound A*> + len D1 by A7,
XREAL_1:6;
      then
      MD1.(len MD1)=D1.(len <*lower_bound A*>+ len D1-len <*lower_bound A
      *>) by A10,FINSEQ_1:23
        .=D1.(len D1);
      then
A11:  MD1.(len MD1) = upper_bound A by INTEGRA1:def 2;
      for y being Element of REAL holds y in rng MD1 implies y in A
      proof let y be Element of REAL;
        assume y in rng MD1;
        then
A12:    y in rng <*lower_bound A*> \/ rng D1 by FINSEQ_1:31;
        per cases by A12,XBOOLE_0:def 3;
        suppose
          y in rng <*lower_bound A*>;
          then y in {lower_bound A} by FINSEQ_1:38;
          then
A13:      y = lower_bound A by TARSKI:def 1;
          ex a,b st a <= b & a = lower_bound A & b = upper_bound A by SEQ_4:11;
          hence thesis by A13,INTEGRA2:1;
        end;
        suppose
A14:      y in rng D1;
          rng D1 c= A by INTEGRA1:def 2;
          hence thesis by A14;
        end;
      end;
      then rng MD1 c= A;
      then reconsider MD1 as Division of A by A11,INTEGRA1:def 2;
A15:  len MD1=len <*lower_bound A*> + len D1 by FINSEQ_1:22
        .= 1+len D1 by FINSEQ_1:39;
A16:  vol(A) >= 0 by INTEGRA1:9;
      D1.1=upper_bound A by A9,INTEGRA1:def 2;
      then D1.1 - lower_bound A > 0 by A2,A16,INTEGRA1:def 5;
      then
A17:  lower_bound A < D1.1 by XREAL_1:47;
      lower_volume(f,D1)=lower_volume(f,MD1)/^1 by Lm10;
      then
      lower_volume(f,MD1)=<*(lower_volume(f,MD1))/.1*>^lower_volume(f,D1)
      by FINSEQ_5:29;
      then
A18:  Sum lower_volume(f,MD1)=((lower_volume(f,MD1))/.1)+Sum lower_volume
      (f, D1) by RVSUM_1:76;
A19:  len D1 in dom D1 by FINSEQ_5:6;
A20:  1+len D1 >= 1+1 by A7,XREAL_1:6;
      then
A21:  len MD1 <> 1 by A15;
A22:  len MD1 in dom MD1 by FINSEQ_5:6;
      len MD1 - 1 =len D1 by A15;
      then lower_bound divset(MD1,len MD1) = MD1.(len D1) by A22,A21,
INTEGRA1:def 4
        .=lower_bound A by A9,FINSEQ_1:41;
      then
A23:  lower_bound divset(D1,len D1) = lower_bound divset(MD1,len MD1) by A9,A19
,INTEGRA1:def 4;
      set MD2=<*lower_bound A*>^D2;
      rng MD1 <> {};
      then
A24:  1 in dom MD1 by FINSEQ_3:32;
      then
A25:  lower_volume(f,MD1).1 = (lower_bound rng(f|divset(MD1,1)))* vol(
      divset( MD1,1)) by INTEGRA1:def 7;
      1 in Seg len MD1 by A24,FINSEQ_1:def 3;
      then 1 in Seg len lower_volume(f,MD1) by INTEGRA1:def 7;
      then
A26:  1 in dom lower_volume(f,MD1) by FINSEQ_1:def 3;
      rng D2 <> {};
      then
A27:  1 in dom D2 by FINSEQ_3:32;
      then 1 <= len D2 by FINSEQ_3:25;
      then
A28:  len <*lower_bound A*> + 1 <= len <*lower_bound A*> + len D2 by XREAL_1:6;
A29:  D2.1 in rng D2 by A27,FUNCT_1:def 3;
      lower_bound A < D2.1
      proof
        per cases by A4,A29,XBOOLE_0:def 3;
        suppose
A30:      D2.1 in rng D1;
          rng D1 <> {};
          then
A31:      1 in dom D1 by FINSEQ_3:32;
          consider k such that
A32:      k in dom D1 and
A33:      D1.k = D2.1 by A30,PARTFUN1:3;
          1 <= k by A32,FINSEQ_3:25;
          then D1.1 <= D2.1 by A32,A33,A31,SEQ_4:137;
          hence thesis by A17,XXREAL_0:2;
        end;
        suppose
          D2.1 in {x};
          hence thesis by A6,TARSKI:def 1;
        end;
      end;
      then reconsider MD2 as non empty increasing FinSequence of REAL by Lm9;
      len MD2 = len <*lower_bound A*> + len D2 by FINSEQ_1:22;
      then
      MD2.(len MD2)=D2.(len <*lower_bound A*>+len D2- len <*lower_bound A
      *>) by A28,FINSEQ_1:23
        .=D2.(len D2);
      then
A34:  MD2.(len MD2) = upper_bound A by INTEGRA1:def 2;
      for y being Element of REAL holds y in rng MD2 implies y in A
      proof let y be Element of REAL;
        assume y in rng MD2;
        then
A35:    y in rng <*lower_bound A*> \/ rng D2 by FINSEQ_1:31;
        per cases by A35,XBOOLE_0:def 3;
        suppose
          y in rng <*lower_bound A*>;
          then y in {lower_bound A} by FINSEQ_1:38;
          then
A36:      y = lower_bound A by TARSKI:def 1;
          ex a,b st a <= b & a = lower_bound A & b = upper_bound A by SEQ_4:11;
          hence thesis by A36,INTEGRA2:1;
        end;
        suppose
A37:      y in rng D2;
          rng D2 c= A by INTEGRA1:def 2;
          hence thesis by A37;
        end;
      end;
      then rng MD2 c= A;
      then reconsider MD2 as Division of A by A34,INTEGRA1:def 2;
A38:  x <= upper_bound divset(D1,len D1) by A1,INTEGRA2:1;
      rng MD2 = rng D2 \/ rng <*lower_bound A*> by FINSEQ_1:31
        .=rng D1 \/ rng <*lower_bound A*> \/ {x} by A4,XBOOLE_1:4;
      then
A39:  rng MD2 = rng MD1 \/ {x} by FINSEQ_1:31;
      MD1.(len MD1) = MD1.(len <*lower_bound A*> + len D1) by FINSEQ_1:22
        .=D1.(len D1) by A19,FINSEQ_1:def 7;
      then
A40:  upper_bound divset(MD1,len MD1)=D1.(len D1) by A22,A21,INTEGRA1:def 4
        .= upper_bound divset(D1,len D1) by A9,A19,INTEGRA1:def 4;
      rng D1 c= rng D2 by A3,INTEGRA1:def 18;
      then rng D1 \/ rng<*lower_bound A*> c= rng D2 \/ rng <*lower_bound A*>
      by XBOOLE_1:9;
      then rng MD1 c= rng D2 \/ rng <*lower_bound A*> by FINSEQ_1:31;
      then
A41:  rng MD1 c= rng MD2 by FINSEQ_1:31;
      len D1 <= len D2 by A3,INTEGRA1:def 18;
      then
len D1+len <*lower_bound A*> <= len D2+len <*lower_bound A*> by XREAL_1:6;
      then len MD1 <= len D2+len <*lower_bound A*> by FINSEQ_1:22;
      then len MD1 <= len MD2 by FINSEQ_1:22;
      then
A42:  MD1<=MD2 by A41,INTEGRA1:def 18;
      lower_bound divset(D1,len D1) <= x by A1,INTEGRA2:1;
      then x in divset(MD1,len MD1) by A38,A23,A40,INTEGRA2:1;
      then
A43:  Sum lower_volume(f,MD2)-Sum lower_volume(f,MD1)<=(upper_bound rng f
      -lower_bound rng f)*delta(MD1) by A5,A15,A20,A42,A39,Th10;
      rng MD2 <> {};
      then
A44:  1 in dom MD2 by FINSEQ_3:32;
      then
A45:  lower_volume(f,MD2).1 = (lower_bound rng(f|divset(MD2,1)))* vol(
      divset( MD2,1)) by INTEGRA1:def 7;
      1 in Seg len MD2 by A44,FINSEQ_1:def 3;
      then 1 in Seg len lower_volume(f,MD2) by INTEGRA1:def 7;
      then
A46:  1 in dom lower_volume(f,MD2) by FINSEQ_1:def 3;
      vol(divset(MD2,1))=0 by Lm11;
      then
A47:  lower_volume(f,MD2)/.1 = 0 by A45,A46,PARTFUN1:def 6;
      lower_volume(f,D2)=lower_volume(f,MD2)/^1 by Lm10;
      then
      lower_volume(f,MD2)=<*(lower_volume(f,MD2))/.1*>^lower_volume(f,D2)
      by FINSEQ_5:29;
      then
A48:  Sum lower_volume(f,MD2)=(lower_volume(f,MD2))/.1+Sum lower_volume(f
      ,D2 ) by RVSUM_1:76;
      vol(divset(MD1,1))=0 by Lm11;
      then lower_volume(f,MD1)/.1 = 0 by A25,A26,PARTFUN1:def 6;
      hence thesis by A43,A18,A48,A47,Lm12;
    end;
    suppose
      len D1 >= 2;
      hence thesis by A1,A3,A4,A5,Th10;
    end;
  end;
  hence thesis;
end;

theorem Th14:
  x in divset(D1,len D1) & vol(A)<>0 & D1<=D2 & rng D2 = rng D1 \/
  {x} & f|A is bounded & x > lower_bound A implies Sum upper_volume(f,D1)-Sum
  upper_volume(f,D2)<=(upper_bound rng f-lower_bound rng f)*delta(D1)
proof
  assume that
A1: x in divset(D1,len D1) and
A2: vol(A)<>0 and
A3: D1 <= D2 and
A4: rng D2 = rng D1 \/ {x} and
A5: f|A is bounded and
A6: x > lower_bound A;
  len D1 in Seg len D1 by FINSEQ_1:3;
  then
A7: 1 <= len D1 by FINSEQ_1:1;
  then len D1 = 1 or len D1 > 1 by XXREAL_0:1;
  then
A8: len D1 = 1 or len D1 >= 1+1 by NAT_1:13;
  now
    per cases by A8;
    suppose
A9:   len D1 = 1;
      then reconsider MD1 = <*lower_bound A*>^D1 as non empty increasing
      FinSequence of REAL by A2,Lm8;
A10:  len MD1 = len <*lower_bound A*> + len D1 by FINSEQ_1:22;
      len <*lower_bound A*> + 1 <= len <*lower_bound A*> + len D1 by A7,
XREAL_1:6;
      then
      MD1.(len MD1)=D1.(len <*lower_bound A*>+len D1- len <*lower_bound A
      *>) by A10,FINSEQ_1:23
        .=D1.(len D1);
      then
A11:  MD1.(len MD1) = upper_bound A by INTEGRA1:def 2;
      for y being Element of REAL holds y in rng MD1 implies y in A
      proof let y be Element of REAL;
        assume y in rng MD1;
        then
A12:    y in rng <*lower_bound A*> \/ rng D1 by FINSEQ_1:31;
        per cases by A12,XBOOLE_0:def 3;
        suppose
          y in rng <*lower_bound A*>;
          then y in {lower_bound A} by FINSEQ_1:38;
          then
A13:      y = lower_bound A by TARSKI:def 1;
          ex a,b st a <= b & a = lower_bound A & b = upper_bound A by SEQ_4:11;
          hence thesis by A13,INTEGRA2:1;
        end;
        suppose
A14:      y in rng D1;
          rng D1 c= A by INTEGRA1:def 2;
          hence thesis by A14;
        end;
      end;
      then rng MD1 c= A;
      then reconsider MD1 as Division of A by A11,INTEGRA1:def 2;
A15:  len MD1=len <*lower_bound A*> + len D1 by FINSEQ_1:22
        .= 1+len D1 by FINSEQ_1:39;
A16:  vol(A) >= 0 by INTEGRA1:9;
      D1.1=upper_bound A by A9,INTEGRA1:def 2;
      then D1.1 - lower_bound A > 0 by A2,A16,INTEGRA1:def 5;
      then
A17:  lower_bound A < D1.1 by XREAL_1:47;
      upper_volume(f,D1)=upper_volume(f,MD1)/^1 by Lm10;
      then upper_volume(f,MD1)=<*upper_volume(f,MD1)/.1*>^upper_volume(f,D1)
      by FINSEQ_5:29;
      then
A18:  Sum upper_volume(f,MD1)=(upper_volume(f,MD1)/.1)+Sum upper_volume(f
      ,D1 ) by RVSUM_1:76;
A19:  len D1 in dom D1 by FINSEQ_5:6;
A20:  1+len D1 >= 1+1 by A7,XREAL_1:6;
      then
A21:  len MD1 <> 1 by A15;
A22:  len MD1 in dom MD1 by FINSEQ_5:6;
      len MD1 - 1 = len D1 by A15;
      then lower_bound divset(MD1,len MD1) = MD1.(len D1) by A22,A21,
INTEGRA1:def 4
        .=lower_bound A by A9,FINSEQ_1:41;
      then
A23:  lower_bound divset(D1,len D1) = lower_bound divset(MD1,len MD1) by A9,A19
,INTEGRA1:def 4;
      set MD2=<*lower_bound A*>^D2;
      rng MD1 <> {};
      then
A24:  1 in dom MD1 by FINSEQ_3:32;
      then
A25:  upper_volume(f,MD1).1 = (upper_bound rng(f|divset(MD1,1)))* vol(
      divset( MD1,1)) by INTEGRA1:def 6;
      1 in Seg len MD1 by A24,FINSEQ_1:def 3;
      then 1 in Seg len upper_volume(f,MD1) by INTEGRA1:def 6;
      then
A26:  1 in dom upper_volume(f,MD1) by FINSEQ_1:def 3;
      rng D2 <> {};
      then
A27:  1 in dom D2 by FINSEQ_3:32;
      then 1 <= len D2 by FINSEQ_3:25;
      then
A28:  len <*lower_bound A*> + 1 <= len <*lower_bound A*> + len D2 by XREAL_1:6;
A29:  D2.1 in rng D2 by A27,FUNCT_1:def 3;
      lower_bound A < D2.1
      proof
        per cases by A4,A29,XBOOLE_0:def 3;
        suppose
A30:      D2.1 in rng D1;
          rng D1 <> {};
          then
A31:      1 in dom D1 by FINSEQ_3:32;
          consider k such that
A32:      k in dom D1 and
A33:      D1.k = D2.1 by A30,PARTFUN1:3;
          1 <= k by A32,FINSEQ_3:25;
          then D1.1 <= D2.1 by A32,A33,A31,SEQ_4:137;
          hence thesis by A17,XXREAL_0:2;
        end;
        suppose
          D2.1 in {x};
          hence thesis by A6,TARSKI:def 1;
        end;
      end;
      then reconsider MD2 as non empty increasing FinSequence of REAL by Lm9;
      len MD2 = len <*lower_bound A*> + len D2 by FINSEQ_1:22;
      then
      MD2.(len MD2)=D2.(len <*lower_bound A*>+len D2- len <*lower_bound A
      *>) by A28,FINSEQ_1:23
        .=D2.(len D2);
      then
A34:  MD2.(len MD2) = upper_bound A by INTEGRA1:def 2;
      for y being Element of REAL holds y in rng MD2 implies y in A
      proof let y be Element of REAL;
        assume y in rng MD2;
        then
A35:    y in rng <*lower_bound A*> \/ rng D2 by FINSEQ_1:31;
        per cases by A35,XBOOLE_0:def 3;
        suppose
          y in rng <*lower_bound A*>;
          then y in {lower_bound A} by FINSEQ_1:38;
          then
A36:      y = lower_bound A by TARSKI:def 1;
          ex a,b st a <= b & a = lower_bound A & b = upper_bound A by SEQ_4:11;
          hence thesis by A36,INTEGRA2:1;
        end;
        suppose
A37:      y in rng D2;
          rng D2 c= A by INTEGRA1:def 2;
          hence thesis by A37;
        end;
      end;
      then rng MD2 c= A;
      then reconsider MD2 as Division of A by A34,INTEGRA1:def 2;
A38:  x <= upper_bound divset(D1,len D1) by A1,INTEGRA2:1;
      rng MD2 = rng D2 \/ rng <*lower_bound A*> by FINSEQ_1:31
        .=rng D1 \/ rng <*lower_bound A*> \/ {x} by A4,XBOOLE_1:4;
      then
A39:  rng MD2 = rng MD1 \/ {x} by FINSEQ_1:31;
      MD1.(len MD1) = MD1.(len <*lower_bound A*> + len D1) by FINSEQ_1:22
        .=D1.(len D1) by A19,FINSEQ_1:def 7;
      then
A40:  upper_bound divset(MD1,len MD1)=D1.(len D1) by A22,A21,INTEGRA1:def 4
        .= upper_bound divset(D1,len D1) by A9,A19,INTEGRA1:def 4;
      rng D1 c= rng D2 by A3,INTEGRA1:def 18;
      then rng D1 \/ rng<*lower_bound A*> c= rng D2 \/ rng <*lower_bound A*>
      by XBOOLE_1:9;
      then rng MD1 c= rng D2 \/ rng <*lower_bound A*> by FINSEQ_1:31;
      then
A41:  rng MD1 c= rng MD2 by FINSEQ_1:31;
      len D1 <= len D2 by A3,INTEGRA1:def 18;
      then
len D1+len <*lower_bound A*> <= len D2+len <*lower_bound A*> by XREAL_1:6;
      then len MD1 <= len D2+len <*lower_bound A*> by FINSEQ_1:22;
      then len MD1 <= len MD2 by FINSEQ_1:22;
      then
A42:  MD1<=MD2 by A41,INTEGRA1:def 18;
      lower_bound divset(D1,len D1) <= x by A1,INTEGRA2:1;
      then x in divset(MD1,len MD1) by A38,A23,A40,INTEGRA2:1;
      then
A43:  Sum upper_volume(f,MD1)-Sum upper_volume(f,MD2) <=(upper_bound rng
      f-lower_bound rng f)*delta(MD1) by A5,A15,A20,A42,A39,Th11;
      rng MD2 <> {};
      then
A44:  1 in dom MD2 by FINSEQ_3:32;
      then
A45:  upper_volume(f,MD2).1 = (upper_bound rng(f|divset(MD2,1)))* vol(
      divset( MD2,1)) by INTEGRA1:def 6;
      1 in Seg len MD2 by A44,FINSEQ_1:def 3;
      then 1 in Seg len upper_volume(f,MD2) by INTEGRA1:def 6;
      then
A46:  1 in dom upper_volume(f,MD2) by FINSEQ_1:def 3;
      vol(divset(MD2,1))=0 by Lm11;
      then
A47:  upper_volume(f,MD2)/.1 = 0 by A45,A46,PARTFUN1:def 6;
      upper_volume(f,D2)=upper_volume(f,MD2)/^1 by Lm10;
      then upper_volume(f,MD2)=<*upper_volume(f,MD2)/.1*>^upper_volume(f,D2)
      by FINSEQ_5:29;
      then
A48:  Sum upper_volume(f,MD2)=(upper_volume(f,MD2)/.1)+Sum upper_volume(f
      ,D2 ) by RVSUM_1:76;
      vol(divset(MD1,1))=0 by Lm11;
      then upper_volume(f,MD1)/.1 = 0 by A25,A26,PARTFUN1:def 6;
      hence thesis by A43,A18,A48,A47,Lm12;
    end;
    suppose
      len D1 >= 2;
      hence thesis by A1,A3,A4,A5,Th11;
    end;
  end;
  hence thesis;
end;

theorem Th15:
  i in dom D1 & j in dom D1 & i<=j & D1 <= D2 & r < mid(D2,indx(D2
,D1,i),indx(D2,D1,j)).1 implies
 ex B be non empty closed_interval Subset of REAL, MD1,MD2
be Division of B st r=lower_bound B & upper_bound B=MD2.(len MD2) & upper_bound
B=MD1.(len MD1) & MD1 <= MD2 & MD1=mid(D1,i,j) & MD2=mid(D2,indx(D2,D1,i),indx(
  D2,D1,j))
proof
  set MD1=mid(D1,i,j);
  set MD2=mid(D2,indx(D2,D1,i),indx(D2,D1,j));
  assume
A1: i in dom D1;
  then
A2: 1 <= i by FINSEQ_3:25;
  assume
A3: j in dom D1;
  assume
A4: i <= j;
  then j-i >= 0 by XREAL_1:48;
  then
A5: j-i+1 >= 0+1 by XREAL_1:6;
A6: j <= len D1 by A3,FINSEQ_3:25;
  then
A7: MD1.1 = D1.(1+i-1) by A4,A5,A2,FINSEQ_6:122
    .= D1.i;
  assume
A8: D1 <= D2;
  then
A9: D2.indx(D2,D1,i)=D1.i by A1,INTEGRA1:def 19;
A10: D2.indx(D2,D1,j)=D1.j by A3,A8,INTEGRA1:def 19;
A11: indx(D2,D1,i) in dom D2 by A1,A8,INTEGRA1:def 19;
  then
A12: 1 <= indx(D2,D1,i) by FINSEQ_3:25;
A13: indx(D2,D1,j) in dom D2 by A3,A8,INTEGRA1:def 19;
  then
A14: indx(D2,D1,j) <= len D2 by FINSEQ_3:25;
  D1.i <= D1.j by A1,A3,A4,SEQ_4:137;
  then
A15: indx(D2,D1,i) <= indx(D2,D1,j) by A11,A9,A13,A10,SEQM_3:def 1;
  assume
A16: r < mid(D2,indx(D2,D1,i),indx(D2,D1,j)).1;
  then consider B being non empty closed_interval Subset of REAL such that
A17: r = lower_bound B and
A18: upper_bound B=MD2.(len MD2) and
A19: MD2 is Division of B by A11,A13,A15,Th12;
A20: len MD2=indx(D2,D1,j)-indx(D2,D1,i)+1 by A11,A13,A15,INTEGRA1:58;
  reconsider MD2 as Division of B by A19;
  indx(D2,D1,j)-indx(D2,D1,i) >= 0 by A15,XREAL_1:48;
  then
A21: indx(D2,D1,j)-indx(D2,D1,i)+1 >= 0+1 by XREAL_1:6;
  then
A22: MD2.(len MD2)=D2.(indx(D2,D1,j)-indx(D2,D1,i)+1-1+indx(D2,D1,i)) by A15
,A20,A12,A14,FINSEQ_6:122
    .= D1.j by A3,A8,INTEGRA1:def 19;
  MD2.1=D2.(1+indx(D2,D1,i)-1) by A15,A21,A12,A14,FINSEQ_6:122
    .=D1.i by A1,A8,INTEGRA1:def 19;
  then consider C being non empty closed_interval Subset of REAL such that
A23: r = lower_bound C and
A24: upper_bound C=MD1.(len MD1) and
A25: MD1 is Division of C by A1,A3,A4,A16,A7,Th12;
 len MD1=j-i+1 by A1,A3,A4,INTEGRA1:58;
then A26: MD1.(len MD1)=D1.(j-i+1-1+i) by A4,A5,A2,A6,FINSEQ_6:122
    .=D1.j;
A27: B=[.lower_bound B,upper_bound B.] by INTEGRA1:4
    .=C by A17,A18,A23,A24,A26,A22,INTEGRA1:4;
  then reconsider MD1 as Division of B by A25;
A28: rng MD1 c= rng MD2
  proof
    let x1 be object;
A29: rng MD1 c= rng D1 by FINSEQ_6:119;
    assume
A30: x1 in rng MD1;
    then consider k1 being Element of NAT such that
A31: k1 in dom MD1 and
A32: MD1.k1=x1 by PARTFUN1:3;
    rng D1 c= rng D2 by A8,INTEGRA1:def 18;
    then rng MD1 c= rng D2 by A29;
    then consider k2 being Element of NAT such that
A33: k2 in dom D2 and
A34: D2.k2=x1 by A30,PARTFUN1:3;
A35: k1 <= len MD1 by A31,FINSEQ_3:25;
A36: 1 <= k1 by A31,FINSEQ_3:25;
    then 1 <= len MD1 by A35,XXREAL_0:2;
    then 1 in dom MD1 by FINSEQ_3:25;
    then MD1.1<=MD1.k1 by A31,A36,SEQ_4:137;
    then
A37: indx(D2,D1,i) <= k2 by A11,A9,A7,A33,A34,A32,SEQM_3:def 1;
    then consider k3 being Nat such that
A38: k2+1 = indx(D2,D1,i)+k3 by NAT_1:10,12;
    len MD1 in dom MD1 by FINSEQ_5:6;
    then MD1.k1<=MD1.(len MD1) by A31,A35,SEQ_4:137;
    then k2 <= indx(D2,D1,j) by A13,A10,A26,A33,A34,A32,SEQM_3:def 1;
    then k2+1<=indx(D2,D1,j)+1 by XREAL_1:6;
    then
A39: k2+1-indx(D2,D1,i)<=indx(D2,D1,j)+1-indx( D2, D1,i) by XREAL_1:9;
    indx(D2,D1,i)+1<=k2+1 by A37,XREAL_1:6;
    then
A40: 1<=k2+1-indx(D2,D1,i) by XREAL_1:19;
    then
A41: k3 in dom MD2 by A20,A39,A38,FINSEQ_3:25;
    MD2.k3 = D2.(k3+indx(D2,D1,i)-1) by A15,A12,A14,A40,A39,A38,
FINSEQ_6:122;
    hence thesis by A34,A38,A41,FUNCT_1:def 3;
  end;
A42: card(rng MD2) = len MD2 by FINSEQ_4:62;
  card(rng MD1) = len MD1 by FINSEQ_4:62;
  then len MD1 <= len MD2 by A28,A42,NAT_1:43;
  then MD1 <= MD2 by A28,INTEGRA1:def 18;
  hence thesis by A17,A18,A24,A27;
end;

theorem Th16:
  x in rng D implies D.1 <= x & x <= D.(len D)
proof
  assume x in rng D;
  then consider i such that
A1: i in dom D and
A2: x=D.i by PARTFUN1:3;
A3: i <= len D by A1,FINSEQ_3:25;
A4: 1 <= i by A1,FINSEQ_3:25;
  then
A5: 1 <= len D by A3,XXREAL_0:2;
  then
A6: len D in dom D by FINSEQ_3:25;
  1 in dom D by A5,FINSEQ_3:25;
  hence thesis by A1,A2,A4,A3,A6,SEQ_4:137;
end;

theorem Th17:
  for p be FinSequence of REAL, i,j,k st p is increasing & i in
dom p & j in dom p & k in dom p & p.i <= p.k & p.k <= p.j holds p.k in rng mid(
  p,i,j)
proof
  let p be FinSequence of REAL;
  let i,j,k;
  assume that
A1: p is increasing and
A2: i in dom p and
A3: j in dom p and
A4: k in dom p and
A5: p.i <= p.k and
A6: p.k <= p.j;
A7: 1 <= i by A2,FINSEQ_3:25;
A8: 1 <= j by A3,FINSEQ_3:25;
A9: j <= len p by A3,FINSEQ_3:25;
A10: i <= k by A1,A2,A4,A5,SEQM_3:def 1;
  then consider n being Nat such that
A11: k+1=i+n by NAT_1:10,12;
A12: k <= j by A1,A3,A4,A6,SEQM_3:def 1;
  then k-i <= j-i by XREAL_1:9;
  then
A13: k-i+1 <= j-i+1 by XREAL_1:6;
  k-i >= 0 by A10,XREAL_1:48;
  then
A14: k-i+1 >= 0+1 by XREAL_1:6;
A15: i <= j by A10,A12,XXREAL_0:2;
  i <= len p by A2,FINSEQ_3:25;
  then len mid(p,i,j) = j-'i+1 by A7,A8,A9,A15,FINSEQ_6:118;
  then len mid(p,i,j) = j-i+1 by A10,A12,XREAL_1:233,XXREAL_0:2;
  then
A16: n in dom mid(p,i,j) by A11,A14,A13,FINSEQ_3:25;
  mid(p,i,j).n = p.(n+i-1) by A7,A9,A15,A11,A14,A13,FINSEQ_6:122
    .=p.k by A11;
  hence thesis by A16,FUNCT_1:def 3;
end;

theorem Th18:
  f|A is bounded & i in dom D implies lower_bound rng(f|divset(D,i
  )) <= upper_bound rng f
proof
  assume
A1: f|A is bounded;
  assume i in dom D;
  then divset(D,i) c= A by INTEGRA1:8;
  hence thesis by A1,Lm4;
end;

theorem Th19:
  f|A is bounded & i in dom D implies upper_bound rng(f|divset(D,i
  )) >= lower_bound rng f
proof
  assume
A1: f|A is bounded;
  assume i in dom D;
  then divset(D,i) c= A by INTEGRA1:8;
  hence thesis by A1,Lm4;
end;

begin :: Darboux's Theorem

theorem Th20:
  f|A is bounded implies
  for D,D1 ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D &
    0 <= lower_sum(f,D2)-lower_sum(f,D) & 0<=lower_sum(f,D2)-lower_sum(f,D1)
  proof
    assume
A1: f|A is bounded;
    for D,D1 ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D &
    0 <= lower_sum(f,D2)-lower_sum(f,D) & 0<=lower_sum(f,D2)-lower_sum(f,D1)
    proof
      let D,D1;
      consider D2 such that
A6:   D<=D2 and
A7:   D1<=D2 and
A8:   rng D2=rng D1 \/ rng D by Th4;
A9:   lower_sum(f,D2)-lower_sum(f,D1)>=0 by A1,A7,INTEGRA1:46,XREAL_1:48;
      lower_sum(f,D2)-lower_sum(f,D)>=0 by A1,A6,INTEGRA1:46,XREAL_1:48;
      hence thesis by A6,A7,A8,A9;
    end;
    hence thesis;
  end;

theorem Th21:
  f|A is bounded implies
  for D,D1 st delta(D1)<min rng upper_volume(chi(A,A),D) ex D2 st D<=D2 &
  D1<=D2 & rng D2=rng D1 \/ rng D & lower_sum(f,D2)-lower_sum(f,D1) <=
  (len D)*(upper_bound(rng f)-lower_bound(rng f))*delta(D1)
  proof
    assume
A1: f|A is bounded;
    then
A5: for D,D1 ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D &
    0 <= lower_sum(f,D2)-lower_sum(f,D) & 0<=lower_sum(f,D2)-lower_sum(f,D1)
      by Th20;
    for D,D1 st delta(D1)<min rng upper_volume(chi(A,A),D) ex D2 st D<=D2 &
D1<=D2 & rng D2=rng D1 \/ rng D & lower_sum(f,D2)-lower_sum(f,D1) <= (len D)*(
  upper_bound(rng f)-lower_bound(rng f))*delta(D1)
  proof
    let D,D1;
    assume
A11: delta(D1)<min rng upper_volume(chi(A,A),D);
    ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D & lower_sum(f,D2)-
    lower_sum(f,D1)<=(len D)*(upper_bound(rng f)- lower_bound(rng f))*delta(D1)
    proof
      consider D2 such that
A12:  D<=D2 and
A13:  D1<=D2 and
A14:  rng D2=rng D1 \/ rng D and
      0<=lower_sum(f,D2)-lower_sum(f,D) and
      0<=lower_sum(f,D2)-lower_sum(f,D1) by A5;
      lower_sum(f,D2)-lower_sum(f,D1) <= (len D)*(upper_bound(rng f)-
      lower_bound(rng f))*delta(D1)
      proof
        deffunc LVf(Division of A) = lower_volume(f,$1);
        deffunc PLf(Division of A,Nat) = (PartSums(lower_volume(f,$1))).$2;
A15:    len D2 in dom D2 by FINSEQ_5:6;
A16:    for i st i in dom D holds ex j st j in dom D1 & D.i in divset(D1,
j) & PLf(D2,indx(D2,D1,j))-PLf(D1,j)<=i*(upper_bound(rng f)- lower_bound(rng f)
        )*delta(D1)
        proof
          defpred P[non zero Nat] means $1 in dom D implies ex j st j in dom
D1 & D.$1 in divset(D1,j) & PLf(D2,indx(D2,D1,j))-PLf(D1,j)<= $1*(upper_bound
          rng f-lower_bound rng f)*delta(D1);
          let i;
          assume
A17:      i in dom D;
          then
A18:      i in Seg len D by FINSEQ_1:def 3;
A19:      for i,j st i in dom D & j in dom D1 & D.i in divset(D1,j) holds
          j >= 2
          proof
            let i,j;
            assume
A20:        i in dom D;
            assume that
A21:        j in dom D1 and
A22:        D.i in divset(D1,j);
            assume j<2;
            then j<1+1;
            then
A23:        j <= 1 by NAT_1:13;
            j in Seg len D1 by A21,FINSEQ_1:def 3;
            then j >= 1 by FINSEQ_1:1;
            then j = 1 by A23,XXREAL_0:1;
            then
A24:        lower_bound divset(D1,j)=lower_bound A by A21,INTEGRA1:def 4;
A25:        D.i<=upper_bound divset(D1,j) by A22,INTEGRA2:1;
            delta(D1) >= min rng upper_volume(chi(A,A),D)
            proof
              per cases;
              suppose
A26:            i=1;
                len D in Seg len D by FINSEQ_1:3;
                then 1 <= len D by FINSEQ_1:1;
                then
A27:            1 in Seg len D by FINSEQ_1:1;
                then
A28:            1 in dom D by FINSEQ_1:def 3;
                then
A29:            lower_bound divset(D,1)=lower_bound A by INTEGRA1:def 4;
                1 in Seg len upper_volume(chi(A,A),D) by A27,INTEGRA1:def 6;
                then
A30:            1 in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
                vol(divset(D,1)) = upper_volume(chi(A,A),D).1 by A28,
INTEGRA1:20;
                then vol(divset(D,1)) in rng upper_volume(chi(A,A),D) by A30,
FUNCT_1:def 3;
                then
A31:            vol
(divset(D,1))>=min rng upper_volume(chi(A,A),D) by XXREAL_2:def 7;
A32:            upper_bound divset(D,1)=D. 1 by A28,INTEGRA1:def 4;
                upper_bound divset(D1,j)-lower_bound A >= D.1-lower_bound
                A by A25,A26,XREAL_1:9;
                then vol(divset(D1,j)) >= upper_bound divset(D,1)-lower_bound
                divset(D,1) by A24,A29,A32,INTEGRA1:def 5;
                then
A33:            vol(divset(D1,j)) >= vol(divset(D,1)) by INTEGRA1:def 5;
                vol(divset(D1,j)) <= delta(D1) by A21,Lm5;
                then delta(D1) >= vol(divset(D,1)) by A33,XXREAL_0:2;
                hence thesis by A31,XXREAL_0:2;
              end;
              suppose
A34:            i<>1;
                then D.(i-1) in A by A20,INTEGRA1:7;
                then
A35:            lower_bound A <= D.(i-1) by INTEGRA2:1;
                lower_bound divset(D,i)=D.(i-1) by A20,A34,INTEGRA1:def 4;
                then
A36:            upper_bound divset(D,i)-lower_bound A >= upper_bound
                divset(D,i)-lower_bound divset(D,i) by A35,XREAL_1:10;
                upper_bound divset(D,i)= D.i by A20,A34,INTEGRA1:def 4;
                then upper_bound divset(D1,j)-lower_bound divset(D1,j) >=
                upper_bound divset(D,i)-lower_bound A by A25,A24,XREAL_1:9;
                then upper_bound divset(D1,j)-lower_bound divset(D1,j) >=
upper_bound divset(D,i)-lower_bound divset( D,i) by A36,XXREAL_0:2;
                then vol(divset(D1,j)) >= upper_bound divset(D,i)-lower_bound
                divset(D,i) by INTEGRA1:def 5;
                then
A37::: licenses, or see http://www.gnu.org/licenses/gpl.html and
 vocabularies STRUCT_0, RELAT_1, TARSKI, ZFMISC_1, XBOOLE_0, SUBSET_1, FUNCT_1,
                then i in Seg len upper_volume(chi(A,A),D) by INTEGRA1:def 6;
                then
A38            iin dom upper_volume(,D)by FINSEQ_1:def 3;
                vol constructors REALSET2, RELSET_1, PARTFUN3, METRIC_1, ROUGHIF1;
INTEGRA1:20;;
     then vol(ivset(,i)in rng upper_volume(chi(A,A)D) by A38,
FUNCT_1, XBOOLE_0, METRIC_1, CARDFIL4,FUNCT_1, FUNCT_2;
               
A39:            <=( +c)/( +
divset(D,)>=min rng (chi(,A),D)by :def 7java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
                ol(ivset(D1,)) < delta(D1) by A21,Lm5;
                then ()> divsetD,i)by ,2;
                hence thesis by A39,XXREAL_0:2;
              end;
            end;
            hence  contradiction by A11;
          ;
A40      []
          
            len D in;
  =lenD FINSEQ_11
            thenend;
A41:1in  D byFINSEQ_3:25;
then consider jsuchthat
A42:        j in dom D1 and
A43:        D.1 in divset(D1,j) by Th3,INTEGRA1B3:card A\\B)=card ( /B)- card ( /B) CARD_244B2;
            PLf(D2,indx(D2,D1,j))-PLf(D1,j) <=1*(upper_bound rng f-
            lower_bound rng f)*delta(D1)
            proof
A44:          j <> 1 by A19,A41,A42,A43;
              then reconsider j1=j-1 as Element of NAT by A42,INTEGRA1:7;
A45:          j1 in dom D1 by A42,A44,INTEGRA1:7;
              then j1 in Seg len D1 by FINSEQ_1:def 3;
              then j1 in Seg len lower_volume(f,D1) by INTEGRA1:def 7;
              then
A46:          j1 in dom lower_volume(f,D1) by FINSEQ_1:def 3;
A47:          j-1 in dom D1 by A42,A44,INTEGRA1:7;
              then
A48      ard(A /B)  (\ )-( /B  (A \/ B)
              then
          indxD2,,j1  SegD2 :3java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
              then
         1 < (D2,D1,1 byFINSEQ_1:1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
              then mid(D2,1hencethesis;
              then
A51reserveYZforofR
                   ,y beingSubset of R holds
              then j1 < j by XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 29
              then
A52          D2D1,j1  D,j byA13A42,Th8;
              then
A53          (,j1)+< D2,j) by 13;
          Summid(f,,indxD2,1j1)+),indxD2,D1,j
)) -Sum f1.x,)  Gx,)by A1
           D1
              
A55:            indx(D2,D1,j)-indx letx  Element of [bool the carrierof R,bool the carrier of R:;
                
                  reconsider ID1=indx(D2,D1,.f.byMCART_1:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                   ID2=D1+as Element  NATjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 58
                  then
A56:              indx(D2,D1,j1)+(1+1)<indx      . (card X /card X -card(X / Y)/card X by A1,CMPLX_1:0
A57:ID1<ID2 by NAT_1:;
                  then indx(2D1,j1) <= ID2 by NAT_1:13;
                  then
A58:              1 <= ID2      = 1   ROUGHIF1:def2
59              indx(D2,D1,j) in dom D2 by A13,A42,INTEGRA1:def ;
                  then
A60:indxD2,,)< lenD2 byFINSEQ_3:25;
                  then  =len 2 byA56,XREAL_0:2
                  .= 1 - kappa_1XY) by ROUGHIF1def5;

A611-   (X\/  card(\/)  (X /Y)) -

ID2D2.D2D1,j A56A59,def ;
               = byA5013java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A64:              D1.j = D2.indx(D2,D1,j) by A13,A42,INTEGRA1:def 19;
                  ID1 <= indx(D2,D1,j) by A56,A57,XXREAL_0:2;
                  then ID1 <= len D2 by A60,XXREAL_0:2;
                  then ID1 in Seg len D2 by A63,FINSEQ_1:1;
                  then
A65:              ID1 in dom D2 by FINSEQ_1:def 3;
                  then
A66:              D2.ID1<D2.ID2 by A57,A61,SEQM_3:def 1;
                  indx(D2,D1,j1) < ID1 by NAT_1:13;
                  then
A67:              D2 .indx(D2,D1,j1)<D2.ID1 by A48,A65,SEQM_3:def 1;
A68:              D1.j1 = D2.indx(D2,D1,j1) by A13,A45,INTEGRA1:def 19;
A69:              not D2.ID1 in rng D1 & not D2.ID2 in rng D1
                  proof
                    assume
A70:D2ID1 in D1 orD2.in rngD1
                    :[]  (X /Y  (X\Y CARD_244;
                    suppose
                      D2.ID1 in rng D1;
                      then consider n such that
A71:                  n in dom D1 and
A72:                  D1.n=D2.ID1 by PARTFUN1:3;
                      j1<n by A45,A67,A68,A71,A72,SEQ_4:137;
                      then
                  jn+ byXREAL_119;
                      .D2.ndxD2D1, A66A62,2
                      n< java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 60
hencebyA73,13
                   ;
                    supposea1: >};
                      D2.inrng D1
                      then consider n such= (,Y ROUGHIF1def1,a1VV;
A74:                  n  kppa_2R.X,) /((#RX)
A75:                  D1.n    hence  by A0,emma2;
      D2.DD,)D2.D2 byA67,66XXREAL_0:;
                      then j1<n by A45,A68,A74,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
                      
A76                  <+1 byXREAL_1:19;
                      n<j by A42,A62java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                      contradiction A76N13java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
            
                  C kap.Y)=1 -1 byA1,;
   (,j=D1j byA42A44d4;
                  then
 proof
d ;
                  lower_bound divset(D1,j)=D1.j1 by A42,A44,INTEGRA1:def 4;
                  then
A78:              lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A13,A45,
INTEGRA1:def 19;
                 .rngD /rngD1 A14,d ;
                  then
A79:              D2.ID2 in rng D by A69,XBOOLE_0:def 3;
                  D2.ID1 in rng D     hencethesis;
                  then
 D2.D1i rngby A69,BOOLE_0def3
                 .D2j1<D2.byA67,A66,:;
                  then D2.ID2 in divset(D1   R.(Y = 1-kappa(XZ)by ROUGHIF1def
                  java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
A81:              D2.ID2 in rng D /\ divset(D1,j) by A79,(kappa_1 R).(X,Y) <= (kappa_2 R).(X,Y) by ROUGHIF1:def 6;
                  D2.ID1<    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 25
                  D2. indivsetD1,  A,INTEGRA21;
                  .ID1in D \divsetD1,) A80,BOOLE_0def 4java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
                  hence contradiction byb
                end;
A82:            1 <= indxjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
                j java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                then
83:            j =len lower_volumefD1)by :def7;
A84:1< j A42F;
                then
            (java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 76
:;
           java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 66
                 by XREAL_0. ( /Z  Z) /(Y\ )/ Y) by21
                j-'j+1 = 1 by Lm1;
                then len mid(lower_volume(f,D1),j,j X\(Y / Z missesX/ Y  D1,XBOOLE_17489;then
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                then mid(lower_volume(,1,,j)=*java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
                then
=java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 72
FINSOP_1:11;
                indx(D2,D1,j) in dom D2 java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 57
                
            (D1j)inSeg D2byFINSEQ_1d ;
                
A88:1 <=indxD2D1,)by 1
                indx(  X\/) /(\/Z)=Y\ (\ )by . X\ Y\ Zby 4; 
def7;
                then
:           indx(,1,)<  lower_volume(D2) FINSEQ_1:
                 +  m -)by u1,X:9,D3b;
            (,,)1<  f, D2 A53:java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
                 indx(2D1,j1+1 in   lower_volume(f,2) 
FINSEQ_1:1;
                then
A91:            indx(D2,D1,j1)+1 in Seg len D2 by INTEGRA1:def 7;
                then
A92:            indx(D2,D1,j1)+1 in dom D2 by FINSEQ_1:def 3;
                indx(D2,D1,j)-'(indx(D2,D1,j1)+1) =indx(D2,D1,j)-(indx(
                D2,D1,j1)+1) by A53,XREAL_1:233;
                then indx(D2,D1,j)-'(indx(D2,D1,j1) +1)+1 <= 2 by A55;
                then
A93:            len mid(lower_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
                ,j))<=2 by A53,A88,A89,A82,A90,FINSEQ_6:118;
                indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1 >= 0+1 by XREAL_1:6;
                then
A94:            1 <= len mid(lower_volume(f,D2),(indx(D2, D1,j1)+1),indx
                (D2,D1,j )) by A53,A88,A89,A82,A90,FINSEQ_6:118;
                now
                  per cases by A94,A93,Lm2;
                  suppose
A95:                len mid(lower_volume(f,D2),(indx(D2,D1,j1)+1),
                    indx(D2,D1,j))=1;
                    upper_bound divset(D1,j)=D1.j by A42,A44,INTEGRA1:def 4;
                    then
A96:                upper_bound divset(D1,j)=D2. indx(D2,D1,j) by A13,A42,
INTEGRA1:def 19;
                    lower_bound divset(D1,j)=D1.j1 by A42,A44,INTEGRA1:def 4;
                    then lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A13,A45,
INTEGRA1:def 19;
                    then
A97:                divset(D1,j)=[. D2.indx(D2,D1, j1),D2.indx(D2,D1,j)
                    .] by A96,INTEGRA1:4;
A98:                delta(D1) >= 0 by Th9;
A99:                upper_bound rng f - lower_bound rng f >= 0 by A1,Lm3,
XREAL_1:48;
00:              D2,,)in D  A,: 19;
                    indx(D2,D1,j      m0  m3 =m0 +  6;then
,A90,A95,FINSEQ_6:118;
                    then
A101:               indx = java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 27
                    then indx(D2,D1,j)<>1 by A49,FINSEQ_1:1;
                    then
A102:               upper_bound divset(D2,indx(D2,D1,j))=D2.indx(D2,D1,j
                    ) by A100,INTEGRA1:def 4;
                    indx(D2,D1,j)-1=indx(D2,D1,j1) by A101;
                    then lower_bound divset(D2,indx(D2,D1,j)) =D2.indx(D2,D1,
                    j1) by A50,A101,A100,INTEGRA1:def 4;
                    then
A103:               divset(D2,indx(D2,D1,j))=divset(D1,j) by A97,A102,
INTEGRA1:4;
           reconsider lv = lower_volume(f,D2).(indx(D2,D1,j1)+1)
as Element of REAL
                    by XREAL_0:def 1;
                    mid(lower_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
,). lower_volume(f,D2)((D2,D1,1)1 A88,89,A82,A90,INSEQ_6:;
                    then mid(lower_volume(f,D2),(indx(D2,D1\(\/Z misses Y\Z by XBOOLE_1:3;
,j)F4   X\( /Z) / (\Z)c X /Y byXBOOLE_1:;
                    then Sum mid(lower_volume(f,D2)f6:   X \( \ )\/Y\Z)c= X /Y \ Zby F4;
D2,D1,j ) lower_volume(f,D2)(indx(,D1,j1)1)by FINSOP_1:java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
                      .=(lower_bound(rng(f|divsetX \\Y c=X\ Y
divsetD,indx(D2,,j1+))by ,INTEGRA1: 7
                      .=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
INTEGRA1:def 7;
                    hence thesis by A98,A99;
                  end;
                  suppose
A104               mid(ower_volume(f,D2),(indx(2D1,1+)
                    indx(D2,D1,j))=.= card X\Y /card X /Y)+cardY\X) /card(\/Y)
A105:               mid(hence thesis by A0,XCMPLX_1
,j)).1 =lower_volume(f,D2).((CMap kappa_1 R).(X,Y) + (CMap ).Y,X)=
A106:               2+indx(D2,j1)1>+ XREAL_1:;
                    mid(lower_volume(f,D2),(indx(D2,java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 23
,j)).2 =LVf(D2)  < {}& Y = {} implies C kappa_1 ).X,)=1
FINSEQ_6
                      .=LVf(D2).(2+(java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 29
                      L(D2.indxD2D1,j1)+(1+)
                    then java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 6
) =*f,D2.indxD2,j1)+), f,D2.indxD2,1,
            )2* byA,FINSEQ_144;
                    then
A107:               Sum mid(lower_volume(f,D2)      (CMapR).X,)=1byF1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 8
er_volume,
                    D1,j1)+2) by RVSUM_1:77;
A108:               vol(divset(D2,indx(D2,java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 41
                    D,)D1.by A42,INTEGRA1def 4;
                    then
A109:               upper_bound java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 6
INTEGRA1:def 19;
A110               vol(ivset(2,indxD2,D1,j1)+2)>0byINTEGRA19
                    indx(D2,D1,j)-'(indx(D2,D1,j1)+1      CMapkappa_1 R.X,)=0&(CMapkappa_1 R)(YX  0 byPropEx30;
,A90,A104,FINSEQ_6:118A1 (CMapkappa_1 R).XY)+(Map  R).(Y,)=
                    then
A111:               indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1=2 by A53,XREAL_1:233;
                    then
A112:               indx (D2,D1,j1)+2 in dom D2 by A13,A42,INTEGRA1:def 19;
                    lower_bound divset(D1,j)=D1.j1 by A42,A44,INTEGRA1cardX \\Y)< card X /Y  Lack,NAT_143java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                    then lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A13,A45,
INTEGRA1:def 19;
                    then
      =card(\+Y)   #]by CARD_24,:
,D1Lemma6f:
;
                    D2,D1,j1+  Seglen (f,D2)byA82,,
     }& Y<>{} 
                     . card(\X by PropEx3k
                    
A114:               indx(D2, (X\Y  (X \/Y)+(kappaR).Y,X PropEx3k
 indxD2,D1,j1)+ < 1byA50,13
                    java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
                    D1,+)byA114
                       - preRIF  :java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46

:lower_bound D2,(indxD2,D1,j1)1) .
                    D2,D1,j1) by A114,A115,INTEGRA1:def 4;
A118               indxD2,1,j1)++>1 A82,NAT_1:;
                    indx(D2,D1,j1)+2-1=indx(D2,D1,j1)ff(xy = F(,y;
                    then
A119:               lower_bound divset(D2,(    kappa )(xy) =1& (Map kappa R.y,x)< 
                    D2,D1,j1)+1) by A112,A118,INTEGRA1:def 4;
                    upper_bound divset(D2,(indx(D2,      by XREAL_1:72;
                    D2,D1,j1)+2) by A112,A118,INTEGRA1:def 4;
                    then vol(divset(D1,j)) =vol(divset(D2,indx(2,,j1+))
+2.((D2,D1,+)-.(D2D, A119,A113,NTEGRA1:def5
                      . Fjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 40
divset(D2,indx(D2,D1,j1)+:forbeingofboolcarrier Rholds
A;
                    then
A120:               vol(divset(D1,j)) =vol(divset(D2,indx(D2,D1,j1)+1))+
2) java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 71
                    then
A121:               lower_volume(fD1).=(rng(f (D1j
))*((divset(D2,ndx(D2,1j1)+))+ol(divset(D2,indx(D2,D1,j1)2))by
A42,INTEGRA1:def 7;
A122:               Sum mid(LVf(D2),indx(D2,    for x,y being Subset of R holds f1.(x,y) =x,y beingSubset of R holds f1.x,y)=f2(x,y)
mid(LVf(D1) ,j,j) <=(upper_bound rng f(,y) =G(,y)A1
indx(2,D1,j1)+)) +vol(divset(D2,indx(D2,D1,j1)+1)))
                    proof
                      set ID2=indx(D2,D1,j1)+2;
                      set ID1=indx(D2,D1,j1)+1;
                      set B = vol(divset(D2,ID1));
                      set C = vol(divset(D2,ID2));
                      (D1j) c=Aby ,INTEGRA1:8;
                      then
A123:                 lower_bound rng(f|divset(D1,j)) >= lower_bound rng
                      f by A1,Lm4
                      ID1 in dom D2 by A91,FINSEQ_1:def 3;
                      then divsetD2,ID1)c=A by INTEGRA1:;
                      then lower_bound rng(f|divset(D2,ID1)) <= upper_bound
                   A1Lm4;
                      then
A124:                 (        by B1,XXREAL_11SUBSET_1def 8java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
,ID1)) <=(upper_bound IF ofR suchthat
                      indx(D2,D1,j)-'(indx(D2,D1,j1)+1)+1=2 by A53,A88,A89,A82
,A90,A104,FINSEQ_6:118;
                      then
A125:                 indx(end;
A126:                 indx(D2,D1,j) in dom D2 by A13,A42,INTEGRA1:def 19;
                      then divset(D2,ID2)c=A by A125,INTEGRA1:8;
                      then
A127:                 lower_bound rng(f|divset(D2,ID2)) <= upper_bound
                      rng f by A1,Lm4;
                      reconsider A = lower_bound(rng(f|divset(D1,j))) as Real;
A128:                 lower_volume(f,D1).j-A*B=A*C by A121;
                      (lower_bound rng(f|divset(D1,j)))*vol( divset(D2,
ID2)) >=(lower_bound rng f)*vol(divset(D2,ID2)) by A110,A123,XREAL_1:64;
                      then Sum mid(LVf(D1),j,j)>=(lower_bound rng(f|divset(D1
,j)))* vol(divset(D2, ID1)) +(lower_bound rng f)*vol(divset(D2,ID2)) by A86
,A128,XREAL_1:19;
                      then
A129:                 Sum mid(LVf(D1),j,j)-(lower_bound rng f)* vol(
divset(D2,ID2) ) >=(lower_bound rng(f|divset(D1,j)))*vol(divset(D2,ID1)) by
XREAL_1:19;
                      (lower_bound rng(f|divset(D1,j)))*vol(divset(D2,
ID1)) >=(lower_bound rng f)*vol(divset(D2,ID1)) by A108,A123,XREAL_1:64;
                      then Sum mid(LVf(D1  end;
divset(D2,ID2))>(lower_bound rng f)*oldivset(2,ID1)by A129,XREAL_0:;

SummidLVf(),jj >(rngf)*
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 28
                      Sum mid(LVf(D2),(indx(D2,D1,j1)+1),indx(D2,D1,j))
=(lower_bound rng(f|divset(D2,indx(D2,D1,j1)+2))) java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 10
+2)) +LVf(D2).(indx. 0+0 / P,A1java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
                        .=(lower_bound rng(f|divset(D2,indx(D2,D1,j1)+2))) *
vol(divset(D2,indx(D2,D1,j1)+2)) +(lower_bound rng(f|divset(D2,indx(D2,D1,j1)+1
))) *vol(divset(D2,indx(D2,D1,j1)+1)) by A92,INTEGRA1:def 7;
                      then Sum mid(LVf(D2),ID1,indx(D2,D1,j)) -(lower_bound
rng(f|divset(D2,ID1)))*vol(divset(D2,ID1)) <=(upper_bound rng f)*vol(divset(D2,
                      ID2)) by A110,A127,XREAL_1:64;
                      then Sum mid(LVf(D2),ID1,indx(D2,D1,j)) <=(upper_bound
rng f)*vol(divset(D2,ID2)) +(lower_bound rng(f|divset(D2,ID1)))*vol(divset(D2,
                      ID1)) by XREAL_1:20;
                      then Sum mid(LVf(D2),ID1,indx(D2,D1,j))-(upper_bound
rng ) (D2 )<(ower_boundrng(divsetD2,ID1)))*divset(
                      D2I) XREAL_1:;
                      then Sum mid(LVf(D2),ID1,indx(D2,D1,j))
rngjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
XXREAL_0:2;
    kappaR.XY)+(CMapkappa R.Y,X)=1 byLemma6f
rng f)*vol(divset dR).X,Y) = ((card(X\ Y  java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 11
                      then java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 6
,proof
D,)-( f)*ol(,D2)( f)*vol(
      R.XY)=Ckappa_1R.X,  (Map(,X)
                      hence thesis;
                    end;
                    upper_bound rng f - lower_bound rng f >= e;
XREAL_1:48;
                    then (upper_bound rng  (elta_1 )(X,)=0+0 byDelta1;
(D1,j))) <=(upper_bound rng f - java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 15
XREAL_1:64;
                    hence thesis by A120,A122,XXREAL_0:2;
                  end;
                end;
                hence thesis;
              
              j < j: m1+m2 > java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 29
              hen
A131:         j1 < j by XREAL_1:19;hencethesis by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
              indx(p
              then
         (,,jj  Seglen D2byFINSEQ_1def 3;
              then
A133:         1( )(,Y  CMapR).Y)+ CMapkappa_1R.YX)
         indxD2D1j1)=len D2by ,INSEQ_11;
              then
A135:         len (D2|indx(D2,D1(R).,)=(CMap ).Y)+(CMapkappa_1R.Y,)
A136
              then:(CMapkappa_2R).XY =0  (R).(Y,X) >= 0 by XXREAL_1:1;
A137:         j1 <= len D1 by FINSEQ_1:1;
              for x1 being object st x1 in rng(D1|j1)
               holds x1 in rng(D2|indx(D2,D1,j1))
              proof
                let x1 be object;
                assume x1 in rng(D1|j1);
                then consider k such that
A138:           k in dom(D1|j1) and
A139:           x1=(D1|j1).k by PARTFUN1:3;
                k in Seg len(D1|j1) by A138,FINSEQ_1:def 3;
                then
A140:           k in Seg j1 by A137,FINSEQ_1:59;
                then
141           k in dom D1 byA45,FINSEQ:6;
                k < j1 by A140,FINSEQ_1:1;
                then D1.k <= D1.j1 by A47,A141,SEQ_4:137;
                 D2indx(2D1k)< D1.j1 by A13,A141,INTEGRA1:def 19;
                then
 =0+0 by Prop6ajava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A143:           (D1|j1).k = D1.k by A45,A140,RFINSEQ:6;
                D1.java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 16
                then x1 in rng
                then consider nsuch that
A144:           n in dom D2 and
A145:           x1=D2.n by PARTFUN1:3;
                D2.indx: CMap kappa_2 R).X,)=card (X\Z)/card #R PropEx31;
INTEGRA1:def 19;
                then
A146:           n <=A146:           n <= (Y  Z)
                1< n byA144,FINSEQ_3:25;
                then
A147:           n in Seg indx(D2,D1,j1) by A146,FINSEQ_1:1;
        in \Y A3,def 5;
                then
A148h thesisby B2B3,CMPLX_1:62;
                D2.n = ((R.X,) +( R.Y,)> d R)(,Z)
                set m3=(kappa_2 R.(Z,m4 = (Map kappa_2 R.ZY)
              end
              then
:rng(1|1 c=rng(|D1j1))
A150:         1 <= j1 by A136,FINSEQ_1:1;
              lower_bound divsetjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              then
A151    otherwise1;
              for x1card (A / B) / card (A \/B) in [0,1.
                holds x1 in rng(D1|j1)
              proof
                let x1 be object;
    hence thesis by XXREAL_1:;
                considerk such that
A152:           k in dom(D2|indx(D2,D1,j1)) and
A153:           x1=(D2|indx(D2,D1,java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 27
                k in Seg len(D2|indx(D2,D1,j1)) by A152,FINSEQ_1:def 3;
                then
A154:           k in Seg indx(D2,D1,j1) by A134,FINSEQ_1:59;
                then
A155:           k in dom D2 by A48,RFINSEQ:6;
A156:           len(      end;
                        (,)=card ( \B)/card A\ B ;then
                then D2.k <= D2.indx(D2,D1         A= B by LemmaCard;
                then
A157:           D2.k <= D1.j1 by A13,A47,INTEGRA1:def 19;
A158:           D2.k in rng D1 implies D2.k in rng(D1|j1)
                proof
                  assume D2.k in rng D1;
                  then consider m such that
A159:             m in dom D1 and
A160:             D2.k = D1.m by PARTFUN1:3;
                  m in Seg len D1 by A159,FINSEQ_1:def 3;
                  then
end
:m =j1byA45A157A,A160SEQM_3def1
                  then m in Seg java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 8
                  java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 6
A163:             D2.k = (D1|j1).m by A45,A160,java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 43
                  m in dom (D1|j1) by A156,A161,A162,FINSEQ_3:25;
                  hence thesis by A163,FUNCT_1:def 3;
                end;
A164:           D2.k in rng D implies D2.k = D1.j1
                proof
                  assume       hence JaccardIndex (A =  by 
                  then java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 19
A165:             n
A166:             D2.k=D.n by PARTFUN1:3;
                  1 <= n by A165,FINSEQ_3:25;
                  then D.1 <= D2.k by A41,A165,A166,SEQ_4:137;
                  then D1.j1 <= D2.k by A151,XXREAL_0:2;
                  hence thesis by A157,XXREAL_0:1;
                end;
A167:             proof
                proof
                   inSeg len(|1 byA150,A156,FINSEQ_1:1
                  then j1 in dom(D1|j1) by FINSEQ_1:def 3;
                  then
A168:             (D1|j1).j1 in rng(D1|j1) by FUNCT_1:def 3;
                  assume
A169      f.xy)=F(x,y)fromBINOP_1:sch 4; then
                  j1 in Seg j1 by A150,FINSEQ_1:1;
                  hence thesis by A45,A164,A169,A168,RFINSEQ:6;
                end;
                D2.k in rng D2 by A155,FUNCT_1:def 3;
                hence thesis by A14,A48,A153,A154,A167,A158,RFINSEQ:6
,XBOOLE_0:def 3;
              end;
              java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
              then
A170:         rng (D2|let f1,f2 beFunction  :boolR, boolR]  suchthat
              mid(D1,1,j1) is increasing by A42,A44,A2: (for x,y being Subset of R holds f2.(x,y) = G(x,y))
              then
A171:         D1|j1 is increasing by A150,FINSEQ_6:116;
              then
A172:         D2|indx(D2,D1,j1)=D1|j1 by A51,A170,Th6;
A173:         for k st 1 <= k & k <= j1 holds k=indx(D2,D1,k)
              proof
                let k;
                assume that
A174:           1 <= k and
A175:           k <= j1;
                assume
A176:           k<>indx(D2,D1,k);
                now
                  per cases by A176,XXREAL_0:1;
                  suppose
A177:               k > indx(D2,D1,k);
                    k <= len D1 by A137,A175,XXREAL_0:2;
                    then
A178:               k in dom D1 by A174,FINSEQ_3:25;
                    then indx(D2,D1,k) in dom D2 by A13,INTEGRA1:def 19;
                    then indx(D2,D1,k) in Seg len D2 by FINSEQ_1:def 3;
                    then
A179:               1<=indx(D2,D1,k) by FINSEQ_1:1;
A180:               indx(D2,D1,k) < j1 by A175,A177,XXREAL_0:2;
                    then
A181:               indx(D2,D1,k) in Seg j1 by A179,FINSEQ_1:1;
                    indx(D2,D1,k)= indx(D2D1j1 by A13,A45,A175,A178,Th7;
                    then indx(      hence thesis;
;
                    then
A182:               (D2|indx(D2,D1,j1)).indx(D2,D1,k)= D2.indx(D2,D1,k)
                    by A48 [bool carrierof ,bool thecarrier of R:, REAL equals
                    indx(D2,D1,
                    then indx(D2,D1,k) in dom D1 bydefinition let X be non empty set,::: should be generalized in DBLSEQ_2
                    then
A183:               D1.k > D1.indx(D2,D1,k) by A177,A178,SEQM_3:def 1;
                    D1.k=D2. indx(D2,D1,k) by A13,A178,INTEGRA1:def 19;
                    henceA1:  is nonnegative-;
                  end;
                  suppose
A184:               k < indx(D2,D1,k);
                    k <= len D1 by A137,A175,java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 36
                    
A185                 dom D1byA174,:25;
                    then indx(D2,D1,k) <= indx(D2,D1,j1) by A13,A45,A175,Th7;
                    then
A186:               k <= indx(D2,D1,j1) by A184,XXREAL_0:2;
                    then k <= len D2 by A134,XXREAL_0:2;
                    then
A187:               k in java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 27
                    k
                    then
A188:               D1.k = (D1|j1).k by A47,RFINSEQ:6;
                    indx(D2,D1,k) in dom D2 by A13,A185,INTEGRA1:def 19;
                    then
A189:               D2.k < D2.indx(D2,D1,k) by A184,A187,SEQM_3:def 1;
A190:               k in Seg indx(D2,D1,j1) by A174,A186,FINSEQ_1:1;
                    D1.k=D2. indx(D2,D1,k) by A13,A185,INTEGRA1:def 19;
    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 25
                  end;
                end;
                hence 
              ;
A191:         for k be Nat st 1 <=       .,)<=f(b) + f.(b,a) by AA,METRIC_1:def 5; then
holds (lower_volume(f,D1)|j1).k = (lower_volume(f,D2)|indx(D2,D1,j1)).k
              proof
                indx(D2,D1,j1) in Seg len D2 by A48,FINSEQ_1:def 3;
                then indx(D2,D1,j1) in Seg len lower_volume(f,       <.a,)+f(ajava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
INTEGRA1:def 7;
                then
A192:           indx(D2,D1,j1) in dom lower_volume(f,D2) by FINSEQ_1:def 3;
                let k be Nat;
                assume that
A193:           1 <=  for  being- 
j1;
                reconsider k as Element of NAT by ORDINAL1:def 12;
A195:           len(lower_volume(f,D1)) = len D1 by INTEGRA1:def 7;
                then
A196:           k <= j1 by A137,A194,FINSEQ_1:59;
                then k <= len D1 by A137,XXREAL_0:2;
                then
 A193,INSEQ_1:;
                x<>y 
A198:           k in domend
                then
A199:           indx(D2,D1,k) in dom D2 by A13,INTEGRA1:def 19;
A200:           k in Seg j1 by A193,A196,FINSEQ_1:1;
                then indx(D2,D1,k) in Seg j1 by A173,A193,A196;
                then
A201:           indx(D2,  SteinhausGenp > [XX:] REALmeans:teinGen
                then indx(it.,y = 2*y) /(f.xp)+f.p)f.xy)
                then
A202:           indx(D2,D1,k)<=len D2 by A134,XXREAL_0:2;
A203:           D1.k=D2.indx (D2,D1,k) by A13,A198,INTEGRA1:def 19;
A204:           lower_bound divset(D1,k)= lower_bound divset(D2,indx(D2,
D1,k)) & upper_bound divset(D1,k)=upper_bound divset(D2,indx(D2,D1,k))
                proof
                  per cases;
                  suppose
A205:               k=1;
                    then
A206:               upper_bound divset(D1,k)=D1.k by A198,INTEGRA1:def 4;
A207:               lower_bound divset(D1,k)= lower_bound A by A198,A205,
INTEGRA1:def 4;
                    indx(D2,D1,k)=1 by A150,A173,A205;
                    hence thesis by A199,A203,A207,A206,INTEGRA1:def 4;
                  end;
                  suppose
A208:               k<>1;
                    then reconsider k1=k-1 as Element of NAT by A198,INTEGRA1:7
;
                    k <= k+1 by NAT_1:11;
                    then k1 <= k by XREAL_1:20;
                    then
A209:               k1 <= j1 by A196,XXREAL_0:2;
A210:               k-1 in dom D1 by A198,A208,INTEGRA1:7;
                    then k1 in Seg len D1 by FINSEQ_1:def 3;
                    then 1 <= k1 by FINSEQ_1:1;
                    then k1=indx(D2,D1,k1) by A173,A209;
                    then
A211:               D2.(indx(D2,D1,k)-1)= D2.indx(D2,D1,k1) by A173,A193,A196;
A212:               indx(D2,D1,k)<>1 by A173,A193,A196,A208;
                    then
A213:               lower_bound divset(D2,indx(D2,D1,k))= D2.(indx(D2,D1
                    ,k)-1) by A199,INTEGRA1:def 4;
A214:               upper_bound divset(D2,indx(D2,D1,k))=D2.indx(D2,D1,k
                    ) by A199,A212,INTEGRA1:def 4;
A215:               upper_bound divset(D1,k)=D1.k by A198,A208,INTEGRA1:def 4;
                    lower_bound divset(D1,k)=D1.(k-1) by A198,A208,
INTEGRA1:def 4;
                    hence thesis by A13,A198,A215,A210,A213,A214,A211,
INTEGRA1:def 19;
                  end;
                end;
                divset(D2,    for x,y being Element ofybeingElement of X holds
ndxD,D1,).]by INTEGRA1:4;
                then
A216:           divset(D1,k)=divset(D2,fg.(x,y) = In ((2 * f.(x,y)) / (f.(x,pf.,p+f.x),
java.lang.StringIndexOutOfBoundsException: Range [13, 4) out of bounds for length 51
                j1 in Seg len(lower_volume(f,D1)) by A45,A195,FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 53
                then :( ,ybeingElement of  holdsf2.x,y) = G(x,y)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                then
A218:           (lower_volume(      f1.(xy by
RFINSEQ:6
                  .=java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 6
                divset(D2,indx(D2,D1,k))) by A217,A216,INTEGRA1:def 7;
                1<=indx(D2,D1,k) by A173,A193,A196;
henindx(2D1,   lenD2 A202,FINSEQ_1:1java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
                then
A219:           indx(D2,D1,k) in dom D2 by FINSEQ_1 set ff  SteinhausGen (f,p;
                (lower_volume(f,D2)|indx(D2,D1,j1)).k =(lower_volume(f,
D2|indx(D2,,j1).(D2,,k)by A173,A193,,
                  .=lower_volume(f,D2).indx
                  .((rngf|ivset(D2,(D2D,k))))*(
                divset(D2indx(D2,,k))by A219,:def7
                hence thesis byjava.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 4
              end;
              ndx(2D1j1)in dom D2by A13,A47,:def;
               indxD2,D1,1)< lenD2 by FINSEQ_3:java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
              then
A220:         indx(D2,D1,j1)< len lower_volume(f,D2) by INTEGRA1:def 7;
              j1 <= len D1 by A47,FINSEQ_3)+f.ajava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
              then
A221letX be non emptyset,
              len (D2|indx(D2,D1,j1))=len (D1|j1) by A51,A171,A170,Th6clusterSteinhausGen(, -discerning;
indx(D2,1j1 =j1 by A137,A135,FINSEQ_1:59;
              then len(lower_volume(f,D1)|      (ap)=0 &f.b, =0by ;then
FINSEQ_1:59;
              then len(lower_volume(f,D1)|ff.(a,b) = (2 * f.(a,b)) / (f.(a,p) + fp +f(a,b)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
              FINSEQ_1:;
              then
A222:         lower_volume(f,D2)|indx(D2 thesisby :3;
              by A191,FINSEQ_1:14;
A223          inSeg len D1by A42,FINSEQ_1:def;
              thenclusterSteinhausGen(f,p)- symmetric;
A224:         1 <= j by FINSEQ_1:1;
              indx(D2,D1,j) in Seg len LVf(D2) by A132,INTEGRA1:def 7;
              then
:indx(2,, in  LVf()by FINSEQ_1:def ;
              indx .=(2 * f.(b,a) / (f.a,p)+f.(b,p) + f.(ab)
              then
A226         D2,j = len LVfD2) by INTEGRA1:def 7;
              j in Seg len LVf(D1) by A223,INTEGRA1:def 7;
              then
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
              j<lenbyA2231;
              then
A228:         j <= len LVf(D1) by INTEGRA1:def 7;
              j1 in Seg len D1 by A45,FINSEQ_1set cc  f.,pp)+.y,p + f.x,y;
      dyz=2 *f.y,);
              then j1 domLVf(1)by FINSEQ_1: 
              then PLf(D1,j1)=Sum(LVf(D1)|j1) by INTEGRA1:def 20;
              then PLf(D1,1)Summid(VfD1,j,j)=Sum((LVf(D1)|1)^mid(LVf(

                .=Sum(mid(LVf(D1),1,j1)^mid(java.lang.StringIndexOutOfBoundsException: Range [44, 47) out of bounds for length 10
FINSEQ_6:116
                .=Sum(mid(LVf(D1),1,j)) by A150,        ff(,)=0by METRIC_1def2java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
                .=Sum(LVf:x < y & x <z&y <> z; then
              
     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 29
INTEGRA1:def 20;
              indx by XREAL_1:9,METRIC_1:def 5; then
              then indx(D2,D1,j1) in Seg len LVf(D2) by INTEGRA1:def 7;
then indx(,D1,j1) in dom LVf(D2) by FINSEQ_1:def 3;
              then PLf(D2,indx(D2,D1,j1))=Sum(Vf(D2)|ndx(2D1,j1)) by
INTEGRA1:def 20;
              then PLf(D2,indx          .,) + y  .xz)+f(yz))java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 66
S0     dxz +dyz)  f.xp)  f(,)+f(,)+f.y,)
              D1,j1)+1),indx(D2,D1,j)dyz /f(p)+f.yp  f.z  f.y,) byXCMPLX_1:;
                .=Sum(mid(LVf(D2 f(,  (yz) by:def4;then
              j1)+1,        f.(x,z) + (f.(y,zz  (.y,z) +
                .=Sum(mid(           f.yp  f.,p) =(.xp +f(zp)  f(,)
                .=Sum(LVfs:f.z,p)=f.p,)by :def4 
              
D2indxD2)+fD)(indxjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
D2,D1,j1)+1),         f.(x,z) +.(, +f.(xp -.zp =f.,p -f(zp
              indx(2D1j1)  Seg len bydef ;
              then indx(D2,D1,j1) in Seg len lower_volume(f,p +f.z,) +
INTEGRA1:def 7java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
              then indx(D2,D1,j1) in dom lower_volume(f,D2) by FINSEQ_1:def 3;
              then PLf(D2,indx(D2,D1,j1))=Sum(lower_volume(f,D2)|indx(D2,D1,
              j1)) by INTEGRA1:def 20
                .PLf(D1,j1)by A222,A46,INTEGRA1:def 20java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
              hence thesis by A54,A230,A229bydef4;then
            end;
            hence thesis by A42,A43;
          end;
          reconsider i as non zero Element of NAT by A18,FINSEQ_1:1:: Minsum Location Problem by Sp\"ath
A231 for i beingnon zero  st P[  Pi+java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55

            deffuncFSubset ofX,Subset of    (card ($ + 2),)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
A232:       i>=1 by NAT_1:14;
            assume
A233:       P[i];
            Pi1]
            proof
         i<  11
              assume
A235:         i+1 in dom D;
              then consider j such that
A236:         j in dom D1 andA2 for x, being Subset of X holds f2.(x,y) = F(x,y);
A237:         D.(= f2.x
A238:         D2.indx(D2,D1,j)=D1.j by A13,A236,INTEGRA1:def 19      consider x1x2 being  such that
              i+ < len Dby A235FINSEQ_3:;
              then i <= len D by A234,XXREAL_0:2;
              then
A239:         i in Seg len D by A232,FINSEQ_1:1;
              then
A240 iin om DbyFINSEQ_1:def java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
n1 beingElement ofNAT such that
A241:         let x be Element boolX;
A242:         D.i in divset(D1,             . card(}X by XBOOLE_1:92
A243:         PLf(D2,indx(D2,D1,n1))-PLf(D1 hence fis ReflexiveMETRIC_1:ef 2
              f- lower_bound rng f)*delta(D1) by
A244:         1 <= n1       f(  0;
A245:         n1 < j
              proof
                assume
           n1 =j;
                now
                  per cases by A246,XXREAL_0:1;
                  supposehencef is symmetricby METRIC_1def 4java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A247:               n1=j;
                    D.i in rng D by A240,FUNCT_1:def 3;
                    then
          D /\ divset(D1,j)byA242,A247,XBOOLE_0:def 4;
                   D.i+1) in rng D by A235,FUNCT_1:def 3;
                    then
A249:               D.(i+1) in rng D /\ divset    end;
                    i+ > i XREAL_1:;
                    hencecontradictionby ,A235,A236,,,A249Th5java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
SEQ_4:138;
                  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
                  suppose
                    registration let X be finite set;
                    then
A250:               n1>=j+1 by NAT_1:13;
                    then
A251:               n1-1 >= j by XREAL_1:19;
                     < by ,FINSEQ_3:;
then +< +by XREAL_1:6
                    then
A252:               n1 <> 1 by A250,XXREAL_0:2;
                    lower_bound divset(D1,n1)<= D.i by A242,INTEGRA2:1;
                    then
    
                    n1-1 in dom D1 by A241,A252,INTEGRA1:7;
                    then D1.j <= D1.(n1-1) by A236,A251
                    then
A254:               D.>=D1.byA253,XXREAL_0:2;
A255:               i < i+1 by XREAL_1:29;
A256:               upper_bound divset(D1,j)=D1.j
                    f.=g.
                       
                      suppose
                        j=1;
                        hence thesis by A236,INTEGRA1:def 4;
                      end;
                      
                        j<>1;
                        hence thesis by A236,INTEGRA1.=g.x1x2) byHoHo,n
                      end;
                    end;
                    D.(i+1)<=upper_bound divset(D1,j) by A237,INTEGRA2:1;
                    then D.i >= D.(i+1) by A256,A254,XXREAL_0:2;
                    hence 
                  ;
                end;
                hence thesis;
              end;
              then
A257:         n1+1 <= j by registration let A be finite non empty set;
A258:         1 <= n1 by A241,  cluster discrete_dist A -> finite emptynonnegative-ielding
A259:         indx(D2,n1)in  D2  ,A241,INTEGRA1d 19;
              then
A260:         1 <= indx(D2,D1,n1) by FINSEQ_3:25;
A261:         indx(D2,D1,j) in dom D2 by java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 20
              then
A262:         1 <= indx(D2,D1,j) java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 17
A263:         indx(D2,D1,j) <= len D2 by A261,FINSEQ_3:25;
              then
A264:         indx(D2,D1,j) <= len LVf(D2) by  = MetrStruct (# A, discrete_dist A #) by METRIC_1
A265:         1 <= j by A236,FINSEQ_3:25;
A266:         j <= len D1 by A236,FINSEQ_3:25;
pbe ofM;
A267:         n1+1 <= len D1 by A257,XXREAL_0:2;
              then
A268:         n1+1 in dom D1 by A244,FINSEQ_3;
              then
A269:         indx(D2,D1,n1+1) in                  p Element of M;
              then
A270:             thedistance of Mis nonnegative-yielding
A271:         D2.indx(D2,D1,n1+ 1)=D1.(n1    thesis java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 35
              D2.ndx(D,n1+)=D2.(,D1j  ,A257Ajava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
,c  (M,p)- eflexive;
              then
A272:         indx(D2,D1,n1+1) <= indx(D2,D1,j) by A269,A261,SEQM_3:def 1;
              then 1+indx(D2,D1,n1+1) <= indx(D2,D1,j)+1 by
then 1 =indx(D2,1j)1-ndxD2D,+)by XREAL_1:19java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
              then
A273:         mid(D2,indx(D2,D1,n1+1),indx( by NonDist,METRIC_1:def8;
              D1,n1+1)) by A272,A270,A263,FINSEQ_6:122
                .=D1.(n1::  ::: Received February 26, 2020
A274::: License version 3.0 or later, subject to the binding interpretation
A275:         j <java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              thenj in Seg len LVf(D1) by A265,FINSEQ_1:    :def9;
                  then
A276:         j in dom LVf(D1) by FINSEQ_1:def 3;
A277:         indx(D2,D1   
              n1 in Seg len D1 by A241,FINSEQ_1:def 3;
              then n1  theorems XBOOLE_1, SUBStheorems       .a 1 JaccardIndex(,  JacDef2
               n1 in dom LVf(D1) by FINSEQ_1:def 3;
              then PLfD1,n1)Sum(LVf    encef is Reflexive by METRIC_1:def2
                .=Sum mid(LVf(D1),1,n1) java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 29
                  hence thesis b:A1
              ^mid(Vf())by
     .=Sum mid(Vf(),1j)by A245,A258,A275hencethesis java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 30
                .=Sum(LVf(D1set q = card x1 forabbeingElementofA() f.,ajava.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
               Elementof ;
:PLf(D1jPLf(1n1Sum mid(Vf(),+j by A276,
INTEGRA1:def 20;
indx(2,D1,j)in len/x2)byCARD_2:,:;java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 72
              end;
              then
:java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 4
A280:         n1 >  by A241FINSEQ_3:5;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 43
                A \+B) =card (A\/B)-card ( /B  java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 7
LVf(D1),n1+1,j) <= (upper_bound rngby A1,CMPLX_160
              proof
                
                  per cases by A257,XXREAL_0:1;
                  suppose
A282:               n1set A =bool the  ofR;
A283:               indx(D2,D1,j)-indx(D2,D1,n1)<=2
                    proof
A284:                 upper_bound divset(D1,j) = D1.j by A236,A245,A280,
INTEGRA1:def 4;
A285:                 lower_bound divset(D1,j) = D1.(j-1) by A236,A245,A280,
INTEGRA1:def 4;
A286:                 1 <= indx(D2,D1,n1)+1 by A260,NAT_1:13;
                      assume indx(D2,D1,j) - indx(D2,D1,n1) > 2;
                      then
A287:                 indx(D2,D1,n1)+2 < indx(D2,D1, j) by XREAL_1:20;
                      then
A288:                 indx(D2,D1,n1)+2 <= len D2 by A263,XXREAL_0:2;
A289:                 indx(D2,D1,n1)+1 < indx(D2,D1,n1)+2 by XREAL_1:6;
                      then
A290:                 indx(D2,D1,n1) < indx(D2,D1,n1)+2 by NAT_1:13;
;
                      then
:                 indx(D2,D1,n1)+ in domD2 by A288,FINSEQ_3:5java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                      then.y)   f.,;
A292:                 D2.indx(D2,D1,j) >= D2.(indx(D2,D1,n1)+2) by A261,A287,
SEQ_4:137;
A293:                 not D2.(indx(D2,D1,n1)+2) in rng D1
                      proof
                        assume D2.(indx(D2,D1,n1)+2) in rng D1;
                        then consider k1 being Element of NAT such that
A294:                   k1 in dom D1 and
A295:                   D2.(indx(D2,D1,n1)+2) = D1.k1 by PARTFUN1:3;
                        D2.(indx(D2,D1,n1)+2) < D2.indx(D2,D1,j) by A261,A287
,A291,SEQM_3:def 1;
                        then
A296:                   k1 < j by A236,A238,A294,A295,SEQ_4:137;
                        D2.(D2,D1,n1) <D2.(indx(D2,D1,n1)+)byA259,A290
,A291,SEQM_3:def 1;
                         n1 <k1 by A241,A274,A294,A295,SEQ_4:137;
hence A282A296,AT_1:java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
                      java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
                      D2.((D2,D1,n1)+2) in rng D2 by A291,FUNCT_1:def ;
                      then
A297:D2.((D2D1n1)2)in rng DbyA14,293,XBOOLE_0:def 3
;
theorem CMapMap:
INTEGRA1:def 4;
299                  divsetD1,)  D1. byA236,A245
INTEGRA1:ef4
                      D2.indx(2D1,n1)+) >= D2.(D2D1,n1) by A259,A290
,A291,SEQ_4                .= f. by MCART_1:21;
                      then D2.(indx(D2,D1,n1)+2) in divset(D1,j) by A274,A238
,A282,A298,A284,A292,INTEGRA2:1;
                      then
A300:                .indx(2D1,n1)+)in  D/ divset(1,j)by A297,
def 4java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
:                 indx(D2D,n1)1<indxD2,1j by A287A289,XXREAL_0:2;
                                        then indx(D2,D1,)+ =len D2 by A263,XXREAL_0:;
                          assume
A302:indx(D2,D1,n1)+  dom D2 byA286,FINSEQ_325;
                      
                 .ndxD,D1,j)> D2.(D2,1n1)+)by A261,A301,
:137;
304                 indxDD1n1)  indx(2,D1,n1+1 byNAT_1:13;
A305:                 not D2.(indx(D2,D1,n1)+1) in rng D1
                      proof
                        assume D2.(indx(D2,D1,n1)+1) in rng D1;
                        then consider k1 being Element of NAT such that
A306:                   k1 in dom D1 and
A307:                   D2.(indx(D2,D1,n1)+1) = D1.k1 by PARTFUN1:3;
                        .(indxD2,,n1)1) < D2.indx(,,j  A261,A301
,A302,SEQM_3:def 1;
                        then
A308:                   k1 < j by A236,A238,A306,A307,SEQ_4:137;
                        D2.indx(D2,D1,n1) < D2.(indx(D2,D1,n1)+1) by A259,A304
,A302,SEQM_3:def 1;
                        then n1 < k1 by A241,A274,A306,A307,SEQ_4:137;
                        hence contradiction by A282,A308,NAT_1:13;
                      end;
                      D2.(indx(D2,D1,n1)+1) in rng D2 by A302,FUNCT_1:def 3;
                      then
A309:                 D2.(indx(D2,D1,n1)+1) in rng D by A14,A305,XBOOLE_0:def 3
;
                      D2.(indx(D2,D1,n1      =(card []R/card ) - card(`\ Y)/card []
 
                     D2.(indx(D2,D1,n1)+1) in divset(D1,j) by A274,A238
,A282,A285,A299,A303,INTEGRA2:1;
                      then D2.(indx(D2,D1,n1)+1) in rng D /\ divset(D1,j) by
A2: C kappa_1 .(,`)=card X  Y)/card(X /Y` by,java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 77
                      then D2.(indx(D2,D1,n1)+1) = D2.(indx(D2,D1,n1)+2) by A11
,A236,A300,Th5;
                      hence contradiction by A289,302A291,EQM_3:def 1;
                    end;
A310:               indx(D2,D1,n1)+1<indx(D2,D1,j) implies indx(D2,D1,n1
                    )+2=indx(D2, D1, j )
                    proof
                      assume indx(D2,D1,n1)+1 < indx(D2,D1,j);
                      then
A311:                 indx(     .kappa X,Y) byA0,ROUGHIF1:def 1,;
indxD,D1) > D2D1,j)  A28320;
                      hence thesis by A311,XXREAL_0:1;
                    end;
A312:               1<=indx(D2,D1,n1)+1 by NAT_1  proof
A313:               indx(D2,D1,j)      card(  `   [])/(card([#R)` /X) /card [#R)
                    D1.n1 < D1.j by A236,A241,A245,SEQM_3:def 1;
                    then
A314:               indx(D2,D1,n1)<indx(D2,D1,j) by A259,A274,A261,A238,
SEQ_4:137;
                          = card (X\Y`) /card (({}R)`` \/ X) by XCMPLX_1:55
A315:               indx(D2,D1,n1)+1 <= indx(D2,D1,j) by NAT_1:13;
                    then indx(D2,D1,n1)+1 <= len D2 by A263,XXREAL_0:2;
      .  (XY) by ROUGHIF1:ef 1,a1,V;
                    then
A316:              lenmid(LVf(,D2,D1,n1)1,indx(D2,D1,j)) =
indx(D2,D1,j)-'(indx(D2,D1,n1)+1)+1 by A262,A315,A312,A313,FINSEQ_6:118
                      .=indx(D2,D1,j)-(indx(D2,D1,n1)+1)+1 by A315,XREAL_1:233
                      .=indx(D2,D1,j)-indx(D2,D1,n1);
                    indx(D2,D1,n1)+1 <= indx(D2,D1,j) by A314,NAT_1:13;
                    then
A317:               indx(D2,D1,n1)+1 = indx(D2,D1, j) or indx(D2,D1,n1)+
                    1 < indx(D2,D1,j) by XXREAL_0:1;
A318:               Sum mid(LVf(D2),indx(D2,D1,n1)+1,indx(D2,D1,j)) <=(
                    upper_bound rng f)*vol(divset(D1,n1+1))
                    proof
                      per cases by A317,A310;
                      suppose
A319:                   indx(D2,D1,j)-indx(D2,D1,n1)=1;
A320:                   indx(D2,D1,n1)+1 > 1 by A260,NAT_1:13;
                        then upper_bound divset(D2,indx(D2,D1,n1)+1)=D2.(indx
                        (D2,D1,n1)+1) by A261,A319,INTEGRA1:def 4;
                        then
A321:                   upper_bound divset(D2,indx(D2,D1,n1)+1)=D1.j by A13
,A236,A319,INTEGRA1:def 19;
                        lower_bound divset(D2,indx(D2,D1,n1)+1)=D2.(indx
                        (D2D1n1)1-)by A261,A320INTEGRA1:def 4java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
                        then
A322:                   lower_bound divset(D2,indx(D2, D1,  existence
  end;
                        lower_bound divsetendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
,
                        then
A323                   divset(2,indxD2,,n1)+)divset(,n1+ byA245
,A280,A268,A282 hencethesis;
 vol(indxD2,n1)+)>=0 by INTEGRA1:;
        reconsider LV = LVf(D2).(indx(D2,D1,n1)+1) as java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 9

                        1=        .1-1byA1,def ;
                        then mid  proof
LVf(2).+(ndx(D2,1,n1)+)-) by A312,313,:122
                          .=LVf(D2).(indx(D2,D1,n1)+1);
                          Y c= Z implies (CMap kappa=implieskappaR).(X,)<=(CMap kappaR).(.(,)
A325:                   mid(LVf(D2),indx(D2,D1,n1)+1,indx(D2,D1,j))
=*V>by A316,
                             byCDef;
(D2,D1,n1)+))) voldivset(D2,indx(D2,D1,n1)+1)) by A261,A319,
INTEGRA1:def 7;
      then LVf(2).indx(D2,D1,n1)+1) <=(upper_bound rng f)
*ol(divset(D1+1) by A1A261A319,A323,A324,Th18,REAL_1:64;
                        hence thesis by A325,FINSOP_1proof
                      end;
                      suppose

                        indx(D2    by Lemma6c1,Lemma6c2;
                        then
A327:                   indxD2,D1,n1)2 < 1;
                        
:upper_bounddivset(,indx(2,1n1+)= D2.ndx
                        (D2,D1,)byA261,A326,:def 4java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
                        indx(D2,D1,setm3=(X \Z)  Y)
                        then lower_bound divset(D2,indx(D2,D1,n1)+2) = D2.(
                        indx(D2,D1,n1)+1) by A261,A326,A327,INTEGRA1:def 4;
                              X /\ Z misses X \ Z by:89; then
                   (divsetD2,,,n1+) =1.-2.java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
D2D1n)+)byA238,A328INTEGRA1def ;
:upper_bound divset(n1+)D1.n1+) by A245,A280,
A,def 4
                        lower_bound divset(java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 44
A268INTEGRA1:def 4;
                        then
A331A331:                   s(/ ) \Z by :,;
INTEGRA1:def 5;
A332:                   vol(divset(D2,indx(=(X\/Z   /(X \ Z \Z)by XBOOLE_121
A333                   indx(2, 7
A334                   voldivset(D2,indx(D2D1,n1)+))> 0by INTEGRA1:9java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
A335:                   1 <= z5:   card (Y \ (X \/ Z)) + card (X \/ Z) = m by XBOOLE_1:79,CARD_2:40; then
A336:                   indx(D2,D1,n1)+1 <= indx(D2, .= X /Y \ Z by XBOOLE_1:4 then
                        then indx(D2,D1,n1)+1 <= len D2 by A263,A326,XXREAL_0T1   CMap  R)(X,Y)=card(X  Y) /card ( /Y by PropEx3
;
                        then
A337:                   indx(D2,D1,n1)+1 in dom D2 by A335,java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 23
                        then LVf(D2).(indx(D2,D1,n1 )+1) =(lower_bound rng(f|
D2indx(D2,D1n)1) vol((D2indx(D2,D1,n1)+))by
INTEGRA1:def 7;
then
:LVf(2)indx(D2,D1n1+1) =(upper_bound rng f
)*vol(divset(D2,indx(D2B:(m0 +m3 /m+(1 + m2) /m  =(  m1 +m2) /m
                        indx(D2,D1,j)-(indx(D2,D1,n1)+1      set b=mjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
                        then
A339:                   mid(LVf(F5:  X \ Y \/Z) missesY \ Z by XBOOLE_1:53;
LVf(D2).(2+(indx(D2,D1,n1)+1)-1) by A335,336,A333,FINSEQ_6:122
.=LVf(D2).indx(D2,,n1)++;
                        indx(D2,D1,j X \ Y c \ Y \/Zby :7; hen
then mid((2)indx(D2,,n1)+1,indx(D2D1,j). =
D2)1((2,D1,1+)1) byA326,,A,:
.=LVf(D2).(indx(D2,D1,n1)+1);
                        then mid(LVf(D2),indx(D2,D1,n1)+      (m0+ m3) / m + (m1 + m2) / m >= (m0 + m2) / (m - m1)
Vf(D2).indx(D2,1,n1)+),LVf(D2).indx(D2,D1,)+2)* by A316,A326,A339,
FINSEQ_1:44;
                       
D2,D1,n1)+,indx(D2,D1,j))
=LVf(D2).(indx(D2,    hence thesis;
A341((CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,X) = 1
                        then
342 upper_bound D,(D2D1n1)+=.indx
                        (D2,D1,n1)+1) by A337,INTEGRA1:def 4;
                        lower_bound divset(D2,indx(D2,D1,n1)+)=D2.(
                        indx(D2D1,n1+1-) by A337,A341,INTEGRA1:def4
                        then
A343:                  (divset(D2,indx(2D1,+) D2.indx(D2Djava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
                        ,n1+) A342,INTEGRA1:5
end
divsetA1: >{} Y={}; then
INTEGRA1:def 7;
                        LVf(D2).indx(D2,D1,n1)+)<=upper_boundrng f
)*vol(divset(D2,indx(D2, D1, .=  by A1;
                        thenSum(LVf(D2),indx(D2,D1,n1)+1,ndx(D2,D1j)
<= (upper_bound rng f)*vol(divset(D2,indx(  proof
vol(divset(F2CR.XY)=0byProp6a;
                        hence thesis by A282
                      end
                          hence thesis by F2,XXREAL_1:1;
A344:               n1+1      CMapR.X, =0 byXXREAL_1:1; then
java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 24
A345:               len mid(LVf(D1),n1+1,j)=j-'(n1+1)+1 by A244,A282,
FINSEQ_6:118
                      .=j-j+1 by A282,XREAL_1:233
. 1
   reconsiderthesisbyF1,;
                    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
           by XREAL_0:  0 <= (CMap kappa_1 R), +kappa_1R.Y,X < 
                    (+1+< j1by XREAL_1:;
                    suppose
                    then         card (X \ Y) / card  /Y)+(Map kappa_1R)(YX)by PropEx3
,282A344,FINSEQ_6:
                      .=(lower_bound rng        =card (X \\Y)/ card(\/ )by CARD_2:,XBOOLE_1:2
                    java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 8
                        C .XY  CMapkappa_2 ).YX 
*> by A345,FINSEQ_1:40;
                    then
A346:               Sum mid(  end;
                    D1,n1(CMap kappa R).XY +(CMap kappa R.(YX  1
                    divset(D1,n1+1) c= A    suppose
                    then
A347:               lower_bound rng(|divset(1n+1)>= lower_bound
                    rng f       hence  by A0,XCMPLX_1:60java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                    +1 in Seg len D1by A268,FINSEQ_1:def 3;
                    then n1+1 in Seg len upper_volume(chi(A,A),D1) by
INTEGRA1:def 6;
                   then
:n1  dom(hi(A,), by:def3;
                    volend
                    1)byA268INTEGRA1:20;
                    deffunc FS SubsetR)=
                    ) by A348,FUNCT_1:def 3;
then
java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 70
                    upper_bound rng f-lower_bound      ff.xy  (,y)
REAL_148;
                    then
A350:               (upper_bound rng f-lower_bound rng f)* vol(divset(D1
,n1+1)) <=(upper_bound rng f-lower_bound rng f)*delta(D1) by A349,XREAL_1:64;
                    vol(divset(D1,n1+1)) >= 0 by INTEGRA1:9;
                    then Sum mid(LVf(D1) by XREAL_1:72
divset(,n1+)) by A346,XREAL_1:64java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
                    then Sum midLVf)indx(,1,n1)1,ndxD2,D1,)-um
java.lang.StringIndexOutOfBoundsException: Range [10, 3) out of bounds for length 76
,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 68
                    :forybeingjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 56
                  end;
                  suppose:;
A351:               n1+1 < jit.x,y)=(CMapkappa_1 ).y  CMapkappa_1 R).,x;
:               n1 < n1+1 y :13;
                    then
A353:               D1.n1 < D1f.,y = F(x,y)from:4 
                    then consider
                    nonemptySubsetofREAL MD2
ingofBthat
:D1n1=lower_bound  and
B=.MD2 and
A355:    hencethesis
A356:               <= MD2 and
A357    letf1, f2bepreRIFofRsuchthat
358               MD2=(indx(,,n1+1),indx(D2,D1,j)) by A13,A236,A257
, x,  ofR;
A359end
A360:  for x,y bein of Rholds
FINSEQ_6:118;

-(n1+++n+)1by,233
                      .=j;
                    j-'(n1+1) take ff
                    then
               j-n1+)1j-1;
                    then
A363:               len MD1    GSubsetofR,of R =
FINSEQ_6fletf1 bepreRIF of R such that
364:               
                    proof
                      let x1 be java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 30
:rngD1c  by:ef2;
1in rng  by A241,: 3;
                      then
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 64
                      assume
A367ed;
thenreconsider x1  ;
A368:                 x1 <= MD1.(len MD1) by A355,A367,INTEGRA2:1;
                      D1.j in rng
                      then
:D1j<  A  A365,NTEGRA2:;
                      D1 .n1 <= x1 by A354,A367,(delta_1 R).(X,Y) = card (X \+\ Y) / card (X \/ Y
then
A370:                 lower_bound A  .card (  Y)/cardX /Y +(Y\X)  card X / Y)
MD1.len )D1.jn1-+n11)byA257,A281,A266,A244
,A357,A362,A363,FINSEQ_6:122
                        .=D1.;
then  < upper_bound A by A368,A369,XXREAL_0:;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
                    end;
                    then reconsider g=f|B asby 
A371:               len lower_volume(g,MD1)=len MD1 by INTEGRA1:def 7
.=-n1+)+ byA257A265,A266,A244,267A357,
FINSEQ_6:118
                      .=j-(n1+1)+1 by A257,XREAL_1:233;
A372:               len MD1 in dom MD1 by FINSEQ_5:6;
                    then
A373:               endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 MD1)= divset(
D1,j &upper_bound divset(MD1,len MD1)upper_bound divset(D1,j)
                    proof
             percases;
                      suppose
A375:                   len MD1=1;
                        then
A376:                   upper_bound divset(MD1,len MD1)=MD1.    (delta_1 R).X,Y)= (CMap kappa_1 R)(X,Y) +(CMap kappa_1 R).Y,)
INTEGRA1:def 4;
A377:                   java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 7
INTEGRA1: 4java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
                        lower_bound divset(D1,j)=D1.    endjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
INTEGRA1:def 4;
                        hence
                    thesisby A266A,A372A375A376
FINSEQ_6    ( ).,Y  (  R.X,) +(Map kappa_2R).Y,)
                      end;
                      suppose
A378:                   len MD1<>1;
then len -indom  by A372,java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 69
                        then
A379:                   len MD1-1 >      by CARD_2:40,1,XBOOLE_1:63;
                        len  assume x inX  Z;then
               java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
A380:                   len MD1 -1       suppose x in Y 
                        upper_bound divset(end;
,A378,INTEGRA1:def 4;
                        then
et(MD1,len MD1)=D1.jby A257,A266,A244
,A357,A360,,A373,FINSEQ_6:122;
A382:                   len MD1-1+(n1+1)-1=j-1 by A363;
                       lower_bound divset(MD1,len MD1)= MD1.(en MD1-1)
                        by A372,A378,    m1 + m2 + (m4 + m5) >= m3 + m6 by A1,XREA;then
java.lang.StringIndexOutOfBoundsException: Range [59, 24) out of bounds for length 77
A266,A244,357A360,A382,A379,A380,:122;
                        hence thesis by begin :: Jaccard Index Measuring Similarity of Sets
                                 let A, B   ofR;
endjava.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
A383:               len MD1 in dom MD1 by FINSEQ_5:6;
A384:               upper_bound divset(MD1,len MD1)=MD1.(len MD1)
                    proof
                      per cases;
                      suppose
                        len MD1 = 1;
                        hence thesis by A383,INTEGRA1:def 4;
                      end;
                      suppose
                        len MD1 <>  card(A / B) /card (A\ B <=1byXREAL_1:,AT_1:3java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
                        hence thesis by A383,INTEGRA1:def 4;
                      end;
                    end;
                   .n1+)by ,A268,352SEQM_3:def ;
thenindxD2,,n1)<indx(,D1n1+1) by A259,A274,A269
,A271,SEQ_4:137;
                    let R be finite set;
A385:               indx(D2,D1,n1)+1 <= indx(java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 10
                    then
A386:               indx(D2,D1,n1)+1 <= len D2 by A277,XXREAL_0:2;
                    vol(B)=upper_bound B-D1.n1 by A354,INTEGRA1:def 5;
                    then vol(B)=D1.j-D1.n1 by A236,A245,A280, (A \B) card (\/B by XCMPLX_1:58,1;
INTEGRA1end;
                    then
       vol(B)<>0 by A236,A241,A245,SEQM_3:def 1;
A388:               1 <= indx(D2,D1,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 29
A389:                     JaccardIndex (A,BJaccardIndex A,B)=card ( /A /card A\/A)by JacInd,A0
:indxD2,D1,n1)=indx(D2,D1,n1)+
                    proof
                      assumefor Rbeing finite set
                      then
A391:                 indx    et B beofR;
A392:                 indx(D2,D1,n1)+1 in dom D2 by A388,A386,FINSEQ_3:25;
                      then
A393:                        . JaccardIndex (BA) byA1,JacInd;
                      now
per cases by A14,A393,XBOOLE_0:def 3;
s
                          D2.(indx(D2,D1,n1)+1) in rng D1 In (  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 42
      .y = x, from:sch 4;then
d
A395:                     D2.(indx(D2, (,y =In(  (,yy) REAL) by A1
                          D2.indx(D2,D1,n1) < 
,A389,A392,SEQM_3:def 1;
                          then n1 < n2 by A241,A274,A394,A395,SEQ_4:137;
                          then
A396:                     n1+1 <= n2 by NAT_1:13;
                          D1.n2 < D1.(n1+1) by A269,A271,A391,A392,A395,
SEQM_3:def 1;  end
                contradiction A268,A394,A396,SEQ_4:;
                        end;
                        suppose
A397:                     D2.(indx(D2,D1,n1)+1) in rng D;
A398:                     end;
A399:                     upper_bound divset(D1,n1)=D1.n1
java.lang.StringIndexOutOfBoundsException: Range [30, 26) out of bounds for length 31
                            per cases;
                            suppose
                              .,yy) >0;
                              hence thesis by A241,INTEGRA1let x,y  Elementof X;
                            end;
                            suppose
                              n1<>1;
                              hence thesis by A241,INTEGRA1:def 4;
             end;
                          end;
                          consider n2 being Element of NAT such that
A400:                     n2 in A3:x1 in   x2 in  & x  x1x]by FMISC_1:ef2
A401:                     D2.(indx(D2,D1,n1)+1) = D.n2 by java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 27
                          D1.n1 <   cluster discerning symmetric Reflexive triangle for
;
                          then D.i < Dn2 by A398,A399,XXREAL_02
                          then i < n2 by A240,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 12
                          then
A402:                     i+1 <= n2 by NAT_1:13;
                          of ;
                          then
A403:                     n1+1 <= j-1       hencef.a,b)= ;
                          j -1 in dom D1 by  hence thesis;
                          then
A404:                     D1.(n1+1) <= D1.(j-1)    fbeing nonnegative-yielding discerning triangle Reflexive
A405:                     lower_bound divset(D1,j) <= D.(i+1) 
INTEGRA2:1;
                          lower_bound divset(D1,j)=D1.j-) A236,,A280
,INTEGRA1:def 4;
                          then
A406:                     D1.n1+) < D..(i+)by A404,405,XXREAL_0:;
                          D .n2 < D1.(n1+1) by A269,A271  end;
SEQM_3: 1;
                                         p be Element of X;
                          hence contradiction by A235,A400  func SteinhausGen (,p)->Function [:X,X:] REAL means S:
                        end;
                      end;
                      hence contradiction;
                    end;
:<=l D1byA266INTEGRA1def 7
A408:               for k be Nat st 1<=k & k<=len lower_volume(g,MD1)
                    holds lower_volume(g,MD1).k=mid(LVf(D1),n1+1,j).k
                    proof
                      let k be Nat;
                      assume that
A409:                 1 <= k and
410:                 k <= len (gMD1);
                kjava.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 74
                      then
eg len MD1 by INTEGRA1:def 7;
                      then
A412:                 k in dom MD1 by FINSEQ_1:def 3;
                      k in dom MD1 by A411,java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 5
                            ,xy being Element of X holds
A413:                 lower_volume(g,MD1).k =(lower_bound java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
                      MD1,k)))*vol(divset(MD1,k)A1: x,y)= ( * f(,y)/(f.x,)+ (,)+f.x,))by ;
                      consider k2 being Element of NAT such that
A414:                 n1+1=1+k2;
A415:                 1 <= k+k2 by A409 (p)--yielding
                      k <= j-((n1+1)-1) java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
thenk+(+1)-) < jby :19;
                      then kk2<  D1 by A266,A414,XXREAL_0:;
           then
 len D1 by A415,FINSEQ_11;
                      then
A417:                 k+k2 in dom D1 by FINSEQ_1:def 3;
                      1+1 <= k+k2 by A258,A409,A414,XREAL_1:7;
                      then  end;
:1<k+  13;
A419:                  p beElementofX;
A420:lower_bound divset(1k+2=lower_bound divset(
,k &upper_bound divsetD1,+2= upper_bounddivsetMD1k)
                      proof
                       per cases;
                        suppose
A421      f.,)  or(.ap)+ f.bp)=0& f.a,)=0)by A0,A1;
                              thesis byMETRIC_1def ;
INTEGRA1:def 4;
                          then
A422:                     upper_bound divset(MD1,k)=D1.(k+(n1+1)-1) by A257
,A266,A244,A357,A371,A409,A410,FINSEQ_6:122;
                          lower_bound divset(MD1,k)=D1.n1 by A354,A412,A421,
INTEGRA1:def 4;
                          hence thesis by A419,A418,A417,A421,A422,
INTEGRA1:def 4;
                        end;
                        suppose
A423:                     k<>1;
                          then upper_bound divset(MD1,k)=MD1.k by  coherence
    a,  Element ofXholds ff.(a, = .b,a)
then
A424:                     upper_bound (MD1)=D1.k+n1+1)-) by A257
,A266,A244,A357,A371,A409,A410,FINSEQ_6:122;
A425:                     k -1 <= j-(n1+1)+1 by A371                 by :def 4
XXREAL_0:2;
 let X  non empty set,
INTEGRA1:def 4;
:k-indomA412INTEGRA1:7
                          then 1 <= k-1    x,,ybeing Element of  holds ff.x,)+ff.zy = ff.y)
thenlower_bound divset(MD1)=D1.(k-n+1-
A,A427A425,,FINSEQ_6:122;
                          hence thesis by A414,A418,A417      set dyz = 2 *f.(y,);
                        ;
                      end;
                      divset(MD1,k)=[. end;
                      upper_bound divset(,k).]by INTEGRA1:4
then
A428:                 divset(D1,k+k2)=divset(MD1,k) 
:kk2 indom D1 byA416,:def3;
(D1,+1j.k=Vf()(++-) ,A244
6122
                        .=(lower_bound rng(f        .z)= f.,) by:def4;then
                      D1,k+XX:       = (pp+r) / c +r) byLemacikX1,Y1E;
                      k in dom MD1 by A411,FINSEQ_1:def 3;
                      then divset(D1,k+k2) c= B by A428,INTEGRA1:8;
                      hence thesis by           (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z))) by XCMPLX_1:74;
                    end;
A431:               g|B is bounded
                    proof
                      consider a be Real such that
A432:                 for x being object st x inf.yp  f.,p) >= f(z +0 :
                      x by A1,RFUNCT_1:71;
                      for x being object st x in B /\)  f(z,p)   by METRIC_1:def 5; then
                      
                             .y)+f.(zp)>0by SC,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 54
:dom /  c dom  / A  A364,BOOLE_126java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                        assume x in B /\ dom g;
n
A434:                   x in dom g by XBOOLE_0:def 4;
                        then     end
                        then a <= f.x by A432,A433;
                         set
                      end;
                       thesis;
A435:  end
                      consider a be Real such that
A436:                 for x being object st x in A /\ dom f holds f.x<=
                      a by A1,RFUNCT_1:70;
                      for x being object st x in B /\ dom g holds g.x<=a
                      proof
                        let x be object;
A437:                   dom              .= 0;
                        assume x in B /\ dom  end;
                        then
A438:                   assume f.a,)=0;then
                        then x in dom f /\ B by RELAT_1:61;
                        then a >= f.    end
                        hence thesis by A438,FUNCT_1:47;
                      end;
                      then g|B is
                      hence thesis     for a, b, c being Element of bool,c beingElement of  X holds .(a, = f.a,b +f.b,c)
                    end;
                    rng f is bounded_below by A1,INTEGRA1:11;
                    then
A439:               lower_bound rng f <= lower_bound rng g by RELAT_1:70
SEQ_4:47;
                    rng f is bounded_above by A1,INTEGRA1:13;
                    then upper_bound rng f >= upper_bound rng
,SEQ_4:48;
                    then upper_bound rng f-nd;
                    rng g - lower_bound rng g by A439,XREAL_1:13;
                    then
A440  cluster SymDifMetrSpace X -> Reflexive discerning symmetric triangle;
 rngglower_bound rng g)delta() ,64java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
A441:               n1 < j-1 by A351,XREAL_1:20;
A442:               indx(D2,D1    let R be finite ;
A443suppose
A262,A263,A358,FINSEQ_6:118;
                    then
:len MD2  indx(D2,D1,j)-indx(
XREAL_1:233;
                    then
A445:lenlower_volume(g,MD2=indx(D2,D1,j)-indx(2,D1,n1
                    )+1)+1 by A390,INTEGRA1:def 7;
                    for x1 being object holds
                    x1 in (rng MD1 \/ {D.(end;
                    proof let x1 be object;               p  Element of M;
                      assume
A446:                 x1 in rng MD1 \/ {D.(i+1)};
                      then reconsider x1 as Real;
                      now
                      cases by A446,XBOOLE_0def3;
                        suppose
A447:                     x1 in rng MD1;
                          rng MD1 <> {};
                          then 1 in dom MD1 by FINSEQ_3:32;
                          then
448:                    1 <= len MD1 byFINSEQ_3:;
                          rng MD1 c= rng D1 by A357,FINSEQ_6:119;
                          then
A449:java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 17
                          rng D1 c= rng D2 by A13,INTEGRA1:java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 11
                          then consider k    take   DiscreteSpace ;
A450:                     k in domhence thesisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A451:                     D2.k =registrationlet M befinite non emptywith_nonnegative_distance,
java.lang.StringIndexOutOfBoundsException: Range [59, 26) out of bounds for length 70
FINSEQ_6:118;
                          then D2.indx(D2,D1,n1+1 ) <= x1 by A271,A447,Th16;
                          then
A452:                     indx(D2,D1,n1+1)<=k by A269,A450,A451,SEQM_3:def 1;
                          then consider n                 pbe Element of M;
A453:                     k+1 = java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 11
      len MD1=j-(n1+1)+ by A257,A265,A266,244A267A357java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
FINSEQ_6:118;
                          then len MD1+(n1+1)-1=j-(n1+1)+1+(n1+1)-1 by A257,
XREAL_1:233
                            .=j;
                          then MD1.(len MD1) =D1.j by A257,A266,A244,A357,A448
,A454,FINSEQ_6end;
2i,j byA238,Th16;
                          then k<=indx(D2,D1,j) by A261,A450,A451,SEQM_3:def 1;
                          then k-indx(D2,D1,n1+1)<=indx(D2,D1,j)-indx(D2,D1,
                          n1+1) by XREAL_1:9;
                          coherence
:                    k indx(D2,D1,n1+1)+1=indx(D2,D1,j-indx(2,
                          D1,n1+1)+1 by XREAL_1:6;
                          indx(D2,D1,n1+1)+1<=k+1 by A452,XREAL_1:6;
                          then
A456:                     1 <= k+1-indx(D2, D1,n1+1) by XREAL_1:19;
                          then
A457:                     n in dom MD2 by A444,A455      assume f.a,b) = 0;then
      hencethesis byJacRefl;
,A263,A358,A456,A455,A453,FINSEQ_6:122
                            .=D2    end;
                          x1in rng MD2by A451A457,FUNCT_1:def ;
                        end;
                        suppose
                          x1 in {D.(i+1)};
                          then
A458:                     x1 = D.(i+1) by TARSKI:def 1;
                          reconsider j1 = j-1 as Element of NAT by A236,A245
,A280,INTEGRA1:7;
A459:                     rng D c= rng D2 by A12,INTEGRA1:def 18;
                          D.(i+1) in rng D by A235,FUNCT_1:def 3;
                          then consider k such that
A460:                     k in dom D2 and
A461:                     x1 = D2.k :: http://creativecommons.org/licenses/by-sa/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                          (1)<=upper_bounddivsetD1j)by
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 75
then<D1.jbyA236,245,:def4
;
                          then
A462:                     D2
k =D2.D2D1, A13,,INTEGRA1: ;
                          j1byA351Xjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
then
463                     + <= j1byNAT_113
j-in  byA236A245A280INTEGRA17
                          then
                     .n1+) =D1.-1) by A268A,137;
=gand
NTEGRA21java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
thenD1.j- =x1A236,Ajava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
INTEGRA1:def 4;
,A461,A464
||-.| .1y2.|byA7,EUCLID:def2;then
                        inrng  by A269,A261,358,A460,461A462
,
                        end;
                      A13:for e be Real st 0 <eReal   eexrbeRealst 0  java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
                      hence thesis;
                    end;
                    then
A465:               java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 10
                    rng MD2 <> {};
                    then 1 in dom MD2 by FINSEQ_3:32;
                    then
:1< MD2 by :;
A467:               len MD2-1+indx(D2|xx1x.| .-x2|by:2;then
                  for x1 being object holds
                    x1   /p1=g(x1y,] java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 61
                    proof java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 9
                      assume
A468:                 x1 in rng MD2;
                      x1 asReal;
                      MD2.1=D2.indx(D2,D1,n1end
FINSEQ_6:118;
                      
A469:                 D1 .(n1+1) <= x1 by A271,A468,Th16;
 beingReal suchthat
,A466,A443,A467,A4: 0 < s1 & s1 < s & u1=[x,y]
                      java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
:                  < D1. byA238,A468,Th16
A471f(forabcbeRealst[a,, A holds
                      of, st
                        per cases & F.([a,b,c]) = (upper_bound Rx
                        supposeexRx-st isnonempty
               inrng D1;
                          then consider k such byA4A5;
                     k indom
:D1k=x1 byPARTFUN13
   consider a,,cbe Real,Rx be real-membered set that
                          
A475:                     1 e;
                          n1 <= n1+1 by NAT_1:11;
                           nbeingNatsuchthat
A476:                         fbeingFunctionofomega  \[:RATRATRAT: that
    ,A472,A473,EQM_3def ;
                          =len MD1 byA363,XREAL_1:9;
                          thenn dom A475A47625java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                          then
T_1:def 3java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
j-+1)1j-1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                          then
A479:                     k-n1 <= j-(n1+1)+1 by A477,XREAL_1:9;
                         n=(-+n1+)by A266,A244
,A357,A475,A479,A476,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
                            .= D1.k;
&[: ].,aas. ].bs,s. .cs,cc+.:  x,r0
XBOOLE_0:def 3;
                        end;
                        suppose
                          x1 in rng D;
                          then consider n such that
A480:                     n in dom D and
A481:                     D.n = x1 by PARTFUN1:3;
A482:                     not i+1 < n
                          proof
A483:                       upper_bound divset(D1,j)=D1.j
                            proof
                              per cases;
                              suppose
                                j=1;
                                hence thesis by A236,INTEGRA1:def 4;
                              end;
                              suppose
                                j<>1;
                                hence thesis by A236,INTEGRA1:def 4;
                              end;
                            end;
                            reconsider y1=D.(i+1) as Real;
A484:                       D.n in rng D by A480,FUNCT_1:def 3;
                            assume i+1 < n;
                            then
A485:                       D.(i+1) < D.n by A235,A480,SEQM_3:def 1;
                            lower_bound divset(D1,j) <= D.(i+1) by A237,
INTEGRA2:1;
                            then lower_bound divset(D1, j) <= D.n by A485,
XXREAL_0:2;
                            then D.n in divset(D1,j) by A470,A481,A483,
INTEGRA2:1;
                            then
A486:                       x1 in rng D /\ divset(D1,j) by A481,A484,
XBOOLE_0:def 4;
                            D.(i+1) in rng D by A235,FUNCT_1:def 3;
                            then y1 in rng D /\ divset(D1,j) by A237,
XBOOLE_0:def 4;
                            hence
                            contradiction by A11,A236,A481,A485,A486,Th5;
                          end;
A487:                     upper_bound divset(D1,n1)=D1.n1
                          proof
                            per cases;
                            suppose
                              n1=1;
                              hence thesis by A241,INTEGRA1:def 4;
                            end;
                            suppose
                              n1<>1;
                              hence thesis by A241,INTEGRA1:def 4;
                            end;
                          end;
                          D.i <= upper_bound divset(D1,n1) by A242,INTEGRA2:1;
                          then D.i < D1.(n1+1) by A353,A487,XXREAL_0:2;
                          then D.i < D.n by A469,A481,XXREAL_0:2;
                          then i < n by A240,A480,SEQ_4:137;
                          then i+1 <= n by NAT_1:13;
                          then i+1 = n or i+1 < n by XXREAL_0:1;
                          then x1 in {D.(i+1)} by A481,A482,TARSKI:def 1;
                          hence x1 in (rng MD1 \/ {D.(i+1)}) by XBOOLE_0:def 3;
                        end;
                      end;
                      hence thesis;
                    end;
                    then rng MD2 c= rng MD1 \/ {D.(i+1) };
                    then
A488:               rng MD2 = rng MD1 \/ {D.(i+1)} by A465,XBOOLE_0:def 10;
delta(MD1) in rng upper_volume(chi(B,B),MD1) by XXREAL_2:def 8;
                    then consider k such that
A489:               k in dom upper_volume(chi(B,B),MD1) and
A490:               upper_volume(chi(B,B),MD1).k = delta(MD1) by PARTFUN1:3;
A491:               k in Seg len upper_volume(chi(B,B),MD1) by A489,
FINSEQ_1:def 3;
                    then
A492:               k in Seg len MD1 by INTEGRA1:def 6;
                    then
A493:               k in dom MD1 by FINSEQ_1:def 3;
A494:               k <= len MD1 by A492,FINSEQ_1:1;
                    then k+= jby ,XREAL_1:19
                    then
A495:k+1< len D1 byA266XXREAL_0:;
A496:               1 <= k by A491,FINSEQ_1:1A54:p  A  p. in [RAT,RAT,RAT:]by X:def4;then
A497:               n1+1>1 by A280,NAT_1:13;
                    then n1>1-1 by XREAL_1:19;
                    then
 set E  [:].r,a+.[ .-,br.,]c-,cc+r.:;
                    then 1 < k+n1 by A496,XXREAL_0:2;
                    then
A499:k+n1  dom  byA,:25java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                    lower_bound divset(MD1,k)=lower_bound divset(D1,k+n1
                    ) & A58:   for i being object st i in NAT holds Q[i,B.i] from FUNCT_2:sch 1(A53);
                    proof
per cases;
                      
:k=
                        then upper_bound divset(MD1,k)=MD1         c=AbyA58ORDINAL1def 12;
INTEGRA1:def 4;
                        then
501                   upper_bound divset(MD1,k)D1.k+(n1+1)-)byA257,A266
,A244,A357,A360,A496,A494,FINSEQ_6:122;
                        lower_bound divset(D1,k+n1)=D1.(k+n1-1) by A496,A498
,A499,INTEGRA1:def 4;
                        hence thesis by A354,A497,A493,A499,A500,A501,
INTEGRA1:def 4;
                      end;
                      suppose
A502:                   k<>1;
                        then upper_bound divset(MD1,k)=MD1. k by A493,
INTEGRA1:def 4;
                        then
A503:                   upper_bound divset(MD1,k)=D1.(k+(n1+1)-1) by A257,A266
,A244,A357,A360,A496,A494,FINSEQ_6:122;
A504:                   lower_bound divset(MD1,k       measurable_rectangles(-ieldL-ield   by :def9 then
INTEGRA1:def 4;
:inMD1 by A493,A502,NTEGRA1:7
java.lang.StringIndexOutOfBoundsException: Range [28, 24) out of bounds for length 28
A66      dom B &Y =. by A65,PARTFUN1:;
                        1 <= k-1 by A505,FINSEQ_3:25;
                        then lower_bound divset(MD1,k)=java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 31
A257,A266,A244,A357,A360,A505,A506,A504,FINSEQ_6assume
                        hence thesis by A496,A498,A499,A503,INTEGRA1:def 4;
                      end
                    end;
                    then divset(MD1,k)=java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
                     divset(D1,+1.] by INTEGRA1:4;
                    then
A507:               divset(MD1,k)divset(D1,k+n1) by INTEGRA1:4;
k inSegD1byA499,INSEQ_1:def ;
                    then k+n1 in Seg len upper_volume(chi(A,A),D1) by
d 
then
:k+1 indom upper_volume(chiA,),D1 FINSEQ_1def ;
          indom MD1 byA492,INSEQ_1:def ;
                    then delta(MD1) = vol(divset(MD1,k)) by A490,INTEGRA1:20;
                    then
MD1=(chi(A,) ).k+n1)by A499,A507INTEGRA120java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
                    then delta(MD1) in rng upper_volumejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
FUNCT_1XREAL_0def 1;
                    then deltaSP03:4; then
XXREAL_2:def 8;
                    then
A509:               deltajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
upper_bound rng f -lower_bound rng f > by A1,Lm3,
:48;
                    then
A510:               (upper_bound rng f-lower_bound |u-v .| < ||dx1-1.|+|.y1-1| |.z1-1.|byNORMSP_1:7;
(pper_boundrng f-lower_bound rng f)*delta(D1) by A509,XREAL_1:64;
                    lower_bound divset(D1,j) <= D.(java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 48
                    then
A511:D1(j-)<= .i+ by A236A,280,NTEGRA1:ef ;
i+)=upper_bound (D1,)by ,INTEGRA2:1;
A513:               indx (D2,D1,n1)+1 <= indx(D2,D1,j) by A272,A385,XXREAL_0:2;
A514:               for k be Nat st 1<=k & k<=len lower_volume(g,MD2)
holds lower_volume(g,MD2).k=mid(LVf(D2),indx(D2,D1,n1)+1,indx(D2,D1,jA91:k domp &p.=qx1,,qz1&nbsp;by PARTFUN13java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
                    proof
                      let k be Nat;
                      assume that
A515 1< k and
A516:                 k <= len lower_volume(gA94   =&bkqy1&ckqz1 byA91A93,:;then
A517:                 k in Seg len java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
midLVf(,(,,+,indx(D1,).k =LVf
(D2).(k         stbe that
                      1<=indx(ssstttvvv Pointofby def1;
                      then 1+1<=k+(indx(D2,D1,n1)+1) by A515,A98    |ak-.<e  .-t  /2&|v. < e2 by COMPLEX160;
                     java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
A519:                 1 <= k+
 k2being Element of NAT suchthat
A520:                 indx(D2,D1,n1)
                      k <= indx(D2,D1,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,106   |x1-ss.| < e by A101,UCLID:def 2;
         thenk+(indx(D2D,)+)1 =indx(2,1,) by
XREAL_1:19;
thenk ((D2,,n1)+- =len LVf(2 A442,
XXREAL_0:2;
         thenk+  Seg  LVf(D2) ,A520,INSEQ_11
                      then
A521:                 k+k2 in Seg len D2 by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 36
               k2indomD2 y FINSEQ_1def 3;
                      then
A522:                 mid(LVf(D2),indx(D2,D1,n1)+1,indx(D2,D1,j)).k =(
lower_bound rng(f|divset(D2,k+k2)))* vol(divset(D2,k+k2))        k in NAT then
INTEGRA1:def ;
A523:Union =A by A67,CARD_3:ef 4;
A524:                 lower_bound divset(MD2,k)=lower_boundend;
k2) & upper_bound   be PartFunc of ::RNS_Real,RNS_Real:,RNS_Real:,NS_Real,
                      proof
                        k+k2>=1+1 by A260,A515,A520,XREAL_1:7;
then
A525:k+21 byNAT_1:3;
fPartFuncof:RNS_Real,],NS_Real:,
:kk2 in dom   A521FINSEQ_1d java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
                        per cases;
                        supposeA4:0<r
A528:                     k=1;
                          then upper_bound divset(MD2,k)= in J &y2 in J
INTEGRA1:def 4;
assume that
A529:                     upper_bound divset(MD2,kA7:|.x2-x1. <r &|y2-1.|<r  |z2-1| <r;

A530[x1,y1,z1] in ,z2] in E by A6,ZFMISC_1:7;
INTEGRA1:def 4;
                          lower_bound divset(MD2,k)=D1.n1 by A354,A526
INTEGRA1:def 4;
                          hence thesis by A13,A241,A520,A525,A527,A528,A529
,A530,INTEGRA1:def 4,def 19;
                 ;
suppose
A531:                     k<>1;
                          then upper_bound divset(MD2,k)=MD2.k by A526,
INTEGRA1:def 4;
then
A532:                      I,J,K be closed_interval Subset java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
n1)+1)-1) by A272,A263,A358,A388,A390,A445,A515,A516,FINSEQ_6:122;
A533:                     k -1 <= indx(D2,D1,j)-(indx(D2,D1,n1)+1)+1 by A445
,A516,XREAL_1:146,      & z1 in K & z2 in K .2x1.<r &|y2-1|<r &&|.2z1.|< r
A534:                     lower_bound divset(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
INTEGRA1:def 4;
A535:                     k-1 in dom MD2 by A526,A531,INTEGRA1:7;
                          then 1 <= k-1 by FINSEQ_3:25;
                          then lower_bound A2:  fg;
n1)+1)-1) by A272,A263,A358,A388,A390,A535,A533,A534,FINSEQ_6:122;
                          hence thesis by A520,A525,A527,A532,INTEGRA1:def 4;
                        end;
                      end;
divset (MD2,k)=[.lower_bound divset(MD2,k),
                      upper_bound divset(MD2,k).] by INTEGRA1:4;
                      then
A536:                 divset(athat
                      k 
                      then divset(D2,k+k2    roof
                      then
A537:                 rng(f|divset(D2,k+k2))=rng(g|divset(D2,k+k2)) by
FUNCT_1:51;
                      k in dom MD2 by A523,FINSEQ_1:def 3;
                      hence thesis by A522,A536,A537,INTEGRA1:def 7;
                    end;
                    lower_bound divset(D1,j)<=D.(i+1) by A237,INTEGRA2:1;
                    then
A538:               D.(i+1) in divset(MD1,len MD1) by A374,A512,INTEGRA2:1;
                    j-1 in dom D1 by A236,A245,A280,INTEGRA1:7;
                    then     let z0be;
                    then D(i+ > lower_bound B by A354,A511,XXREAL_0:2;
                    then Sum
upper_bound  g  rng g)delta(D1)by ,A431,488A538,A387
,Th13;
                    then
A539:               Sum lower_volume(g,      zz0  z0 asPoint  RNS_Real by XREAL_0:def 1java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
upper_bound rng f-lower_bound rng f)*delta(MD1) by A440,XXREAL_0:2;
                    indx(D2,D1,n1)+1 <= len LVf(D2)byA386,INTEGRA1:ef7java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
proof
indx(D2,      consider s beReal such that
(LVf(D2),indx(D2,1,
n1)+1,indx(D2,D1,j)) by A272,A385,A445,XREAL_1:233,XXREAL_0:2;
                          dom(g,[y] and
A540:               Sum lower_volume(g,MD2)=Sum mid(LVf(D2),indx(D2,D1       1in X-(dom g,xy) by A8,MESFUN12:def ;then
                    n1)+1,indx(D2,D1,j)) by A514,FINSEQ_1       reconsider zz1 = z1 as Point of RNS_Real by XREAL_0:def 1;
                    n1+1 <= len LVf(D1) by A267,INTEGRA1:def 7;
                    then len mid(LVf(D1),n1+1,j) =j-'(n1+1)+1
,A407,FINSEQ_6:118
                      .=j-(n1+1)+1        p1-p0 = [0.RNS_Real,yy-yy,zz1-zz0 RLVECT_115; then
                    then Sum lower_volume(g,MD1)=Sum mid(LVf(        = sqrt(||. 0.RNS_Real .||^2 + ||. 0.RNS_Real .||^2 + ||.|^)
A371,       | p1p0 .|| = |. z1-z0.|by A11,EUCLID:def 2; then
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                  end;
                end;
                hence thesis;
              end;
              then
A541:         (PLf(D2,indx(D2,D1,n1))PLf(D1,n1)+(Sum mid(VfD2),
(2,1n1)+,indxD2,,j)-um mid(VfD1)n1+,) =i*upper_bound
f-lower_bound rng f)*delta(D1)+ (upper_bound rng f-lower_bound rng f)*end;
              by A243,XREAL_1:7;
                1by NAT_113;
              then D1.n1 < D1.(n1+1st f is_continuous_on dom f & f = g & p2 = ProjPMap2(g,z) holds
              then indx(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
SEQ_4:137;
              then
A542:         indx(D2,D1,n1)<indx(D2,D1,j) by A272,XXREAL_0:2;
              indx(,D1,  len D2 A259,INSEQ_1:def 3;
              then indx(D2,D1,n1) in java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 24
              then indx(D2,D1,n1) in dom LVf(A6:  Y-ection(dom g,z)
              then PLf(D2,indx(D2,D1,n1)        by MEASUR11:ef ; then
INTEGRA1:def 20
                .=Sum mid(LVf(D2),1,indx(D2,D1,n1)) by A260,FINSEQ_6:116;
              then PLf(D2,indx(D2,D1,n1))+Sum mid(LVf(D2),indx(D2,D1,n1) zz=z as Pointof RNS_Real;
indx(D2, D1,j)) =Sum(mid(LVf(D2),1,indx(D2,D1,
              1,indx(D2,D1,j))) by RVSUM_1:75
                =Sum mid(LVf(D2),1,indx(D2,D1j) by A260A542,,
                .=Sum(LVf(D2)|indx(D2,D1,j)) by A262,FINSEQ_6:116;
              then PLf(D2,indx(D2,D1,j))= PLf(D2,indx(D2,D1,n1))+Sum mid(      consider s beReal such that
              (D2),indx(D2,D1,n1)+1,indx(D2,D1,j)) by A279,INTEGRA1:def 20;
              then (PLf(D2,indx(D2,D1,       assumethat
indx(D2,D1,n1)+1,indx(D2,D1xy1 in -(domg,)by ,A11MESFUN12def ;then
              )-
              hence thesis by A236,A237,A541;
            reconside ,= java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 45
            hence thesis;
          end;
          fork  nonzero  holds [k fromNAT_1:sch (A40
          )
thenPi;
          hence thesis by A17;
        end;
A543:   len D1 in dom D1 by FINSEQ_5:6;
        then D1.(len D1) = D2.indx(D2,D1,len D1) by A13,INTEGRA1:def 19;
        then upper_bound A = D2.indx(D2,D1,len D1) by INTEGRA1:def 2;
        then
A544 D2.len D2)=D2.(D2,D1, D1)INTEGRA1def ;
        len     endjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        then consider j such that
A545:   j in dom [[:REAL,:R,
A546:   D.(len D) in divset(D1,j) and
547   (D2,indxindx(,,j)-Lf(D1,)< (en D*upper_bound(rng
        f)- lower_bound(rng f))*delta(D1) by A16;
A548:   j = len D1
        proof
          assume
     j>en D1
j<  D1by A545,:25;
          then j < len D1 by A549,XXREAL_0:1;
          java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 60
         then
A550:     D1.j < upper_bound A by    reconsider   (gz)
A551:     upper_bound divset(D1,j) < upper_bound java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          proof
             cases
            suppose
              j=1;
              hence thesis by A545,A550,INTEGRA1:def 4;
            end;
            suppose
              j<>1;
              hence thesis by A545,A550,INTEGRA1:def 4;
            end;
          end;
          D.(len D) <= upper_bound divset(D1,j) by A546,INTEGRA2:1;
          hence contradiction by A551,INTEGRA1:def 2;
        end;
        indx(D2,D1,len D1) in dom D2 by A13,A543,INTEGRA1:def 19;
        then indx(D2,D1,len D1)=len D2 by A15,A544,SEQ_4:138;
        then PLf(D2,len D2)-lower_sum(f,D1)<=(len D)* (java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 38
        ower_bound(ng f)*delta(D1  A547,A548I:43;
hence thesis by java.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 36
      end;
      hence thesis by A12,A13,A14;
    end;
    reconsiderzz2z2as Point RNS_Realby XREAL_0:def 1;
  end;
  
end;

theorem Th22:
  f|A is bounded implies
    for D,D1 A13:  ||. f/.p1 f/A7,2A10,A11
  upper_sum(f,D)-upper_sum(f,D2) & 0<=upper_sum(f,D1)-upper_sum(f,D2)
  proof
    assume
:f|A isbounded;
   D,D1;
    consider D2 such that
A3 D= and
A4: D1<=D2 for f   of[[:RNS_RealRNS_Real]RNS_Real:]RNS_Real,
A5: rng D2=rng D1 \/ rng D by Th4;
A6: upper_sum(,D1)-pper_sumf,>0byA1,4,:45,REAL_1:48;
0 by A1,A3,INTEGRA145XREAL_148;
    hence thesis by A3,A4,A5,A6;
  end;

theorem Th23:
  f|A is bounded implies
  for D,D1 st delta(D1)<min rng upper_volume(chi(A,A),D) holds
  ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D &
  upper_sum(f,D1)-upper_sum(f,D2) <=
    (len D)*(upper_bound(rng f)-lower_bound(rng f))*delta(D1)
  proof
  assume
A1: f|A is bounded; then
A2: for D,D1 ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D & 0<=
    upper_sum(f,D)-pper_sum(f,D2) & 0<=upper_sum(f,D1)-upper_sum(f,D2)
      by Th22;
    let D,D1;
    assume
A8: delta(D1)<min rng upper_volume(chi(A,A),D);
    ex D2A3:p2=ProjPMap2(g,z);
    upper_sum(f,D2)<=(len D)*(upper_bound(rng f)- lower_bound(rng f))*delta(D1)
    roof
      consider D2 be Division of A such that
A9:   D<=D2 and
A10:  D1A5: <s and
A11:  rng D2=rng D1 \/ rng D and
      0<=upper_sum(f,D)-       |.f.v1 -f/v2 .|<r by A1;
      0<=upper_sum(f,D1)-upper_sum(f,D2) by A2;
      upper_sum(f,D1)-upper_sum(f,D2) <= (len D)*(upper_bound(rng f)-
      lower_bound(rng f))*delta(D1)
      proof
        deffuncUVf(Division of A) = upper_volume(,$)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
        deffunc PUfjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 17
A12:    len D2 in dom D2 by FINSEQ_5:6;
A13A12:  xy1  [x1,yy1]byPRVECT_3:18;
j) & PUf(D1,j)-PUf(D2,indx(D2,D1,j))<=i*(upper_bound(rng f)- lower_bound(rng f)
        )*delta(D1)
        proof
          defpred P[non zero Nat] means $1 in dom D implies exasPoint of [[RNS_Real,RNS_Real:,RNS_Real:;
&D$1 in divset(D1,)&PUf(,j)-UfD2,(D2,D1,j))=$1*upper_bound
          rng f-lower_bound rng f) *delta(D1);
          let i;
          assume
A14:      i in dom D;
          then
A15:      i          by NDIFF_81;then
A16:      for i,j st i in dom D & j in dom D1 & D.i in divset(D1,j) holds
          j >= 2
          proof
            let i,j;
            assume
A17:        i in dom D;
            assume that
A18:        j in dom D1 and
A19:        D.i in divset(D1,j);
            assume j<2;
            then j<1+1;
            then
A20:        j <= 1 by NAT_1:13;
            j in Seg len D1 by A18,FINSEQ_1:def 3;
            then j >= 1 by FINSEQ_1:1;
            then j = 1 by A20,XXREAL_0:1;
            then
A21:        lower_bound divset(D1,j)=lower_bound A by A18,INTEGRA1:def 4;
A22:        D.i<=upper_bound divset(D1,j) by A19,INTEGRA2:1;
            delta(D1) >= min rng upper_volume(chi(A,A),D)
            proof
              per cases;
              suppose
A23:i=1java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
                len D in Seg len D by FINSEQ_1:3;
                then 1 <=     let x, be Element of REAL,
                then
A24:            1 in dom D by FINSEQ_3:25;
                then
A25:            lower_bound divset(D,1)=lower_bound A by INTEGRA1:def 4;
                1 in Seg len D by A24,FINSEQ_1:def 3;
                then 1 in Seg len upper_volume(chi(A,A),D) by INTEGRA1:def 6;
                then
6:           1in dom (chi(A,A),)by :def3java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
                (ivset(,1)=upper_volume((A,A,).by A24,
INTEGRA1:20;
l(ivsetD1)in upper_volume(chi(A,A),D)by ,
FUNCT_1:def 3;
                then
A27:            vol
(divset(D,1))>=A1:f is_continuous_on dom
java.lang.StringIndexOutOfBoundsException: Range [12, 3) out of bounds for length 67
                upper_bound divset(D1,j)-lower_bound A >=    hencePf2is_continuous_ondom Pf2by A1,2,Th12,ESFUNC5:ef 7
                A bytheorem Th19:
                then
                vol(divset(D1,j)) >= upper_bound divset(D,1g PartFuncof[[:REALR:,REAL:REAL bePartFuncof REAL,EAL
                ] holds Pg1 is continuous
then
A29:            vol(divset(D1,j)) >= vol(divset(D,1)) by INTEGRA1:def 5;
                vol(divset    assume that
                then delta(D1) >= vol(divset(D,1)) by A29,XXREAL_0:2;
                hence thesis by A27,XXREAL_0:2;
              end;
              suppose
A30:            i<>1;
                then D.(i-1) in A by A17,INTEGRA1:7;
                then
A31:            lower_bound A <= D  be PartFunc of [:[:REAL,REAL:,]REAL,
                lower_bound divset(D,i)=D.(i- &Pf2 = ProjPMap2|R_EAL .,z holds Pf2is_continuous_on dom Pf2
                then
A32:            upper_bound divset(D,i)-lower_bound A >= upper_bound
                divset(D,i)-lower_bound divset(D,i) by A31,XREAL_1:10;
                upper_bound divset(D,i)= D.i by A17,30,INTEGRA1:def 4;
                then upper_boundassume that
                upper_bound divset(D,i)- lower_bound A by A22,A21,XREAL_1:9;
                then upper_bound divset(D1,j)-lower_bound divset(D1,j) >=
upper_bound divset(D,i)-lower_bound divset( D,i)by ,XXREAL_0:2;
                vol(ivset(D1,))> upper_bound divset(,)lower_bound
divset(Di5java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
                then
A33:            vol(divset(D1,j)) >= vol(divset(D,i)) by INTEGRA1:def 5;
                i in Seg len D by A17,FINSEQ_1: g bePartFunc [[REALREAL]REAL:,REAL,Pg1  PartFuncof REAL,
               i  lenupper_volume((A,A)D)by INTEGRA1:ef 6;
             then
A34:            i in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
divsetDi)=upper_volume(chi(A,A,D).i by 17
INTEGRA1:20;
                then vol(divset(D,i)) in rng upper_volume(chi(A,A),D) A4 f   and
FUNCT_1:def 3;
                then
A35:            vol
(divset(D,i))>=min rng upper_volume(chi(A,A),D) by XXREAL_2:def 7;
                vol(divset(D1,j)) <= delta(D1) by A18,Lm5;
                then delta(D1) >= vol(divset(D,i)) by A33,XXREAL_0:2;
                hence thesis by A35,XXREAL_0:2;
              end;
            end;
            hence contradiction by A8;
          end;
A36:      P[1]
          proof
            len D in Seg D by FINSEQ_13java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
             1<=len D FINSEQ_11;
            then
A37        1indom D by FINSEQ_3:25;
            then consider j such that
A38:java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        .indivset(1j byTh3,INTEGRA1:;
       (1j-Uf(D2,indx(2D1,j)< *( rngf-
            lower_bound rng f)*delta(D1)
            proof
A40:          j <> 1 by A16,A37,A38, Pg1 =ProjPMap1(R_EAL g,[x,y]);
              then reconsiderj1=-asElementof NAT by A38,NTEGRA1:7
A41:          j1 in dom D1 by A38,A40,INTEGRA1:7;
              then j1 in Seg len D1 by FINSEQ_1:def 3;
              then j1 in Seg len upper_volume(f,D1) by INTEGRA1:def 6;
              then
A42:          j1 in dom upper_volume(f,D1) by FINSEQ_1:def 3;
:         j-in dom D1 byA38,A40,INTEGRA1:;
              then
A44:          indx(D2,D1,j1) in dom D2 by A10,INTEGRA1:def 19;
              then
A45:          indx(D2,D1,j1) in Seg len D2&Integral(Prod_Measure(L-Meas,-eas,Pg2java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
              then
A46:         1 <= indx,D1,) by FINSEQ_1:1;
              then mid(D2,1,indx(    bePartFunc  :[RNS_Real,NS_Real:]RNS_Real]RNS_Real,
              then
A47:          D2|indx(D2,D1,j1) is increasing by A46,FINSEQ_6:116;
              j < j+1 by f =::I,J:],K:]and
              then j1A4:f = gand
              then
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              then
h Pg2is_integrable_on Prod_Measure(-eas,-eas)
A50:          Sum    thus Integral(Prod_Measure(-eas,-eas),Pg2)
),(indx(D2,D1,j1)+1),indx(D2,D1,j)) <= (upper_bound rng f-lower_bound rng f)*
              delta(D1)
              proof
A51:            indx(D2,D1,j)-indx(D2,D1,j1) <= 2
         proof
                  reconsider ID1=indx(D2,D1,j1)+1 as Element of NAT;
                  ;
                  assume indx(D2,D1,j)-indx(D2,D1,j1) > 2;
                  then
A52:              indx(D2,D1,j1)+(1+1)<indx(D2,D1,j) by XREAL_1:20;
A53:              ID1 < ID2 by NAT_1:13;
                  then indx (D2,D1,j1) <= ID2 by NAT_1:13;
                  then
A54:              < ID2 by A46,XXREAL_0:;
A55:              indx(D2,D1,j) in dom D2 by A10,A38,INTEGRA1:def 19;
                  then
A56:              indx(D2,D1,j) <= len D2 by FINSEQ_3:25;
                  then ID2 <= len D2 by A52,XXREAL_0 3 f is_continuous_on [:[:I,J:],K:] and
                  then
A57:              ID2 in dom D2 by A54,FINSEQ_3:25;
                  then
A58:              D2.ID2<D2     Pg1K is bounded &Pg1is_integrable_onK
A59:              1 <= ID1 by A46,NAT_1:13;
A60:              D1.j = D2.indx(D2,D1,j) by A10,A38,INTEGRA1:def 19;
                  ID1 <= indx(D2,D1,j) by forIJbe Subset of REAL,K be non empty closed_intervalSubset of REAL,
                  then ID1 <= len D2 by A56,XXREAL_0:2;
                  then
A61:              ID1 in dom D2 by A59,FINSEQ_3:25;
                  then
A62:              D2.ID1<D2.ID2 by   f =g&Pg1 = ProjPMap1(|R_EAL g.,x,y])&E=K holds
                  indx(D2,D1,j1) < ID1 by NAT_1:13;
                  
A63:              D2 .    f be artFunc of [[:RNS_Real,RNS_Real:],RNS_Real,
A64    Pg1be PartFunc of ,EAL,E be Elementof L-ield;
A65:              not D2.ID1 in rng D1 & not D2.ID2 in rng D1
                  proof
                    assume
A5: Pg1=ProjPMap1(|R_EAL g.,xy)ajava.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
                    per cases by A66;
                    suppose
                      D2.ID1 in rng D1;
                       n such that
67                  n indomD1 and
A68:                  D1.n=D2.ID1 by PARTFUN1:3;
3,,A68,SEQ_4:137;
                      then
A69:                  j<n+1 by XREAL_1:19;
                      D2.ID1r&integral(Pg1,K  (-easP(._AL g|,xy])
                      then java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                      hence contradiction by A69,NAT_1:13;
                    end;
                    suppose
                      D2.ID2 in rng D1;
                      then consider n such that
A70:                  n in dom D1 and
A71:                 D1.=D2.ID2 by PARTFUN1:;
      D2.indxD2D1,1)<D2.D2by A63,A62,XXREAL_0:;
                       j1<n by A41,A64,A70,A71,SEQ_4:137;
                      then
A72:                  j<n+1 by XREAL_1:19;
njby ,A58,A60,A70,A71,SEQ_4:137;
                      hence contradiction by A72,NAT_1:13;
                    end;
                  end;
                   divset(D1,)=D1.j by A38,A40,NTEGRA1:def 4;
                  then
A73:              fbe  of[[RNS_RealR:,NS_Real:],RNS_Real,
INTEGRA1:def 19;
                  lower_bound divset(D1,j) Pg2 be  of [:REAL,EAL:]REAL,
                  then
A74:lower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A10,A41,
INTEGRA1:def
                  D2.ID2 in rng D2 by A57,FUNCT_1:def 3;
                  then
A75:              D2.ID2 in rng D by A11,A65,XBOOLE_0:def 3;
                  D2 .ID1 in rng D2 by A61,FUNCT_1:def 3;
                  then
A76:              D2.ID1 in rng D by A11,A65,XBOOLE_0:def 3;
                  D2.indx(D2,D1,j1)<=D2.ID2 by A63,A62,XXREAL_0:2;
                  then D2.ID2 in divset(D1,j) by A58,A74,A73,INTEGRA2:1;
                  then
A77:              D2.ID2 in rng D /\ divset(D1,j) by A75,XBOOLE_0:def 4;
                  D2.ID1<=D2.indx(D2,D1,j) by A62,A58,XXREAL_0:2;
                  then D2.ID1 in divset(D1,j) by A63,A74,A73,INTEGRA2:1;
                  then D2.ID1 in rng D /\ divset(D1,j) by A76,XBOOLE_0:def 4;
                  hence contradiction by A8,A38,A53,A61,A57,                  c of[:REAL,EAL:]REAL
                end;
A78:            1 <= indx(D2,D1,j1)+1 by A46,NAT_1:13;
               <=len  by A38,FINSEQ_3:25;
                reconsider Pf2 =Pg2   of :,:]RNS_Real;
:            j < len upper_volume(f,D1)byINTEGRA1:def 6;
 1 <= j byA38,INSEQ_3:25;
                then
:mid(upper_volume(,D1),j,j).=upper_volume(f,1. by A79,
FINSEQ_6:118;
                reconsider uv = upper_volume(f,D1).  Pg2 bePartFunc of [:REAL,REAL:],REAL
                        by XREAL_0:def 1;
                j'j Lm1;
                then len mid(pper_volume(f,D1),j,j) = 1 by A80,A79,
FINSEQ_6:118;
thenmid(upper_volume(f,),j,j) =*v>by A81,FINSEQ_1:40;
                then
:           Sum mid(upper_volume(f,1),j,) upper_volume(f,D1). by
FINSOP_1:11    g be PartFunc of [:[REAL,REAL:,REAL:],REAL,
                indx(D2,D1,j) in dom     assume that
                
A83:            indx(D2,D1,j)A4:f = g and
                then
A84:            1 <= indx(D2,D1,j) by FINSEQ_1:1;
                indx(D2,D1,j) in Seg len upper_volume(f,D2) by A83,
INTEGRA1:def 6;
                then
1,j)<  upper_volume(,D2)  FINSEQ_1:;
                then
A86:            indx(D2,D1,j1)+1 <= len upper_volume(f,D2        by MESFUN12:def 7;
         then indx(2,1,j1)+ in Seg lenupper_volume(f,D2) by A78,
FINSEQ_1:1;
                
A87:            indx(D2,D1,j1)+1 in Seg len D2 by INTEGRA1:def 6;
               
:            indx(2D1,j1)1in dom D2 by FINSEQ_1:def 3;
                indx(D2,D1,j)-'(indx(D2,D1,j1)+1) =    gbe  of [:[:REAL,REAL:,REAL:,REAL,
                D2,D1,j1)+1) by A49,XREAL_1:233;
                thenindx(2,D1,j)-'(indx(D2,D1,j1) +1)+1 <= 2 by A51;
                then
A89:            len mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
                ,j))<=2 by A49,A84,A85,A78,A86,FINSEQ_6:118;
                    
                java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
A90:            1 <= len mid(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                (D2,D1,j )) by A49,A84,A85,A78,A86,FINSEQ_6:118;
                java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
                  per cases by A90,A89,Lm2;
                                   
A91:                len mid(upper_volume(f    henceg  E-easurable by MESFUNC6:12;
                    indx(D2,D1,j)=1;
                    upper_bound divset(D1,j)=D1. by A38,40,INTEGRA1:def 4;
                    then
A92:                upper_bound divset(D1,j)=D2. indx(D2,D1,j) by A10,A38,
INTEGRA1:def 19;
                    lower_bound divset( holds fore  Real st 0 < e holds
                    thenlower_bound divset(D1,j)=D2.indx(D2,D1,j1) by A10,A41,
INTEGRA1:def 19;
                    then
:                divset(D1,j)[.indx(,1,j1,.ndx(D2,D1,j)
                    .         | ProjPMap1(.EAL .,2)z-ProjPMap1(|R_EAL g.,u1).|<e
:delta(1)= 0 byTh9;
A95:                    f be PartFunc of [:[:RNS_RealRNS_Real:],]java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
;
                (D2D1,j)indom D2 by A10,A38,INTEGRA1:def 19;
                    len mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(
D2,D2,D1,j)) = indx(D2java.lang.StringIndexOutOfBoundsException: Range [19, 0) out of bounds for length 0
FINSEQ_6:118;
                    then
=0 by A49,91,233java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
                    then indx(D2,D1,j)<>1 by A45,FINSEQ_1:1;
                    then,ZFMISC_187MESFUN12:def3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
:                upper_bound divset(D2,indx(D2,D1,j))=D2.indx(D2,D1,j
) by A96,NTEGRA1:ef 4java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
                    indx(D2,D1,j)-1=indx(D2,D1,j1) by A97;
                    then lower_bound divset(D2,indx(D2,D1,j))= D2.indx(D2,D1,
                    j1) by A46,A97,A96,INTEGRA1:def 4;
                    then
A99:                divset(D2,indx(D2,D1,j))=divset(D1,j) by A93,A98,INTEGRA1:4
;
               reconsider uv = upper_volume(f,D2).(indx(D2,D1,j1)+1)
                       as Element of REAL
                  by XREAL_0:def 1;
                    mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
,j)).1 =upper_volume(f,D2).(indx(D2,D1,j1)+1) by A84,A85,A78,A86,FINSEQ_6:118;
                    then mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
,j)) =<*uv*> by A91,FINSEQ_1:40;
                    then Sum mid(upper_volume(f,D2),(indx( D2,D1,j1)+1),indx(
D2,D1,j )) =upper_volume(f,D2).(indx(D2,D1,j1)+1) by FINSOP_1:11
                      .=(upper_bound(rng(f|divset(D2,(indx(D2,D1,j1)+1)))))
                    *vol(divset(D2,(indx(D2,D1,j1)+1))) by A88,INTEGRA1:def 6
                      .=Sum mid(upper_volume(f,D1)j,j) by A38,A82,A97,A99,
INTEGRA1:def 6;
                    hence thesis by
                  end;
                  suppose
A100:               len mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),
                        let u1,u2 be Element of [:EAL,EAL:],x1y1,x2,y2 be Real;
A101:               mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
,j)).1 =upper_volume(f,D2).(indx(D2,D1,j1)+1) by A84,A85,A78,A86,FINSEQ_6:118;
A102:               2+(indx(D2,D1,j1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                    mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(D2,D1
,j)).2 =UVf(D2).(2+(indx(D2,D1,j1)+1)-'1) by A49,A84,A85,A78,A86,A100,
FINSEQ_6:118
                      .=UVf(D2).(2+(indx(D2,D1,j1)+1)-1A13 | (|g|.[u2,z]-(|g.|.( u1,z].|< e by A10;
,j1)(+1))
thenmid(upper_volume(,D2),(indx(D2,D1,j1)+1)indx(,D1
,j)) =<*upper_volume(f,D2).(indx(D2,D1,j1)+1), upper_volume(f,D2).(indx(D2,D1,
                   )2*> by A100,A101,FINSEQ_1:44;
                    then
A103:               Sum mid(upper_volume(f,D2),(indx(D2,D1,j1)+1),indx(
D2,D1,j)) =upper_volume(f,D2).(indx(D2,D1,j1)+1) +upper_volume(f,D2).(indx(D2,
                    D1,j1)+)by RVSUM_1:;
A104:               vol(divset(D2,indx(D2,D1,j1)+1))>=0 by INTEGRA1:9;
         upper_bound divset(D1,j)=D1j  A38,A40,NTEGRA1:def4;
                    then
A105:               upper_bound divset(D1,j)=D2. indx(D2,D1,j) by A10,A38,
INTEGRA1:def 19;
A106:               vol(divset(D2,indx(D2,D1,j1)+2))>=0 by INTEGRA1:9;
                    indx(D2,D1,j)-'(indx(D2          |.ProjPMap1(_AL ,2.z-rojPMap1(R_EALg,u1)z . <e
,A86,    x,y be Element of REAL,
                    then
A107:               2=indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1 by A49,XREAL_1:233
                      .=indx(D2,D1,j)-indx(D2,D1,j1);
                    then
A108:indx (D2,D1,j1)+ in dom D2 by A10,A38,INTEGRA1:def 19;
                    lower_bound divset(D1,j)D1.j1 by A38,A40,NTEGRA1:def 4;
thenlower_bound divsetD1,=.ndx(2,1,1  A10,,
A5:0 <r
                    then
A109:               vol(divset(D1,j[holds  .[x2y,)-.x,y1,z1) .| < e by A2,A3,Th8;
thus0<r by;
;
                    indx(D2,D1,j1)+1 in Seg len upper_volume(f,D2) by A78,A86,
FINSEQ_1:1;
                    then indx(D2,D1,j1)+1 in Seg len D2 java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 0
                    then
A110:               indx(D2,D1,j1)+1 in dom D2 by FINSEQ_1:def 3;
A111:               indx(D2,D1,j1)+1 <> 1 by A46,NAT_1:13;
                    then
A112:               upper_bound divset(D2,(indx( D2,D1,j1)+1))= D2.  & REAL g.(u1,z) = g.[u1,z])
                    (D2,D1,j1)+1) by A110,      by A4,A6,A8,ZFMISC_1:87,MESFUNC5:def 7,MESFUN12 3java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
                    indx(D2,D1,j1)+1-1=indx(D2,D1,j1)+0;
                    then
A113:              lower_bound divset(D2,(indx(D2,D1,j1)+)=D2.indx
                    D2,D1, stst :[IJ],K:]=dom f  f  g not v in [I,J:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A114:               indx(D2,D1,j1)+1+1 > 1 by A78,NAT_1:13;
                    indx(D2,D1,j1)+2-1=indx(D2,D1,j1)+1;
                    then
A115:               java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 15
                    D2,D1,j1)+1) by A108,A114,INTEGRA1:def 4;
                    upper_bound divset(D2,(indx(D2,D1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                   ,D1,)+2) byA108,A114,INTEGRA1:def 4;
                    then vol(divset(D1,j))=vol(divset(D2,indx(D2,D1,j1)+2)) +
D2.(indx(D2,D1,j1)+1)-D2.indx(D2,D1,j1) by A115,A109,INTEGRA1:def 5
                      .=vol(divset(D2,indx(D2,D1,j1)+2)) +(upper_bound
divset(D2,indx(D2,D1,j1)+1)-lower_bound divset(D2, indx(D2,D1,j1)+1)) by A113
A112;
                    then
A116:               vol(divset(D1,j)) =vol(divset(D2,indx(D2,D1,j1)+1))+
                    vol(divset(D2,indx(D2,D1,j1)+2)) by INTEGRA1:def 5;
                    then
A117:               upper_volume(f,D1).j=(upper_bound(rng(f| divset(D1,j
)))*(vol(divset(2,indx(2,D1,j1)1)+ol(divset(D2,ndx(D2,D1,j1)+2))) by
A38,INTEGRA1:def 6;
A118:     beSubset of , z be Element ofREAL,
1,indx(D2, D1,j)) <=(upper_bound rng f - lower_bound rng f)* (vol(divset(D2,
                   (D2,D1,j1)+)) +ol(divset(D2,indx(2,D1,j1)+))
                    proof
                      set ID2=indx(D2,D1,j1)+2;
                      set java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                      set SR = upper_bound rng(f|java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 20
                      divset(D2,ID1));
                     set B = vol(divset(D2,ID1));
                      set C = vol(divset(D2,ID2));
                      divset(D1,j)c=A by A38,INTEGRA1:8;
                      then
A119t Th32:
                      f is_continuous_on [:[:I,J:],K:] & f = g
                      ID1 in dom D2 by A87,FINSEQ_1:def 3;
                      then divset(D2,ID1)c=A by INTEGRA1:8;
                      then upper_bound rng(f|divset(D2,ID1)) >= lower_bound
                      rng f by A1,m4
                      then
:                 (upper_bound rng(f|divset(D2,D1)))*vol(divset(D2
,ID1)) >=(lower_bound rng f)*vol(divset(D2,ID1)) by java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 15
                      indx(D2,D1,j)-'(indx(D2,D1,j1)+1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,A86,A100,FINSEQ_6:118;
                      then
A121:                 2=indx(D2,D1,j)-(indx(D2,D1,j1)+1)+1 :dom RF  :REAL,REAL]byFUNCT_2:def1java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
                        .indx(D2,D1,j)-indx(D2,,j1)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
A122:                 indx(D2,D1,j) in dom D2 by A10,A38,A6  pin  F  q=F. by PARTFUN1:;
             thendivset(D2,ID2)c A by A121,INTEGRA1:;
                      then
A123     reconsider,y as Element of REAL by A7;
                      rng f by A1,Lm4;
                      reconsider A = upper_bound rng(f|divset(D1,j)) as Real;     per cases;
A124:                 upper_volume(f,D1).j-A*B =      x  I  y in J by A7,FMISC_1:87 then
(pper_bound fdivsetD1j)* D,
) <=rngf)vol(ivsetD2) A106AXREAL_1:64java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
                      Summid(Vf(1,,)<=(upper_bound rngf|ivset(D1
,j)))*     rng F crng F c=REAL;
,A124,XREAL_1:20;      is Function of [REAL,REAL:],REALby A4,RELSET_1:4;
                      then
A125:                 Sum mid(UVf(D1),j,j)-(upper_bound rng f)* vol(
divset(D2,ID2) ) <=(upper_bound rng(f|divset(D1,j)))*     assume q in rng RF; then
XREAL_1:20;
                      (upper_bound rng(f|divset(D1,j)))*vol(divset(D2,
ID1)) <=(upper_bound rng f)*9 x inREAL&yin REAL  =[, byZFMISC_18;
                      then Sum mid(UVf(D1reconsider Pg=ProjPMap1(R_EAL g,java.lang.StringIndexOutOfBoundsException: Range [39, 31) out of bounds for length 31
divset(D2,ID2) ) <=(upper_bound rng f)*vol(divset(D2,ID1)) by A125      hence q in REAL by A8,A9,XREAL_0:def 1;
                      then
A126:                 Sum mid(UVf(D1),j,      henceq A8,XREAL_0def 
)(rng )*ol(ivsetD,ID1) by :;
                      UVf(2),ID1,indx(D2,D1,j)) =(),ID1,indx(D2,D1,j)) =(upper_bound
rng(f|divset(D2,ID2)))*vol(divset(D2,ID2)) +UVf(D2).ID1 by A103,A122,A121,
INTEGRA1:def 6
                        .=(upper_bound rng(f|divset(D2,ID2)))* theoremTh33:
ID2)+rngfdivsetD,) vol(D,D1) by A88,
def 6java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
2,D1j)-SR*R >(
lower_bound rng f)*vol(divset(D2,ID2)) by A106,A123,XREAL_1:64;
                      thenletI,Kbe non  closed_interval Subset of REAL,
                           be PartFuncof [[REAL,REAL]REAL:]REAL,
                      then Sum mid(UVf(D2),ID1,indx(D2,D1,j))-(lower_bound
                      rng f)* vol(divset(D2, ID2)) >=SR*VR by XREAL_1:19;
                      then Sum mid(UVf(D2),ID1,indx(D2,D1,j))-(lower_bound
rng f)* vol(divset(D2, ID2)) >=(lower_bound rng f)*VR by A120,XXREAL_0:2;
thenSum UVf(D2)ID1,(D2,D1j)=lower_bound
rng f)*vol(divset(D2, ID2))+ (  =t byA6,:29;
                      then Sum mid(UVf(D1),j,j)-Sum mid(UVf(D2),ID1,indx(D2,
D1,j))java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
divset(D2,ID1)) -((lower_bound rng f)*vol     
                      (divsetD2))byA126XREAL_113
hencethesis;
                    end;
                    upper_bound rng f - lower_bound rng  stu1=x1,y1]&u2=[2,y2]&|x2-x1.| < r &&nbsp;|.y2-y1.| < r
XREAL_1:48;
                    then (upper_bound rng f - lower_bound rng f)*( vol(divset
(D1,j))) <=(upper_bound rng f - java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 36
XREAL_1:64;
                    hence thesis by A116,A118,XXREAL_0:2;
                  end;
java.lang.StringIndexOutOfBoundsException: Range [69, 16) out of bounds for length 20
                hence thesis;
              end;
j 1 by NAT_113java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
              then
A127:         j1 < j by XREAL_1:19;
              indx(D2,D1,j) in dom D2 by A10,A38,INTEGRA1:def 19;
              A19   is_integrable_on L-Meas & integral(Pg0,K) = Integral(L-Meas,Pg0)
A128:         indx(D2       R_EAL(g0)=ProjPMap1|.R_EAL g.|,[xx1,yy1])
              then
A129:1< indx(D2D,j byFINSEQ_1:1;
A130:         indx(D2
              then
A131:        len (2|ndx,D1,))=indx(D2,D1,1)by FINSEQ_1:;
A132:         j1 in Seg len D1 by A43,FINSEQ_1:def 3;
              then
A133:         j1 <= len D1 by java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 35
              for x1 being object st x1 in rng(D1|by def ;then
                 holds x1         by A24,MESFUN12:def ;then
              proof
                let x1 be object;
                assume x1 in rng(D1|j1);
                then consider k such that
A134:kin dom(|j1) and
1|1. PARTFUN13java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
                k in Seg len(D1|j1) by A134,FINSEQ_1:def 3;
                then
A136:           k in Seg j1 by A133,FINSEQ_1:59;
                then
A137:kin dom D1 by A41,RFINSEQ:;
                k <= j1 by A136,FINSEQ_1:1;
                then D1.k <= D1.j1 by A43,A137,SEQ_4:137;
                then D2.indx(D2,D1,k) <= D1.j1 by A10,A137,INTEGRA1:def 19;
                then
A138           .D2,k)<=D2.ndx(D2,D1,j1)by A10,43,NTEGRA1:def 19;
139:           (1|1).k = D1.k by A41A136,RFINSEQ:;
                D1.k in rng D1 by A137,FUNCT_1:def 3;
                 e1=e2
                then consider n such that
 dom D2 and
A141:           x1=D2.n by PARTFUN1:3;
                D2.indx(D2,D1,k)=D2.n by A10,A135,A139,A137,A141,
INTEGRA1:def 19;
                then
:            < indx(D2,D1,j1)by A44,A140,A138,SEQM_3:def 1;
                1 <= n by A140,FINSEQ_3:25;
                then
A143:           n in Seg indx(D2,D1,j1) by A142,FINSEQ_1:1;
                then n in Seg len(D2|ndx(D2,D1,j1))by A130,FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
                then
|D2D1,)FINSEQ_1def 3;
                D2.n = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                hence thesis by A141,A144,FUNCT_1:def 3;
              end;
             
A145:         rng(D1|j1) c= rng(D2|indx(D2,D1,j1));
A146:         1 <= j1 by A132,FINSEQ_1:1;
              lower_bound divset(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              then
A147:         D1.j1 <= D.1 by A38,A40,INTEGRA1:def 4;
              for x1being object st x1in rng(|D2,D1j)
                holds x1 in rng(D1|A45: Pg1 is_integrable_on L-Meas & integral(Pg1,K) = Integral(L-Meas,Pg1)
              proof
                let x1 be object;
         assume x1 in (|(D2D1j1))java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
                then consider k such that
A148:           k in dom(D2|indx(D2,D1,j1)) and
A149:           x1=(D2|indx(D2,D1,j1)).k by PARTFUN1:3;
                k in Seg len(D2|indx(D2,D1,j1)) by java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
                then
A150:           k in Seg indx(D2,D1,j1)A51:  .ProjPMap1|R_EAL g.u2).ProjPMap1|. g.u)..
                then
A151:           k in dom D2 by A44,= ProjPMap1(|.R_EAL g.|,u2).y + -java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 69
A152:           len(D1|j1) = j1 by A133,FINSEQ_1:59;
k< D1, A150,1
                then D2.k <= D2.indx(D2,D1,j1) by A44,A151,SEQ_4:137;
                then
:          .k=D1.  A10A43,INTEGRA1def19;
           .inrng D1  D2. inrng(|1java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                proof
ssumeD2k rng;
thenconsider msuchthat
A155Fz is_uniformly_continuous_on[I,J:]
A156:             D2.k = D1.m by PARTFUN1:3;
                  m in Seg len D1 by A155,FINSEQ_1:def 3;
                 
A157:             1 <= m by FINSEQ_1:1;
A158A2 f [:[:,J]K:] and
              min Seg len(|1 byA152,A157,FINSEQ_11java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
then
A159:             m in dom (D1|j1) by FINSEQ_1:def 3;
                  m in Seg j1 by A157,A158,FINSEQ_1:1;
                  then D2.k = (D1|j1).m by A41,A156,RFINSEQ:6;
                  hence thesis by A159,FUNCT_1:def java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 22
                end;
A160:           D2.k in rng D implies D2.k = D1.j1
                proof
                  assume D2.k in rng D;
                  then consider n such that
A161:             n in dom D and
A162:             D2.k=D.n by PARTFUN1:3;
                  1 <= n by A161,FINSEQ_3:25;
                  then D.1 <= D2.k by A37,A161,A162,SEQ_4:137;
                  then D1.j1 <= D2.k by A147,XXREAL_0:2;
                  hencethesis by A153,XREAL_01java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
                end;
A163:           D2.k in rng D implies D2.k in rng(D1|j1)
                proof
                  j1 in Seg len(D1|j1) by A146,A152,FINSEQ_1:1;
                  then j1 in dom(D1|j1) by FINSEQ_1:def 3;
                  
A164:             (      reconsider Pg0 ProjPMap1(R_EAL g,u1) as PartFunc ofREAL,REAL
                  assume
A165:             D2.k in rng D;
                  j1 in Seg j1 by A146,FINSEQ_1:1;
                  hence thesis by A41,A160,A165,A164,RFINSEQ:6;
                end;
                D2.k in rng D2 by A151,FUNCT_1:def 3;
                hence thesis by A11,A44,A149,A150,A163,A154,RFINSEQ:6
,XBOOLE_0:def 3;
              end;
              then rng(D2|indx(D2,D1,j1)) c= rng (D1|j1);
              then
A166:         rng (D2|indx(D2,D1,j1)) = rng (D1|j1) by A145,XBOOLE_0:def 10;
              mid(D1,1,j1) isA16:  Pg0|K is bounded & Pg0is_integrable_on K by A1,A2,A3,13Th21;
              then
A167:         D1|j1 is increasing by A146,FINSEQ_6:116;
              then
A168:         D2|indx      u2=x2,   of [REAL,REAL]by ZFMISC_1:def 2
A169:         for k st 1 <= k & k <= j1 holds k=indx(D2,D1,k)
              proof
                let
                assume that
A170:           1 <= k         by A8,A6,XXREAL_1,,java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 44
A171:           k <= j1;
               
A172:           k<>indx(D2,D1,k);
                now
                  A27   |(ProjPMap1R_EAL gu). -P(R_EALg,u1))y.|
                  suppose
                 indxD2,k;
                    k <= len D1 by A133,A171,XXREAL_0:2;
                    then
A174:               k in dom D1 by A170,FINSEQ_3:25;
                    then indx(D2,D1,k) in dom D2 byA7A8,,A18,A23,A24,A25INTEGRA6:;
                    then indx(D2,D1,k) in Seg len D2 by FINSEQ_1:def 3;
                    then
    =e2
A176:               indx(D2,D1,k) < j1 by A171,A173,XXREAL_0:2;
                    then
177:               indx(D2,D1,k inSeg j1by A175,FINSEQ_1:1;
                    indxD2,1,k),1 by A10,,A171,A174,Th7;
                    then indx(D2,D1,k) in Seg          A32;
;
                    then
A178:               (D2|indx(D2,D1,j1)).indx(D2,D1,k)= D2.indx(D2,D1,k)
A44RFINSEQ:6;
                    indx(D2,D1,k) <=x1 xx2x2,  y2as of
                    then indx(D2,D1,k) in dom D1 by A175,FINSEQ_3:25;
                    then
A179:               D1.k > D1A35  Pg0=K
                    D1.   &(Integral2(L-eas,_EAL g).x1,y1] =integral(g0Kjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
Q:6;
                  end;
                  suppose
A180:               k < indx(D2,D1,k);
                    k <= len D1 by A133,A171,XXREAL_0:2;
                    then
               in dom  by ,FINSEQ_3:;
thenindxD2,D1,k)=indx(D2,D1,j1 by A10,A41,171Th7;
                    then
                =indx(2,1,1 byA180,XXREAL_0:;
                    then k <= A40:'  tjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 45
                    then
A183:               k in dom D2 by A170,FINSEQ_3:25;
kj1by:;
                    then
 D1.k = (D1|j1)kby A43,:;
                    indx(D2,D1,k) in dom D2 by A10,A181,INTEGRA1:def 19;
                    then
A185:               D2.k < D2.indx(D2,D1,k) by A180,A183,SEQM_3:def 1;
A186:               k in Seg indx(D2,D1,j1) by A170,A182,FINSEQ_1:1;
                    D1.k=D2. indx(D2,D1,k)        byA36A38,A39,40,NTEGRA623 
hbyA,,A185R:;
                  end;
                end;
                contradiction;
              end;
A187:         for k be Nat stst[[I,J]K:  dom    [::I,:,K:  f=g
(D2,D1,j1).
              proof
                indx(D2,D1,j1) inproof
                then indx(D2,D1,j1) in Seg len upper_volume(f,D2) by
INTEGRA1:def 6;
                then
A188:           indx(D2,D1,j1) in dom upper_volume(f,D2) by FINSEQ_1:def 3;
                let k be Nat;
                that
A189:           1 <= k and
A190:           k <= len(A5:domRF =REALby FUNCT_2def java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A191:           len(upper_volume(f,D1)) = len D1 by INTEGRA1:def 6;
                then
            <= j1by A133AFINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
                then
Pfis_continuous_on[I,]by A1,A2,A3,Th20 then
                then indx(D2,D1,k) in Seg j1 by A169,A189,A192;
                then
A194:           indx(D2,D1,k) in Seg indx(D2,D1,j1) by A146,A169;
                then indx(D2,D1,k)<=indx(D2,D1,j1) by FINSEQ_1:1;
                then
A195:           indx(D2,D1,k)<=len D2 by A130,XXREAL_0:2;
      q in REALby A6,REAL_0:ef1;
                then
A196:           k in Seg len D1 by A189,FINSEQ_1:1;
                then
A197:          k in dom D1 by FINSEQ_1:def 3;
                then
A198:           indx(D2,D1,k) in dom D2 by A10,INTEGRA1:def 19;
A199:           D1.k=D2.indx (D2,D1,k) by A10,A197,INTEGRA1:def 19;
  reconsiderPf=Pgas PartFunc of [RNS_RealR]RNS_Real;
D1,k)) & upper_bound divset(D1,k)=upper_bound divset(D2,indx     suppose A10:zin K; then
               
                  per cases;
                  suppose
A201:               k=1;
                    then
upper_bound(1k)D1k byINTEGRA1def4java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
A203:               lower_bound divset(D1,k)=lower_bound A by A197,    rngRFc= 
INTEGRA1:def 4     isFunction REAL, java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
                    indx(D2,D1,k)=1 by A146,A169,A201;
hence thesis by A198,A199,A203,A202,INTEGRA1:def 4;
                  end;
                  
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 36
                    then reconsider k1=k-1 as Element of NAT by A197,INTEGRA1:7
;
                    k <= k+1 by NAT_1:11;
                    then k1 <= k by XREAL_1:20;
                    then
A205:               k1 <= j1 by A192,XXREAL_0:2;
  Gxy is continuous
                    let I,JK  non emptyclosed_interval Subset of REAL,
                    then k1=indx(D2,D1,k1) by A169,A205;
                    then
A207:               D2.(indx(D2,D1,k)-1)= D2.indx(D2    Gxy be PartFunc of REAL,EAL
,A193;:fis_continuous_on [[:,J:],K]and
A208:               indxA: Gxy  (Prod_MeasureLMeas,-)|.EAL g|)|K
                                then
A209A6 a < b by A5,XXREAL_1:29 
                    ]byA5,XXREAL_1:29INTEGRA5:def 3;
A210:               upper_bound divset(D2,indx(D2,D1,k))=D2.indx(D2,D1,k
                    ) by A198,A208,INTEGRA1:def 4;
                D1k)D1. by ,def 4;
                    lower_bound divset(D1,k)=D1.(k-1) by A197,A204,
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
                    hence java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
 19java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
                  end;
                end;
                divset(D2,indx(D2,D1,k))= [. lower_bound divset(D2, indx
(D2,D1,k)), upper_bound divset(D2,indx(D2,D1,k)).] by INTEGRA1:4;
                then
A212:           divset(D1     assumeA16:xin I  y J;
A213:           k in dom D1 by A196hence| |..[,y,]-..)(xy,] . < byA14,A15A16
                j1    set Rg =_AL g
                then j1 in dom(upper_volume(f,D1)) by FINSEQ_1:def 3;
                then
upper_volumef,D1|1.k =upper_volume(f,D1).k by A193,
RFINSEQ:6
                  .=(upper_bound(rng(f|divset(D2,indx(D2,                  .=(upper_bound(rng(f|divset(D2,indx(D2,D1
                divset(D2,indx(D2,D1,k))) by A213,A212,INTEGRA1
                1<=indx(D2,D1,k) by A169,A189,A192,A193;
                then indx(D2D, inSeg lenD2by F1
                then
A215:           indx(
(upper_volume(f,D2)|indx(D2,1j1). =upper_volume(f,
                D2)|indx(D2,D1,j1)).indx(D2,D1,k) by A169,A189,A192,A193
                  .=upper_volume(f,D2).indx(D2,D1,k) by A194,A188,RFINSEQ:6
                  .=(upper_bound(rng(f|divset(D2,indx(D2,D1,k)))))*vol(
                divset(D2,indx(D2,D1,k))) by A215,INTEGRA1:def 6;
                hence thesis by      consider  be such that
              end;
              indx(D2,D1,j1) in dom D2 by A10 holds
              then indx(D2,D1,j1) <= len D2 by FINSEQ_3:25;
              then
 = upper_volumef,)byINTEGRA1:def 6;
              j1 <= len D1 by A43,FINSEQ_3:25;
              then
A217:         j1 <= len upper_volume(f,D1) by INTEGRA1:def 6;
              len (D2|indx(D2,D1,j1))=len (D1|j1) by A47,A167a27: (|...x,z2])-|.|.xyz] java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
              then indx(D2,D1,j1) =j1 by A133,A131,FINSEQ_1:59;
              then len(upper_volume=ProjPMap2(||z1.x,  A26ZFMISC_1:87,MESFUN12:def3java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
FINSEQ_1:59;
then (pper_volume(f,D1)j1)=len((f,D2)indxD2
,D1,j1)) byA216FINSEQ_1:59;
              then
A218:         upper_volume(f,D2)|indx(D2,D1,j1)=upper_volume (f,D1)|j1
              by     rbe  z0inK  0<java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A219:         j in Seg len D1 by A38,FINSEQ_1:def 3;
              then
         1< jby 1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
indxD,1,  Seg len UVf(D2)by A128,INTEGRA1:ef6
then
A221:         indx(D2,D1,j) in dom UVf(D2) by FINSEQ_1:def 3;
              indx(D2,D1,j) <= len D2  Integral2(L-Meas,_AL )|
              then
A222:         indx(D2,j) = UVf(D2) byINTEGRA1def 6java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
              j in Seg len UVf(D1) by A219,INTEGRA1:def 6;
              then
A223:         j in dom UVf(D1) by FINSEQ_1:def 3;
              j <= len D1 by A219,FINSEQ_1:1;
              then
:j <=len UVf(D1)by INTEGRA1:def 6;
              j1 in java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 15
              then j1 in Seg len UVf(D1) by INTEGRA1:def 6;
     then j1 in dom UVf(D1) by FINSEQ_1:def 3;
              then PUf(D1,j1)=Sum(UVf(D1)|j1) by INTEGRA1:def 20;
              then PUf(D1,j1)+Sum mid(UVf(D1),j,j) =Sum((UVf(D1)|j1)^mid(UVf(
              D1),j,j)) by RVSUM_1
                .=Sum(mid(UVf(D1),1,j1)^mid(UVf(D1),j1+1,j)) by A146,
FINSEQ_6:116
                .=Sum(mid(UVf(D1),1,j)) by A146,A224,A127,INTEGRA2:4
                .=Sum(UVf(D1)|j) by A220,FINSEQ_6:116;
              then
 mid(upper_volume(f,D1),j,j)=PUf(D1,j) by A223,
INTEGRA1:def 20;
indx(D2D1j1 in Seg len D2  byA44FINSEQ_1:def 3;
              then indx(D2,D1,1 in Seg len UVf(D2) by INTEGRA1:def 6;
              then indx(D2,D1,j1) in dom UVf(D2) by FINSEQ_1:def 3;
              then PUf(D2,indx(D2,D1,j1)) =Sum(UVf(D2)|indx(D2,D1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
INTEGRA1:def 20ontinuous by A1,A2,A3,A42,Th20,MESFUN16:53; then
              then PUf(D2,indx(D2,A47:   Pg1|I is bounded & Pg1 is_int I by A44,:10,11;
D2,D1,j1)+1),indx(D2,D1,j))java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              D1,j1)+),indx(D2,D1,j)) by RVSUM_1:75
                .Sum(mid(UVf()1,indx(D2,D1,j1))mid((D2),indx(2,D1,
              j1)+1,indx(D2,D1,j))) by A46,FINSEQ_6:116
.Sum(mid(UVf(2)1indx(D2,D1,j))) by A46,A48,222INTEGRA2:4
                .=Sum(UVf(D2)|indx(D2,D1,j)) by A129,FINSEQ_6:116;
              then
A226:         PUf(D2,indx(D2,D1,j1)) +Sum mid(upper_volume(f,D2),(indx(
D2,D1,j1)+1), indx(D2,D1,j)) =PUf(D2,indx(D2,D1,j)) by A221,INTEGRA1:def 20;
              indx(D2,D1,j1) in Seg len D2 by A44,FINSEQ_1:def 3;
              then indx(        reconsider Pg120 =(x) as  ofREAL,;
INTEGRA1:def        rojPMap1(R_EAL Pg20,x) = R_EAL ProjPMap1(Pg20,x)
              then indx(D2,D1,j1) in dom upper_volume(f,D2) by FINSEQ_1:def 3;
              thenPUfD2,ndx(D2,D1,j1))Sumupper_volume(f,D2)|indx(D2,D1,
              j1)) by INTEGRA1A53    Pg120  ProjPMap1(R_EAL Pg20,x) by MESFUNC5:def 7;
.=D1,j1  ,42,:def ;
              hence thesis
            ;
            hence thesis by A38,A39;
          end;
          reconsider i as non zero Element of NAT by A15,FINSEQ_1:1;
A227:     for i being non zero Nat st P[i] holds P[i+1]
          proof
            let i be non zero Nat;
A228:       i>=1 by NAT_1:14;
            assume
A229:       P[i];
            P[i+1]
            proof
A230:         i <= i+1 by NAT_1:11;
              assume
A231:         i+1 in dom D;
              then consider j such that
A232:         j in dom D1 and
A233:         D.(i+1) in divset(D1,j) by Th3,INTEGRA1:6;
A234:         D2.indx(D2,D1,j)=D1.j by A10,A232,INTEGRA1:def 19;
              i+1 in Seg len D by A231,         reconsider yy=y as Element of REAL by XREAL_0:def 1;
              then i+1 <= len D by FINSEQ_1:1;
then i = len D by A230,XREAL_0:2;
              then
A235:         i in Seg len D by A228,FINSEQ_1:1;
              then
A236:         i in dom D by| ProjPMap1java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 50
A237;
              then
:<indxD2D1j)by 25java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A239:         indx(D2,D1,j) <= len D2 by A237,FINSEQ_3:25;
              then
A240:         indx(D2,D1,j) <= len UVf(D2) by INTEGRA1:def 6;
              consider n1 being Element of NAT such that
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 30
A242:         D.i in divset(D1,n1) and
A243:         PUf(D1,n1)-PUf(D2,indx(D2,D1,n1)K  .1-z0| sholds |Gxy.-.z0|<r by ;
              f- lower_bound rng f)*delta(D1) by A229,A235,FINSEQ_1:def 3;
A244:         1 <= n1+1 by NAT_1:12;
A245:         n1 < j
              
                assume
A246:           n1 >= j;
                now
                  per cases by A246,XXREAL_0:1;
                  suppose
A247:               n1=j;
D   D A236,d ;
                    then
A248:               D.i in rng D /\ divset(D1,j) by A242,A247 let zz1  ;
                    D.(i+1) in rng D by A231,FUNCT_1:def 3;
                    then
A249:               D.(i+1) in rng        reconsider Pf21 = Pg21 as ParPf21 PartFuncof[java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 76
                    i+1 > i by XREAL_1:29;
                    hence contradiction by A8,A231,A232,A236,A248,A249,Th5,
SEQ_4:138;
                  end;
                  suppose
                    n1>A76   Integral2(L-R_EAL Pg21 =REAL by :def1 
                    then
A250:               n1>=j+1 by NAT_1:13;
                    then
= j :;
                    1< by A232,INSEQ_3:;
                    A80:   Gxy.zz1 = integralGxy. integral(g1a,)by A5,A8,:29,:def4;
                    then
A252:               n1 <> 1 by A250,XXREAL_0:2;
                    then n1-1 in dom D1 by A241,INTEGRA1:7;
                    then
A253:               D1.j <= D1.(n1-1) by A232,A251,SEQ_4:137;
A254:               upper_bound divset(D1,j)=D1.j
                    proof
                      per cases;
                      suppose
                       1
                        A90:    Pg121 is continuous bA74:: License version 3.0 or later, subject to the binding interpretation
                       A74A75,89,:;
                      suppose
                        jby MESFUN12def      RDINAL1,RELSET_1,FUNCT_2 , FUNCT_4,FUNCT_5,
 requirements SUBSET, BOOLE, ARITHM, NUMERALS;
                      end
                    endjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
:                divset(D1,n1) <= D.i by A242,INTEGRA2:1;
                    lower_bound divset(D1,n1)=D1.(n1-1) by  thus thesis by PARTIT1:def 3;
INTEGRA1:def 4;
             
A256:      assume x in %O Y;
          byA86,A90INTEGRA510,;
                    i<upper_bound divset(j  ,:;
    D.i .+by,,
                    hence contradiction by A231,A236,A257,SEQM_3:def 1;
                  end;
                end;
                

              then
:+1=  ;
:          < n1b A241,FINSEQ_3:;
  ,NTEGRA1def ;
:1< jby,INSEQ_3;
2:indxD2D1,n1 domD2 by ,A241,INTEGRA1:ef19;
              ;
A263:         1 <= indx(D2,D1,n1) by FINSEQ_3:25;
being  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 78
then

then
A266:         n1+1 in       hence ex s be Real ex s Real 0s forz1 be 
              then
A267:         D2.indx(D2,D1,n1+ 1)=A1: R is_reflexive_in Y & S is_reflexjava.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
:j< UVfD1)byA264INTEGRA1def6;
              then j in Seg len UVf(D1) by A261,FINSEQ_1:1;
              java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 11
A269:         j in dom UVf(D1) by FINSEQ_1:def 3;
A270:         indx(D2,D1,n1+1) in dom D2 by A10,A266,INTEGRA1:def 19;
              hen
A271:         1 < indx(D2,1n1+1)by FINSEQ_325java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
:def 3
thenn1 in Seg   field R c= Y \/ Y by RELSET_1: R c  /YbyRELSET_18;
then         =Pg21asPartFunc of[RNS_Real,RNS_Real]RNS_Real;
,Pf21 is_continuous_on[I,:by A1A2Th20then
                .=SumA6: R*is_symmetric_in
             PUf,n1)+Sum (UVf(),n1+,j) =ummid(UVf(D1),,1
              ^mid    then
                .Summid((D1),1j by A245,259A268,INTEGRA2:4
                .(VfD)j  A261,FINSEQ_6:116;
              then
D1n11j)A269,
INTEGRA1thenax<TRUEjava.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
              (,D1j Seg  by A237,INSEQ_1:def 3;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
              
 indx(2,D1,  domD2 by FINSEQ_1def 3java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
 beofjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
              D1.(n1+1) <= D1.   thesis  A4BVFUNC_1def;
              then
A275:by :;then
SEQM_3:Ex,,G =Ex(not' ''aPG . 'not'All''aPG by 
then +indx(D2,1n1+)< indx(D2,D1j+1 by XREAL_16
thenA117:dom=Jby 103java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 49
             
tERl/Q*/P (OOY*((/PTh1
nn1+)byA275,A271,239,FINSEQ_6:122
.n11  A,d19java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
A277         n1 >=1b A241A241,INSEQ_3:25;
:-  1X9java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
              Sum mid(UVf(D1)A:A121:Pg0.x  integral(Pg120,c,)
indxDD1j)< upper_boundf-wer_bound rngf)elta(
              proof
                per cases by A258,XXREAL_0:1;:forp eing  ofP holds hP9p=P()from FUNCT_2sch 4;
                suppose
A279:             n1+1=j;
A280:             indx(D2,D1,j)-indx(D2A122:  Pg1.=integral(Pg121Pg120,,d A,VALUED_1:;
                  
A281:               upper_bound divset(D1,j) = D1.j by A232,A245,A277,
INTEGRA1:def 4;
A282:proof
INTEGRA1:def 4;
A283:               1 <= indx10(21)
                    assume indx(D2,D1,j) - indx(D2,D1,n1) > 2;
                    then
A284:                       then
then
A285:               indx(D2,D1A34: in hPdbyA9,18,A32,ETFAM_143java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
)1<indxD2D1,)2  6java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                    then
A287:               indx(D2,          .= hP9.d by A24,A26,:13
then1< indxD2,D1,n1)2 by ,XREAL_02;
                    then
A288 byA5,      a = EqClassybby,37;
                    then
hQ9b=   FUNCT_1def3
SEQ_4z1inK&.-z0.<s |Gxy.-xyzz0.< rA42  beingstdin .d d
A290:               java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 8
                    proof
                      assume D2.(indx(D2,D1,n1)+2)      .=  \ \ QbyFUNCT_2def 1
                      then consider k1 being Element of
domD1  proof
:.indx(,n1)) 1. byPARTFUN1:
                      D2.(indx(D2,D1,n1)+2) < D2.indx(D2,      suppose
A, ;
                      
 k1 <j by A232,,A291,SEQ_4137java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
                      D2.indx(D2,D1,n1) < D2.(indx(D2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,A288,SEQM_3:def 1;
                      then n1 < k1 by A241,A260,A291,A292,SEQ_4:137;
                       contradiction  A279,A293,NAT_1:13;
                    
                    D2.(indx(D2,D1,n1)+2) in rng java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 48
                
294:D2(indx(2,1,n1+2)in rngDby A11A290,XBOOLE_0def 3;
:lower_bound1  1by A,,
INTEGRA1:then
:                divset(,) D1.by A232,245A277,
INTEGRA1:def 4;
                    D2.(indx(D2,D1,n1)      hQ9b =hb  A56,:13;
,A288,SEQ_4:137;
                    D2.indx(D2,D1,n1+2)indivset(D1,j) by A260,A234
e;
                    then
A297A
def 
A298:               EqClass,(,)) aCompFPG)TRUE implies(java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 79
                    indx(2D1,)+ =len D2  A239,XXREAL_0:;
then
A299:               indx(D2,D1,n1)+1 in dom D2 by A283,FINSEQ_3:25;
                    then
A300 assumez EqClassx,(QG)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
SEQ_4:137;
A301:               indx(D2,D1,A301:               indx(D2,D1,n1kownikow Mizara, Bialystok, Poland).
A302:EqClass,(,  A18Th5java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
                    proof
 ((,D11 rngD1java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  Elementofsuch
: in D1
Subset  stdomh{     =F& for being stjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
.,))<.indx1)byA
,A299,  /'BA16RELAT_1:15java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
A305:                 k1 < j by     .= B_INF( B_INF(a,CompF(Q,G)),CompFA3:I Fand
D2.(D2D1,1) <
,A299,SEQM_3:def 1;
                      [,5;
                      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

                .(,D1)1    A c= G& B c= G by XBOOLE_1:6;
                    thenassumexy ERlP
:.21)   D : ;
=
,A299java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
                    then     [, inERl 'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,A279        infield''by ,15java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    thenD2.((D2,1n1+) nrng D / divsetD1,j)by java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
XBOOLE_0:         reco yyy as Elementof REAL XREAL_0:ef 1java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
                     D2.ndx(D1,n1))  (ndx(,,n1)2) byA8
A297java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
                    hence contradiction by A286,A299,288,SEQM_3def ;
                   end
             (D2D1,+<D2,j) -ProjPMap1ProjPMap2|g|)x). |r1/-/cjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
                  2=indx(D2, D1, java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 4
                  proof
                   indx(D2,D1,n1)+1 < indx(D2,D1,j);
                    then
       (2D1n1+1+< indxD2,D1j)by AT_1:13;
                    indx(hencethesisby A1
                    hence thesis by A308,XXREAL_0:1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end
A309             <indx(D2,,1+1by :12;
A310
A1 is_symmetric_infieldR
assumexinS&y  S;
A311:             indx(D2,D1,n1)java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
;
                  then
A312:             indx(D2,D1,n1)+1 <= indx(D2,D1,j) by NAT_1:13;
                  then indx(D2,D1,n1)+1 <= len D2 by A239,XXREAL_0:2;
6
                  then
A313:                 fbe PartFuncof [::NS_Real,NS_Real]RNS_Real:]java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
(D2,D1,j)-'(indx(D2,D1,n1)+1)+1 by A238,A312,A309,A310,FINSEQ_6:118
                    .   x,y java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 4
                  (D2,)1  
java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 22
 indxD1) =D,,j(D,1+<
indxD1j     Y/ 5 =[a,.   d 3java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
             java.lang.StringIndexOutOfBoundsException: Range [2, 25) out of bounds for length 6
 suchthat
                  java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
                    now
percases by A314Ajava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
 a''bjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12

x(,)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                        java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 12
                        :(,G=n ' PG =' ''bPG :;
                 java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
A318:                   upper_bound divset(D2,indx(java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 45
,I,A232,A316,INTEGRA1
                        ERl')*'')( )Rl\) 
(,D1+- A237   f be;
then
A319:                   lower_bound divset hQ, ElementXjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 45
bA10 etx bejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
                        cluster op1 -> involutive for Function;
,A266,A279henceop1(.a   byFUNCT_2java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                        then
                   D2D2,n1+)D,n11 A245
,A277,A266,A279,A319,A318,for ,ybe Element ofREALst x  I&yjava.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 58
A321:                   vol(divset(D2,indx(D2,D1,n1)+1))>=0 by INTEGRA1:9;
           reconsider UV = UVf(D2).(indx(D2,D1,n1)+1) as Element of REAL
                     by XREAL_0:def 1;
                        1=       for ,  Real t in I & yin Jholds
                        then java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
UVf(D2).(1+(indx <r&  in   K
                          . xinI& y J;then
                        then
A322:                   mid(UVf(D2),indx(D2,D1,n1)+1,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 38
                    =<*UV*> by A313,A316,FINSEQ_1:40;
                        (2.(indx(D2,1n1)1 =upper_bound ng(java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
divset(D2,indx(D2,D1,n1 ProjPMap2(z).x,  .xy],z2java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
INTEGRA1:def 6;
                        then UVf(D2).(indx(D2,D1,n1)+1) >=(lower_bound rng f)
*divsetD1,n1+)byA1,,A316,A320A,XREAL_164
                        hence thesis:  P.=Pp java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 68
                      java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
                      suppose
:indxD2D,)-D2D,=;
                        indx(D2,D1,n1)+2 >=yd)by:inK    java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
hen
A324:                    a =EqClass(yb) byA19,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
                        then
A325:                   upper_bound divset(D2,   x, A20A40java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
                        (D2,D1hQ9d=EqClassxd A20
                        D2D1,)2-indxD2D1,+;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                        indx(D2,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 12
            
:volD,(D1n)) jD2(
                       D1n11 A,java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 65
A327:                   upper_bound divset(D1,n1+1)=D1.(n1+1) by A245,A277,A266
,A279,INTEGRA1:def,A279,INTEGRA1:def P) ,:java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 50
                        lower_boundthen in  ,A43,A56,A57,FUNCT_1def3java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
,reconsider=    by RELSET_1;
                        
+1))=1(1-. byA327,
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
indxD2n1+)
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 78
:voldivset(2         LM-)Pg21byA1A2,Th23
A332:                   1 <=            ERl/ then
                   D,n1+ =D,,+ 6java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
                        then indx(D2A:CompFPG)x>
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                       
A334:                   indx(D2,D1,n1)+1 in  for  ofxinIholds|P-)x|r
                        then   thus Ex(Ex(a,P,G),Q,G) = 'not''ExEx(,G,,G)
divset(D2,java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 4
INTEGRA1:def 6;
                        then:Pg120 =/'   ;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 72
D2+) A1X64
1+by;

java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 8
UVf(D2).(2+(indx(D2,D1,n1)+1)-1) byA716java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
.=UVfD2.indx(D2,D1,1)++);
]A,)-AB
                        then
UVf(
                         ()(,D1,n11java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
         )D2D1n1+i(D2,D1,j <java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
.(D2,)1U()(D2D1n1+) ,           

                        then
A337:                   Sum mid(UVf(D2),indx(D2,D1, x  
.D,,)1+.D,,))java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 69
A338:                   indx(D2,A1 R fieldR;
 byA,A61
A339:                   
                        (D2,java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 0
                        lower_bound divset(D2,indx(D2,D1,n1)+1)       forx beReal    R&infieldR RELAT_1:5;
D2D1n1+1 A, 
                        
(indxD,java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
,))
                        (D2((D2n1+)=  b- :5050java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
D2indxD2D1n1+) vol(java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 77
INTEGRA1:java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 4
                        java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
)*vol(divset(D2,indx(D2, java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 23
                        then :       letzz1beReal
>= (lower_bound   let f be UnOp of 
vol(divset(D2,indx(D2
hence java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 60
                      end;
                    end;
                    thesis
                  end;
A341:             n1+1 <= len UVf(D1) byA72 dom (MeasREAL Pg21) =REAL by :ef ;then
                  j-'(n1+1)+1=j-(n1+1)+1 by A279,XREAL_1:233;
                  then
A342:             len mid(UVf(D1),n1+1,j)= 1 by A244,A279,A341,FINSEQ_6:118;
 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 47
                  +1)))* vol(divset(D1,n1+1)) as Element of REAL
                      by XREAL_0:def 1;
                  (n1+1)+1 <= j+1 by A258,XREAL_1:6;
                  then 1 <= j+1-(n1+1) by XREAL_1:19;
                  then mid(UVf(D1),n1+1,j).1 = UVf().(1(n1+1)1 by 
,A279,A341,FINSEQ_6:122
                    .=(upper_bound rng(f|divset(D1,n1java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 30
                  1)) by A266,INTEGRA1:def 6;
                  then mid(UVf(D1),n1+1,j) =<*uv*> by A342,FINSEQ_1:40;
                  then
:SummidUVf(),1,)=rngf|ivsetD1,
                  n1+1)))*vol(divset(D1,n1+1)) by FINSOP_1:11;
                  divset(D1,n1+1) c= A by A266,INTEGRA1:8;
                  then
A344:             upper_bound rng(f|divset(D1,n1+1)) <= upper_bound rng
                  f by A1,Lm4;
                  n1+1 in Seg len D1 by A266,FINSEQ_1:def 3;
                  then n1+1 in Seg len upper_volume(chi(A,Afor be y  J| (-.. <=/ba)
INTEGRA1:def 6;
                  then
A345:             n1+1 in dom upper_volume(chi(A,A),D1) by FINSEQ_1:def 3;
                  vol(divset(D1,n1+1))=upper_volume( chi(A,A),D1).(n1+1)
                  -((Rgz0x). byLm6
                  then vol(divset(D1,n1(Rg,z0),x)).y . < r1b-
                  by A345,FUNCT_1:def 3;
                  then
A346:             vol(divset(D1,n1+1))<=delta(D1) by XXREAL_2:def 8;
ujava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 79
;
                  then
A347:             (upper_bound rng f-lower_bound rng f)* vol(divset(D1,
1)<(rngf-java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 76
                  vol(divset(D1,n1+1)) >= 0 by INTEGRA1:9;
                  then Sum mid(UVf(D1),n1+1, 0 < -by XREAL_1:;
                  divset(D1,n1+1)) by A343,A344,XREAL_1:64;
                   midUVfD1),1+j-um UVfD2 ),indxD2D1,java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
)+1, indx(D2, D1,jfor be  stz1inK&|-. <sholds|.-xy.java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 77
                  rng f)* vol(divset(D1,n1+1)) by A315,XREAL_1:13;
                  hence thesis by A347,XXREAL_0:2;

                suppose
A348:             n1+1 < j;
A349:             j-'(n1+1) = j-(n1+1) by A258,XREAL_1:233;
                  then
A350:             j-'(n1+1)+1=j-n1;
A351:             n1 < n1+1 by NAT_1:13;
                  then
A352 D1n1 < D1.n1+1) by A241,A266SEQM_3def1java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
                  then consider
                  B being non empty closed_interval Subset of REAL, MD1,MD2
                  being:dom= by,2925;
A353:             D1   java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 51
                  upper_bound B=MD2.(len MD2) and
A354:             upper_bound B=MD1.(len MD1) and
A355:             MD1 <= MD2 and
             mid(n+,j java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
   x= (Pg120,c,d)
A,java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A358:             len MD1 = j-'(n1+1)+1 by A258,A261,A264,A244,A265,A356,
FINSEQ_6:118;
                  java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
A359:             len MD1 = j-(n1+1)+1 by A258,XREAL_1:233;
                  then
A360:             len MD1+(n1+1)-1 =j;
A361:             len MD1 in dom MD1 byFINSEQ_5:6java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
                  then
A362:             1 <= len MD1 by FINSEQ_3:25;
A363:             lower_bound divset(MD1,len MD1)=lower_bound divset(D1,
                  j) & upper_bound divset(MD1,len MD1)=upper_bound divset(D1,j)

                    per cases;
                    suppose
A364:                 len MD1=1;
                      then
A365:                 upper_bound divset(MD1,len MD1)=MD1.(len MD1) by A361,
INTEGRA1:def 4;
A366:                 upper_bound divset(D1,j)=D1.j by A232,A245,A277,
INTEGRA1:def 4;
                      lower_bound divset(D1,j)=D1.(j-1) by A232,A245,A277,
INTEGRA1:def 4;
                      hence
                      thesis by A261,A264,A353,A356,A359,A361,A364,A365,A366,
:118, ;
                    end;
                    
A367:                 len MD1<>1;
 1 java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 67
                      then
A368:                 len MD1-1 >= 1 by FINSEQ_3:25;
                      len MD1 <= len MD1+1 by NAT_1:11;
                      
A369:                 len MD1 -1 <= len MD1 by XREAL_1:20;
                      upper_bound divset(MD1,len MD1)=MD1.(len MD1) by A361
,A367,INTEGRA1:def 4;
                      then
:divsetMD1len D1j byA258A264,java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
,A356,A358,A360,A362Pg0x=L. A137:;then
A371:                 len MD1-1+(n1+1)-1=j-1 by A358,A349;
                      lower_bound divset(MD1,len MD1)=MD1.( len MD1-1)
                      by A361,A367,INTEGRA1:def 4;
                      then lower_bound divset(MD1,len MD1) = D1.( j-1) by A258
,A264,A244,A356,A358,A371,A368,A369,FINSEQ_6:122;
                      hence thesis by A232,A245,A277,A370,INTEGRA1:def 4A:  (Pg0x=integral(Pd A135VALUED_1:;
                    end;
                  end;
A372:             B c= A
  proof
                    let x1 be object;
A373:                        assume
                    D1.n1 in rng D1 by A241,FUNCT_1:def 3;
                    then
A374:               lower_bound A <= D1.n1 by A373,INTEGRA2:1;
                    assume
A375:               x1 in B;
thenjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 47
A376:               x1 <= MD1.(len MD1) by A354,A375,INTEGRA2:1;
                    D1.j in rng D1 by A232,FUNCT_1:def 3;
                    then
A377:               D1.j Phence|(. |<=r1(-a/-)A152E:
                    D1.n1 <= x1 by A353,A375,INTEGRA2:1;
                    then
A378:               lower_bound A <= x1 by A374,XXREAL_0:2;
                    MD1.(len MD1)=D1.(j-n1-1+(n1+1)) by A258,A278,A264,A244
,,349122
                      .=D1.j;
                    then x1 <= upper_bound A by A376,A377,XXREAL_0:2;
                    hence thesis by A378,hence ex  be Real st 0<s & for z1 be Real
                  end;
thenreconsider gf|as  B,EAL by 32
A379    hence Gxyjava.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 34
A380:theoremTh38:
                  proof
                    consider a be Real such that
A381:               for x being object st x in A /\ dom f holds a<=f.x
                    by A1,RFUNCT_1:71;
                    for x being object st x in B /\ dom g holds a<=g.x
java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
                      let x be A1 ::,]K]=dom f and
A382:                 dom f /\ B c= dom f /\A3 f= g;
assume xin B/ dom g
                      then
A383:                 x in dom g by XBOOLE_0:def 4;
                      then  indom f/ BRELAT_161;
                      then a <= f.x by A381,A382;
                      hence thesisA6:  x1in REAL&y1 ,y1] by ZFMISC_1:84java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
                    end;
                    then
A384:               g|B is bounded_below by RFUNCT_1:71;
                    consider a be Real such that
                x beingobject x in A / dom fholdsf.<=a
                    by A1,RFUNCT_1:70;
                    for x being object st x in B /\ dom g holds g.x<=a
                    proof
                      let x be object;
A386:                 dom f /\  let be objectjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
                      assume x in B /\ dom g;
                      then
A387:                 x in dom g by XBOOLE_0:def 4A15:   (ProjPMap1(|R_EALg.,p).=(REAL g.)(,y)
                      then x in dom f /\ B by RELAT_1:61;
                      then a >= f.x by A385,A386;
                      hence thesis by A387,FUNCT_1:47;
                    end;
                    java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
                    hence thesis by A384;
                  end;
                  lower_bound divset(D1,j) <= D.(i+1) by A233,INTEGRA2:1;
                  then
A388:             D1.(j-1) <= D.(i+1) by A232,A245,A277,INTEGRA1end;
+1)+=-n1++ byA258,233;
A390:             len upper_volume(g,MD1)=len MD1 by INTEGRA1:def 6
                    .=j-(n1+1)+1 by A258,A261,A264,A244,A265,A356,A389,
FINSEQ_6:118;
A391:             j <= len UVf(D1) by A264,INTEGRA1:def 6;
A392:             for k be Nat st 1<=k & k<=len upper_volume(g,MD1)
                  holds upper_volume(g,MD1).k=mid(UVf(D1), orI,J,Kbnon empty closed_interval Subset of REAL,
                  proof
                    let k be Nat;
assumethat
A393:               1 <= k and
A394:               k <= len upper_volume(g,MD1);
               k in Seg len upper_volume( g,MD1) by A393,A394,FINSEQ_1:1;
                    then
A395:               k in Seg len MD1 by INTEGRA1:def 6;
                    then
A396:               k in dom MD1 by FINSEQ_1:def 3;
                    k in dom MD1 by A395,FINSEQ_1:def 3;
                    then
A397:               upper_volume(g,MD1).k =(upper_bound rng(g|divset(MD1
                    ,k)))*vol(divset(MD1,k)) by INTEGRA1:def 6;
                    consider k2 being Element of      per
A398:               n1+1=1+k2;
A399:               1 <= k+k2 by A393,NAT_1:12;
                    k <= j-((n1+1)-1) by A390,A394;
                    then k+((n1+1)-1) <= j by XREAL_1:19;
     k+k2 < lenD1 A264,,:;
                    then
A400:               k+k2 in Seg len D1 by A399,FINSEQ_1:1;
                    then
A401:               k+k2 in dom D1 by FINSEQ_1:def 3;
                    1+1 <= k+k2 by A259,A393,A398,XREAL_1:7;
                    then
               1<k+2 by NAT_113;
A403:               k2=(n1+1)-1 by A398;
A404:               lower_bound divset(D1,k+k2)=lower_bound divset(MD1,
                    k) & upper_bound divset(D1,k+k2)= upper_bound divset(MD1,k)
                    proof
                      per cases;
                      suppose
A405:                   k=1;
                        then upper_bound divset(MD1,k)=MD1.k by A396,
INTEGRA1:def 4;
                        then
:upper_bound divset(MD1,k)=D1.(k+(n1+1)-1) by A258,A264
,A244,A356,A390,A393,A394,FINSEQ_6:122;
                        lower_bound divset(MD1,k)=D1.n1 by A353,A396,A405,
INTEGRA1:def 4;
                        thesis by A403,A402,A401,A405,A406,INTEGRA1:def 4
;
                      end;
                      java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
A407:                   k<>1;
                        then upper_bound divset(MD1,k)=MD1.k by A396,
INTEGRA1:def 4;
                        
A408:                   upper_bound divset(MD1,k)=D1.(k+(n1+1)-1) by A258,A264
,A244,A356,A390,A393,A394,FINSEQ_6:122;
A409:                   k -1 <= j-(n1+1)+1 by A390,A394,XREAL_1:146,XXREAL_0:2;
A410:                   lower_bound divset(MD1,k)=MD1.(k-1) by A396A407java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
INTEGRA1:def 4;
:  dom MD1 byA396,A407,INTEGRA1:7;
                        then 1 <= k-1 by FINSEQ_3:25;
                        domIntegral2(LMeas,| g.)  :,REAL]by :def1 
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                        hence thesis by A398,A402,A401,A408,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                      end;
endjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
                    divset(MD1,k)= [.lower_bound divset(MD1,k),
                    upper_bound divset(MD1,k).] by INTEGRA1:4;
                    then
A412:               divset(D1,k+k2)=divset(MD1,k) by A404,INTEGRA1:4;
A413:               k+k2 in dom D1 by A400,FINSEQ_1:def 3;
A414:               mid(UVf(D1),n1+1,j).k =UVf(D1).(k+(n1+1)-1) by A258,A244
,A390,A391,A393,A394,FINSEQ_6:122
                      .=(upper_bound rng(f|divset(D1,k+k2)))* vol(divset(D1,
                    k+k2)) by A398,A413,INTEGRA1:def 6;
                    k in dom MD1 by A395,FINSEQ_1:def 3;
then divset(1,k+k2)  ,java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 65
                    hence thesis by A397,A414,A412,FUNCT_1:51;
                  end;
     n1+1 <len (1)by A265INTEGRA1:def ;
                  then len upper_volume(g,MD1)=len mid(UVf(D1),n1+1,j) by A258
,A261,A244,A389,A390,A391,FINSEQ_6:118;
                  then
A415:             Sum upper_volume(g,MD1)=Sum mid(UVf(D1),n1+1,j) by A392,
FINSEQ_1:14;
A416:             n1 < j-1 by A348,XREAL_1:20;
A417:             1 <= indx(D2,D1,n1)+1 by A263,NAT_1:    g be PartFuncof :[:EAL,REAL],REAL:,REAL;
A418:             len MD1 in dom MD1 by FINSEQ_5:6;
A419:             upper_bound divset(MD1,len MD1)=MD1.(    dom(Integral1(Prod_Measure(L-Meas,L-Meas),|.R_EAL g.|)) = REAL
                  proof
                    per cases;
                    suppose
                      len MD1 = 1;
                      hence thesis by A418,INTEGRA1:def
                    end;
                    suppose
                      len MD1 <> 1;
                      hence thesis by A418,INTEGRA1:def 4;
                    end;
                  end;
                  vol(B=upper_bound B-1n1 A353,INTEGRA1:def 5;
volB=1.-,A354A363,419,
INTEGRA1:def 4;
                  then
A420:             vol(B)<>0 by A232,A241,A245,SEQM_3:def 1;
                  rng        by MESFUN12::def 7;
                  then
A421:             lower_bound rng f <= lower_bound rng g by RELAT_1:70,SEQ_4:47
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
                  rng f is bounded_above by A1,INTEGRA1:13;
                  thenupper_bound rng f >= java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 75
,SEQ_4:48;
                  upper_boundrng f-ower_boundrngf> upper_bound rng
                  g - lower_bound rng g by A421,XREAL_1:13;
                  then
A422:             (upper_bound rng f-lower_bound rng f)*delta(MD1)>= (
upper_bound rng g-lower_bound rng g)*delta(MD1 ) by A379,XREAL_1:64;
                  D1.n1 < D1.(n1+1) by A241,A266,A351,SEQM_3:def 1;
                  then indx(D2,D1,n1) < indx(D2,D1,n1+1) by A262,A260,A270,A267
,SEQ_4:137;
                  then
A423:             indx(D2,D1,n1)+   setRF  Integral2L-R_EAL)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

A424:             indxA:dom RF=[]1;
A425:             indx(D2,D1,n1) < indx(D2,D1,    set F0 =FIJ;
A426:             indx(D2,D1,n1+1)=indx(D2,D1,n1)+1
                  proof
                    assume indx(D2,D1,n1+1)<> indx(D2,D1,n1)+1;
                    then
A427:               indx(D2,D1,n1+1)>indx(D2,D1,n1)+1 by A423java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A428:               indx(D2,D1,n1)+1 in dom D2 by A417,A424,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                    then
A429:               D2.(indx(D2,D1,n1 D2 byFUNCT_1def 3;
                    now
                      per cases by A11,A429,XBOOLE_0:def 3;
                      suppose
                        D2.(indx(D2,D1,n1)+1) in rng D1;
                        then consider n2 being Element of NAT such that
A430:                   n2 in dom D1 and
A431:                   D2.(indx(D2,D1,n1)+1) = D1.n2 by PARTFUN1:3;
                        D2.indx(D2,D1,n1) < D2.    RG1=Integral2L-eas, RG| java.lang.StringIndexOutOfBoundsException: Range [64, 61) out of bounds for length 74
,A428,SEQM_3:def 1;
                        then n1 < n2 by A241,A260,A430,A431,SEQ_4:137;
                        
                   =java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 47
                        D1.n2 < D1.(n1+1) by A270,A267,A427,A428,A431,
SEQM_3:def 1;
                        hence contradiction by A266,A430,A432,SEQ_4:137;
                      end;
                      suppose
A433:                   D2.(indx(D2,D1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A434:                   D.i <= upper_bound divset(D1,n1) by A242,INTEGRA2:1;
A435:                   upper_bound divset(consider H0 being Element of sigma measurable_rectaL-FieldL-
                        proof
                          per cases;
                          suppose
                            n1=1;
                            hence thesis by A241,INTEGRA1:def 4;
                          end;
                          suppose
                            n1<>1;
                            hence thesis by java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 20
                          end;
                        end;
                        consider n2 being Element of NAT such that
A436:                   n2 in dom D and
A437:                   D2.(indx(D2,D1,n1)+1) = D.n2 by A433,PARTFUN1:3;
                        D1.n1 < D.java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 19
                        then D.i < D.n2 by A434,A435,XXREAL_0:2;
                         i< n2 byA236,436,137;
                        then
A438:                   i+1 <= n2 by NAT_1:13;
                        n1+1 +1 <= j by A348,NAT_1:13;
                        then
A439:                   n1+1 <= j-1 by XREAL_1:19;
                        j -1 in dom D1 by A232,A245,A277,INTEGRA1:7;
                        then
A440:                   D1.(n1+1) <= D1.(j-1) by A266,A439,SEQ_4:137;
A441:                   lower_bound divset(D1,j) <= D.(i+1) by A233,java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 32
                        lower_bound divset(D1,j) = D1.(j-1) by A232,A245,A277,
INTEGRA1:def 4;
                        then
A442:                   D1.(n1+1) <= D.(i+1) by A440,A441,XXREAL_0:2;reconsider x=z as Element of[REAL,REAL:]
                        D.n2 < D1.(n1+1) by A270,A267,A427,A428,A437,
SEQM_3:def 1;
                        then D.n2 < D.(i+1) by A442,XXREAL_0:2;
                        hence contradiction by A231,A436,A438,SEQ_4:137;
                      end;
                    end;
                    hence contradiction;
                  end;
A443:             len MD2=indx(D2,D1,j)-'indx(D2,D1,n1+1)+1 by A275,A271,A274
,A238,A239,A357,FINSEQ_6:118;
                  then
             lenMD2 =indx(D2,j)indx(2,,n11+ ,
XREAL_1:233;
                  then
A445:             len upper_volume(g,MD2)=indx(D2,D1,j)-(indx(D2,D1,n1)+
                  )+byA426,INTEGRA1:def 6java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
                 for x1 being object holds
x1inrng MD1 /{D.i+)}impliesx1 in rng MD2
                  proof let x1 be object;
                    assume
A446:               x1 in rng MD1 \/ {D.(i+1)};
                    then reconsider x1                     then reconsider x1 asL-,-eas,)
                    now
                      per cases by A446,XBOOLE_0:def 3;
                      suppose
A447:                   x1 in rng MD1;
                        rng MD1 <> {};
then1  MD1by :32;
                        then
A448:                   1 <= len MD1 by FINSEQ_3:25;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
FINSEQ_6:118;
                        then len MD1+(n1+1)-1=j-(n1+1)+1+(n1+1)-1 by A258,
XREAL_1:233
                          .=j;
                        then
A450:                   MD1.(len MD1)=D1.j by A258,A264,A244,java.lang.StringIndexOutOfBoundsException: Range [61, 65) out of bounds for length 57
FINSEQ_6:122;
                        rng MD1 c= rng D1 by A356,FINSEQ_6:119;
                        then
A451:                   x1 in rng D1 by A447;
                        rng D1 c= rng D2 by A10,INTEGRA1:def 18;
                        then consider k such that
A452:                   k in dom D2 and
A453:                   D2.k = x1 by A451,PARTFUN1:3;
                        x1 <= MD1.(len MD1) by A447,Th16;
                        then k<=indx(D2,D1,j) by A237,A234,A450,A452,A453,
SEQM_3:def 1;
                        then k-indx(D2,D1,n1+1)<=indx(D2,D1,j)-indx(D2,D1,n1+
                        1) by XREAL_1:9;
                        then
A454:                   k -indx(D2,A8Integral(Prod_MeasureL-L-)F0) < +infty by MESFUNC5:96;
                        n1+1)+
A455:                   MD1.1 <= x1 by A447,Th16;
                        MD1.1=D1.(n1+1) by A261,A264,A244,A265, reconsiderRG1 = Integral2(L-Meas,R_EAL |as PartFuncof REALR
FINSEQ_6:118;
                        then
A456:                   indx(D2,D1,n1+1)<=k by A270,A267,A455,A452,A453,
SEQM_3:def 1;
                        then consider n being Nat such that
 = indx(D2,D1,n1+1)+n by NAT_1:0,2java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
A458:                   n+indx(D2,D1,n1+1)-1=k by A457;
                        indx(D2,D1,n1+1)+1<=k+1 by A456,XREAL_1:6;     as Elementof sigmameasurable_rectanglesL-ield,-ield)by PROB_1:5
then
A459:                   =F
                        then n in dom MD2 by A444,A454,A457,FINSEQ_3:25;
                        then MD2.n in rng MD2 by FUNCT_1:def 3;
                        hence x1 in rng MD2 by A275,A271,A239,A357,A453,A459
,A454,A458,FINSEQ_6:122;
                      end;
                      suppose
                        x1 in {D.(i+1)};
                        then
A460:                   x1 = D.(i+1) by TARSKI:def 1;
reconsiderj1  j- as Element of NAT by A232,A245,A277
,INTEGRA1:7;
A461:                   rng D c= rng D2((-,| g.|.=  byA1A3Lm4;
                        D.(i+1) in rng D by A231,FUNCT_1:def 3;
                        then consider k such that
A462:                   k in dom D2 and
A463:                   x1 = D2.k by A460,A461,PARTFUN1:3;
                        .i+)= upper_bound divset(,j  byA233,INTEGRA2:1java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
                        then x1hence g is_integrable_on (Meas,-)
                        then
A464:                   D2.k <= D2.indx(D2,D1,j) by A10,A232,A463,
INTEGRA1:def 19;
n<by,20;
                        then
A465:                   n1+1 <= j1 by NAT_1:13;
                        j -1 inProjPMap1(gx)java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 53

A466:                   D1.(n1+1) < L-L-)Integral2-easjava.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 71
                        lower_bound divset(D1,j
                        then D1.(j-1) <= x1 by A232,A245,A277,A460,
INTEGRA1:def 4;
                        then D2.indx( holds
XXREAL_0:2;
                        hence x1 in rng MD2 by A270,  (for z beingElement REAL
,Th17;
                      end;
                    end;Integral(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 62
                    hence thesis;
                  end;
                  then
A467:             rng MD1 \/ {D.(i+1)} c= rng MD2;
                  rng MD2 <> {};
                  then 1 in dom MD2 by FINSEQ_3:32;
                  then
A468:             1 <= len MD2 by FINSEQ_3:25;
A469:             len MD2-1+indx(D2,D1,n1+1)=indx(D2,D1, j) by A444;
                  for x1 being object holds
                  x1 in rng MD2     Integral1(rod_Measure(L-easL- g java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 75
                  proof let x1 be object;
                    assume
A470:               x1 in rng MD2;
                    then reconsider x1 as Real;
A471:               MD2.1 <= x1 by A470,Th16;
                (MD2=indx(D2D,) A275A239,A357Ajava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
,A443,A469,FINSEQ_6:122;
                c rng D2 by A357,FINSEQ_6:119;
A474:               MD2.1=D2.indx(D2,D1,n1+1) by A271,A274,A238,A239,A357,
FINSEQ_6:118;
A475:               x1 <= MD2.(len MD2) by A470,Th16;
                   
A476:x1 = j A234A275,A239A357java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
FINSEQ_6:122;
                    now
                      per cases by A11,A470,A473,XBOOLE_0:def 3;
                      suppose
                        x1 in rng D1;
                        then consider k such that
A477:                   k in dom D1 and
A478:                   D1.k = x1 by PARTFUN1:3;
A479:                   n1 +1 <= k by A266,A267,A471,A474,A477,A478,
SEQM_3:def 1;
                        then
A480:                   1 <= k-n1 by XREAL_1:19;
                        n1 <= n1+1 by NAT_1:11;
                        then consider 
A481:                   k=n1+n by A479,NAT_1:10,XXREAL_0:2;
A482:                   k <= j by A232,A234,A475,A472,A477,A478,SEQM_3:def 1;
                        then
A483:                   k-n1 <= j- n1 by XREAL_1:9;
A484:                   1 <= k-n1 by A479,XREAL_1:19;
A485:                   j-(n1+1)+1=j-n1;
                        k-n1 <= len MD1 by A358,A350,482XREAL_1:9;
                        then n in dom MD1 by A484,A481,FINSEQ_3:25;
                                               then
A486:      ARYTM_3,XXREAL_0,,BORSUK_5,VALUED_1, ARYTM_1,NAT_1,CARD_3, CARD_1,
                        MD1. =D1(k-11(n1+1) by A258A264,A244,
,A480,A483,A485,A481,FINSEQ_6:122
                          . .k;
java.lang.StringIndexOutOfBoundsException: Range [57, 24) out of bounds for length 72
XBOOLE_0def3;
                      endjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
                      REALjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
                        java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
                        then consider ;
A487:                   percases;
                   . = byPARTFUN1;
noti1 < n
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                         
A490:                     upper_bound divset(D1,j)=D1.j by A232,INTEGRA1:def 4;
                          reconsider y1=D.(i+1)as Real;
A491:                     D.n in rng D by A487,FUNCT_1:def 3;
                          assume i+1 < n;
                          then
A492:                     D.(i+1) < D.n by A231,A487,SEQM_3:def 1;
                          lower_bound divset(D1,j) <= D.(i+1) by A233,
INTEGRA2:1;
                          then lower_bound    end;
XXREAL_0:2;
                          then D.n in divset(D1,j) by A476,A488,A490,INTEGRA2:1
;
                          then
493:                     x1inD/ D,j)by A488,java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67
XBOOLE_0:def 4;
                          D.(i+1) in rng D by A231,FUNCT_1:def 3;
                          then y1 in rng D /\ divset(D1,j) by A233,
XBOOLE_0:def 4;
                          hence contradiction by A8,A232,A488,A492,A493,Th5;

A494:                   upper_bound divset(D1,n1)=D1.n1
                        proof
                          per cases;
                          suppose
                            n1=1;
                            hence thesis by A241,INTEGRA1:def 4;
                          end;
                          suppose
                            n1<>1;
                            hence thesis by
                          endjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
                        end
                        D.i <proof
                        then D.thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
                        then .i<D.byA267A471,A474,A488,XXREAL_0:2;
                        then i < endjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                        i1 =java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50
                        then
                        then x1 in{(+} byA488      ;
                        java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
                      end;
                    ;
                    hence thesisthen consider NATC1  A ;
                  end;
                  then rng MD2     ;

:rng =rngM \/{.(+)}by,XBOOLE_0def
                 ()in rng upper_volumechiBB),D1 by
XXREAL_2:def 8;
                   considerksuchthat
:kindomupper_volumec(,)MD1 
))  (D1)byPARTFUN13
A498:             k in Seg len upper_volume(chi(B,B),MD1) by A496,
FINSEQ_1:def 3;
                  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
A499               Seg len MD1 by INTEGRA1:def 6;
                  then
A500             k indom MD1 :def 3;
        < len MD1 by A499,INSEQ_1:1;
then+ =jbyA358AXREAL_119;

A502:             k+n1 <= len D1 by A264,XXREAL_0hencethesis;
A503:             1 <= k by A498,FINSEQ_1:1;
A504:             n1+1>1 by A277,NAT_1:13;
                  then n1>1-1 by XREAL_1:19;
                  
A505:             k < k+n1 by XREAL_1:29;
                  then 1 < k+n1 by A503,XXREAL_0:2;
                  then
A506:             k+n1 in dom D1 by A502,FINSEQ_3:25;
                  lower_bound divset(MD1,k)=lower_bound divset(D1,k+n1)
                  & upper_bound divset(MD1,k)=upper_bound divset(D1,k+n1)
                  proof
                    per cases;
                    suppose
A507:                 =1;
                      then upper_bound divset(MD1,k)=MD1.k by A500,
INTEGRA1:def 4;
                      then
A508:                 upper_bound divset(MD1,k)= D1.(k+(n1 A8:forB2 is Event of Borel_Sets
,A244,A356,A358,A503,A501,FINSEQ_6:122;
                      lower_bound java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 6
,INTEGRA1:def 4;
G1k=n  x  (artial_Union)k  F2java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
INTEGRA1hence ,UMBERS17java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
endjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
                    java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
                 <;
                      then upper_bound divset(MD1,k)=java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 12
INTEGRA1:def 4;
                      then
A510:                 upper_bound divset(MD1,k)=D1.(k+(n1+1)-1) by A258,A264
,A244,A356,A358,A503,A501,FINSEQ_6:122;
A511:                 lower_bound divset(MD1,k)=MD1.(k-1) by A500,A509,
INTEGRA1:ef ;
A512:                 k-1 in dom MD1 by A500,A509,INTEGRA1:7;
                      then
A513:                 k-1 <= len MD1 by FINSEQ_3:25;
               =1F25
                      then lower_bound divset(MD1,k)=D1.(k-1+(n1+1)-1) by A258
,       L1.  |Fz.x. by A16,FUNCT_1:49;then
                      hence thesis by A503,A505,A506,A510,INTEGRA1:def 4;
                    end;
                  end;
                  then divset(MD1,k)=[.lower_bound divset(D1,k+n1        x] in[IJ: A17:;then
                  upper_bound divset(D1,k+n1).] by INTEGRA1:4;
                  then
A514:             divsetA21:  Integral(-Meas,L1)  0 byA10M:57java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
                  k+n1 in Seg len D1 by A506,FINSEQ_1:def 3;
                  then k+n1 in Seg len upper_volume(chi(A,A),D1) by
INTEGRA1:def 6;
                  [xt]indom Fzby :def ;then
A515:             k+n1 in dom upper_volume(chi(A,A),D1) by FINSEQ_1:def 3;
                  k in dom MD1 by A499,FINSEQ_1:def 3;
                  then delta(MD1) = vol(divset(MD1,k)) by A497,INTEGRA1:20;
                  then delta(MD1)=upper_volume(chi(A,A),D1).( k+n1) by A506
,A514,INTEGRA1:20;
                  then delta(MD1) in rng upper_volume(chi(A,A),D1) by A515,
FUNCT_1:def 3;
                  then delta(MD1) <= max rng upper_volume(chi(A,A),D1) by
XXREAL_2:def 8;
                  then
A516hence0<L0by:;
A517             D(+1=divsetD1,  A233,INTEGRA2:1;
                  lower_bound        Gz :ef7 then
                  then
A518:             D.(i+ as  ofREAL,REAL by PARTFUN1:11;
                  j-1 in dom D1 by A232,A245,A277,INTEGRA1A:  ProjPMap1(.|x)is continuousbA7,A8,:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
                  A29   = JbyA10
                  then D.(i+1) > lower_bound B by A353,A388,XXREAL_0:2;
                  then Sum upper_volume(                  then Sum upper_volume(g MESFUN12:34;
drngg-lower_bound rng g)delta(D1 byA355,380,A495,A518,A420
,
                  
A519:             Sum java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 26
upper_bound rng f-lower_bound rng f)*delta(MD1) by A422,XXREAL_0:2;
 ndx(2,,)< len UVfD2byA239,:def 6java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
            (,D1n1+< (,j  A275,2
A522:             for k be        letr be java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 32
holds upper_volume(g,MD2).k=mid(UVf(D2),indx(D2,D1,n1)+1,indx(D2,D1,j)).k

 let beNat;
f2java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 37
A523:               1 <= k and
A524:               k <= len upper_volume(g,MD2);
A525:               k in
A526:               mid   ;
D2)A35:Fz1 H-measurable  java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 9
A527:               k
                      by FINSEQ_1:def 3;
                    then
A528:               upper_volume(g,MD2).k =(upper_bound rng(g|divset(MD2
divsetD2)byjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 63
                    1<=indx(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    pm.  (pm,k)x2holdsx1  x2
                    then
:1< ((2D1n1))-1 byXREAL_119
consider       x] :REAL];then
A530:               indx(D2,D1,n1)+1=thenk*k(x1+)"="(*x2+1" C1 
                    k <= indx(D2,D1,j)-((indx(D2,D1,n1)+1)-1) by A444,A426,A524
,java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 6
        thenk(indxD2,D1,)1-1)<= indx(D2,D1,j)by
XREAL_119;
                           being of st P[xyjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
XXREAL_0:2;
  then +k2inSeg len (2)by,,FINSEQ_1:;
                    then
A531:               k+A7 nbeingNatholds S2.n1 = .\ (,.n+;
                    then      letnb object;
                    then
A532:               by A2A,java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
upper_bound rng(f|divset(D2,k+k2)))* vol(divset(D2,k+k2)) byby A9,:MESFUN16:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
INTEGRA1:def 6;
A533:               lower_bound divset(MD2,k)=lower_bound divset(  be PartFuncof::java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 62
)&upper_bound divset(MD2,k)=upper_bound divset(D2,k+k2)
                    proof
                      k+k2>=1+1 by A263,A523,A530,XREAL_1:7;
                      
    ff bePartFunc  [[RNS_Real,RNS_Real:,:],NS_Real,
A535:                 k in A8     being  st Pk2]holds [k21]
A536:                 k      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
                      per cases;
                      suppose
A537:                   k=1;
                        then
A538:upper_bounddivset(2k+2=D2.1+k2  by A534,A536java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
INTEGRA1:def 4;
A539:                   lower_bound divset(MD2,k)= lower_bound B by A535,A537,
INTEGRA1:def 4;
                        upper_bound divset(roof
:def 4
       be;
A540:                   upper_bound divset(MD2,k)= D2.(1+indx(D2,D1,n1+1
)-1) by A275,A239,A357,A417,A426,A445,A524,A537,FINSEQ_6:122
                          .=D1        is Eventof Borel_SetsbyB1,2,ROB_1:21;
                        lower_bound divset(D2,k+k2)=D2.(1+k2-1) by A534,A536
,A537,INTEGRA1:def 4;
                        hence
                        thesis by A10,A241,A266,A353,A426,A530,A539,A540,A538,
INTEGRA1:def 19;
                      end;
                      suppose
A541:                   k<>1;
                        then upper_bound divset(MD2,k)=MD2.java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 0
INTEGRA1:def 4;
                        n
A542:                   upper_bound divset(MD2,k)= D2.(k+(indx(D2,D1,n1)
+1)-1) by A275,A239,A357,A417,A426,A445,A523,A524,FINSEQ_6:122;
A543:                   k -1 <= indx    end
,XXREAL_0:2;
:lower_bounddivsetMD2)MD2.k-)byA535A541,
INTEGRA1:def 4;
                   k- indomMD2  535,A541INTEGRA1:7;
          1 < - by FINSEQ_3:5java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
       thenlower_bound divset(D2,)D2(k-+(indx(2D1,n1
+- by A275A239,A357,A417,A426,A545,A543,A544,FINSEQ_6:122;
                        hence thesis by A530,A534,A536,A542,INTEGRA1:def 4;
                      end;
                    end;
(,)=.divsetMD2,
                    upper_bound
                    then
A546:               divset(MD2,k)=divset(D2,k+ k2) by A533,INTEGRA1:4;
                    k in dom MD2 by A527,FINSEQ_1:def 3;
                    then divsetend;
                    hence thesis by A22:   [t,y] in dom |.Fz.| by MESFUNC1 10;
                  end;
                  P[et,set,et means
thenlenmid(Vf(2,indx(2,1n1+1,indx(2,D1,j)) = indx
(D2,D1    proof
                  then len upper_volume(g,MD2) java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                  )1,indx(D2,,) by A275,A423,A445,XREAL_1:233XXREAL_0:2;
                  then
A547:             Sum upper_volume(g,MD2)=Sum mid(UVf(D2),indx(D2,D1,n1)
                  +1,indx(D2,D1,j)) by A522,FINSEQ_1:14;
                  upper_bound rng f - lower_bound rng f >= 0 by A1,,
XREAL_1:S20=Union GoCross_Partial_Unionpm,0 and
                  then (    for n being objectholds n  NAT implies P[n
pper_bound  f-ower_bound rngf*delta(1)by A516,REAL_1:4;
                  hence thesis by A519,A547,A415,XXREAL_0:2;
                end;
              
              then
A548:         (PUf(D1,n1)-PUf(D2,indx(D2,D1,n1)))+ (Sum mid(UVf(D1),n1+
1,)Summid(Vf(D2)indx(D2,D1,n1)+,indx(2,1,))=i*(pper_boundrng f-
lower_bound rng f           A5
              by A243,XREAL_1:7;
              n1 <  |Fz. |:,J  |G.|:7;then
                    Gz2= R_EAL ProjPMap2(..,y by A28,MESFUN16:;then
              then indx(D2,D1,n1) < indx(D2,D1,n1+1) by A262,A260,A270,A267,
SEQ_4:137;
              then
A549:         indx(D2,D1,n1)<indx(D2,D1,j) by A275,XXREAL_0:2;
              
              then indx(D2,D1,n1) in Seg len UVf(D2) by INTEGRA1:def 6;
              then indx(D2,D1,n1) in dom UVf(D2) by FINSEQ_1:def 3;
              definition
INTEGRA1def20
                .=Sum mid(UVf(D2),1,indx(D2,D1,n1)) by A263,FINSEQ_6:116;
              then PUf(D2,indx(D2,D1,n1))+Sum midjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
indx(D2, D1,j)) =Sum(mid(UVf(D2),1,indx(D2,D1,n1))^ mid(UVf(D2),indx(D2,D1,n1)+
              1,indx(D2,D1,j))) by RVSUM_1:75
                .=Sum mid(UVf(D2),1,indx(D2,D1,j)) by A263,A549,A240,INTEGRA2:4
                .=Sum(UVf(  let n be Nat;
              ,ndxD2,j) (D2indx(2,D1n1)+ midUVf
              (D2),indx(D2,ch that: q = s + j by NAT_1:10;
then (PUf(D1,n1)-PUf(D2,indx(D2,D1,n1)))+ (Sum mid(UVf(D1),n1+
1,j)-Sum mid(UVf(             
              D1,) by A272;
              hencethesis  35      inless_dom() by :def1;

            hence Th3java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
          end;
          forproof
          A227);
          then P[i];
          hence thesis by A14;
        end;
550   len D1indomD1 by INSEQ_5:;
        then D1.(len D1) = D2then considernNatsuchjava.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 36
        then upper_bound A = D2.indx(D2,D1,      suppose H1: x in GoCross_Partial_Union(m.;
        then
:   D2.lenD2)=D2indx,D1,len ) byINTEGRA1:ef;
            inless_dom (L0,  A13 ;
        then consider j            hence  (       proof
:  j in dom D1 and
   D.(len D)in (D1,) and
   thenx INTINT_1d 1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
        f)- lower_bound(rng f)        hence thesis by H1;
A555:   j = len D1
        proof
          MESFUNC1def 
          then
A556:     j <= len D1 by FINSEQ_1:1;
assumej<> D1
          then j < len D1 by A556,XXREAL_0:1suppose k2=0;
thenD1j < ( ) A hencethesisby14
         java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A557:    D1.j < upper_bound by INTEGRA1:def 2;
A558:     upper_bound java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 13
          proof
            perjava.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 13
            
j=java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
              hence thesis by A552,A557,         =  /less_dom L0r) \ {}byA12,:; then
            end;
            
              j<>1;
              hence thesis by A552,A557,INTEGRA1:def 4;
            end;
          end;
    D(D)=upper_bound divset(j byA553,:1;
hence contradiction by A558,INTEGRA1:def 2;
        end;
        indx(D2,D1,len D1) inthenconsider k   such that
        indx(D2,D1len D1=len D2by A12,551,EQ_4:
        then upper_sum(f,D1)-PUf(D2,len D2)<=  then  in{(+*01" byDef4java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
        java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 6
        hence thesis by INTEGRA1:42;
      end;
      hence thesis by A9,A10,A11;
    end;
    hence thesis;
  end;

::$N Darboux's Theorem
theorem
  f|A is bounded & delta(T) is 0-convergent non-zero & vol(A)<>0 implies
  lower_sum(f,T) is convergent & lim java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 10
proof
  assume that
A1: f|A is bounded and
A2:    assume x inreconsider F = G as PartFunc:RNS_Real:]Rjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
A3: volA)>;
A4: delta(T) is F is_uniformly_continu:OZ:x(java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 43
: D,1 ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D & 0<=
  lower_sum(f,D2)-lower_sum(f,D) & 0<=lower_sum(f,D2)-lower_sum(f,D1)
    by A1,A9: for y being: for y beingjava.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
A10: for D,D1 st delta(D1)<min rng java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 14
D1<=D2 & rng D2=rng D1 suppose k2=0;
  (ng f)-lower_bound(rng f)delta(1
  delta(   ,: 1;
A553: delta(T) is non-zero by A2;
A554: for e st e>0
  xnbeingNat 
   for m being Nat st n<=m holds 0 < (delta(T)).m & (delta(T)).m < e
  proof
    let e;
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
Nat such that
A555: for m being Nat  st n<=m 
      by A4,A552,SEQ_2:def 7;
    take n;
    let m be Nat;
    reconsider mm=m as Element of NAT by ORDINAL1:def 12;
    assume
      delta(T.mm) in rng upper_volume(chi(A,A)       per cases;
en i such that
A557: i in dom upper_volume(A19:  x, in dom|Fz. by        consider n being Nat such hat : k2=n+1 by NAT_1:6;
558delta(T.m)upper_volume(hi(A,A),T.mm).i        L1.x = ProjPMap2(|.Fz.|,y).x by A17,FUNCT_1(.|y. byA17,:;then
      consider D being Division ofA20 L1x =|. Fz.(x,y) .| by A19           x in GoCross_Partial_Union(yp,).$ implies x in RAT;
A559: D = T.mmjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
      ) byA557,INSEQ_1:ef
      then i in Seg len D by A559,INTEGRA1:def 6;
       in dom D by FINSEQ_1:def 3;
      then
A560: delta(T.mm)=vol(divset(T.mm,i)) by myp**(n              Element of REAL st in holds0 < L0.t
      forn being Nat holds J[n] from NAT_1:sch 2(J0,J1);
     then |.(delta(T)).m-0|< by A555;
      then
A561: ([t,yin dom Fz FUNCT_2:def ;then
,XREAL_1:;
      (delta(T)).m<>0 by A553,SEQ_1:5;
      hence thesis by A561,A556,A560,INTEGRA1:9,XREAL_1:6;
  end;
A562: for e be Real st e>0
  ex n being Nat st for m being Nat st n<=m holds |.(
  lower_sum(f,T)).m-          then x in GoCross_Seq_REx in GoCross_Seq_REAL(myp,(n+1)).0 by Def5;
  proof
    R_EALProjPMap2(Fz,)=ProjPMap2(|F|,) by MESFUN16:;then
    setGz2=|Fz,)I
    let e be Real;
    assume
A563: e>0;
    then
A564: e/2>0 by XREAL_1:139;
re Real;
A565:H- >=0by A1,m3,XREAL_1:48;
rng lower_sum_set(f) is bounded_above by A1,INTEGRA2:36;
    lower_integral(f) = upper_bound rng lower_sum_set(f) by INTEGRA1:def 15;
    then consider y be Real such that
A567: y in rng lower_sum_set(f) and
A568: lower_integral(f)-e/2<y by A564,A566,SEQ_4A:roof
   consider D beingent ofREAL;
 D in dom         assume x in GoC x in GoCross_Partial_Unionmyp,kh+)).k+); then
A569: y=(lower_sum_set(f)).D and
A570: D.1>lower_bound A by A3,A567,Lm7;
    deffunc F(Nat)=In(vol(divset(D,$1)),REAL);
     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 25
    consider v being FinSequence of x in (Union GoCross_Union(mym) \/ Union(myp))
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 10
    FINSEQ_2:sch 1;
       v1 being non-ecreasing FinSequence of REAL such that
A572: v,v1 are_fiberwise_equipotent by INTEGRA2:3;
    defpred P[Nat] means $1 in dom v1 & v1.$1>0;
A573: dom v = Seg len D by A571,then consider q3 being Nat such thatq3=2-;
A574 ex k be Nat st P[k]
    
      [xx,     x in GoCross_Union(mym)
           H  domxinUnionGoCross_Partial_Union(,m2)byG2,OB_12
      rng H = dom v1 and
      H is one-to-one and
A575:v=1H  A572,,LASSES1:77;
      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26
A576:    end;
java.lang.StringIndexOutOfBoundsException: Range [18, 4) out of bounds for length 37
A578: dom D = Seg len v by A571,FINSEQ_1:def 3;
k dom v1 by 571A573,A575,A576,FUNCT_1:11;
      then reconsider Hk = H.k as Nat;
      v. =F()byA571,578A573,;
      java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 27
      then P[Hk] by A571,A573,A575,A576,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 23
      hence thesis;
    end;
    consider k be Nat such that
A579:E be Element of sigma measurable_rectangles
A580:2p> by XREAL_11;
    then
A581: 2*p*(H-h+1) > 0 by A565,XREAL_1:129;
    in(k,/(**H-h+))>0
    proof
      per cases by XXREAL_0:15;
      suppose
        min(v1.k,e/(2*p*(H-h+1))) = v1.k;
        hence thesis by A579;

      suppose
        inv1.,/(2p*H-+1))) e/2p*Hh+1)
        hence thesis by A563,A581,XREAL_1:139;
      end;
    endhence thesis;
    then consider n  hence thesis by PROB_1:def 9;
A582: for m being Nat st n<=m
holds 0 < (delta(T)).m & (delta(T)).m < min(v1.k,
    e(*p*H-+1) byA554;
    take n;
A583: y=lower_sum(f,D) by A569,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A584java.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 22
      proof
:java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 71
        >0
        proof
          let n1 be Element of NAT;
          assume
A586:     n1 in dom D;
          then
A587:     1 <=  X()Y isReal-alued-Random-ariable of Sigma;
          per cases by A587,XXREAL_0:1;
          suppose
A588:       n1=1;
            hen
       pper_bound divset(,1)=.1by ,NTEGRA1def 4;
            lower_bound divset(D,n1)=lower_bound A by A586,A588,INTEGRA1:def 4;
             java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Range [40, 12) out of bounds for length 49
h 
          suppose
A590:       n1>for z be oholds  inless_dom(F,r iffz inless_dom(F0,r)\ NIJ
            then
A591:       upper_bound divset(D,n1)=D.n1 by A586,INTEGRA1:def 4;
            lower_bound divset(D,n1)=D.(n1-1) by A586,A590,INTEGRA1:def 4;
            then
A16:z in NIJ impliesz inless_domF,r / NIJby def 3
            n1 < n1+1 by XREAL_1:29;
            then
A593:       n1-1 < n1 by XREAL_1:19;
            n1-1 in dom D by A586,A590,INTEGRA1:7;
            then D.(n1-1)<D.n1 by A586,A593,SEQM_3:def 1;  for G sequence of set_of_random_variables_on(F,F2) holds
            hence thesis by A592,XREAL_1:50;
          end;
        ;
A594:   k <= len java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
        1 <= k by A579,FINSEQ_3:25;
        then 1 <= len v1 by A594,XXREAL_0:2;
        then
    1 in dom v1 by FINSEQ_3:25;
        then
A595:   v1.1 in rng v1 by FUNCT_1:def 3;
        rng v = rng v1 by A572,CLASSES1:75;
        then consider n1 being Element of NAT such that
A596: in dom v and
A597:   v1.1 = v.n1 by A595,PARTFUN1:3;
        for phi be Real_Sequence
        then
A598:   n1 in dom D by FINSEQ_1:def 3;
        v1.1 = F(n1)by A571,A596,A597
          .= vol(divset(D,n1));
               hence thesis by A585,A598;
      nd;
A599: v1.k = min rng upper_volume(chi(A,A),D)
     
A600:   k=1
        proof
          v1  len vby A572,:3
          then k in Seg len v by A579java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 9
          then
A601:     1 <= k by FINSEQ_1:1;
          k in Seg len v1 by A579,FINSEQ_1:def 3;
         then k = len by FINSEQ_11
          then 1 
          then
A602:     1 in dom v1 by FINSEQ_3:25;
          assume k <> 1;
          then k > 1 by A601((phi,FwG).1=

        end;
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 71
        ) by XXREAL_2:def java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 0
 considerm suchthat
java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 50
A604:st [[:I,],]= f &f  [[I,:]:  f= g
        by PARTFUN1:3;
        m in Seg len upper_volumechi(,A),) by A603,FINSEQ_1:ef 3;
        then
A605:   m in Seg len D by INTEGRA1:def 6;
        then m in dom D by FINSEQ_1:def 3;
        then
A606:        min rng upper_volume(chi(A,A),D)=vol(divset(D,m)) by A604,
INTEGRA1:20;
A607:   v.m = F(m) by A571,A573,A605
          .=min rng upper_volume(chi(A,A),D) by A606;
A608:   rng v = rng java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        m in dom v by A571,A605,FINSEQ_1:def 3;
        then min rng upper_volume(chi(A,A),D) in rng v by
        then consider m1 being Element of NAT such that
A609:   m1 in dom v1 and
A610:   min rng upper_volume(chi(A,A),D)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        v1.k in rngjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
        then consider k2 being Element of NAT such that
A611:   k2 in dom v and
A612:   v1.k = v.k2 by A608,PARTFUN1:3;
A613:   k2 in Seg len D by A571,A611,FINSEQ_1:def 3;
        then
A614:   k2 in dom D by FINSEQ_1:def 3;
        k2 in Seg len upper_volume(chi(A,A),D) by A613,INTEGRA1:def 6;
        then
A615:   k2 in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
        v1.k = F(k2) by A571,A611,A612
          .= vol(divset(D,k2));
        then v1.k = upper_volume(chi(A,A),D).k2 by A614,INTEGRA1:20;
        then v1.k in rng upper_volume(chi(A,A),D) by A615,FUNCT_1:def 3;
        then
A616:   v1.k >= min rng upper_volume(chi(A,A),D) by XXREAL_2:def 7;
        m1 >= 1 by A609,FINSEQ_3:25;
         rng chi(A,D)by A579A600,A609,A610,
INTEGRA2:2;
        hence thesis by A600,A616hence ;
      end;
      H-h <= H-h+1 by XREAL_1:29;
      then
A617: p*(H-h)<=p*(H-h+1) by XREAL_1:64;
            proof
      java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 30
      let m be Nat;
       reconsider mm=m as hence contradiction by A11,A13;
      reconsider D1 = T.mm as Division of A;
A618: .e/(2*p*(-h+))< e(*p*H-1) byXXREAL_0:java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
      assume
A619:n<m;
      then (delta(T)).m < min(v1.k,e/(2*p*(H-h+1))) by A582;
      then
A620: delta(D1)<min (v1.k,e/(2*p*(H-h+1))) by Def2;
      (delta(T)).m < min(v1.k,e/(2*p*(H-h+1))) by A582,A619;
      then (deltas in F,r byA5,19MESFUNC1:def ;
      then (delta(T)).m*(2*p*(H-h+1))<e by A580,A565,XREAL_1:79,129;
      then ((delta(T)).m*(p*(H-h+1)))*2<e;
      then
A621: p*(H-h+1)*(delta(T)).m < e/2 by XREAL_1:81;
      T.mm in divs A by INTEGRA1:def 3;
      then
A622:T.mm indom (f)by :def1;
      (lower_sum(f,T)).mm = lower_sum(f,T.mm) by INTEGRA2:def 3;
      then (lower_sum(f,T)).m = (lower_sum_set(f)).(T.m) by INTEGRA1:def 11;
      then (lower_sum(f,T)).m in rng lower_sum_set(f) by A622,FUNCT_1:def 3;
      then upper_bound rng lower_sum_set(f)>=(lower_sum(f,T)).m by A566,
SEQ_4:def 1;
      then lower_integral(f)>=(lower_sum(f,T)).m by INTEGRA1:def 15;
      then
A623: lower_integral(f)-(lower_sum(f,T)).m >= 0 by XREAL_1:48;
      0 < (delta(T)).m by A582,A619;
      then
A624: p*(H-h)*(delta(T)).m <= p*(H-h+1)*(delta(T)).m by A617,XREAL_1:64;
      set sD1=lower_sum(f,T.mm);
      consider D2 being Division of A such that
A625: D <= D2 and
      D1 <= D2 and
A626: rng D2 = rng D1 \/ rng D and
      0 <= lower_sum(f,D2)-= K /\ less_dom(F0,r) \/ /\ NK) byXBOOLE_1:23; then
      0 <= lower_sum(f,D2)-lower_sum(f,D1) by A5;
      set sD2=lower_sum(f,D2);
A627: (sD-sD1) - (sD2-sD1) = (sD-sD2);
      (1.,e/2p*H-+1))< v1.by :;
      then delta(D1)< \less_domF,r)  -byA8A22,java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 65
      then ex D3 being Division of A st D<=D3 & D1<=D3 & rng D3= rng D1
      \/ rng D & lower_sum(f,D3)-lower_sum(f,D1) <=(len D)*(upper_bound rng f -
      lower_bound rng f)*delta(D1) by A10,A599;
      then
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      lower_bound rng f)*delta(  f be PartFunc of [:[:RNS_Real,RNS_Real:],RNS_Real:],RNS_Real,
      lower_sum(f,D)-lower_sum(f,D2)<=0 by A1,A625,INTEGRA1:46,XREAL_1:47;
      then
A629: sD-sD1 <= sD2-sD1 by A627,XREAL_1:50;
      delta(D1)=(delta(T)).m by Def2;
      then lower_sum(f,D2)-lower_sum(f,T.mm)
     <= p*(H-h+1)*(delta(T)).m by A628
,A624,XXREAL_0:2;
      then sD-sD1 <= p*(H-h+1)* [:[:,J:,K:]= dom f & f is_continuous_on [:[:I,J:],K:] & f = g
      then sD-sD1 < e/2 by A621,XXREAL_0:2;
      then
A630: sD-sD1+e/2 < e/2+e/2 by XREAL_1:6;
      s-sD1+sD1 < sD+e/2 by A568,A583,XREAL_1:19;
      then s-sD1 < sD+e/2-sD1 by XREAL_1:20;
      then s-sD1 < e by A630,XXREAL_0:2;
      then lower_integral(f)-(lower_sum(f,T)).m < e by INTEGRA2:def 3;
      then |.lower_integral(f)-(lower_sum(f,T)).m.| < e by A623,ABSVALUE:def 1;
      then |.-(lower_integral(f)-(lower_sum(f,T)).m).| < e by COMPLEX1:52;
      hence thesis;
  end;
  hence lower_sum(f,T) is convergent by SEQ_2:def 6;
  hence thesis by A562,SEQ_2:def 7;
end;

theorem
  f|A is bounded & delta(T) is 0-convergent non-zero & vol(A)<>0 implies
  upper_sum(f,T) is convergent & lim upper_sum(f,T) = upper_integral(f)
  proof
    assume
A1: f|A is bounded;
    then
A2: for D,D1 ex D2 st D<=D2 & D1<=D2 & rng D2=rng D1 \/ rng D & 0<=
  upper_sum(f,D)-upper_sum(f,D2) & 0<=upper_sum(f,D1)-upper_sum(f,D2) by Th22;
A7: for D,D1 st delta(D1)<min rng upper_volume(chi(A,A),D) holds ex D2 st D
  <=D2 & D1<=D2 & rng D2=rng D1 \/ rng D & upper_sum(f,D1)-upper_sum(f,     consider  be  REALsuch 
  len D)*(upper_bound(rng f)-lower_bound(rng f))*delta(D1) by A1,Th23;
  assume
A559: delta(T) : r = F2.(x,y)A12MESFUN12:def 
  then
A560: delta(T) isrin java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 47
A561: lim delta(T) = 0 by A559,FDIFF_1:def 1;
  assume
A562: vol(A)<>0;
A563: delta(T) is non-zero by A559;
A564: for e st e>0
   ex n being Nat st
  for m being Nat st n<=m holds 0 < (delta(T)).m & (delta(T)).m
  < e
  proof
    let e;
    assume e>0;
    then consider n being Nat such that
A565: for mbeing Nat st n<=m
holds |.(delta(T)).m-0.|<e by A560,A561,SEQ_2:def 7;
    take n;
    beNat;
     reconsidermm =mas Elementof by :ef 
    assume n<=m;
   java.lang.StringIndexOutOfBoundsException: Range [11, 8) out of bounds for length 38

A566: (delta(T)).m+|.    hence (|Integral2(-MeasR_EAL )|x)is Functionof ,REAL
,XREAL_1:8;
    reconsider D = T.mm as Division of A;
A567: (delta(T)).m f I,J,of ,
      f  PartFuncof [[:RNS_Real,RNS_Real:],RNS_Real:],RNS_Real,
    then consider i such that
A568:i in upper_volume((,A,.mm)and
A569: delta(T.mm)=upper_volume(chi(A,A),T.mm).i by PARTFUN1:3;
    i in Seg len upper_volume(chi(A,A),T.mm) by A568,FINSEQ_1:def 3;
    then i in Seg len D by INTEGRA1:def 6;
    then i in dom D by FINSEQ_1:def 3;
    then
A570: delta(T.mm)=vol(divset(T.mm,i)) by A569,INTEGRA1:20;
    (delta(T)).m<>0 by A563,SEQ_1:5;
    thesis byA566,A567,570,INTEGRA1:9XREAL_16;
  end;
A571: for e be Real st e>as Function [REAL,EAL:,REAL byA1,A2A3Th32;
  ex n being Nat st for m being Nat st n<=m holds |.(
  upper_sum(f,T)).m-upper_integral(f).|<e
  proof
    let e be Real;
    assume
A572: e>0;
    then
A573: e/2>0 by XREAL_1:139;
    reconsider e as Real;
A574: rng upper_sum_set(f) is bounded_below by A1,INTEGRA2:35;
    upper_integral(f) = lower_bound rng upper_sum_set(f) by INTEGRA1:def 14;
    then consider y be Real such that
A575: y in rng upper_sum_set(f) and
A576: upper_integral(f)+e/2>y by A573,A574, 2java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    ex D being Division of A st D in dom upper_sum_set(f) & y=(
    upper_sum_set(f)).D & D.1 > lower_bound A
    proof
      consider D3 being Element of divs A such that
A577java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A578: y=(upper_sum_set(f)).D3 by A575,PARTFUN1:3;
      reconsider D3 as Division of A by INTEGRA1:def 3;
A579: len D3 in Seg len D3 by FINSEQ_1:3;
      1< java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 37
      then 1 in Seg len D3 by FINSEQ_1:1;
      then
A580: 1 in dom D3 by  p as Element:REAL,REAL:];
      per cases;
      suppose
A581:   D3.1 <> lower_bound A;
        D3.1 in A by A580,INTEGRA1:6;
        then lower_bound A <= D3hencer inREAL;
        then D3.1 > lower_bound A by A581,XXREAL_0:1;
        hence rng (|.Integral2(L-Meas,R_EAL g).|,y) c REAL;
      end;
      suppose
A582:   D3.1 = lower_bound A;
        ex D being Division of A st D in dom upper_sum_set(f) & y=(
        upper_sum_set(f)).D & D.1 > lower_bound A
        proof
A583:     upper_volume(f,D3).1= (upper_bound rng(f|divset(D3,1)))*vol(
          divset(D3,1)) by A580,INTEGRA1:def 6;
          vol(A) >= 0 by INTEGRA1:9;
          then
A584:     upper_bound A - lower_bound A > 0 by A562,INTEGRA1:def 5;
A585:     y=upper_sum(f,D3) by A578,INTEGRA1:def 10
            =um(upper_volume(fD3)) by INTEGRA1:def 8
            .=Sum((upper_volume(f,D3)|1)^(upper_volume(f,D3)/^1)) by RFINSEQ:8;
A586:     D3.(len D3) = upper_bound A by INTEGRA1:def 2;
          len D3 in dom D3 by A579,FINSEQ_1:def 3;
          then
A587:     len D3 > 1 by A580,A582,A586,A584,SEQ_4:137,XREAL_1:47;
          then reconsider D=D3/^1 as increasing FinSequence of REAL by
INTEGRA1:34;
A588:     len D = len D3 - 1 by A587,RFINSEQ:def 1;
           AA  lower_bound Aby XREAL_1:;
          then len D <> 0 by A582,A588,INTEGRA1:def 2;
          then reconsider D as non empty increasing FinSequence of REAL;
A589:     len D in dom D by FINSEQ_5:6;
          len D+1=len D3 by A588;
          then
A590:     D.(len D)=upper_bound A by A586,A587,A589,RFINSEQ:def 1;
A591:     len D in Seg len D by FINSEQ_1:3;
          1+1 <= len D3 by A587,NAT_1:13;
          then 2 in dom D3 by FINSEQ_3:25;
          then
A592:     D3.1 < D3.2 by A580,SEQM_3:def 1;
A593:     rng D3 c= A by INTEGRA1:def 2;
          rng D c= rng D3 by FINSEQ_5:33;
           Dc=Aby A593;
          then reconsider D as Division of A by A590,INTEGRA1:def 2;
A594:     1 in Seg 1 by FINSEQ_1:1;
A595:     len D3 >= 1+1 by A587,NAT_1:13;
          then
A596:     2 <= len upper_volume(f,D3) by INTEGRA1:def 6;
          1 <= len upper_volume(f,D3) by A587,INTEGRA1:def 6;
          then
A597:     len(mid(upper_volume(f,D3),2,len java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 44
          upper_volume(f,D3)-'2+1 by A596,FINSEQ_6:118
             java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 43
            .=len D3-2+1 by A595,XREAL_1:233
            .=len D3-1;
A598:     for i be Nat st 1<=i&i<=len mid(upper_volume(f,D3),2,len
upper_volume(f,D3)) holds mid(java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
          upper_volume(f,D).i
          proof
            let i be Nat;
            assume that
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
A600:       i<=len mid(upper_volume(f,D3),2,len upper_volume(f,D3));
A601:       1 <= i+1 by NAT_1:12;
            i+1 <= len D3 by A597,A600,XREAL_1:19;
            then
A602:       i+1 in Seg len D3 by A601,FINSEQ_1:1;
            then
A603:       i+1 in dom D3 by let I,J,K be non empty closed_intervalof REAL,
A604:       divset(D3,i+1)=divset(D,i)
            proof
A605:         i+1 in dom D3 by A602,FINSEQ_1:def 3;
A606:         1<>i+1 by A599,NAT_1:13;
              then
A607:         upper_bound divset(D3,i+1)=D3.(i+1) by A605,INTEGRA1:def 4;
java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 60
              then
A609:         D.i=D3.(i+1) by A587,RFINSEQ:def 1;
A610:         lower_bound divset(D3,i+1)=D3.(i+1 -1) by A606,A605,
INTEGRA1:REAL in L-Field by PROB_1:5; then
              per cases;
              suppose
A611:           i=1;
                then
A612:           upper_bound divset (D,i)=D.iby A608,INTEGRA1:ef4
A613:           lower_bound divset(D,i)=lower_bound A by A608,A611,
INTEGRA1:def 4;
                divset(D3,i+1)=[.lower_bound A, D.i.] by A582,A607,A610,A609
,A611,INTEGRA1:4;
                hence thesis by A613,A612,INTEGRA1:4;
              end;
              suppose
A614:           <1;
                then i-1 in dom D by A608,INTEGRA1:7;
                then
A615:           D.(i-1)=D3.(i-1+1) by A587,RFINSEQ:def 1
                  .=D3.i;
A616:           upper_bound divset(I(LMeas,Integral1(LMeas,L-Meas)R_EAL g|REAL\)  
                lower_bound divset(D,i)=D.(i-1) by A608,A614,INTEGRA1:def 4;
                then divset(D3,i+1)=[.lower_boundbe of[[Rjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 49
                divset(D,i).] by A607,A610,A609,A616,A615,INTEGRA1:4;
                hence thesis by INTEGRA1:    set =R_EAL g;
              
            end;
            i <= len upper_volume(f,D3) - 1 by A597,A600,INTEGRA1:def 6;
            then
A617:       i <= len upper_volume(f,D3)-2+1;
            mid(upper_volume(f,D3),2,len upper_volume( fset NK = REAL \ K;
            upper_volume(f,D3).(i+2-1) by A596,A599,A617,FINSEQ_6:122
              .=upper_volume(f,D3).(i+1);
            then
A618:       mid(upper_volume(f,D3),2,len upper_volume( f,D3)).i =(
upper_bound rng(f|divset(D3,i+1)))*vol(divset(D3,i+1)) by A603,INTEGRA1:def 6;
            i in ;then
            then i in dom D by FINSEQ_1:def 3;
            hence thesis by A618,A604,INTEGRA1:def 6;
          end;
A619:     1 <= len upper_volume(f,D3) by A587,INTEGRA1:def 6;
A620:     len (upper_volume(f,D3)|1)=1;
          1 in dom upper_volume(f,D3) by A619,FINSEQ_3:25;
          then (upper_volume(f,D3)|1).1 = upper_volume(f,D3).1 by A594,
RFINSEQ:6;
          then
A621:     upper_volume(f,D3)|1 = <*upper_volume(f,D3).1*> by A620,FINSEQ_1:40;
   2-1=-1by XREAL_1:233
            .= 1;
          1 <= len D by A591,FINSEQ_1:1;
          then 1 in dom D by FINSEQ_3:25;
          then
A623:     D.1=D3.(1+1) by A587,RFINSEQ:def 1
            .=D3.2;
          D in divs A by INTEGRA1:def 3;
          then
A624:     D in dom upper_sum_set(f) by FUNCT_2:def 1;
          len upper_volume(f,D3) >= 2  P2Gz be PartFunc of REAL,REAL st
          then
A625:mid(upper_volumef,3,2,en upper_volume(,D3 )=
          upper_volume(f,D3)/^1 by A622,FINSEQ_6:117;
          len(mid(upper_volume(f,D3),2,len upper_volume( f,D3))) =len
          upper_volume(f,D) by A588,A597,f be PartFunc of [:[:RNS_Real,RNS_Real:],RNS_Real
          then
A626:     upper_volume(f,D3)/^1 = upper_volume(f,D) by A625,A598,FINSEQ_1:14;
          vol (divset(D3,1))=upper_bound divset(java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 15
          divset(D3,1) by INTEGRA1:def 5
            .=upper_bound divset(D3,1) - lower_bound A by A580,INTEGRA1:def 4
            .=D3.1 - lower_bound A by A580,INTEGRA1:def 4
            .=0 by A582;asPartFuncof [:RNS_Real,NS_Real]RNS_Real by A2,3A4,Th32;
          then y=0+Sum(upper_volume(f,D)) by A585,A621,A583,A626,RVSUM_1:76
            .=upper_sum(f,D) by INTEGRA1:def 8;
          then y=(upper_sum_set(f)).D by INTEGRA1:def 10;
          hence thesis by A582,A624,A623,A592;
        end;
        hence thesis;
      end;
    end;
    then consider D being Division of A such that
 D in dom upper_sum_set(f) and
A627: y=(upper_sum_set(f)).D and
A628: D.1>lower_bound A;
    deffunc F(Nat)=In(vol(divset(D,$1)),REAL);
    set p=len D, H=upper_bound rng f, h=lower_bound rng f;
     REAL such that
A629: len v = len D & for j be Nat st j in dom v holds v.j=F(j) from
    FINSEQ_2:sch 1;
A630: 2*p >0 by XREAL_1:129;
    consider v1 being non-decreasing FinSequence of REAL such that
A631: v,v1 are_fiberwise_equipotent by INTEGRA2:3;
    defpred P[Nat] means $1 in dom v1 & v1.$1 > 0;
A632: dom v = Seg len D by A629,FINSEQ_1:def 3;
A633: ex k be Nat st P[k]
    proof
      consider H being Function such that
      dom H = dom v and
      rng H = dom v1 and
      H is one-to-one and
A634: v=v1*H by A631,CLASSES1:77;
      consider k such that
: kin domD and
A636: vol(divset(D,k)) > 0 by A562,Th2;
A637: dom D = Seg len D by FINSEQ_1:def 3;
      then H.k in dom v1 by A632,A634,A635,FUNCT_1:11;
      then reconsider Hk = H.k as Element of NAT;
      v.k = F(k) by A629,A632,A635,A637;
      then v.k > 0 by A636;
      then P[Hk] by A632,A634,A635,A637,FUNCT_1:11,12;
      hence thesis;
    nd;
    consider k be Nat such that
A638: P[k] & for n be Nat st P[n] holds k<=n from NAT_1:sch 5(A633);
A639: H-h >= 0 by A1,Lm3,XREAL_1:48;
    then
A640: 2*p*(H-h+1) > 0 by A630,XREAL_1:129;
    min(v1.k,e/(2*p*(H-h+1))) > 0
    java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
      per cases by XXREAL_0:15;
      suppose
        min(v1.k,e/(2*p*(H-h+1))) = v1.k;
        hence thesis by A638;
      end;
      suppose
        min(v1.k,e/(2*p*(H-h+1))) = e/(2*p*(H-h+1));
        hence thesis by A572,A640,XREAL_1:139;
      end;
    end;
n
A641: holds Integral2(L-Meas,Integral2(L-Meas,R_EAL g)) is U-measurable)
  holds 0 < (delta(T)).m & (delta(T)).m < min(v1.k,
    e/(2*p*(H-h+1))) by A564;
    take n;
A642:A642: java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 75
A643: v1.1 > 0
      proof
A644forn1beofstn1in domD java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 71
        >0
        proof
          let n1 be Element of NAT;

A645:     n1 in dom D;
          then
A646:     1 <= n1 by FINSEQ_3:25;
          per cases by A646,XXREAL_0:1;
          uppose
A647:       n1=1;
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A648:       upper_bound divset(D,n1)=D.n1 by A645,INTEGRA1:def 4;
            lower_bound divset(D,n1)=lower_bound A by A645,A647,INTEGRA1:def 4;
            then vol(divset(D            
            hence thesis by A628,A647,XREAL_1:50;
          end;
          
A649:       n1>1;
            then
A650:       upper_bound divset(D,n1)=D.n1 by A645,INTEGRA1:def 4;
            lower_bound divset(D,n1)=D.(n1-1) by A645,A649,INTEGRA1:def 4;
            then
A651:       vol(divset    RGG is_continuous_on :I,J:] NFCONT_2:;then
            n1 < n1+1 by XREAL_1:29;
            
A652:       n1-1 < n1 by XREAL_1:19;
            n1-1 in dom D by A645,A649,INTEGRA1:7;
            then D.(n1-1)<D.n1 by A645,A652,SEQM_3:def 1;
            hence thesis by A651,XREAL_1:50;
          end;
        
A653:   k <= len v1 by A638,FINSEQ_3:25;
        1 <= k by A638,FINSEQ_3:25;
        then 1 <= len v1 by A653,XXREAL_0:2;
        then 1 in dom v1 by FINSEQ_3:25;
        then
A654:   v1.1 in rng v1 by FUNCT_1:def 3;
        rng v = rng v1 by A631,CLASSES1:75;
        then consider n1 being Element of NAT such that
A655:   n1 in dom v and
   1= . byA654,ARTFUN1:;
        n1 in Seg len D by A629,A655,FINSEQ_1:       =Integral(-eas,ProjPMap1Integral2(-Meas,R_EAL g)| [:I,,)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
        then
A657:   n1 in dom D by FINSEQ_1:def 3;
        v1.1 = F(n1) by A629,A655,A656
          .= vol(divset(D,n1));
        thesisby ,java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
      end;
 v1.  rng (chi(A,)D)
      proof
A659:   k=1A5:P1Gz  ProjPMap1(ntegral2(-eas,EAL |[I,J:]x);
        
          len v1 = len v by A631,RFINSEQ:R;
          thenjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          then
A660:     1   henceP1Gz is continuous  A6,,NFCONT_27MESFUN1636;
          k in Seg len v1 by A638,FINSEQ_1:def 3;
 =v1 by1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
          then 1 <= len v1 by A660,XXREAL_0:2;
          then
A661:     1 in dom v1 by FINSEQ_3:25;
          assume k <> 1;
          then k > 1 by A660,XXREAL_0:1;
          hence contradiction by A638,A643,A661;
        end;
A662:   rng v = rng v1 by A631,CLASSES1:75;
        v1.k in rng upper_volume(chi(A,A),D)
        proof
          v1.k in rng v by A638,A662,FUNCT_1:def 3;
          then consider k2 being Element of NAT such that
A663:     k2 in dom v and
A664:     y&[:[IJ:,K:] =dom    java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 75
:k2inSeglenD A629A, ;
          then
     k2indomD java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
          k2 in Seg len upper_volume(chi(A,A),D) by A665,INTEGRA1:def 6;
          then
A667:     k2 in dom upper_volume(chi(A,A),D) by FINSEQ_1:def 3;
          v1.k = F(k2) by A629,A663,A664
             .= vol(divset(D,k2));
          java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
          hence thesis by A667,FUNCT_1:def 3;
        end;
        then
A668:   v1.k >= min rng upper_volume(chi(A,A),D) by XXREAL_2:def 7;
        min rng upper_volume(chi(A,A),D) in rng upper_volume(chi(A,A),D
        )bydef7;
        then consider m such that
A669:   m in dom upper_volume(chi(A,A),D) and
A670:   min rng upper_volume(chi(A,A),D)=upper_volume(chi(A,A),D).m
        by PARTFUN1:3;
        m in Seg len upper_volume(chi(A,A),D) by A669,FINSEQ_1:def 3;
        then
A671:   m in Seg len D by INTEGRA1:def 6;
        then m in dom D by FINSEQ_1:def 3;
        then
A672:      min rng upper_volume(chi(A      MESFUNC5: ;
INTEGRA1:20;
  .m  (m A632,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
          .=min rng upper_volume(chi(A,A),D) by A672;
        m in dom v by A629,A671,FINSEQ_1:def 3;
        then min rng upper_volume(chi(A,   (,I -LMeasR_EALg|[:J:).
        then consider m1 being Element of NAT such that
A674:   m1 in dom v1 and
A675:   min rng upper_volume(chi(A,A),D)=v1.m1 by A662,PARTFUN1:3;
        m1 >= 1 by A674,FINSEQ_3:25;
        then v1.1 <= min rng upper_volume(chi(A,A),D) by A638,A659,A674,A675,
INTEGRA2:2;
        hence thesis by A659,A668,XXREAL_0:1;
      end;
A676: min (v1.k,e/(2*p*(H-h+1))) <= v1.k by XXREAL_0:17;
      set s=upper_integral(f), sD=upper_sum(f,D);
      let m be Nat;
       reconsider mm=m as Element of NAT by ORDINAL1:def 12;
      reconsider D1 = T.mm as Division of A;
A677: delta(D1)=(delta(T)).m by Def2;
      consider D2 being Division of A such that
A678: D <= D2 and
      D1 <= D2 and
A679: rng D2 = rng D1 \/ rng D and
      0 <= upper_sum(f,D)-upper_sum(f,D2) and
      0 <= upper_sum(f,D1)-upper_sum(f,D2) by A2;
      set sD1=upper_sum(f,T.mm), sD2=upper_sum(f,D2);
      upper_sum(f,D2) <= upper_sum(f,D) by A1,A678,INTEGRA1:45;
      then
A680: sD1-sD <= sD1-sD2 by XREAL_1:10;
      sD+sD1-sD1-s < e/2 by A576,A642,XREAL_1:19;
      then sD1-s+sD-sD1 < e/2;
      then sD1-s+sD < sD1+e/2 by XREAL_1:19;
      then
A681: sD1-s < sD1+e/2-sD by XREAL_1:20;
      T.mm in divs A by INTEGRA1:def 3;
      then
A682: T.m in dom upper_sum_set(f) by FUNCT_2:def 1;
      (upper_sum(f,T)).m = upper_sum(f,T.mm) by INTEGRA2:def 2;
      then (upper_sum(f,T)).m = (upper_sum_set(f)).(T.m) by INTEGRA1:def 10;
      then (upper_sum(f,T)).m in rng upper_sum_set(f) by A682,FUNCT_1:def 3;
      then lower_bound rng upper_sum_set(f)<=(upper_sum(f,T)).m by A574,
SEQ_4:def 2;
      then upper_integral(f)<=(upper_sum(f,T)).m by INTEGRA1:def 14;
      then
A683: (upper_sum(f,T)).m-upper_integral(f) >= 0 by XREAL_1:48;
      H-h <= H-h+1 by XREAL_1:29;
      then
java.lang.StringIndexOutOfBoundsException: Range [12, 4) out of bounds for length 39
A685: min(v1.k,e/(2*p*(H-h+1))) <= e/(2*p*(H-h+1)) by XXREAL_0:17;
      assume
A686: n<=m;
      then (delta(T)).m < min(v1.k,e/(2*p*(H-h+1))) by A641;
      then (delta(T)).m < e/(2*p*(H-h+1)) by A685,XXREAL_0:2;
    (elta(T).**p*H-h+)< A630,639,REAL_1:79129java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      then ((deltaT)m*p*H-1)*<;
      then
A687: p*(H-h+1)*(delta(T)).m < e/2 by XREAL_1:81;
      (delta(T)).m < min(v1.k,e/(2*p*(H-h+1))) by A641,A686;
 delta(D1)<v1. byA677,A676,XXREAL_0:2;
      then ex D3 being Division of A st D<=D3 & D1<=D3 & rng D3= rng D1
      =GzyI)
      lower_bound rng f)*delta(D1) by A7,A658;
      then
A688: upper_sum(f,D1)-upper_sum(f,D2)<= (len D)*(upper_bound rng f-
      lower_bound rng f)*delta(D1) by A679,Th6;
      0 < (delta(T)).m by A641,A686A2:fis_continuous_on[[I,
      then p*(H-h)*(delta(T)A4 =Integral2L-eas,Integral2(-easREAL g)|:IJ:]|;
      then upper_sum(f,T.mm)-upper_sum(f,D2)
<= p*(H-h+1)*(delta(T)).m by A677
:2;
      then sD1-sD <= p*(H-h+1)*(delta(T)).m by A680,XXREAL_0:2;
      then sD1-sD < e/2 by A687,XXREAL_0:2;
      thensD1-D+/  e/+/ XREAL_1:;
      then sD1-s < e by A681,XXREAL_0:2;
      then (upper_sum(f,T)).m-upper_integral(f) < e by INTEGRA2:def 2;
      hence thesis by A683,ABSVALUE:def 1;
  end;
  hence upper_sum(f,T) is convergent by SEQ_2:def 6;
  hence thesis by A571,SEQ_2:def 7;
end;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.693 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,549