let A be closed-interval Subset of REAL ; :: thesis: for n being Element of NAT st n > 0 & vol A > 0 holds
ex D being Division of A st
( len D = n & ( for i being Element of NAT st i in dom D holds
D . i = (lower_bound A) + (((vol A) / n) * i) ) )

let n be Element of NAT ; :: thesis: ( n > 0 & vol A > 0 implies ex D being Division of A st
( len D = n & ( for i being Element of NAT st i in dom D holds
D . i = (lower_bound A) + (((vol A) / n) * i) ) ) )

assume that
A1: n > 0 and
A2: vol A > 0 ; :: thesis: ex D being Division of A st
( len D = n & ( for i being Element of NAT st i in dom D holds
D . i = (lower_bound A) + (((vol A) / n) * i) ) )

deffunc H1( Nat) -> Element of REAL = (lower_bound A) + (((vol A) / n) * $1);
consider D being FinSequence of REAL such that
A3: ( len D = n & ( for i being Nat st i in dom D holds
D . i = H1(i) ) ) from FINSEQ_2:sch 1();
A4: dom D = Seg n by A3, FINSEQ_1:def 3;
for i, j being Element of NAT st i in dom D & j in dom D & i < j holds
D . i < D . j
proof
let i, j be Element of NAT ; :: thesis: ( i in dom D & j in dom D & i < j implies D . i < D . j )
assume that
A5: i in dom D and
A6: j in dom D and
A7: i < j ; :: thesis: D . i < D . j
(vol A) / n > 0 by A1, A2, XREAL_1:141;
then ((vol A) / n) * i < ((vol A) / n) * j by A7, XREAL_1:70;
then (lower_bound A) + (((vol A) / n) * i) < (lower_bound A) + (((vol A) / n) * j) by XREAL_1:8;
then D . i < (lower_bound A) + (((vol A) / n) * j) by A3, A5;
hence D . i < D . j by A3, A6; :: thesis: verum
end;
then reconsider D = D as non empty increasing FinSequence of REAL by A1, A3, SEQM_3:def 1;
A8: rng D c= A
proof
for x1 being set st x1 in rng D holds
x1 in A
proof
let x1 be set ; :: thesis: ( x1 in rng D implies x1 in A )
assume A9: x1 in rng D ; :: thesis: x1 in A
then reconsider x1 = x1 as Real ;
consider i being Element of NAT such that
A10: ( i in dom D & D . i = x1 ) by A9, PARTFUN1:26;
A11: x1 = (lower_bound A) + (((vol A) / n) * i) by A3, A10;
( 0 < ((vol A) / n) * i & ((vol A) / n) * i <= vol A )
proof
A12: ( 1 <= i & i <= len D ) by A10, FINSEQ_3:27;
A13: (vol A) / n > 0 by A1, A2, XREAL_1:141;
hence ((vol A) / n) * i > 0 by A12, XREAL_1:131; :: thesis: ((vol A) / n) * i <= vol A
((vol A) / n) * i <= ((vol A) / n) * n by A3, A12, A13, XREAL_1:66;
hence ((vol A) / n) * i <= vol A by A1, XCMPLX_1:88; :: thesis: verum
end;
then A14: ( lower_bound A <= (lower_bound A) + (((vol A) / n) * i) & (lower_bound A) + (((vol A) / n) * i) <= (lower_bound A) + (vol A) ) by XREAL_1:8, XREAL_1:31;
(lower_bound A) + (vol A) = (lower_bound A) + ((upper_bound A) - (lower_bound A)) by INTEGRA1:def 6
.= upper_bound A ;
hence x1 in A by A11, A14, INTEGRA2:1; :: thesis: verum
end;
hence rng D c= A by TARSKI:def 3; :: thesis: verum
end;
D . (len D) = upper_bound A
proof
D . (len D) = (lower_bound A) + (((vol A) / n) * n) by A3, A4, FINSEQ_1:5;
then A15: D . (len D) = (lower_bound A) + (vol A) by A1, XCMPLX_1:88;
vol A = (upper_bound A) - (lower_bound A) by INTEGRA1:def 6;
hence D . (len D) = upper_bound A by A15; :: thesis: verum
end;
then D is Division of A by A8, INTEGRA1:def 2;
then reconsider D = D as Division of A by INTEGRA1:def 3;
take D ; :: thesis: ( len D = n & ( for i being Element of NAT st i in dom D holds
D . i = (lower_bound A) + (((vol A) / n) * i) ) )

thus ( len D = n & ( for i being Element of NAT st i in dom D holds
D . i = (lower_bound A) + (((vol A) / n) * i) ) ) by A3; :: thesis: verum