let A be closed-interval Subset of REAL ; :: thesis: for D being Division of A holds Sum (lower_volume (chi A,A),D) = vol A
let D be Division of A; :: thesis: Sum (lower_volume (chi A,A),D) = vol A
deffunc H1( Nat) -> Real = vol (divset D,$1);
consider p being FinSequence of REAL such that
A1:
( len p = len D & ( for i being Nat st i in dom p holds
p . i = H1(i) ) )
from FINSEQ_2:sch 1();
A2:
dom p = Seg (len D)
by A1, FINSEQ_1:def 3;
A3:
for i being Element of NAT st i in Seg (len D) holds
p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
proof
let i be
Element of
NAT ;
:: thesis: ( i in Seg (len D) implies p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i)) )
assume A4:
i in Seg (len D)
;
:: thesis: p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
vol (divset D,i) = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
;
hence
p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
by A1, A4, A2;
:: thesis: verum
end;
(len D) - 1 in NAT
then reconsider k = (len D) - 1 as Element of NAT ;
deffunc H2( Nat) -> Element of REAL = upper_bound (divset D,$1);
consider s1 being FinSequence of REAL such that
A6:
( len s1 = k & ( for i being Nat st i in dom s1 holds
s1 . i = H2(i) ) )
from FINSEQ_2:sch 1();
deffunc H3( Nat) -> Element of REAL = lower_bound (divset D,($1 + 1));
consider s2 being FinSequence of REAL such that
A8:
( len s2 = k & ( for i being Nat st i in dom s2 holds
s2 . i = H3(i) ) )
from FINSEQ_2:sch 1();
A9:
dom s2 = Seg k
by A8, FINSEQ_1:def 3;
A10:
for i being Element of NAT st i in Seg k holds
upper_bound (divset D,i) = lower_bound (divset D,(i + 1))
A18:
s1 = s2
A20:
( len (s1 ^ <*(upper_bound A)*>) = len (<*(lower_bound A)*> ^ s2) & len (s1 ^ <*(upper_bound A)*>) = len p & ( for i being Element of NAT st i in dom (s1 ^ <*(upper_bound A)*>) holds
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i) ) )
proof
dom <*(upper_bound A)*> = Seg 1
by FINSEQ_1:def 8;
then A21:
len <*(upper_bound A)*> = 1
by FINSEQ_1:def 3;
dom <*(lower_bound A)*> = Seg 1
by FINSEQ_1:def 8;
then A22:
len <*(lower_bound A)*> = 1
by FINSEQ_1:def 3;
A23:
len (s1 ^ <*(upper_bound A)*>) = k + 1
by A6, A21, FINSEQ_1:35;
hence A24:
len (s1 ^ <*(upper_bound A)*>) = len (<*(lower_bound A)*> ^ s2)
by A8, A22, FINSEQ_1:35;
:: thesis: ( len (s1 ^ <*(upper_bound A)*>) = len p & ( for i being Element of NAT st i in dom (s1 ^ <*(upper_bound A)*>) holds
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i) ) )
thus
len (s1 ^ <*(upper_bound A)*>) = len p
by A1, A23;
:: thesis: for i being Element of NAT st i in dom (s1 ^ <*(upper_bound A)*>) holds
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
let i be
Element of
NAT ;
:: thesis: ( i in dom (s1 ^ <*(upper_bound A)*>) implies p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i) )
assume A25:
i in dom (s1 ^ <*(upper_bound A)*>)
;
:: thesis: p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
A26:
i in dom (<*(lower_bound A)*> ^ s2)
A27:
(
len D = 1 or
len D >= 2 )
A28:
(s1 ^ <*(upper_bound A)*>) /. i = (s1 ^ <*(upper_bound A)*>) . i
by A25, PARTFUN1:def 8;
A29:
(<*(lower_bound A)*> ^ s2) /. i = (<*(lower_bound A)*> ^ s2) . i
by A26, PARTFUN1:def 8;
now per cases
( len D = 1 or len D >= 2 )
by A27;
suppose A30:
len D = 1
;
:: thesis: p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)then A31:
i in Seg 1
by A23, A25, FINSEQ_1:def 3;
then A32:
i = 1
by FINSEQ_1:4, TARSKI:def 1;
A33:
(
i in Seg (len D) &
i in dom D )
by A30, A31, FINSEQ_1:def 3;
s1 = {}
by A6, A30;
then
s1 ^ <*(upper_bound A)*> = <*(upper_bound A)*>
by FINSEQ_1:47;
then A34:
(s1 ^ <*(upper_bound A)*>) /. i = upper_bound A
by A28, A32, FINSEQ_1:def 8;
s2 = {}
by A8, A30;
then
<*(lower_bound A)*> ^ s2 = <*(lower_bound A)*>
by FINSEQ_1:47;
then A35:
(<*(lower_bound A)*> ^ s2) /. i = lower_bound A
by A29, A32, FINSEQ_1:def 8;
D . i = upper_bound A
by A30, A32, Def2;
then A36:
upper_bound (divset D,i) = upper_bound A
by A32, A33, Def5;
p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
by A3, A30, A31;
hence
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
by A32, A33, A34, A35, A36, Def5;
:: thesis: verum end; suppose A37:
len D >= 2
;
:: thesis: p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)A38:
k >= 1
now per cases
( i = 1 or i = len D or ( i <> 1 & i <> len D ) )
;
suppose A39:
i = 1
;
:: thesis: p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)A40:
(
i in Seg (len D) &
i in dom D )
A42:
(
i in Seg 1 &
i in Seg k &
i in dom s1 )
then
(s1 ^ <*(upper_bound A)*>) . i = s1 . i
by FINSEQ_1:def 7;
then A44:
(s1 ^ <*(upper_bound A)*>) . i = upper_bound (divset D,i)
by A6, A42;
A45:
(<*(lower_bound A)*> ^ s2) . i = lower_bound A
p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
by A3, A40;
hence
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
by A28, A29, A39, A40, A44, A45, Def5;
:: thesis: verum end; suppose A46:
i = len D
;
:: thesis: p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)A47:
(
i in Seg (len D) &
i in dom D )
A48:
(
i - (len s1) = 1 &
i - (len s1) in dom <*(upper_bound A)*> &
i = (i - (len s1)) + (len s1) &
i <> 1 )
then
(s1 ^ <*(upper_bound A)*>) . i = <*(upper_bound A)*> . (i - (len s1))
by FINSEQ_1:def 7;
then A49:
(s1 ^ <*(upper_bound A)*>) /. i = upper_bound A
by A28, A48, FINSEQ_1:def 8;
A50:
(
i - (len <*(lower_bound A)*>) = i - 1 &
(len <*(lower_bound A)*>) + (i - (len <*(lower_bound A)*>)) = i &
i - 1
in Seg k &
i - (len <*(lower_bound A)*>) in dom s2 &
(i - 1) + 1
= i )
A52:
(<*(lower_bound A)*> ^ s2) . i = D . (i - 1)
p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
by A3, A47;
then
p . i = (upper_bound (divset D,i)) - (D . (i - 1))
by A47, A48, Def5;
then
p . i = (D . i) - (D . (i - 1))
by A47, A48, Def5;
hence
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
by A29, A46, A49, A52, Def2;
:: thesis: verum end; suppose A54:
(
i <> 1 &
i <> len D )
;
:: thesis: p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)A55:
(
i in Seg (len D) &
i in dom D )
A57:
(
i in dom s1 &
i in Seg k &
i - 1
in Seg k &
(i - 1) + 1
= i &
i - (len <*(lower_bound A)*>) in dom s2 )
proof
A58:
( 1
<= i &
i <= len D )
by A55, FINSEQ_1:3;
then A59:
( 1
<= i &
i < k + 1 )
by A54, XXREAL_0:1;
then A60:
( 1
<= i &
i <= k )
by NAT_1:13;
then
i in Seg (len s1)
by A6, FINSEQ_1:3;
hence
i in dom s1
by FINSEQ_1:def 3;
:: thesis: ( i in Seg k & i - 1 in Seg k & (i - 1) + 1 = i & i - (len <*(lower_bound A)*>) in dom s2 )
thus
i in Seg k
by A60, FINSEQ_1:3;
:: thesis: ( i - 1 in Seg k & (i - 1) + 1 = i & i - (len <*(lower_bound A)*>) in dom s2 )
consider j being
Nat such that A61:
i = 1
+ j
by A58, NAT_1:10;
(
i <> 0 &
i <> 1 )
by A54, A55, FINSEQ_1:3;
then
not
i is
trivial
by NAT_2:def 1;
then
(
i >= 2 &
i <= k )
by A59, NAT_1:13, NAT_2:31;
then
(
i >= 1
+ 1 &
i - 1
<= k - 1 )
by XREAL_1:11;
then
(
i - 1
>= 1 &
(i - 1) + 0 <= (k - 1) + 1 )
by XREAL_1:9, XREAL_1:21;
hence
i - 1
in Seg k
by A61, FINSEQ_1:3;
:: thesis: ( (i - 1) + 1 = i & i - (len <*(lower_bound A)*>) in dom s2 )
then A62:
i - (len <*(lower_bound A)*>) in Seg (len s2)
by A8, FINSEQ_1:56;
thus
(i - 1) + 1
= i
;
:: thesis: i - (len <*(lower_bound A)*>) in dom s2
thus
i - (len <*(lower_bound A)*>) in dom s2
by A62, FINSEQ_1:def 3;
:: thesis: verum
end; A63:
(s1 ^ <*(upper_bound A)*>) . i = D . i
A64:
(<*(lower_bound A)*> ^ s2) . i = D . (i - 1)
p . i = (upper_bound (divset D,i)) - (lower_bound (divset D,i))
by A3, A55;
then
p . i = (upper_bound (divset D,i)) - (D . (i - 1))
by A54, A55, Def5;
hence
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
by A28, A29, A54, A55, A63, A64, Def5;
:: thesis: verum end; end; end; hence
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
;
:: thesis: verum end; end; end;
hence
p . i = ((s1 ^ <*(upper_bound A)*>) /. i) - ((<*(lower_bound A)*> ^ s2) /. i)
;
:: thesis: verum
end;
A67:
Sum p = (((Sum s1) + (upper_bound A)) - (lower_bound A)) - (Sum s2)
Sum (lower_volume (chi A,A),D) = Sum p
proof
lower_volume (chi A,A),
D = p
proof
A68:
(
len (lower_volume (chi A,A),D) = len D &
len p = len D )
by A1, Def8;
then X:
dom (lower_volume (chi A,A),D) = Seg (len D)
by FINSEQ_1:def 3;
for
i being
Nat st
i in dom (lower_volume (chi A,A),D) holds
(lower_volume (chi A,A),D) . i = p . i
proof
let i be
Nat;
:: thesis: ( i in dom (lower_volume (chi A,A),D) implies (lower_volume (chi A,A),D) . i = p . i )
assume A69:
i in dom (lower_volume (chi A,A),D)
;
:: thesis: (lower_volume (chi A,A),D) . i = p . i
then
i in dom D
by A68, FINSEQ_3:31;
then
(lower_volume (chi A,A),D) . i = vol (divset D,i)
by Th21;
hence
(lower_volume (chi A,A),D) . i = p . i
by A1, A69, A2, X;
:: thesis: verum
end;
hence
lower_volume (chi A,A),
D = p
by A68, FINSEQ_2:10;
:: thesis: verum
end;
hence
Sum (lower_volume (chi A,A),D) = Sum p
;
:: thesis: verum
end;
hence
Sum (lower_volume (chi A,A),D) = vol A
by A18, A67; :: thesis: verum