let A be non empty closed_interval Subset of REAL; :: thesis: for f being Function of A,REAL
for T being DivSequence of A st f | A is bounded & delta T is convergent_to_0 & vol A <> 0 holds
( lower_sum (f,T) is convergent & lim (lower_sum (f,T)) = lower_integral f )

let f be Function of A,REAL; :: thesis: for T being DivSequence of A st f | A is bounded & delta T is convergent_to_0 & vol A <> 0 holds
( lower_sum (f,T) is convergent & lim (lower_sum (f,T)) = lower_integral f )

let T be DivSequence of A; :: thesis: ( f | A is bounded & delta T is convergent_to_0 & vol A <> 0 implies ( lower_sum (f,T) is convergent & lim (lower_sum (f,T)) = lower_integral f ) )
assume that
A1: f | A is bounded and
A2: delta T is convergent_to_0 and
A3: vol A <> 0 ; :: thesis: ( lower_sum (f,T) is convergent & lim (lower_sum (f,T)) = lower_integral f )
A4: delta T is convergent by A2, FDIFF_1:def 1;
A5: for D, D1 being Division of A ex D2 being Division of A 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 be Division of A; :: thesis: ex D2 being Division of A 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)) )

consider D2 being Division of A 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 ex D2 being Division of A 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 A6, A7, A8, A9; :: thesis: verum
end;
A10: for D, D1 being Division of A st delta D1 < min (rng (upper_volume ((chi (A,A)),D))) holds
ex D2 being Division of A 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 be Division of A; :: thesis: ( delta D1 < min (rng (upper_volume ((chi (A,A)),D))) implies ex D2 being Division of A 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) ) )

assume A11: delta D1 < min (rng (upper_volume ((chi (A,A)),D))) ; :: thesis: ex D2 being Division of A 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) )

ex D2 being Division of A 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 being Division of A 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 H1( Division of A) -> FinSequence of REAL = lower_volume (f,$1);
deffunc H2( Division of A, Nat) -> Element of REAL = (PartSums (lower_volume (f,$1))) . $2;
A15: len D2 in dom D2 by FINSEQ_5:6;
A16: for i being Element of NAT st i in dom D holds
ex j being Element of NAT st
( j in dom D1 & D . i in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= (i * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) )
proof
defpred S1[ non empty Nat] means ( $1 in dom D implies ex j being Element of NAT st
( j in dom D1 & D . $1 in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= ($1 * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) ) );
let i be Element of NAT ; :: thesis: ( i in dom D implies ex j being Element of NAT st
( j in dom D1 & D . i in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= (i * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) ) )

assume A17: i in dom D ; :: thesis: ex j being Element of NAT st
( j in dom D1 & D . i in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= (i * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) )

