let x be Real; :: thesis: for A being closed-interval Subset of REAL
for D being Division of A st x in A holds
ex j being Element of NAT st
( j in dom D & x in divset D,j )

let A be closed-interval Subset of REAL ; :: thesis: for D being Division of A st x in A holds
ex j being Element of NAT st
( j in dom D & x in divset D,j )

let D be Division of A; :: thesis: ( x in A implies ex j being Element of NAT st
( j in dom D & x in divset D,j ) )

assume A1: x in A ; :: thesis: ex j being Element of NAT st
( j in dom D & x in divset D,j )

then A2: lower_bound A <= x by INTEGRA2:1;
A3: x <= upper_bound A by A1, INTEGRA2:1;
A4: rng D <> {} ;
then A5: 1 in dom D by FINSEQ_3:34;
per cases ( x in rng D or not x in rng D ) ;
suppose x in rng D ; :: thesis: ex j being Element of NAT st
( j in dom D & x in divset D,j )

then consider j being Element of NAT such that
A6: j in dom D and
A7: D . j = x by PARTFUN1:26;
x in divset D,j hence ex j being Element of NAT st
( j in dom D & x in divset D,j ) by A6; :: thesis: verum
end;
suppose A12: not x in rng D ; :: thesis: ex j being Element of NAT st
( j in dom D & x in divset D,j )

defpred S1[ Nat] means ( x < upper_bound (divset D,$1) & $1 in dom D );
A13: len D in dom D by FINSEQ_5:6;
upper_bound (divset D,(len D)) = D . (len D)
proof
per cases ( len D = 1 or len D <> 1 ) ;
end;
end;
then A14: upper_bound (divset D,(len D)) = upper_bound A by INTEGRA1:def 2;
x <> upper_bound A then x < upper_bound (divset D,(len D)) by A3, A14, XXREAL_0:1;
then A15: ex k being Nat st S1[k] by A13;
consider k being Nat such that
A16: ( S1[k] & ( for n being Nat st S1[n] holds
k <= n ) ) from NAT_1:sch 5(A15);
defpred S2[ Nat] means ( x >= lower_bound (divset D,$1) & $1 in dom D );
lower_bound (divset D,1) = lower_bound A by A5, INTEGRA1:def 5;
then A17: ex k being Nat st S2[k] by A2, A4, FINSEQ_3:34;
A18: for k being Nat st S2[k] holds
k <= len D by FINSEQ_3:27;
consider j being Nat such that
A19: ( S2[j] & ( for n being Nat st S2[n] holds
n <= j ) ) from NAT_1:sch 6(A18, A17);
k = j
proof
assume A20: k <> j ; :: thesis: contradiction
per cases ( k < j or k > j ) by A20, XXREAL_0:1;
suppose A25: k > j ; :: thesis: contradiction
end;
end;
end;
then x in divset D,k by A16, A19, INTEGRA2:1;
hence ex j being Element of NAT st
( j in dom D & x in divset D,j ) by A16; :: thesis: verum
end;
end;