Lm1:
for n being Nat holds divset ((EqDiv (['0,1'],(n + 1))),1) = [.0,(1 / (n + 1)).]
Lm2:
for r being Real holds const r is constant Function of REAL,REAL
Lm3:
for r being Real holds
( const r is total & rng (const r) = {r} )
Lm4:
for n, k being Nat
for m being non zero Nat
for x0, r being Real st k in Seg (n + 1) & x0 in ['((k -' 1) / (n + 1)),(k / (n + 1))'] holds
( ['x0,(k / (n + 1))'] c= dom (const r) & (const r) | ['x0,(k / (n + 1))'] is continuous & const r is_integrable_on ['x0,(k / (n + 1))'] & (const r) | ['x0,(k / (n + 1))'] is bounded )
Lm5:
for n, k being Nat
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
( (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 )
Lm6:
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
( (f `| rohl) | ['0,1'] is continuous & f `| rohl is_integrable_on ['0,1'] & (f `| rohl) | ['0,1'] is bounded )
Lm7:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
( (f `| rohl) | ['((k -' 1) / (n + 1)),(k / (n + 1))'] is continuous & f `| rohl is_integrable_on ['((k -' 1) / (n + 1)),(k / (n + 1))'] & (f `| rohl) | ['((k -' 1) / (n + 1)),(k / (n + 1))'] is bounded )
Lm8:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
for x being Real st x in ['((k -' 1) / (n + 1)),(k / (n + 1))'] holds
(f `| rohl) . x <= upper_bound (rng ((f `| rohl) | ['((k -' 1) / (n + 1)),(k / (n + 1))']))
Lm9:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
for x being Real st x in ['((k -' 1) / (n + 1)),(k / (n + 1))'] holds
lower_bound (rng ((f `| rohl) | ['((k -' 1) / (n + 1)),(k / (n + 1))'])) <= (f `| rohl) . x
theorem Th5:
for
n,
k being
Nat 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 (
(const ((UPBND_rng_d (f,n)) . k)),
x0,
(k / (n + 1)))
= ((UPBND_rng_d (f,n)) . k) * ((k / (n + 1)) - x0) &
integral (
(const ((LWBND_rng_d (f,n)) . k)),
x0,
(k / (n + 1)))
= ((LWBND_rng_d (f,n)) . k) * ((k / (n + 1)) - x0) )
Lm10:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
for x being Real st x in ['((k -' 1) / (n + 1)),(k / (n + 1))'] holds
( ((const (f . (k / (n + 1)))) + (- f)) . x <= (((UPBND_rng_d (f,n)) . k) (#) (ax_+_b ((- 1),(k / (n + 1))))) . x & (((LWBND_rng_d (f,n)) . k) (#) (ax_+_b ((- 1),(k / (n + 1))))) . x <= ((const (f . (k / (n + 1)))) + (- f)) . x & ((f . (k / (n + 1))) + (- f)) . x = ((const (f . (k / (n + 1)))) + (- f)) . x )
Lm11A:
for n, k being Nat st k in Seg (n + 1) holds
( (k -' 1) / (n + 1) <= k / (n + 1) & ['((k -' 1) / (n + 1)),(k / (n + 1))'] c= dom (ax_+_b ((- 1),(k / (n + 1)))) )
Lm11:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
( ax_+_b ((- 1),(k / (n + 1))) is_integrable_on ['((k -' 1) / (n + 1)),(k / (n + 1))'] & (ax_+_b ((- 1),(k / (n + 1)))) | ['((k -' 1) / (n + 1)),(k / (n + 1))'] is bounded & integral ((((LWBND_rng_d (f,n)) . k) (#) (ax_+_b ((- 1),(k / (n + 1))))),((k -' 1) / (n + 1)),(k / (n + 1))) = (((LWBND_rng_d (f,n)) . k) * ((1 / (n + 1)) ^2)) / 2 & integral ((((UPBND_rng_d (f,n)) . k) (#) (ax_+_b ((- 1),(k / (n + 1))))),((k -' 1) / (n + 1)),(k / (n + 1))) = (((UPBND_rng_d (f,n)) . k) * ((1 / (n + 1)) ^2)) / 2 )
Lm12:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
( ['((k -' 1) / (n + 1)),(k / (n + 1))'] c= dom (- f) & ['((k -' 1) / (n + 1)),(k / (n + 1))'] c= dom (const (f . (k / (n + 1)))) & - f is_integrable_on ['((k -' 1) / (n + 1)),(k / (n + 1))'] & (- f) | ['((k -' 1) / (n + 1)),(k / (n + 1))'] is bounded & const (f . (k / (n + 1))) is_integrable_on ['((k -' 1) / (n + 1)),(k / (n + 1))'] & (const (f . (k / (n + 1)))) | ['((k -' 1) / (n + 1)),(k / (n + 1))'] is bounded & integral (((const (f . (k / (n + 1)))) + (- f)),((k -' 1) / (n + 1)),(k / (n + 1))) = (integral ((const (f . (k / (n + 1)))),((k -' 1) / (n + 1)),(k / (n + 1)))) + (integral ((- f),((k -' 1) / (n + 1)),(k / (n + 1)))) )
Lm13:
for n being non zero Nat
for k being Nat
for f being PartFunc of REAL,REAL st k in Seg n & f is_C^1-Class_on ['0,1'] holds
( - f is_integrable_on ['0,(k / n)'] & (- f) | ['0,(k / n)'] is bounded & ['0,(k / n)'] c= dom (- f) )
Lm14:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
(n + 1) * (upper_volume ((@' (f,['0,1'])),(EqDiv (['0,1'],(n + 1))))) = UPBND_rng_d (f,n)
Lm15:
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
Sum_UPBND_rng_d f = upper_sum ((@' (f,['0,1'])),D[01])
Lm16:
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
( upper_sum ((@' (f,['0,1'])),D[01]) is convergent & lim (upper_sum ((@' (f,['0,1'])),D[01])) = upper_integral (@' (f,['0,1'])) & Sum_UPBND_rng_d f is convergent & lim (Sum_UPBND_rng_d f) = upper_integral (@' (f,['0,1'])) )
Lm17:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
(n + 1) * (lower_volume ((@' (f,['0,1'])),(EqDiv (['0,1'],(n + 1))))) = LWBND_rng_d (f,n)
Lm18:
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
Sum_LWBND_rng_d f = lower_sum ((@' (f,['0,1'])),D[01])
Lm19:
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
( lower_sum ((@' (f,['0,1'])),D[01]) is convergent & lim (lower_sum ((@' (f,['0,1'])),D[01])) = lower_integral (@' (f,['0,1'])) & Sum_LWBND_rng_d f is convergent & lim (Sum_LWBND_rng_d f) = lower_integral (@' (f,['0,1'])) )
Lm20:
for f being PartFunc of REAL,REAL
for n being Nat st f is_C^1-Class_on ['0,1'] holds
for k being Nat st k in Seg (n + 1) holds
integral ((const (f . (k / (n + 1)))),((k -' 1) / (n + 1)),(k / (n + 1))) = ((In ((1 / (n + 1)),F_Real)) * (step_ (f,n))) . k
Lm21:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
(integral ((- f),0,(n / (n + 1)))) + (integral ((- f),(n / (n + 1)),1)) = integral ((- f),0,1)
Lm22:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
Sum ('G' (f,n)) = integral ((- f),0,1)
Lm23:
for n, k being Nat
for f being PartFunc of REAL,REAL st k in Seg (n + 1) & f is_C^1-Class_on ['0,1'] holds
( (((LWBND_rng_d (f,n)) . k) * ((1 / (n + 1)) ^2)) / 2 <= integral (((const (f . (k / (n + 1)))) + (- f)),((k -' 1) / (n + 1)),(k / (n + 1))) & integral (((const (f . (k / (n + 1)))) + (- f)),((k -' 1) / (n + 1)),(k / (n + 1))) <= (((UPBND_rng_d (f,n)) . k) * ((1 / (n + 1)) ^2)) / 2 )
Lm24:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
for k being Nat st k in Seg (n + 1) holds
(((In ((1 / (n + 1)),F_Real)) * (step_ (f,n))) + ('G' (f,n))) . k = integral (((const (f . (k / (n + 1)))) + (- f)),((k -' 1) / (n + 1)),(k / (n + 1)))
Lm25:
for a, b being Element of F_Real
for p being FinSequence of the carrier of F_Real holds (a * b) * p = a * (b * p)
Lm26:
for p being FinSequence of the carrier of F_Real holds (1. F_Real) * p = p
Lm27:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
(Sum (step_ (f,n))) + ((n + 1) * (integral ((- f),0,1))) <= (1 / 2) * ((upper_sum ((@' (f,['0,1'])),D[01])) . n)
Lm28:
for n being Nat
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
(1 / 2) * ((lower_sum ((@' (f,['0,1'])),D[01])) . n) <= (Sum (step_ (f,n))) + ((n + 1) * (integral ((- f),0,1)))
Lm30:
for f being PartFunc of REAL,REAL st f is_C^1-Class_on ['0,1'] holds
( w_seq f is convergent & ( for p being Real st 0 < p holds
ex n being Nat st
for m being Nat st n <= m holds
|.(((w_seq f) . m) - ((1 / 2) * (integral ((f `| rohl) || ['0,1'])))).| < p ) )
Lm31:
for c being Real holds x_+_ c = (id REAL) + (const c)
Lm32:
for c being Real holds x_+_ c is differentiable
Lm33:
for c being Real
for Z being open Subset of REAL holds x_+_ c is_differentiable_on Z
Lm34:
for c being Real holds (x_+_ c) `| REAL = REAL --> 1
Lm35:
for c being Real holds (x_+_ c) `| rohl = rohl --> 1
Lm36:
for x1 being Real st x1 in right_open_halfline (- 1) holds
( x1 in support (x_+_ 1) & x_+_ 1 <> 0 & (x_+_ 1) . x1 <> 0 )
Lm37:
for x0 being Real st x0 in right_open_halfline (- 1) holds
(x_+_ 1) ^ is_continuous_in x0
Lm38:
for f being Function holds f " {0} = ZeroPointSet f
Lm39:
for f being Function holds support f = (dom f) \ (ZeroPointSet f)
Lm40:
for f being real-valued Function holds dom (f ^) = support f
Lm41:
for x being Real st x in right_open_halfline (- 1) holds
x + 1 in right_open_halfline 0
Lm42:
( ((x_+_ 1) ^) | (right_open_halfline (- 1)) is continuous & right_open_halfline (- 1) c= dom ((x_+_ 1) ^) & dom (((x_+_ 1) ^) | (right_open_halfline (- 1))) = right_open_halfline (- 1) )
Lm43:
for x being Real st x in right_open_halfline (- 1) holds
( ((x_+_ 1) | rohl) . x = 1 + x & ((x_+_ 1) | rohl) . x > 0 )
Lm44:
for x being Real st x in rohl holds
(((x_+_ 1) ^) | rohl) . x = 1 / (1 + x)
Lm45:
for x0 being Real st x0 in right_open_halfline (- 1) holds
(x_+_ 1) | rohl is_differentiable_in x0
Lm46:
rng ((x_+_ 1) | rohl) = right_open_halfline 0
Lm47:
( dom ((x_+_ 1) | rohl) = right_open_halfline (- 1) & dom (ln * ((x_+_ 1) | rohl)) = right_open_halfline (- 1) )
Lm48:
for n being Nat holds n in right_open_halfline (- 1)
Lm49:
for r being Real st r >= 0 holds
r in right_open_halfline (- 1)
Lm50:
( dom ((x_+_ 1) | rohl) = rohl & 1 in dom ((x_+_ 1) | rohl) & 0 in dom ((x_+_ 1) | rohl) & ((x_+_ 1) | rohl) . 0 = 1 & ((x_+_ 1) | rohl) . 1 = 2 & (ln * ((x_+_ 1) | rohl)) . 1 = ln . 2 & (ln * ((x_+_ 1) | rohl)) . 0 = 0 & (ln * ((x_+_ 1) | rohl)) . 0 = ln . 1 )
Lm51:
ln * ((x_+_ 1) | rohl) is_C^1-Class_on ['0,1']
Lm53:
for m being non zero Nat
for k being Nat holds (Partial_Sums (Step_ ((ln * ((x_+_ 1) | rohl)),m))) . k = ln . (((k + m) !) / ((m ^ k) * (m !)))
Lm54:
for m being non zero Nat holds Sum (step_ ((ln * ((x_+_ 1) | rohl)),(m -' 1))) = ln . (((m + m) !) / ((m ^ m) * (m !)))
Lm56:
(1 / 2) * (ln . 2) = ln . (2 #R (1 / 2))
Lm58:
for n being Nat holds W_STIRL . n > 0
Lm59:
exp_R /* (w_seq (ln * ((x_+_ 1) | rohl))) = W_STIRL
Lm60:
for n being Nat holds (Stirl_Seq ^\ 1) . n = (W_STIRL /" (sqrt Wallis_Seq)) . n