let n, k be Nat; :: thesis: for x0 being Real
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & x0 in ['((k -' 1) / (n + 1)),(k / (n + 1))'] & f is_C^1-Class_on ['0,1'] holds
integral ((f `| rohl),['x0,(k / (n + 1))']) = (f . (upper_bound ['x0,(k / (n + 1))'])) - (f . (lower_bound ['x0,(k / (n + 1))']))

let x0 be Real; :: thesis: for f being PartFunc of REAL,REAL st k in Seg (n + 1) & x0 in ['((k -' 1) / (n + 1)),(k / (n + 1))'] & f is_C^1-Class_on ['0,1'] holds
integral ((f `| rohl),['x0,(k / (n + 1))']) = (f . (upper_bound ['x0,(k / (n + 1))'])) - (f . (lower_bound ['x0,(k / (n + 1))']))

let f be PartFunc of REAL,REAL; :: thesis: ( k in Seg (n + 1) & x0 in ['((k -' 1) / (n + 1)),(k / (n + 1))'] & f is_C^1-Class_on ['0,1'] implies integral ((f `| rohl),['x0,(k / (n + 1))']) = (f . (upper_bound ['x0,(k / (n + 1))'])) - (f . (lower_bound ['x0,(k / (n + 1))'])) )
set a = x0;
set b = k / (n + 1);
set X = rohl ;
assume A1: ( k in Seg (n + 1) & x0 in ['((k -' 1) / (n + 1)),(k / (n + 1))'] & f is_C^1-Class_on ['0,1'] ) ; :: thesis: integral ((f `| rohl),['x0,(k / (n + 1))']) = (f . (upper_bound ['x0,(k / (n + 1))'])) - (f . (lower_bound ['x0,(k / (n + 1))']))
then A2: ( f is_differentiable_on rohl & f `| rohl is continuous & ['0,1'] c= rohl & rohl c= dom f ) ;
A3: ['0,1'] = [.0,1.] by INTEGRA5:def 3;
1 <= k by A1, FINSEQ_1:1;
then k -' 1 <= k by XREAL_1:237;
then A5: ['((k -' 1) / (n + 1)),(k / (n + 1))'] = [.((k -' 1) / (n + 1)),(k / (n + 1)).] by INTEGRA5:def 3, XREAL_1:72;
then A6: x0 <= k / (n + 1) by A1, XXREAL_1:1;
A7: 0 <= x0 by A5, A1, XXREAL_1:1;
k <= n + 1 by A1, FINSEQ_1:1;
then k / (n + 1) <= (n + 1) / (n + 1) by XREAL_1:72;
then k / (n + 1) <= 1 by XCMPLX_1:60;
then [.x0,(k / (n + 1)).] c= ['0,1'] by A3, A7, XXREAL_1:34;
then ['x0,(k / (n + 1))'] c= ['0,1'] by A6, INTEGRA5:def 3;
then A8: ['x0,(k / (n + 1))'] c= rohl by A2;
( (f `| rohl) | ['x0,(k / (n + 1))'] is continuous & f `| rohl is_integrable_on ['x0,(k / (n + 1))'] & (f `| rohl) | ['x0,(k / (n + 1))'] is bounded ) by A1, Lm5;
hence integral ((f `| rohl),['x0,(k / (n + 1))']) = (f . (upper_bound ['x0,(k / (n + 1))'])) - (f . (lower_bound ['x0,(k / (n + 1))'])) by A8, A1, INTEGRA5:13; :: thesis: verum