then A18: i in Seg (len D) by FINSEQ_1:def 3;
A19: for i, j being Element of NAT st i in dom D & j in dom D1 & D . i in divset (D1,j) holds
j >= 2
proof
let i, j be Element of NAT ; :: thesis: ( i in dom D & j in dom D1 & D . i in divset (D1,j) implies j >= 2 )
assume A20: i in dom D ; :: thesis: ( not j in dom D1 or not D . i in divset (D1,j) or j >= 2 )
assume that
A21: j in dom D1 and
A22: D . i in divset (D1,j) ; :: thesis: j >= 2
assume j < 2 ; :: thesis: contradiction
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 ( i = 1 or i <> 1 ) ;
suppose A26: i = 1 ; :: thesis: delta D1 >= min (rng (upper_volume ((chi (A,A)),D)))
end;
suppose A34: i <> 1 ; :: thesis: delta D1 >= min (rng (upper_volume ((chi (A,A)),D)))
end;
end;
end;
hence contradiction by A11; :: thesis: verum
end;
A40: S1[1]
proof
len D in Seg (len D) by FINSEQ_1:3;
then 1 <= len D by FINSEQ_1:1;
then A41: 1 in dom D by FINSEQ_3:25;
then consider j being Element of NAT such that
A42: j in dom D1 and
A43: D . 1 in divset (D1,j) by Th3, INTEGRA1:6;
H2(D2, indx (D2,D1,j)) - H2(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: indx (D2,D1,j1) in dom D2 by A13, INTEGRA1:def 19;
then A49: indx (D2,D1,j1) in Seg (len D2) by FINSEQ_1:def 3;
then A50: 1 <= indx (D2,D1,j1) by FINSEQ_1:1;
then mid (D2,1,(indx (D2,D1,j1))) is increasing by A48, INTEGRA1:35;
then A51: D2 | (indx (D2,D1,j1)) is increasing by A50, FINSEQ_6:116;
j < j + 1 by NAT_1:13;
then j1 < j by XREAL_1:19;
then A52: indx (D2,D1,j1) < indx (D2,D1,j) by A13, A42, A45, Th8;
then A53: (indx (D2,D1,j1)) + 1 <= indx (D2,D1,j) by NAT_1:13;
A54: (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid ((lower_volume (f,D1)),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)
proof
A55: (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 ; :: thesis: contradiction
then A56: (indx (D2,D1,j1)) + (1 + 1) < indx (D2,D1,j) by XREAL_1:20;
A57: ID1 < ID2 by NAT_1:13;
then indx (D2,D1,j1) <= ID2 by NAT_1:13;
then A58: 1 <= ID2 by A50, XXREAL_0:2;
A59: indx (D2,D1,j) in dom D2 by A13, A42, INTEGRA1:def 19;
then A60: indx (D2,D1,j) <= len D2 by FINSEQ_3:25;
then ID2 <= len D2 by A56, XXREAL_0:2;
then ID2 in Seg (len D2) by A58, FINSEQ_1:1;
then A61: ID2 in dom D2 by FINSEQ_1:def 3;
then A62: D2 . ID2 < D2 . (indx (D2,D1,j)) by A56, A59, SEQM_3:def 1;
A63: 1 <= ID1 by A50, NAT_1:13;
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: ( D2 . ID1 in rng D1 or D2 . ID2 in rng D1 ) ; :: thesis: contradiction
per cases ( D2 . ID1 in rng D1 or D2 . ID2 in rng D1 ) by A70;
suppose D2 . ID1 in rng D1 ; :: thesis: contradiction
then consider n being Element of NAT 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 A73: j < n + 1 by XREAL_1:19;
D2 . ID1 < D2 . (indx (D2,D1,j)) by A66, A62, XXREAL_0:2;
then n < j by A42, A64, A71, A72, SEQ_4:137;
hence contradiction by A73, NAT_1:13; :: thesis: verum
end;
suppose D2 . ID2 in rng D1 ; :: thesis: contradiction
then consider n being Element of NAT such that
A74: n in dom D1 and
A75: D1 . n = D2 . ID2 by PARTFUN1:3;
D2 . (indx (D2,D1,j1)) < D2 . ID2 by A67, A66, XXREAL_0:2;
then j1 < n by A45, A68, A74, A75, SEQ_4:137;
then A76: j < n + 1 by XREAL_1:19;
n < j by A42, A62, A64, A74, A75, SEQ_4:137;
hence contradiction by A76, NAT_1:13; :: thesis: verum
end;
end;
end;
upper_bound (divset (D1,j)) = D1 . j by A42, A44, INTEGRA1:def 4;
then A77: 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 A78: lower_bound (divset (D1,j)) = D2 . (indx (D2,D1,j1)) by A13, A45, INTEGRA1:def 19;
D2 . ID2 in (rng D) \/ (rng D1) by A14, A61, FUNCT_1:def 3;
then A79: D2 . ID2 in rng D by A69, XBOOLE_0:def 3;
D2 . ID1 in (rng D) \/ (rng D1) by A14, A65, FUNCT_1:def 3;
then A80: D2 . ID1 in rng D by A69, XBOOLE_0:def 3;
D2 . (indx (D2,D1,j1)) <= D2 . ID2 by A67, A66, XXREAL_0:2;
then D2 . ID2 in divset (D1,j) by A62, A78, A77, INTEGRA2:1;
then A81: D2 . ID2 in (rng D) /\ (divset (D1,j)) by A79, XBOOLE_0:def 4;
D2 . ID1 <= D2 . (indx (D2,D1,j)) by A66, A62, XXREAL_0:2;
then D2 . ID1 in divset (D1,j) by A67, A78, A77, INTEGRA2:1;
then D2 . ID1 in (rng D) /\ (divset (D1,j)) by A80, XBOOLE_0:def 4;
hence contradiction by A11, A42, A57, A65, A61, A81, Th5, SEQ_4:138; :: thesis: verum
end;
A82: 1 <= (indx (D2,D1,j1)) + 1 by A50, NAT_1:13;
j <= len D1 by A42, FINSEQ_3:25;
then A83: j <= len (lower_volume (f,D1)) by INTEGRA1:def 7;
A84: 1 <= j by A42, FINSEQ_3:25;
then A85: (mid ((lower_volume (f,D1)),j,j)) . 1 = (lower_volume (f,D1)) . j by A83, FINSEQ_6:118;
(j -' j) + 1 = 1 by Lm1;
then len (mid ((lower_volume (f,D1)),j,j)) = 1 by A84, A83, FINSEQ_6:118;
then mid ((lower_volume (f,D1)),j,j) = <*((lower_volume (f,D1)) . j)*> by A85, FINSEQ_1:40;
then A86: Sum (mid ((lower_volume (f,D1)),j,j)) = (lower_volume (f,D1)) . j by FINSOP_1:11;
indx (D2,D1,j) in dom D2 by A13, A42, INTEGRA1:def 19;
then A87: indx (D2,D1,j) in Seg (len D2) by FINSEQ_1:def 3;
then A88: 1 <= indx (D2,D1,j) by FINSEQ_1:1;
indx (D2,D1,j) in Seg (len (lower_volume (f,D2))) by A87, INTEGRA1:def 7;
then A89: indx (D2,D1,j) <= len (lower_volume (f,D2)) by FINSEQ_1:1;
then A90: (indx (D2,D1,j1)) + 1 <= len (lower_volume (f,D2)) by A53, XXREAL_0:2;
then (indx (D2,D1,j1)) + 1 in Seg (len (lower_volume (f,D2))) by A82, 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 ( len (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = 1 or len (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = 2 ) by A94, A93, Lm2;
suppose A95: len (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = 1 ; :: thesis: (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid ((lower_volume (f,D1)),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)
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;
A100: indx (D2,D1,j) in dom D2 by A13, A42, INTEGRA1:def 19;
((indx (D2,D1,j)) -' ((indx (D2,D1,j1)) + 1)) + 1 = 1 by A53, A88, A89, A82, A90, A95, FINSEQ_6:118;
then A101: (indx (D2,D1,j)) - ((indx (D2,D1,j1)) + 1) = 0 by A53, XREAL_1:233;
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;
(mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) . 1 = (lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 1) by A88, A89, A82, A90, FINSEQ_6:118;
then mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))) = <*((lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 1))*> by A95, FINSEQ_1:40;
then Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = (lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 1) by FINSOP_1:11
.= (lower_bound (rng (f | (divset (D2,((indx (D2,D1,j1)) + 1)))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) by A92, INTEGRA1:def 7
.= Sum (mid ((lower_volume (f,D1)),j,j)) by A42, A86, A101, A103, INTEGRA1:def 7 ;
hence (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid ((lower_volume (f,D1)),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) by A98, A99; :: thesis: verum
end;
suppose A104: len (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = 2 ; :: thesis: (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid ((lower_volume (f,D1)),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)
A105: (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) . 1 = (lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 1) by A88, A89, A82, A90, FINSEQ_6:118;
A106: 2 + ((indx (D2,D1,j1)) + 1) >= 0 + 1 by XREAL_1:7;
(mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) . 2 = H1(D2) . ((2 + ((indx (D2,D1,j1)) + 1)) -' 1) by A53, A88, A89, A82, A90, A104, FINSEQ_6:118
.= H1(D2) . ((2 + ((indx (D2,D1,j1)) + 1)) - 1) by A106, XREAL_1:233
.= H1(D2) . ((indx (D2,D1,j1)) + (1 + 1)) ;
then mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))) = <*((lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 1)),((lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 2))*> by A104, A105, FINSEQ_1:44;
then A107: Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = ((lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 1)) + ((lower_volume (f,D2)) . ((indx (D2,D1,j1)) + 2)) by RVSUM_1:77;
A108: vol (divset (D2,((indx (D2,D1,j1)) + 1))) >= 0 by INTEGRA1:9;
upper_bound (divset (D1,j)) = D1 . j by A42, A44, INTEGRA1:def 4;
then A109: upper_bound (divset (D1,j)) = D2 . (indx (D2,D1,j)) by A13, A42, INTEGRA1:def 19;
A110: vol (divset (D2,((indx (D2,D1,j1)) + 2))) >= 0 by INTEGRA1:9;
((indx (D2,D1,j)) -' ((indx (D2,D1,j1)) + 1)) + 1 = 2 by A53, A88, A89, A82, A90, A104, FINSEQ_6:118;
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, INTEGRA1:def 4;
then lower_bound (divset (D1,j)) = D2 . (indx (D2,D1,j1)) by A13, A45, INTEGRA1:def 19;
then A113: 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 A109, A111, INTEGRA1:def 5;
(indx (D2,D1,j1)) + 1 in Seg (len (lower_volume (f,D2))) by A82, A90, FINSEQ_1:1;
then (indx (D2,D1,j1)) + 1 in Seg (len D2) by INTEGRA1:def 7;
then A114: (indx (D2,D1,j1)) + 1 in dom D2 by FINSEQ_1:def 3;
A115: (indx (D2,D1,j1)) + 1 <> 1 by A50, NAT_1:13;
then A116: upper_bound (divset (D2,((indx (D2,D1,j1)) + 1))) = D2 . ((indx (D2,D1,j1)) + 1) by A114, INTEGRA1:def 4;
((indx (D2,D1,j1)) + 1) - 1 = (indx (D2,D1,j1)) + 0 ;
then A117: lower_bound (divset (D2,((indx (D2,D1,j1)) + 1))) = D2 . (indx (D2,D1,j1)) by A114, A115, INTEGRA1:def 4;
A118: ((indx (D2,D1,j1)) + 1) + 1 > 1 by A82, NAT_1:13;
((indx (D2,D1,j1)) + 2) - 1 = (indx (D2,D1,j1)) + 1 ;
then A119: lower_bound (divset (D2,((indx (D2,D1,j1)) + 2))) = D2 . ((indx (D2,D1,j1)) + 1) by A112, A118, INTEGRA1:def 4;
upper_bound (divset (D2,((indx (D2,D1,j1)) + 2))) = D2 . ((indx (D2,D1,j1)) + 2) by A112, A118, 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 A119, A113, 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 A117, A116 ;
then A120: 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 A121: (lower_volume (f,D1)) . j = (lower_bound (rng (f | (divset (D1,j))))) * ((vol (divset (D2,((indx (D2,D1,j1)) + 1)))) + (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) by A42, INTEGRA1:def 7;
A122: (Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * ((vol (divset (D2,((indx (D2,D1,j1)) + 2)))) + (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,((indx (D2,D1,j1)) + 1)));
set C = vol (divset (D2,((indx (D2,D1,j1)) + 2)));
divset (D1,j) c= A by A42, INTEGRA1:8;
then A123: lower_bound (rng (f | (divset (D1,j)))) >= lower_bound (rng f) by A1, Lm4;
(indx (D2,D1,j1)) + 1 in dom D2 by A91, FINSEQ_1:def 3;
then divset (D2,((indx (D2,D1,j1)) + 1)) c= A by INTEGRA1:8;
then lower_bound (rng (f | (divset (D2,((indx (D2,D1,j1)) + 1))))) <= upper_bound (rng f) by A1, Lm4;
then A124: (lower_bound (rng (f | (divset (D2,((indx (D2,D1,j1)) + 1)))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) <= (upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) by A108, XREAL_1:64;
((indx (D2,D1,j)) -' ((indx (D2,D1,j1)) + 1)) + 1 = 2 by A53, A88, A89, A82, A90, A104, FINSEQ_6:118;
then A125: ((indx (D2,D1,j)) - ((indx (D2,D1,j1)) + 1)) + 1 = 2 by A53, XREAL_1:233;
A126: indx (D2,D1,j) in dom D2 by A13, A42, INTEGRA1:def 19;
then divset (D2,((indx (D2,D1,j1)) + 2)) c= A by A125, INTEGRA1:8;
then A127: lower_bound (rng (f | (divset (D2,((indx (D2,D1,j1)) + 2))))) <= upper_bound (rng f) by A1, Lm4;
reconsider A = lower_bound (rng (f | (divset (D1,j)))) as real number ;
A128: ((lower_volume (f,D1)) . j) - (A * (vol (divset (D2,((indx (D2,D1,j1)) + 1))))) = A * (vol (divset (D2,((indx (D2,D1,j1)) + 2)))) by A121;
(lower_bound (rng (f | (divset (D1,j))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 2)))) >= (lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2)))) by A110, A123, XREAL_1:64;
then Sum (mid (H1(D1),j,j)) >= ((lower_bound (rng (f | (divset (D1,j))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 1))))) + ((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) by A86, A128, XREAL_1:19;
then A129: (Sum (mid (H1(D1),j,j))) - ((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) >= (lower_bound (rng (f | (divset (D1,j))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) by XREAL_1:19;
(lower_bound (rng (f | (divset (D1,j))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) >= (lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) by A108, A123, XREAL_1:64;
then (Sum (mid (H1(D1),j,j))) - ((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) >= (lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) by A129, XXREAL_0:2;
then A130: Sum (mid (H1(D1),j,j)) >= ((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) + ((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1))))) by XREAL_1:19;
Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) = ((lower_bound (rng (f | (divset (D2,((indx (D2,D1,j1)) + 2)))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) + (H1(D2) . ((indx (D2,D1,j1)) + 1)) by A107, A126, A125, INTEGRA1:def 7
.= ((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 (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - ((lower_bound (rng (f | (divset (D2,((indx (D2,D1,j1)) + 1)))))) * (vol (divset (D2,((indx (D2,D1,j1)) + 1))))) <= (upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2)))) by A110, A127, XREAL_1:64;
then Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) <= ((upper_bound (rng f)) * (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 XREAL_1:20;
then (Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - ((upper_bound (rng f)) * (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 XREAL_1:20;
then (Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - ((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) <= (upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))) by A124, XXREAL_0:2;
then Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j)))) <= ((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) + ((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1))))) by XREAL_1:20;
then (Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),j,j))) <= (((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) + ((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))))) - (((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 2))))) + ((lower_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,j1)) + 1)))))) by A130, XREAL_1:13;
hence (Sum (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * ((vol (divset (D2,((indx (D2,D1,j1)) + 2)))) + (vol (divset (D2,((indx (D2,D1,j1)) + 1))))) ; :: thesis: verum
end;
(upper_bound (rng f)) - (lower_bound (rng f)) >= 0 by A1, Lm3, XREAL_1:48;
then ((upper_bound (rng f)) - (lower_bound (rng f))) * (vol (divset (D1,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) by A42, Lm5, XREAL_1:64;
hence (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid ((lower_volume (f,D1)),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) by A120, A122, XXREAL_0:2; :: thesis: verum
end;
end;
end;
hence (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) - (Sum (mid ((lower_volume (f,D1)),j,j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) ; :: thesis: verum
end;
j < j + 1 by NAT_1:13;
then A131: j1 < j by XREAL_1:19;
indx (D2,D1,j) in dom D2 by A13, A42, INTEGRA1:def 19;
then A132: indx (D2,D1,j) in Seg (len D2) by FINSEQ_1:def 3;
then A133: 1 <= indx (D2,D1,j) by FINSEQ_1:1;
A134: indx (D2,D1,j1) <= len D2 by A49, FINSEQ_1:1;
then A135: len (D2 | (indx (D2,D1,j1))) = indx (D2,D1,j1) by FINSEQ_1:59;
A136: j1 in Seg (len D1) by A47, FINSEQ_1:def 3;
then A137: j1 <= len D1 by FINSEQ_1:1;
for x1 being set st x1 in rng (D1 | j1) holds
x1 in rng (D2 | (indx (D2,D1,j1)))
proof
let x1 be set ; :: thesis: ( x1 in rng (D1 | j1) implies x1 in rng (D2 | (indx (D2,D1,j1))) )
assume x1 in rng (D1 | j1) ; :: thesis: x1 in rng (D2 | (indx (D2,D1,j1)))
then consider k being Element of NAT 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 A141: k in dom D1 by A45, RFINSEQ:6;
k <= j1 by A140, FINSEQ_1:1;
then D1 . k <= D1 . j1 by A47, A141, SEQ_4:137;
then D2 . (indx (D2,D1,k)) <= D1 . j1 by A13, A141, INTEGRA1:def 19;
then A142: D2 . (indx (D2,D1,k)) <= D2 . (indx (D2,D1,j1)) by A13, A47, INTEGRA1:def 19;
A143: (D1 | j1) . k = D1 . k by A45, A140, RFINSEQ:6;
D1 . k in rng D1 by A141, FUNCT_1:def 3;
then x1 in rng D2 by A14, A139, A143, XBOOLE_0:def 3;
then consider n being Element of NAT such that
A144: n in dom D2 and
A145: x1 = D2 . n by PARTFUN1:3;
D2 . (indx (D2,D1,k)) = D2 . n by A13, A139, A143, A141, A145, INTEGRA1:def 19;
then A146: n <= indx (D2,D1,j1) by A48, A144, A142, SEQM_3:def 1;
1 <= n by A144, FINSEQ_3:25;
then A147: n in Seg (indx (D2,D1,j1)) by A146, FINSEQ_1:1;
then n in Seg (len (D2 | (indx (D2,D1,j1)))) by A134, FINSEQ_1:59;
then A148: n in dom (D2 | (indx (D2,D1,j1))) by FINSEQ_1:def 3;
D2 . n = (D2 | (indx (D2,D1,j1))) . n by A48, A147, RFINSEQ:6;
hence x1 in rng (D2 | (indx (D2,D1,j1))) by A145, A148, FUNCT_1:def 3; :: thesis: verum
end;
then A149: rng (D1 | j1) c= rng (D2 | (indx (D2,D1,j1))) by TARSKI:def 3;
A150: 1 <= j1 by A136, FINSEQ_1:1;
lower_bound (divset (D1,j)) <= D . 1 by A43, INTEGRA2:1;
then A151: D1 . j1 <= D . 1 by A42, A44, INTEGRA1:def 4;
for x1 being set st x1 in rng (D2 | (indx (D2,D1,j1))) holds
x1 in rng (D1 | j1)
proof
let x1 be set ; :: thesis: ( x1 in rng (D2 | (indx (D2,D1,j1))) implies x1 in rng (D1 | j1) )
assume x1 in rng (D2 | (indx (D2,D1,j1))) ; :: thesis: x1 in rng (D1 | j1)
then consider k being Element of NAT such that
A152: k in dom (D2 | (indx (D2,D1,j1))) and
A153: x1 = (D2 | (indx (D2,D1,j1))) . k by PARTFUN1:3;
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 (D1 | j1) = j1 by A137, FINSEQ_1:59;
k <= indx (D2,D1,j1) by A154, FINSEQ_1:1;
then D2 . k <= D2 . (indx (D2,D1,j1)) by A48, A155, SEQ_4:137;
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 ; :: thesis: D2 . k in rng (D1 | j1)
then consider m being Element of NAT 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 A161: 1 <= m by FINSEQ_1:1;
A162: m <= j1 by A45, A157, A159, A160, SEQM_3:def 1;
then m in Seg j1 by A161, FINSEQ_1:1;
then A163: D2 . k = (D1 | j1) . m by A45, A160, RFINSEQ:6;
m in dom (D1 | j1) by A156, A161, A162, FINSEQ_3:25;
hence D2 . k in rng (D1 | j1) by A163, FUNCT_1:def 3; :: thesis: verum
end;
A164: ( D2 . k in rng D implies D2 . k = D1 . j1 )
proof
assume D2 . k in rng D ; :: thesis: D2 . k = D1 . j1
then consider n being Element of NAT such that
A165: n in dom D and
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 D2 . k = D1 . j1 by A157, XXREAL_0:1; :: thesis: verum
end;
A167: ( D2 . k in rng D implies D2 . k in rng (D1 | j1) )
proof
j1 in Seg (len (D1 | j1)) by A150, 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: D2 . k in rng D ; :: thesis: D2 . k in rng (D1 | j1)
j1 in Seg j1 by A150, FINSEQ_1:1;
hence D2 . k in rng (D1 | j1) by A45, A164, A169, A168, RFINSEQ:6; :: thesis: verum
end;
D2 . k in rng D2 by A155, FUNCT_1:def 3;
hence x1 in rng (D1 | j1) by A14, A48, A153, A154, A167, A158, RFINSEQ:6, XBOOLE_0:def 3; :: thesis: verum
end;
then rng (D2 | (indx (D2,D1,j1))) c= rng (D1 | j1) by TARSKI:def 3;
then A170: rng (D2 | (indx (D2,D1,j1))) = rng (D1 | j1) by A149, XBOOLE_0:def 10;
mid (D1,1,j1) is increasing by A42, A44, A150, INTEGRA1:7, INTEGRA1:35;
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 being Element of NAT st 1 <= k & k <= j1 holds
k = indx (D2,D1,k)
proof
let k be Element of NAT ; :: thesis: ( 1 <= k & k <= j1 implies k = indx (D2,D1,k) )
assume that
A174: 1 <= k and
A175: k <= j1 ; :: thesis: k = indx (D2,D1,k)
assume A176: k <> indx (D2,D1,k) ; :: thesis: contradiction
now
per cases ( k > indx (D2,D1,k) or k < indx (D2,D1,k) ) by A176, XXREAL_0:1;
suppose A177: k > indx (D2,D1,k) ; :: thesis: contradiction
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 (D2,D1,j1) by A13, A45, A175, A178, Th7;
then indx (D2,D1,k) in Seg (indx (D2,D1,j1)) by A179, FINSEQ_1:1;
then A182: (D2 | (indx (D2,D1,j1))) . (indx (D2,D1,k)) = D2 . (indx (D2,D1,k)) by A48, RFINSEQ:6;
indx (D2,D1,k) <= len D1 by A137, A180, XXREAL_0:2;
then indx (D2,D1,k) in dom D1 by A179, FINSEQ_3:25;
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;
hence contradiction by A45, A172, A182, A183, A181, RFINSEQ:6; :: thesis: verum
end;
end;
end;
hence contradiction ; :: thesis: verum
end;
A191: for k being Nat st 1 <= k & k <= len ((lower_volume (f,D1)) | j1) 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,D2))) by INTEGRA1:def 7;
then A192: indx (D2,D1,j1) in dom (lower_volume (f,D2)) by FINSEQ_1:def 3;
let k be Nat; :: thesis: ( 1 <= k & k <= len ((lower_volume (f,D1)) | j1) implies ((lower_volume (f,D1)) | j1) . k = ((lower_volume (f,D2)) | (indx (D2,D1,j1))) . k )
assume that
A193: 1 <= k and
A194: k <= len ((lower_volume (f,D1)) | j1) ; :: thesis: ((lower_volume (f,D1)) | j1) . k = ((lower_volume (f,D2)) | (indx (D2,D1,j1))) . k
reconsider k = 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 A197: k in Seg (len D1) by A193, FINSEQ_1:1;
then A198: k in dom D1 by FINSEQ_1:def 3;
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,D1,k) in Seg (indx (D2,D1,j1)) by A150, A173;
then indx (D2,D1,k) <= indx (D2,D1,j1) by FINSEQ_1:1;
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 ( k = 1 or k <> 1 ) ;
suppose A205: k = 1 ; :: thesis: ( 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)))) )
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 ( 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)))) ) by A199, A203, A207, A206, INTEGRA1:def 4; :: thesis: verum
end;
suppose A208: k <> 1 ; :: thesis: ( 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)))) )
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 ( 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)))) ) by A13, A198, A215, A210, A213, A214, A211, INTEGRA1:def 19; :: thesis: verum
end;
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 A216: divset (D1,k) = divset (D2,(indx (D2,D1,k))) by A204, INTEGRA1:4;
A217: k in dom D1 by A197, FINSEQ_1:def 3;
j1 in Seg (len (lower_volume (f,D1))) by A45, A195, FINSEQ_1:def 3;
then j1 in dom (lower_volume (f,D1)) by FINSEQ_1:def 3;
then A218: ((lower_volume (f,D1)) | j1) . k = (lower_volume (f,D1)) . k by A200, RFINSEQ:6
.= (lower_bound (rng (f | (divset (D2,(indx (D2,D1,k))))))) * (vol (divset (D2,(indx (D2,D1,k))))) by A217, A216, INTEGRA1:def 7 ;
1 <= indx (D2,D1,k) by A173, A193, A196;
then indx (D2,D1,k) in Seg (len D2) by A202, FINSEQ_1:1;
then A219: indx (D2,D1,k) in dom D2 by FINSEQ_1:def 3;
((lower_volume (f,D2)) | (indx (D2,D1,j1))) . k = ((lower_volume (f,D2)) | (indx (D2,D1,j1))) . (indx (D2,D1,k)) by A173, A193, A196
.= (lower_volume (f,D2)) . (indx (D2,D1,k)) by A201, A192, RFINSEQ:6
.= (lower_bound (rng (f | (divset (D2,(indx (D2,D1,k))))))) * (vol (divset (D2,(indx (D2,D1,k))))) by A219, INTEGRA1:def 7 ;
hence ((lower_volume (f,D1)) | j1) . k = ((lower_volume (f,D2)) | (indx (D2,D1,j1))) . k by A218; :: thesis: verum
end;
indx (D2,D1,j1) in dom D2 by A13, A47, INTEGRA1:def 19;
then indx (D2,D1,j1) <= len D2 by FINSEQ_3:25;
then A220: indx (D2,D1,j1) <= len (lower_volume (f,D2)) by INTEGRA1:def 7;
j1 <= len D1 by A47, FINSEQ_3:25;
then A221: j1 <= len (lower_volume (f,D1)) by INTEGRA1:def 7;
len (D2 | (indx (D2,D1,j1))) = len (D1 | j1) by A51, A171, A170, Th6;
then indx (D2,D1,j1) = j1 by A137, A135, FINSEQ_1:59;
then len ((lower_volume (f,D1)) | j1) = indx (D2,D1,j1) by A221, FINSEQ_1:59;
then len ((lower_volume (f,D1)) | j1) = len ((lower_volume (f,D2)) | (indx (D2,D1,j1))) by A220, FINSEQ_1:59;
then A222: (lower_volume (f,D2)) | (indx (D2,D1,j1)) = (lower_volume (f,D1)) | j1 by A191, FINSEQ_1:14;
A223: j in Seg (len D1) by A42, FINSEQ_1:def 3;
then A224: 1 <= j by FINSEQ_1:1;
indx (D2,D1,j) in Seg (len H1(D2)) by A132, INTEGRA1:def 7;
then A225: indx (D2,D1,j) in dom H1(D2) by FINSEQ_1:def 3;
indx (D2,D1,j) <= len D2 by A132, FINSEQ_1:1;
then A226: indx (D2,D1,j) <= len H1(D2) by INTEGRA1:def 7;
j in Seg (len H1(D1)) by A223, INTEGRA1:def 7;
then A227: j in dom H1(D1) by FINSEQ_1:def 3;
j <= len D1 by A223, FINSEQ_1:1;
then A228: j <= len H1(D1) by INTEGRA1:def 7;
j1 in Seg (len D1) by A45, FINSEQ_1:def 3;
then j1 in Seg (len H1(D1)) by INTEGRA1:def 7;
then j1 in dom H1(D1) by FINSEQ_1:def 3;
then H2(D1,j1) = Sum (H1(D1) | j1) by INTEGRA1:def 20;
then H2(D1,j1) + (Sum (mid (H1(D1),j,j))) = Sum ((H1(D1) | j1) ^ (mid (H1(D1),j,j))) by RVSUM_1:75
.= Sum ((mid (H1(D1),1,j1)) ^ (mid (H1(D1),(j1 + 1),j))) by A150, FINSEQ_6:116
.= Sum (mid (H1(D1),1,j)) by A150, A228, A131, INTEGRA2:4
.= Sum (H1(D1) | j) by A224, FINSEQ_6:116 ;
then A229: H2(D1,j1) + (Sum (mid ((lower_volume (f,D1)),j,j))) = H2(D1,j) by A227, INTEGRA1:def 20;
indx (D2,D1,j1) in Seg (len D2) by A48, FINSEQ_1:def 3;
then indx (D2,D1,j1) in Seg (len H1(D2)) by INTEGRA1:def 7;
then indx (D2,D1,j1) in dom H1(D2) by FINSEQ_1:def 3;
then H2(D2, indx (D2,D1,j1)) = Sum (H1(D2) | (indx (D2,D1,j1))) by INTEGRA1:def 20;
then H2(D2, indx (D2,D1,j1)) + (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) = Sum ((H1(D2) | (indx (D2,D1,j1))) ^ (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) by RVSUM_1:75
.= Sum ((mid (H1(D2),1,(indx (D2,D1,j1)))) ^ (mid (H1(D2),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) by A50, FINSEQ_6:116
.= Sum (mid (H1(D2),1,(indx (D2,D1,j)))) by A50, A52, A226, INTEGRA2:4
.= Sum (H1(D2) | (indx (D2,D1,j))) by A133, FINSEQ_6:116 ;
then A230: H2(D2, indx (D2,D1,j1)) + (Sum (mid ((lower_volume (f,D2)),((indx (D2,D1,j1)) + 1),(indx (D2,D1,j))))) = H2(D2, indx (D2,D1,j)) by A225, INTEGRA1:def 20;
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,D2))) by INTEGRA1:def 7;
then indx (D2,D1,j1) in dom (lower_volume (f,D2)) by FINSEQ_1:def 3;
then H2(D2, indx (D2,D1,j1)) = Sum ((lower_volume (f,D2)) | (indx (D2,D1,j1))) by INTEGRA1:def 20
.= H2(D1,j1) by A222, A46, INTEGRA1:def 20 ;
hence H2(D2, indx (D2,D1,j)) - H2(D1,j) <= (1 * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) by A54, A230, A229; :: thesis: verum
end;
hence S1[1] by A42, A43; :: thesis: verum
end;
reconsider i = i as non empty Element of NAT by A18, FINSEQ_1:1;
A231: for i being non empty Nat st S1[i] holds
S1[i + 1]
proof
let i be non empty Nat; :: thesis: ( S1[i] implies S1[i + 1] )
A232: i >= 1 by NAT_1:14;
assume A233: S1[i] ; :: thesis: S1[i + 1]
S1[i + 1]
proof
A234: i <= i + 1 by NAT_1:11;
assume A235: i + 1 in dom D ; :: thesis: ex j being Element of NAT st
( j in dom D1 & D . (i + 1) in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= ((i + 1) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) )

