:: MEASURE7 semantic presentation

theorem Th1: :: MEASURE7:1
for b1 being Function of NAT , ExtREAL st ( for b2 being Nat holds b1 . b2 = 0. ) holds
SUM b1 = 0.
proof end;

theorem Th2: :: MEASURE7:2
for b1 being Function of NAT , ExtREAL st b1 is nonnegative holds
for b2 being Nat holds b1 . b2 <=' (Ser b1) . b2
proof end;

theorem Th3: :: MEASURE7:3
for b1, b2, b3 being Function of NAT , ExtREAL st b2 is nonnegative & b3 is nonnegative & ( for b4 being Nat holds b1 . b4 = (b2 . b4) + (b3 . b4) ) holds
for b4 being Nat holds (Ser b1) . b4 = ((Ser b2) . b4) + ((Ser b3) . b4)
proof end;

theorem Th4: :: MEASURE7:4
for b1, b2, b3 being Function of NAT , ExtREAL st ( for b4 being Nat holds b1 . b4 = (b2 . b4) + (b3 . b4) ) & b2 is nonnegative & b3 is nonnegative holds
SUM b1 <=' (SUM b2) + (SUM b3)
proof end;

theorem Th5: :: MEASURE7:5
canceled;

theorem Th6: :: MEASURE7:6
for b1, b2 being Function of NAT , ExtREAL st b1 is nonnegative & ( for b3 being Nat holds b1 . b3 <=' b2 . b3 ) holds
for b3 being Nat holds (Ser b1) . b3 <=' SUM b2
proof end;

theorem Th7: :: MEASURE7:7
for b1 being Function of NAT , ExtREAL st b1 is nonnegative holds
for b2 being Nat holds (Ser b1) . b2 <=' SUM b1
proof end;

definition
let c1 be non empty Subset of NAT ;
let c2 be Function of c1, NAT ;
let c3 be Element of c1;
redefine func . as c2 . c3 -> Nat;
correctness
coherence
c2 . c3 is Nat
;
proof end;
end;

definition
let c1 be non empty set ;
let c2 be Function of c1, ExtREAL ;
func On c2 -> Function of NAT , ExtREAL means :Def1: :: MEASURE7:def 1
for b1 being Element of NAT holds
( ( b1 in a1 implies a3 . b1 = a2 . b1 ) & ( not b1 in a1 implies a3 . b1 = 0. ) );
existence
ex b1 being Function of NAT , ExtREAL st
for b2 being Element of NAT holds
( ( b2 in c1 implies b1 . b2 = c2 . b2 ) & ( not b2 in c1 implies b1 . b2 = 0. ) )
proof end;
uniqueness
for b1, b2 being Function of NAT , ExtREAL st ( for b3 being Element of NAT holds
( ( b3 in c1 implies b1 . b3 = c2 . b3 ) & ( not b3 in c1 implies b1 . b3 = 0. ) ) ) & ( for b3 being Element of NAT holds
( ( b3 in c1 implies b2 . b3 = c2 . b3 ) & ( not b3 in c1 implies b2 . b3 = 0. ) ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def1 defines On MEASURE7:def 1 :
for b1 being non empty set
for b2 being Function of b1, ExtREAL
for b3 being Function of NAT , ExtREAL holds
( b3 = On b2 iff for b4 being Element of NAT holds
( ( b4 in b1 implies b3 . b4 = b2 . b4 ) & ( not b4 in b1 implies b3 . b4 = 0. ) ) );

theorem Th8: :: MEASURE7:8
for b1 being non empty set
for b2 being Function of b1, ExtREAL st b2 is nonnegative holds
On b2 is nonnegative
proof end;

theorem Th9: :: MEASURE7:9
for b1 being Function of NAT , ExtREAL st b1 is nonnegative holds
for b2, b3 being Nat st b2 <= b3 holds
(Ser b1) . b2 <=' (Ser b1) . b3
proof end;

theorem Th10: :: MEASURE7:10
for b1 being Nat
for b2 being Function of NAT , ExtREAL st ( for b3 being Nat st b3 <> b1 holds
b2 . b3 = 0. ) holds
( ( for b3 being Nat st b3 < b1 holds
(Ser b2) . b3 = 0. ) & ( for b3 being Nat st b1 <= b3 holds
(Ser b2) . b3 = b2 . b1 ) )
proof end;

theorem Th11: :: MEASURE7:11
for b1 being Function of NAT , ExtREAL st b1 is nonnegative holds
for b2 being non empty Subset of NAT
for b3 being Function of b2, NAT st b3 is one-to-one holds
SUM (On (b1 * b3)) <=' SUM b1
proof end;

theorem Th12: :: MEASURE7:12
for b1, b2 being Function of NAT , ExtREAL st b1 is nonnegative & b2 is nonnegative holds
for b3 being non empty Subset of NAT
for b4 being Function of b3, NAT st b4 is one-to-one & ( for b5 being Nat holds
( ( b5 in b3 implies b1 . b5 = (b2 * b4) . b5 ) & ( not b5 in b3 implies b1 . b5 = 0. ) ) ) holds
SUM b1 <=' SUM b2
proof end;

Lemma13: REAL c= REAL
;

then consider c1 being Function of NAT , bool REAL such that
Lemma14: rng c1 = {REAL } by MEASURE1:34;

REAL in {REAL }
by TARSKI:def 1;

then Lemma15: REAL c= union (rng c1)
by Lemma14, ZFMISC_1:92;

Lemma16: for b1 being Nat holds c1 . b1 is Interval
proof end;

definition
let c2 be Subset of REAL ;
mode Interval_Covering of c1 -> Function of NAT , bool REAL means :Def2: :: MEASURE7:def 2
( a1 c= union (rng a2) & ( for b1 being Nat holds a2 . b1 is Interval ) );
existence
ex b1 being Function of NAT , bool REAL st
( c2 c= union (rng b1) & ( for b2 being Nat holds b1 . b2 is Interval ) )
proof end;
end;

:: deftheorem Def2 defines Interval_Covering MEASURE7:def 2 :
for b1 being Subset of REAL
for b2 being Function of NAT , bool REAL holds
( b2 is Interval_Covering of b1 iff ( b1 c= union (rng b2) & ( for b3 being Nat holds b2 . b3 is Interval ) ) );

definition
let c2 be Subset of REAL ;
let c3 be Interval_Covering of c2;
let c4 be Nat;
redefine func . as c2 . c3 -> Interval;
correctness
coherence
c3 . c4 is Interval
;
by Def2;
end;

definition
let c2 be Function of NAT , bool REAL ;
mode Interval_Covering of c1 -> Function of NAT , Funcs NAT ,(bool REAL ) means :Def3: :: MEASURE7:def 3
for b1 being Nat holds a2 . b1 is Interval_Covering of a1 . b1;
existence
ex b1 being Function of NAT , Funcs NAT ,(bool REAL ) st
for b2 being Nat holds b1 . b2 is Interval_Covering of c2 . b2
proof end;
end;

:: deftheorem Def3 defines Interval_Covering MEASURE7:def 3 :
for b1 being Function of NAT , bool REAL
for b2 being Function of NAT , Funcs NAT ,(bool REAL ) holds
( b2 is Interval_Covering of b1 iff for b3 being Nat holds b2 . b3 is Interval_Covering of b1 . b3 );

definition
let c2 be Subset of REAL ;
let c3 be Interval_Covering of c2;
deffunc H1( Nat) -> Element of ExtREAL = vol (c3 . a1);
func c2 vol -> Function of NAT , ExtREAL means :Def4: :: MEASURE7:def 4
for b1 being Nat holds a3 . b1 = vol (a2 . b1);
existence
ex b1 being Function of NAT , ExtREAL st
for b2 being Nat holds b1 . b2 = vol (c3 . b2)
proof end;
uniqueness
for b1, b2 being Function of NAT , ExtREAL st ( for b3 being Nat holds b1 . b3 = vol (c3 . b3) ) & ( for b3 being Nat holds b2 . b3 = vol (c3 . b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def4 defines vol MEASURE7:def 4 :
for b1 being Subset of REAL
for b2 being Interval_Covering of b1
for b3 being Function of NAT , ExtREAL holds
( b3 = b2 vol iff for b4 being Nat holds b3 . b4 = vol (b2 . b4) );

theorem Th13: :: MEASURE7:13
for b1 being Subset of REAL
for b2 being Interval_Covering of b1 holds b2 vol is nonnegative
proof end;

definition
let c2 be Function of NAT , bool REAL ;
let c3 be Interval_Covering of c2;
let c4 be Nat;
redefine func . as c2 . c3 -> Interval_Covering of a1 . a3;
correctness
coherence
c3 . c4 is Interval_Covering of c2 . c4
;
by Def3;
end;

definition
let c2 be Function of NAT , bool REAL ;
let c3 be Interval_Covering of c2;
func c2 vol -> Function of NAT , Funcs NAT ,ExtREAL means :: MEASURE7:def 5
for b1 being Nat holds a3 . b1 = (a2 . b1) vol ;
existence
ex b1 being Function of NAT , Funcs NAT ,ExtREAL st
for b2 being Nat holds b1 . b2 = (c3 . b2) vol
proof end;
uniqueness
for b1, b2 being Function of NAT , Funcs NAT ,ExtREAL st ( for b3 being Nat holds b1 . b3 = (c3 . b3) vol ) & ( for b3 being Nat holds b2 . b3 = (c3 . b3) vol ) holds
b1 = b2
proof end;
end;

:: deftheorem Def5 defines vol MEASURE7:def 5 :
for b1 being Function of NAT , bool REAL
for b2 being Interval_Covering of b1
for b3 being Function of NAT , Funcs NAT ,ExtREAL holds
( b3 = b2 vol iff for b4 being Nat holds b3 . b4 = (b2 . b4) vol );

definition
let c2 be Subset of REAL ;
let c3 be Interval_Covering of c2;
func vol c2 -> R_eal equals :: MEASURE7:def 6
SUM (a2 vol );
correctness
coherence
SUM (c3 vol ) is R_eal
;
;
end;

:: deftheorem Def6 defines vol MEASURE7:def 6 :
for b1 being Subset of REAL
for b2 being Interval_Covering of b1 holds vol b2 = SUM (b2 vol );

definition
let c2 be Function of NAT , bool REAL ;
let c3 be Interval_Covering of c2;
func vol c2 -> Function of NAT , ExtREAL means :Def7: :: MEASURE7:def 7
for b1 being Nat holds a3 . b1 = vol (a2 . b1);
existence
ex b1 being Function of NAT , ExtREAL st
for b2 being Nat holds b1 . b2 = vol (c3 . b2)
proof end;
uniqueness
for b1, b2 being Function of NAT , ExtREAL st ( for b3 being Nat holds b1 . b3 = vol (c3 . b3) ) & ( for b3 being Nat holds b2 . b3 = vol (c3 . b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def7 defines vol MEASURE7:def 7 :
for b1 being Function of NAT , bool REAL
for b2 being Interval_Covering of b1
for b3 being Function of NAT , ExtREAL holds
( b3 = vol b2 iff for b4 being Nat holds b3 . b4 = vol (b2 . b4) );

theorem Th14: :: MEASURE7:14
for b1 being Function of NAT , bool REAL
for b2 being Interval_Covering of b1
for b3 being Nat holds 0. <=' (vol b2) . b3
proof end;

definition
let c2 be Subset of REAL ;
defpred S1[ set ] means ex b1 being Interval_Covering of c2 st a1 = vol b1;
func Svc c1 -> Subset of ExtREAL means :Def8: :: MEASURE7:def 8
for b1 being R_eal holds
( b1 in a2 iff ex b2 being Interval_Covering of a1 st b1 = vol b2 );
existence
ex b1 being Subset of ExtREAL st
for b2 being R_eal holds
( b2 in b1 iff ex b3 being Interval_Covering of c2 st b2 = vol b3 )
proof end;
uniqueness
for b1, b2 being Subset of ExtREAL st ( for b3 being R_eal holds
( b3 in b1 iff ex b4 being Interval_Covering of c2 st b3 = vol b4 ) ) & ( for b3 being R_eal holds
( b3 in b2 iff ex b4 being Interval_Covering of c2 st b3 = vol b4 ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def8 defines Svc MEASURE7:def 8 :
for b1 being Subset of REAL
for b2 being Subset of ExtREAL holds
( b2 = Svc b1 iff for b3 being R_eal holds
( b3 in b2 iff ex b4 being Interval_Covering of b1 st b3 = vol b4 ) );

registration
let c2 be Subset of REAL ;
cluster Svc a1 -> non empty ;
coherence
not Svc c2 is empty
proof end;
end;

definition
let c2 be Subset of REAL ;
func COMPLEX c1 -> Element of ExtREAL equals :: MEASURE7:def 9
inf (Svc a1);
correctness
coherence
inf (Svc c2) is Element of ExtREAL
;
;
end;

:: deftheorem Def9 defines COMPLEX MEASURE7:def 9 :
for b1 being Subset of REAL holds COMPLEX b1 = inf (Svc b1);

definition
func OS_Meas -> Function of bool REAL , ExtREAL means :Def10: :: MEASURE7:def 10
for b1 being Subset of REAL holds a1 . b1 = inf (Svc b1);
existence
ex b1 being Function of bool REAL , ExtREAL st
for b2 being Subset of REAL holds b1 . b2 = inf (Svc b2)
proof end;
uniqueness
for b1, b2 being Function of bool REAL , ExtREAL st ( for b3 being Subset of REAL holds b1 . b3 = inf (Svc b3) ) & ( for b3 being Subset of REAL holds b2 . b3 = inf (Svc b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def10 defines OS_Meas MEASURE7:def 10 :
for b1 being Function of bool REAL , ExtREAL holds
( b1 = OS_Meas iff for b2 being Subset of REAL holds b1 . b2 = inf (Svc b2) );

definition
let c2 be Function of NAT ,[:NAT ,NAT :];
redefine func pr1 as pr1 c1 -> Function of NAT , NAT means :: MEASURE7:def 11
for b1 being Element of NAT ex b2 being Element of NAT st a1 . b1 = [(a2 . b1),b2];
coherence
pr1 c2 is Function of NAT , NAT
proof end;
compatibility
for b1 being Function of NAT , NAT holds
( b1 = pr1 c2 iff for b2 being Element of NAT ex b3 being Element of NAT st c2 . b2 = [(b1 . b2),b3] )
proof end;
end;

:: deftheorem Def11 defines pr1 MEASURE7:def 11 :
for b1 being Function of NAT ,[:NAT ,NAT :]
for b2 being Function of NAT , NAT holds
( b2 = pr1 b1 iff for b3 being Element of NAT ex b4 being Element of NAT st b1 . b3 = [(b2 . b3),b4] );

definition
let c2 be Function of NAT ,[:NAT ,NAT :];
redefine func pr2 as pr2 c1 -> Function of NAT , NAT means :Def12: :: MEASURE7:def 12
for b1 being Element of NAT holds a1 . b1 = [((pr1 a1) . b1),(a2 . b1)];
coherence
pr2 c2 is Function of NAT , NAT
proof end;
compatibility
for b1 being Function of NAT , NAT holds
( b1 = pr2 c2 iff for b2 being Element of NAT holds c2 . b2 = [((pr1 c2) . b2),(b1 . b2)] )
proof end;
end;

:: deftheorem Def12 defines pr2 MEASURE7:def 12 :
for b1 being Function of NAT ,[:NAT ,NAT :]
for b2 being Function of NAT , NAT holds
( b2 = pr2 b1 iff for b3 being Element of NAT holds b1 . b3 = [((pr1 b1) . b3),(b2 . b3)] );

definition
let c2 be Function of NAT , bool REAL ;
let c3 be Interval_Covering of c2;
let c4 be Function of NAT ,[:NAT ,NAT :];
assume E26: rng c4 = [:NAT ,NAT :] ;
func On c2,c3 -> Interval_Covering of union (rng a1) means :Def13: :: MEASURE7:def 13
for b1 being Element of NAT holds a4 . b1 = (a2 . ((pr1 a3) . b1)) . ((pr2 a3) . b1);
existence
ex b1 being Interval_Covering of union (rng c2) st
for b2 being Element of NAT holds b1 . b2 = (c3 . ((pr1 c4) . b2)) . ((pr2 c4) . b2)
proof end;
uniqueness
for b1, b2 being Interval_Covering of union (rng c2) st ( for b3 being Element of NAT holds b1 . b3 = (c3 . ((pr1 c4) . b3)) . ((pr2 c4) . b3) ) & ( for b3 being Element of NAT holds b2 . b3 = (c3 . ((pr1 c4) . b3)) . ((pr2 c4) . b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def13 defines On MEASURE7:def 13 :
for b1 being Function of NAT , bool REAL
for b2 being Interval_Covering of b1
for b3 being Function of NAT ,[:NAT ,NAT :] st rng b3 = [:NAT ,NAT :] holds
for b4 being Interval_Covering of union (rng b1) holds
( b4 = On b2,b3 iff for b5 being Element of NAT holds b4 . b5 = (b2 . ((pr1 b3) . b5)) . ((pr2 b3) . b5) );

reconsider c2 = NAT --> {} as Function of NAT , bool REAL by FUNCOP_1:57;

Lemma27: for b1 being Element of NAT holds c2 . b1 = {}
by FUNCOP_1:13;

theorem Th15: :: MEASURE7:15
for b1 being Function of NAT ,[:NAT ,NAT :] st b1 is one-to-one & rng b1 = [:NAT ,NAT :] holds
for b2 being Nat ex b3 being Nat st
for b4 being Function of NAT , bool REAL
for b5 being Interval_Covering of b4 holds (Ser ((On b5,b1) vol )) . b2 <=' (Ser (vol b5)) . b3
proof end;

theorem Th16: :: MEASURE7:16
for b1 being Function of NAT , bool REAL
for b2 being Interval_Covering of b1 holds inf (Svc (union (rng b1))) <=' SUM (vol b2)
proof end;

theorem Th17: :: MEASURE7:17
OS_Meas is C_Measure of REAL
proof end;

definition
redefine func OS_Meas as OS_Meas -> C_Measure of REAL ;
correctness
coherence
OS_Meas is C_Measure of REAL
;
by Th17;
end;

definition
func Lmi_sigmaFIELD -> sigma_Field_Subset of REAL equals :: MEASURE7:def 14
sigma_Field OS_Meas ;
correctness
coherence
sigma_Field OS_Meas is sigma_Field_Subset of REAL
;
;
end;

:: deftheorem Def14 defines Lmi_sigmaFIELD MEASURE7:def 14 :
Lmi_sigmaFIELD = sigma_Field OS_Meas ;

definition
func L_mi -> sigma_Measure of Lmi_sigmaFIELD equals :: MEASURE7:def 15
sigma_Meas OS_Meas ;
correctness
coherence
sigma_Meas OS_Meas is sigma_Measure of Lmi_sigmaFIELD
;
;
end;

:: deftheorem Def15 defines L_mi MEASURE7:def 15 :
L_mi = sigma_Meas OS_Meas ;

theorem Th18: :: MEASURE7:18
L_mi is_complete Lmi_sigmaFIELD by MEASURE4:25;

theorem Th19: :: MEASURE7:19
canceled;

theorem Th20: :: MEASURE7:20
canceled;

theorem Th21: :: MEASURE7:21
for b1 being set st b1 in Lmi_sigmaFIELD holds
REAL \ b1 in Lmi_sigmaFIELD by MEASURE4:16;