then consider j being Element of NAT such that
A236: j in dom D1 and
A237: D . (i + 1) in divset (D1,j) by Th3, INTEGRA1:6;
A238: D2 . (indx (D2,D1,j)) = D1 . j by A13, A236, INTEGRA1:def 19;
i + 1 <= len D by A235, FINSEQ_3:25;
then i <= len D by A234, XXREAL_0:2;
then A239: i in Seg (len D) by A232, FINSEQ_1:1;
then A240: i in dom D by FINSEQ_1:def 3;
consider n1 being Element of NAT such that
A241: n1 in dom D1 and
A242: D . i in divset (D1,n1) and
A243: H2(D2, indx (D2,D1,n1)) - H2(D1,n1) <= (i * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) by A233, A239, FINSEQ_1:def 3;
A244: 1 <= n1 + 1 by NAT_1:12;
A245: n1 < j
proof
assume A246: n1 >= j ; :: thesis: contradiction
now
per cases ( n1 = j or n1 > j ) by A246, XXREAL_0:1;
end;
end;
hence contradiction ; :: thesis: verum
end;
then A257: n1 + 1 <= j by NAT_1:13;
A258: 1 <= n1 by A241, FINSEQ_3:25;
A259: indx (D2,D1,n1) in dom D2 by A13, A241, INTEGRA1:def 19;
then A260: 1 <= indx (D2,D1,n1) by FINSEQ_3:25;
A261: indx (D2,D1,j) in dom D2 by A13, A236, INTEGRA1:def 19;
then A262: 1 <= indx (D2,D1,j) by FINSEQ_3:25;
A263: indx (D2,D1,j) <= len D2 by A261, FINSEQ_3:25;
then A264: indx (D2,D1,j) <= len H1(D2) by INTEGRA1:def 7;
A265: 1 <= j by A236, FINSEQ_3:25;
A266: j <= len D1 by A236, FINSEQ_3:25;
then A267: n1 + 1 <= len D1 by A257, XXREAL_0:2;
then A268: n1 + 1 in dom D1 by A244, FINSEQ_3:25;
then A269: indx (D2,D1,(n1 + 1)) in dom D2 by A13, INTEGRA1:def 19;
then A270: 1 <= indx (D2,D1,(n1 + 1)) by FINSEQ_3:25;
A271: D2 . (indx (D2,D1,(n1 + 1))) = D1 . (n1 + 1) by A13, A268, INTEGRA1:def 19;
then D2 . (indx (D2,D1,(n1 + 1))) <= D2 . (indx (D2,D1,j)) by A236, A257, A268, A238, SEQ_4:137;
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 XREAL_1:6;
then 1 <= ((indx (D2,D1,j)) + 1) - (indx (D2,D1,(n1 + 1))) by XREAL_1:19;
then A273: (mid (D2,(indx (D2,D1,(n1 + 1))),(indx (D2,D1,j)))) . 1 = D2 . ((1 - 1) + (indx (D2,D1,(n1 + 1)))) by A272, A270, A263, FINSEQ_6:122
.= D1 . (n1 + 1) by A13, A268, INTEGRA1:def 19 ;
A274: D2 . (indx (D2,D1,n1)) = D1 . n1 by A13, A241, INTEGRA1:def 19;
A275: j <= len H1(D1) by A266, INTEGRA1:def 7;
then j in Seg (len H1(D1)) by A265, FINSEQ_1:1;
then A276: j in dom H1(D1) by FINSEQ_1:def 3;
A277: indx (D2,D1,(n1 + 1)) <= len D2 by A269, FINSEQ_3:25;
n1 in Seg (len D1) by A241, FINSEQ_1:def 3;
then n1 in Seg (len H1(D1)) by INTEGRA1:def 7;
then n1 in dom H1(D1) by FINSEQ_1:def 3;
then H2(D1,n1) = Sum (H1(D1) | n1) by INTEGRA1:def 20
.= Sum (mid (H1(D1),1,n1)) by A258, FINSEQ_6:116 ;
then H2(D1,n1) + (Sum (mid (H1(D1),(n1 + 1),j))) = Sum ((mid (H1(D1),1,n1)) ^ (mid (H1(D1),(n1 + 1),j))) by RVSUM_1:75
.= Sum (mid (H1(D1),1,j)) by A245, A258, A275, INTEGRA2:4
.= Sum (H1(D1) | j) by A265, FINSEQ_6:116 ;
then A278: H2(D1,j) = H2(D1,n1) + (Sum (mid (H1(D1),(n1 + 1),j))) by A276, INTEGRA1:def 20;
indx (D2,D1,j) in Seg (len D2) by A261, FINSEQ_1:def 3;
then indx (D2,D1,j) in Seg (len H1(D2)) by INTEGRA1:def 7;
then A279: indx (D2,D1,j) in dom H1(D2) by FINSEQ_1:def 3;
A280: n1 >= 1 by A241, FINSEQ_3:25;
A281: j - n1 >= 1 by A257, XREAL_1:19;
(Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)
proof
now
per cases ( n1 + 1 = j or n1 + 1 < j ) by A257, XXREAL_0:1;
suppose A282: n1 + 1 = j ; :: thesis: (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)
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 ; :: thesis: contradiction
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 1 <= (indx (D2,D1,n1)) + 2 by A260, XXREAL_0:2;
then A291: (indx (D2,D1,n1)) + 2 in dom D2 by A288, FINSEQ_3:25;
then 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 ; :: thesis: contradiction
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 . (indx (D2,D1,n1)) < D2 . ((indx (D2,D1,n1)) + 2) by A259, A290, A291, SEQM_3:def 1;
then n1 < k1 by A241, A274, A294, A295, SEQ_4:137;
hence contradiction by A282, A296, NAT_1:13; :: thesis: verum
end;
D2 . ((indx (D2,D1,n1)) + 2) in rng D2 by A291, FUNCT_1:def 3;
then A297: D2 . ((indx (D2,D1,n1)) + 2) in rng D by A14, A293, XBOOLE_0:def 3;
A298: lower_bound (divset (D1,j)) = D1 . (j - 1) by A236, A245, A280, INTEGRA1:def 4;
A299: upper_bound (divset (D1,j)) = D1 . j by A236, A245, A280, INTEGRA1:def 4;
D2 . ((indx (D2,D1,n1)) + 2) >= D2 . (indx (D2,D1,n1)) by A259, A290, A291, SEQ_4:137;
then D2 . ((indx (D2,D1,n1)) + 2) in divset (D1,j) by A274, A238, A282, A298, A284, A292, INTEGRA2:1;
then A300: D2 . ((indx (D2,D1,n1)) + 2) in (rng D) /\ (divset (D1,j)) by A297, XBOOLE_0:def 4;
A301: (indx (D2,D1,n1)) + 1 < indx (D2,D1,j) by A287, A289, XXREAL_0:2;
then (indx (D2,D1,n1)) + 1 <= len D2 by A263, XXREAL_0:2;
then A302: (indx (D2,D1,n1)) + 1 in dom D2 by A286, FINSEQ_3:25;
then A303: D2 . (indx (D2,D1,j)) >= D2 . ((indx (D2,D1,n1)) + 1) by A261, A301, SEQ_4:137;
A304: indx (D2,D1,n1) < (indx (D2,D1,n1)) + 1 by NAT_1:13;
A305: not D2 . ((indx (D2,D1,n1)) + 1) in rng D1
proof
assume D2 . ((indx (D2,D1,n1)) + 1) in rng D1 ; :: thesis: contradiction
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;
D2 . ((indx (D2,D1,n1)) + 1) < D2 . (indx (D2,D1,j)) by 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; :: thesis: verum
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)) + 1) >= D2 . (indx (D2,D1,n1)) by A259, A304, A302, SEQ_4:137;
then 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 A309, XBOOLE_0:def 4;
then D2 . ((indx (D2,D1,n1)) + 1) = D2 . ((indx (D2,D1,n1)) + 2) by A11, A236, A300, Th5;
hence contradiction by A289, A302, A291, SEQM_3:def 1; :: thesis: verum
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) ; :: thesis: (indx (D2,D1,n1)) + 2 = indx (D2,D1,j)
then A311: ((indx (D2,D1,n1)) + 1) + 1 <= indx (D2,D1,j) by NAT_1:13;
(indx (D2,D1,n1)) + 2 >= indx (D2,D1,j) by A283, XREAL_1:20;
hence (indx (D2,D1,n1)) + 2 = indx (D2,D1,j) by A311, XXREAL_0:1; :: thesis: verum
end;
A312: 1 <= (indx (D2,D1,n1)) + 1 by NAT_1:12;
A313: indx (D2,D1,j) <= len H1(D2) by A263, INTEGRA1:def 7;
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;
then 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;
then (indx (D2,D1,n1)) + 1 <= len H1(D2) by INTEGRA1:def 7;
then A316: len (mid (H1(D2),((indx (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 (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) <= (upper_bound (rng f)) * (vol (divset (D1,(n1 + 1))))
proof
per cases ( (indx (D2,D1,j)) - (indx (D2,D1,n1)) = 1 or (indx (D2,D1,j)) - (indx (D2,D1,n1)) = 2 ) by A317, A310;
suppose A319: (indx (D2,D1,j)) - (indx (D2,D1,n1)) = 1 ; :: thesis: Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) <= (upper_bound (rng f)) * (vol (divset (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 (D2,D1,n1)) + 1) - 1) by A261, A319, A320, INTEGRA1:def 4;
then A322: lower_bound (divset (D2,((indx (D2,D1,n1)) + 1))) = D1 . n1 by A13, A241, INTEGRA1:def 19;
lower_bound (divset (D1,(n1 + 1))) = D1 . ((n1 + 1) - 1) by A245, A280, A268, A282, INTEGRA1:def 4;
then A323: divset (D2,((indx (D2,D1,n1)) + 1)) = divset (D1,(n1 + 1)) by A245, A280, A268, A282, A322, A321, INTEGRA1:def 4;
A324: vol (divset (D2,((indx (D2,D1,n1)) + 1))) >= 0 by INTEGRA1:9;
1 = ((indx (D2,D1,j)) - ((indx (D2,D1,n1)) + 1)) + 1 by A319;
then (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . 1 = H1(D2) . ((1 + ((indx (D2,D1,n1)) + 1)) - 1) by A312, A313, FINSEQ_6:122
.= H1(D2) . ((indx (D2,D1,n1)) + 1) ;
then A325: mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))) = <*(H1(D2) . ((indx (D2,D1,n1)) + 1))*> by A316, A319, FINSEQ_1:40;
H1(D2) . ((indx (D2,D1,n1)) + 1) = (lower_bound (rng (f | (divset (D2,((indx (D2,D1,n1)) + 1)))))) * (vol (divset (D2,((indx (D2,D1,n1)) + 1)))) by A261, A319, INTEGRA1:def 7;
then H1(D2) . ((indx (D2,D1,n1)) + 1) <= (upper_bound (rng f)) * (vol (divset (D1,(n1 + 1)))) by A1, A261, A319, A323, A324, Th18, XREAL_1:64;
hence Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) <= (upper_bound (rng f)) * (vol (divset (D1,(n1 + 1)))) by A325, FINSOP_1:11; :: thesis: verum
end;
suppose A326: (indx (D2,D1,j)) - (indx (D2,D1,n1)) = 2 ; :: thesis: Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) <= (upper_bound (rng f)) * (vol (divset (D1,(n1 + 1))))
(indx (D2,D1,n1)) + 2 >= 2 + 1 by A260, XREAL_1:6;
then A327: (indx (D2,D1,n1)) + 2 <> 1 ;
then A328: upper_bound (divset (D2,((indx (D2,D1,n1)) + 2))) = D2 . (indx (D2,D1,j)) by A261, A326, INTEGRA1:def 4;
((indx (D2,D1,n1)) + 2) - 1 = (indx (D2,D1,n1)) + 1 ;
then lower_bound (divset (D2,((indx (D2,D1,n1)) + 2))) = D2 . ((indx (D2,D1,n1)) + 1) by A261, A326, A327, INTEGRA1:def 4;
then A329: vol (divset (D2,((indx (D2,D1,n1)) + 2))) = (D1 . j) - (D2 . ((indx (D2,D1,n1)) + 1)) by A238, A328, INTEGRA1:def 5;
A330: upper_bound (divset (D1,(n1 + 1))) = D1 . (n1 + 1) by A245, A280, A268, A282, INTEGRA1:def 4;
lower_bound (divset (D1,(n1 + 1))) = D1 . ((n1 + 1) - 1) by A245, A280, A268, A282, INTEGRA1:def 4;
then A331: vol (divset (D1,(n1 + 1))) = (D1 . (n1 + 1)) - (D1 . n1) by A330, INTEGRA1:def 5;
A332: vol (divset (D2,((indx (D2,D1,n1)) + 2))) >= 0 by INTEGRA1:9;
A333: indx (D2,D1,j) <= len H1(D2) by A263, INTEGRA1:def 7;
A334: vol (divset (D2,((indx (D2,D1,n1)) + 1))) >= 0 by INTEGRA1:9;
A335: 1 <= (indx (D2,D1,n1)) + 1 by NAT_1:12;
A336: (indx (D2,D1,n1)) + 1 <= (indx (D2,D1,n1)) + 2 by XREAL_1:6;
then (indx (D2,D1,n1)) + 1 <= len D2 by A263, A326, XXREAL_0:2;
then A337: (indx (D2,D1,n1)) + 1 in dom D2 by A335, FINSEQ_3:25;
then H1(D2) . ((indx (D2,D1,n1)) + 1) = (lower_bound (rng (f | (divset (D2,((indx (D2,D1,n1)) + 1)))))) * (vol (divset (D2,((indx (D2,D1,n1)) + 1)))) by INTEGRA1:def 7;
then A338: H1(D2) . ((indx (D2,D1,n1)) + 1) <= (upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,n1)) + 1)))) by A1, A337, A334, Th18, XREAL_1:64;
((indx (D2,D1,j)) - ((indx (D2,D1,n1)) + 1)) + 1 = 1 + 1 by A326;
then A339: (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . 2 = H1(D2) . ((2 + ((indx (D2,D1,n1)) + 1)) - 1) by A335, A336, A333, FINSEQ_6:122
.= H1(D2) . (((indx (D2,D1,n1)) + 0) + 2) ;
((indx (D2,D1,j)) - ((indx (D2,D1,n1)) + 1)) + 1 >= 1 by A326;
then (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . 1 = H1(D2) . ((1 + ((indx (D2,D1,n1)) + 1)) - 1) by A326, A335, A336, A333, FINSEQ_6:122
.= H1(D2) . ((indx (D2,D1,n1)) + 1) ;
then mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))) = <*(H1(D2) . ((indx (D2,D1,n1)) + 1)),(H1(D2) . ((indx (D2,D1,n1)) + 2))*> by A316, A326, A339, FINSEQ_1:44;
then A340: Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) = (H1(D2) . ((indx (D2,D1,n1)) + 1)) + (H1(D2) . ((indx (D2,D1,n1)) + 2)) by RVSUM_1:77;
A341: (indx (D2,D1,n1)) + 1 > 1 by A260, NAT_1:13;
then A342: upper_bound (divset (D2,((indx (D2,D1,n1)) + 1))) = D2 . ((indx (D2,D1,n1)) + 1) by A337, INTEGRA1:def 4;
lower_bound (divset (D2,((indx (D2,D1,n1)) + 1))) = D2 . (((indx (D2,D1,n1)) + 1) - 1) by A337, A341, INTEGRA1:def 4;
then A343: vol (divset (D2,((indx (D2,D1,n1)) + 1))) = (D2 . ((indx (D2,D1,n1)) + 1)) - (D1 . n1) by A274, A342, INTEGRA1:def 5;
H1(D2) . ((indx (D2,D1,n1)) + 2) = (lower_bound (rng (f | (divset (D2,((indx (D2,D1,n1)) + 2)))))) * (vol (divset (D2,((indx (D2,D1,n1)) + 2)))) by A261, A326, INTEGRA1:def 7;
then H1(D2) . ((indx (D2,D1,n1)) + 2) <= (upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,n1)) + 2)))) by A1, A261, A326, A332, Th18, XREAL_1:64;
then Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) <= ((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,n1)) + 1))))) + ((upper_bound (rng f)) * (vol (divset (D2,((indx (D2,D1,n1)) + 2))))) by A340, A338, XREAL_1:7;
hence Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) <= (upper_bound (rng f)) * (vol (divset (D1,(n1 + 1)))) by A282, A343, A329, A331; :: thesis: verum
end;
end;
end;
A344: n1 + 1 <= len H1(D1) by A267, INTEGRA1:def 7;
then A345: len (mid (H1(D1),(n1 + 1),j)) = (j -' (n1 + 1)) + 1 by A244, A282, FINSEQ_6:118
.= (j - j) + 1 by A282, XREAL_1:233
.= 1 ;
(n1 + 1) + 1 <= j + 1 by A257, XREAL_1:6;
then 1 <= (j + 1) - (n1 + 1) by XREAL_1:19;
then (mid (H1(D1),(n1 + 1),j)) . 1 = H1(D1) . ((1 - 1) + (n1 + 1)) by A244, A282, A344, FINSEQ_6:122
.= (lower_bound (rng (f | (divset (D1,(n1 + 1)))))) * (vol (divset (D1,(n1 + 1)))) by A268, INTEGRA1:def 7 ;
then mid (H1(D1),(n1 + 1),j) = <*((lower_bound (rng (f | (divset (D1,(n1 + 1)))))) * (vol (divset (D1,(n1 + 1)))))*> by A345, FINSEQ_1:40;
then A346: Sum (mid (H1(D1),(n1 + 1),j)) = (lower_bound (rng (f | (divset (D1,(n1 + 1)))))) * (vol (divset (D1,(n1 + 1)))) by FINSOP_1:11;
divset (D1,(n1 + 1)) c= A by A268, INTEGRA1:8;
then A347: lower_bound (rng (f | (divset (D1,(n1 + 1))))) >= lower_bound (rng f) by A1, Lm4;
n1 + 1 in Seg (len D1) by A268, FINSEQ_1:def 3;
then n1 + 1 in Seg (len (upper_volume ((chi (A,A)),D1))) by INTEGRA1:def 6;
then A348: 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) by A268, INTEGRA1:20;
then vol (divset (D1,(n1 + 1))) in rng (upper_volume ((chi (A,A)),D1)) by A348, FUNCT_1:def 3;
then A349: vol (divset (D1,(n1 + 1))) <= delta D1 by XXREAL_2:def 8;
(upper_bound (rng f)) - (lower_bound (rng f)) >= 0 by A1, Lm3, XREAL_1:48;
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 (H1(D1),(n1 + 1),j)) >= (lower_bound (rng f)) * (vol (divset (D1,(n1 + 1)))) by A346, A347, XREAL_1:64;
then (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) * (vol (divset (D1,(n1 + 1))))) - ((lower_bound (rng f)) * (vol (divset (D1,(n1 + 1))))) by A318, XREAL_1:13;
hence (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) by A350, XXREAL_0:2; :: thesis: verum
end;
suppose A351: n1 + 1 < j ; :: thesis: (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)
A352: n1 < n1 + 1 by NAT_1:13;
then A353: D1 . n1 < D1 . (n1 + 1) by A241, A268, SEQM_3:def 1;
then consider B being non empty closed_interval Subset of REAL, MD1, MD2 being Division of B such that
A354: D1 . n1 = lower_bound B and
upper_bound B = MD2 . (len MD2) and
A355: upper_bound B = MD1 . (len MD1) and
A356: MD1 <= MD2 and
A357: MD1 = mid (D1,(n1 + 1),j) and
A358: MD2 = mid (D2,(indx (D2,D1,(n1 + 1))),(indx (D2,D1,j))) by A13, A236, A257, A268, A273, Th15;
A359: delta MD1 >= 0 by Th9;
A360: len MD1 = (j -' (n1 + 1)) + 1 by A257, A265, A266, A244, A267, A357, FINSEQ_6:118;
then A361: ((len MD1) + (n1 + 1)) - 1 = (((j - (n1 + 1)) + 1) + (n1 + 1)) - 1 by A257, XREAL_1:233
.= j ;
j -' (n1 + 1) = j - (n1 + 1) by A257, XREAL_1:233;
then A362: (j -' (n1 + 1)) + 1 = j - n1 ;
then A363: len MD1 = j - n1 by A257, A265, A266, A244, A267, A357, FINSEQ_6:118;
A364: B c= A
proof
let x1 be set ; :: according to TARSKI:def 3 :: thesis: ( not x1 in B or x1 in A )
A365: rng D1 c= A by INTEGRA1:def 2;
D1 . n1 in rng D1 by A241, FUNCT_1:def 3;
then A366: lower_bound A <= D1 . n1 by A365, INTEGRA2:1;
assume A367: x1 in B ; :: thesis: x1 in A
then reconsider x1 = x1 as Real ;
A368: x1 <= MD1 . (len MD1) by A355, A367, INTEGRA2:1;
D1 . j in rng D1 by A236, FUNCT_1:def 3;
then A369: D1 . j <= upper_bound A by A365, INTEGRA2:1;
D1 . n1 <= x1 by A354, A367, INTEGRA2:1;
then A370: lower_bound A <= x1 by A366, XXREAL_0:2;
MD1 . (len MD1) = D1 . (((j - n1) - 1) + (n1 + 1)) by A257, A281, A266, A244, A357, A362, A363, FINSEQ_6:122
.= D1 . j ;
then x1 <= upper_bound A by A368, A369, XXREAL_0:2;
hence x1 in A by A370, INTEGRA2:1; :: thesis: verum
end;
then reconsider g = f | B as Function of B,REAL by FUNCT_2:32;
A371: len (lower_volume (g,MD1)) = len MD1 by INTEGRA1:def 7
.= (j -' (n1 + 1)) + 1 by A257, A265, A266, A244, A267, A357, FINSEQ_6:118
.= (j - (n1 + 1)) + 1 by A257, XREAL_1:233 ;
A372: len MD1 in dom MD1 by FINSEQ_5:6;
then A373: 1 <= len MD1 by FINSEQ_3:25;
A374: ( lower_bound (divset (MD1,(len MD1))) = lower_bound (divset (D1,j)) & upper_bound (divset (MD1,(len MD1))) = upper_bound (divset (D1,j)) )
proof
per cases ( len MD1 = 1 or len MD1 <> 1 ) ;
suppose A378: len MD1 <> 1 ; :: thesis: ( lower_bound (divset (MD1,(len MD1))) = lower_bound (divset (D1,j)) & upper_bound (divset (MD1,(len MD1))) = upper_bound (divset (D1,j)) )
then (len MD1) - 1 in dom MD1 by A372, INTEGRA1:7;
then A379: (len MD1) - 1 >= 1 by FINSEQ_3:25;
len MD1 <= (len MD1) + 1 by NAT_1:11;
then A380: (len MD1) - 1 <= len MD1 by XREAL_1:20;
upper_bound (divset (MD1,(len MD1))) = MD1 . (len MD1) by A372, A378, INTEGRA1:def 4;
then A381: upper_bound (divset (MD1,(len MD1))) = D1 . j by A257, A266, A244, A357, A360, A361, A373, FINSEQ_6:122;
A382: (((len MD1) - 1) + (n1 + 1)) - 1 = j - 1 by A363;
lower_bound (divset (MD1,(len MD1))) = MD1 . ((len MD1) - 1) by A372, A378, INTEGRA1:def 4;
then lower_bound (divset (MD1,(len MD1))) = D1 . (j - 1) by A257, A266, A244, A357, A360, A382, A379, A380, FINSEQ_6:122;
hence ( lower_bound (divset (MD1,(len MD1))) = lower_bound (divset (D1,j)) & upper_bound (divset (MD1,(len MD1))) = upper_bound (divset (D1,j)) ) by A236, A245, A280, A381, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
A383: len MD1 in dom MD1 by FINSEQ_5:6;
A384: upper_bound (divset (MD1,(len MD1))) = MD1 . (len MD1)
proof
per cases ( len MD1 = 1 or len MD1 <> 1 ) ;
suppose len MD1 = 1 ; :: thesis: upper_bound (divset (MD1,(len MD1))) = MD1 . (len MD1)
hence upper_bound (divset (MD1,(len MD1))) = MD1 . (len MD1) by A383, INTEGRA1:def 4; :: thesis: verum
end;
suppose len MD1 <> 1 ; :: thesis: upper_bound (divset (MD1,(len MD1))) = MD1 . (len MD1)
hence upper_bound (divset (MD1,(len MD1))) = MD1 . (len MD1) by A383, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
D1 . n1 < D1 . (n1 + 1) by A241, A268, A352, SEQM_3:def 1;
then indx (D2,D1,n1) < indx (D2,D1,(n1 + 1)) by A259, A274, A269, A271, SEQ_4:137;
then A385: (indx (D2,D1,n1)) + 1 <= indx (D2,D1,(n1 + 1)) by NAT_1:13;
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, A355, A374, A384, INTEGRA1:def 4;
then A387: vol B <> 0 by A236, A241, A245, SEQM_3:def 1;
A388: 1 <= (indx (D2,D1,n1)) + 1 by A260, NAT_1:13;
A389: indx (D2,D1,n1) < (indx (D2,D1,n1)) + 1 by NAT_1:13;
A390: indx (D2,D1,(n1 + 1)) = (indx (D2,D1,n1)) + 1
proof
assume indx (D2,D1,(n1 + 1)) <> (indx (D2,D1,n1)) + 1 ; :: thesis: contradiction
then A391: indx (D2,D1,(n1 + 1)) > (indx (D2,D1,n1)) + 1 by A385, XXREAL_0:1;
A392: (indx (D2,D1,n1)) + 1 in dom D2 by A388, A386, FINSEQ_3:25;
then A393: D2 . ((indx (D2,D1,n1)) + 1) in rng D2 by FUNCT_1:def 3;
now
per cases ( D2 . ((indx (D2,D1,n1)) + 1) in rng D1 or D2 . ((indx (D2,D1,n1)) + 1) in rng D ) by A14, A393, XBOOLE_0:def 3;
suppose D2 . ((indx (D2,D1,n1)) + 1) in rng D1 ; :: thesis: contradiction
then consider n2 being Element of NAT such that
A394: n2 in dom D1 and
A395: D2 . ((indx (D2,D1,n1)) + 1) = D1 . n2 by PARTFUN1:3;
D2 . (indx (D2,D1,n1)) < D2 . ((indx (D2,D1,n1)) + 1) by A259, 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;
hence contradiction by A268, A394, A396, SEQ_4:137; :: thesis: verum
end;
suppose A397: D2 . ((indx (D2,D1,n1)) + 1) in rng D ; :: thesis: contradiction
A398: D . i <= upper_bound (divset (D1,n1)) by A242, INTEGRA2:1;
A399: upper_bound (divset (D1,n1)) = D1 . n1
proof
per cases ( n1 = 1 or n1 <> 1 ) ;
suppose n1 = 1 ; :: thesis: upper_bound (divset (D1,n1)) = D1 . n1
hence upper_bound (divset (D1,n1)) = D1 . n1 by A241, INTEGRA1:def 4; :: thesis: verum
end;
suppose n1 <> 1 ; :: thesis: upper_bound (divset (D1,n1)) = D1 . n1
hence upper_bound (divset (D1,n1)) = D1 . n1 by A241, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
consider n2 being Element of NAT such that
A400: n2 in dom D and
A401: D2 . ((indx (D2,D1,n1)) + 1) = D . n2 by A397, PARTFUN1:3;
D1 . n1 < D . n2 by A259, A274, A389, A392, A401, SEQM_3:def 1;
then D . i < D . n2 by A398, A399, XXREAL_0:2;
then i < n2 by A240, A400, SEQ_4:137;
then A402: i + 1 <= n2 by NAT_1:13;
(n1 + 1) + 1 <= j by A351, NAT_1:13;
then A403: n1 + 1 <= j - 1 by XREAL_1:19;
j - 1 in dom D1 by A236, A245, A280, INTEGRA1:7;
then A404: D1 . (n1 + 1) <= D1 . (j - 1) by A268, A403, SEQ_4:137;
A405: lower_bound (divset (D1,j)) <= D . (i + 1) by A237, INTEGRA2:1;
lower_bound (divset (D1,j)) = D1 . (j - 1) by A236, A245, A280, INTEGRA1:def 4;
then A406: D1 . (n1 + 1) <= D . (i + 1) by A404, A405, XXREAL_0:2;
D . n2 < D1 . (n1 + 1) by A269, A271, A391, A392, A401, SEQM_3:def 1;
then D . n2 < D . (i + 1) by A406, XXREAL_0:2;
hence contradiction by A235, A400, A402, SEQ_4:137; :: thesis: verum
end;
end;
end;
hence contradiction ; :: thesis: verum
end;
A407: j <= len H1(D1) by A266, INTEGRA1:def 7;
A408: for k being Nat st 1 <= k & k <= len (lower_volume (g,MD1)) holds
(lower_volume (g,MD1)) . k = (mid (H1(D1),(n1 + 1),j)) . k
proof
let k be Nat; :: thesis: ( 1 <= k & k <= len (lower_volume (g,MD1)) implies (lower_volume (g,MD1)) . k = (mid (H1(D1),(n1 + 1),j)) . k )
assume that
A409: 1 <= k and
A410: k <= len (lower_volume (g,MD1)) ; :: thesis: (lower_volume (g,MD1)) . k = (mid (H1(D1),(n1 + 1),j)) . k
A411: k in Seg (len (lower_volume (g,MD1))) by A409, A410, FINSEQ_1:1;
then A412: k in Seg (len MD1) by INTEGRA1:def 7;
then A413: k in dom MD1 by FINSEQ_1:def 3;
k in dom MD1 by A412, FINSEQ_1:def 3;
then A414: (lower_volume (g,MD1)) . k = (lower_bound (rng (g | (divset (MD1,k))))) * (vol (divset (MD1,k))) by INTEGRA1:def 7;
consider k2 being Element of NAT such that
A415: n1 + 1 = 1 + k2 ;
A416: 1 <= k + k2 by A409, NAT_1:12;
k <= j - ((n1 + 1) - 1) by A371, A410;
then k + ((n1 + 1) - 1) <= j by XREAL_1:19;
then k + k2 <= len D1 by A266, A415, XXREAL_0:2;
then A417: k + k2 in Seg (len D1) by A416, FINSEQ_1:1;
then A418: k + k2 in dom D1 by FINSEQ_1:def 3;
1 + 1 <= k + k2 by A258, A409, A415, XREAL_1:7;
then A419: 1 < k + k2 by NAT_1:13;
A420: k2 = (n1 + 1) - 1 by A415;
A421: ( 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 ( k = 1 or k <> 1 ) ;
suppose A422: k = 1 ; :: thesis: ( lower_bound (divset (D1,(k + k2))) = lower_bound (divset (MD1,k)) & upper_bound (divset (D1,(k + k2))) = upper_bound (divset (MD1,k)) )
then upper_bound (divset (MD1,k)) = MD1 . k by A413, INTEGRA1:def 4;
then A423: upper_bound (divset (MD1,k)) = D1 . ((k + (n1 + 1)) - 1) by A257, A266, A244, A357, A371, A409, A410, A411, FINSEQ_6:122;
lower_bound (divset (MD1,k)) = D1 . n1 by A354, A413, A422, INTEGRA1:def 4;
hence ( lower_bound (divset (D1,(k + k2))) = lower_bound (divset (MD1,k)) & upper_bound (divset (D1,(k + k2))) = upper_bound (divset (MD1,k)) ) by A420, A419, A418, A422, A423, INTEGRA1:def 4; :: thesis: verum
end;
suppose A424: k <> 1 ; :: thesis: ( lower_bound (divset (D1,(k + k2))) = lower_bound (divset (MD1,k)) & upper_bound (divset (D1,(k + k2))) = upper_bound (divset (MD1,k)) )
then upper_bound (divset (MD1,k)) = MD1 . k by A413, INTEGRA1:def 4;
then A425: upper_bound (divset (MD1,k)) = D1 . ((k + (n1 + 1)) - 1) by A257, A266, A244, A357, A371, A409, A410, A411, FINSEQ_6:122;
A426: k - 1 <= (j - (n1 + 1)) + 1 by A371, A410, XREAL_1:146, XXREAL_0:2;
A427: lower_bound (divset (MD1,k)) = MD1 . (k - 1) by A413, A424, INTEGRA1:def 4;
A428: k - 1 in dom MD1 by A413, A424, INTEGRA1:7;
then 1 <= k - 1 by FINSEQ_3:25;
then lower_bound (divset (MD1,k)) = D1 . (((k - 1) + (n1 + 1)) - 1) by A257, A266, A244, A357, A428, A426, A427, FINSEQ_6:122;
hence ( lower_bound (divset (D1,(k + k2))) = lower_bound (divset (MD1,k)) & upper_bound (divset (D1,(k + k2))) = upper_bound (divset (MD1,k)) ) by A415, A419, A418, A425, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
divset (MD1,k) = [.(lower_bound (divset (MD1,k))),(upper_bound (divset (MD1,k))).] by INTEGRA1:4;
then A429: divset (D1,(k + k2)) = divset (MD1,k) by A421, INTEGRA1:4;
A430: k + k2 in dom D1 by A417, FINSEQ_1:def 3;
A431: (mid (H1(D1),(n1 + 1),j)) . k = H1(D1) . ((k + (n1 + 1)) - 1) by A257, A244, A371, A407, A409, A410, A411, FINSEQ_6:122
.= (lower_bound (rng (f | (divset (D1,(k + k2)))))) * (vol (divset (D1,(k + k2)))) by A415, A430, INTEGRA1:def 7 ;
k in dom MD1 by A412, FINSEQ_1:def 3;
then divset (D1,(k + k2)) c= B by A429, INTEGRA1:8;
hence (lower_volume (g,MD1)) . k = (mid (H1(D1),(n1 + 1),j)) . k by A414, A431, A429, FUNCT_1:51; :: thesis: verum
end;
A432: g | B is bounded
proof
consider a being real number such that
A433: for x being set st x in A /\ (dom f) holds
a <= f . x by A1, RFUNCT_1:71;
for x being set st x in B /\ (dom g) holds
a <= g . x
proof
let x be set ; :: thesis: ( x in B /\ (dom g) implies a <= g . x )
A434: (dom f) /\ B c= (dom f) /\ A by A364, XBOOLE_1:26;
assume x in B /\ (dom g) ; :: thesis: a <= g . x
then A435: x in dom g by XBOOLE_0:def 4;
then x in (dom f) /\ B by RELAT_1:61;
then a <= f . x by A433, A434;
hence a <= g . x by A435, FUNCT_1:47; :: thesis: verum
end;
then A436: g | B is bounded_below by RFUNCT_1:71;
consider a being real number such that
A437: for x being set st x in A /\ (dom f) holds
f . x <= a by A1, RFUNCT_1:70;
for x being set st x in B /\ (dom g) holds
g . x <= a
proof
let x be set ; :: thesis: ( x in B /\ (dom g) implies g . x <= a )
A438: (dom f) /\ B c= (dom f) /\ A by A364, XBOOLE_1:26;
assume x in B /\ (dom g) ; :: thesis: g . x <= a
then A439: x in dom g by XBOOLE_0:def 4;
then x in (dom f) /\ B by RELAT_1:61;
then a >= f . x by A437, A438;
hence g . x <= a by A439, FUNCT_1:47; :: thesis: verum
end;
then g | B is bounded_above by RFUNCT_1:70;
hence g | B is bounded by A436; :: thesis: verum
end;
rng f is bounded_below by A1, INTEGRA1:11;
then A440: 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 g) by RELAT_1:70, SEQ_4:48;
then (upper_bound (rng f)) - (lower_bound (rng f)) >= (upper_bound (rng g)) - (lower_bound (rng g)) by A440, XREAL_1:13;
then A441: ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta MD1) >= ((upper_bound (rng g)) - (lower_bound (rng g))) * (delta MD1) by A359, XREAL_1:64;
A442: n1 < j - 1 by A351, XREAL_1:20;
A443: indx (D2,D1,j) <= len H1(D2) by A263, INTEGRA1:def 7;
A444: len MD2 = ((indx (D2,D1,j)) -' (indx (D2,D1,(n1 + 1)))) + 1 by A272, A270, A277, A262, A263, A358, FINSEQ_6:118;
then A445: len MD2 = ((indx (D2,D1,j)) - (indx (D2,D1,(n1 + 1)))) + 1 by A272, XREAL_1:233;
then A446: len (lower_volume (g,MD2)) = ((indx (D2,D1,j)) - ((indx (D2,D1,n1)) + 1)) + 1 by A390, INTEGRA1:def 7;
for x1 being set st x1 in (rng MD1) \/ {(D . (i + 1))} holds
x1 in rng MD2
proof
let x1 be set ; :: thesis: ( x1 in (rng MD1) \/ {(D . (i + 1))} implies x1 in rng MD2 )
assume A447: x1 in (rng MD1) \/ {(D . (i + 1))} ; :: thesis: x1 in rng MD2
then reconsider x1 = x1 as Real ;
now
per cases ( x1 in rng MD1 or x1 in {(D . (i + 1))} ) by A447, XBOOLE_0:def 3;
suppose A448: x1 in rng MD1 ; :: thesis: x1 in rng MD2
rng MD1 <> {} ;
then 1 in dom MD1 by FINSEQ_3:32;
then A449: 1 <= len MD1 by FINSEQ_3:25;
rng MD1 c= rng D1 by A357, FINSEQ_6:119;
then A450: x1 in rng D1 by A448;
rng D1 c= rng D2 by A13, INTEGRA1:def 18;
then consider k being Element of NAT such that
A451: k in dom D2 and
A452: D2 . k = x1 by A450, PARTFUN1:3;
MD1 . 1 = D1 . (n1 + 1) by A265, A266, A244, A267, A357, FINSEQ_6:118;
then D2 . (indx (D2,D1,(n1 + 1))) <= x1 by A271, A448, Th16;
then A453: indx (D2,D1,(n1 + 1)) <= k by A269, A451, A452, SEQM_3:def 1;
then consider n being Nat such that
A454: k + 1 = (indx (D2,D1,(n1 + 1))) + n by NAT_1:10, NAT_1:12;
A455: len MD1 = (j -' (n1 + 1)) + 1 by A257, A265, A266, A244, A267, A357, 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, A449, A455, FINSEQ_6:122;
then x1 <= D2 . (indx (D2,D1,j)) by A238, A448, Th16;
then k <= indx (D2,D1,j) by A261, A451, A452, 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 A456: (k - (indx (D2,D1,(n1 + 1)))) + 1 <= ((indx (D2,D1,j)) - (indx (D2,D1,(n1 + 1)))) + 1 by XREAL_1:6;
(indx (D2,D1,(n1 + 1))) + 1 <= k + 1 by A453, XREAL_1:6;
then A457: 1 <= (k + 1) - (indx (D2,D1,(n1 + 1))) by XREAL_1:19;
then A458: n in dom MD2 by A445, A456, A454, FINSEQ_3:25;
n in NAT by ORDINAL1:def 12;
then MD2 . n = D2 . ((n + (indx (D2,D1,(n1 + 1)))) - 1) by A272, A270, A263, A358, A457, A456, A454, FINSEQ_6:122
.= D2 . k by A454 ;
hence x1 in rng MD2 by A452, A458, FUNCT_1:def 3; :: thesis: verum
end;
suppose x1 in {(D . (i + 1))} ; :: thesis: x1 in rng MD2
then A459: x1 = D . (i + 1) by TARSKI:def 1;
reconsider j1 = j - 1 as Element of NAT by A236, A245, A280, INTEGRA1:7;
A460: 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 being Element of NAT such that
A461: k in dom D2 and
A462: x1 = D2 . k by A459, A460, PARTFUN1:3;
D . (i + 1) <= upper_bound (divset (D1,j)) by A237, INTEGRA2:1;
then x1 <= D1 . j by A236, A245, A280, A459, INTEGRA1:def 4;
then A463: D2 . k <= D2 . (indx (D2,D1,j)) by A13, A236, A462, INTEGRA1:def 19;
n1 < j1 by A351, XREAL_1:20;
then A464: n1 + 1 <= j1 by NAT_1:13;
j - 1 in dom D1 by A236, A245, A280, INTEGRA1:7;
then A465: D1 . (n1 + 1) <= D1 . (j - 1) by A268, A464, SEQ_4:137;
lower_bound (divset (D1,j)) <= D . (i + 1) by A237, INTEGRA2:1;
then D1 . (j - 1) <= x1 by A236, A245, A280, A459, INTEGRA1:def 4;
then D2 . (indx (D2,D1,(n1 + 1))) <= D2 . k by A271, A462, A465, XXREAL_0:2;
hence x1 in rng MD2 by A269, A261, A358, A461, A462, A463, Th17; :: thesis: verum
end;
end;
end;
hence x1 in rng MD2 ; :: thesis: verum
end;
then A466: (rng MD1) \/ {(D . (i + 1))} c= rng MD2 by TARSKI:def 3;
rng MD2 <> {} ;
then 1 in dom MD2 by FINSEQ_3:32;
then A467: 1 <= len MD2 by FINSEQ_3:25;
A468: ((len MD2) - 1) + (indx (D2,D1,(n1 + 1))) = indx (D2,D1,j) by A445;
for x1 being set st x1 in rng MD2 holds
x1 in (rng MD1) \/ {(D . (i + 1))}
proof
let x1 be set ; :: thesis: ( x1 in rng MD2 implies x1 in (rng MD1) \/ {(D . (i + 1))} )
assume A469: x1 in rng MD2 ; :: thesis: x1 in (rng MD1) \/ {(D . (i + 1))}
then reconsider x1 = x1 as Real ;
MD2 . 1 = D2 . (indx (D2,D1,(n1 + 1))) by A270, A277, A262, A263, A358, FINSEQ_6:118;
then A470: D1 . (n1 + 1) <= x1 by A271, A469, Th16;
MD2 . (len MD2) = D2 . (indx (D2,D1,j)) by A272, A270, A263, A358, A467, A444, A468, FINSEQ_6:122;
then A471: x1 <= D1 . j by A238, A469, Th16;
A472: rng MD2 c= rng D2 by A358, FINSEQ_6:119;
now
per cases ( x1 in rng D1 or x1 in rng D ) by A14, A469, A472, XBOOLE_0:def 3;
suppose x1 in rng D1 ; :: thesis: x1 in (rng MD1) \/ {(D . (i + 1))}
then consider k being Element of NAT such that
A473: k in dom D1 and
A474: D1 . k = x1 by PARTFUN1:3;
A475: n1 + 1 <= k by A268, A470, A473, A474, SEQM_3:def 1;
then A476: 1 <= k - n1 by XREAL_1:19;
n1 <= n1 + 1 by NAT_1:11;
then consider n being Nat such that
A477: k = n1 + n by A475, NAT_1:10, XXREAL_0:2;
A478: k <= j by A236, A471, A473, A474, SEQM_3:def 1;
then k - n1 <= len MD1 by A363, XREAL_1:9;
then n in dom MD1 by A476, A477, FINSEQ_3:25;
then A479: MD1 . n in rng MD1 by FUNCT_1:def 3;
(j - (n1 + 1)) + 1 = j - n1 ;
then A480: k - n1 <= (j - (n1 + 1)) + 1 by A478, XREAL_1:9;
n in NAT by ORDINAL1:def 12;
then MD1 . n = D1 . (((k - n1) - 1) + (n1 + 1)) by A257, A266, A244, A357, A476, A480, A477, FINSEQ_6:122
.= D1 . k ;
hence x1 in (rng MD1) \/ {(D . (i + 1))} by A474, A479, XBOOLE_0:def 3; :: thesis: verum
end;
suppose x1 in rng D ; :: thesis: x1 in (rng MD1) \/ {(D . (i + 1))}
then consider n being Element of NAT such that
A481: n in dom D and
A482: D . n = x1 by PARTFUN1:3;
A483: not i + 1 < n
proof
A484: upper_bound (divset (D1,j)) = D1 . j
proof
per cases ( j = 1 or j <> 1 ) ;
end;
end;
consider y1 being Real such that
A485: y1 = D . (i + 1) ;
A486: D . n in rng D by A481, FUNCT_1:def 3;
assume i + 1 < n ; :: thesis: contradiction
then A487: D . (i + 1) < D . n by A235, A481, 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 A487, XXREAL_0:2;
then D . n in divset (D1,j) by A471, A482, A484, INTEGRA2:1;
then A488: x1 in (rng D) /\ (divset (D1,j)) by A482, A486, 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, A485, XBOOLE_0:def 4;
hence contradiction by A11, A236, A482, A487, A488, A485, Th5; :: thesis: verum
end;
A489: upper_bound (divset (D1,n1)) = D1 . n1
proof
per cases ( n1 = 1 or n1 <> 1 ) ;
suppose n1 = 1 ; :: thesis: upper_bound (divset (D1,n1)) = D1 . n1
hence upper_bound (divset (D1,n1)) = D1 . n1 by A241, INTEGRA1:def 4; :: thesis: verum
end;
suppose n1 <> 1 ; :: thesis: upper_bound (divset (D1,n1)) = D1 . n1
hence upper_bound (divset (D1,n1)) = D1 . n1 by A241, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
D . i <= upper_bound (divset (D1,n1)) by A242, INTEGRA2:1;
then D . i < D1 . (n1 + 1) by A353, A489, XXREAL_0:2;
then D . i < D . n by A470, A482, XXREAL_0:2;
then i < n by A240, A481, 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 A482, A483, TARSKI:def 1;
hence x1 in (rng MD1) \/ {(D . (i + 1))} by XBOOLE_0:def 3; :: thesis: verum
end;
end;
end;
hence x1 in (rng MD1) \/ {(D . (i + 1))} ; :: thesis: verum
end;
then rng MD2 c= (rng MD1) \/ {(D . (i + 1))} by TARSKI:def 3;
then A490: rng MD2 = (rng MD1) \/ {(D . (i + 1))} by A466, XBOOLE_0:def 10;
delta MD1 in rng (upper_volume ((chi (B,B)),MD1)) by XXREAL_2:def 8;
then consider k being Element of NAT such that
A491: k in dom (upper_volume ((chi (B,B)),MD1)) and
A492: (upper_volume ((chi (B,B)),MD1)) . k = delta MD1 by PARTFUN1:3;
A493: k in Seg (len (upper_volume ((chi (B,B)),MD1))) by A491, FINSEQ_1:def 3;
then A494: k in Seg (len MD1) by INTEGRA1:def 6;
then A495: k in dom MD1 by FINSEQ_1:def 3;
A496: k <= len MD1 by A494, FINSEQ_1:1;
then k + n1 <= j by A363, XREAL_1:19;
then A497: k + n1 <= len D1 by A266, XXREAL_0:2;
A498: 1 <= k by A493, FINSEQ_1:1;
A499: n1 + 1 > 1 by A280, NAT_1:13;
then n1 > 1 - 1 by XREAL_1:19;
then A500: k < k + n1 by XREAL_1:29;
then 1 < k + n1 by A498, XXREAL_0:2;
then A501: k + n1 in dom D1 by A497, 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 ( k = 1 or k <> 1 ) ;
suppose A502: k = 1 ; :: thesis: ( lower_bound (divset (MD1,k)) = lower_bound (divset (D1,(k + n1))) & upper_bound (divset (MD1,k)) = upper_bound (divset (D1,(k + n1))) )
then upper_bound (divset (MD1,k)) = MD1 . k by A495, INTEGRA1:def 4;
then A503: upper_bound (divset (MD1,k)) = D1 . ((k + (n1 + 1)) - 1) by A257, A266, A244, A357, A360, A498, A496, FINSEQ_6:122;
lower_bound (divset (D1,(k + n1))) = D1 . ((k + n1) - 1) by A498, A500, A501, INTEGRA1:def 4;
hence ( lower_bound (divset (MD1,k)) = lower_bound (divset (D1,(k + n1))) & upper_bound (divset (MD1,k)) = upper_bound (divset (D1,(k + n1))) ) by A354, A499, A495, A501, A502, A503, INTEGRA1:def 4; :: thesis: verum
end;
suppose A504: k <> 1 ; :: thesis: ( lower_bound (divset (MD1,k)) = lower_bound (divset (D1,(k + n1))) & upper_bound (divset (MD1,k)) = upper_bound (divset (D1,(k + n1))) )
then upper_bound (divset (MD1,k)) = MD1 . k by A495, INTEGRA1:def 4;
then A505: upper_bound (divset (MD1,k)) = D1 . ((k + (n1 + 1)) - 1) by A257, A266, A244, A357, A360, A498, A496, FINSEQ_6:122;
A506: lower_bound (divset (MD1,k)) = MD1 . (k - 1) by A495, A504, INTEGRA1:def 4;
A507: k - 1 in dom MD1 by A495, A504, INTEGRA1:7;
then A508: k - 1 <= len MD1 by FINSEQ_3:25;
1 <= k - 1 by A507, FINSEQ_3:25;
then lower_bound (divset (MD1,k)) = D1 . (((k - 1) + (n1 + 1)) - 1) by A257, A266, A244, A357, A360, A507, A508, A506, FINSEQ_6:122;
hence ( lower_bound (divset (MD1,k)) = lower_bound (divset (D1,(k + n1))) & upper_bound (divset (MD1,k)) = upper_bound (divset (D1,(k + n1))) ) by A498, A500, A501, A505, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
then divset (MD1,k) = [.(lower_bound (divset (D1,(k + n1)))),(upper_bound (divset (D1,(k + n1)))).] by INTEGRA1:4;
then A509: divset (MD1,k) = divset (D1,(k + n1)) by INTEGRA1:4;
k + n1 in Seg (len D1) by A501, FINSEQ_1:def 3;
then k + n1 in Seg (len (upper_volume ((chi (A,A)),D1))) by INTEGRA1:def 6;
then A510: k + n1 in dom (upper_volume ((chi (A,A)),D1)) by FINSEQ_1:def 3;
k in dom MD1 by A494, FINSEQ_1:def 3;
then delta MD1 = vol (divset (MD1,k)) by A492, INTEGRA1:20;
then delta MD1 = (upper_volume ((chi (A,A)),D1)) . (k + n1) by A501, A509, INTEGRA1:20;
then delta MD1 in rng (upper_volume ((chi (A,A)),D1)) by A510, FUNCT_1:def 3;
then delta MD1 <= max (rng (upper_volume ((chi (A,A)),D1))) by XXREAL_2:def 8;
then A511: delta MD1 <= delta D1 ;
(upper_bound (rng f)) - (lower_bound (rng f)) >= 0 by A1, Lm3, XREAL_1:48;
then A512: ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta MD1) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) by A511, XREAL_1:64;
lower_bound (divset (D1,j)) <= D . (i + 1) by A237, INTEGRA2:1;
then A513: D1 . (j - 1) <= D . (i + 1) by A236, A245, A280, INTEGRA1:def 4;
A514: D . (i + 1) <= upper_bound (divset (D1,j)) by A237, INTEGRA2:1;
A515: (indx (D2,D1,n1)) + 1 <= indx (D2,D1,j) by A272, A385, XXREAL_0:2;
A516: for k being Nat st 1 <= k & k <= len (lower_volume (g,MD2)) holds
(lower_volume (g,MD2)) . k = (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . k
proof
let k be Nat; :: thesis: ( 1 <= k & k <= len (lower_volume (g,MD2)) implies (lower_volume (g,MD2)) . k = (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . k )
assume that
A517: 1 <= k and
A518: k <= len (lower_volume (g,MD2)) ; :: thesis: (lower_volume (g,MD2)) . k = (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . k
A519: k in Seg (len (lower_volume (g,MD2))) by A517, A518, FINSEQ_1:1;
then A520: (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . k = H1(D2) . ((k + ((indx (D2,D1,n1)) + 1)) - 1) by A388, A446, A443, A515, A517, A518, FINSEQ_6:122;
1 <= (indx (D2,D1,n1)) + 1 by NAT_1:12;
then 1 + 1 <= k + ((indx (D2,D1,n1)) + 1) by A517, XREAL_1:7;
then A521: 1 <= (k + ((indx (D2,D1,n1)) + 1)) - 1 by XREAL_1:19;
consider k2 being Element of NAT such that
A522: (indx (D2,D1,n1)) + 1 = 1 + k2 ;
k <= (indx (D2,D1,j)) - (((indx (D2,D1,n1)) + 1) - 1) by A445, A390, A518, INTEGRA1:def 7;
then k + (((indx (D2,D1,n1)) + 1) - 1) <= indx (D2,D1,j) by XREAL_1:19;
then (k + ((indx (D2,D1,n1)) + 1)) - 1 <= len H1(D2) by A443, XXREAL_0:2;
then k + k2 in Seg (len H1(D2)) by A521, A522, FINSEQ_1:1;
then A523: k + k2 in Seg (len D2) by INTEGRA1:def 7;
then k + k2 in dom D2 by FINSEQ_1:def 3;
then A524: (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . k = (lower_bound (rng (f | (divset (D2,(k + k2)))))) * (vol (divset (D2,(k + k2)))) by A520, A522, INTEGRA1:def 7;
A525: k in Seg (len MD2) by A519, INTEGRA1:def 7;
A526: ( lower_bound (divset (MD2,k)) = lower_bound (divset (D2,(k + k2))) & upper_bound (divset (MD2,k)) = upper_bound (divset (D2,(k + k2))) )
proof
k + k2 >= 1 + 1 by A260, A517, A522, XREAL_1:7;
then A527: k + k2 > 1 by NAT_1:13;
A528: k in dom MD2 by A525, FINSEQ_1:def 3;
A529: k + k2 in dom D2 by A523, FINSEQ_1:def 3;
per cases ( k = 1 or k <> 1 ) ;
suppose A530: k = 1 ; :: thesis: ( lower_bound (divset (MD2,k)) = lower_bound (divset (D2,(k + k2))) & upper_bound (divset (MD2,k)) = upper_bound (divset (D2,(k + k2))) )
then upper_bound (divset (MD2,k)) = MD2 . k by A528, INTEGRA1:def 4;
then A531: upper_bound (divset (MD2,k)) = D2 . ((k + ((indx (D2,D1,n1)) + 1)) - 1) by A272, A263, A358, A388, A390, A446, A517, A518, A519, FINSEQ_6:122;
A532: lower_bound (divset (D2,(k + k2))) = D2 . ((k + k2) - 1) by A527, A529, INTEGRA1:def 4;
lower_bound (divset (MD2,k)) = D1 . n1 by A354, A528, A530, INTEGRA1:def 4;
hence ( lower_bound (divset (MD2,k)) = lower_bound (divset (D2,(k + k2))) & upper_bound (divset (MD2,k)) = upper_bound (divset (D2,(k + k2))) ) by A13, A241, A522, A527, A529, A530, A531, A532, INTEGRA1:def 4, INTEGRA1:def 19; :: thesis: verum
end;
suppose A533: k <> 1 ; :: thesis: ( lower_bound (divset (MD2,k)) = lower_bound (divset (D2,(k + k2))) & upper_bound (divset (MD2,k)) = upper_bound (divset (D2,(k + k2))) )
then upper_bound (divset (MD2,k)) = MD2 . k by A528, INTEGRA1:def 4;
then A534: upper_bound (divset (MD2,k)) = D2 . ((k + ((indx (D2,D1,n1)) + 1)) - 1) by A272, A263, A358, A388, A390, A446, A517, A518, A519, FINSEQ_6:122;
A535: k - 1 <= ((indx (D2,D1,j)) - ((indx (D2,D1,n1)) + 1)) + 1 by A446, A518, XREAL_1:146, XXREAL_0:2;
A536: lower_bound (divset (MD2,k)) = MD2 . (k - 1) by A528, A533, INTEGRA1:def 4;
A537: k - 1 in dom MD2 by A528, A533, INTEGRA1:7;
then 1 <= k - 1 by FINSEQ_3:25;
then lower_bound (divset (MD2,k)) = D2 . (((k - 1) + ((indx (D2,D1,n1)) + 1)) - 1) by A272, A263, A358, A388, A390, A537, A535, A536, FINSEQ_6:122;
hence ( lower_bound (divset (MD2,k)) = lower_bound (divset (D2,(k + k2))) & upper_bound (divset (MD2,k)) = upper_bound (divset (D2,(k + k2))) ) by A522, A527, A529, A534, INTEGRA1:def 4; :: thesis: verum
end;
end;
end;
divset (MD2,k) = [.(lower_bound (divset (MD2,k))),(upper_bound (divset (MD2,k))).] by INTEGRA1:4;
then A538: divset (MD2,k) = divset (D2,(k + k2)) by A526, INTEGRA1:4;
k in dom MD2 by A525, FINSEQ_1:def 3;
then divset (D2,(k + k2)) c= B by A538, INTEGRA1:8;
then A539: rng (f | (divset (D2,(k + k2)))) = rng (g | (divset (D2,(k + k2)))) by FUNCT_1:51;
k in dom MD2 by A525, FINSEQ_1:def 3;
hence (lower_volume (g,MD2)) . k = (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) . k by A524, A538, A539, INTEGRA1:def 7; :: thesis: verum
end;
lower_bound (divset (D1,j)) <= D . (i + 1) by A237, INTEGRA2:1;
then A540: D . (i + 1) in divset (MD1,(len MD1)) by A374, A514, INTEGRA2:1;
j - 1 in dom D1 by A236, A245, A280, INTEGRA1:7;
then D1 . n1 < D1 . (j - 1) by A241, A442, SEQM_3:def 1;
then D . (i + 1) > lower_bound B by A354, A513, XXREAL_0:2;
then (Sum (lower_volume (g,MD2))) - (Sum (lower_volume (g,MD1))) <= ((upper_bound (rng g)) - (lower_bound (rng g))) * (delta MD1) by A356, A432, A490, A540, A387, Th13;
then A541: (Sum (lower_volume (g,MD2))) - (Sum (lower_volume (g,MD1))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta MD1) by A441, XXREAL_0:2;
(indx (D2,D1,n1)) + 1 <= len H1(D2) by A386, INTEGRA1:def 7;
then len (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) = ((indx (D2,D1,j)) -' ((indx (D2,D1,n1)) + 1)) + 1 by A262, A388, A443, A515, FINSEQ_6:118;
then len (lower_volume (g,MD2)) = len (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) by A272, A385, A446, XREAL_1:233, XXREAL_0:2;
then A542: Sum (lower_volume (g,MD2)) = Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j)))) by A516, FINSEQ_1:14;
n1 + 1 <= len H1(D1) by A267, INTEGRA1:def 7;
then len (mid (H1(D1),(n1 + 1),j)) = (j -' (n1 + 1)) + 1 by A257, A265, A244, A407, FINSEQ_6:118
.= (j - (n1 + 1)) + 1 by A257, XREAL_1:233 ;
then Sum (lower_volume (g,MD1)) = Sum (mid (H1(D1),(n1 + 1),j)) by A371, A408, FINSEQ_1:14;
hence (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) by A541, A512, A542, XXREAL_0:2; :: thesis: verum
end;
end;
end;
hence (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j))) <= ((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1) ; :: thesis: verum
end;
then A543: (H2(D2, indx (D2,D1,n1)) - H2(D1,n1)) + ((Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j)))) <= ((i * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1)) + (((upper_bound (rng f)) - (lower_bound (rng f))) * (delta D1)) by A243, XREAL_1:7;
n1 < n1 + 1 by NAT_1:13;
then D1 . n1 < D1 . (n1 + 1) by A241, A268, SEQM_3:def 1;
then indx (D2,D1,n1) < indx (D2,D1,(n1 + 1)) by A259, A274, A269, A271, SEQ_4:137;
then A544: indx (D2,D1,n1) < indx (D2,D1,j) by A272, XXREAL_0:2;
indx (D2,D1,n1) in Seg (len D2) by A259, FINSEQ_1:def 3;
then indx (D2,D1,n1) in Seg (len H1(D2)) by INTEGRA1:def 7;
then indx (D2,D1,n1) in dom H1(D2) by FINSEQ_1:def 3;
then H2(D2, indx (D2,D1,n1)) = Sum (H1(D2) | (indx (D2,D1,n1))) by INTEGRA1:def 20
.= Sum (mid (H1(D2),1,(indx (D2,D1,n1)))) by A260, FINSEQ_6:116 ;
then H2(D2, indx (D2,D1,n1)) + (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) = Sum ((mid (H1(D2),1,(indx (D2,D1,n1)))) ^ (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) by RVSUM_1:75
.= Sum (mid (H1(D2),1,(indx (D2,D1,j)))) by A260, A544, A264, INTEGRA2:4
.= Sum (H1(D2) | (indx (D2,D1,j))) by A262, FINSEQ_6:116 ;
then H2(D2, indx (D2,D1,j)) = H2(D2, indx (D2,D1,n1)) + (Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) by A279, INTEGRA1:def 20;
then (H2(D2, indx (D2,D1,n1)) - H2(D1,n1)) + ((Sum (mid (H1(D2),((indx (D2,D1,n1)) + 1),(indx (D2,D1,j))))) - (Sum (mid (H1(D1),(n1 + 1),j)))) = H2(D2, indx (D2,D1,j)) - H2(D1,j) by A278;
hence ex j being Element of NAT st
( j in dom D1 & D . (i + 1) in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= ((i + 1) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) ) by A236, A237, A543; :: thesis: verum
end;
hence S1[i + 1] ; :: thesis: verum
end;
for k being non empty Nat holds S1[k] from NAT_1:sch 10(A40, A231);
then S1[i] ;
hence
ex j being Element of NAT st
( j in dom D1 & D . i in divset (D1,j) & H2(D2, indx (D2,D1,j)) - H2(D1,j) <= (i * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) ) by A17; :: thesis: verum
end;
A545: 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 A546: D2 . (len D2) = D2 . (indx (D2,D1,(len D1))) by INTEGRA1:def 2;
len D in dom D by FINSEQ_5:6;
then consider j being Element of NAT such that
A547: j in dom D1 and
A548: D . (len D) in divset (D1,j) and
A549: H2(D2, indx (D2,D1,j)) - H2(D1,j) <= ((len D) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) by A16;
A550: j = len D1
proof end;
indx (D2,D1,(len D1)) in dom D2 by A13, A545, INTEGRA1:def 19;
then indx (D2,D1,(len D1)) = len D2 by A15, A546, SEQ_4:138;
then H2(D2, len D2) - (lower_sum (f,D1)) <= ((len D) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) by A549, A550, INTEGRA1:43;
hence (lower_sum (f,D2)) - (lower_sum (f,D1)) <= ((len D) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) by INTEGRA1:43; :: thesis: verum
end;
hence ex D2 being Division of A 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) ) by A12, A13, A14; :: thesis: verum
end;
hence ex D2 being Division of A 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) ) ; :: thesis: verum
end;
A554: lim (delta T) = 0 by A2, FDIFF_1:def 1;
A555: delta T is non-empty by A2, FDIFF_1:def 1;
A556: for e being Real st e > 0 holds
ex n being Element of NAT st
for m being Element of NAT st n <= m holds
( 0 < (delta T) . m & (delta T) . m < e )
proof
let e be Real; :: thesis: ( e > 0 implies ex n being Element of NAT st
for m being Element of NAT st n <= m holds
( 0 < (delta T) . m & (delta T) . m < e ) )

assume e > 0 ; :: thesis: ex n being Element of NAT st
for m being Element of NAT st n <= m holds
( 0 < (delta T) . m & (delta T) . m < e )

then consider n being Element of NAT such that
A557: for m being Element of NAT st n <= m holds
abs (((delta T) . m) - 0) < e by A4, A554, SEQ_2:def 7;
for m being Element of NAT st n <= m holds
( 0 < (delta T) . m & (delta T) . m < e )
proof
let m be Element of NAT ; :: thesis: ( n <= m implies ( 0 < (delta T) . m & (delta T) . m < e ) )
A558: (delta T) . m = delta (T . m) by Def2;
delta (T . m) in rng (upper_volume ((chi (A,A)),(T . m))) by XXREAL_2:def 8;
then consider i being Element of NAT such that
A559: i in dom (upper_volume ((chi (A,A)),(T . m))) and
A560: delta (T . m) = (upper_volume ((chi (A,A)),(T . m))) . i by PARTFUN1:3;
consider D being Division of A such that
A561: D = T . m ;
i in Seg (len (upper_volume ((chi (A,A)),(T . m)))) by A559, FINSEQ_1:def 3;
then i in Seg (len D) by A561, INTEGRA1:def 6;
then i in dom D by FINSEQ_1:def 3;
then A562: delta (T . m) = vol (divset ((T . m),i)) by A560, A561, INTEGRA1:20;
assume n <= m ; :: thesis: ( 0 < (delta T) . m & (delta T) . m < e )
then abs (((delta T) . m) - 0) < e by A557;
then A563: ((delta T) . m) + (abs (((delta T) . m) - 0)) < e + (abs (((delta T) . m) - 0)) by ABSVALUE:4, XREAL_1:8;
(delta T) . m <> 0 by A555, SEQ_1:5;
hence ( 0 < (delta T) . m & (delta T) . m < e ) by A563, A558, A562, INTEGRA1:9, XREAL_1:6; :: thesis: verum
end;
hence ex n being Element of NAT st
for m being Element of NAT st n <= m holds
( 0 < (delta T) . m & (delta T) . m < e ) ; :: thesis: verum
end;
A564: for e being real number st e > 0 holds
ex n being Element of NAT st
for m being Element of NAT st n <= m holds
abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e
proof
set h = lower_bound (rng f);
set H = upper_bound (rng f);
let e be real number ; :: thesis: ( e > 0 implies ex n being Element of NAT st
for m being Element of NAT st n <= m holds
abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e )

assume A565: e > 0 ; :: thesis: ex n being Element of NAT st
for m being Element of NAT st n <= m holds
abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e

then A566: e / 2 > 0 by XREAL_1:139;
reconsider e = e as Real by XREAL_0:def 1;
A567: (upper_bound (rng f)) - (lower_bound (rng f)) >= 0 by A1, Lm3, XREAL_1:48;
A569: 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 being real number such that
A570: y in rng (lower_sum_set f) and
A571: (lower_integral f) - (e / 2) < y by A566, A569, SEQ_4:def 1;
consider D being Division of A such that
D in dom (lower_sum_set f) and
A573: y = (lower_sum_set f) . D and
A574: D . 1 > lower_bound A by A3, A570, Lm7;
deffunc H1( Nat) -> Element of REAL = vol (divset (D,$1));
set p = len D;
consider v being FinSequence of REAL such that
A575: ( len v = len D & ( for j being Nat st j in dom v holds
v . j = H1(j) ) ) from FINSEQ_2:sch 1();
consider v1 being non-decreasing FinSequence of REAL such that
A576: v,v1 are_fiberwise_equipotent by INTEGRA2:3;
defpred S1[ Nat] means ( $1 in dom v1 & v1 . $1 > 0 );
A577: dom v = Seg (len D) by A575, FINSEQ_1:def 3;
A578: ex k being Nat st S1[k]
proof
consider H being Function such that
dom H = dom v and
rng H = dom v1 and
H is one-to-one and
A579: v = v1 * H by A576, CLASSES1:77;
consider k being Element of NAT such that
A580: k in dom D and
A581: vol (divset (D,k)) > 0 by A3, Th2;
A582: dom D = Seg (len v) by A575, FINSEQ_1:def 3;
then H . k in dom v1 by A575, A577, A579, A580, FUNCT_1:11;
then reconsider Hk = H . k as Nat ;
v . k > 0 by A575, A577, A580, A581, A582;
then S1[Hk] by A575, A577, A579, A580, A582, FUNCT_1:11, FUNCT_1:12;
hence ex k being Nat st S1[k] ; :: thesis: verum
end;
consider k being Nat such that
A583: ( S1[k] & ( for n being Nat st S1[n] holds
k <= n ) ) from NAT_1:sch 5(A578);
A584: 2 * (len D) > 0 by XREAL_1:129;
then A585: (2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1) > 0 by A567, XREAL_1:129;
min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) > 0
proof
per cases ( min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) = v1 . k or min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) = e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) ) by XXREAL_0:15;
suppose min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) = v1 . k ; :: thesis: min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) > 0
hence min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) > 0 by A583; :: thesis: verum
end;
suppose min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) = e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) ; :: thesis: min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) > 0
hence min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) > 0 by A565, A585, XREAL_1:139; :: thesis: verum
end;
end;
end;
then consider n being Element of NAT such that
A586: for m being Element of NAT st n <= m holds
( 0 < (delta T) . m & (delta T) . m < min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) ) by A556;
take n ; :: thesis: for m being Element of NAT st n <= m holds
abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e

A587: y = lower_sum (f,D) by A573, INTEGRA1:def 11;
for m being Element of NAT st n <= m holds
abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e
proof
A588: v1 . 1 > 0
proof
A589: for n1 being Element of NAT st n1 in dom D holds
vol (divset (D,n1)) > 0
proof
let n1 be Element of NAT ; :: thesis: ( n1 in dom D implies vol (divset (D,n1)) > 0 )
assume A590: n1 in dom D ; :: thesis: vol (divset (D,n1)) > 0
then A591: 1 <= n1 by FINSEQ_3:25;
per cases ( n1 = 1 or n1 > 1 ) by A591, XXREAL_0:1;
end;
end;
A598: k <= len v1 by A583, FINSEQ_3:25;
1 <= k by A583, FINSEQ_3:25;
then 1 <= len v1 by A598, XXREAL_0:2;
then 1 in dom v1 by FINSEQ_3:25;
then A599: v1 . 1 in rng v1 by FUNCT_1:def 3;
rng v = rng v1 by A576, CLASSES1:75;
then consider n1 being Element of NAT such that
A600: n1 in dom v and
A601: v1 . 1 = v . n1 by A599, PARTFUN1:3;
n1 in Seg (len D) by A575, A600, FINSEQ_1:def 3;
then A602: n1 in dom D by FINSEQ_1:def 3;
v1 . 1 = vol (divset (D,n1)) by A575, A600, A601;
hence v1 . 1 > 0 by A589, A602; :: thesis: verum
end;
A603: v1 . k = min (rng (upper_volume ((chi (A,A)),D)))
proof
A604: k = 1 min (rng (upper_volume ((chi (A,A)),D))) in rng (upper_volume ((chi (A,A)),D)) by XXREAL_2:def 7;
then consider m being Element of NAT such that
A607: m in dom (upper_volume ((chi (A,A)),D)) and
A608: 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 A607, FINSEQ_1:def 3;
then A609: m in Seg (len D) by INTEGRA1:def 6;
then m in dom D by FINSEQ_1:def 3;
then min (rng (upper_volume ((chi (A,A)),D))) = vol (divset (D,m)) by A608, INTEGRA1:20;
then A610: v . m = min (rng (upper_volume ((chi (A,A)),D))) by A575, A577, A609;
A611: rng v = rng v1 by A576, CLASSES1:75;
m in dom v by A575, A609, FINSEQ_1:def 3;
then min (rng (upper_volume ((chi (A,A)),D))) in rng v by A610, FUNCT_1:def 3;
then consider m1 being Element of NAT such that
A612: m1 in dom v1 and
A613: min (rng (upper_volume ((chi (A,A)),D))) = v1 . m1 by A611, PARTFUN1:3;
v1 . k in rng v1 by A583, FUNCT_1:def 3;
then consider k2 being Element of NAT such that
A614: k2 in dom v and
A615: v1 . k = v . k2 by A611, PARTFUN1:3;
A616: k2 in Seg (len D) by A575, A614, FINSEQ_1:def 3;
then A617: k2 in dom D by FINSEQ_1:def 3;
k2 in Seg (len (upper_volume ((chi (A,A)),D))) by A616, INTEGRA1:def 6;
then A618: k2 in dom (upper_volume ((chi (A,A)),D)) by FINSEQ_1:def 3;
v1 . k = vol (divset (D,k2)) by A575, A614, A615;
then v1 . k = (upper_volume ((chi (A,A)),D)) . k2 by A617, INTEGRA1:20;
then v1 . k in rng (upper_volume ((chi (A,A)),D)) by A618, FUNCT_1:def 3;
then A619: v1 . k >= min (rng (upper_volume ((chi (A,A)),D))) by XXREAL_2:def 7;
m1 >= 1 by A612, FINSEQ_3:25;
then v1 . 1 <= min (rng (upper_volume ((chi (A,A)),D))) by A583, A604, A612, A613, INTEGRA2:2;
hence v1 . k = min (rng (upper_volume ((chi (A,A)),D))) by A604, A619, XXREAL_0:1; :: thesis: verum
end;
(upper_bound (rng f)) - (lower_bound (rng f)) <= ((upper_bound (rng f)) - (lower_bound (rng f))) + 1 by XREAL_1:29;
then A620: (len D) * ((upper_bound (rng f)) - (lower_bound (rng f))) <= (len D) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1) by XREAL_1:64;
set sD = lower_sum (f,D);
set s = lower_integral f;
let m be Element of NAT ; :: thesis: ( n <= m implies abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e )
reconsider D1 = T . m as Division of A ;
A621: min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) <= e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) by XXREAL_0:17;
assume A622: n <= m ; :: thesis: abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e
then (delta T) . m < min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) by A586;
then A623: delta D1 < min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) by Def2;
(delta T) . m < min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) by A586, A622;
then (delta T) . m < e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) by A621, XXREAL_0:2;
then ((delta T) . m) * ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) < e by A584, A567, XREAL_1:79, XREAL_1:129;
then (((delta T) . m) * ((len D) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1))) * 2 < e ;
then A624: ((len D) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) * ((delta T) . m) < e / 2 by XREAL_1:81;
T . m in divs A by INTEGRA1:def 3;
then A625: T . m in dom (lower_sum_set f) by FUNCT_2:def 1;
(lower_sum (f,T)) . m = lower_sum (f,(T . m)) 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 A625, FUNCT_1:def 3;
then upper_bound (rng (lower_sum_set f)) >= (lower_sum (f,T)) . m by A569, SEQ_4:def 1;
then lower_integral f >= (lower_sum (f,T)) . m by INTEGRA1:def 15;
then A626: (lower_integral f) - ((lower_sum (f,T)) . m) >= 0 by XREAL_1:48;
0 < (delta T) . m by A586, A622;
then A627: ((len D) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * ((delta T) . m) <= ((len D) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) * ((delta T) . m) by A620, XREAL_1:64;
set sD1 = lower_sum (f,(T . m));
consider D2 being Division of A such that
A628: D <= D2 and
D1 <= D2 and
A629: 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;
set sD2 = lower_sum (f,D2);
A630: ((lower_sum (f,D)) - (lower_sum (f,(T . m)))) - ((lower_sum (f,D2)) - (lower_sum (f,(T . m)))) = (lower_sum (f,D)) - (lower_sum (f,D2)) ;
min ((v1 . k),(e / ((2 * (len D)) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)))) <= v1 . k by XXREAL_0:17;
then delta D1 < v1 . k by A623, XXREAL_0:2;
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, A603;
then A631: (lower_sum (f,D2)) - (lower_sum (f,D1)) <= ((len D) * ((upper_bound (rng f)) - (lower_bound (rng f)))) * (delta D1) by A629, Th6;
(lower_sum (f,D)) - (lower_sum (f,D2)) <= 0 by A1, A628, INTEGRA1:46, XREAL_1:47;
then A632: (lower_sum (f,D)) - (lower_sum (f,(T . m))) <= (lower_sum (f,D2)) - (lower_sum (f,(T . m))) by A630, XREAL_1:50;
delta D1 = (delta T) . m by Def2;
then (lower_sum (f,D2)) - (lower_sum (f,(T . m))) <= ((len D) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) * ((delta T) . m) by A631, A627, XXREAL_0:2;
then (lower_sum (f,D)) - (lower_sum (f,(T . m))) <= ((len D) * (((upper_bound (rng f)) - (lower_bound (rng f))) + 1)) * ((delta T) . m) by A632, XXREAL_0:2;
then (lower_sum (f,D)) - (lower_sum (f,(T . m))) < e / 2 by A624, XXREAL_0:2;
then A633: ((lower_sum (f,D)) - (lower_sum (f,(T . m)))) + (e / 2) < (e / 2) + (e / 2) by XREAL_1:6;
((lower_integral f) - (lower_sum (f,(T . m)))) + (lower_sum (f,(T . m))) < (lower_sum (f,D)) + (e / 2) by A571, A587, XREAL_1:19;
then (lower_integral f) - (lower_sum (f,(T . m))) < ((lower_sum (f,D)) + (e / 2)) - (lower_sum (f,(T . m))) by XREAL_1:20;
then (lower_integral f) - (lower_sum (f,(T . m))) < e by A633, XXREAL_0:2;
then (lower_integral f) - ((lower_sum (f,T)) . m) < e by INTEGRA2:def 3;
then abs ((lower_integral f) - ((lower_sum (f,T)) . m)) < e by A626, ABSVALUE:def 1;
then abs (- ((lower_integral f) - ((lower_sum (f,T)) . m))) < e by COMPLEX1:52;
hence abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e ; :: thesis: verum
end;
hence for m being Element of NAT st n <= m holds
abs (((lower_sum (f,T)) . m) - (lower_integral f)) < e ; :: thesis: verum
end;
hence lower_sum (f,T) is convergent by SEQ_2:def 6; :: thesis: lim (lower_sum (f,T)) = lower_integral f
hence lim (lower_sum (f,T)) = lower_integral f by A564, SEQ_2:def 7; :: thesis: verum