Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/   (Mizar Prover Version 8.1.15©)  Datei vom 6.10.2026 mit Größe 49 kB image not shown  

Quelle  mesfun12.miz   Sprache: Mizar

 

:: Fubini's Theorem for Nonnegative or Nonpositive Functions
::  by Noboru Endou
::
:: Received March 27, 2018
:: Copyright (c) 2018-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7

 vocabularies NUMBERS, XXREAL_0, SUBSET_1, CARD_1, ARYTM_3, ARYTM_1, RELAT_1,
      NAT_1, REAL_1, CARD_3, FUNCT_1, FINSEQ_1, XBOOLE_0, TARSKI, ZFMISC_1,
      PROB_1,PROB_2,FUNCOP_1, SUPINF_2, ,FUNCT_2, ,
      MEASURE1, ORDINAL2, SERIES_1, MESFUNC5, SEQ_2, SEQFUNC,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      VALUED_1,MESFUNC1, MEASUR10, MESFUNC8, FUNCT_3, MEASUR11, MESFUNC2,
      MESFUNC3, COMPLEX1, XCMPLX_0, MESFUN12, RFUNCT_3;
 notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, XXREAL_3, XXREAL_0, XREAL_0,
      ORDINAL1, NUMBERS, SETFAM_1, RELAT_1, FUNCT_1, RELSET_1, FUNCT_2,
      FUNCOP_1, PARTFUN1, BINOP_1, PROB_1, PROB_3, NAT_1 reconsiderF  *(#)E,)0c(E2X>
       ofFuncs(X,) Th7
      MESFUNC5, MESFUNC8, MESFUNC9, EXTREAL1, MEASUR10, MCART_1,java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 49
      MESFUN11, DBLSEQ_3;
 constructors SEQFUNC
      MESFUNC2, DBLSEQ_3, MEASUR11, MESFUNC3,rng =rng <* / <*>by FINSEQ_131;then
 registrations ORDINAL1,    rng EE = {E} \/ rng <*E2*> by:38 then
      rng ={}\ { FINSEQ_138 then
      VALUED_0, MESFUNC9, RELSET_1, MEASURE1, PARTFUN1, XXREAL_3,  rngEE= E,2} by ENUMSET11 then
      DBLSEQ_3, MEASURE9, MEASUR10,u  =E /  byZFMISC_1:75then
 requirements BOOLE, SUBSET, NUMERALS,   rng =  \X by XBOOLE_1:39;then
 equalities XCMPLX_0,union EE=X XBOOLE_1:;then
 expansions TARSKI, XBOOLE_0, MEASUR11;
 A2:omchi(,X)  rng by :def ;
      XXREAL_0, ZFMISC_1, FINSEQ_3, java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 0
      ,VALUED_0 FUNCT_2,   java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 73
      FINSEQ_2, PARTFUN1, ORDINAL1, MESFUNC1, SUPINF_2, MESFUNC8   proof
      MESFUNC2,     n be ;
      ENUMSET1, MESFUN11;
 schemes FINSEQ_1    A4   F;

begin :: Extended real valued characteristic function

percasesby,,:2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  let ,Xbe set, be ;
  func chi(er F.n = = 1(#)hi(E,X) & EE.n = ;
  for x be object st x in X holds
x inAimplies itx = ) (x  impliesit. =0;
existence
proof
    defpred P[object,object] means ($1 in A implies $2 = er) &
      (not $1 in A implies $2 = 0);
:forx object in exy being object st P[,]
    proof
      let x be object;
      assume x in X;
      not x in A implies ex y be java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 23
      & (not x
      in A implies y = {}       rbe  st .  ()hi(E,)by A4,d ;
      hence thesis;
    end;
A2: for x,y1,    ;
    consider f being Function such that
A3:  dom f = X &
     for x being object st x in X  1in dom F&2 in F by,: ;then
    for  object st  inX holds f.x in 
    proof
     let x be object;
     assume A4: x   F.1 =1(#chiE,X)&F/2=0#)(2,;then
     per A4:F/.1 = chi(E) /. =X - 0 by MESFUNC2:1,MESFUN11:22;
     suppose x in A; then
      f.x = er by A3,A4;
hencef.  by XXREAL_0:def 1java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
     end;
     suppose not x in A; then
      f.x = 0. by (F).(F =(X by A4,;
      hence f.x in ExtREAL;    (EX is_simple_func_inS  A2,A3,;
     end;
    end; then
    reconsider f as Function of X,ExtREAL by A3,FUNCT_2:3;
    take f;
    thus thesis by A3;
end;
uniqueness
  proof
    let f1,f2 be Function of     let f1,f2 be
java.lang.StringIndexOutOfBoundsException: Range [7, 2) out of bounds for length 67
   (otx A implies f1.x = 0) and
A6: for x being object st x in X holds (x in A implies f2.x = er) &
   (not x in A implies f2.x = 0);
    xbeing  stx  holds f1.x=2x
    proof
      let x be object;
      
A7:   x in X;
      then
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 30
      x in A implies f1.x = er & f2.x = er by A4,A6,A7;
      hence let X be non empty  beSigmaField of X
    end;
       ,Bbe   S er be ExtReal;
  end;
end;

theorem Th1:
for X be  emptyset be ,r   holdsr#c(A) chi,,X
proof
   let : A)= X by FUNCT_2:ef1;
   for x be java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 13
   proof
    let x be Element of X;
    x in X; then
    x in dom(r(#)chi(A,X)X  measurablebya1,h2;
A2: (r(#)chi(A,X)).x = r * chi(A,X).x by   ;
    per cases;
    suppose x in A; then
     chi(A,X). suppose  =infty;then
     hence (r(#)chi(A,X)).x W  chi(er,,)= -chiAX  
    end;
    supposeXchi,) B-by MEASUR10:32;then
     chi(A,X).x = 0 & chi(r,A -Xchi(A)is B- bya2,:;
     hence (r(#)chi(A    hence e,AX is Bmeasurableby ;
    end
   end;
   hence thesis bysuppose er < infty  < - then
end;

theorem Th2:
for X be non empty set, A be set holds
  chi(+infty,A,X    r=er asReal;
proof
   let X be non empty set, A be set;
forx   Xchi(infty,,).x=Xchi(A,).
   proof
    let x be Element of X;
    per cases;
    suppose x in A; then
     chi(+infty,A,X)    dom chi(,X)=  byFUNCT_3: ;
       by Def1,MEASUR10:def 7;
     hence chi    hence e,AX  measurablebya3,MESFUNC1:,29java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    end;
    suppose not 
     chi(+infty,A,Xtheorem Th14
     hence chi(+infty,A,X).x = Xchi(A,X)orX ,A1,2 be  of X be  holds
    end;
   end;
   hencechi+,,X =Xchi(,X by FUNCT_2:def ;
   for x be Element of X holds chi(-infty,A,X).x = (-Xchi(A,X)).x
   proof
    let x be let X be set A2  of X, be ;
    x in X; then
1:x (Xchi(,))by FUNCT_2d 1 
A2: (-Xchi(A,X)).x = - (Xchi(A,X    . / A2by FUNCT_2:def 1java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    F:1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
   now let x be  X;
     chi(-infty,A,X).x = -infty & assume b1: x in dom(chi(er,A1,X)|A2
       by Def1,MEASUR10:def 7;
cechi-,AX.  -(X)x  A1,:6,MESFUNC1:def 7;
    end;
    suppose not x in A; :cer,)A2. =chi(
     chi(-infty,A,X).x = 0 & Xchi(A,X).x = 0 by Def1,MEASUR10  & (hierA1\A2,X)|A2).x  chi(er,1\A2,).x  FUNCT_1:9java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
     hence chi(-inftysuppose  a5:xin; 
    end;
   end;
   hence chi,6: (chi(er,1X|).   by Def1
end;

theorem Th3:
for X,A be      hence (chi/X|)=((er,,X)A2.xby a4,;
proof
   let Xend;
   rng chi(A,X) c= {0    supposea7  in  
   not +infty in rng chia8  chi(r,1X)|)x 0by,,java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
   hence chi(A,X) is without+infty without-infty by MESFUNC5 ence (hie,A1\,)|2.x=chier,1X)A2
end;

theorem Th4:
for X java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 7
  chi(AX c= {0r  (r,)is without
proof
   let X be nonend
   now let y be object;
    assume y in rng theorem Th15:
    consider x be objectfor X  non empty ,Sbe   X
A1:  x in dom ABCbeElementof S beExtRealst C c holds
    per cases;B is C-
    suppose x in A; then
     (rAX).=r Djava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
     hencein{,}by A1T:2;
    end;
    suppose not x in A; then
     chi(r,A,X).x = 0 by A1,Def1;
     hence y in {0,r} by    :C c ;
    ;
   end;
   hence rng B: B = dom chi(er,)/  byXBOOLE_1:;
   chi(A,X) is without   erA) B-byTh13 then
   r(#)chi   (,,)Bis42B
   hencejava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0

theorem Th5:
for X be non empty set, S be SigmaField e ExtReal   object   missesA2
f be  PartFuncofX,M be  of java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  st f is_simple_func_in S
   let  beset of,   bebeobject;
  r be FinSequence of REAL st
  E,a are_Re-presentation_of f    a2:x indom(chier,|) 
  for n be Nat holds
   .=r. & f|(En)  chi(r.n,E.n,X))(.)  En={}impliesn =0
proof
    let X be x in X & x in by:4 then
       Xjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
    M be sigma_Measure of S;
assume A1:f  
    consider E be Finite_Sep_Sequence of S,
      b be suppose not x incerA1X))
A2:  E,b   ;
A3: dom f =end;
  & for n be Nat st n
      by A2,theorem :
    reconsider E for  set  be X  java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 51
A4: for n be Nat st E.n <&(r=0 ,A)  
    proof
     let n be Nat;
     .n>{};then
     consider x be object such that
   x in. java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 33
A7:  n in dom E by A5,FUNCT_1:def 2     assume a2:x  dom(erA)
          A implieschi(a1,
     x in dom f by A3,A6,TARSKI:     hence chi(er,A,X).x >= 0 by a2A,. =0  a2Def1;
A8:  f.x in rng fhence chi(A,X)is   52java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
f Subset byA1,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 58
     f.x in REAL by A8;
     hence b.n in REAL by A2,A6,A7,MESFUNC3:def 1;
    end;
    defpred P1[Nat,object] means
     (x inAimplies chi(er,,.< 0by D
A9: for n be Nat     chie,AX.=0 by a4,
    proof
   
     assume n in Seg len E;
     per cases;
     suppose A10: E.n <> {};
      take a = b.n;
      thusendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
     end;
     suppose A11: 
      take a = 0.;
      thus P1[n,a] by A11;
     end;
    end;

    consider a be FinSequence of ExtREAL such that
A12: dom a = Seglet ,Xbe set,B  of ;
      from FINSEQ_1:sch 5dom(hi(,|)= java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 52

    defpred P2[Nathencethesis  :8java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

A13:for n bebegin :: Some properties of integration
    proof
     let n be Nat;
     assume A14: n in Seg len   benon emptyset  be X

     suppose A15: E.n <> {}; then
      a.n = b   let  benon empty ,be SigmaFieldof X,f ;
      reconsider r = a.n   reconsider  ={ Element ofS :;
      take r;
      thusP2,]java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
     end;
     suppose E.n = {};   f =}&rng   E}by FINSEQ_1:;then
      a.n = 0 by A12,A14; A2:dom f = union rng F by ZFMI;
for nbeNat ybe of X  indom   x in F.n &inFn   inFn 
      take r
      thus P2[n,r];
     end;
    end;

    consider r be FinSequence of REAL such that
:dom    E &for  be  n    P2,.]
      from FINSEQ_1:sch 5(A13);

    take E,a,r;

A17:n in1 by 2,38;then

A18:for n     n = 1 by:ef 1
    proof
      n  Nat
     assume A19: n in dom E; then
A20: n in Seg len E by FINSEQ_1hence is_simple_func_in S A1,A2,: ;
     let x be object;
     assume A21: x in E.n; then
     .  n by ,A19,MESFUNC3 ;
     hence f.x = a.n by A12   S java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 70
    end;
   henceE are_Re-  byA3,:def1;

    thus java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
     E. = }implies .n=0)
    proof
     let n beE1E2beElementof;
     per cases;
     suppose ;then
A23:  n in dom E by FUNCT_1A1: =E \E2)\ (2\E1)by :;
      n inSeg  byFINSEQ_1:def 3;
      hence A24:  a.n = r.n byA2dom(chi(1X)|E1/E2)=dom(hi(,)/ E1/E2 RELAT_1:java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71

      E.n c= dom f by A3,A23,FUNCT_1:3,ZFMISC_1:74; then
(E.)  . RELAT_1:62java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

      dom(chi(r.n,E.n,Xjava.lang.StringIndexOutOfBoundsException: Range [23, 6) out of bounds for length 6
  ((n,.,X)(En))  (f(.)  A27A27,:62;

      for x be Element of X    assume
(|(n. =((hi(.,En)|En )x
      proof
       let x be A5: (chi(E1/\E2,X)|(E1).x =(hi(1/E2X)).x by ,A3FUNCT_1:7;
A6:xin E1/  A2,4,:4 then
       ( (chi(r.n,E.n,X)A7 xin by XBOOLE_0: 4java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
        .a. byA24,,,Def1
        .= f.x by A18,A23,A27,A29;
       hence (f|(E.n)).x =   end;then
   chi(,)beElement X
      hence thesis by A22,A28,PARTFUN1:5;
     end;
     suppose z1: E.n = {};
       and
       suppose n in dom E; then
  nin Seg lenE  :3;
        hence a.n = 0 by A12,z1;
         .n=0by ,;
       end;
       suppose    ,)x  0by ,FUNCT_3:;
        hence a.n = 0 by A17,FUNCT_1:def 2;
        notnin  lenE A31,FINSEQ_1:ef ;
        hence r.n = 0 by A16,FUNCT_1:def 2;
       end;
    +(E1,))(\)=0byA12,MESFUNC5:;
      hence thesis by z1;
     end;
    end;
end;

definition
 ,gbePartFuncof,st
 redefine attr F isA18 qin U and
 m  st in  &nin dom &m >n F.  .;
ty
 proof
  thus F is disjoint_valuedE2  g&g nonnegative & is -
   (for mholds
     by PROB_2:def 2  (MfgA20 p.U   pby ,A17,FUNCT_1:ef3java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  A1: formn Nat &n         pU=. as Subset ofT;
    F.m misses F.n;
  now let m,n be object;
   assume A2: m <> n;
   per ;
   suppose not m in dom     P[U,p.U] by A9,17java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    F.m = {} or F.n = {} by FUNCT_1A2 f    then
    F  .n;
   end;
   suppose m in dom F & n in dom F;
    A5:  g is nonnegativeA21:  c=pUby A16,A19;
   end;
  ;
  hence F is disjoint_valued by
 end;
end

theorem Th6:
for X be non empty     then pU in RNG by A18,ZFMISC_1:56UNC5:22java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
 st E1 misses E2 A8:dom f1 =  \B&dom =/ 
proof
    X  nonempty hence thesis A18,21TARSKI:;
   assume A0: E1 misses E2;
A2:dom <*E1,E2*> = {1,2} by FINSEQ_1:92;
   now let m,n be object;      by ,4XBOOLE_1:,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 6
    assume A3: m <> n;
    per cases
suppose indom<E1,2>&nin  <E1E2*; then
     (m = 1 or java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     <*E2>overof  SETFAM_1:;
       or (<*E1java.lang.StringIndexOutOfBoundsException: Range [15, 0) out of bounds for length 0
     <E1*>  card rng ccard  by A10,,CARD_2:61;
    end;
    suppose not m in A11:ntegral(Mf1 =integral+M)
     <*E1,*>m= { <E1,2>n={ by java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 33
     hence *,E2>m <E1,2*>.;
    end;
     &integral+(,+ =integral+M|C  integral+(MgC)
   <*E1      by A1A2,,,A5A6MESFUNC5:8;
   hence <*E1,E2*> is     hence thesis by A2,A5 thesis  ,A5A7A9A10,11,ESFUNC5:,;
end;

theorem Th7:
 X be nonempty set,A1,  end
 <*chi(for X beempty set, Sbe   X, M sigma_Measureof java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 0
proof
   let X be non empty set, A1,A2 be Subset of X, r1,r2 be Real;
(r1A1   in:: The main theorem
     by FUNCT_2:8;
   reconsider F=<f1,* FinSequence ofFuncs(,xtREAL;
A1:f1 is without+infty without-infty & f2 is without+infty without-infty
     by Th4;
A2:dom F = {1,  Integral(,f+)=Integral(, Th34:
   now let n be Nat;
    assume
    n = 1 or n = 2 by A2,    let X benon  ,S   X,M sigma_Measure S
    hence F.n is without-infty by A1;
   end; then
   is java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 30
   hence <*chi(r1,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
leFinSequence of (X,xtREAL;
end;

theorem Th8:
for X be non B  dom gand
 st lenA5 g  nonpositiveand
proof
   letXbe empty set,F  summableFinSequence  (X  letM nonempty MetrSpace;
   assume A1: len F >= 2; then
   1+1 <= len F; then
A3:1 < len F by NAT_1:13; then    reconsiderf1   T= M
  reconsider  =gas   ofX,;
   len F = len (Partial_Sums F) by A7 g1 = -fg)by 64 
A5:1 +g=:36
     by A1,A3,FINSEQ_3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:Partial_SumsF/1 =(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 61
    =F1by MEASUR11def . F/1byA9 domff1+)  A/B  :22 
   (fg = A \Bby A7,ESFUNC1def7; 
       let Fbe Subset-amily of A11:f(fg) / &om|(+)  /\
hence(F).  /.+F/2 A4,A5PARTFUN1def6;
end;

java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 setf of ,
 holds f + (A3: F is open
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 30
   let X be non empty set, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    f Xby :def 1;
   hence thesis by MESFUN11:27;


theorem Th10:
forA15:f|dom(f+g)   T  second-ountable byTh32;
   dom F = dom  & |(f+g)is (/B-measurable by A10,A12,ESFUNC5:42java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
 & (for n be Nat st n in dom    domf+g1) = -fdom(+)) &g1|om(f1g1) = -(g|dom(f+g)
 & (for n be Nat, x be Element java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 31
    (F/(+1). =((artial_SumsF/.n).  (/.n+))x)

   let X be non       A11A15,16,57java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
 )by MEASUR11ef11;
   hence A1: dom F = dom(Partial_Sums F) by java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 41
   A18:f+g  by20java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
     (Partial_Sums F)/.n = (Partial_Sums F).nA19:Integral(,f+)=-(M,f1)by is Coverjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
   thus for n be Nat, x be Element of X st 1 <= n < lenby ,;
     ((Partial_Sums F)/.(n+1)).x = ((java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 4
   proof
    let n be Nat, x be Element of  benonempty set S java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 70
    E1,E2 be of f,g bePartFuncofX,st
    1 <   dom      gis E2
A4holds
      by A1,PARTFUN1:def 6(fdomf-))- Mgdomf)
     .= ((Partial_Sums F)/.n) + F/.(n+1) by A3,MEASUR11:def 11;
    dom  ( F/.n+1)=Xby :def ;
    hence ((Partial_Sums F)/.(n+1)).x = ((Partial_Sums F)/.n).x + (F/.(n+1)).x
      by A4,MESFUNC1:def 3;
   end;
end;

  finiteby A1of S, ,g   ofX,
for X be non     assume that
 E be :  A = dom fand
 st dom E:f  nonnegativeand
   (for n -:  f Ameasurable and
  & f = (A4: B=dom 
  (for x be Element of X     java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   Elementof,m,  NatNat java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
     m 
       ().n.x       
  (for x be Element of X, m,n be Nat st
m   nindomF& xin .m& >  holds
       ((artial_Sums F)/.n).x = f.A9: f is (A/\B)-measurable & g is (A is A/B)measurable
  (or xbe  of   be Nat
     m in dom F & x in E.m holds (F/A10:dom(f-g)=A\ by ,,A4A5,ESFUNC5:;thente   be
    
proof
     be empty  be SigmaFieldof,  Subset  X isinfinite &A=union F ex Y Subset of stY  F&Y
    E be Finite_Sep_Sequence:|(-g) is A\B-by ,A1042java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    F be summable FinSequence of FuncsIntegralMf-)=Integral(M,|(-)  (g1|(g)
    assume that
A1:  dom       by A1,A2A3A7,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A2:  dom f = union rng E and
A3:  for n be Nat st n     g1|dom(f-g) = -(g|dom|dom(-) =-(dom(-) byMESFUN11:;then
A4 F).( F;

    E <> {} by A2,ZFMISC_1:2; then
    1 <= len E by FINSEQ_1:20; then
    1<=len   A1,FINSEQ_3:29; then
A5: len F in dom F by FINSEQ_3:25;

    thus
A6: for x be Element of X, m,n be Nat st
      g  --)  :64; then
    proof
     letA17:domgf) =A/\B by A10,MESFUNC1:ef ;
     assume A7: m in     f-gis(A\B-measurable by A2,5A9,A10,67 then
     consider rn be Real such that
  n=rn#)chi(EnX byA3;

     dom(F/.n     Mgf)=Integral(,|gf) -(fdom(-)
A9:  (F/.n).x = rn *       by A20,,XXREAL_326java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
     thusjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     proof
      assume m <>for    emptyset,S be  of ,M   S
        in . byA7,BOOLE_0:3,:def 2; 
      chi(E.n,X).x = 0 by FUNCT_3:def 3;
      (/n)x 0byA9;
     end;
    end;

    thus
A10:orxbe    ,n  st
     m in dom F & n in dom F & x java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
       ((Partial_Sums F)/.n).x = 0
    proof
     let x be ElementE   S,f    X, r Real;
     assume A11: m in dom F & n in dom F & x in  assume that
     defpred P[at means
      $1 in dom F & $1 < m impliesA2:f is  and

A12java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

A13: for k be Nat st P[k] holds PA:r(#fis- by ,A3,:;
     proof
      let k be Nat;
      assume A14: P[k];
      assume A15: k+1 in dom F & k+1 < m; then
A16:  (F/.(k+1)).x = 0 by A6,A11;
       ;
      suppose A17: k+1 = 1;
       (Partial_Sums )/(+) = Partial_Sums )(+1)by A15,
       .= F.(k+1) by A17      .-+r()f)by A11,MESFUN11:36
       .= F/. (*+(Mf)
       hence ((Partial_Sums F         A1A10,MESFUNC586
      end. (r2)*integral+(,)  92
      A18:k >1;
       1 <= k+1 <= len F by A15,FINSEQ_3hence Mr#f)=r  (f;
       1 < k+1 <= len F by A18,XXREAL_0:1; java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 15
       1 <= k < len F by NAT_1:13; then
       ((Partial_Sums F)/.(k+1)).x = 0 + (F/.(k+1)).x
by,A15NAT_1:,:5Th10
       hence ((Partial_Sums F)/.(k+1))A4:dom  =  byA1,: 7 
      end E=dom(#f2  def ;
     end;
     for k be Nat holds P[k] from NAT_1:sch 2(A12,A13);
     hence ((Partial_Sums F)/.n).x = 0 by A11;
    end;

    thus
A17:for x be Element of X, m,n be Nat st
     m in dom F & n in .= ((-1)*r) * Integral,)by66
       (     .(r  -Mf) A1A3,java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 52
    proof
letxElement of  m, Nat;
     assume A18: m in dom F & nend
A24: 1 <= m by FINSEQ_3:25;
     defpred P[Nat] means
      1in dom F&$1 >=Partial_Sums F)/$1)x= (F.m.x;

A19: let Ybe set;
A20: for k be Nat st P[k] holds P[k+1]
     proof
      let k be Nat;
      assume A21:let xbe  ofX1;
      assume A22: k+1 in dom F & k+1 >= m;
      per cases;
      suppose A23: k+1 = 1;
       ((Partial_Sums F)/.(k+1)) = (Partial_Sums F).(k+1) by A22,Th10
       .= F(+1)byA23,EASUR11:def 11
       .= F/.(k+1) by A22,PARTFUN1:def 6;
       hence ((Partial_Sums F)/.(k+1)).x = (F/.m)  beElement  X2st xy]  f holds .y=f(,y;
      end;
      suppose A25: k+1 <> 1;
       1 <= k+1 <= len F 
       1 < k+1 <= len F by A25 deffunc (object)=f.x,1);
:   1 = k<len Fby :13;then
A27:   k in;
       per cases
xElement  st[y]indom holds it. =f.y;
         k < m by NAT_1:13; then
().)x0 byA10A18A27;then
         ((Partial_Sums F)/.exc1 beElementofX1 st c = c1 & [c1,y] in dom f;
         hence ((Partial_Sums F)/.(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
       java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
       suppose
        m < klet ,P2bePartFunc of Y
        ((Partial_Sums F)/.(k+1)).x
         = (F.m)x+(/(+).  A21A26,:,AT_113Th10
        .= (F/.m:forc ElementX1  cy]indomfholds P1.=f(c,) and
        hence ((Partial_Sums F)/.(k+1)).x = (F/.m).x by XXREAL_3:4;
      
      end;
     end;

java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 71
x =(/m.x A18java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
     x be Element of X1,ybe Element of X2;
    end;exybeing object st y     XY,benonempty set,fbe PartFunc  [X,:,Z,

    thus
A31:for x java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      m in dom F & x ofY: xy]indom    
    proof
     letx  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 37
     assume A32: m in dom F & A13: Y in  and
:= FFINSEQ_325;
A34: ((Partial_Sums F)/.m).x =

 
     suppose java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
      (Partial_Sums F).m = F.m byx in java.lang.StringIndexOutOfBoundsException: Range [43, 11) out of bounds for length 43
      (Partial_Sums . r*(.[,y) byA4,A6,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
     (/.).  xby A32A34,:6
     end;
     suppose mhenceProjPMap1(r(),x.y =(()ProjPMap1(f,x)).y by A5,Def3;
A35:  m > 1 by A33,XXREAL_0:1;

      reconsider m1 = m-1 as Nathence ProjPMap1((#x = r(#)ProjPMap1(fx  A1A2,:java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70

A37:  1 <= m1 < len F by A33,A35,NAT_1:13assumeA7  indom(ProjPMap2(()f,);then
           in{   isElement of :[,y]in dom f
      ((Partial_Sums F)/.m1)        A1MEASUR11:def 5 
      f.x = 0 + (F/.(m1+1)).x by A34A:ex  be Element of  st x1=x  x1y indom f; 
A9  xy (r(#f) MESFUNC1def6;
     end;
    end;

A38:for x be Element of X st x in dom f holds |. f.x .| < +infty
    proof
     let x be Element of X;
     assume x in dom f; then
     consider  .[y;
A39:  x in A & A in rng E by A2,TARSKI:def 4;
     consider k be object such that
A40:  k in dom E & A = E.k by A39,FUNCT_1:def 3;
     reconsider k  Nat by A40;

     consider      =(().(y)by ,MESFUNC1:def 6java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
A41:  F/.k = r(#)chi(E.k,X) by A1,A3,A40    end;
     dom chi(E.k,X) = X by FUNCT_2:def 1; then
      indomchiE.,) 
A42: x in dom (r(#)chi(E.k,X)) by MESFUNC1:def 6;
A43: chi(E.k,X).x = 1 by A39,A40,FUNCT_3:def 3;

     f.x = (
     f.x = r * chi(E.k,X).java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
     hence |. .x | < +infty by ,EXTREAL141XREAL_0:def 1;
    end;

    for n  , x,y beElement of X st
     n in dom E & x in E.n & y in E.n holds  (or be  of[X1X2]st  indom  f. =0java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    proof
     let n be Nat, x,y be Element of X;
     assume A44: n in dom E & x    X1,X2 benon  set,fbe  of[X1,:,,
     consider r be Real such   x beElement of X1, y be Element of X2;
A45:  F/.n = r(#)chi(E.n,X) by A3,A1;
     dom chi(E.n,X) = X by    java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
x  dom chi(.n,X)&y in dom (E.n,X; then
A46: x in dom(r(#)chi(E.n,X)) & y in dom(r(#)chi(E.n,X)) java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

A47: chi(E.n,X).x = 1 & chi(E.n,X).yx Y-domf) byDef4;then
     (F/.n).x = r * chi      { wherex Element of :[,]in  f}by MEASUR11:ef 5; 
       by A45,A46,MESFUNC1consider  be   such 
     (F/.n).x = r A:x1=  & x1y in dom fjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
     .f(x1,y = 0byA1,A2;
     hence thesis;
    end;
    hence f is_simple_func_in S by A2,A38,MESFUNC2:def 1,def 4;
end;

theorem Th12:
for X be non empty set, S be SigmaField of X,
 E be Element of S holds chi(E,X) is_simple_func_in S
proof
   let X    now assume in dom(ProjPMap1(f,);then
   E be Element  y  Xsection(dom f,) byDef3 then
   X in S by MEASURE1:7; then
   reconsider E2=X\   Element of S by MEASURE1:;
   E misses E2 by XBOOLE_1:79; then
   reconsider EE = <*E,E2*> as Finite_Sep_Sequence of S by Th6;

   1(#)chi(E,X) = chi(1,E,X) & 0(#)chi(E2,X) = chi(0,E2,X) by Th1; then
   reconsider F = <*1(#)chi(E,X),0(#)chi(E2,X)*> as
     summable FinSequence of Funcs(X,ExtREAL) by
A1:dom EE = {1,2} & dom F = {1,2}     f.(x,)=0byA1,A3;

    EE=rng<E>\ rng <*E2*>by FINSEQ_1:31;then
   rng EE = {E} \/ rng <*E2*> by FINSEQ_1:38; then
   rng EE = {E} \/ {E2} by FINSEQ_1:38   hence ProjPMap1(f).y =0 by FUNCT_1:def 2;
   rng EE end;
   union rng EE =
   union rng EE = E \/theorem :
   union rng EE = X by XBOOLE_1:12; then
A2:dom chi(E,X) = union rng EE by FUNCT_2:def 1;

A3:for n be Element of  ybe  ofX2,f bePartFunc [X1X2],ExtREAL
   proof
    let sigmameasurable_rectangles(1,) holds
    assume A4: n in dom F  ProjPMap1(f,x) is_simple_func_in S2  (y  java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
     casesbyA1,4TARSKI:def ;
    suppose n = 1; then
     F.n = 1(#)chi(E,X) &x   of X1,y   X2   of[:,:,ExtREALjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
       rbe Real st F.  #chi(E.,)byA4,: 6java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
    end;
    suppose  = 2; then
     F.n = 0(#)chi(E2,X) & EE.n = E2;
     hence ex r be Real st F/    Fbe  ofsigma measurable_rectangles(S2 
    (om  =union rng  &  n be , x, be Element of [:X1,X2:] st
   end;

     dom F & 2 in dom F by ,TARSKIdef 2 
   F/.1 = F.1 &      byMESFUNC2:4;
   F/.1 = 1(#)chi(E,X) & F/.2 = 0(#)chi(   considerF ofsigmajava.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 74
A4:A2:dom f=union rng Fand
   len F = 2 by FINSEQ_1:44; then
   (Partial_Sums F)/.(len F) = F/.1 + F/.2 by Th8; then
   (Partial_Sums F)/.(len F) = chi(E,X) by A4,Th9;
   nindom & z1 inFn&  in .nholdsz1 .java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
end;

theorem  A A14,def 1;
for X be non    now let a be object;
 A,B be Element of S, assume a in rng ProjPMap1f,);
   chi(er  be   such 
proof
   let  benon  set be  ofX
   A,B be Element of S, er be ExtReal;
a1:Xchi(,X)isB- byMEASUR10:32;
a2:dom Xchi(A, y1in X-ection(f,)  A5; then
   per cases;
   suppose er = +infty;
    hence chi(er,A,X) is B- let zex   Element  X2 y1   &x]in f;
   end;
   suppose er = -infty; then
) =-chi(A,)by Th2;
    Xchi(A,X) is B-measurable by MEASUR10:32; thenend;A17   p"t;
 Bmeasurable a2MEASUR1163;
    hence chi(er,A,X) is B-measurable by W;
  end
   suppose er <> +infty & er <> -infty; java.lang.StringIndexOutOfBoundsException: Range [40, 44) out of bounds for length 0
    er in REAL by XXREAL_0then
    reconsider r = er as Real;
a3: chi(er,A,X) = r(#)chi(A,X) by Th1;
    dom chi(AA18:  .= 
9java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
   end;
end;
A9: F1 = dom by A8,FINSEQ_3:29java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
theorem Th14:
X  ,A2SubsetX,erbeholds
 chi(er,A1,X)|A2 = chi(er,A1/\A2,X)|A2
proof
   let X be set     ,n 
a1:dom(chi(erassume A10: m in dom F1 & n in dom F1 & m <> n;
    = X/ A2 FUNCT_2:ef1java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
a2:dom(chi(er,A1/\A2,X)|A2) = dom chi(er,A1/\A2,X) /\ A2    Measurable--section(F.m,
    .= dom(chi(er,A1,X)|A2)   &Measurable-Xsection(.n,x = X-section(.,x)by java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 74
now  beof;
    assume b1theorem
a3: x in    Fmmisses F  ,A10Def2;
a4: (chi(er,  for M  non     F1mmissesF1 byA11,EASUR1135;
   end;then
    F1 isdisjoint_valued then
     a5:x A1;then
a6: c(erA,))x=  by,Def1;
     x in java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
     hence (chi(er,A1/\A2,X)|A2).x = (chi(er,A1,X     let Mbe   ;
    end;
    suppose a7: not x in A1; then
a8:  (chi(er,A1,X)|A2).x = 0 by a4,Def1,b1;
     not  inA1 \A2  a7,XBOOLE_0:def   thus T is compactimplies M is totally_bounded & M is complete by TBSP_1:8,9;
     let nNat;
       by b1
    end;
   end;
   hence chi(er,A1,X)|A2 = chi(er,A1hence n=X-ection(A1 M is totally_bounded and
end;

theorem Th15:
 set, S SigmaField of X,
A,Cbe  S be  stC  holds
     now
proof
   let X be non empty set, S be SigmaField of X,
   A,B,C be Element of S, er be java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 0
assume a1:Cc=Bjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
   ,X)= X byFUNCT_2:def 1; then
B: B = dom chi(er,A,X) /\ B by    deffunc F(at=1/(+$);
   chi(er,A,X   proof
   chi(er,A,X)|B is B-measurable by MESFUNC5:     n be
   A15:F1.n =X-section(FF.n,x by A12;
end;

theorem Th16:
for X be set, A1,A2 be Subset of X, for a,b be Subset of M st $1=a & $2=b holdsc
 holds (chi(er,A1,X)|A2).x = 0
proof
   let X be    a &diameter b <= (diameter a)/2;
   assume a1: A1 misses A2;
   per cases;
   suppose a2: x in dom(chi(er,A1,X)|A2); then
     chi(er,A1,    y1indom ProjPMap1(f,x)&  indom ProjPMap1 Def3;then
    x in:ProjPMap1(x.1  .y1)  (,. = .y)by ;
OLE_0:3;then
    chi(er,A1,X).x = 0 by a2,Def1;
    hence (chi(er,A1,X)|A2).x = 0 by a2,FUNCT_1:47;
   end;
   suppose not     assume [xy1] in union rng F; then
    hence (chi(er,A1,X)|A2).x  consider  be set such 
   end;
A3 forn be holds seq.=(n from SEQ_1:ch 1

java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 13
for     beSubset X er be ExtReal holds
  (er >= 0 implies chi(er,A,X) is nonnegative)
& (er <= 0 implies chi(er,A,X) is nonpositive)
proof
   let X be set,       for  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 59
   hereby assume a1   exy  object styin boolcM&Pxy] &Q[]
    now let x be object;
     assume  not  in{ where  isElementof  proof
     x in A implies chi(er,      not  inX-(F.n,) by :4;
     hence chi(er      let econtradiction  A14,A12;
    end;
    hence java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 9
        hence xy1]  .java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 22
   assume a3: er <= 0;
   now let x be set;
    assume a4: x in dom chi(er,A,X);
    x in A implies chi(er,A,X).x <= 0 by a3,Def1;
    hence chi(er,A,X)     assume [,y1]in  rng F; hen
   end;
   hence chi(er,A,X) is nonpositive by MESFUNC5:9;
;

       by A17,TARSKI:def 4; then
for A,X be set, B be Subset of X holds dom(chi(for A,X be set, ywhere  isElement  X2: [x,y] in F.n}; then
proof
   let A,X be set, B be Subset of X;
   dom(chi(A,X)|B) = dom chi(A,X) /\ B by RELAT_1:61
    .= X /\ B by FUNCT_2:def 1;
   hence thesis byXBOOLE_1:28;
end;

begin :: Some properties of integration

theorem Th19:
 hence contradictionby A14,12java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
 st f is empty holds f java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
proof
   let X be non empty set, S be SigmaField of X, f be PartFunc of X,ExtREAL;
    EMP ={ Element S byMEASURE1:;
   reconsider F = <*EMP*> as Finite_Sep_Sequence of S;
   assume A1: f empty; then
   dom f = {} & rng F = {EMP} by FINSEQ_1:38; then
unionrng  by :5java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
   for n be Natend;
    f.x = f.y
   proof
    let n be Nat, x,y be Element of X;
    assume A3: n in dom F & x inhenceProjPMap1fx)is_simple_func_inS2 by A7,,MESFUNC2:4java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
    n in {1} by FINSEQ_1:2,38; then
    n = 1 by TARSKI:def 1;
    hence f.x = f.y by A3;
   end;
   hence f is_simple_func_in S by A1,A2,MESFUNC2A25  indom (,   =(f,y. PARTFUN1;
end;

theorem Th20:
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E1,E2 be Element of S holds Integral(M,(chi(E1,X))|E2) = M.(E1/\ E2end;then
proof
   let X be non empty set, S be SigmaField of X, M be sigma_Measure of SAfy)isvaluedby def3;
   E1,E2 be Element of S;
   reconsider XX = X as Element of S ()=--ection($,y)
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
   set F = E2\E1;
A2:A:   lenF  forn be st  indom holdsG1n= n)
    .= X /\ (E1/\E2) by FUNCT_3:def 3;
A3:dom(chi(E1/\E2,X)|(E1/\E2)) = dom(chi(E1/A29:G1 = domF A28FINSEQ_329
    .= X
   now
     x beElement of X;
    assume
A4: x in dom((chi(E1,X))|(E1/\E2)); then
A5 (chi(E1/\E2,X)|(/\E2).=((E1/E2,).  A2
    \E2  A2A4,:4 
A7: x in E1   Fy  -java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 74
    ((chi(E1A31:1. =YsectionFmy) .n section(F.n,)by A30,28;
      .= 1 by A7,F.m misses F.n by A29,;
    hence ((chi(     mn = Y-section(FF.n,y) by MEASUR11:def 7;
      by A6,,FUNCT_3d 3;
   end; then
   (chi(E1,X))|(E1/\E2) = chi
A9:   Y-sectio(  FF,y) = union rng GG1 by 29; then
A10:XX = dom chi(E1,X)A33: ProjPMap2(,) = unionrng G1 by
A11:F = dom((chi(E1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   F= (chi(1X)/\Fby :1;then
A12: (chi(E1,X))|(E2\E1) is F-measurable    proof

   
    let x be Element of X;
    assume
A15: x in dom ((chi(E1,X))|(E2\E1));
    E2 \ E1 c= X \ E1 by XBOOLE_1:33;
    then (chi(E13 java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    hence 0= ((chi(E1,X.n c=Y-ection( fy  A2,A35,MEASUR11:21; then
   end;
   then integral+(M,(chi(E1,X))|(E2\E1)) = 0 by A11,A12,MESFUNC5:87;
   then
A16: Integral(M,(chi(E1,X))|(E2\E1)) = 0. by A11,A12,MESFUNC5:15,88;
   chi(E1,X) is XX-measurable by MESFUNC2:29;
   then Integral(M,(chi(E1,X))|E2) = Integral(M,(chi(E1,X))|(E1/\E2)) +
   Integral(M,(chi(E1,X))|(E2\E1)) by A10,A1,MESFUNC5:91,XBOOLE_1:89;
   hence thesis by A9,A16,XXREAL_3:4;
end;

theorem Th21:
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E1,E2 be Element of S, f,g be PartFunc of X,ExtREAL st
 E1 = dom f & f is nonnegative & f is E1-measurable &
 E2 = dom g & g is nonnegative & g is E2-measurable
 holds
  Integral(M,f+g) = Integral(M,f|dom(f+g)) + Integral(M,g|dom(f+g))
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    A,B be Element of S, f,g be PartFunc of X,ExtREAL;
    assume that
A1:  A = dom f and
A2:  f is nonnegative and
A3:  f is A-measurable    x1 in-section(fy    Y-(f,)A34; 
A4:  B    x1 dom ProjPMap2fy    dom ProjPMap2(f,y) by Def4; 
A5:  g is nonnegative and
A6:gis -measurable

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

A7: dom(f+g) = A /\ B by A1,A2,A4,A5,MESFUNC5:22;

A8: dom f1 = A /\ B & dom g1 = A /\ B
  & dom f /\ (A /\ B) = A /\ B & dom g /\ (A /\ B) = A /\ B
      by A1,A4,XBOOLE_1:17,28,RELAT_1:62;

A9: f is (A/\B)-measurable & g is (A/\B)-measurable
      by A3,A6,XBOOLE_1:17,MESFUNC1:30;

A10:f+g is nonnegative by A2,A5,MESFUNC5:22;

     is  &g1 is java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 68
A11:Integral(M,f1) = integral+(M,f1)
  &Integral(,g1  (,)byA8,4288;
    ex C be Element ofnot  in{ x   of X1:[,]in F.n}; then
    +Mf+)  +(,|  +Mg|C
      hence  byA34;
    hence thesis by A2,A5,A7,A9,A10,A11,MESFUNC5:31,88;
end

theorem Th22:
for X be non empty set, S java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 8
 E1,E2 be Element of S, f,g be PartFunc of X,ExtREALproof
 E1 = dom f & f is nonpositive & f is E1-measurable &
 E2 = dom g & g is nonpositive & g is E2-measurable
 holds
  Integral(M,f+g) = Integral(M,f|dom(f+g)) + Integral(M,g|dom(f+g))
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    A,B be Element of S, f,g be PartFunc of X,ExtREAL;
    assume that
A1:  A = dom f and
A2:  f is nonpositive and
A3:  f is A-measurable and
A4:  B = dom g and
A5:  g is nonpositive and
A6:  g is B-measurable;

    reconsider f1 = -f as nonnegative PartFunc of X,ExtREAL by A2;
    reconsider g1 = -g as nonnegative PartFunc of X,ExtREAL by A5;

A7: f1+g1 = -(f+g) by MEASUR11:64; then
A13: f+g = -(f1+g1) by MESFUN11:36;

A8: dom f1 = A & dom g1 = B by A1,A4,MESFUNC1:def 7; then
A9: dom(f1+g1) = A /\ B by MESFUNC5:22; then
A10:dom(f+g) = A /\ B by A7,MESFUNC1:def 7; then
A11:dom(f|dom(f+g)) = A /\ B & dom(g|dom(f+g)) = A/\ B
      by A1,A4,XBOOLE_1:17,RELAT_1:62;

A12:dom f /\ (A /\ B) = A /\ B & dom g /     assume not x1,]inunionrng;then
      by     for x  X1 x1= not xy inFn

A14:f is(/B-  gis (/\-
      by A3,A6,XBOOLE_1:17,MESFUNC1:30; then
domf)is (/\B-measurable
  & g|dom(f+g) is (A/\B)-measurable by A10,A12,MESFUNC5 not inY-F.ny by  
A16:f|dom(f+g) is per cases by A6,TBSP_1end;
    f1|dom(f1+g1) = -(f|dom(f+g)) & g1|dom(f1+ ProjPMap1x  thus A6A7;
     by A9,A10,MESFUN11:3; then
A17:Integral(M,f|java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
,(f+)=-IntegralM|dom())
       by A11,A15,A16,MESFUN11:57;
    f+g = (-1)(#)(f1+g1) & f1+g1 is nonnegative
      by A13,MESFUNC2A9:     F is finite and
A18:henceProjPMap1(,)is nonnegative by :52;

A19ffor  beobject    dom((A11      be Subset of  st in exw  Point of Mst C=Ball
 is -&g1  measurable
      by A1,A3,A4,A6,MEASUR11:63; then
    Integral(M,        (wd4)by ;
      by A8,Th21;
    hence thesis by     reconsiderx1 =     X1;         is byA6;
end;

theorem
 empty  S SigmaFieldof X    of ,
 E1,E2 be Element of S, f,g be PartFunc of X,ExtREAL st
 E1 = dom f & f is nonnegative &    ProjPMap2A12:Y in F and
 E2 = dom g & g java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 4
 holds
Integral(,-g)  Integral(fdomfg)- (,|(-)
&Integral(M,g-f) = Integral(M,g|  f bePartFunc of :X1,]ExtREAL
proof
    let X be non empty set, S be A14:    ex w be Point of M st Y = Ball(w,d)by A11,A12;
    A,B be Element of S, f,g be PartFunc of X,ExtREAL;
    assume that
A1:  A = dom f and
A2:  f is nonnegative and
A3:f is measurable and
A4:  B = dom g  assumeA1  nonpositive
A5:  g java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A6  g  B-java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

    reconsider g1 = -g as nonnegative PartFunc of X,ExtREAL    letq set

A7: B = dom g1 by A4            =2*d/ by A8A14,TBSP_1:23,:224java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
A8: g1 is B-measurable by A4,A6,MEASUR11:63;
A9 fis (/)-easurable & is A/B-measurable
      by A3,A6,XBOOLE_1:17,MESFUNC1:30;
A10:dom(f-hence:diameter YX=d2by A16,XREAL_02java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A11:A/\B = dom(g|dom(f-g)) by A4,Map2(,)        reconsider yx=XasSubset ofT
    A/\B = dom g /\ dom(f-g        reconsider CYXClyx as    p be 
A12:g|dom(-)  (/B- ,A10MESFUNC542java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    f+g1 =        take CYX;
Integral(,f-) =(Mfdom(-g IntegralM|(fg)
      by A1,A2,A3,A7,A8,A18:    yx c= Cl yx by PRE_T:;
A15:g|dom(f-g) is nonpositive by A5,MESFUN11:1;
    g1|dom(f-g) = -(g|dom(f-g)) by MESFUN11:3; then
    Integral(M,g|dom(f-g)) = -Integral(M,g1|dom(f-g))
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    -Integral(M,g|dom(f-g)) = Integral(M,g1|dom(f-g));
    hence
         isclosed A6;
       : ;
A16:g-f = ProjPMap1(f|Ax =(fx|Xsection(,)       then
A17:&ProjPMap2(|A,y)=ProjPMap2(,)|section(,y
    f-:    X9 is closed by Th6;
UN11::52;
    hence Integral(M,g-f) = Integral(M,g|dom(g-f)) - Integral(M,f|dom(g-f))
       A20A,A10X26java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
end;

Lm1:
for Xhencethesis  by A13,17A18A20,A19,Th6,Th8,OPS_1:5;
 E be Element of S, f be PartFunc of:dom  = f/ A by RELAT_1:61;
 E = dom f & f is nonnegative & f is E-measurable holds
  Integral=dom(rojPMap1(,) /X-(x  61
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    E be     consider G Subset-amily  M such 
    assume that
A1:  E now ybe  ofX2;
  is and
A3:  b3: ProjPMap1f,x).y =f.x,)by A2A9,Def3

A7: dom(r(#f = by ,: 6
A8: r(#)f is E     yin-(x byXBOOLE_0:def4;
    per cases;      P(1,)y  ProjPMap1f,))(X-(x).java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
    A9  >0
     Integral(M,r(#)f)
       = integral(,())by,,8,9,MESFUNC5:20,88
      .= r * integral+(M,f) by A1,A3,A9,A2,MESFUNC5:86
      .= r * Integral(M,f) by A1,A3,A2,MESFUNC5:88;
      hence Integral(M,r(#)f) = r * Integral(M,f);
    end;
     A10:r <;
     set r2 = -r;

     r = (-1)*r2; then
     (#=(-)#(2())by
A11:  r(#)f = -(r2(#)f) by. ProjPMap2f1,)by ,Def4;

A12:  r(#)f is     letx Elementof X1;

     java.lang.StringIndexOutOfBoundsException: Range [54, 12) out of bounds for length 59
       = -integral+(M,-(r(#)f)) by A12,A7,A8,MESFUN11:57
      =-integral+(M,r2(#)f)byA11,MESFUN11:36
      .= -(r2*integral+(M,f))
         by A1,A3,A10,A2,MESFUNC5:86
      .= (-r2) * integral+(M,f) by XXREAL_3:92
      .= r * Integral(M,f) by A1,A3,A2,MESFUNC5:88;
     hence Integral(M,r(#)f) = r * Integral(M,f);
    end;
end;

Lm2:
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E be Element of S, f be PartFunc of X,ExtREAL, r be Real st
 E = dom f & f is nonpositive & f is E-measurable holds
  Integral(M,r(#)f) = r * Integral(M,f)
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    E be Element of S, f be PartFunc of X,ExtREAL, r be Real;
    assume that
A1:  E = dom f and
A2:  f is nonpositive and
A3: f is E-measurable;

    set f2 = -f;
A4: dom f2 = E by A1,MESFUNC1:def 7; then
A5: E = dom(r(#A3:(Xchi(A,[:X1,:)x)= ProjMap1X(,X1,X2],)
A6: f2 is  ((A[X1,:)y) =ProjMap2Xchi(A[X1,X2:),)by Th27

    f = -f2 by MESFUN11:36; then
    f = (-1)(#)f2 by MESFUNC2:9; then
    r(#)f = (r*(-1))(#)f2 by    (chiA,[:1,:)x).y  X-Ax,.java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
    r(#)f = (-1)(#)(r(#)f2) by MESFUN11:35; then
    r(#)f = -(r(#)f2) by a4: ProjMap1(Xchi(A,[:X1,X2:]),x) A,[:1,2].x,java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
     percases
      = -Integral(M,r(     :[,]in ;then
     .= (-1) * Integral(M,r(#     y  -section(,)by Th25;then
     .= (-1) * (r *ProjMap1(A,:X1,:],x).y
     .=(-)r)*Integral(,f2)by :66
     .= (-r) * (-Integral(M,f)) by      hence thesis;
     .= (-r) * ((-1) * Integral(M,f)) by XXREAL_3:91
     .= ((-r) * (-1)) * Integral(M,f) by XXREAL_3:66;
    hence Integral(M,r(#)f) = r * Integral(M,f);
end;

theorem
for X be non empty set, S be SigmaField of     suppose :not xy A;then
 E be Element of S, f be PartFunc of      not y in X-section(A,x) by Th25;   in-sectionAx Th25; then
 E      ProjMap1(chi(A,:X2:],)y =0
  holds Integral(M,r(#)f) = r * Integral(M,f) by Lm1,Lm2;

java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 37

theorem Th25:
for X,Y be non empty set, A be Element of bool [:X,Y:], x,y be set
 st x in X & y in Y holds
  ([x,y] in A iff x in Y-section(A,y)) & ([x,y] in A iff y in X-section(A,x))
proof
   let X,Y be non empty set, E be Element of bool [:X,Y:], x,y be set;
   assume A1: x in X & java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 7
A2:X-section(E,); then
    y in {y where y is Element of Y: [x,y] in E} by MEASUR11:def 4; then
    ex y1 be Element of Y st y = y1 & [x,y1] in E;
     x,]in ;
   end;
A3:now assume [x,y] in E; then
    y in {y where y is java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 41
ion,xbyjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 48
   end;
A4:b1:[,y A then
    x x-java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 38
    exx1  X  x=x1 &[1,y] in ;
    hence [x,y] in E;
   end;
   now  [x,] in ; then
    x in {x where x is Element of X: [x,y] in E} by A1;
    hence x in Y-section(E,y) by    end;
   end;
   ence thesis by A2A3A4;
end;

definition
  let X1,X2 be non empty set;
  let Y be set;
  let f be PartFunc of [:X1,X2      x inYsection(A,y)by Th25; then
   x be Element  ;
  func ProjPMap1(f,x) -> PartFunc of X2,Y    & Xchi(Y-section(A,y),X1).x = 0 by a5,a4,b2(-section(,y)X1)x=0by ,a4,b2,MEASUR10:ef;
hencethesis;
  for y be Element of X2 st [x,y] in dom f holds it.y = f.(x,y);
existence
proof   end;
   deffunc F(object) = f.(x,$1);
   defpred P[object] means 1inX-section(dom f,x)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A1:now let d be object;
    assume d inend;
    d     Xnon empty set,  ofX  besigma_Measure of S
    ex d1 be Element      f, be PartFunc of X,,  be Element  S
    hence d in X2 & [x,d] in dom f;
   end;

A3:for d be object st P[d] A3 A c g java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19

   consider P be PartFunc of X2,Y now let  object;
A4: (for x be object holds x in dom P iff x in X2 & P[A5    A &xin less_dom(f,r)by XBOOLE_0:def 4; then
 in dom P holds P.x  (x) from PARTFUN1:sch 3A3;

   java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 10

= section(dom ,x)by ;
   X- \ java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 57
   hence dom P = X-section(dom f     end then

   thus for d be Element of X2 st [x,d] in dom f holds P.d = f.(x,d)
   proof
     be Element of X2;
    assume [
    d in {y where  now let  be object
    d in X-section(dom f,x) by MEASUR11:def 4;
    hence P.d = f.(x,d) by A4;
   end;
end;
uniqueness
proof
let P1P2 be   ,;
   assume that
A1: dom P1 = X-section(dom f,x) and
A2: for d be Element of X2 st [x,d] in dom f holds P1.d = f.(x,d) and
A3: dom P2 = X-section(dom f    assume A is infinite;
A4: for d be Element of X2 st [x,d] in A27  ex  be Point ofM X=Ballw,12)by A23,A24;

A5: let       then
    assume d in X-section(dom f,x); then
    d in {y where y is Element of X2A28: diameter X<=2*(1/2) by TBSP_1:23;
    ex d1 be Element of X2 st d = d1 & [x,d1] in dom f;
    hence d inA/\less_dom(A29   is bounded by A27;
   end;

       ;
    assume d in dom P1; then
    P1.d = f.(x,d) & P2.d = f.(x,d) by A1,A2,A4,A5;
    hence P1.d = P2.d;
   end;
   hence P1 = P2 by A1,A3,PARTFUN1:5;
end;
end;

definition
,X2be
  let Y be set;
 let  bePartFunc of [X1,X2:],java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 8
A30:0dCXA TBSP_1;
  func ProjPMap2(f,y) -> PartFunc of X1,Y meansst c=dom f&
 dom it = Y-section(    xa c Cl xa by PRE_TOPC:8;
for x  ofX1 xy in dom f holds it    then
existence
proof
;
   defpred P[(#)is convergent & lim(z) = f.z)

A1:now let c be object;
    assume  ex FX be with_the_same_domFunctional_Sequenceof X1,ExtREAL
   c in x  f  Nat holds FX. =ProjPMap2(Fny))
    ex c1 be Element of X1 st c = c1 & [c1,y] in dom f;
    hence cA33 f0=CXA and
   end;

A3for c be object st P[c]holds F(c) in Y by A1,PARTFUN1:4;

   consider P be PartFunc of X1,Y such that
: forx be  holds in java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 57
  & for x be object st x in dom P holds P.x = F(x) from PARTFUN1:sch     reconsider f asSetSequence  M by A32,FUNCT_2:2;

   FYyis convergent & A35 for holds f. is bounded 

A5:dom P c= Y-section(dom f,y) by A4;
    ,)c dom  bybyA4;
   hence dom P = Y-section(dom f,y) by A5;

   thus for c be Element of X1 st [c,y] in dom f holds P.c = f.(c,y)
   proof
of  c f and
    assume [c,y] in dom f; then
    c in x where x isf. is infinite  A34;
    c in Y-section(dom f,y) by MEASUR11A3:  for x beElement of [:1X2:  xin A
    hence P.c =        F#    (xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   end;
end;
uniqueness
proof
   let P1,P2 be PartFunc of X1,Y;
   assume that
A1: dom P1 = Y-section(dom f,y) and
A2: for c be Element of X1 st [c,y] in dom f holds A5: fornbeElementof  beofPFuncs(X1ExtREAL)st P2[n,fA37 Ns0ULLseq. by SEQ_1:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A3: dom P2 = Y-section(dom f,y) and
A4 forcbe Element of  st[,y in dom f  P2.c =f(c,);

A5:now let c be object;
    assume c in Y-section( f,y) then
    c in {x where x is Element of X1: [x,y] in dom f} by MEASUR11:def 5; then
    ex be Element of  st c = &[,y 
    hence c in X1 & [c,y] in dom f;
   end;

   now let c be Element of X1;
    assume c in dom P1; then
    P1.c = f.(c,y) & P2.c = f.(c,y) by A1,A2,A4,A5;
    hence P1.c = P2.c;
   end;
   hence P1 = P2 by A1,A3,PARTFUN1:5;
end;


Th26:
for X1,X2 be non empty set, Y be set, f be PartFunc of    
  beElement of ,ybe Element  X2holds
  ( x in dom ProjPMap2(f,y) implies ProjPMap2(f,y).x = f.(x,y) )
& (yindom ProjPMap1(,x) implies ProjPMap1(,x). =f.(x,))
proof
   let X1,X2 java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0
   be  ofX1 d be Elementof ;
   hereby assume c in dom ProjPMap2(f,d); then
    c in Y-section(dom f,d) by Def4 n Nat
    c in {x where x A8   dom(.n  fA A2,
     x ElementX1st     []domf
    hence ProjPMap2(f,d).c = f.(c,d) by Def4;
   end;
   assume d in dom ProjPMap1      hence dom(.n)=Y-(A,)by A4,8,;
   d in X-section(dom f,c) by Def3; then
   d in {y where
   ex y be Element of X2 st d=y & [c     for m, be Nat holdsdomFX)=dom(FX.n)
   hence ProjPMap1(f     proof
end;

theorem Th27:
java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 59
  x be Element of X1, y be Element of X2
  holds ProjPMap1(f,x) = ProjMap1(f,x) & ProjPMap2(f,y) = ProjMap2(f,y)
proof
   let,Y be non set,f   [:,X2]Yjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
   x be Element of X1, y be Element of X2;

   dom f = [:X1,X2:] by FUNCT_2:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
domf =[]X1,]  :def 3;
   X-section(dom f,x) = X2 by MEASUR11:24; then
   dom ProjPMap1(f,let nbe Nat;
  n isElement  NATbyORDINAL1:def 12;

   for y be Element of X2 st y in dom ProjPMap1(f,x) holds
    ProjPMap1(f,x).y = ProjMap1(f,x).y
   proof
    let y be Element of X2;
    assume y in dom ProjPMap1(f,x); then
    ProjPMap1(f,x).y = f.(x,y) by Th26;
    hence ProjPMap1(f,x).y = ProjMap1(f,x).y by MESFUNC9:def 6;
   end;
   hence ProjPMap1(f,x) = ProjMap1(f,x) by A2,PARTFUN1is &(rojPMap2fy)x  limFX)

ion(dom ,)= by ,24;then
   dom ProjPMap2(f,y) = X1 by Def4; then
java.lang.StringIndexOutOfBoundsException: Range [56, 2) out of bounds for length 59

   for x be Element of X1 st x in dom ProjPMap2(f,y) holds
    ProjPMap2(f,y).x = ProjMap2(f,y).x
   proof
    let x be Element of X1;
    assume x in dom ProjPMap2(f,y); then
    ProjPMap2(f,y).x = f.(x,y) by Th26;
    hence ProjPMap2(f,y).x = ProjMap2(f,y).x by MESFUNC9:def 7;
   end;
   hence ProjPMap2(f,y) = ProjMap2(f,y) by A3,PARTFUN1       let n be Element ofNAT
end;

theorem
for X,Y,Z be non empty set, f be PartFunc of [:X,Y:],Z,
 x be Element of X, y be Element of Y, A be set holds
  X-section(f"A,x) = ProjPMap1(f,x)"A & Y-section(f"A,y) hence FXx. =(F#)by MESFUNC5: 13;
proof
    let X,Y,Z be non empty set, f be PartFunc of [:X,Y:],Z,
     beElement of X ybe  of ,A  set;
    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 44
    let beobject
     assume y in X-section(f"A,x); then
     yofY:[  }by4 java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
     considerdefpred [lement NAT,]means$2=ProjPMap1(F.$1,x)
A1:   y1 = y & [x,y1] in E;

A2:  [x,y] in dom f & f.[x,y] in A by A1,FUNCT_1:def 7; then
     y in {y where y is Element of Y: [x,y] in dom f} by A1; then
     y in X-section(dom f,x) by MEASUR11:def 4; then
A3:  y in dom(ProjPMap1(f,x)) by Def3;

     ProjPMap1(f,x).y1 = f.(x,y1) by A1,A2,Def3;
     hence y in ProjPMap1(f,x)"A by A1,A2,A3,FUNCT_1:def 7;
    end; then
A4: X-section(f"A,x) c= ProjPMap1(f,x)"A;

e object;
        be Element of NAT holds P1[n,FY.n] from FUNCT_2:sch 3(9;
A5:  y in dom(java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
     y in -section(domf,)byDef3;then
     y in {y where y is Element of Y: [x proof
     consider y1 be Element of Y such that
A6:   y1 = y & [x,y1] in dom f;

     f.(x,y1) in A by A5,A6,Def3; then
         [,] in f"A by A6,;then
     y in {y where y is Element of Y: [x,y] in f"A} by A6;
     hence y in X-section(f"A,x) by MEASUR11:def 4;
    end; then
    ProjPMap1(f,x     hence dom(FY.n)=X-(A,)  A4,A12,Def3;
    hence X-section(f"A,x) = ProjPMap1(f,x)"A by A4;

    now let x be object;
     assume  inY-fAy) then
     x in {x where x is Element of X: [x,y] in E} by MEASUR11:def 5; then
     consider x1 be Element of X such that
A7:   x1 = x & [x1,y] in E;

A8:  [x,y] in dom f & f.[x,y] in A by A7     dom(FY.m) = X-(,x)by A11;
x {where xis   :[,] f  A7; then
     x in Y-section(dom f,y) by MEASUR11:def 5; then
A9:  x in dom(ProjPMap2(f,y)) by Def4;

     ProjPMap2(f,y).x1 = f.(x1,y) by A7,A8,Def4;
     hence x in ProjPMap2(f,y)"A by A7,A8,A9,FUNCT_1:def 7;
    end;then
A10:Y-section(f"A,y) c= ProjPMap2(f,y)"A;

    now let x be object;
     assume x in ProjPMap2(f,y)"A; then
A11    proof
     x in Y-section(dom f,y) by Def4; then
     x in{ where x is  ofX:[,] in  f}by :def 5; then
     consider x1 be Element of X such that
A12:   x1 = x & [x1,y] in dom f;

     f.(x1,     hence F. = (.nx byA10;

     [x1,y] in f"A by A12,FUNCT_1:def 7; then
     x in {x where x is Element of X: [x,y] in f"A} thus for y be Element of X2 st y in X-section(A,x)
     hence x in Y-section(f"A,y) by MEASUR11:def 5;
    end; then
    ProjPMap2(f,y)"A c= Y-section(f"A,y);
    hence Y     let  be   ;
end;

theorem Th29:
for X1,X2 be non empty set, x be Element of X1, y be Element of X2,
 r be Real, f be PartFunc of [:X1,X2:],ExtREAL holds
  ProjPMap1(r(#)f,x) = r(#)ProjPMap1(f,x) &
  ProjPMap2(r(#)f,y) = r(#)ProjPMap2(f,y)
proof
    let X1,X2 be non empty set, x be Element of X1, y be Element of X2,
    r be:   A2java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    dom(ProjPMap1(r(#)f,x)) = X-section(dom(r(#)f (Y#)n =ProjPMap1(.,x.y  ;
  & dom((FY#y).n =(.n).xy A20,ef3;
      by Def3,Def4; then
A1: dom(ProjPMap1(r(#)f,x)) = X-section(dom f,x)
       end;
         hence FY# isconvergent A18FUNCT_2:63;
  & (ProjPMap1f,).  f(,) by A1,17Def3;
A2: dom(r(#)ProjPMap1(f,x)) = X-section(dom f,x)
   (#)(f,) = Y-(dom ,)Def3Djava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

    now let y be Element of X2;
     assume A3Lm3:
     y(A,x))-measurable &
       byA1,:def 4; then
4  exy1be Element of  st y1  y & [xy1 in  f; then
A5:  [x,y] in dom(r(#)f) by MESFUNC1:def 

:  f.x,y  =f[x,;
     (r(#)ProjPMap1(f,x)).y = r * ProjPMap1(f,x).y by A1,A2,A3,MESFUNC1:def 6
      .= r * (f.[x,y]) by A4,A6,Def3
      .= (r(#)f).(x,yAbeElement      setdf=diameter 
     hence ProjPMap1(r(#)f,x)    assumethat
   ;
    hence ProjPMap1(r(#)f,x) = r(#)ProjPMap1(f,x) by A1,A2,PARTFUN1:5;

    A39   be Natst N[ holds n1
     assume A7java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     x in {x where x is Element of X1: [x,y] in dom f}
       by A1,MEASUR11:def 5; then
:ex be Element ofX1stx1 = &[1,  dom f then
A9:  [x,y] in dom(r(#)f) by MESFUNC1:def 6;

A10: f.(,y) =java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 0
     (r(#)ProjPMap2(f,y)).x = r A4:dom f1=Aby A2,ELAT_1:62      then .n<( by A3java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
      .= r * (f.[x,y]) by A8,A10,Def4
      . ((f.(,y  MESFUNC1def 6;
henceProjPMap2(r()f,y)x=(     --Ax)=X-(,)
     & MeasurableY-(A,)=Y-section(A,y) by MEASUR11def6def7
    hence ProjPMap2(r(#)A7:dom((,)  section x
end;

theorem
for X2be nonempty set f be  PartFunc of [:1X2:,ExtREAL,
 x be Element of X1, y be Element of X2
 st (for z be Element of [:X1,X2:] st z in dom f holds f.z = 0)
 holds ProjPMap2(P1:ex  then
proof
    X1X2  PartFunc of[:X1,X2],ExtREAL,
   xbe Element of X1, y  Element of;
   assume
: for  beElement of [:A43  Ns.n1NULL. by :9

   now assume xin dom(ProjPMap2()) then
    x in Y-section(dom f,y) by Def4   proof
    per A1;
        supposesuppose fis nonnegative; then
A2:  x1 = x & [x1,y] in dom f;
    f.(x1,)  0by ,A2;
    hence ProjPMap2(f,y).x = 0 by A2,Def4;
   end;
   hence ProjPMap2      then

   now assume y in dom(ProjPMap1(f,x)); thenA45:  F&for nm  Nat st n < holds
     inX-section(omf)  ;then
    y in {y where y Element of X2:[x,]in dom f}by :    y in {y where y is Element of X2: [x,y] in dom f} by MEASUR11:def
    consider y1 be Element of X2 such that
  y1=y&[,1 indom ;
    f.(x,y1) = 0 by A1,A3;
    hence ProjPMap1(f,x).y = 0 by A3,Def3;
   end;
   hence ProjPMap1(f,x).y = 0 by FUNCT_1:def 2;
end;

theorem Th31:
for ,  non empty , S1 be SigmaField of X1,S2  SigmaField     (orn  Nat holds F.n is nonpositive)
  x be Element of X1, y be Element of X2, f be PartFunc of [:X1,X2:],ExtREAL
 st f is_simple_func_in sigma measurable_rectangles(S1,S2    &(or,m   st n <m holds
  ProjPMap1(,x  S2  (f,)  S1
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
xbe   of ,y be Element of X2  bePartFunc   :1,2]ExtREAL
   assume     hence thesis;
A1: end;
   ex F be   end;
    (dom f = union rng F     then
       n in dom F & x in F.n & y in F.n holds f.x = f.y)
     by MESFUNC2:ef4java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    F Finite_Sep_Sequenceof  (,2)
    such that
2   =union rngFjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         dom  z1 in F. & A52 lim seq=0 by A47,SEQ_4:;
         by AS,MESFUNC2:def 4;

A4:rng f c= REAL by A1,VALUED_0:def 3;

   now let a be object;
    assume a in rng ProjPMap1(f,x    then
    consider y1 be Element of X2 such that
A5:y1 in (,) a  ProjPMap1f)y1 by PARTFUN1:;
A6    end;
    y1 in Xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    y1 in {y where y is Element of X2: [x,y] in dom f} by MEASUR11:def 4; then
    ex y be Element ofsuch that
A12 (ornbe  holdsFYn=ProjPMap1(.,x) and
   end; then
   rng ProjPMap1(f,x) c= REAL; then
:ProjPMap1(,x  valued  VALUED_0d3java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51

   deffunc F1(Nat) = Measurable-X-section(F.$1,x);

   consider F1 be FinSequence of S2 such that
A8: len F1 = len F & for n be Nat st n in dom F1 holds let  java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      sch ;
A9:dom F1 = dom F by A8,FINSEQ_3:hencedomFY.)= (,)by ;

   reconsider FF = F as FinSequence of bool A14:om(.0 =--(x byA6;

   nowA15:  be  holdsFY. is(-section(,)-
    assume A10: m in dom F1 & n in dom F1 & m <> n;
    Measurable-X-     FY.n = ProjPMap1(F. = (Fn,)&F is_simple_func_in S A8java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
  & Measurable-X-section(F.      by ,ESFUNC234;
A11:F1.m = X-section(F.m,x) & F1.n = X-section(F.n,x) by A10,A8;
    F.m misses F.n by A9,A10,Def2;
    hence F1.m misses F1.n by A11,MEASUR11:35;
   end; then
A17:for y be Element of X2 st yX-section(A,)holds
   reconsider F1 as Finite_Sep_Sequence of S2;

   reconsider FF1 = F1 as FinSequence of bool X2 by FINSEQ_2:24;

A12:for n be Nat st n in dom FF1 holds FF1     reconsider   [,y Element [X1,:by def2;
   proof
    let n be Nat;
    assume n in dom FF1; then
    FF1.n = Measurable-X-section(F.n,x) by A8;
    hence FF1.     (ProjPMap1ProjPMap1f1).y  ProjPMap1(f,). byA6,A18F:;
   end; then
   Xsection(  ,x =rng  bybyA9,:28 then
A13:dom ProjPMap1(f,x) = union rng F1 by A2,Def3end;

   for n be Nat, y1,y2 be Element of X2  ProjPMap1(f1x)= (x|section(,)by  java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    &y2 F1nholds ProjPMap1(,x.=ProjPMap1(.java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
   proof
    let n be Nat, y1,y2 be Element by A6,A7,A14,A15,A16,A17,Th36,MESFU;
    assume A14: n in dom F1 & y1 in F1.n & y2 in F1.n; then
F1n= section(FF.,x)by A12;
A17:FF.n in rng F by A9,A14,FUNCT_1:3; then
    FF.n c= union rng F by TARSKI:def 4; then
    F1.n c= X-section(dom f,x) by A2,A15,MEASUR11:20; then
    y1 in X-section(dom f,x) & y2 in X-section(dom f,x) by A14 f x    stx Ysection(,)holds
    y1 in dom ProjPMap1(f,x) & y2        FX is  &(ProjPMap2(f,y
f,)y1 =f(,)&ProjPMap1(,)y2  f(,y2 byTh26;

A18:[x,y1] in union rng F implies [x,y1] in F.n
    proof
      [y1   F then
     consider A be set such that
A19:  [x,y1] in
     consider m be object such that
A20:m in domF   =Fm by A19,UNCT_1:def 3java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
     reconsider m as Nat by A20;
     now assume m <> n; then
      for y be Element    dom(ProjPMap1(CAB,x)) (ProjPMap1(AB,) =X2 /\section(E,x)by A0,ELAT_1:61; 
        by A19A1:dom(ProjPMap1(,)) =X-ection(,x)  XBOOLE_1:28;
      not y1 in {y where java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      not y1 in X-section(F.,) by MEASUR11: 4;
      hence contradiction by A14,A12;
     end;
     hence [x,y1] in F.n by A19,A20;
    end;

A21:[x,y1] in union rng F
    proof
     assume not [x,y1] in union java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 32
     for y be Element of X2 sty  X-section(E,x) by Th25; then
       by A17,TARSKI:def 4; then
     not y1 in {y where y is Element of X2: [x,y] in F.n}; then
     not y1 in X-section(F.n,x) by MEASUR11:def 4;
     hence contradiction by A14,A12;
    end;

    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
     for y be Element of X2 st y2=y holds not [x,y] in F.n; then
     not y2 in {y where y is Element of X2: [x,y] in F.n}; then
     not y2 in X-section(F.n,x) by MEASUR11:def 4;
     hence contradiction by A14,A12;
    end;
    hence ProjPMap1(f,x).y1 = ProjPMap1(f,x).y2 by A3isA34
   end;
   hence  S2 by A7,,ESFUNC2:def 4

   now let a be object;
    assume a in rng ProjPMap2(f,y); then
    consider x1 be Element of X1 such that
A25: x1 in dom ProjPMap2(f,y) & a = ProjPMap2(f,y).x1 by PARTFUN1:3;
A26:a = f.(x1,y) by A25,Th26;
    x1 in Y-section(dom f,y) by A25,Def4; then
    x1 in {x where x is Element of X1: [x,y] in dom f} by MEASUR11:def 5; then
    ex x be Element of X1 st x1 = x & [x,y] in dom f;
    hence a in REAL by A4,A26,FUNCT_1:3;
   end; then
   rng ProjPMap2
A27:ProjPMap2(f,y) is real-valued by VALUED_0:def 3not y in X-section(E,x) by A5,Th25; then

   deffunc G1(Nat) = Measurable-Y-section(F.$1,y);

   consider G1 be FinSequence of S1 such that
A28:len G1 = len F & for n be Nat st n in dom G1 holds G1.n = G1(n)
      from FINSEQ_2:sch 1;
A29:dom G1 = dom F by A28,FINSEQ_3:29;

   now let m,n be Nat;
    assume A30: m in dom G1 & n in dom G1 & m <> n;
    Measurable-Y-section(F.m,y) = Y-section(F.m,y)
  & Measurable-Y-section(F.n,y) = Y-section(F.n,y) by MEASUR11:def 7; then
A31:G1.m = Y-section(F.m,y) & G1.n = Y-section(F.n,y) by A30,A28;
    F.m misses F.n by A29,A30,Def2;
    hence G1.m misses G1.n by A31,MEASUR11:35;
   end; then
   G1 is disjoint_valued; then
   reconsider G1 as Finite_Sep_Sequence of S1;

   reconsider GG1 = G1 as FinSequence of bool X1 by FINSEQ_2:24;

A32:for n be Nat st n in dom GG1 holds GG1.n = Y-section(FF.n,y)
   proof
    let n be Nat;
    assume n in dom GG1; then
    GG1.n = Measurable-Y-section(F.n,y) by A28;
    hence GG1.n = Y-section(FF.n,y) by MEASUR11:def 7;
   end; then
   Y-section(union rng FF,y) = union rng GG1 by A29,MEASUR11:29; then
A33:dom ProjPMap2(f,y) = union rng G1 by A2,Def4;

   for n be Nat, x1,x2 be Element of X1 st n in dom G1 & x1 in G1.n
    & x2 in G1.n holds ProjPMap2(f,y).x1 = ProjPMap2(f,y).x2
   proof
    let n be Nat, x1,x2 be Element of X1;
    assume A34: n in dom G1 & x1 in G1.n & x2 in G1.n; then
A35:G1.n = Y-section(FF.n,y) by A32;
A37:FF.n in rng F by A29,A34,FUNCT_1:3; then
    FF.n c= union rng F by TARSKI:def 4; then
    G1.n c= Y-section(dom f,y) by A2,A35,MEASUR11:21; then
    x1 in Y-section(dom f,y) & x2 in Y-section(dom f,y) by A34; then
    x1 in dom ProjPMap2(f,y) & x2 in dom ProjPMap2(f,y) by Def4; then
A36:ProjPMap2(f,y).x1 = f.(x1,y) & ProjPMap2(f,y).x2 = f.(x2,y) by Th26;

A38:[x1,y] in union rng F implies [x1,y] in F.n
    proof
     assume [x1,y] in union rng F; then
     consider A be set such that
A39:  [x1,y] in A & A in rng F by TARSKI:def 4;
     consider m be object such that
A40:  m in dom F & A = F.m by A39,FUNCT_1:def 3;
     reconsider m as Nat by A40;
     now assume m <> n; then
      for x be Element of X1 st x1=x holds not [x,y] in F.n
        by A39,A40,XBOOLE_0:3,PROB_2:def 2; then
      not x1 in {x where x is Element of X1: [x,y] in F.n}; then
      not x1 in Y-section(F.n,y) by MEASUR11:def 5;
      hence contradiction by A34,A32;
     end;
     hence [x1,y] in F.n by A39,A40;
    end;

A41:[x1,y] in union rng F
    proof
     assume not [x1,y] in union rng F; then
     for x be Element of X1 st x1=x holds not [x,y] in F.n
       by A37,TARSKI:def 4; then
     not x1 in {x where x is Element of X1: [x,y] in F.n}; then
     not x1 in Y-section(F.n,y) by MEASUR11:def 5;
     hence contradiction by A34,A32;
    end;

    now assume not [x2,y] in F.n; then
     for x be Element of X1 st x2=x holds not [x,y] in F.n; then
     not x2 in {x where x is Element of X1: [x,y] in F.n}; then
     notx2 -java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 50
     hence contradiction by A34A2:[,] indom fand
    end;
    hence ProjPMap2(f,y).x1 = ProjPMap2(f,y).x2 by A3,A34,A29,A36,A38,A41;
   end;
   hence ProjPMap2(f,y) is_simple_func_in S1 by A27,A33,MESFUNC2:def 4;
end;

theorem Th32:
X benon java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 67
  f be PartFunc of [:X1,X2:],ExtREAL
 st f is nonnegative holds
  ProjPMap1(f,x) is nonnegative & ProjPMap2(f,y) is nonnegative
proof
   let X1,X2 be non empty setjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
   f be PartFunc of [   hereby assume that
   assume A1: f is nonnegative;

   for q be object st q in dom (ProjPMap1(f,x)) holds 0 <= (ProjPMap1(f,x)).q
   proof
    let q be object;
    assume A2: q in dom(hence ProjPMap2(f,y).x = a by A7,Th26;
    reconsider y1 = q as Element of X2;
    ProjPMap1(f,x).q = f.(x,y1) by A2,Th26;
    hence 0 <= (ProjPMap1(f,x)).q by A1,SUPINF_2:51;
   end;
   hence ProjPMap1(,]fby A6,def;

   for p be object st      xin (A,y d ;
   proof
    let p be object;
    assume A3: p in dom    end java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    reconsider x1 = p as Element java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    ProjPMap2(f,y).p = f.(x1,y)for,X2be  set,A,Bbe of :,:,pbe holds
    hence 0 <= (ProjPMap2(f,y)).p by A1,SUPINF_2:51;
   end;
   java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 54
end;

theorem Th33:
emptyset, xbe X1y of X2,
  f be PartFunc of [:X1,X2:]A1:exy  Elementof st q=y  [,] inE1\E2;then
     pq] in E1  not[,q  XBOOLE_0def 5;then
  ProjPMap1(f,x) is nonpositive & ProjPMap2(f,y) is nonpositive
proof
   let X1,X2 be non empty set, x be Element of X1, y be Element of X2,
   f be PartFunc of [:X1,X2A3: q in X-(E1,p)by MEASUR11:ef 4;
   assumeA1 is ;

   for q be set st q in dom (ProjPMap1(f,x)) holds 0 >= (ProjPMap1(f,x)).q
   proof
    let q be set;
    assume contradiction by ,XBOOLE_0def 5;
    reconsider y1 = q as Element of X2;
    ,x.= f.(,1)by ,
hence0 =(fx)q by MESFUNC5;
   end;
   hence ProjPMap1(f,x) is nonpositive by MESFUNC5:9;

(ProjPMap2y)   =(fy)).
   proof
     pbe set
    assume A3: p in dom(ProjPMap2(f,y)); then
    reconsider x1 = p as Element of X1;
    ProjPMap2fy.  .(x1,  A3,;
    hence 0 >= (ProjPMap2(f,y)).p by A1,MESFUNC5:8;
   end;
   hence     not[,]in E2by A5 then
end;

theorem Th34:
for X1,X2 be non empty set, x be Element of X1, y be Element of X2,
 A be Subset of [:X1,X2:], f be PartFunc of [:X1,X2:],ExtREAL
 holds ProjPMap1(f|A,x) = ProjPMap1(f,x)|X-section(A,x)
     & ProjPMap2(f|A,y) = ProjPMap2(f,y)|Y-section(A,y)
proof
    let X1,X2 be non empty set, x be Element of X1, y be Element of X2,
    A be Subset of [:X1,X2:], f be PartFunc of [:X1,X2:],ExtREAL;
    set f1 = f|A;

A2: dom f /\ A c= dom f by XBOOLE_1:17;

A4: dom f1 = dom f /\ A by RELAT_1:61;

A7: dom(ProjPMap1(f,x)|X-section(A,x))
    = dom(ProjPMap1(f,x)) /\ X-section(A,x) by RELAT_1:61
   .= X-section(dom f,x) /\ X-section(A,x) by Def3
   .= X-section(dom f /\ A,x) by MEASUR11:27
   .= dom(ProjPMap1(f1,x)) by A4,Def3;

    now let y be Element of X2;
     assume y in dom(ProjPMap1(f1,x)); then
A8:  y in X-section(dom f /\ A,x) by A4,Def3; then
A9:  [x,y] in dom f /\ A by Th25; then
     ProjPMap1(f1,x).y = f1.(x,y) by A4,Def3; then
A10: ProjPMap1(f1,x).
b3:  ProjPMap1(f,x).y = f.(x,y) by A2,A9,Def3;
     y in X-section(dom f,x) /\ X-section(A,x) by A8,MEASUR11:27; then
     y in X-section(A,x) by XBOOLE_0:def 4;
     hence (ProjPMap1(f1,x)).y = (ProjPMap1(f,x))|(X-section(A,x)).y
       by A10,b3,FUNCT_1:49;
    end;
    hence ProjPMap1(f1,x) = (ProjPMap1(f,x))|(X-section(A,x))
      by A7,PARTFUN1:5;

A13:dom(ProjPMap2(f,y)|Y-section(A,y))
    = dom(ProjPMap2(f,y)) /\ Y-section(A,y) by RELAT_1:61
   .= Y-section(dom f,y) /\ Y-section(A,y) by Def4
   .= Y-section(dom f /\ A,y) by MEASUR11:27
   .= dom(ProjPMap2(f1,y)) by A4,Def4;

    now let x be Element of X1;
     assume x in dom(ProjPMap2(f1,y)); then
A14: x in Y-section(dom f /\ A,y) by A4,Def4; then
A15: [x,y] in dom f /\ A by Th25; then
     ProjPMap2(f1,y).x = f1.(x,y) by A4,Def4; then
A16: ProjPMap2(f1,y).x = f.(x,y) by A15,FUNCT_1:48;
b4:  ProjPMap2(f,y).x = f.(x,y) by A2,A15,Def4;
     x in Y-section(dom f,y) /\ Y-section(A,y) by A14,MEASUR11:27; then
     x in Y-section(A,y) by XBOOLE_0:def 4;
     hence (ProjPMap2(f1,y)).x = (ProjPMap2(f,y))|(Y-section(A,y)).x
      by A16,b4,FUNCT_1:49;
    end;
    hence ProjPMap2(f1,y) = (ProjPMap2(f,y))|(Y-section(A,y))
      by A13,PARTFUN1:5;
end;

theorem Th35:
for X1,X2 be non empty set, A be Subset of [:X1,X2:], x be Element of X1,
  y be Element of X2 holds
   ProjPMap1(Xchi(A,[:X1,X2:]),x) = Xchi(X-section(A,x),X2)
 & ProjPMap2(Xchi(A,[:X1,X2:]),y) = Xchi(Y-section(A,y),X1)
proof
   let X1,X2 be non empty set, A be Subset of [:X1,X2:],
   x be Element of X1, y be Element of X2;

A3:ProjPMap1(Xchi(A,[:X1,X2:]),x) = ProjMap1(Xchi(A,[:X1,X2:]),x)
 & ProjPMap2(Xchi(A,[:X1,X2:]),y) = ProjMap2(Xchi(A,[:X1,X2:]),y) by Th27;

   for y be Element of X2 holds
    ProjMap1(Xchi(A,[:X1,X2:]),x).y = Xchi(X-section(A,x),X2).y
   proof
    let y be Element of X2;
a5: [x,y] in [:X1,X2:] by ZFMISC_1:def 2;
a4: ProjMap1(Xchi(A,[:X1,X2:]),x).y = Xchi(A,[:X1,X2:]).(x,y)
      by MESFUNC9:def ::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
    suppose b1:[,y in ;then
            , FUNCOP_1,SUPINF_2,VALUED_0,FUNCT_2, PARTFUN1,
     (chi(,:1,2:)x). =+nfty
   & Xchi(X-section(A,)X2).y =+infty by a4,1,EASUR10:ef 7;
     hence thesis;
    end;
     b2:not [x,]inA then
     not y  registrations ORDINAL1, XBOOLE_0,RELAT_1,SUBSET_1, ,XXREAL_0,
     (Xchi,:1,2:)x)y =0
   &Xchi(-section(,)X2)y =0 by a5,4,2,EASUR10:ef ;
     hence thesis;
    end;
   end;
   hence ProjPMap1(Xchi(A,[:X1,equalities XCMPLX_0, FINSEQ_1, BINOP_1;
     by A3,FUNCT_2:def 8;

   for x be Element of X1 holds
    ProjMap2(Xchi(A,[:X1,X2:]),y).x = Xchi(Y-section(A,y),X1).x
   proof
    let x be Element of X1;
a5: [x,y] in [:X1,X2:] by ZFMISC_1:def 2;
a4: ProjMap2(Xchi(A,[:X1,X2:]),y).x = Xchi(A,[:X1,X2:]).(x,y)
      by MESFUNC9:def 7;
    per cases;
    suppose b1: [x,y] in A; then
     x in Y-section(A,y) by Th25; then
     ProjMap2(Xchi(A,[:X1,X2:]),y).x = +infty
   & Xchi(Y-section(A,y),X1).x = +infty by a4,b1,MEASUR10:def 7;
     hence thesis;
    end;
    suppose b2: not [x,y] in A; then
     not x in Y-section(A,y) by Th25; then
     ProjMap2(Xchi(A,[:X1,X2:]),y).x = 0
   &      MEASURE1,VALUED_0 ,RELAT_1 ,EXTREAL1 ,
      thesis;
    end;
   end;
   hence ProjPMap2(Xchi(A,[:X1,X2:]),y) = Xchi(Y-section(A,y),X1)
     by A3,FUNCT_2:def 8;
end;

theorem Th36:
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 f,g be PartFunc of X,ExtREAL, E be Element of S
  st f|E = g|E & E c= dom f & E c= dom g & f is E-measurable
  holds g is E-measurable
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
     f,g be PartFunc of X,ExtREAL, A be Element of S;
    assume that
A1:  f|A = g|A and
A2:  A c= dom f and
A3:  A c= dom g and
A4:  f is A-measurable;

    now let r be Real;
     now let x be object;
     assume x inA/\less_dom(,) 
A5:   x in A & x in less_dom(A1 for  being object st x in  ex y being object st P[,]
:  x in dom f &f. < r by MESFUNC1:ef 11;
f = (|A)x by A5,UNCT_1:9;then
fx =g.x by A1,5,UNCT_1:9;then
      x in less_dom(,)by A3,5,6 being object st x   holds P[,f.]from FUNCT_1:ch 2(2,A1)
      hence x in Aproof
     end; then
A7:  A /      hence f.x in ExtREAL by XXREAL_0:ef 1;

     now let x be object;
      assume x in A /\ less_dom(g,r); then
A8:   x in A & x in less_dom(g,r) by XBOOLE_0:def 4; then
:def 11;
end;
      g.x = f.x by A1,A4 for x beingobject st xin holds( in   .  )&
      x in less_dom(,)by A2,8,9,ESFUNC1:ef 11
       xin A / less_dom(,) by A8,BOOLE_0:ef4
     A7:   x ;
    A / less_dom(,)c=A / less_dom(,) then
A/ less_dom(,)=A / less_dom(,) by A7;
     hence A     end;
    ;
   hence thesis by MESFUNC1:ef 16;
end;

xin X; then
for X1,X2A2:(()hi(A,). =r*chi(,)x by MESFUNC1:def6
f be PartFunc of [X1,2:,xtREAL,x be Element of X1,y be Element of X2,
  F be Functional_Sequence of [X1,2:,xtREAL
 st A c= dom f  chi(,). =0 & (,,X)x = 0 byDef1FUNCT_3def3;
   (for n be Nat     java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 & (for z be Element of [:X1,X2:] st z in A holds
      (F#z) is convergent & lim(F#z) = f.z)
holds
( ex FX be with_the_same_dom        B4,A6def5; then
  st      domProjPMap1(,)   dom(
   & (for x be Element of X1 st x in Y-section(A,y) holds
       FX#x is convergent & (ProjPMap2(f,y)).x = java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 14
( ex FY be with_the_same_dom Functional_Sequence of X2,ExtREAL
  st (for n be Nat holds FY.n = ProjPMap1(F.n,x))
   & (for y be Element of X2 st y     f1  java.lang.StringIndexOutOfBoundsException: Range [60, 57) out of bounds for length 63
       FY#y is convergent & (ProjPMap1(f,x)).y = lim(java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 0
proof
    let = Y-sectionf1f2,) byDef4
    f be PartFunc of [:X1,X2:],ExtREAL, x be Element of X1, y be Element of X2,
    Fbe:X2]java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50

A1:  A c= dom f and
A2:  for n be Nat holds dom(F.n) = A and
A3:  for x be Element of [:X1,X2\Y-((f1"-infty \ f2"+java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
       holds (F#x) is convergent & lim(F#x) = f.x;

    set f1 = f|A;
A4: dom f1 = A by A1,RELAT_1:62XBOOLE_04 then

    defpred P2[Elementof NAT,bject]means $ =ProjPMap2(.1,)

A5: for n be Element    proof

     let n beElement of NAT;
reconsiderf  F.n,y)
       as Element of PFuncs(1,xtREAL)   end
      f;
     hence(AX.  (-(X)byjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    end;

    thus ex FX beend;
       nbe  .n= Fn,)
 x inY-ection(A,y)holds
FXxis convergent &(rojPMap2(,). =lim(X#)
    proof
     FXbesuch
A6:  for n be Element of  maxf-Xsection(,)-easurable

A7: for n be Nat holds dom(X.)=Y-section(,)
     
      letend;
A8:  dom(.) =dom(|)by A2,4;
      n     (,,)is withoutinfty - by Th1;
      FXn=ProjPMap2(.y A6;
      hence dom(FX.)=Y-ection(,)by A4,8,ef4;
     java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9

     nbejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 47
     proof
      let m,n be java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      dom(FX.)=-A,A7java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      hence dom(A4:ax+  measurable M25;

ofX1E
       by MESFUNC8:ef 2;
     take FX;

      for  be Nat   hence(+fis(A)-measurable
     proof
           x      A3,,;
       isElement of  by :def 12;
 .=rojPMap2(.,);
     end;

     thusfor xbe of st x  Ysection(A,)holds
       FX# is convergent & (rojPMap2(,).x =lim(#)
     take  .;
      let      A11:E.={}
      java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
      assume x in Y-section(A,y); then
A13:   [x,y] in A by Th25; then
z by A3;

A15proof
      proof
        n ElementofNAT;
A16:  [,]indom(.) by A2,13;
(#x). =(X.)x by MESFUNC5:ef 13; then
       (FXsuppose E.n ={;then
(#)n =(.)(,)by A16,ef4java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
       hence (X#)n =(#)n by : 13;
end;

2f,). =f.x,)by A1,13,ef4;
hence (ProjPMap2(,). =lim(X#)by A14,15,UNCT_2:3;
     end A19:n in domE;
    end;

    defpred P1[Element of     hence f.x =.  A12,20,21java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

A9:for n be Element of NAT ex f be Element of PFuncs(X2,ExtREAL)st P1[,]
       
let n be Element of NAT;
     reconsiderA23: n in dom E byFUNCT_1def2;then
       as Element of PFuncs(2,ExtREAL)by java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 13
     take f;
     ;
    end;

    consider FY be sequence of PFuncs(X2,ExtREAL     by A6,A1A3A2def ;
A10: for n be Element of NAT holds P1[n,FY.n] from FUNCT_2:sch 3hence f)= max(java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 71

A11:for n be Nat holds dom(FY.n) = X-section(A,x)
    proof
     let n be Nat;
A12: dom(F.n) = dom(f|A) by A2,A4;
     n is Element of NAT by ORDINAL1:def 12; then
     FY.n = ProjPMap1(F.n,x) by A10;
     dom(.)=X-A,x  A12
    end;

    for m,
    proof
     let m,n be Nat;
     dom(FY.m) = X-section(A,x) by A11;
     hence dom(FY.m) = dom(FY.n) by A11;
    end; then
    reconsider FY as with_the_same_dom Functional_Sequence of X2,ExtREAL
      by MESFUNC8:def 2;
    take FY;
    thus for n be Nat holds FY.n    henceProjPMap1max-,x = max-(x) byA1,,java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 71
    proof
     let n be Nat;
     n is Element of NAT by ORDINAL1:def 12;
     hence FY.n = ProjPMap1(F.n,x) by A10;
    end;

    thus for y bey)  -f,)
      FY
    proof
     let y be Element of X2;
     reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 37
A17::(f,y)=Y-dom ,)
A18: F#z is & dom(ProjPMap2(max,)=Ydom f, :def 2,def 3

A19: for n be Element of NAT holds (FY#y).n = (F#z).n
     proof
      let n beA2:om((f,y))=Y-dom f,)
A20:  [x,y] in dom(F.n) by A2,A17;
      (FY#y).n = (FY.n).y by MESFUNC5:def 13; then
      (FY#y).n = ProjPMap1(F.n,x).y by A10; then
      (FY#y).n = (F.n).(x,y) by A20,Def3;
      hence (FY#y).n = (F#z).n by MESFUNC5:def 13;
     end;
     hence FY#y is convergent by A18,FUNCT_2:63;
     (ProjPMap1(f,x)).y = f.(x,y) by A1,A17,Def3;
     hence (ProjPMap1(f,x)).y = lim(FY#y) by A18,A19,FUNCT_2:63;
    end;
end;

Lm3:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  f be PartFunc of [:X1,X2:],ExtREAL, x be Element of X1, y be Element of X2,
  A be Element of sigma measurable_rectangles(S1,S2)
 st (f is nonnegative or f is nonpositive) & A c= dom f & f is A-measurable
 holds ProjPMap1(f,x) is (Measurable-X-section(A,x))-measurable &
       ProjPMap2(f,y) is (Measurable-Y-section(A,y))-measurable
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    f be PartFunc of [:X1,X2:],ExtREAL, x be Element of X1, y be Element of X2,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume that
is  fis nonpositive
A2:  A c= dom f and
A3:  f is A-measurable;

    reconsider X12 = [:X1,X2:] as Element of sigma measurable_rectangles(S1,S2)
      by MEASURE1:7;
    reconsider S = sigma measurable_rectangles(S1,S2)
      as SigmaField of [:X1,X2:];

    set f1 = f|A;
A4: dom f1 = A by A2,RELAT_1:62;
    A = dom f /\ A by A2,XBOOLE_1:28; then
A5: f1 is A-measurable by A3,MESFUNC5:42;
A6: Measurable-X-section(A,x) = X-section(A,x)
  & Measurable-Y-section(A,y) = Y-section(A,y) by MEASUR11:def 6,def 7;
A7: dom(ProjPMap1(f,x)) = X-section(dom f,x)
  & dom(ProjPMap1(f1,x)) = X-section(A,x) by A4,Def3;
B7: dom(ProjPMap2(f,y)) = Y-section(dom f,y)
  & dom(ProjPMap2(f1,y)) = Y-section(A,y) by A4,Def4;

P1:ex F be Functional_Sequence of [:X1,X2:],ExtREAL st
    (for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f1) &
    (for x be Element of [:X1,X2:] st x in dom f1 holds
     (F#x) is convergent & lim(F#x) = f1.x)
   proof
    per cases by A1;
    suppose f is nonnegative; then
     ex F be Functional_Sequence of [:X1,X2:],ExtREAL st
      (for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f1)
    & (for n be Nat holds F.n is nonnegative)
    & (for n,m be Nat st n <=m holds
        for x be Element of [:X1,X2:] st x in dom f1 holds (F.n).x <= (F.m).x )
    & for x be Element of [:X1,X2:] st x in dom f1 holds
        (F#x) is convergent & lim(F#x) = f1.x by A4,A5,MESFUNC5:15,64;
     hence thesis;
    end;
    suppose f is nonpositive; then
     ex F be Functional_Sequence of [:X1,X2:],ExtREAL st
      (for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f1)
    & (for n be Nat holds F.n is nonpositive)
    & (for n,m be Nat st n <=m holds
        for x be Element of [:X1,X2:] st x in dom f1 holds (F.n).x >= (F.m).x )
    & for x be Element of [:X1,X2:] st x in dom f1 holds
        (F#x) is convergent & lim(F#x) = f1.x by A4,A5,MESFUN11:1,56;
     hence thesis;
    end;
   end;

   consider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
A8: (for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f1) and
A9: for x be Element of [:X1,X2:] st x in dom f1 holds
     (F#x) is convergent & lim(F#x) = f1.x by P1;

A10:for z be Element of [:X1,X2:] st z in A holds
      (F#z) is convergent & lim(F#z) = f.z
    proof
     let z be Element of [:X1,X2:];
     assume A11: z in A;
     hence (F#z) is convergent by A4,A9;
     thus lim(F#z) = f1.z by A4,A9,A11 .= f.z by A11,FUNCT_1:49;
    end;

    consider FY be with_the_same_dom Functional_Sequence of X2,ExtREAL
      such that
A12: (for n be Nat holds FY.n = ProjPMap1(F.n,x)) and
A13: (for y be Element of X2 st y in X-section(A,x) holds
       FY#y is convergent & (ProjPMap1(f,x)).y = lim(FY#y))
         by A2,A4,A8,A10,Th37;

    for n be Nat holds dom(FY.n) = X-section(A,x)
    proof
     let n be Nat;
     FY.n = ProjPMap1(F.n,x) & dom(F.n) = A by A4,A8,A12;
     hence dom(FY.n) = X-section(A,x) by Def3;
    end; then
A14:dom(FY.0) = Measurable-X-section(A,x) by A6;

A15:for n be Nat holds FY.n is (Measurable-X-section(A,x))-measurable
    proof
     let n be Nat;
     FY.n = ProjPMap1(F.n,x) & F.n is_simple_func_in S by A8,A12;
     hence FY.n is (Measurable-X-section(A,x))-measurable
       by Th31,MESFUNC2:34;
    end;

A16:X-section(A,x) c= dom(ProjPMap1(f,x)) by A2,A7,MEASUR11:20;

A17:for y be Element of X2 st y in Measurable-X-section(A,x) holds
      FY#y is convergent & (ProjPMap1(f1,x)).y = lim(FY#y)
    proof
     let y be Element of X2;
     reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     assume A18: y in Measurable-X-section(A,x);
     hence FY#y is convergent by A6,A13;
     ProjPMap1(f1,x) = ProjPMap1(f,x)|X-section(A,x) by Th34; then
     (ProjPMap1(f1,x)).y = (ProjPMap1(f,x)).y by A6,A18,FUNCT_1:49;
     hence (ProjPMap1(f1,x)).y = lim(FY#y) by A6,A13,A18;
    end;

    ProjPMap1(f1,x) = ProjPMap1(f,x)|X-section(A,x) by Th34; then
    ProjPMap1(f1,x)|Measurable-X-section(A,x)
     = ProjPMap1(f,x)|Measurable-X-section(A,x) by A6;
    hence ProjPMap1(f,x) is (Measurable-X-section(A,x))-measurable
      by A6,A7,A14,A15,A16,A17,Th36,MESFUNC8:26;


    consider FX be with_the_same_dom Functional_Sequence of X1,ExtREAL
      such that
A19: (for n be Nat holds FX.n = ProjPMap2(F.n,y)) and
A20: (for x be Element of X1 st x in Y-section(A,y) holds
       FX#x is convergent & (ProjPMap2(f,y)).x = lim(FX#x))
         by A2,A4,A8,A10,Th37;

    for n be Nat holds dom(FX.n) = Y-section(A,y)
    proof
     let n be Nat;
     FX.n = ProjPMap2(F.n,y) & dom(F.n) = A by A4,A8,A19;
     hence dom(FX.n) = Y-section(A,y) by Def4;
    end; then
A21:dom(FX.0) = Measurable-Y-section(A,y) by A6;

A22:for n be Nat holds FX.n is (Measurable-Y-section(A,y))-measurable
    proof
     let n be Nat;
     FX.n = ProjPMap2(F.n,y) & F.n is_simple_func_in S by A8,A19;
     hence FX.n is (Measurable-Y-section(A,y))-measurable
       by Th31,MESFUNC2:34;
    end;

A23:Y-section(A,y) c= dom(ProjPMap2(f,y)) by A2,B7,MEASUR11:21;

A24:for x be Element of X1 st x in Measurable-Y-section(A,y) holds
      FX#x is convergent & (ProjPMap2(f1,y)).x = lim(FX#x)
    proof
     let x be Element of X1;
   x]asElement of [:X1,X2:] by ZFMISC_1:ef ;
     assume x in Measurable-Y-section(A,y); then
A25: x in Y-section(A,y) by MEASUR11:def 7;
     hence FX#x is convergent by A20;

     ProjPMap2(f1,y) = ProjPMap2(f,y)|Y-section(A,y) by Th34; then
     (ProjPMap2(f1,y)).x = (ProjPMap2(f,y)).x by A25,FUNCT_1:49;
     hence (ProjPMap2(f1,y)).x = lim(FX#x) by A25,A20;
    end;

    ProjPMap2(f1,y) = ProjPMap2(f,y)|Y-section(A,y) by Th34; then
    ProjPMap2(f1,y)|Measurable-Y-section(A,y)
     = ProjPMap2(f,y)|Measurable-Y-section(A,y) by A6;
    hence ProjPMap2(f,y) is (Measurable-Y-section(A,y))-measurable
      by A6,B7,A21,A22,A23,A24,Th36,MESFUNC8:26;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  E be Element of sigma measurable_rectangles(S1,S2),
  M2 be sigma_Measure of S2,
  A be Element of S1, B be Element of S2, x be Element of X1 holds
  M2.(B /\ Measurable-X-section(E,x)) * chi(A,X1).x
    = Integral(M2,ProjPMap1(chi([:A,B:],[:X1,X2:])|E,x))
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
   E be Element of sigma measurable_rectangles(S1,S2),
   M2 be sigma_Measure of S2,
   A be Element of S1, B be Element of S2, x be Element of X1;

   set CAB = chi([:A,B:],[:X1,X2:])|E;

   ProjPMap1(chi([:A,B:],[:X1,X2:]),x) = ProjMap1(chi([:A,B:],[:X1,X2:]),x)
     by Th27; then
A0:dom(ProjPMap1(chi([:A,B:],[:X1,X2:]),x)) = X2 by FUNCT_2:def 1;

   ProjPMap1(CAB,x)
     = ProjPMap1(chi([:A,B:],[:X1,X2:]),x)|X-section(E,x) by Th34; then
   dom(ProjPMap1(CAB,x)) = X2 /\ X-section(E,x) by A0,RELAT_1:61; then
A1:dom(ProjPMap1(CAB,x)) = X-section(E,x) by XBOOLE_1:28;

A2:for y be Element of X2 holds
    ProjPMap1(CAB,x).y = (chi(A,X1)|Measurable-Y-section(E,y)).x * chi(B,X2).y
   proof
    let y be Element of X2;
    per cases;
    suppose A3: [x,y] in E; then
     y in X-section(E,x) by Th25; then
     ProjPMap1(CAB,x).y = CAB.(x,y) by A1,Th26; then
A4:  ProjPMap1(CAB,x).y = chi([:A,B:],[:X1,X2:]).(x,y) by A3,FUNCT_1:49;

     x in Y-section(E,y) by A3,Th25; then
     x in Measurable-Y-section(E,y) by MEASUR11:def 7; then
     (chi(A,X1)|Measurable-Y-section(E,y)).x = chi(A,X1).x by FUNCT_1:49;
     hence ProjPMap1(CAB,x).y
       = (chi(A,X1)|Measurable-Y-section(E,y)).x * chi(B,X2).y
         by A4,MEASUR10:2;
    end;
    suppose A5: not [x,y] in E; then
     not y in X-section(E,x) by Th25; then
A6:  ProjPMap1(CAB,x).y = 0 by A1,FUNCT_1:def 2;

     not x in Y-section(E,y) by A5,Th25; then
     not x in Measurable-Y-section(E,y) by MEASUR11:def 7; then
     not x in dom(chi(A,X1)|Measurable-Y-section(E,y)) by Th18; then
     (chi(A,X1)|Measurable-Y-section(E,y)).x = 0 by FUNCT_1:def 2;
     hence ProjPMap1(CAB,x).y
       = (chi(A,X1)|Measurable-Y-section(E,y)).x * chi(B,X2).y by A6;
    end;
   end mnbeobjectjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24

   per cases: >
   suppose x in A; then
A7by A4V,,7,91; then
java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
     = M2.(B /\ Measurable-X-     for x be Element of X st x in be  of  stx in dom(chi(r,E,|(X\E))

    dom (chi(B,X2)|Measurable-X-section(E,x))
     = Measurable-X-section(E,x) by Th18; then
x)
      by A1  

     y be er*. by X4;
      ProjPMap1(CAB,x).y = (chi(B,X2)|Measurable-X-section(E,x)).y
    proof
       be java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 28
     assume A10::er,,) = -chiE, Th2;
A11: y in Measurable-A11: chi(,EX|XX \E nonpositivebyMESFUN11:;
     [x,y] in E by A1,A10,Th25; then
    in (y Th25 
 7
:(A|(,)x  ,)x      EX   W 
          ,(EX)
      =A2:dom F = {1,2} 92java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
     java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 60
     hence ProjPMap1(CAB,x)    F by;
     A11:9
    end; then
C  B2|X-(E,) A95;
    hence java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      = Integral(1+< java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 21
   end;
   osenot  in java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
:(X1.  by:3  
N13 ;

A15:{} is Element of S2 by PROB_1:4;

A16:dom(ProjPMap1(CAB,x))
      = Measurable-X-section(E,x) by A1,MEASUR11:def 6
      .= dom (chi({},X2)|Measurable-X-section(E,x)) by Th18;
    for y be Element of X2 st y in dom(ProjPMap1(CAB,x)) holds
      ProjPMap1(CAB,x).y = (chi({},X2)|Measurable-X-section(E      eEX)x=0  ; then
   
lety  ;
     assume A17: y in dom(ProjPMap1(CAB,x)); then
     yin -X-(E,x)  ,MEASUR11: 6 
A18: (chi({},X2)|Measurable-X-section(E,x)).y =     integral+(,-((er,,X)|(X \ E))=0  MESFUN11:3;then
     [x,y] in E by A1     Integral(,chi(er,,X)(XX \)=- 0by ,A11,57;
     x in Y-section(E,y) by      hence Integral(M,chi(er,E,X|E   *E by A12,XXREAL_3:4;
     in-Y-(y  MEASUR11:def 7 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
A19: (chi(A,X1)|Measurable-Y-section(E,y)).x = chi(A,X1).x by FUNCT_1      in  XXREAL_0:14; 
     ProjPMap1reconsider  =er Real;
      = (chi(A,X1)|Measurable-Y-section
     ProjPMap1(CAB,x).y = 0 by A13,A19;
     hence ProjPMap1(CAB,x).y = (chi({},X2)|Measurable-X-section(E,x)).y
       by A18,FUNCT_3:def 3;
    end; then
    ProjPMap1(CAB,x) = chi({},X2)|Measurable-X-section(E,x)
      by A16,PARTFUN1:5; then
    Integral(M2,ProjPMap1(CAB,x)) = M2.({} /\ Measurable-X-section(E,x))
      by A15,Th20;
    hence M2.(B /\ Measurable-X-section(E,x)) * chi(A,X1).x
      = Integral(M2,ProjPMap1(CAB,x)) by A14,VALUED_0:def 19;
   end;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  E be Element of sigma measurable_rectangles(S1,S2),
  M1 be sigma_Measure of S1,
  A be Element of S1, B be Element of S2, y be Element of X2 holds
  M1.(A /\ Measurable-Y-section(E,y)) * chi(B,X2).y
    = Integral(M1,ProjPMap2(chi([:A,B:],[:X1,X2:])|E,y))
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
   E be Element of sigma measurable_rectangles(S1,S2),
   M1 be sigma_Measure of S1,
   A be Element of S1, B be Element of S2, y be Element of X2;

   set CAB = chi([:A,B:],[:X1,X2:])|E;

   ProjPMap2(chi([:A,B:],[:X1,X2:]),y) = ProjMap2(chi([:A,B:],[:X1,X2:]),y)
     by Th27; then
A0:dom(ProjPMap2(chi([:A,B:],[:X1,X2:]),y)) = X1 by FUNCT_2:def 1;

   ProjPMap2(CAB,y)
     = ProjPMap2(chi([:A,B:],[:X1,X2:]),y)|Y-section(E,y) by      = ProjPMap2(chi([:A,B:],[:X1,X2:]),y)|Y-section(E,y) by Th34
   dom(ProjPMap2(CAB,y)) = X1 /\ Y-section(E,y) byholds f+( ->0.  java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
A1:dom(ProjPMap2(CAB,y)) = Y-    F= java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

A2:for x be Element of X1 holds
   (y.=(hiBX2|Measurable-sectionE).y *chi(,).x
   proof
    let x be Element of X1;
    per cases;
    suppose A3: [x,y] inproof
     xin Y-sectionEy)by Th25; then
     CAB,).x = CAB(,y A1T;then
A4:  ProjPMap2(CAB,y).x = chi([:A,B:],[:X1,X2:]).(x,y) by A3,FUNCT_1:49;

     in Xsection(E,) by A3,; then
     y in ex x be ElementX1 st  =  & x,d] in dom f;
     (chi(B,X2)|Measurable-X-section(E,x)).y = chi(B,X2).y by FUNCT_1:49;
     hence ProjPMap2(CAB,y).x
       = (chi(B,X2)|hence ProjPMap2(f,d).c =(,d) byDef4
         by A4,MEASUR10:2;
    end;
         [xy  E then
          xE)by Th25 then
 henceProjPMap1(f,c).d = f.(c,d) by Def3;

     nottheorem Th27:
     not yinMeasurable--sectionEx by MEASUR11:ef 6;then
       indom(chi(,)Measurable-X-(,x)) by Th18; then
     chi(B,)|Measurable-X-(E,x)).y = 0 by FUNCT_1:def 2;
     hence ProjPMap2(CAB,y).x
       = (chi(B,X2)|Measurable-X-section(E,x)).y * chi(A,X1).x by A6;
    end;
   end;

   per cases;
   suppose y in B; then
A7: chi(B,X2).y = 1 by FUNCT_3:def 3; then
A8: M1.(A /\ Measurable-Y-section(E,y)) * chi(B,X2).y
     = M1.(A /\ Measurable-Y-section(E,y)) by XXREAL_3:81;

    dom (chi(A,X1)|Measurable-Y-section(E,y))
     = Measurable-Y-section(E,y) by Th18; then
A9: dom (ProjPMap2(CAB,y)) = dom (chi(A,X1)|Measurable-Y-section(E,y))
      by A1,MEASUR11:def 7;

    for x be Element of X1 st x in dom(ProjPMap2(CAB,y)) holds
      ProjPMap2(CAB,y).x = (chi(A,X1)|Measurable-Y-section(E,y)).x
    proof
     let x be Element of X1;
     assume A10: x in dom(ProjPMap2(CAB,y)); then
A11: x in Measurable-Y-section(E,y) by A1,MEASUR11:def 7;
     [x,y] in E by A1,A10,Th25; then
     y in X-section(E,x) by Th25; then
     y in Measurable-X-section(E,x) by MEASUR11:def 6; then
A12: (chi(B,X2)|Measurable-X-section(E,x)).y = chi(B,X2).y by FUNCT_1:49;
     ProjPMap2(CAB,y).x
      = (chi(B,X2)|Measurable-X-section(E,x)).y * chi(A,X1).x by A2; then
     ProjPMap2(CAB,y).x = chi(A,X1).x by A7,A12,XXREAL_3:81;
     henceProjPMap2(CAB,y).x = (chi(A,X1)|Measurable-Y-section(E,y)).x
      by A11,FUNCT_1:49;
    end; then
    ProjPMap2(CAB,y) = chi(A,X1)|Measurable-Y-section(E,y) by A9,PARTFUN1:5;
    hence M1.(A /\ Measurable-Y-section(E,y)) * chi(B,X2).y
      = Integral(M1,ProjPMap2(CAB,y)) by A8,Th20;
   end;
   suppose not y in B; then
A13:chi(B,X2).y = 0 by FUNCT_3:def 3; then
A14:M1.(A /\ Measurable-Y-section(E,y)) * chi(B,X2).y = 0;

A15:{} is Element of S1 by PROB_1:4;

A16:dom(ProjPMap2(CAB,y))
      = Measurable-Y-section(E,y) by A1,MEASUR11:def 7
      .= dom (chi({},X1)|Measurable-Y-section(E,y)) by Th18;
    for x be Element of X1 st x in dom(ProjPMap2(CAB,y)) holds
      ProjPMap2(CAB,y).x = (chi({},X1)|Measurable-Y-section(E,y)).x
    proof
     let x be Element of X1;
      by MEASUR11: 6 then
     x inMeasurable-Y-section(,y) byA1,:def7 then
A18: (chi(}X1)Measurable-Y-(,)).x =chi(}X1. byFUNCT_1:49;
     x,]in byA1,A17,h25; then
     y in X-section(E,x) by Th25; then
     y in Measurable-X-section(E,x) by MEASUR11:def 6; then
A19: (chi(B,X2)|Measurable-X-section(E,x)).y = chi(B,X2).y by FUNCT_1:49;
     ProjPMap2(CAB,y).x
      = (chi(B   hence Y-(E,2)x = integral+M2ProjPMap1(chi(,[:X2:]),x)&
     ProjPMap2(CAB,y).x = 0 by A13,A19;
     hence ProjPMap2(CAB,y).x = (chi({},X1)|Measurable-Y-section(E,y)).x
       by A18,FUNCT_3:def 3;
    end; then
    ProjPMap2(CAB,) = chi({},X1)Measurable-Y-section(E,y)
      by A16,PARTFUN1:5; then
    Integral(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 4
      by A15,Th20;
    hence M1.(A /\ Measurable-Y-section(E,y)) * chi(B,X2).y
      =Integral(M1,ProjPMap2(CAB,y) by A14,VALUED_0:def 19;
   end;
end;

theorem Th40:
for X1,X2 be non empty set, x be Element of X1, y be Element of X2,
 f be PartFunc of [:X1,X2:],ExtREAL, er be ExtReal holds
  ( [x,y] in dom f & f.(x,y) = er
f in (ProjPMap1(f,x) & ProjPMap1(,x)). =er )&
  ( [x,y] in dom f & f.(x,y) = er
       iff x in dom(ProjPMap2(f,y)) & (ProjPMap2(f,y)).x = er )
proof
   let X1,X2 be non empty set, x be Element ofA2ProjPMap2chi(,,:X1X2],)= r()by Th29
   f be PartFunc of [:X1,X2:],ExtREAL, a be ExtReal;
   hereby assume that
A2: [x,y] in dom f and
:f(,y) = a;
    y in X-section(dom f,x) by A2,Th25;
    hence y in dom(ProjPMap1(f,x)) by Def3;
     ProjPMap1(f,x.y= aby ,Th26;
   end;

   hereby assume that
4 y indom((f,x) and
A5: ProjPMap1(f,x).y = a;
   ;
   hence [x,y] in dom f by Th25;
   thus f.(x,y) = a by A4,A5,Th26;
   end;

   hereby assume that
A6: [x,y] in dom f and
A7: f.(x,y) = a;
    x in Y-section(dom f,y) by A6,Th25;
    hence x in dom(ProjPMap2(f,y)) by Def4;
    hence ProjPMap2(f,y).x = a by A7,Th26;
   end;

   assume that
A8: x in dom(ProjPMap2(f,y)) and
A9: ProjPMap2(f,y).x = a;
   x in Y-section(dom f,y) by A8,Def4;
   hence [x,y] in dom f by Th25;
   thus f.(x,y) = a by A8,A9,Th26;
end;

theorem Th41:
for X1,X2 be non empty set, A,Z be set, f be PartFunc of [:X1,X2:],Z,
 x be Element of X1 holds X-section(f"A,x) = ProjPMap1(f,x)"A
proof
    let X,Y be non empty set, A,Z be set, f be PartFunc of [:X,Y:],Z,
    x be Element of X;
    reconsider E = f"A as Subset of [:X,Y:];
    now let y be object;
     assume y in X-section(f"A,x); then
     y in {y where y is Element of Y: [x,y] in E} by MEASUR11:def 4; then
     consider y1 be Element of Y such that
A1:   y1 = y & [x,y1] in E;
A2:  [x,y] in dom f & f.[x,y] in A by A1,FUNCT_1:def 7; then
     y in {y where y is Element of Y: [x,y] in dom f} by A1; then
     y in X-section(dom f,x) by MEASUR11:def 4; then
A3:  y in dom(ProjPMap1(f,x)) by Def3;

     ProjPMap1(f,x).y1 = f.(x,y1) by A1,A2,Def3;
     hence y in ProjPMap1(f,x)"A by A1,A2,A3,FUNCT_1:def 7;
    end; then
A4: X-section(f"A,x) c= ProjPMap1(f,x)"A;

    now let y be object;
     assume y in ProjPMap1(f,x)"A; then
A5:  y in dom(ProjPMap1(f,x)) & ProjPMap1(
     y in X-section(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
    in {  yis:[x,] in dom f by MEASUR11:ef; then
     consider y1 be Element of Y such that
A6:   y1 = y & [x,y1] in dom f;

     f.(x,y1)consider F  assume indom ;then
[,]inf byA6,:def7;then
yinyyElement  :[y in "Aby;
     hence y in Xjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 33
    end       dom(Ek,;then
    ProjPMap1(f,x)"A c=A43:(kX).  1byA39,FUNCT_3def 3;
X-(",) ProjPMap1(,xxAbyA4;


A5:  y1in   endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
for X1,X2 be non empty set, A,Z be set, f be PartFunc of [:X1,X2:y1 in-section        dom &xE & E holds f. =.
) =ProjPMap2"

ty, A,be f    XY,,
    ybe  ofY;
   E= f"as   [X]
    now let x be object;
     assume x injava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     x in {xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     consider x1 be Element of X such that
A1:   x1 = x       :1
A2:  [x,y] in dom f & f.[x,y] in A by A1,FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     x in {x where x is Element of X: [x,y] in dom f} by A1; then
     xin-by def 5;then
 xin dom(ProjPMap2(f,y)by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

ProjPMap2(y.  .x,) byA1,,Def4
     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 59
    end then
A4: Y-section(F1isdisjoint_valued then

    now let x be object;
     assume x in ProjPMap2(f,y)"A; then
A5:x dom(rojPMap2(f,y)&ProjPMap2(f,y).x in A by FUNCT_1:def 7; then
     x in Y-section(dom f,y) by Def4; then
     x in {x    let  be Nat;
     consider x1 be Element of X such that
 domf;

     f.(x1,y) in A by A5,A6,Def4; then

     [x1,y] in f"A by A6,FUNCT_1:def 7; then
     x in {x where x is Element of X: [x,y] in f"A} by A6;
     hence x in Y-section(f"A,y) by MEASUR11:def 5;
    end; then
    ProjPMap2(f,y)"A c= Y-section(f"A,y);
    hence Y-section(f"A,y) = ProjPMap2(f,y)"A by A4;
end;

:java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 55
for X1,X2    (chi0EX))=dom(0E,X) / RELAT_161 
  X-dom(chi0,E,)E  \EFUNCT_2: ;then
&  ,  sectionAp)\-section(,)
proof
   let X1,X2 java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
   now a4    ;then
    assume q in X-section(E1\E2,p); then
    q in {y where y is Element of X2: [p,y] in E1 \ E2} by MEASUR11:def 4; then
A1: ex y be Element of X2 st q = y & [p,y] in E1 \ E2; then
    [p,q] in E1 & not [p,q] in E2 by XBOOLE_0:def 5; then
    qin ywhere yis of :[y E1}by ;then
11:ef;
     q X(,);then
     q in {y where y is Element of X2: [p,y] rng ProjPMap2(,) =REAL; 
     ex y be Element of X2 st q = y & [p,y] in E2;
     hence contradiction by A1,XBOOLE_0:def 5;
    onsider G1be  ofS1 that
    ,     = dom chi(er,X)/ B by XBOOLE_1:28;
   end; then
A4:X-section(E1 \ E2,p) c= X-section(E1,p) \ X-section(E2,p);

   
    assume q in X-section(E1,p)    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 51
    q in X-section(E1,p) & not q in X-section(E2,p) by XBOOLE_0:def 5; then
A5: q in {y where y is Element of X2: [p,y] in E1} &
    not q in {y where y is Element of X2: [p,y] in E2} by MEASUR11:def 4; then
A6: ex y be Element of X2 st q = y & [p,y] in E1; then
    not [p,q] in E2 by A5; then
    [p,q] in E1 \ E2 by A6,XBOOLE_0:def 5; then
    q in {y where y is Element of X2: [p,y] in E1 \ E2} by A6;
    hence q in X-section(E1 \ E2,p) by MEASUR11:def 4;
   end; then
   X-section(E1,p) \ X-section(E2,p) c= X-section(E1 \ E2,p);
   hence X-section(E1 \ E2,p) = X-section(E1,p) \ X-section(E2,p) by A4;

   now let q be set;
    assume q in Y-section(E1 \ E2,p); then
    q in {x where x is Element of X1: [x,p] in E1 \ E2} by MEASUR11:def 5; then
B1: ex x be Element of X1 st q = x & [x,p] in E1 \ E2; then
    [q,p] in E1 & not [q,p] in E2 by XBOOLE_0:def 5; then
    q in {x where x is Element of X1: [x,p] in E1} by B1; then
B3: q in Y-section(E1,p) by MEASUR11:def 5;
    now assume q in Y-section(E2,p); then
     q in {x where x is Element of X1: [x,p] in E2} by MEASUR11:def 5; then
     ex x be Element of X1 st q = x & [x,p] in E2;
     hence contradiction by B1,XBOOLE_0:def 5;
    end;
    hence q in Y-section(E1,p) \ Y-section(E2,p) by B3,XBOOLE_0:def 5;
   end; then
B4:Y-section(E1 \ E2,p) c= Y-section(E1,p) \ Y-section(E2,p);

   now let q be set;
    assume q in Y-section(E1,p) \ Y-section(E2,p); then
    q in Y-section(E1,p) & not q in Y-section(E2,p) by XBOOLE_0:def 5; then
B5: q in {x where x is Element of X1: [x,p] in E1} &
    not q in {x where x is Element of X1: [x,p] in E2} by MEASUR11:def 5; then
B6: ex x be Element of X1 st q = x & [x,p] in E1; then
    not [q,p] in E2 by B5; then
    [q,p] in E1 \ E2 by B6,XBOOLE_0:def 5; then
    q in {x where x is Element of X1: [x,p] in E1 \ E2} by B6;
    hence q in Y-section(E1 \ E2,p) by MEASUR11:def 5;
   end; then
   Y-section(E1,p) \ Y-section(E2,p) c= Y-section(E1 \ E2,p);
   hence Y-section(E1 \ E2,p) = Y-section(E1,p) \ Y-section(E2,p) by B4;
end;

theorem Th44:
for X1,X2 be non empty set, x be Element of X1, y be Element of X2,
 f1,f2 be PartFunc of [:X1,X2:],ExtREAL holds
   ProjPMap1(f1+f2,x) = ProjPMap1(f1,x) + ProjPMap1(f2,x)
 & ProjPMap1(f1-f2,x) = ProjPMap1(f1,x) - ProjPMap1(f2,x)
 & ProjPMap2(f1+f2,y) = ProjPMap2(f1,y) + ProjPMap2(f2,y)
 & ProjPMap2(f1-f2,y) = ProjPMap2(f1,y) - ProjPMap2(f2,y)
proof
   let X1,X2 be non empty set, x be Element of X1, y be Element of X2,
   f1,f2 be PartFunc of [:X1,X2:],ExtREAL;
A1:dom(f1+f2) = (dom f1 /\ dom f2)
    \ ((f1"{-infty} /\ f2"{+infty}) \/ (f1"{+infty} /\ f2"{-infty}))
      by MESFUNC1:def 3;
B1:dom(f1-f2) = (dom f1 /\ dom f2)
    \ ((f1"{+infty} /\ f2"{+infty}) \/ (f1"{-infty} /\ f2"{-infty}))
      by MESFUNC1:def 4;

A2:dom (ProjPMap1(f1,x)) = X-section(dom f1,x) &
   dom (f2,)) X-ection(dom f2,x) &
   dom (ProjPMap2(f1,y)) = Y-section(dom f1,y) &
   dom (ProjPMap2(f2,y)) = Y-section(dom f2,y) by Def3,Def4;

A3:X-section(f1"{-infty},x) = ProjPMap1(f1,x)"{-infty} &
   X-ection("{+infty, =(,x"+infty &
   X-section(f2"{-infty},x) = ProjPMap1(f2,x)"{-infty} &
   X-f2{+infty}x  ProjPMap1(f2,)"{+infty}&
   Y-section(f1"{-infty},y) = ProjPMap2(f1,y)"{-infty} &
   Y-section(f1"{+infty},y) = ProjPMap2(f1,y)"{+infty} &
   Y-section(f2"{-infty},y) = ProjPMap2(f2,y)"{-infty} &
   Y-section(f2"{+infty},y) = ProjPMap2(f2,y)"{+infty} by Th42,Th41;

A4:dom(ProjPMap1(f1+f2,x))
    = X-section(dom(f1+f2),x) by Def3
   .= X-section(dom f1 /\ dom f2,x)
     \ X-section( (f1"{-infty} /\ f2"{+infty})
           \/ (f1"{+infty} /\ f2"{-infty}),x ) by A1,Th43
   .= (X-defpred Q[Natobject]means $=(.$)#(X-(E$,);
     \ X-section( (f1"{-infty} /\ f2"{+infty})
           \/ (f1"{+infty} /\ f2"{-infty}),x ) by MEASUR11:27
   .= ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( X-section(f1"{-infty} /\ f2"{+infty},x)
           \/ X-section(       beElement Funcs(ExtREAL)  k,java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A5:dom(ProjPMap1(f1+f2,x))
    = ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( (X-section(f1"{-infty},x) /\ X-section(f2"{+infty},x))
           \/ X      reconsider x = (r.k)(#)(X-vol(E.k,M1))
   .= ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( (ProjPMap1(f1as Element of Funcs(2,ExtREAL)byFUNCT_2:;
           \/ ( X-section(f1"{+infty},x) /\ X-section(f2"{-infty},x) ) )
             by A3,MEASUR11:27
   .= dom(ProjPMap1(f1,x) + ProjPMap1(f2,x)) by A3,MESFUNC1:def 3;

   for y be Element of X2 st y in dom(ProjPMap1(f1+f2,x)) holds
    ProjPMap1(f1+f2,x).y = (ProjPMap1(f1,x) + ProjPMap1(f2,x)).y
   proof
    let y be Element of X2;
    assume A6: y in dom ProjPMap1(f1+f2,x);
    reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
A7: ProjPMap1(f1+f2,x).y = (f1+f2).(x,y) by A6,Th26; then
    [x,y] in dom(f1+f2) by A6,Th40; then
A8: ProjPMap1(f1+f2,x).y = f1.z + f2.z by A7,MESFUNC1:def 3;
    y in dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x))
      by A4,A6,XBOOLE_0:def 5; then
    y in dom (ProjPMap1(f1,x)) & y in dom (ProjPMap1(f2,x))
      by XBOOLE_0:def 4; then
    ProjPMap1(f1,x).y = f1.(x,y) & ProjPMap1(f2,x).y = f2.(x,y)
      by Th26;
    hence ProjPMap1(f1+f2,x).y = (ProjPMap1(f1,x) + ProjPMap1(f2,x)).y
      by A8,A5,A6,MESFUNC1:def 3;
   end;
   hence ProjPMap1(f1+f2,x) = ProjPMap1(f1,x) + ProjPMap1(f2,x)
     by A5,PARTFUN1:5;

B4:dom(ProjPMap1(f1-f2,x)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    = X-section(dom(f1-f2),x) by Def3
   assumea1:A1 A2;
     \ X-section( (f1"{+infty} /\ f2"{+infty})
            f1{i}\f2"-nfty)x ) byB1,h43
   .= (X-section(dom f1,x) /\ chi(r,1X)x    a2,;
     \ X-section( (f1"{+infty} /\ f2"{+infty})
           \/ (f1"{-infty} /\ f2"{-infty}),x ) by MEASUR11:27
   .= ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( X-section(f1"{+infty} /\ f2"{+infty},x)
           \/ X-section(f1"{-infty} /\ f2"{-infty},x) ) by A2,MEASUR11:26; then
B5:dom(ProjPMap1(f1-f2,x))
    = ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( (X-section(f1"{+infty},x) /\ X-section(f2"{+infty},x))
           
   =(dom(rojPMap1f1x) ,))
     \ ( (ProjPMap1(f1,x)"{+infty} /\ ProjPMap1(f2,x)"{+infty})
           \  s(f1"-}x)/ -section(2"-nfty}x )java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
             by A3,
   hassumea1: er >0;

   for be X2 in (ProjPMap1(f1-f2,x)) holds
    ProjPMap1(f1-f2,x).y = (ProjPMap1(f1,hence chi(,,   bySUPINF_2:52;
   proof
    let y be Element of x in A implies chi(er,A =0 a3,Def1java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    :y in  ProjPMap1(1-2x)
    reconsider z = [x,y] theoremTh18java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
A7: ProjPMap1(f1-let ,X set,B    X;
    [x,    .= X /\B by :ef 1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
A8: ProjPMap1(f1-f2,x).y = f1.begin:    
    y in dom f  be non  set, beSigmaFieldof X f be PartFuncof ,xtREAL
      by B4,A6,XBOOLE_0:def 5; then
(1,)  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [15, 10) out of bounds for length 15
    ProjPMap1(f1,x).y = f1.(x,y) & ProjPMap1(f2,x).A3:for  be of :1,: stx  A
      by Th26;
    hence ProjPMap1(f1-f2,x).y=(ProjPMap1(f1,x)  ProjPMap1(f2,x)).y
      by A8,B5,A6,MESFUNC1:def 4;
   end;
   hence ProjPMap1(f1-f2,x) = ProjPMap1(f1,x) - ProjPMap1(f2,x)
     by B5,PARTFUN1:5;

C4:dom(ProjPMap2(f1A5:    Elementof NAT ex  beElement  PFuncs(X1, stP2[,f]
    = Y-section(dom(f1+f2),y) by Def4
   .= Y-section(dom f1 /\ dom f2,y)
     \ Y-section( (f1"{-infty} /\ f2thusthesis;
           /
   .= (Y-section(dom f1,y) /\ Y-section(dom f2,y))
      -java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 46
           \/ (f1"{+infty} /\ f2"{-infty}),y ) by MEASUR11:27
   .= ( dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(
     \ ( Y-section(f1"{-infty} /\ f2"{+infty},y)
ion{+infty}/ {i},y))by A2,:26 then
C5:dom((+2,y)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    = ( dom  et n be Nat;
     \ ((-     by,,:7R:2java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
           \/ Y-section(f1"{+infty} /\ f2"{-infty},y) ) by MEASUR11:       ,A4X:17,28;
   .= ( dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(f2,y)) )
     \ ( (ProjPMap2(f1,y)"{-infty} /\ ProjPMap2:(g A\)
           \/ ((f1"{+nfty},y) /\Y-section(f2"{-infty},y) ) )
             by A3,MEASUR11:27
   .= dom(ProjPMap2(f1,y) + ProjPMap2(f2,y)) by A3,MESFUNC1&Integral(Mg|omfg)=- IntegralMg|(f1+1)

     for be  of X1  in dom((+2,) 
    ProjPMap2(f1+2,. = (rojPMap2f1y +ProjPMap2f2,y).java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
   proof
    x  Element of X1;
    assume C6: x in dom ProjPMap2(f1+f2,y);
    reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
C7:f+,yy)x=(+f2)x,) C6,Th26;then
    [x,java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
C8: ProjPMap2(f1+f2,y).x = f1.z + f2.z by C7,MESFUNC1:def 3;E2 =dom  &g    is E2-nofNAT by ORDINAL1d 12;

      by C4,C6,XBOOLE_0:def 5; then
    x in dom (ProjPMap2(f1,y)) & x in dom (ProjPMap2(f2,y))
      by XBOOLE_0:: =java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 18
    ProjPMap2(f1,y).x = f1.(x,y) & ProjPMap2(f2,y).x = f2.(x,y)
      by Th26;
    2(java.lang.StringIndexOutOfBoundsException: Range [22, 1) out of bounds for length 66
       ,,C6,SFUNC1:ef 3
   endjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
   hence ProjPMap2(f  /by
     by C5,PARTFUN1:5;


    = Y-section(dom(f1-f2),y) by Def4
   .= Y-section(dom f1 /\ dom f2,y)
     \ Y-section( (f1"{+infty} /\ f2"{+infty})
           \/ (f1"{-infty} /\ f2"{-java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 11
   .= (Y-section(dom f1,y) /\ Y-A20: Integral(M,f-g) = Integral(M,f|dom(f-g)) - Integral(M,g|dom(f-g))
     +infty \f2"{infty}java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
           \/ (f1"{-infty} /\ f2"{-infty}),y ) by MEASUR11:27f-is (/\B)-easurableby ,5A9,,MEASUR11:67 then
   .(java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 56
     \ ( Y-section(f1"{+infty} /\ f2"{+infty},y)
           \/ Y-section(f1"{-infty} /\ f2"{-infty},y) ) by A2,MEASUR11:26; then
D5:dom(ProjPMap2(f1-f2,y))
    = ( dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(f2,y)) )
     {+y
           \ sectionf1{i / {java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
   .= ( dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(f2,y)) )
     \ ( (ProjPMap2(f1,y)"{+infty} /\ java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
           \/ ( Y-section(f1"{-infty},y) /\ Y-section(f2"{-infty},y) ) )
             by A3,MEASUR11:27
om(ProjPMap2(f1,y) - ProjPMap2(f2,y)) by A3,MESFUNC1:def 4;

   for x be Element of X1 st x in java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 4
    ProjPMap2(f1-f2,y).x = (ProjPMap2(f1,y) - ProjPMap2(f2,y)).x

    let x be Element of X1;
    assume D6: x in dom ProjPMap2(f1-f2,y);
    reconsider=[y]as  [1: by ZFMISC_1:f 2;
D7: ProjPMap2(f1-f2,y).x = (f1-f2).(x,y) by D6,Th26([,y] in dom fMap1(,x impliesProjPMap1,)y=f(,)

y) =f1. -f2.z by ,MESFUNC1d4;
    x in dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(f2,y))
XBOOLE_0:ef5; 
 in dom (rojPMap2(f1,y)) & x in dom (ProjPMap2(f2,y))
      by XBOOLE_0:def 4; then
    ProjPMap2(f1,y).x = f1.(x,y) & ProjPMap2(f2,y).x = f2.(x,y)
      by Th26;
    hence ProjPMap2(f1-f2,y).x = (ProjPMap2(f1,y) - ProjPMap2(f2,y)).x
      by D8,D5,D6,MESFUNC1:def 4;
   end;
   hence ProjPMap2(f1-f2,y) = ProjPMap2(f1,y) - ProjPMap2(f2,y)
     by D5,PARTFUN1:5;
end;

Lm4:
for A5: Pr(,
  be PartFunc of [:1X2]ExtREAL, xbe Element of , y java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 77
  E be Element of sigma measurable_rectanglesthusf(x,y = byA4,A5Th26
 st E c= dom f & f is E-measurable
 holds
  ProjPMap1(max+f,x) is (Measurable-X-section(E,x))-measurable
& ProjPMap2(max+f,y) is (Measurable-Y-section(E,y))-measurable
& ProjPMap1(max-f,x) is (Measurable-X-section(E,x))-measurable
& ProjPMap2(max-,y)is (easurableY-E))measurable
proof
   X2 be  empty ,S1be SigmaFieldofX1,  be SigmaField  ,
   f be PartFunc of [:X1,X2:],ExtREAL, x be Element of X1, y be Element;
   A be Element of sigma measurable_rectangles(S1,S2);
   assume that
A1:c=dom forX1,java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 59
A2: fx beElement of X1,y  Element of;

3:max+ is nonnegative&max- is nonnegative by MESFUN11:;
4maxf A  ,ESFUNC2java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A5:max-f is A-measurable by A1,A2,MESFUNC2:26;

   dom(ax+f)= dom f by MESFUNC2:def 2;
   let X non set,A,Zbe set, :,X2:,)
       & ProjPMap2(max+f,y) is (Measurable-Y-section(A,y))-measurable
     by A1,A3,A4,Lm3;

   dom(max-f) = dom f by  in {y where y is Element of,yjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 40
   ProjPMap1(ax-f,)is Measurable-s(,)-easurable
       & ProjPMap2(max-f,y) is (Measurable-Y-section& Measurable-Y-section(Union(E|(n+1)),y)
     by A1,A3,A5,Lm3;
end;

theorem Th45:
orX1X2 nonset,f PartFuncof :,,java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 63
 x be Element of X1 holds
  ProjPMap1(max+f,x) = max+(ProjPMap1(f,x))
&ProjPMap1(max-f,x) =A5  y dom((,x))  fx.in Aby :def7 then
proof
    ,  non setORDINAL1:def 12;
   x be Element of X1;
   dom(ProjPMap1(max+f,x)) = X-section(dom(max+f),x)
 & dom(ProjPMap1(max-f,x)) = X-section(dom(max-f),x) by Def3; then
A1:dom(ProjPMap1(max+f,x)) = X-section(dom f,x)
 &dom(ProjPMap1(max-f,x)) = X-section(dom f,x) by MESFUNC2:def 2,def 3;
   dom(max+(ProjPMap1(f,x))) = dom(ProjPMap1(f,x))
 & dom(max-(ProjPMap1(f,x))) = dom(ProjPMap1(f,x et x be Elementof X1;
     by MESFUNC2:def 2,def 3; then
A2:dom(max+(ProjPMap1(f,x))) = X-section(dom f    x in{where xis Element : x,] indom f}
 & dom(max-(ProjPMap1(f,x))) = X-section(dom f,x) by Def3;
   for y be Element of X2 st y in dom(java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 4
+)y(rojPMap1f)))y
   proof
    let y be Element of X2;
    assume A3 indom(ProjPMap1(ax+fx) 
    y in {y where y is Element of X2: [x,y] in dom f}

A4: ex y1 be Element of X2 st y1 =    is disjoint_valued   unionrng(n E.(+) byNAT_1:16,ASUR111; then

;
A5: [x,y] in dom(max+f) by A4,MESFUNC2:def 2; then
A6: (ProjPMap1(max+f,x)).y = (max+f).(x,y) by Def3
      .= max(.,0) by      .n  section.ny A32;

()Def3
    hence thesis by A6,A1,A3,A2,MESFUNC2:def 2;
   end;
   hence (maxf,) = +(ProjPMap1(f,) by A2PARTFUN1:5;

   for y be Element of X2 st y in dom(ProjPMap1(max-f,x))
    holds (ProjPMap1(max-f,x)).y = (max-(ProjPMap1(f,x))).y
   proof
        by A39,40,:3,ROB_2d 2;
    assume A8: y in dom(ProjPMap1(max-f,x)); then
    y in {y where y is Element of X2: [x,y] in dom f}
      by A1,MEASUR11:def 4; then
A9: ex y1 be Element of X2 st y1for  beNat it.=ProjPMap1(.,)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

    set z = [x,y];
x]in dom(ax-f)by A9,ESFUNC2:def 3;then
A11:(ProjPMap1assume not [1,]in   ; then
      .= max(-(f.java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 28

    ProjPMap1(f,x).y = f.(x,y) by A9,Def3;
    hence thesis by A11,A1,A2,A8,MESFUNC2:def 3;
   end;
   hence ProjPMap1(max-fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;

theorem Th46:
for X1,X2 be non empty set, f bePartFunc of [:X1,X2:],ExtREAL,
 y be Element of X2 holds
  ProjPMap2(max+f,y) = max+(ProjPMap2(f,y))
& ProjPMap2(max-f,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
proof
   let X1,X2 be non empty set, f be PartFunc of [:X1,X2:],ExtREAL,
   y be Element of X2;
   dom(ProjPMap2(max+f,y)) = Y-section(dom(max+f),y)
 & dom(ProjPMap2(max-f,y)) = Y-section(dom(max-f),y) by Def4; then
A1:domA1: n  Nat F1.n  ProjPMap1Y-section(Union(E|(n+1)),y)
 & dom(ProjPMap2(max-f,y)) = Y-section(dom f,y) by MESFUNC2:def 2,def 3;
   dom(max+(ProjPMap2(f,y))) = dom(ProjPMap2(f,y))
 & dom(max-(ProjPMap2(f,y))) = dom(ProjPMap2(f,y))
     by MESFUNC2:def 2,def 3; then
A2:dom(max+(ProjPMap2(f,y))) = Y-section(dom f,y)
 & dom(max-(ProjPMap2(f,y))) = Y-section(dom f,y) by Def4;
   for x be Element of X1 st x in dom(ProjPMap2(max+f,y))
    holds (ProjPMap2(max+f,y)).x = (max+(ProjPMap2(f,y))).x
   proof
    let x be Element of X1;
    assume A3: x in dom(ProjPMap2(max+f,y)); then
    x in {x where x is Element of X1: [x,y] in dom f}
       A1:def5 then
:ex be Element ofX1 x1=x&[y dom f;
    set z  xy;
A5: [x,y] in dom(max+f) by A4,MESFUNC2:def 2; then
A6: (ProjPMap2(max+f,y)).x = (max+f).(x,y) by Def4
      .= max(f.z,0) by A5   xbe  of X1, y be
    ProjPMap2f,y)x=f.x) by ,Def4;
   hencethesis  A1A3,ESFUNC2:def 2;
   end;
   hence ProjPMap2(max+f,y) = max+(ProjPMap2(f,y)) by A1,A2,java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 31

   a4XchiA[X1X2]x.  A[:,:)(,y
    per casesjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
   proof
    let x be Element of X1;
    assume A8    XchiXsection(,)X2)y  infty bya4,EASUR10:7;
    x in {x where x is Element of X1: [x,y] in dom 
by,:def 5; 
A9: ex x1 be Element of X1 st x1 = x & [x1,y] in dom f;
    set z = [x,y];
A10:[x,y] in dom(max-f) by A9,MESFUNC2:def 3; then
A11:(ProjPMap2(max-f,y)).x = (max-f).(x,y) by Def4
      .= max(-(f.z),0) by A10,MESFUNC2:def 3;
    ProjPMap2(f,y).x = f.(x,y) by A9,Def4;
    hence thesis by A11,A1,A8,A2,MESFUNC2:def 3;
   end;
   hence ProjPMap2(max-f,y) = max-(ProjPMap2(f,y)) by A1,A2,PARTFUN1:5;
end;

theorem Th47:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  f be PartFunc of [:X1,X2:],ExtREAL, x be Element of X1, y be Element of X2,
  E be Element of sigma measurable_rectangles(S1,S2)
 st E c= dom f & f is E-measurable
 holds ProjPMap1(f,x) is (Measurable-X-section(E,x))-measurable &
       ProjPMap2(f,y) is (Measurable-Y-section(E,y))-measurable
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1     ProjMap1Xchi(,[X1,X2:],.  0
   f be PartFunc of [:X1,X2:],java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 18
   A be Element of sigma measurable_rectangles(S1,S2);
   assume that
A1: A c= dom f and
A2: f is A-measurable;
   X-section(A,x) c= X-section(dom f,x)
 & Y-section(A,y) c= Y-section(dom f,y) by A1,MEASUR11:20,21; then
   Measurable      set f1  ProjPMap2(chi.1,.1,[:X1,X2]),y)|
 & Measurable-Y-section(A,y) c= Y-section(dom f,y)
   by MEASUR11:def 6,def 7; then
ctionA,)  (ProjPMap1f,)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
 & Measurable-Y-section(A,y) c= dom(ProjPMap2(f,y)) by Def3,Def4;
   ProjPMap1(max+f,x) is (Measurable-X-section(A,x))-measurable
 & ProjPMap2(max+f,y) is (Measurable-Y-section(A,y))-measurable
 & ProjPMap1(max-f,x) is (Measurable-X-section(A,x))-measurable
 & ProjPMap2(max-f,y) is (Measurable-Y-section(A,y))-measurable
    by A1,A2,Lm4; then
   max+(ProjPMap1(f,x)) is (Measurable-X-section(A,x))-measurable
 & max+(ProjPMap2(f,y)) is (Measurable-Y-section(A,y))-measurable
 & max-(ProjPMap1(f,x)) is (Measurable-X-section(A,x))-measurable
 & max-(ProjPMap2(f,y)) is (Measurable-Y-section(A,y))-measurable
    by Th45,Th46;
   hence thesis by A3,MESFUN11:10;
end;

definition
  let X1,X2,Y be non empty set;
  let F be Functional_Sequence of [:X1,X2:],Y;
  let x be Element of X1;
  func ProjPMap1(F,x) -> Functional_Sequence of X2,Y means :Def5:
 for n be Nat holds it.n = ProjPMap1(F.n,x);
existence
proof
   defpred P[Nat,object] means $2 = ProjPMap1(F.$1,x);

A1:for n be Element of NAT ex f be Element of PFuncs(X2,Y) st P[n,f]
   proof
    let n be Element of NAT;
    reconsider f = ProjPMap1(F.n,x) as Element of PFuncs(X2,Y)
      by PARTFUN1:45;
    take f;
    thus thesis;
   end;

   consider IT be Function of NAT,PFuncs(X2,Y) such that
A2: for n be Element of NAT holds P[n,IT.n] from FUNCT_2:sch 3(A1);

   take IT;
   hereby let n be Nat;
    n is Element of NAT by ORDINAL1:def 12;
    hence IT.n = ProjPMap1(F.n,x) by A2;
   end;
end;

proof
   let F1,F2 be Functional_Sequence of X2,Y;
   assume that
A1: for n be Nat holds F1.n = ProjPMap1(F.n,x) and
A2: for n be Nat holds F2.n     hence Integral(chi(er,,|java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
   now let n be Element of NAT;
    F1.n = ProjPMap1(F.n,x) by A1;
    hence F1.n = F2.n by A2;
   end;
   hence thesis by FUNCT_2:def 8;
end;
end;

definition
  let X1,X2,Y be non empty set;
  let F be Functional_Sequence of [:X1,X2:],Y;
  let y be Element of X2;
  func ProjPMap2(F,y) -> Functional_Sequence of X1,Y means :Def6:
 for n be Nat holds it.n = ProjPMap2(F.n,y);
existence
proof
   defpred P[Nat,object] means $2 = ProjPMap2(F.$1,y);

A1:for n be Element of NAT ex f be Element of PFuncs(X1,Y) st P[n,f]
   proof
    let n be Element of NAT;
    reconsiderf=ProjPMap2(F,    PFuncs(X1,Y
      by PARTFUN1:45;
    take f;
    thus thesis;
   end;

   consider IT be Function of NAT,PFuncs(X1,Y) such that
 for  beElement of NAT holds P[n,IT.n] from FUNCT_2:sch 3(A1);

   take(Partial_SumsH).(+1).
   hereby let n be Nat;
    n is Element of NAT by ORDINAL1:def 12;
    hence IT.n = ProjPMap2(F.n             MeasurableYsection(Union(En),y)\
   end;
end;
uniqueness
proof
   let F1,F2 be Functional_Sequence of X1,Y;
   assume that
A1: for n be Nat holds F1.n = ProjPMap2(F.n,y) and
A2: for n be Nat holds F2.n = ProjPMap2(F.n,y);
   now let n be Element of NAT;
F1n=ProjPMap2(.,y byA1;
    hence F1.n = F2.n by A2;
   end;
   hence thesis by FUNCT_2:def 8;
end;
end;

theorem Th48:
for X1,X2 be non empty set, E be Subset of [:X1,X2:],
 x be Element of X1, y be Element of X2 holds
   ProjPMap1(chi(E,[:X1,X2:]),x) = chi(X-section(E,x),X2) &
   ProjPMap2(chi(E,[:X1,X2:]),y) = chi(Y-section(E,y),X1)
proof
   let ,2be  ,  beSubset  :X2]java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
   x be Element of X1, y be Element of X2;

   for y be ElementA11:orn be  holdsdom(FY.n  -(Ax
     ProjMap1(chi(E,:X1,2]),x.y = chi(X-section(,),2.java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
   proof
    let y be Element of X2;
A1:ProjMap1(chi(E,[:X1,X2:]),x).y = chi(E,[:X1,X2:]).(x,y)
     by MESFUNC9:def 6; then
A2:[x,y] in E implies ProjMap1(chi(E,[:X1,X2:]),x).y = 1 by FUNCT_3:def 3;

   [x,y] is Element of [:X1,X2:] by ZFMISC_1:def 2; then
A3:not [x,y] in E implies ProjMap1(chi(E,[:X1,X2:]),x).y = 0
      by A1,FUNCT_3:def 3;
    per cases;
    suppose A4: [x,y] in E; then
     y in X-section(E,x) by Th25;
     hence ProjMap1(chi(E,[:X1,X2:]),x).y = chi(X-section(E,x),X2).y
      by A2,A4,FUNCT_3:def 3;
    end;
    suppose A5: not [x,y] in E; then
     not y in X-section(E,x) by Th25;
     hence ProjMap1(chi(E,[:X1,X2:]),x).y = chi(X-section(E,x),X2).y
       by A3,A5,FUNCT_3:def 3;
    end;
   end; then
   ProjMap1(chi(E,[:X1,X2:]),x)=chi(X-section(E,x),X2) by FUNCT_2:def 8;
   hence    Y-vol(,M2)x=M2(MeasurableXsection(E,x) by A1,:def 13; then

   for x be Element of X1 holds
     ProjMap2(chi(E,[:X1,X2:]),y).x = chi(Y-section(E,y),X1).x
   proof
    let x be Element of X1;
A1:ProjMap2(chi(E,[:X1,X2:]),y).x = chi(E,[:X1,X2:]).(x,y)
     by MESFUNC9:def 7; then
A2x]inEimplies chiE,:X1,2])y.  1  FUNCT_3:ef 3;

   [x,y] is Element of [:X1,X2:] by ZFMISC_1:def 2; then
 = 0
by,java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 26
    per cases;
    suppose A4: [x,y] in E; then
     x in Y-section(E,y)  (x is   (x)=f1. byA4,5,ESFUN11:,;
     hence ProjMap2(chi(E,[:X1,X2:]),y);
       by A2,A4,FUNCT_3:def 3;
    end;
    suppose A5: not [x,y] in E; then
     notx  Y-section(,y)by Th25;
    ProjMap2(chi(E,:X1X2],).  chi(section(,)X1.
       by A3,A5,FUNCT_3:def 3;
    end;
   end; then
   ProjMap2(chi(E,[:X1,X2:]), proof
,X2:),y)=chi(Y-section(E,y),X1)by Th27;
end;

theorem Th49:
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E be Element of S, er be ExtReal holds
  Integral(M,chi(er,E,X)) = er * M.E
proof
   let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
   E be Element of S, er be ExtReal;
 X asElement of S by MEASURE1:7;
   per cases;
   suppose a1: er = +infty; then
a2: chi(er,E,X) = Xchi(E,X) by Th2;
    per cases;
    suppose a3: M.E <> 0; then
a4:  M.E > 0 by java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
     thus Integral(M,chi(er,E,X)) = +infty by a2,a3,MEASUR10:33
      .= er * M.E by a1,a4,XXREAL_3:def 5;
    end;
    suppose a5: M.E = 0; then
     Integral(M,(erEX)  0 a2,MEASUR10:33;
     hence Integral(M,chi(er,E,X)) = er * M.E by a5;
    end;
   end;
   suppose a6: er = -infty; then
a7: chi(er,E,X) = -Xchi(E,X) by 2,A,Th31,ESFUN11:59
a10:dom(Xchi(E,X)) = XX by FUNCT_2:def 1;
W:  Xchi(E,X) is XX-measurable by MEASUR10:32;
    per cases;
    suppose a8: M.E <> 0; then
a9:  M.E > 0 by MEASURE1:def 2;
     thus Integral(M,chi(er,E,X))
      = -Integral(M,Xchi(E,X)) by a10,a7,MESFUN11:52,W
     .= -(+infty) by a8,MEASUR10:33
     .= er * M.E by a6,a9, assume :M2is ;
    end;
     :ME=0
     thus Integral(M,chi(er,
      = (,Xchi,X))bya10,a7,MESFUN11:,java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
     .= - 0 by a12,MEASUR10:33
     .= er * M.E by a12;
    end;
   endjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
   suppose er <> +infty & er <> -infty; then
    er in REAL by XXREAL_0:14; then
    reconsider r = er as Real;
a14:chi(E,X) is_simple_func_in S by Th12;
    chi(er,E,X) = r(#)chi(E,X) by Th1;
    hence Integral(M,chi(er,E,X))
     =r*integral(,(,) Th12,MESFUN11:59
    .= r * Integral(M,chi(E,X)) by a14,MESFUNC5:89
    .= er * M.E by MESFUNC9:14;
   end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th50:
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E be Element of S, er be ExtReal holds
  Integral(M,chi(er,E,X)   ;
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    be   ,er  ;
    reconsider XX = X as Element of S by java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 44
A1: XX = dom chi(er,E,X) by FUNCT_2:def 1; then
    dom(chi(er,E,X)|(XX \ E)) = XX /\ (XX \ E) by RELAT_1:61; then
A2: dom(chi(er,E,X)|(XX \ E)) = XX \ E by XBOOLE_1:28;
A3: chi(er,E,X)|(XX \ E) is (XX\E)-measurable by Th15;
A4: E \/ (XX \ E) = X \/ E by XBOOLE_1:39 .= X by XBOOLE_1:12;
A5: E misses (XX \ E) by XBOOLE_1:79;
A6: Integral(M,chi(er,E,X)) = Integral(M,chi(er,E,X)|X);
    per cases;
    suppose er = +infty; then
A7:  chi(er,E,X) = Xchi(E,X) by Th2; then
A8:  chi(er,E,X)|(XX \ E) is nonnegative by MESFUNC5:15;
     chi(er,E,X) is XX-measurable by Th13; then
V:   ex W being Element of S st W=dom chi(er,E,X) & 
     chi(er,E,X) is W-measurable by A1;
     Integral(M,chi(er,E,X))
      = Integral(M,chi(er,E,X)|E) + Integral(M,chi(er,E,X)|(XX \ E))
        by A4,V,A5,A6,A7,MESFUNC5:91; then
A9:  Integral(M,chi(er,E,X)|E) + Integral(M,chi(er,E,X)|(XX \ E))
      =              byMEASUR11:ef 7;then
     for x Element ofX  x in dom(hier,E,)(XX  E)
       holds    then
        =A23:sy in rngs by A21,UNCT_1:ef;
     Integral(M,chi(er,E,X)|(XX    x=sy by A10,A21,    x={s.y} by A10,A21,A22)).
     hence Integral(,chier,X|E)=er*M. A9XXREAL_34;
    end;
    suppose er=-infty;then
A10: chi(er,E,X) = -Xchi(E,X) by 
A12( nbeNat holds FYdef 3;
     chiA33 y=[f.,b]by A7,A31,A32;
     ex W being Element of S st W = dom chi(er,E,X) & 
       chi(er,E,X) is W-measurable by A1; then
     Integral(M,chi(er,E,A35: s.x1=x by A28,FUNCT_1 3
      nbeNat;
         by A4,A5,A6,A10,MESFUN11:62; then
:Integral(M,chi(rE)|)+Integral(M,chi(er,E,X)A14:(Y0) = MeasurableXsection(,)by A6;
      = er * M.E by Th49;
A13: dom((-chi(er,E,X))|(XX \ E))
      = dom(-(chi(er,E,X)|(XX \ E))) by MESFUN11:3
     .= XX \ E by A2,MESFUNC1:def 7;
     -(chi(     ;
       by A2,Th15,MEASUR11: then
A14:      hence (Partial_SumsH/.(len H))y= Integral(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     now let x be Element of X;
      assumeA15 x in ((-(er,,X)|(X\ E);then
        -erX)/ X  )byRELAT_161;then
:xin(-hi(r,X)&x  XX  byXBOOLE_0:ef4 then
      x in X & not x in E by      hence FY#y is convergent by;
      chi(er,E,X).x = 0 by Def1; then

,E,))(XX  E)x=0 by A15,UNCT_1:47;
     end; then
     integral+(M,(-chi(er,E,X))|(XX \ 
     integral+(M,-(chi(er,E,X)|(XX \ E))) = 0 by MESFUN11:3; then
     Integral(M,chi(er,E,X)|(XX \ E)) = - 0 by A2,A3,A11,MESFUN11:57;
     hence Integral(M,hence domF.n=Y-Ay  Def4
    end;
    suppose er <> +infty & er <> -infty; then
er   14 
     reconsider r = er as Real;
     chi(er,E,X) = r(#)chi(E,X) by Th1; then
A17: chi(er,E,X)|E = r(#)(chi(E,X)|E) by MESFUN11:2;
A18: chi(E,X)|E is nonnegative by MESFUNC5:15;
A19: chi(E,X)|E is_simple_func_in S by Th12,MESFUNC5:34;
     hence Integral(M,chi(er,E,X)|E)
      = r * integral'(M,chi(E,X)|E) by A17,MESFUNC5:15,MESFUN11:59
     .= r * Integral(M,chi(E,X)|E) by A19,A18,MESFUNC5:89
.=er* M.E by MESFUNC9:14;
    end;
end;

theorem
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E1,E2 be Element of S, er be ExtReal holds
Integral(,hi(,1,X|) =er*M.E1/E2)
proof
etXbe  emptyset S be SigmaField of X,M be sigma_Measure of S,
   E1,E2 be Element of S, er be ExtReal;
EASURE1:7;
   set f = chi(er,E1/\E2,X);
A1:chi(er,E1,X)|E2 = f|E2 by Th14;
A2:dom f = XX by       hence H/.n is V by ,A67MESFUNC1:37;
A3:E1 /\ java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 9
A4:(E1 /\ E2) \/ (E2 \ E1) = E2 by XBOOLE_1:51;
XX-  ;
X: ex W being Element of S st W = dom f & 
   f is W-measurable by A2;
   er >= 0 or er < 0; then
   f is nonnegative or f is nonpositive by Th17; _:25,ARTFUN1:def 6;then
A5:Integral(M,f|E2A68 P21 by A65,FINSEQ_3:5;
    by X,A3,A4,MESFUNC5:91,MESFUN11:62;
   dom(f|(E2\E1)) = dom f /\ (E2A69 forn benon zero  st P2[n] holds P2[n+1]
   dom(f|(E2\E1)) = X /\ (E2 \ E1) by FUNCT_2:def 1; then
A6:dom(f|(E2\E1)) = E2 \ E1 by XBOOLE_1:28;
   for x be object st x in dom(f|(E2\E1))
     holds (f|(E2\E1)).x >= 0 by Th16,XBOOLE_1:89; then
A7:f|(E2\E1) is nonnegative by SUPINF_2:52;
   for x be Element of X st x in dom(f|(E2\E1))
     holds (f|(E2\E1)).x = 0 by Th16,XBOOLE_1:89; then
   integral+(M,f|(E2\E1)) = 0 by A6,Th15,MESFUNC5:87; then
   Integral(M,f|(E2\E1)) = 0 by A6,A7,Th15,MESFUNC5:88; then
   Integral(M,f|E2) = er * M.(E1/\E2) + 0 by A5,Th50;
   hence Integral(M,chi(er,E1,X)|E2) = er * M.(E1/\E2) by A1,XXREAL_3:4;
end;

theorem  Th52:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M2 be sigma_Measure of S2, x be Element of X1,
  E be Element of sigma measurable_rectangles(S1,S2)
 st M2 is sigma_finite
 holds
   Y-vol(E,M2).x = Integral(M2,ProjPMap1(chi(E,[:X1,X2:]),x)) &
   Y(E).x  integral+(M2,ProjPMap1(chi(E,[:X1,X2:]),x)) &
   Y-vol(E,M2).x = integral'(M2,ProjPMap1(chi(E,[:X1,X2:]),x))
proof
   let,X2 non empty set,S1be  of, S2 be SigmaField of X2  forx ePoint of W st < &x>in rngs  in  holds dist(,y)>
   M2 be sigma_Measure of S2, x be Element of X1,
   Es(S1,S2);
 is ;
A2:ProjPMap1(chi(E,[:X1,X2:])end;
   ProjPMap1(chi(E,[:X1,X2:]),x) = chi(Measurable-X-section(E,x),X2)
     by MEASUR11:def 6; then
         by A72,EASUR11:def ;
   Y-vol(E,M2).x = M2.(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
   Y-vol(E,proof
     by MEASUR11:72;
   hence Y-vol(E,M2).x = Integral(M2,ProjPMap1(chi(E,[:X1,X2:]),x))
     by Th27;
   hence Y-vol(E,M2).x = integral+(M2,ProjPMap1(chi(E,[:X1,X2:]),x)) &
   Y-vol(E,M2).x = integral'(M2,ProjPMap1(chi(E,[:X1,X2:]),x))
     by A2,A4,MESFUNC5:89;
end;

theorem  Th53:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, y be Element of X2,
  E be Element of sigma measurable_rectangles(S1,S2)
 st M1 is sigma_finite
 holds
   X-vol(E,M1).y = Integral(M1,ProjPMap2(chi(E,[:X1,X2:]),y)) &
   X-vol(E,M1).y = integral+(M1,ProjPMap2(chi(E,[:X1,X2:]),y)) &
   X-vol(E,M1).y = integral'(M1,ProjPMap2(chi(E,[:X1,X2:]),y))
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
   M1 be sigma_Measure of S1, y be Element of X2,
   E be Element of sigma measurable_rectangles(S1,S2);
   assume A1: M1 is sigma_finite;

A2:ProjPMap2(chi(E,[:X1,X2:]),y) = chi(Y-section(E,y),X1) by Th48; then
   ProjPMap2(chi(E,[:X1,X2:]),y) = chi(Measurable-Y-section(E,y),X1)
     by MEASUR11:def 7; then
A4:ProjPMap2(chi(E,[:X1,X2:]),y) is_simple_func_in S1 by Th12;
   X-vol(E,M1).y = M1(Measurable-Ysection(E,) by A1,EASUR11:def 14; then
Xvol(E,).y =Integral(M1,ProjMap2(hi(,:X1,2]),y))
     by MEASUR11:72;
   hence X-        x,y  of[:,:]byZFMISC_1 2java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
     by Th27
   hence X-vol(E,M1).y = integral+(M1,ProjPMap2(chi(E,[:X1,X2:]),y)) &
   X-vol(E,M1).y = integral'(M1,ProjPMap2(chi(E,[:X1,X2:]),y))
     henceProjPMap2,y)).x = lim(FX#x)by A20java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
end;

theorem
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
      by A6,7,,A22,23A24,Th36,ESFUNC8:26;
  Integral(M,r(#)chi(E,X)) end;
proof
    X benon  set,Sbe  X,Mbe  ofS
   Ebe Element of S,r  Real;
A3:chi(E,X) is_simple_func_in S by Th12;
   Integral(M,r(#   beElement of S1,Bbe of ,xbe    ;
hence (M,()chi(E,X)=r*Integral(M,chi(E,X)) by A3,MESFUNC5:89;
end;

theorem Th55:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, y be Element of X2,
  E be Element of sigma java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
st M1 is sigma_finite holds
  (r(#)X-vol(E,M1)).y = Integral(M1,ProjPMap2(chi(r,E,[:X1,X2:]),y))
 & (r >= 0 implies
      (r(#)X-vol(E,M1)).y = integral+(M1,ProjPMap2(chi(r,E,[:X1,X2:]),y)))
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
   M1 be sigma_Measure of S1, y be Element of X2,
   E be Element of sigma measurable_rectangles(S1,S2), r be Real;
   assume A1: M1 is sigma_finite;

   set p2 = ProjPMap2(chi(E,[:X1,X2:]),y);

   chi(r,E,[:X1,X2:]) = r(#)chi(E,[:X1,X2:] iswithout_-inftyvalued
A2:ProjPMap2(chi(r,E,[:X1,X2:]),y) = r(#)p2 by Th29;

A3      A24MEASUR1160

 java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 46

A5:chiE,[X1X2] is_simple_func_in measurable_rectangles,java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
     by Th12; then
   Integral(M1,ProjPMap2(chi(r,E,[:X1,X2:]),y))
= r *integral'(1,) by A2,3Th31,:59
    .= r * X-vol(E,M1).y by A1,Th53;
   hence A7: (r(#)X-vol(E,M1)).y = Integral(M1,ProjPMap2(chi(r,E,[:X1,X2:]),y))
      MESFUNC1 ;
   thus (r >= 0 implies
      (r(#)X-vol(E,M1)).y = integral+(M1,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 28
   proof
    assume r >= 0; then
A8: r(#)p2 is nonnegative by A3,MESFUNC5:20;
    r(#)p2 is_simple_func_in S1 by A5,Th31,MESFUNC5:39;
   A2,A7,A8,MESFUNC5:89;
   end;
end;

theorem Th56:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M2 be sigma_Measure of S2, x be Element of X1,
  E be Element of sigma measurable_rectangles(S1,S2), r be Real
st M2 is sigma_finite holds
  ( for ybeElement of X2 holds
 & (r >= 0(/( ).= (1,(,y)
      (r(#)Y-vol(   proof
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
   M2  sigma_Measure S2,
   x A32: ProjPMap2f) is(Measurable-Y-(,)-
   be Real;
   assume A1: M2 is sigma_finite;

   set p2 = ProjPMap1(chi(E,[:X1,X2:]),x);

   chi(r,E,[:X1,X2:]) = r(#)chi(E,[:X1,X2:]) by Th1; then
A2:ProjPMap1(chi(r,E,[:X1,X2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

A3 nonnegativeTh32java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29

A4:dom(r(#)Y-vol(E,M2)) = X1 by FUNCT_2:def 1;

A5:chi(E,[:X1,X2:]) is_simple_func_in sigma measurable_rectangles(S1      M2.java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
     by Th12; then
   Integral(M2,ProjPMap1(chi(r,E,[:X1,X2:]),x))
     = r * integral'(M2,p2) by A2,A3,Th31,MESFUN11:59
    =r *Y-ol,M2)xby ,Th52;
   hence A7: (r(#)Y-vol(E,M2)).x = Integral(M2,ProjPMap1(chi(r,E,[:X1,X2:]),x))
      by A4,MESFUNC1:def 6;
   thus (r >= 0 implies
      (r(#)Y-vol(E,M2)).x = integral+(M2,ProjPMap1(chi(r,E,[:X1,X2:]),x)))
   proof
    assume r > 0; then
A8: r(#)p2 is nonnegative by A3,MESFUNC5:20;
    r(#)p2 is_simple_func_in S2 by A5,Th31,MESFUNC5:39;
    hence thesis by A2,,A8,MESFUNC5:89;
   end;
end;

theorem Th57:
  for X be non empty set, S be SigmaField of Xisnonnegative
EALstdom f inS &
   (for x be Element of X st x in dom f holds 0= f.x)
  holds (for E be Element of S st E c= dom f holds f is E-measurable)
   & Integral(M,f) = 0
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    f be PartFunc of X,ExtREAL                  10:ork  Nat stk Seglen E
    assume that
a1:  dom f in S and
a2:   ProjPMap2chirn.n,:X2)(E.,)byTh34 
    reconsider E        java.lang.StringIndexOutOfBoundsException: Range [7, 1) out of bounds for length 37
    (chi,,)E  dom(chi0E,) \ EbyRELAT_1:; then
(0E,)|)=X/\ by:def1;then
a3: dom(      hence

    now let x be Element of X;
     assumea4xdomfthen
(A43:7
     (chi(0,E,X)|E).x = 0 by a4,Def1;
           takex;
    end; then
a4: f = chi(0,E,X)|E by a3,PARTFUN1:5;
    hence for A be Element of S st A c= dom f holdsA18 fisnonpositive impliesfor n be Nat holds r.n < 0
     by Th15;
    Integral(M,f) = 0 * M.E by a4,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 35
ce (,f =0java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
end;

Lm5:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  A be Element of sigma measurable_rectangles(S1,S2),
  f be PartFunc of [:X1,X2:],ExtREAL
 st        hence r. < 0 by A9;
  & (f is nonnegative or f is nonpositive) & A = dom f
  & f is_simple_func_in sigma measurable_rectangles(S1,S2)
 holds
   of, st
   ( for y be Element of X2 holds
        I1.y = Integral(M1,ProjPMap2(f,y)) )
 & ( for V be Element of S2 holds I1 is V-measurable)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be       hence H iswithout_-nfty-valued;
    assume that
A1:  M1 is sigma_finite and
A2:  (f is nonnegative or f is nonpositive) and
A3:  A = dom f and
A4:  f is_simple_func_in sigma java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0

    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider    
    reconsider XX12 = [:X1,X2:] as Element of
      sigma measurable_rectangles(S1,S2) by MEASURE1:7;

    per cases;
    suppose f = {}; then
A5:  dom f     proof
     reconsider E1 = {} as Element of S1 byA50:   =X1 by FUNCT_2 1
 =}ofby MEASURE1;
     reconsider I1 = chi(E,X2) as Function of X2,ExtREAL;
     take I1;
     thus for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y))
     proof
      let y be Element of A27: is nonpositive H. is-nfty java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      dom(ProjPMap2(f,y)) = Y-section(dom f,
A6:   dom(ProjPMap2(f,y)) = E1       proof
:  (,y  E1-easurableby A4,,:34
      M1.E1 = 0 by VALUED_0:def 19; then
      Integral(M1,(ProjPMap2(f,y)|E1)) = 0 by A6,A7,MESFUNC5:94;
      hence I1 =Integral(M1,ProjPMap2(f,y)) by A6,FUNCT_3:def 3;
     end;
     thus for V be Element of S2 holds I1 is V-measurable by MESFUNC2:29;
    end;

    suppose f <> {}; then
     consider E be nonA31forx be ofX1, be   n   E 
       sigma measurable_rectangles(S1,S2), a be FinSequence of ExtREAL,
       r be FinSequence of REAL such that
A8:   E,a are_Re-presentation_of f and
A9:   for n be Nat holds
        a.n = r.n & f|(E.n) = (chi(r.n,E.n,[:X1,X2    proof
        (E.n = {} implies r.n = 0) by A4,Th5;

     defpred

A10: for k be Nat st k in Seg len E
       xbe ElementofFuncs(2,xtREAL) st Q[k,]
     proof
            set =XX2\Measurable-X-(.n,);
      assume k in Seg len E;
      reconsider x = (r.k)(#)(X-vol(E.k,M1))
        as Element of Funcs(X2      set fn =ProjPMap1((hir.En[:1X2]))x|
      take x;
      thus thesis;
     end;

     consider H be FinSequenceA2for be      pn = ProjMap1((.n,.[X1X2])) ; then
:dom= 
: x    X1

A13: dom H = dom E by A11,FINSEQ_1:def 3;

A14: f is nonnegative implies for n be Nat holds r.n >= 0
     proof
      assume A15: f is nonnegative;
      hereby let n be Nat;
       now assume A16: E.n <> {}; then
      ProjPMap1(hi(.,:X1,X2:)x)=chi-section(E.n,x,X2)
A17:     x in E.n by XBOOLE_0:def 1;
        n in dom E by A16,FUNCT_1:def 2; then
        a.n = f.x by A8,A17,MESFUNC3:def 1; then
        a.n >= 0 by A15,SUPINF_2:51;
        henceA39:  pn = r.)()hi(-Xsection(E.,x),2 by A38,h29;
       end;
       hence . > 0 by A9;
      end;
     end;

A18: f is nonpositive implies for n be Nat holds r.n <= 0
     proof
      assume A19: f is nonpositive;
      hereby let n be Nat;
       now assume A20: E.n <> {}; then
        consider x be object such that
A21:     x in E.n by XBOOLE_0:def 1;
        n in dom E by A20,FUNCT_1:def 2; then
        a.n = f.x by A8,A21,MESFUNC3:def 1; then
        a.n <= 0 by A19,MESFUNC5:8;
        hence r.n <= 0 by A9;
       end;
       hence r.n <= 0 by A9;
      end;
     end;

A22:f is nonnegative implies H is without_-infty-valued
    proof
     assume A6: f is nonnegative;
      for n be Nat st n in dom H holds H.n is without-infty
      proof
       let n be Nat;
       assume A23: n in dom H; then
  such
is   A ,: ;;
/   FunctionX2ExtREAL    reconsiderHsummable   (ExtREAL)
       Hiswithoutinfty ,def6java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
      end;
      hence H is without_-infty-valued;
     end;

A24:f is nonpositive implies H is without_+infty-valued
    proof
     assume A6: f is nonpositive;
     for n be Nat st n in dom H holds H.n is without+infty
     proof
      Partial_Sums H).1 H.1 by MEASUR11def 11;then
      assume A25: n in dom H; then
      H.n = (r.n)(#)(X-vol(E.n,M1)) by A11,A12; then
      H.n is nonpositive by A6,A18,MESFUNC5:20        ,ProjPMap1(chi(.1E1[X1X2])x) by A13,A31,46
      H/.n is nonpositive Function of X2,ExtREAL by A25,PARTFUN1:def 6;
      hence H.n is without+infty by A25,PARTFUN1:def 6;
     end;
     hence thesis;
    end; then
    reconsider H as summable FinSequence of Funcs(X2,ExtREAL)
      by A2,A22;


A26:f is nonnegative implies Partial_Sums H is without_-infty-valued
by,MEASUR11:61;
A27:f is nonpositive implies Partial_Sums H is without_+infty-valued
      by A24,MEASUR11:60;

    len H = len (Partial_Sums H) by MEASUR11:def 11; then
A28:dom H = dom (Partial_Sums H) by FINSEQ_3:29;

A29:H <> {} by A11; then
A30:len H >= 1 by FINSEQ_1:20;

A31:for y be Element of X2, n be Nat st n in dom E holds
      (H.n).y = Integral(M1,ProjPMap2(chi(r.n,E.n,[:X1,X2:]),y))
    & (H.n).y = Integral(M1,r.n(#)ProjPMap2(chi(E.n,[:X1,X2:]),y))
    proof
     let y be Element of X2, n be Nat;
     assumen  domE;then
nSeg len E  FINSEQ_1:ef 3; then
     n=(r.)#)-vol(E,M1))by A12;
     hence (H.n).y = Integral(M1,ProjPMap2(chi(r.n,E.n,[:X1,X2:]),y))
byA1Th55 then
     (H.n).y = Integral(M1,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 9
        by Th1;
     hence (H.n).y = Integral(M1,r.n(#)ProjPMap2(chi(E.n,[:X1,X2:]),y))
        by Th29;
    end;

    reconsider I1 = (Partial_Sums H)/.(len H) as Function of X2,ExtREAL;
    take I1;

    for y be Element of X2 holds
      ((Partial_Sums H)/.(len H)).y = Integral(M1,ProjPMap2(f,y))
    proof
     let y be Element of X2;
     f is A-measurable by A4,MESFUNC2:34; then
A32: ProjPMap2(f,y) is (Measurable-Y-section(A,y))-measurable
        by A3,Th47;
     dom(ProjPMap2(f,y)) = Y-section(dom f,y) by Def4; then
A33: dom(ProjPMap2(f,y)) = Measurable-Y-section(A,y) by A3,MEASUR11:def 7;

A34: ProjPMap2(f,y) is nonnegative or ProjPMap2(f,y) is nonpositive
       by A2,       

A35: for n be Nat holds
 c(rnEn[X1,2:])y)|
         (XX1 \ Measurable-Y-section(E.n,y)) )
         = XX1 \ Measurable-Y-section(E.n,y)
     &
       ( ProjPMap2(A49:  omf1 =XX2 \ -
      or            (X2 \ Measurable-section.nx))
     &
       ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y) is XX1-measurable
     &
f be ofX1st
xin domProjPMap2(chi(r,E.[X1X2:))y)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                  (XX1 \ Measurable-Y-section(E.n,y)) )
        holds (ProjPMap2((chi(r.n,E.n,[:X1,X2:])),java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 41
        (XX1 \ Measurable-Y-section(E.n     Y-(fAy  ProjPMap2(,)A by;
     &
       Integral(M1,ProjPMap2(chi(r.n,E.n,[:X1,X2:]),y))
        = Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(E.n,y))
     & Measurable-Y-section(A52  (XX2\ Measurable-Xsection(      set  =ProjPMap1((r.,E,:X2])x)
Y-E.n1,)
     & Measurable-Y-section(UnionE|(n+1))y)
        =Measurable--ection(Union(E|), /Measurable-Y-(E.(+1)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        XX2 --.,xjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      let n be& Y-section(  ,) =Y-(,p  -section(B)
      set pn = ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y);
A36  dom pn=XX2by:def1;
      set fn = ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y)|
        (XX1 \ Measurable-Y-section(E.n,y));

      pn = ProjMap2((chi(r.n,E.n,[:X1,A38  chir.En[X1,:])=(.)#chi(E.,:,X2]  Th1java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
A36:  dom pn = XX1 by FUNCT_2:def 1;
      hence
A37:   dom fn = XX1 \ Measurable-Y-section(E.n,y) by RELAT_1:62;

  chirn.n,[X1,:] =(n()hi(E.,:,X2:)byTh1;

      ProjPMap2(:pn  pn  A2A14A18,ESFUNC5:0;
        by Th48; then
      ProjPMap2(      dom(chi(Measurable-sectionEnx,)  by :def1;
        = chi(Measurable-Y-section(E.n,y),X1) by MEASUR11:def 7; then
A39:  pn = (r.n)(#)chi(Measurable-Y-section(E.n,y),X1) by A38,Th29;
      hence
A40:  pn is nonnegative or pn is nonpositive by A2,A14,A18,MESFUNC5:20;

      dom(chi(Measurable-Y-section(E.n,y),X1)) = XX1 by FUNCT_2:def 1;
      hence
A41:  pn is XX1-measurable by A39,MESFUNC1:37,MESFUNC2:29;

      thus for x be Element of X1 st x in dom fn holds fn.x = 0
      proof
       let x be Element of X1;
       assume A42: x in dom fn; then
       chi(Measurable-Y-section(E.n,y),X1).x = 0 by A37,FUNCT_3:37; then
       pn.x = r.n * 0 by A36,A39,MESFUNC1:def 6;
       hence fn.x = 0 by A42,FUNCT_1:47      thus  y be Elementof X2 st y in dom fn holds fn. = 0
      end; then
      Integral(M1,fn) = 0 by A37,Th57; then
       Integral(M1,pn|((XX1 \ Measurable-Y-section(E.n,y))
         \/ Measurable-Y-section(E.n,y)))
        = Integral(M1,pn|Measurable-Y-section(E.n,y)) + 0
          by A36,A40,A41,XBOOLE_1:79,MESFUNC5:91,MESFUN11:62; then
       Integral(M1,pn|((XX1 \ Measurable-Y-section(E.n,y))
         \/Measurable-Y-section(E.n,y)))
        = Integral(M1,pn|Measurable-Y-section(E.n,y)) by XXREAL_3:4; then
A43:   Integral(M1,pn|XX1)
         (,Measurable--(.,y) :;
       pn|Measurable-Y-section(E.n,y)
        = ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y)|Y-section(      end;then
          by MEASUR11:def 7; then
       pn|Measurable-Y-section(E.n,y)
by Th34; then
       pn|Measurable-Y-section(E.n,)
          (f1y  f1y +ProjPMap2f2,)
       pn|Measurable-Y-section(E.n,y)
        = ProjPMap2(f,y)|Y-section(E.n,y) by Th34;
      hence
       Integral(M1,ProjPMap2(chi(r.n,E.n,[:X1,       Integral(M1,ProjPMap2(chi(r.n,E.n,[:X1,X2
        = Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(E.n,y))
         by A43,MEASUR11:def 7;

      union rng(E|n) misses E.(n+1) by NAT_1:16,MEASUR11:1; then
      Union(E|n) misses E.(n+1) by CARD_3:def 4; then
      Y-section(Union(E|n),y) misses Y-section(E.(n+1),y)
        by MEASUR11:35; then
      Measurable-Y-section(Union(E|n),y) misses Y-section(E.(n+1),y)
        by MEASUR11:def 7;
      hence Measurable-Y-section(Union(E|n),y)
         misses Measurable-Y-section(E.(n+1),y) by MEASUR11:def 7;

      union rng(E|(n+1)) = union rng(E|n) \/ E.(n+1) by MEASUR11:3; then
      Union(E|(n+1)) = union rng(E|n) \/ E.(n+1) by CARD_3:def 4; then
      Union(E|(n+1)) = Union(E|n) \/ E.(n+1) by CARD_3:def 4; then
      Y-section(Union(E|(n+1)),y)
        = Y-section(Union(E|n),y) \/ Y-section(E.(n+1),y) by MEASUR11:26; then
      Measurable-Y-section(Union(E|(n+1)),y)
        = Yby MEASUR11:def 6; then
       .= Measurable-Y-section(Union(E|n),       pn|Measurable-X-section(.n,x)
         by MEASUR11:def 7;
      hence Measurable-Y-section(Union(E|(n+1)),y)
        = Measurable-Y-section(Union(E|n),y)
          \/ Measurable-Y-section(E.(n+1),y) by        =ProjPMap1(f(.n)x  A9 then
     end;

     defpred P[Nat] means
       $1 <= len H implies
: Copyright () 1990-026::           (Stowarzyszenie UzytkowniMizara,Bialystok, Poland)
           environ

A44: P[1]
     proof
      assume registrations XBOOLE_0,FUNCT_1,ORDINAL1,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 34
FINSEQ_3;
      len H =  schemes NAT_1,CLASSES1,XBOOLE_0,FUNCT_2;
       H  (Partial_Sums H)by FINSEQ_3:29; then
      
         by dom((,)  X-X(n,  -(E.n+),)
      artial_Sums)1 .1by MEASUR11:def11;then
A47:  ((Partial_Sumsexr PojPMap2(2y)=Y(omf2y by ,;
=Integral(1ProjPMap2(chi(.1,E.1,:X1,2:)y)byA13,31        by MEASUR11:def 6;

*.  FINSEQ_5;   -2-},)=,"         MeasurableXsection((+1,) :def 6;
      rng(E|1) = {E.1} by FINSEQ_1:      p1 =ProjMap1((chi.1E1[X1X2:),x)by Th27;then
unionrng(E1)=E. by 
      ProjPMap2(f|(union rng(E|1)),y)
       = ProjPMap2( (chi(r.1,E.1,[:X1,X2:]))|(E.1), y) by A9; then
      ProjPMap2(f|(union rng(E|1)),y)
       = artial_Sums H)/.1).x = Integral(M2,ProjPMap1(f|(union rng(
           by Th34; then
  (|(nion(|1))
=M1((1,,:X:),|
        java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 60

      set p1 = q is_a_proper_prefix_of p by A1;
 q cEby70
 =c(.1.,:,X2:])),y)|
                 (XX1 \ Measurable-Y-section(E.1,y)); java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 28
:=  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 48
    & (p1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
       (r1,1[X1X:],) 
1    ;
A51:  tTh12
         by   java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
       = XX1 by XBOOLE_1:45;
       java.lang.StringIndexOutOfBoundsException: Range [18, 16) out of bounds for length 31
      : java.lang.StringIndexOutOfBoundsException: Range [30, 27) out of bounds for length 42
      Integral(M1 
        \/ java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 4
        ,Measurable-java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
         java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
     java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
      ( java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 27
A,XXREAL_34java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
     ;

A54:    pknp**  X  =^*> ;
proof
be  ;

      assume
        H NAT_113 java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
A57:  n <= len(Partial_Sums;
        by A56,MEASUR11:def 11;

A58      Partial_SumsH)n=(artial_Sums

: =114 
:domjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 74
         
then:  by;
      java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8

A62T *& =java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
         H/.(n+      p  or  3
(P/n java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
         H/.(n+1) is without+infty )
      proof
       casesjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
       suppose thuspholds java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 54
        hence thesis:cTDef3
       end;
       suppose f is nonpositive;
        hence      $ <len implies  ).1 -;
       end;
      end;

A63:  Y-section(Union(E|n),y)
       = Measurable-Y-section(Union(E|n),y) by MEASUR11:def 7;

      (Partial_Sums H).(n+1)
        = (Partial_Sumsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          by A56,A59,NAT_1:13,MEASUR11:def 11; then
      ((Partial_Sums H).(n+1)).y
        = ((Partial_Sums H)/.n).y + (H/.(n+1)).y      :+1<  H
     (H.1).java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
        = Integral(M1,ProjPMap2(f|(union rng(E|n)),y))
         + Integral(M1,ProjPMap2(chi(r.(n+1),E.(n+1),[:X1,      .n)=.1  H/(+)=(java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 75
              by A13,A55,A56,A60,A61,A31,NAT_1:13; then
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f|(Union(E|n)),y))
         + IntegralA76  (H(H/n)=XX1byFUNCT_2def1java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
              by CARD_3:def 4; then
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f,y)|Y-section(Union(E|n),y))
         + Integral(M1,ProjPMap2(chi(r.(n+1),E.(n+1),[:X1,X2:   is java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 36
              by Th34; then
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f,y)|Y-section(Union(E|n),y))
        +,be;
              by A35; then
      ((Partial_Sums H).(n+1)).y
        x= { 
             (MeasurableA18
              Measurable      .y 1
              +java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 30
      (                      java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 26
         M1f)YsectionE(1)),y))
               A35;then
      (Partial_Sums )(+1).
        =Integral(1,rojPMap2(,)-ectionUnionE(+),)
              by ((Partial_Sums H).+).java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
      ((Partial_Sums H).(n+1)).y
       =Integral(1,rojPMap2(f|(Union(E|(n+1))),y)) byTh34; then
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f|(union rng (E|(n+1))),y)) by CARD_3:def 4;
      hence ((Partial_Sums H)/.(n+1)).y
           = Integral(M1,ProjPMap2(f|(union rng (E|(n+1))),y))
             by A60,PARTFUN1:def 6;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

: java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
     E|len e   ,S1be of,S2  SigmaField   java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
     union rng(E|len H) = dom f by A8,MESFUNC3:def 1; then
A64:st E c=  f & isE-

     for n be non zero Nat holds P[n] from NAT_1:sch 10(A44,A54);
     hence ((Partial_Sums H)/.(len H)).y = Integral(M1,ProjPMap2(f,y))
       by A29,A64;
    end;
    hence for y bethus   beElementofS1 assume that

    thus for V be Element of S2 holds I1 is V-measurable
    proof
     let V be Element of S2;

A65: for n be Nat st n in dom H holds H/.n is V-measurable
     proof
      let n be Nat;
      A65: for beNat st n dom Hholds /nis -
A66:  H/.n = H.n & H.n = (r.n)(#)(X-vol(E.n,M1)) by A11,A12,PARTFUN1:def 6;
vol(.,1) =XX2 by FUNCT_2:ef 1;
      X-A66:  H/.n H.n &H.=(.)#(-(.,M2)byA11,,ARTFUN1: 6;
A67: dom(Y-ol(.,2) =  FUNCT_2: 1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
     end;

     defpred P2[Nat] means
      $1 <= len H impliesdefpred P2[Nat 

     (Partial_Sums H)/.1
      =(artial_Sums H)1 by A28,A30,INSEQ_3:5,:ef6 then
     (artial_Sums H). =H.1 by MEASUR11:ef 11;then
     (Partial_Sums H)/.1 = H/.1 by A30,A28,FINSEQ_3:25,PARTFUN1:def 6; then
A68: P2[1] by A65,FINSEQ_3:25;

A69: for n be non zero Nat st P2[n] holds P2[n+1]
     proof
      let n be non zero Nat;
      assume A70:P2[n];
      assume A71: n+1 <= len H; then
A72:  1 <= n < len H by NAT_1:13,14; then
A73:  n in dom H & n+1 in dom H by A71,NAT_1:11,FINSEQ_3:25; then
A74:  (Partial_Sums H)/.n = (Partial_Sums H).n &
      H.(n+1) = H/.      be java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
         by A28,PARTFUN1:def 6; then
A75:  (Partial_Sums H)/.(n+1) = (Partial_Sums H)/.n + H/.(n+1)
         by A72,MEASUR11:A11:  dom FI1 = X2 & for y1java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 65

A76:  dom(H/.(n+1)) = XX2  y2bejava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 57

A77:  H/.(n+1) is      y2 
      cases java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
      suppose f is nonnegative; then
       H/.(n+1) is without-infty & (Partial_Sums H)/.n is without      . ExtREAL;
         by A22,A26,A28,A73,A74;
       hence (Partial_Sums H)/.(n+1) is V-measurable
         by A70,A71,A75,A77,NAT_1:13,MESFUNC5:31;
      end;
      suppose f is nonpositive; then
A78:   H/.(n+1) is without+infty & (Partial_Sums H)/.n is without+infty
        by A24,A27,A28,A73,A74; then
       dom((Partial_Sums H)/.n + H/.(n+1))
       = dom((Partial_Sums H).n) / (H.(+1)  :1
       hence (Partial_Sums H)/.(java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 8
        by A70,A71,A75,A77,A76,A78,NAT_1:13,MEASUR11:65;
      ;
    

     for nA4   Element ofX2 st    & xy]in dom fjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
     hence thesis by A29;
    end;
    end;
end;

Lm6:
for X1,X2 be non empty set, S1 be SigmaField of X1,   set z = [x,y];
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  A be Element of sigma measurable_rectangles(S1,S2),
  f be PartFunc of [:X1,X2:],ExtREAL
 st M2 is sigma_finite
  & (f is nonnegative or f is nonpositive) & A = dom f
  & f is_simple_func_in sigma java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 22
 holds
  ex I2 be Function of X1,xtREAL st
   ( for x be Elementby,A26A28,73,74;
        .  (,rojPMap1(f,) )
 &( VElement   measurable)
r k =n ofbyd ;
    letq**  TD
    M1 be sigma_Measure of hence q^<*n*> in X by A12
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of :,2:]ExtREAL
    assume that
A1:  M2 is sigma_finite and
A2:  (f is then  p in { t : not p is_a_proper_prefix_of t };
A3:A dom f 
proof

    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 55
    reconsider XX2 = X2 as Element of S2 by}or
    
sigmameasurable_rectangles(,) MEASURE1:7;

    per cases
    supposef ={} 
A5:  dom f = {}[:X1 :ex  q=t&notp  t;
 Elementof :7;
     reconsider E = {            
     reconsider:x=and
     take I2;
     thus for x be Element of X1 holds I2.x = Integral(M2,java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 52
     
      let x be Element of X1;
      dom(ProjPMap1(f,x)) = X-section(dom f,x            
A6:   dom(ProjPMap1(f,xrp^ by A13
A7:   ProjPMap1(f,x) is E2-measurable by A4:p =r Th1
      M2.E2 = 0 by VALUED_0:def 19; then
      Integral(M2,(then           s = r2^r1 by java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
 I2  Px)by:;
     ;
                 r2 
    end;

    suppose f <> {}; then
     consider E be non empty Finite_Sep_Sequencejava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 59
                r3 of A1A20T;
          
A8:   E,a are_Re-presentation_of
A9:   end
   =;
        (E.n = {} then A25:    ex s being Element of T st

 $2=(.1()YE$M2)

A10: for k be hence thesis :def3java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      ex x be Element of Funcs(X1,ExtREAL) st Q[k,x]
     proof
      let k be Nat;
      java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 10
      reconsider x = (r.k)(#)(Y-vol(E.k,M2))
as (, 8;
      take x;
      thus thesis;
     end;

 H  ofFuncs(1,xtREAL)such 
A11:  dom H = Seg len E and
A12:      (Fy1)x  A18,d 

A13: dom H = dom E byA11,FINSEQ_1:def3;

:  forn  holds. >0
     proof
      assume A15
      hereby let n be Nat;
        A16 .n>} 
        consider x be java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 24
A17:     x in E.n by XBOOLE_0:def 1;
        nindomE A16Fdef 2 
        a.n = f.x by A8,A17,MESFUNC3:def 1; then
        a.n >= 0 by A15,SUPINF_2:51;
        hence r.n >= 0 by A9;
       
       hence r.n >= 0dom(PFy) = -domF0));
     ;
     end;

  is  be .< java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
     proof
      assume A19: f is nonpositive;
      hereby let n be Nat;
       now assume A20: E.n <> {}; then
        consider x be object such that
A21:     x in E.n by XBOOLE_0:def 1;
         in dom E by ,def 2;
        a.n = f.x
        a.n <= 0 byA24 Fy.  .0);
       n<  ;
       end;
=A9
      end;
     end;

:java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 55
    proof
     assume A6: f          **. ;

      for n be Nat           java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 35
      proof
 be;
       assume A23: n in dom H      end;
      .n =(.)()Y-olE.,2) by A11A12;then
       H.n is nonnegative by A6,A14,MESFUNC5 by A6,A30,32;
       H/.n is nonnegative Function of X1,ExtREAL by A23,PARTFUN1:def 6;
       hence H.n is without-infty by A23,PARTFUN1:def 6;
      end;
      H      holds (ojPMap2(,)#
     end;

A24:f is nonpositive java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 16
    proof
     assume A6: f is nonpositive;

     for n be Nat st n in dom H holds H.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
     proof
      let n be Nat;
      assume A25: n in dom H; then
      H. =(.n)#((.n,2) by A11,12;then
      H.n is nonpositive by A6,A18,MESFUNC5:20; then
      H/.n is: Integral(1,(rojPMap2(,))=lim J
      hence H.n is without+infty by A25,         by A8,A25,A26,A27,A29,Th58,MESFUNC9:52;
     end;
     hence thesis;
    end; then
    reconsider H as summable FinSequence of Funcs(X1,ExtREAL)
      by A2,A22;of :not tis_a_proper_prefix_of }


A26:f is      P,]end
             letx be ;
A27:f is nonpositive implies Partial_Sums H is java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 21
      by  =lim(I1# A38MESFUNC8def9;

                java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
29java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

A29:H <> {} by A11; then
A30:len H >= 1 by FINSEQ_1:20;

A31:for x       .n #y.
      (H.n).x = Integral(M2,ProjPMap1(chi(r.n,E.n,[:X1,X2:]),x))
    & (H.n).x = Integral(M2,r.n(#)ProjPMap1(chi(E.n,[:X1,X2:]),x))
    proof
     let x be Element of X1, n be Nat;
     assume n in dom E; then
 in len def3;java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
     H.n = (r.n)(#)(Y-vol(E.n,M2)) by A12;
     hence (H.n).x = Integral(M2,ProjPMap1(chi(r.n,E.n,[:X1,X2:]),x))
        by A1,Th56; then
     (H.n).x = Integral(M2,ProjPMap1((r.n)(#)chi(E.n,[:X1,X2:]),x))
        by Th1;
     H.)x  (,.#chiEn,X,],)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
        by Th29;
    end;

    reconsider I2 = (Partial_Sums H)/.(len H) as Function of X1,ExtREAL;
    take I2;

    for x be Element of X1 holds
      ((Partial_Sums H)/.(len H)).x = Integral(M2now  m, be 
    proof
     let x be Element of X1;

     f is A-java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
A32: ProjPMap1(fjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
        ;

 then
A33: dom(ProjPMap1pq=r^,32;

nonnegativefx 
       by A2,Th32,Th33;

A35: for n be Nat holds
       dom( q
         ( \Measurable--(.,) )
         =23  iffp^in  and
     &
       ( ProjPMap1((chi(r.n,E.n,        java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 60
      or ProjPMap1(then  q =x  FinSequenceof NATby ;
     &
       ProjPMap1(hence thesis java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 29
     &
X2 
        y in dom(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 16
                  \java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 55
        holds (   
        (XX2 \ Measurable-X-section(E.r &2=* ;
     &
    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 55
        = Integral(M2,ProjPMap1(f,x)|Measurable-X-java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 8
easurableX-Union(|)x)
         A5:    y in dom f and
     &X-section((|n+1),x)
        = Measurable-X-section(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 20
     proof
          inp
      set pn = ProjPMap1((chi(r.n,E.n,[:X1,X2A11:   in dom  and
      set dn = XX2 \ Measurable-hencethesis by A4,A11,FUNCT_1:def 3;
      set fn = ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x)|
        X  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 44

      pn = ProjMap1((chi(r. in java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 40
A36:  dom pn = XX2 by FUNCT_2:def 1;
      hence
A37:   dom fn = XX2 \ Measurable-X-section

A38:  chi(r.n,E.n,[:X1

      ProjPMap1(chi(E.n,[:X1,X2:]),x) = card dom p = card len p by A1,FINSEQ_1:55;
        by Th48; then
      ProjPMap1(:  Height  width of finite trees
        = java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A39(x java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 45
      hence
A40:  pn is java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 4

      dom(chi(java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
      hence
X2-easurable java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 7

       X2 st in    . =0
      java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
       beX2;
       assume A42: y in dom fn; then
       chi(Measurable-X-section(E.n,x),X2).y = 0 by A37,FUNCT_3:37; then ^sjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 56
       y=.*0 A39Mjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 48
       hence  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 23
      end; then
      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 43
       Integral(M2,pn|((         by ;
         \/ Measurable            thesis by XBOOLE_0: 3;
        = Integral(M2,pn|Measurable-X-section(E java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 55
          by A36,A40,A41,XBOOLE_1:79,thenjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 57
      Integral(M2,(  java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 58
         \/ Measurable-X-section(E.n,x))java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 36
        = java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
A43:   Integral(M2,pn|XX2)
        = Integral(M2,pn|Measurable-X-section(E.n,x)) by XBOOLE_1:45;
       pn|Measurable-X-section(E.n,x)
        = ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x)|X-section(E.n,x)
          by MEASUR11:def 6; then
       pn|Measurable-X-section(E.n,x)
        = ProjPMap1(chi(r.java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
       Measurable-X-section(.,)
        = ProjPMap1(f|(E.n),x) by A9; then
       pn|Measurable-X-section(E.n,x)
        = ProjPMap1end;
      hence
       Integral(M2,ProjPMap1(chi(r.n,E.n, r   XXREAL_0:4; then
        = Integral(M2,ProjPMap1(f,x)|Measurable-    reconsider r = er as Real;
         by A43,MEASUR11:def 6;

      union rng    hence Integral(,(er,E,X))
      Union(E|n) misses E.(n+1) by CARD_3:def 4; then
      X-section(Union(E|n),x).= er *M.by :4;
        by MEASUR11:end;
      Measurableend;
        by MEASUR11:def 6;
      hence for X be non empty set be SigmaField of X, sigma_Measureof S,
         misses Measurable-X-section(E.(n+1),x) by MEASUR11:def 6;

  rngE(+1))  rng(|)\/E.(+) by MEASUR11:; then
      java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
      Union
      let
         java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 78
      Measurable-X
        =heorem  Th52:
       .hjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 28
         by:ef 6;
      java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 50
        = Measurable-X-section(Union(E|njava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
          \/ java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 7
     end;

    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 25
       $1 <thus st holds 
         ((Partial_Sums H)/.$1
           = Integral(M2,ProjPMap1(f|(union rng (E|$1)),x));

]
     java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 8
      assume A45java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 27
A46:  1 in dom H by FINSEQ_3:25;
      len H = len (Partial_Sums H)java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 12
      H=Partial_Sums H) by FINSEQ_3:29; then
      (Partial_Sums H)/.1 = (Partial_Sums H).1
         byA45,INSEQ_3:25,ARTFUN1def6;then
      (artial_Sums H). = H. by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 15
47 (     let nD is AntiChjava.lang.StringIndexOutOfBoundsException: Range [37, 28) out of bounds for length 49
        =Integral(2,Y-vol(E,M2).x = M2.(Measurableection(,x) ,: 13;java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 5

      E|1 = <* E.1 *> by FINSEQ_5:20; then
      rng(E|1) = {E y1 java.lang.StringIndexOutOfBoundsException: Range [2, 39) out of bounds for length 6
      union Fy.
      ProjPMap1(f|(union rng(E|1)),x)
       ; then
      ProjPMap1(f|(union rng(E|1)),x)
       = ProjPMap1( (chi(r.1,E.1,[:X1,X2:])),x)|X-section(E.1,x)
           by Th34; then
A48:  Integral
       |
             Measurable-X-section(  besigma_MeasureS1   x in (mProjPMap2Fy)


      set p1 = ProjPMap1&(r = 0 implies
      set d1 = XX2 \ Measurable-X-section(E.1,x);
      set f1 = java.lang.StringIndexOutOfBoundsException: Range [35, 26) out of bounds for length 35
                 (XX2 \ Measurable-X-section(E.1,x));

A49  f1=  Measurable--ection(E1)
    & (p1 is nonnegative

      p1=ProjMap1c(.1,.,:1,2:),)by Th27;then
A50:  dom p1 = X2 by FUNCT_2:def 1;

A51:  (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         by XBOOLE_1:79;

A52:  ((XX2 \ Measurable-X-section(E.1,x)) \/ Measurable-X-section(E.1,x))
       = XX2 by XBOOLE_1:45;

      for y be Element of X2 st y in dom f1 A13: java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 70
      Integral(M2,f1) = 0 by A49,Th57; then
      Integral(M2,p1|((XX2 \ Measurable-X-section(E.1,x))
        \/ Measurable  java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 56
       = Integral( <= n by A12,FINSEQ_1
         A35java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 52
      hence
      (java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 76
         by A47,A48,A52,XXREAL_3:4;
     end;

A54: for n be non zero Nat st P[n 
     proof
      let n be non zerofor p java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 61
      assume A55: P[n];
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
      n
A57:  nA57java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
        by A56,     for n be Element of NAT holds J.n = (FI1#y).n

A58:  1 <= n+1 by NAT_1:12;

A59   =1 by :4; then
A60:  n in dom  .)yby java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 52
         by A56,A57,NAT_1:12,FINSEQ_3:25; then
A61:  (Partial_Sums H)/.(n+1) = (Partial_Sums H).(n+1) &
      (Partial_Sums H)/.n = (Partial_Sums H).n & H/.(n+1)end;
        by PARTFUN1:def 6;

A62:  ( (Partial_Sums H)/.n is without-infty &
         H/.(n+1) is without-infty ) or
      ( (Partial_Sums H)/.n is without+infty &
         H/.(n+1) is without+infty )
      proof
       per cases by A2;
       suppose f is nonnegative;
        hence thesis by A22,A26,A56,A57,A58,A59,A61,FINSEQ_3:25;
       end;
       suppose f is nonpositive;
        hence thesis by A24,A27,A56,
       end;
      end;

ProjPMap2Fy.)java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 67
       = Measurable-X-section(Union(EA28 F   java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 28

      (Partial_Sums H).(n+1)
        = (Partial_Sums H)/.n + H/.(n+1)
          by A56,A59,NAT_1:13,MEASUR11:def 11; then
      ((Partial_Sums H).(n+1)).x
        = ((Partial_Sums H)/.n).x + (H/.(n+1)).x by A62,DBLSEQ_3:7
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f|(union rng(E|n)),x))
         + Integral(M2,ProjPMap1(chi(r.(n+1),E.(n+1),[:X1,X2:]),x))
              n in domE by FUNCT_1def2;then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f|(Union(E|n)),x))
         + Integral(M2,ProjPMap1(chi(r.(n+1),E.(n+1),[:X1,X2:]),x))
              by CARD_3:def 4; then
      rtial_SumsH)(+).
        = Integral(M2,ProjPMap1(f,x)|X-section(Union(E|n),x))
         + Integral(M2,ProjPMap1(chi(r.(n+1),E.(n+1),[:X1,X2:]),x))
              by Th34; then
      ((Partial_Sums H).(nassumeA19: ;
        =java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 61
        + Integral(M2,ProjPMap1(f,x)|Measurable-X-section(E.(n+1),x))
              by  
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 32
        = Integral(M2,ProjPMap1(f,x)|
             (Measurable-X-section(Union(E|n),x) \/
              Measurable-X-section(E.(n+1),end;
              by A32,A33,A34,A35,A63,MESFUNC5:91,MESFUN11:62; then
      ((Partial_Sums H).(n+1)).x
        = java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 4
              by A35; then
      ((Partial_Sums H)letjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
         java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 65
              by MEASUR11:def 6; then
      ((Partial_Sums     java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 61
        = Integral(M2,ProjPMap1(f|(Union(E|(n+1))),x)) by Th34; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(         n2 beingNat 
      hence ((Partial_Sums hence A2,A3,FINSEQ_1 8
           = Integral(M2,ProjPMap1(f|(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 28
             by A60,reconsider y = k+1 as
     end;

     len H = len E by 
     E|len H = E|(dom E) by FINSEQ_1:def 3; then
     union rng(;
A64: f|(union rng(E|len H)) = f;

     for n be non zero Nat holds P[n] from NAT_1:sch x  y :ef 3;.,X,:))
     hence ((Partial_Sums H)/.(len H)).x = Integral(M2,ProjPMap1(f,x))
       by A29,A64;
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
    hence for x be Element of X1 holds I2 k<+1java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 33

    thus for V be Element of S1 holds I2 is V-measurable
    
     let V be Element A38:  chi(.,.,:1,2:)=(.)#)chi(E.n,[:X1,X2:]) by Th1;

A65: for n be Nat st n in dom H holds H/.n is V-measurable
     proof
      let n  java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
      assume n A40:  pn is nonnegativeisby A14A18:;
A66:
A67:  dom(Y-vol(E.n,M2)) = XX1 by FUNCT_2:def 1;
      Y-vol      f1 = (c(.,E.,:1,2:),)
      java.lang.StringIndexOutOfBoundsException: Range [21, 11) out of bounds for length 56
     end;

     defpred P2[Nat] means
      $1 <= len H implies (Partial_Sums H)/.$1 is V-measurable;

ial_SumsH/1
      = (Partial_Sums H).1 by A28,A30,FINSEQ_3:25,PARTFUN1:def 6; then
     by MEASUR11def 11; then
     (Partial_Sums H)/.1 = H/.1 by A30,A28,FINSEQ_3:25,PARTFUN1:def 6; then
A68: P2[1] by A65,FINSEQ_3:25;

A69: for n be non zero Nat st P2[n] holds P2[n+1]
     proof
      let n be non zero Nat;
      assume A70:P2[n];
      assume A71: n+1 <= len H; then
A72:  1 <= n < len H by NAT_1:13,14; then
A73:  n in dom H & n+1 in dom H by A71,NAT_1:11,FINSEQ_3:25; then
A74:  (Partial_Sums H)/.n = (Partial_Sums H).n &
      H.(n+1) = H/.(n+1) & (Partial_Sums H)/.(n+1) = (Partial_Sums H).(n+1)
         by A28,PARTFUN1:def 6; then
A75:  (Partial_Sums H)/.(n+1) = (Partial_Sums H)/.n + H/.(n+1)
         by A72,MEASUR11:def 11;

A76:  dom(H/.(n+1)) = XX1 & dom((Partial_Sums H)/.n) = XX1 by FUNCT_2:def 1;

A77:  H/.(n+1) is V-measurable by A73,A65;

      per cases by A2;
      suppose f is nonnegative; then
       H/.(n+1) is without-infty & (Partial_Sums H)/.n is without-infty
         by A22,A26,A28,A73,A74;
       hence (Partial_Sums H)/.(n+1) is V-measurable
         by A70,A71,A75,A77,NAT_1:13,MESFUNC5:31;
      end;
      suppose f is nonpositive; then
A78:   H/.(n+1) is without+infty & (Partial_Sums H)/.n is without+infty
        by A24,A27,A28,A73,A74; then
       dom((Partial_Sums H)/.n + H/.(n+1))
       = dom((Partial_Sums H)/.n) /\ dom(H/.(n+1)) by MESFUNC9:1;
       hence (Partial_Sums H)/.(n+1) is V-measurable
78,NAT_1:13,MEASUR11:65;
      end;
     

     for n be non zero Nat holds P2[n] from NAT_1x in {<n* :n <1 }
     java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 14
    end;
    end;
nd

theorem Th58:
for X1,X2,Y be non empty set, F be Functional_Sequence of [:X1,X2:],Y,
   be Element X1, beElement  st  isis 
  holds ProjPMap1 
      &ProjPMap2(F,) s 
proof
    let X1,X2,Y     reconsider I2  FI2 X1,ExtREAL  :1;
     x1 be Element  ,x2be  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        reconsider  =X1 as   java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 55

    now java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 69
     dom(java.lang.StringIndexOutOfBoundsException: Range [45, 14) out of bounds for length 45
      .= X-section(dom(F.m),x1) by Def3
      .= X-section(dom(F.n),x1) by A1,MESFUNC8:def 2
      .domP(.,1)  ;
     hence dom(ProjPMap1(F,x1).m) = dom(ProjPMap1(F,x1).n) by Def5;
    end;
    hence ProjPMap1(F,x1) is with_the_same_dom by MESFUNC8:def 2;

    now let m,n be Nat;
     dom(ProjPMap2(F,x2).m) = dom(ProjPMap2(F.m,x2)) by Def6
      .= Y-section(dom(F.m),x2) by Def4
      .= Y-section(dom(F.n),x2) by A1,MESFUNC8:def 2
      .= dom(ProjPMap2(F.n,x2)) by Def4;
     hence dom(ProjPMap2(F,x2).m) = dom(ProjPMap2(F,x2).n) by Def6;
    end;
    hence ProjPMap2(F,x2) is with_the_same_dom by MESFUNC8:def 2;
end;

     I2. = Integral(M2b ;

Lm7:
for X1,X2 be non empty set,  {,**,**}java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 66
  M1 end;
  A be Element    assume
  f be PartFunc of [:X1,X2:],ExtREAL
 st M1 is sigma_finite
  & f is nonnegative & A = dom f & f is A-java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 14

  ex I1 be Function of X2,ExtREAL st
   ( for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y)) )
   java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 54
proof
    let X1,X2 be non empty hence (Partial_Sums H)/.(n+1) is V-measurable
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
   assume that
and
A3: is nonnegative & A =dom    is 

    set S = sigma measurable_rectangles(S1,S2);
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
    a_Measure S
      by MEASUR11:8java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
    reconsider XX12 = [,M2 be sigma_Measure  S2,
      sigma measurable_rectangles(S1,S2) by MEASURE1:7;

    consider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
A4:  for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f and
A5:  for n be Nat holds F.n is nonnegative and
A6:     y1in X-section(A,x1) by A3,Def3; then
       (.)z = (F). and
java.lang.StringIndexOutOfBoundsException: Range [29, 2) out of bounds for length 54
       F#)is convergent &lim(#)=f. by A3MESFUNC5:4;

    let ,beNatjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
     dom(F.m) = dom f by A4;
     hence dom(F.m) = dom(F.n) by A4 #1.  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 55
    end; then
A8: F is with_the_same_dom by MESFUNC8:def 2;

    defpred P[ (ProjPMap1,x1)y1 is  by A18,FUNCT_2:8;
      ex Fy be Function of X2,ExtREAL st
        $2 = Fy & dom Fy = X2 &
        (for y1 be Element of X2 st y1 in java.lang.StringIndexOutOfBoundsException: Range [5, 45) out of bounds for length 9
           Fy.y1 = Integral(M1,& lim(FI2#x) = Integral(M2,lim(java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 56

A10:for n be Element of NAT
    proof
     let n be Element of NAT;

     deffunc F(Element of X2) = Integral(M1,ProjPMap2(F.n,$1));

     consider FI1 be Function such that
A11:  dom FI1 = X2 & for y1 be Element of X2    proof
        from FUNCT_1:sch 4;

A12: for y2 be object st tof  . =java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 74
     proof
      let y2 be object;
      assume y2 in X2; then
      reconsider y1 = y2 as Elementlet  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 28
      FI1.y2 = Integral(M1,ProjPMap2(F.n,y1)) by A11;
      ;
     end; then
     FI1 is Function of X2,ExtREAL by A11,FUNCT_2:3; then
     reconsider FI1 A40:FI2.) =XX1  
     take FI1;

     reconsider Fy = FI1 asproof
     for y1 be Element of X2 st y1 in dom Fy holds
              java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 59
     hence ex Fy be Function of X2,ExtREAL st FI1 = Fy & dom Fy = X2 &
       ( (or  be    Lx= M2,Fn,x))
          Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) ) by A11;
    end;

    consider FI1 be Function of NAT,PFuncs(X2,ExtREAL) such that
A13: for n be Element of NAT holds P[n,FI1.n] from FUNCT_2:sch 3(java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 55

A14:for n be Nat holds dom(FI1.n) = X2
    proof
      let y be Element of X2;
     n is Element of NAT by ORDINAL1:def 12; then
      st
      FI1.n = Fy & dom Fy = X2 &
      (for y1 be Element of 
        holds Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) ) by A13;
     hence dom(FI1.n) = X2;
    end;

A15:for n be Nat, y1 be Element of X2 st y1 in dom(FI1.n) holds
     (FI1.n).y1 = Integral(M1,ProjPMap2(F.n,y1))
    proof
     let n be Nat, y1 be Element of X2;
     assume  y1 in dom(FI1.n);
     n is Element of NAT by ORDINAL1:def 12; then
     P[n,FI1.n] by A13;
     hence (FI1.n).y1 = Integral(M1,ProjPMap2(F.n,y1))      (I2#)n = (FI2n.by java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 52
    end;

A16:for y1 be Element of X2, x1 be Element of X1 st x1 in dom ProjPMap2(f,y1)
     holds (ProjPMap2(F,y1))#x1 is convergent &
           lim((ProjPMap2(F,y1))#x1) = ProjPMap2(f,y1).x1
    proof
     let y1 be Element of X2, x1 be Element of X1;
     reconsider z1 = [x1,y1] as      =java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 53
     assume x1 in dom ProjPMap2(f,y1); then
     x1 in Y-section(A,y1) by A3,Def4; then
A17: z1 in dom f by A3,Th25; then
A18: F#z1 is convergent by A7;

A19: for n be Element of NAT holds (F#z1).n = ((ProjPMap2(F,y1)
     java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      let n be Element of NAT;
A20:  [x1,y1] in dom(F.n) by A4,A17;
      (F#z1).n = (F.n).(x1,y1) by MESFUNC5:def 13; then
      (F#z1).n = ProjPMap2(F.n,y1).x1 by A20,Def4java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      (F#z1).n = (ProjPMap2(F,y1).n).x1 by Def6;
      hence (F#z1).n = ((ProjPMap2(F,y1))#x1).n by MESFUNC5:def 13;
     end;
     hence let X2 benon  X1,  ofX2java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
     F#z1 = (ProjPMap2(F,y1))#x1 by A19,FUNCT_2:def 8; then
     lim((ProjPMap2(F,y1))#x1) = f.(x1,y1) by A7,A17;
     hence lim((ProjPMap2(F,y1))#x1) = ProjPMap2(f,y1).x1 by A17,Def4;
    end;

A21:for y be Element of X2 holds
     lim(ProjPMap2(n in Seg len E :3 then
   & FI1#y is convergent
   & lim(FI1#y) = Integral(M1,lim(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 24
    proof
     let y java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 15

     dom(lim(ProjPMap2(F,y))) = dom((ProjPMap2(F,y)).0) by MESFUNC8:def 9; then
     dom(lim(ProjPMap2(F,y))) = dom(ProjPMap2(F.0,y)) by Def6; then
     dom(lim(ProjPMap2(F,y))) = Y-section(dom(F.0),y) by Def4; then
     dom(lim(ProjPMap2(F,y))) = Y-section(dom f,y) by A4; then
A22: dom(lim(ProjPMap2(F,y))) = dom(ProjPMap2      java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 63
     for x be Element of X1 st x in dom(lim(ProjPMap2(F,y)))
       holds (lim(ProjPMap2(F,y))).x = (java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 8
     proof
      let x be Element of X1;
      assume A23: x in dom(lim(ProjPMap2(F,y))); then
      (lim(ProjPMap2(F,y))).x = lim((ProjPMap2(F,y))#x)
        by MESFUNC8:def 9;
      hence (lim(ProjPMap2(F,y))).x = (ProjPMap2(f,y)).x by A16,A22,A23;
     end;
     hence lim(ProjPMap2(F,y)) = ProjPMap2(f,y) by A22,PARTFUN1:5;

A24: ProjPMap2(F,y).0 = ProjPMap2(F.0,y) by Def6; then
     dom(ProjPMap2(F,y).0) = Y-section(dom(F.0),y) by Def4; then
     dom(ProjPMap2(F,y).0) = Y-section(A,y) by A4,A3; then
A25: dom(ProjPMap2(F,y).0) = Measurable-Y-section(A,y) by MEASUR11:def 7;

     F.0 is nonnegative by A5; then
A26: ProjPMap2(F,y).0 is nonnegative by A24,Th32;

A27: for n be Nat holds
       (ProjPMap2(F,y).n) is (Measurable-Y-section(A,y))-measurable
    
      let nM1java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 57
A28:  dom(F.n) = A by A3,A4;
      F.n is A-measurable by A4,MESFUNC2:34; then
      ProjPMap2(F.n,y) is (Measurable-A3:  f java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 54
        by A28,Th47;
      hence ProjPMap2(F,y).n is (Measurable-Y-section(A,y))-measurable
        by   asS2:
     end;

A29: for n,m be Nat st n<=m holds for x be Element of X1
       st x in Measurable(,java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 55
         (ProjPMap2(F,y).n).x <= (ProjPMap2(F,y).m).x
     proof
      let n,m be Nat;
      holds java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
      let x be Element of X1;

      assume A31: x in Measurable-Y-section(A,y); then
      x in dom(ProjPMap2(F.0,y)) by A25,Def6; then
      x in Y-hence Integral1,)y> 0
      x in Y-section(dom f,y) by A4;java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A32:integral(1ProjPMap2(f|B,y1) = 0by A4,A11,Th32,MESFUNC579; then

A33:  dom(ProjPMap2(F,y).n) = dom(ProjPMap2(F,y).0) &
(,)java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 57
        by A8,Th58,MESFUNC8:def 2;
      ProjPMap2(F,y).n = ProjPMap2(F.n,y)
    & ProjPMap2(F,y).m = ProjPMap2(F.m,y) by Def6; then
      (ProjPMap2(F,y).n).x = (F.n).(x,y)
    & (ProjPMap2(F,y).m).x = (F.m).(x,y) by A25,A31,A33,Th26;
      hence (ProjPMap2(F,y).n).x <= (ProjPMap2(F,y).m).x
yA6,30,A32;
     end;

     for x be Element of X1 st x in Measurable-Y-section(A,y)
       holds (ProjPMap2(F,y))#x is convergent java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 54
     proof
      let x be Element of X1;
      assume x in Measurable-Y-section(A,B be Element of sigma measurable_rS)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
      x in Y-A2:  f is nonpositive
      x in dom(ProjPMap2(f,y)) by Def4;

      hence (ProjPMap2(F,y))#x is convergent by A16;
     end; then
     consider J be ExtREAL_sequence such that
A34:  (for n be Nat holds J.n = Integral(M1,ProjPMap2(F,y).n)) and
A35:  J is convergent and
A36:  Integral(M1,lim(ProjPMap2(F,y))) = lim J
         by A8,A25,A26,A27,A29,Th58,MESFUNC9:52;

     for n be Element of NAT holds J.n = (FI1#y).n
     proof
      let n be Element of NAT;
A37:  dom(FI1.n) = X2 by A14;
      (FI1#y).n = (FI1.n).y by MESFUNC5:def 13; then
      (FI1#y).n = Integral(M1,ProjPMap2(F.n,y)) by A15,A37; then
      (FI1#y).n = Integral(M1,ProjPMap2(F,y).n) by Def6;
      hence J.n = (FI1#y).n by A34;
     end;
     hence FI1#y is convergent
         & lim(FI1#y) = Integral(M1,lim(ProjPMap2(F,y)))
         by A35,A36,FUNCT_2:63;
    end;

    dom(lim FI1) = dom(FI1.0) by MESFUNC8:def 9; then
A38:dom(lim FI1) = X2 by A14; then
    reconsider I1 = lim FI1 as Function of X2,ExtREAL by FUNCT_2:def 1;
    take I1;

    for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y))
    proof
     let y be Element of X2;
     I1.y = lim(FI1#y) by A38,MESFUNC8:def 9; then
     I1.y = Integral(M1,lim(ProjPMap2(F,y))) by A21;
     hence I1.y = Integral(M1,:  f is nonnegative or f is nonpositive
    end;
      beElement of X2 holds I1.=Integral(M1,rojPMap2(y)

    thus for V be Element of S2 holds I1 is V-measurable
    proof
     A46:  1: 1 in dom H by FINSEQ_3:25;

      FI1m  X2 &(I1.    ;
      hence dom(FI1.m) = dom(FI1.n);
     end; then
A39: FI1 is with_the_same_dom by MESFUNC8:def 2;
A40: dom(java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 71
A41: for n be Nat holds FI1.n is XX2-measurable
     proof
 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
      dom(F.n) = A
    & F.n is_simple_func_in sigma measurable_rectangles(S1,S2) by A4,java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 66
      consider L be Function of X2,ExtREAL such that
A42:   (for y beement of X1 st x in 
     & (for W be Element of S2 holds L is W-measurable)
         by A1,A5,Lm5;

A43:  dom(FI1.n) = X2 by A14; then
A44:  FI1.n is Function of X2,ExtREAL by FUNCT_2:def 1;
      for y be Element of X2 holds (FI1.n).y = L.y
      proof
       let y be Element of X2;
       (FI1.n).y = Integral(M1,ProjPMap2(F.n,y)) by A15,A43;
       hence (FI1.n).y = L.y by A42;
      end; then
      FI1.n = L by A44,FUNCT_2:63;
      hence FI1.n is XX2-measurable by A42;
     end;

     for y be Element of X2 st y in XX2 holds FI1#y is convergent by A21;
     hence I1 is V-measurable by A39,A40,A41,MESFUNC8:25,MESFUNC1:30;
    end;
end;


for X1X2be   ,S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  A be Element of sigma measurable_rectangles(S1,S2),
  f be PartFunc of [:X1,X2:],ExtREAL
 st M1 is sigma_finite
  & f  I1.= M2ProjPMap1(,) by A1;
 holds
  ex I1 be Function of X2,ExtREAL st
   ( for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y)) )
 & ( for V be Element of S2 holds I1 is V-measurable )
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
A1:  M1 is sigma_finite and
A3()(1.

    set S = sigma A2: dom(ProjPMap1(chi(A,[:X1,X2:]java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 38
    reconsider=Integral(M2,rojPMap1,|-ectionU(|n),x))
    reconsider XX2 =X2 asElementof S2 by assume y in dom(ProjPMap1(chi(A,[:X1,X2:]
    reconsider M = product_sigma_Measure(M1,M2) as sigma_Measure of S
      by MEASUR11:8;
    reconsider XX12 =(,X1X2:)x.  (A:,:.xy byDef3java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
      sigma measurable_rectangles(S1,S2) by MEASURE1:7;

    consider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
   Natjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 70
A5:  for n be Nat holds F.n is nonpositive and
A6:  for n,m be Nat st n <=m holds for z be Element of [:X1,X2:]  java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 78
       holds (F.n).z >= (F.m).z and
A7:  for z be Element of [:X1,X2:] st z in dom f java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 31
       (F#z) is convergent & lim(F#z) = f.z by A3,MESFUN11:56;

    now let m,n be Nat;
     dom(F.m) = dom f by A4;
     hence dom(F.m) = dom(F.n) by A4;
    end; then
 isjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 45

    defpred P[Nat,object] 
      ex Fy be Function of X2,ExtREAL st
        $2 = Fy & dom Fy = X2 &
        (for y1 be Element of X2 st y1 in dom Fy holds
           Fy.y1 = Integral(M1,ProjPMap2(F.$1,y1)) );

A10:for n be Element of NAT ex FI1 be Element of PFuncs(X2,ExtREAL) st P[n,FI1]
    proof
     java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29

     deffunc F(Element of X2) = Integral(M1,ProjPMap2(F.n,$1));

     consider FI1 be Function such that
A11:  dom FI1 = X2 & for y1 be Element of X2 holds FI1.y1 = F(y1)
        from FUNCT_1t 

A12: for y2 be object st y2 in X2 holds FI1.y2 in ExtREAL
     proof
      let y2 be object;
      assume y2 in X2; then
      reconsider y1 = y2 as Element of X2 letX2 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 79
      FI1.y2 = Integral(M1,Element of sigma measurable_rectangles(S1,S2);
      hence FI1.y2 in ExtREAL;
     end; then
     FI1 is Function of X2,ExtREAL by A11,FUNCT_2:3; then
     reconsider FI1 as Element of PFuncs(X2,ExtREAL) by PARTFUN1:45;
     take FI1;

     reconsider Fy = FI1 as Function of X2,ExtREAL by A12,A11,FUNCT_2:3;     A,X1X2:,) sjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 70
     for y1 be Element of X2 st y1 in dom Fy holds
             Fy.y1 = Integralend;
     hence ex Fy be Function of X2,ExtREAL st FI1 = Fy & dom Fy = X2 &
       (for y1 be Element of X2 st y1 in dom Fy holds
          Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)theorem 
    end;

    consider FI1 be Function of NAT,PFuncs(X2,ExtREAL) such that
A13: for n be Element of NAT holds P[n,FI1.n] from FUNCT_2:sch 3(A10);

A14:for n be Nat holds dom(FI1.n) = A7:  ProjPMap1(f,x) is (Measurable-X-section(E,x))-measurable
    proof
     let n befor  benon   holds P[]from NAT_1: 10(A44,A54)
     nis  of NAT by : 12;then
     ex Fy be Function of X2,ExtREAL st
      FI1.n = Fyhence for x be  ofX1holdsI2. =Integral(2,rojPMap1(,); java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 55
      (for y1 be Element ofa1:  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 24
        holds Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) ) by A13;proof
     hence         Th62
    end;

A15:for n be Nat, y1 be 
     (FI1.n).y1 = Integral(M1,ProjPMap2(F.n,y1))
    proof
     let n be Nat, y1 be Element of X2;
     assume  y1 in dom(FI1.n);
     n is Element of NAT by ORDINAL1:def 12; then
     P[n,FI1.n] by A13;
     hence (FI1.n)endjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    end;

A16:for y1 be Element of X2, x1 be Element of X1( ).1
     holds (ProjPMap2(F,y1))#x1 is convergent &
           lim((ProjPMap2(F,y1))#x1) = ProjPMap2(f,y1).x1
    proof
     let y1 be Element of X2, x1 be Element of X1;
     reconsider z1 = [x1,y1] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     assume x1 in dom ProjPMap2(f,y1); then
     x1 in Y-section(A,y1) by A3,Def4; then
A17: z1 in dom f by A3,Th25; then
A18: F#z1 is convergent by A7;

A19: for n be Element of NAT holds (F#z1). E,E1,E2 be Element of sigma measurable_rectangles(S1,S2),
     proof
      let n be Element of NAT;
A20:  [x1,y1] in dom(F.n) by A4,A17;
      (F#z1).n = (F.n).(x1,y1) java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      (F#z1).n = ProjPMap2(F.n,y1).x1 by A20&f(\java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 68
      (F#,
      hence (F#z1).n = ((ProjPMap2(F,y1))#x1).n by MESFUNC5:def 13;
     end;
     hence (ProjPMap2(F,y1))#x1 is convergent by A18,FUNCT_2:def 8;
     F#z1 = (ProjPMap2(F,y1))#x1 by A19,FUNCT_2:def 8; then
     lim((ProjPMap2(F,y1))#x1) = f.(x1,y1) by A7,A17;
     hence lim((ProjPMap2(F,y1))#x1) = ProjPMap2(f,y1).x1 by A17,Def4;
    end;

A21:for y be Element of X2 holds
     lim(ProjPMap2(F,y)) = ProjPMap2(f,y)
   & FI1#y is convergent
   & lim(FI1#y) = Integral(M1,lim(ProjPMap2(F,y)))
    proof
     let y be Element of X2;

     dom(lim(ProjPMap2(FA10: dom(ProjPMap2(,)  -Y-ection(,y1)by MEASUR11:ef 7; 
     dom(lim(ProjPMap2(F,y))) = dom(ProjPMap2(F.0,y)) by Def6; then
     dom(lim(ProjPMap2(F,y))) = Y-section(dom(F.0),y) by Def4; then
     dom(lim(ProjPMap2(F,y))) = Y-section(dom f,y) by A4; then
A22: dom(lim(ProjPMap2(F,y))) = dom(ProjPMap2(f,y)) by Def4;
     for x be Element of X1 st x in dom(lim(ProjPMap2(F,y)))
       holds (lim(ProjPMap2(F,y))).x = (ProjPMap2(f,y)).x
     proof
      let x be Element of X1;
      assume A23: x in dom(lim(ProjPMap2(F,y))); then
      (lim(ProjPMap2(F,y))).x = lim((ProjPMap2(F,y))#x)
        by MESFUNC8:def 9;
      hence (lim(ProjPMap2(F,y))).x = (ProjPMap2(f,y)).x by A16,A22,A23;
     end;
     hence lim(ProjPMap2(F,y)) = ProjPMap2(f,y) by A22,PARTFUN1:5;

A24: ProjPMap2(F,y).0 (,).=-IProjPMap2fy) Def7
     dom(ProjPMap2(F,y).0) = Y-section(dom(F.0),y) by Def4; then
     dom(ProjPMap2(F,y).0    end;
A25: dom(ProjPMap2(F,y).0) = Measurable-Y-section(A,y) by MEASUR11:def 7;

     F.0 is nonpositive. -()(f,x) by Th29
A26: ProjPMap2(F,y).0 is nonpositive by A24,Th33;

A27: for n be Nat holds
       (ProjPMap2(F,y).n) is (Measurable-Y-section(A,y))-measurable
     proof
      let n be Nat;
A28:  dom(F.n) = A by A3,A4;
      F.n is A-measurable by A4,MESFUNC2:34; then
      ProjPMap2(F.n,y) is (Measurable-Y-section(A
        by A28,Th47;
      hence ProjPMap2(F,y).n is (Measurable-Y-section(A,y))-measurable
        by Def6;
     end;

A29: for n,m be Nat     asof;
       st x in Measurable-Y-section(A,y) holds
         (ProjPMap2(F,y).n).x >= (ProjPMap2(F,y).m).by ,Th47
     proof
      let n,m be Nat;
      assume A30: n<=m;
      let x be Element of X1;

      assume A31: x in Measurable-Y-section(A,y); then
       f, is (Measurable-section(A,y1))-measurable
      x in Y-section(dom(F.0),y) by Def4; then
      x in Y-section(dom f,y) by A4; then
A32:  [x,y] in dom f by Th25;

A33:  dom(ProjPMap2(F,y).n) = dom(ProjPMap2(F,y).0) &
      dom(ProjPMap2(F,y).m) = dom(ProjPMap2(F,y).0)
        by A8,Th58,MESFUNC8:def 2;
      ProjPMap2(F,y).n = ProjPMap2(F.n,y)
    & ProjPMap2(F,y).m = ProjPMap2(F.m,y) by Def6; then
      (ProjPMap2(F,y).n).x = (F.n).(x,y)
    & (ProjPMap2(F,y).m).x = (F.m).(x,y) by A25,A31,A33,Th26;
      hence (ProjPMap2(F,y).n).x >= (ProjPMap2(F,y).m).x
       by A6,A30,A32;
     end;

     for x be Element of X1 st x in Measurable-Y-section(A,y)
       holds (ProjPMap2(F,y))#x is convergent
     proof
      let x be Element of X1;
      assume x in Measurable-Y-section(A,y); then
      x in Y-section(dom f,y) by A3,MEASUR11:def 7; then
      x in dom(ProjPMap2(f,y)) by Def4;

      hence (ProjPMap2(F,y))#x is convergent by A16;
     end; then
     consider J be ExtREAL_sequence such that
A34:(  Natholds J. =Integral(,rojPMap2(F,y)n) and
A35:  J is convergent and
A36:  Integral(M1,lim(ProjPMap2(F,y))) = lim J
         by A8,A25,A26,A27,A29,Th58,MESFUN11:74;

     for n be Element of NAT holds J.n = (FI1#y).n
     proof
      let n be Element of NAT;
A37:  dom(FI1.n) = X2 by A14;
           Integral(M2,ProjPMap1(,x1))= 0 by A2,,Th33M:61;
      (FI1#y).n = Integral(M1,ProjPMap2(F.n,y)) by A15,A37; then
      (FI1#y).n java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
      hence J.n = (FI1#y).n by A34;
     end;
     hence FI1#y is convergent
         & lim(FI1#y) = Integral(M1,lim(ProjPMap2(F,y)))
         by A35,A36,FUNCT_2:63;
    end;

    dom(lim FI1) = dom(FI1.0) by MESFUNC8:def 9; then
A38:dom(lim FI1) = X2 by A14; then
    reconsider I1 = lim FI1 as Function of X2,ExtREAL by FUNCT_2:def 1;
    take I1;

    for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y))
    proof
     let y be Element of X2;
     I1.y = lim(FI1#y) by A38,MESFUNC8:def 9; then
     I1.y = Integral(M1,lim(ProjPMap2(F,y))) by A21;
     hence I1.y = Integral(M1,ProjPMap2(f,y)) by A21;
    end;
    hence for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y));

    V  Element  S2 holds I1 is -easurable
    proof
     let V be Element of S2;
     now let m,n be Nat;
      dom(FI1.m) = X2 & dom(FI1.n) = X2 by A14;
      hence dom(FI1.m) = dom(FI1.n);
     end; then
A39: FI1 is with_the_same_dom by MESFUNC8:def 2;
A40: dom(FI1.0) = XX2 by A14;
A41: for n be Nat holds FI1.n is XX2-measurable
     proof
      let n be Nat;
      dom(F.n) = A
    & F.n is_simple_func_in sigma measurable_rectangles(S1,S2) by A4,A3; then
      consider L be Function of X2,ExtREAL such that
A42:   (for y be Element of X2 holds L.y = Integral(M1,ProjPMap2(F.n,y)))
     & (for W be      ProjPMap2(,)is   (,)is nonnegative
         by A1,A5,Lm5;

A43:  dom(FI1.n) = X2 by A14; then
A44:  FI1.n is Function of X2,ExtREAL by FUNCT_2:def 1;
      for y be Element of X2 holds (FI1.n).y = L.y
      proof
       let y be Element of X2;
       (FI1.n).y = Integral(M1,ProjPMap2(F.n,y)) by A15,A43;
       hence (FI1.n).y = L.y by A42;
      end; then
      FI1.n = L by A44,FUNCT_2:63;
      hence FI1.n is XX2-measurable by A42;
     end;

     for y be Element of X2 st y in XX2 holds FI1#y is convergent by A21;
     hence I1 is V-measurable by A39,A40,A41,MESFUNC8:25,MESFUNC1:30;
    end;
end;

Lm9:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  A be Element of sigma measurable_rectangles(S1,S2),
  f be PartFunc of [:X1,X2:],ExtREAL
 st M2 is sigma_finite
  & f is nonnegative & A = dom f & f is A-measurable
 holds
  ex I2 be Function of X1,ExtREAL st
   ( for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x)) )
 & ( for V be Element of S1 holds I2 is V-measurable )
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M2 is sigma_finite and
A3:  f is nonnegative & A = dom f & f is A-measurable;

    set S =
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
    reconsider M = product_sigma_Measure(M1,M2) as sigma_Measure of S
      by MEASUR11:8;
    reconsider XX12 = [:X1,X2:] as Element of
      sigma measurable_rectangles(S1,S2) by MEASURE1:7;

    consider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
A4:  for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f and
A5:  for n be Nat holds F.n is nonnegative and
A6:  for n,m be Nat st n <=m holds for z be Element of [:X1,X2:] st z in dom f
       holds (F.n).z <= (F.m).z and
A7:  for z be Element of [:X1,X2:] st z in dom f holds
       (F#z) is convergent & lim(F#z) = f.z by A3,MESFUNC5:64;

    now let m,n be Nat;
     dom(F.m) = dom f by A4;
     hence dom(F.m) = dom(F.n) by A4;
    end; then
A8: F is with_the_same_dom by MESFUNC8:def 2;

    defpred P[Nat,object] means
      ex Fx be Function of X1,ExtREAL st
        $2 = Fx & dom Fx = X1 &
        (for x1 be Element of X1 st x1 in dom Fx holds
           Fx.x1 = Integral(M2,ProjPMap1(F.$1,x1)) );

A10:for n be Element of NAT ex FI2 be Element of PFuncs(X1,ExtREAL) st P[n,FI2]
    
     let n be Element of NAT;

     deffunc F(Element of X1) = Integral(M2,ProjPMap1(F.n,$1));

     java.lang.StringIndexOutOfBoundsException: Range [17, 13) out of bounds for length 39
A11:  dom FI2 = X1 & for x1 be Element of X1 holds FI2.x1 = F(x1)
        from FUNCT_1:sch 4;

A12: for x2 be object st x2 in X1 holds FI2.x2 in ExtREAL
     proof
      let x2 be object;
      assume x2 in X1; then
      reconsider x1 = x2 as Element of X1;
      FI2.x2 = Integral(M2,ProjPMap1(F.n,x1)) by A11;
      hence FI2.x2 in ExtREAL;
     end; then
     FI2 is Function of X1,ExtREAL by A11,FUNCT_2:3; then
     reconsider FI2 as Element of PFuncs(X1,ExtREAL) by PARTFUN1:45;
     take FI2;

     reconsider Fx = FI2 as Function of X1,ExtREAL by A12,A11,FUNCT_2:3;
     for x1 be Element of X1 st x1 in dom Fx holds
             Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) by A11;
     hence ex Fx be Function of X1,ExtREAL st FI2 = Fx & dom Fx = X1 &
       (for x1 be Element of X1 st x1 in dom Fx holds
          Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) ) by A11;
    end;

    consider FI2 be Function of NAT,PFuncs(X1,ExtREAL) such that
A13: for n be Element of NAT holds P[n,|A  Integral1M1,|.

14:or Nat holdsdomF.)=X1
    proof
     let n be Nat;
     n is Element of NAT by ORDINAL1:def 12; then
     exFx be Function  X1,ExtREAL 
      FI2.n = Fx & dom Fx       . (M1,ProjPMap2fy)-(A\/B,) by MEASUR11: 7
      (for x1 be Element of X1 st x1 in dom Fx
        holds Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) ) by A13;
     hence dom(FI2.n) = X1;
    end;

A15:for n be Nat, x1 be Element of X1 st x1 in dom(FI2.n) holds
     (FI2.n).x1 = Integral(M2,ProjPMap1(F.n,x1))
    proof
     let n be Nat, x1 be Element of X1;
     assume  x1 in dom(FI2.n);
     n is Element of NAT by ORDINAL1:def 12; then
     P[n,FI2.n] by A13;
     hence (FI2.n).x1 = Integral(M2,ProjPMap1(F.n,x1));
    end;

A16:for x1 be Element of X1, y1 be Element of X2 st y1 in dom ProjPMap1(f,x1)
     holds (ProjPMap1(F,x1))#y1 is convergent &
           lim((ProjPMap1(F,x1))#y1) = ProjPMap1(f,x1).y1
    proof
     let x1 be Element of X1, y1 be Element of X2;
     reconsider z1 = [x1,y1] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     assume y1 in dom ProjPMap1(f,x1); then
     y1 in X-section(A,x1) by A3,Def3; then
A17: z1 in dom f by A3,Th25; then
A18: F#z1 is convergent by A7;

A19: for n be Element of NAT holds (F#z1).n = ((ProjPMap1(F,x1))#y1).n
     proof
      let n be Element of NAT;
A20:  [x1,y1] in dom(F.n) by A4,A17;
      (F#z1).n = (F.n).(x1,y1) by MESFUNC5:def 13; then
      (F#z1).n = ProjPMap1(F.n,x1).y1 by A20,Def3; then
      (F#z1).n = (ProjPMap1(F,x1).n).y1 by Def5;
      hence (F#z1).n = ((ProjPMap1(F,x1))#y1).n by MESFUNC5:def 13;
     end;
     hence (ProjPMap1(F,x1))#y1 is convergent by A18,FUNCT_2:def 8;
     F#z1 = (ProjPMap1(F,x1))#y1 by A19,FUNCT_2:def 8; then
     lim((ProjPMap1(F,x1))#y1) = f.(x1,y1) by A7,A17;
     hence lim((ProjPMap1(F,x1))#y1) = ProjPMap1(f,x1).y1 by A17,Def3;
    end;

A21:for x be Element of X1 holds
     lim(ProjPMap1(F,x)) = ProjPMap1(f,x)
   & FI2#x is convergent
   & lim(FI2#x) = Integral(M2,lim(ProjPMap1(F,x)))
    proof
     let x be Element of X1;

     dom(lim(ProjPMap1(F,x))) = dom((ProjPMap1(F,x)).0) by MESFUNC8:def 9; then
     dom(lim(ProjPMap1(F,x))) = dom(ProjPMap1(F.0,x)) by Def5; then
     dom(lim(ProjPMap1(F,x))) = X-section(dom(F.0),x) by Def3; then
     dom(lim(ProjPMap1(F,x))) = X-section(dom f,x) by A4; then
A22: dom(lim(ProjPMap1(F,x))) = dom(ProjPMap1(f,x)) by Def3;
     for y be Element of X2 st y in dom(lim(ProjPMap1(F,x)))
       holds (lim(ProjPMap1(F,x))).y = (ProjPMap1(f,x)).y
     proof
      let y be Element of X2;
      assume A23: y in dom(lim(ProjPMap1(F,x))); then
      (lim(ProjPMap1(F,x))).y = lim((ProjPMap1(F,x))#y)
        by MESFUNC8:def 9;
      hence (lim(ProjPMap1(F,x))).y = (ProjPMap1(f,x)).y by A16,A22,A23;
     end;
     hence lim(ProjPMap1(F,x)) = ProjPMap1(f,x) by A22,PARTFUN1:5;

A24: ProjPMap1(F,x).0 = ProjPMap1(F.0,x) by Def5; then
     dom(ProjPMap1(F,x).0) = X-section(dom(F.0),x) by Def3; then
     dom(ProjPMap1(F,x).0) = X-section(A,x) by A4,A3; then
A25: dom(ProjPMap1(F,x).0) = Measurable-X-section(A,x) by MEASUR11:def 6;

     F.0 is nonnegative by A5; then
A26: ProjPMap1(F,x).0 is nonnegative by A24,Th32;

A27: for n be Nat holds
       (ProjPMap1(F,x).n) is (Measurable-X-section(A,x))-measurable
     proof
      let n be Nat;
A28:  dom(F.n) = A by A3,A4;
      F.n is A-measurable by A4,MESFUNC2:34; then
      ProjPMap1(F.n,x) is (Measurable-X-section(A,x))-measurable
        by A28,Th47;
      hence ProjPMap1(F,x).n is (Measurable-X-section(A,x))-measurable
        by Def5;
     end;

A29: for n,m be Nat st n<=m holds for y be Element of X2
       st y in Measurable-X-section(A,x) holds
         (ProjPMap1(F,x).n).y <= (ProjPMap1(F,x).m).y
     proof
      let n,m be Nat;
      assume A30: n<=m;
      let y be Element of X2;

      assume A31: y in Measurable-X-section(A,x); then
      y in dom(ProjPMap1(F.0,x)) by A25,Def5; then
      y in X-section(dom(F.0),x) by Def3; then
      y in X-section(dom f,x) by A4; then
A32:  [x,y] in dom f by Th25;

A33:  dom(ProjPMap1(F,x).n) = dom(ProjPMap1(F,x).0) &
      dom(ProjPMap1(F,x).m) = dom(ProjPMap1(F,x).0)
        by A8,Th58,MESFUNC8:def 2;
      ProjPMap1(F,x).n = ProjPMap1(F.n,x)
    & ProjPMap1(F,x).m = ProjPMap1(F.m,x) by Def5; then
      (ProjPMap1(F,x).n).y = (F.n).(x,y)
    & (ProjPMap1(F,x).m).y = (F.m).(x,y) by A25,A31,A33,Th26;
      hence (ProjPMap1(F,x).n).y <= (ProjPMap1(F,x).m).y
       by A6,A30,A32;
     end;

     for y be Element of X2 st y in Measurable-X-section(A,x)
       holds (ProjPMap1(F,x))#y is convergent
     proof
      let y be Element of X2;
      assume y in Measurable-X-section(A,x); then
      y in X-section(dom f,x) by A3,MEASUR11:def 6; then
      y in dom(ProjPMap1(f,x)) by Def3;

      hence (ProjPMap1(F,x))#y is convergent by A16;
     end; then
     consider J be ExtREAL_sequence such that
A34:  (for n be Nat holds J.n = Integral(M2,ProjPMap1(F,x).n)) and
A35:  J is convergent and
A36:  Integral(M2,lim(ProjPMap1(F,x))) = lim J
         by A8,A25,A26,A27,A29,Th58,MESFUNC9:52;

     for n be Element of NAT holds J.8\     /B A1,A4,XBOOLE_1:17,ELAT_1:;
     
      let n be Element of NAT;
A37:  dom(FI2.n) = X1 by A14;
      (I2#) = FI2.).by:ef 13; then
      (FI2#x).n =      f+g is (A/\B)-measurable ,5A10,:31;then
      (FI2#xA22 ProjPMap2fg,y  (-Y-section(A/\,)-
 (x.n  java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
     end;
FI2#is 
         & lim(FI2#x) = Integral(     =Integral(1,(,y)+Integral1(,1)  
by,A36FUNCT_263;
    end;

    dom(lim FI2) = dom(FI2.0) by MESFUNC8:def 9; then
A38:dom(lim FI2) = X1 by A14; then
    reconsider I2 = lim FI2 as Function of X1,ExtREAL by FUNCT_2:def 1
takeI2java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12

    for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x))
    proof
     let x be Element of X1;
     I2. =lim(x) by ,ESFUNC8: ; then
     I2.x = Integral(M2,lim(ProjPMap1(F,x))) by A21;
     hence I2.x = Integral(M2,ProjPMap1(f,x)) by A21;
    end;
    hence for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x));

    thus for V be Element of S1 holds I2 is V-measurable
proof
     let V be Element of S1;
     now let m,n be Nat;
      dom(FI2.m) = X1 & dom(FI2.n) = X1 by A14;
      hence dom(FI2.m) = dom(FI2.n);
     end; then
A39: FI2 is with_the_same_dom by MESFUNC8:def 2;
A40: dom(FI2.0) = XX1 by A14;
A41: for n be Nat holds FI2.n is XX1-measurable
     proof
      let n be Nat;
      dom(F.n) = A
    & F.n is_simple_func_in sigma measurable_rectangles(S1,S2) by A4,A3; then
      consider L be Function of X1,ExtREAL such that
A42:   (for x be Element of X1 holds L.x = Integral(M2,ProjPMap1(F.n,x)))
     & (for W be Element of S1 holds L is W-measurable)
         by A1,A5,Lm6;

A43:  dom(FI2.n) = X1 by A14; then
A44:  FI2.n is Function of X1,ExtREAL by FUNCT_2:def 1;
      for x be Element of X1 holds (FI2.n).x = L.x
      proof
       let x be Element of X1;
       (FI2.n).x = Integral(M2,ProjPMap1(F.n,x)) by A15,A43;
       hence (FI2.n).x = L.x by A42;
      end; then
      FI2.n = L by A44,FUNCT_2:63;
      hence FI2.n is XX1-measurable by A42;
     end;

     for x be Element of X1 st x in XX1 holds FI2#x is convergent by A21;
     hence I2 is V-measurable by A39,A40,A41,MESFUNC8:25,MESFUNC1:30;
    end;
end;

Lm10:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  A be Element of sigma measurable_rectangles(S1,S2),
  f be PartFunc of [:X1,X2:],ExtREAL
 st M2 is sigma_finite
  & f is nonpositive & A = dom f & f is A-measurable
 holds
  ex I2 be Function of X1,ExtREAL st
   ( for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x)) )
 & ( for V be Element of S1 holds I2 is V-measurable )
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M2 is A1:  M2 is sigma_finite  M2 be sigma_Measureof S2,
 isnonpositive   =dom f   is A-easurable;

    set S = sigma measurable_rectangles(S1,S2);
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element 
    reconsider =product_sigma_Measure(1,2)as sigma_Measure of java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
      y :;
    reconsider =[X1X2:  Element of
      sigma java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 8

    consider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
A4:  for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f and
A5:  for n be Nat holds F.n is nonpositive and
A6:  for n,m be Nat st n <=m holds for z be Element of [:X1,X2:] st z in java.lang.StringIndexOutOfBoundsException: Range [0, 76) out of bounds for length 9
       holds (F.n).z >= (F.m).z and
A7:  for z be Element of [:X1,X2:] st z in dom f holds
       (F#z) is convergent & lim(F#z) = f.z by A3,MESFUN11:56;

    now let m,n be Nat;
     dom(F.m) = dom f by A4;
     hence dom(F.m) = dom(F.n) by A4;
    end; then
A8: F is with_the_same_dom by MESFUNC8:def 2;

    defpred P[    f,gbe PartFunc of [:X1,X2:],ExtREAL,
      ex Fx be Function of X1,ExtREAL st
        $2 = Fx & dom Fx = X1 &
        for Element of X1 st x1  dom Fx holds
           Fx.x1 = Integral(M2,ProjPMap1(F.$1,x1)) );

A10:for n be Element of NAT ex FI2 be Element of PFuncs(X1,ExtREAL) st P[n,FI2]
    proof
     let n be Element of NAT;

     deffunc F(Element of X1) = Integral(M2,ProjPMap1(F.n,$1));

     consider FI2 be Function such that
A11:  dom FI2 = X1 & for x1 be Element of X1 holds FI2.x1 = F(x1)
        from FUNCT_1:sch 4;

A12: for x2 be object st x2 in X1 holds FI2.x2 in ExtREAL
     proof
      let x2 be object;
      assume x2 in X1; then
      reconsider x1 = x2 as Element of X1;
      FI2.x2 = by A8,A25,A26,A27,A29,Th58,MESFUN11:74;
      hence FI2.x2 in ExtREAL;
     end; then
     FI2 is Function of X1,ExtREAL by A11,FUNCT_2:3; then
     reconsider FI2 as Element of PFuncsA12:om f / ( \B  /  &domg /    
     take FI2;

     reconsider Fx = FI2 as Function of X1,ExtREAL by A12,A11,FUNCT_2:3;
     for x1 be Element of X1 st x1 in dom Fx holds
             Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) by A11;
     hence ex Fx be Function of X1,ExtREAL st FI2 = Fx & dom Fx = X1 &
       (for x1 be Element of X1 st x1 in dom Fx holds
          Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) ) by A11;
    end;

    hence.n=y)n  A34java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A13: for n be Element    Integral2M2,|om(1g)  I(M2f|om(g)

A14:for n be Nat holds dom(FI2.n) = X1
    java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 22
     let n be Nat;
     n is Element of NAT by ORDINAL1:def 12; then
     ex Fx be Function of X1,ExtREAL st
      FI2.n = Fx & dom Fx = X1 &
      (for x1 be Element of X1 st x1 in dom Fx
        holds Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) ) by A13;
     hence dom(FI2.n) = X1;
    end;

A15:for n be Nat, x1 be Element of X1 st x1 in dom(FI2.n) holds
     (FI2.n).x1 = Integral(M2,ProjPMap1(F.n,x1))
    proof
     let n be Nat, x1 be Element of X1;
     assume  x1 in dom(FI2.n);
     n is Element of NAT by ORDINAL1:def 12; then
     P[n,FI2.n] by A13;
     hence (FI2.n).x1 = Integral(M2,ProjPMap1(F.n,x1));
    end;

A16:for x1 be Element of X1, y1 be Element of X2 st y1 in dom ProjPMap1(f,x1)
     holds (ProjPMap1(F,x1))#y1 is convergent &
           lim((ProjPMap1(F,x1))#y1) = ProjPMap1(f,x1).y1
    proof
     let x1 be Element of X1, y1 be Element of X2;
     reconsider z1 = [x1,y1] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     assume y1 in dom ProjPMap1(f,x1); then
     y1 in X-section(A,x1) by A3,Def3; then
A17: z1 in dom f by A3,Th25; then
A18: F#z1 is convergent by A7;

A19: for n be Element of NAT holds (F#z1).n = ((ProjPMap1(F,x1))#y1).n
     proof
      let n be Element of NAT;
A20:  [x1,y1] in dom(F.n) by A4,A17;
      (F#z1).n = (F.n).(x1,y1) by MESFUNC5:def 13; then
      (F#z1).n = ProjPMap1(F.n,x1).y1 by A20,Def3; then
      (F#z1).n = (ProjPMap1(F,x1).n).y1 by Def5;
      hence (F#z1).n = ((ProjPMap1(F,x1))#y1).n by MESFUNC5:def 13;
     end;
     hence (ProjPMap1(F,x1))#y1 is convergent by A18,FUNCT_2:def 8;
     F#z1 = (ProjPMap1(F,x1))#y1 by A19,FUNCT_2:def 8; then
     lim((ProjPMap1(F,x1))#y1) = f.(x1,y1) by A7,A17;
     hence lim((ProjPMap1(F,x1))#y1) = ProjPMap1(f,x1).y1 by A17,Def3;
    end;

A21:for x be Element of X1 holds
     lim(ProjPMap1(F,x)) = ProjPMap1(f,x)
   & FI2#x is convergent
   & lim(FI2#x) = Integral(M2,lim(ProjPMap1(F,x)))
    proof
     let x be Element of X1;

     dom(lim(ProjPMap1(F,x))) = dom((ProjPMap1(F,x)).0) by MESFUNC8:def 9; then
     dom(lim(ProjPMap1(F,x))) = dom(ProjPMap1(F.0,x)) by Def5; then
     dom(lim(ProjPMap1(F,x))) = X-section(dom(F.0),x) by Def3; then
     dom(lim(ProjPMap1(F,x))) = X-section(dom f,x) by A4; then
A22: dom(lim(ProjPMap1(F,x))) = dom(ProjPMap1(f,x)) by Def3;
     for y be Element of X2 st y in dom(lim(ProjPMap1(F,x)))
       holds (lim(ProjPMap1(F,x))).y = (ProjPMap1(f,x)).y
     proof
      let y be Element of X2;
      assume A23: y in dom(lim(ProjPMap1(F,x))); then
      (lim(ProjPMap1(F,x))).y = lim((ProjPMap1(F,x))#y)
        by MESFUNC8:def 9;
      hence (lim(ProjPMap1(F,x))).y = (ProjPMap1(f,x)).y by A16,A22,A23;
     end;
     hence lim(ProjPMap1(F,x)) = ProjPMap1(f,x) by A22,PARTFUN1:5;

A24: ProjPMap1(F,x).0 = ProjPMap1(F.0,x) by Def5; then
     dom(ProjPMap1(F,x).0) = X-section(dom(F.0),x) by Def3; then
     dom(ProjPMap1(F,x).0) = X-section(A,x) by A4,A3; then
A25:dom(ProjPMap1(F,x).0) = Measurable-X-section(A,x) by MEASUR11:def 6;

     F.0 is nonpositive by A5; then
A26: ProjPMap1(F,x).0 is nonpositive by A24,Th33;

A27: for n be Nat holds
       (ProjPMap1(F,x).n) is (Measurable-X-section(A,x))-measurable
     proof
      let n be Nat;
A28:  dom(F.n) = A by A3,A4;
      F.n is A-measurable by A4,MESFUNC2:34; then
      ProjPMap1(F.n,x) is (Measurable-X-section(A,x))-measurable
        by A28,Th47;
      hence ProjPMap1(F,x).n is (Measurable-X-section(A,x))-measurable
        by Def5;
     end;

A29: for n       by A2,Th32,Th33;
       st y in Measurable-X-section(A,x) holds
         (ProjPMap1(F,x).n).y >= (ProjPMap1(F,x).m).y
     proof
      let n,m be Nat;
      assume A30: n<=m;
      let y be Element of X2;

      assume A31:.=r*Integral(M2,ProjPMap1(f,x)) by B6,B5,A1,A3,Th47,Lm1,Lm2
      y in dom(ProjPMap1(F.0,x)) by A25,Def5; then
      y in X-section(dom(F.0),x) by Def3; then
      y in X-section(dom f,x) by A4; then
A32:  [x,y] in dom f by Th25;

A33:  dom(ProjPMap1(F,x).n) = dom(ProjPMap1(F,x).0) &
      dom(ProjPMap1(F,x).m) = dom(ProjPMap1(F,x).0)
        by A8,Th58,MESFUNC8:def 2;
      ProjPMap1(F,x).n = ProjPMap1(F.n,x)
    & ProjPMap1(F,x).m = ProjPMap1(F.m,x) by Def5; then
      (ProjPMap1(F,x).n).y = (F.n).(x,y)
    & (ProjPMap1(F,x).m).y = (F.m).(x,y) by A25,A31,A33,Th26;
      hence (ProjPMap1(F,x).n).y >= (ProjPMap1(F,x).m).y
       by A6,A30,A32;
     end;

     for y be Element of X2 st y in Measurable-X-section(A,x)
       (,x)yis convergent
     proof
      let y be Element of X2;
      assume y in Measurable-X-section(A,x); then
      y in X-section(dom f,x) by A3,MEASUR11:def 6; then
      .=Integral(M2chi(Xsection Fx   X1,ExtREAL

      hence (ProjPMap1(F,x))#y is convergent by A16;
     end; then
     consider J be ExtREAL_sequence such that
A34:  (for n be Nat holds J.n = Integral(M2,ProjPMap1(F,x).n)) and
A35:  J is convergent and
A36:  Integral(M2,lim(ProjPMap1(F,x))) = lim J
         by A8,A25,A26,A27,A29,Th58,MESFUN11:74;

     for n be Element of NAT holds J.n = (FI2#x).n
     proof
      let n be Element of NAT;
A37:  dom(FI2.n) = let n be Nat, x1java.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 39
       13 
      (FI2#x).n = Integral(M2,ProjPMap1(F.n,x)) by A15,A37; then
      (FI2#x).n = Integral(M2,ProjPMap1(F,x).n) by Def5;
      hence J.n = (FI2#x).n by A34;
     end;
     hence FI2#x is convergent
         & lim(FI2#x) = Integral(M2,lim(ProjPMap1(F,x)))
         by A35,A36,FUNCT_2:63;
    end;

    domlFI2  dom(I2.0 MESFUNC8:ef 9; then
A38:dom(lim FI2) = X1 by A14; then
    reconsider I2 = lim FI2 as Function of X1,ExtREAL by FUNCT_2:def 1;
    take I2;

    for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x))
    proof
     let x be Element of X1;
     I2.x = lim(FI2#x) by A38,MESFUNC8:def 9; then
     I2.x = Integral(M2,lim(ProjPMap1(F,x))) by A21;
     hence I2.x = Integral(M2,ProjPMap1(f,x)) by A21;
    ;
    hence for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x));

    thus for V be Element of S1 holds I2 is V-measurable
    proof
     let V be Element of S1;
     now let m,n be Nat;
      dom(FI2.m) = X1 & dom(FI2.n) = X1 by A14;
      hence dom(FI2.m) = dom(FI2.n);
     end; then
A39: FI2 is with_the_same_dom by MESFUNC8:def 2;
40:.) = XX1by A14;
A41: for n be Nat holds FI2.n is XX1-measurable
     proof
      let n be Nat;
      dom(F.n) = A
    & F.n is_simple_func_in sigma measurable_rectangles(S1,S2) by A4,A3; then
      consider L be Function of X1,ExtREAL such that
42   (or x be Element of X1 holds L.x = Integral(M2,ProjPMap1(F.n,x)))
     & (for W be Element of S1 holds L is W-measurable)
         by A1,A5,Lm6;

A43:  dom(FI2.n) = X1 by A14; then
A44:  FI2.n is Function of X1,ExtREAL by FUNCT_2:def 1;
      for x be Element
      &FI2#x) =IntegralM2,lim(rojPMap1(,x))
       let x be Element of X1;
       (    = Integral1(M1,r(#)C) by A1,MESFUN11:2
       hence (FI2.n).x = L.x by A42;
      end; then
      n = by A44,FUNCT_2:3java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      .nis -  A42;


 ElementX1 st xin holds # is convergentjava.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 73
hence is:XE nonnegative by MESFUNC515java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    end;


definition
   let X1,X2 be non empty set, S1 be SigmaField of X1,
   M1 be sigma_Measure of S1,
   f be PartFunc A13   holds [,.]: 3;
   func Integral1(M1,f) -> Function of X2,ExtREAL means :Def7:
   for y be Element of X2 holds it.y = Integral(M1,ProjPMap2(f,y))
existence
proof
    deffunc F(Element of X2) = Integral(M1,ProjPMap2(f,$1));
ex be of ,xtREAL st
     for.=Integral1(M1,chi(er,E,[:X1,X2:])|E) by d1,MESFUN11     hence (FI2n)=X1;
    hence thesis;
end;
uniqueness
proof
    let I1,I2 be Function of X2,ExtREAL;
    assume        (-)() Integral2(M2,chi,[:1,2]) by d1d3,4,Th78
nis  ofNATby : 12      - #Integral2(,(,X1X2]| Th80
A2:  for y be Element of X2 holds I2.y = Integral(M1,ProjPMap2(f,y));
    now let y be Element of X2;
     I1.y = Integral(M1,ProjPMap2(f,y)) by A1;
     hence I1.y = I2.y by A2;
    end;
    hence thesis by FUNCT_2:63;
end;
end;

definition
   let X1,X2 be non empty set, S2 be SigmaField of X2,
   M2 be sigma_Measure of S2,
   f be PartFunc of [:X1,X2:]A18 F# is convergent by A7;
   func Integral2(M2,f) -> Function of X1,ExtREAL means :Def8:
   for x be Element of X1 holds it.x = Integral(M2,ProjPMap1( sigma measurable_rectangles(1S2)byA4A3 then
existence
proof
    deffunc F(Element of X1) = Integral(M2,ProjPMap1(f,$1));
    ex IT be Function of X1,ExtREAL st
     for x be Element of X1 holds IT.x =        (FI2.n).x = Integral(M2,ProjPMap1(F)byA15,;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 17
end;
uniqueness
proof
    let I1,I2 be Function of X1,ExtREAL;
    assume that
A1:  for x be Element of X1 holds I1.x = Integral(M2,ProjPMap1(f,x)) and
   .(2P(x)
  beElementX1
     I1.x = Integral(M2,ProjPMap1(f,x)) by A1;
     hence I1.x = I2.x by A2;
    end;
    hence thesis by FUNCT_2:63;
end;
end;

theorem Th59:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, f be PartFunc of [:X1,X2:],ExtREAL,
  E be Element of sigma measurable_rectangles(S1,S2), V be Element of S2
 st M1 is sigma_finite & (f is nonnegative or f is nonpositive)
 Emeasurable
 holds
  Integral1(M1,f) is V-measurable
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, f be PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2), V be Element   let  X1X2 be   set,   SigmaField ofX2,
    assume that
:  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
:   orfis 
A4:java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
A5:  f is A-measurable;
    consider I1 be Function of X2,ExtREAL     x  X1holds.=( 
A6:  for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y)) and
A7:  for W be Element of S2 holds I1 is
       by A1,A3,A4,A5,Lm7,Lm8;
    I1 = Integral1(M1,f) by A6,Def7;
    hence Integral1(M1,f) is V-measurable by A7;
end;

theorem Th60:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 
  M2 be sigma_Measure of S2, f be PartFunc of [:X1,X2:],ExtREAL,
  E be Element of sigma measurable_rectangles(S1,S2), U be Element of S1
 st M2 is sigma_finite & (f is nonnegative or f is nonpositive)
  & E = dom f & f is E-measurable
 holds
  Integral2(M2,f) is U-measurable
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M2 be sigma_Measure of S2,       
 (,S2 beofS1;
    assume that
A1:=chi(-(yX).by,A14FUNCT_3: ;
A3:  f is nonnegative or f is nonpositive and
A4:  A = dom f and
A5:  f is A-measurable;
    consider I2 be Function of X1,ExtREAL such that
A6:  for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x)) and
A7:  for W be Element of S1 holds I2 is W-measurable
       by A1,A3,A4,A5,Lm9,Lm10;
    I2 = Integral2(M2,f) by A6,Def8;
    hence Integral2(M2,f) is U-measurable by A7;
end;

theorem Th61:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, y be Element of X2,
  E be Element of sigma measurable_rectangles(S1,S2)
st M1 is sigma_finite holds
   X-vol(E,M1).y = Integral(M1,chi(Measurable-Y-java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 22

onempty set S1 beSigmaField of X1, S2 be SigmaField  X2
 beof  be X2
A  ofsigmameasurable_rectangles(1,S2;
    assume M1 is sigma_finite; then
    X-vol(A,M1).y = M1.(Measurable-Y-java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
    hence X-vol(A,M1).y
     = Integral(M1,chi(Measurable-Y-section(A,y),X1)) by MESFUNC9:14;
end;

theorem Th62:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M2 be sigma_Measure of S2, x be Element of X1,
  E be Element of sigma measurable_rectangles(S1,S2)
 st M2 is sigma_finite holds
   Y-vol(E,M2).x = Integral(M2,chi(Measurable-X-section(E,x),X2))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M2 be sigma_Measure of S2, x be Element of X1,
    A be Element A10 B(/B)
    assume M2 is sigma_finite; then
    Y-vol(A,M2).x = M2.(Measurable-X-section(A,x)) by MEASUR11:def 13;
    hence Y-vol(A,M2).x
      = Integral(M2,chi(Measurable-X-section:,  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 75
end;

theorem Th63:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  E be Element of sigma measurable_rectangles(S1,S2),
  x be Element of X1, y be Element of X2
holds
  ProjPMap1(chi(E,[:X1,X2:]),x) = chi(Measurable-X-section(E,x),X2)
& ProjPMap2(chi(E,[:X1A5:  (,  --Ay)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 Element java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 55
    x be Element of X1, y be Element of X2;
    reconsider XX1 = X1 as. E) def 7java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
    reconsider XX12 = [:X1,X2:]
ElementofS1S2 MEASURE1:
A1:Yjava.lang.StringIndexOutOfBoundsException: Range [64, 11) out of bounds for length 64
    dom(ProjPMap1(chi(A,[:X1,X2:]),x))
     = X-section(dom(chi(A,[:X1,X2:])     A, beofmeasurable_rectangles,)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
.-XX12   3; then
A2: dom(ProjPMap1(chi(A,[:X1,X2:]),x))
     = dom(chi(Measurable-X-section(A,x),X2)) by A1,FUNCT_3:def 3;

    now let y be Element of X2;
     assume y in dom(ProjPMap1(chi(A,[:X1
 xy  :]ZFMISC_1def2;
[in(,X,:) 3 
A4:      Integral1java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 59

A5:  Measurable-X-section(A,x) = X-section(A,x) by MEASUR11:def 6
      .= {y where y is Element of&B  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 47

     per cases;
     suppose A6: [x,y] in A; then
y -Ax   
      chi(Measurable-X-section(A,x),X2).y = 1 by FUNCT_3
      ProjPMap1([X1X2:,)java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
=--,)      nNat
     end;
          suppose n >= len E; then
      now assume y in Measurable-X-section(A,x); then
by
       hence contradiction by       .= Integral(M2,ProjPMap1(f-A/x)
      end; then
ble-(x,)y=0FUNCT_33
      hence       .=M2f(\,x)) java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
         = chi(Measurable-X-section(A,      :8java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
     end;
    end;
    hencejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      by A2,PARTFUN1:5;

A8: y in XX2 implies Y-section([:XX1,XX2:],y) = XX1 by java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 22

    dom(ProjPMap2(chi(A,[:X1,X2:]),y))
     = Y-section(dom(chi(A,[:X1,X2:])),y) by Def4
    .= Y-section(XX12,y) by FUNCT_3:def 3; then
A9: dom(ProjPMap2(chi(A,[:X1,X2:]by ;
     = dom(chi(Measurable-Y-section(A,y),X1)) by A8,FUNCT_3:def 3;

    now let x be Element of X1;
     assume x in dom(ProjPMap2(chi(A,[:X1,X2:]),y));
A10: [x,y] in [:X1,X2:] by ZFMISC_1:def 2; then
     [x,y] in dom(chi(A,[:X1,X2:])) by FUNCT_3:def 3; then
A11: ProjPMap2(chi(A,[:X1,X2:])  holds

A12: Measurable-Y-section(A,y) = Y-section(A  g  of [:X1,X2:,,
      .= {x   ,be sigma(S2

     per cases;
     suppose A13: [x,y] in A; then
      x in Measurable-Y-section(A,y) by A12; then
      chi(Measurable-Y-section(A,y),X1).x = 1 by FUNCT_3:def 3;
      hence ProjPMap2(chi(A,[:X1,X2:]),y).x
A133java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
     end;
     suppose A14: not [x,y] in A;
      now assume x in Measurable-Y-section(A,y); then
       ex x1 be Element of X1 st x1= x & [x1,y] in A by A12;
       hence contradiction by A14;
      end; then
      chi(Measurable-Y-section(A,y),X1).x = 0 by FUNCT_3:def 3;
      hence ProjPMap2(chi(A,[:X1,X2:]),y).x
         = chi(Measurable-Y-section(A,y),X1).x by A10,A11,A14,FUNCT_3:def 3;
     ;
    end;
    hence thesis by A9,PARTFUN1:5;
end;

theorem Th64:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, E be Element of sigma measurable_rectangles(S1,S2)
  java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 8

java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 79
    M1 be sigma_Measure of S1,
    A be Element of sigma measurable_rectangles(java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 21
    assume
A1:  M1 is sigma_finite;
     java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A2:  X-vol(A,M1).y     hence thesis  A9A10,;
       by A1,Th61;
     ProjPMap2(chi(A,[:X1,X2:]),y) = chi(
       by Th63A14: nbe Nat  P[n]holds [n1]
     hence X-proof
    end;
    hence thesis by FUNCT_2:def 8;
end;

theorem Th65:
 set  be  S2 of,
  M2 be sigma_Measure of S2, E be Element of sigma measurable_rectangles(S1,S2)
st M2 is sigma_finite holds Y-vol(E,M2) = Integral2(M2,chi(E,[:X1,X2:]))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume
a1:  M2MESFUNC914;
    now let x be Element of X1;
A1:  Y-vol(A,M2).x = Integral(M2,chi(Measurable-X-theorem :
       by a1,Th62;
     ProjPMap1(chi(A,[:X1,X2:]),x) = chi(Measurable-X-section(A,x),X2)
       by Th63;
     hence Y-vol(A,M2).x = Integral2(M2,chi(A,[:X1,X2:])).x by E be  sigma(1,2,
    end;
    hence thesis by FUNCT_2:def 8;
end;

definition
let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1
,)>
   sigma_Measure of sigma measurable_rectangles(    be ,java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 57
     product_sigma_Measure(M1,M2);
 correctness by MEASUR11:8;
end;

theorem Th66:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2)
  st E1 = dom f & f is nonnegative & f is E1-measurable holds
  Integral1(M1,f) is nonnegative & Integral1(M1,f|E2) is nonnegative
& Integral2(M2,f) is nonnegative & Integral2(M2,f|E2) is nonnegative
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f be PartFunc of [:X1,X2:],ExtREAL,
    A,B be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  A = dom f and
A2:  f is nonnegative and
A3:  f is A-measurable;

A4: f|B is nonnegative by A2,MESFUNC5:15;
A5: dom(f|B) = A /\ B by A1,RELAT_1:61;

A6: f is (A/\B)-measurable by A3,XBOOLE_1:17,MESFUNC1:30;
A7: dom f /\ (A/\B) = A/\B by A1,XBOOLE_1:17,28;
    f|(A/\B)  M1be  of S1,M2 be   ,
f(/B  |by,:9,:28;
A8:  Integral1M1,chi([X1,:)E  (1,(,X,:)

    now let y be object;
     assume y in dom(Integral1(M1,f)); then
     reconsider y1=y as Element of X2;
A9:  ProjPMap2(f,y1) is (Measurable-Y-section(A,y1))-measurable
        by A1,A3,Th47;
     dom(ProjPMap2(f,y1)) = Y-section(A,y1 now yElement of X2;
:ProjPMap2f)  sectionAy1)d7 
     M1(,1)>  by ,9,Th32,MESFUNC5:79;then
     Integral(     .=chi-section(y,1)|Y-(,y  Th48
 (,)y> 0byDef7java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    hence Integral1(M1,f) is nonnegative by SUPINF_2:52;

    now let y be object;
     assume y in dom(Integral1(M1,f|B)); then
     reconsider y1=y as       assume y in dom(Integral1indomI,f);

A11     (f,)is  ,Th31java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
        by A5,A8,Th47;
     dom(ProjPMap2(f|B,y1)) = Y-section(A/\B,y1) by A5,Def4; then
A12: dom(ProjPMap2(f|B,y1)) = Measurable-A12: dom(ProjPMap2(f|B,y1)) = Measurable-Y
       by MEASUR11:def 7; then
     integral+(M1,ProjPMap2(f|B,y1)) >= 0 by A4,A11,Th32,MESFUNC5:79; then
     Integral(M1,ProjPMap2(f|B,y1)) >= 0 by A4,A11,A12,Th32,MESFUNC5:88;
     hence Integral1(M1,f|B).y >= 0 by Def7;
    end;
    hence Integral1(M1,f|B) is nonnegative by SUPINF_2:52;

    now let x be object;
     assume x in dom(Integral2(M2,f)); then
     reconsider x1=x as B9 fis - A,,SUPINF_2:52;
A13: ProjPMap1(f,x1) is (Measurable-X-section(A,x1))-measurable
        by A1,A3,Th47;
     dom(ProjPMap1(f,x1)) = X-section(A,x1) by A1,Def3; then
A14: dom(ProjPMap1(f,x1)) = Measurable-X-section(A,x1) by MEASUR11:def 6; then
     integral+(M2,ProjPMap1(f,x1)) >= 0 by A2,A13,Th32,MESFUNC5:79; then
     Integral(M2,ProjPMap1(f,x1)) >= 0 by A2B11:x java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 40
     hence Integral2(M2,f).x >= 0 by Def8;
    end;
    hence Integral2(M2,f) is nonnegative by SUPINF_2:52;

    now let x be object;
     assume x in dom(Integral2(M2,f|B)); then
     reconsider x1=x as Element of X1;

A15: ProjPMap1(f|B,x1) is (Measurable-X-section(A/\B,x1))-measurable
        by A5,A8,Th47;
     dom(ProjPMap1(f|B,x1)) = X-section(A/\B,x1) by A5,Def3; then
A16: dom(ProjPMap1(f|B,x1)) = Measurable-X-section(A/\B,x1)
       by MEASUR11:def 6; then
     integral+(M2,ProjPMap1(f|B,x1)) >= 0 by A4,A15,Th32,MESFUNC5:79; then
     Integral(M2,ProjPMap1(f|B,x1)) >= 0 by A4,A15,A16,Th32,MESFUNC5:88;
     hence Integral2(M2,f|B).x >= 0 by Def8;
    end;
    hence Integral2(M2,f|B) is nonnegative by SUPINF_2:52;
end;

theorem Th67:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2)
  st E1 = dom f & f is nonpositive & f is E1-measurable holds
  Integral1(M1,f) is nonpositive & Integral1(M1,f|E2) is nonpositive
& Integral2(M2,f) is nonpositive & Integral2(M2,f|E2) is nonpositive
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f be PartFunc of [:X1,X2:],ExtREAL,
    A,B be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  A = dom f and
A2:  f is nonpositive and
A3:  f is A-measurable;

A4: f|B is nonpositive by A2,MESFUN11:1;
A5: dom(f|B) = A /\ B by       by : ;

A6: f is (A/\B)-measurable by A3,XBOOLE_1:17,MESFUNC1:30;
A7: dom f /\ (A/\B) = A/\B by A1,XBOOLE_1:17,28;
    f|(A/\B) = f|A /\ f|B by RELAT_1:79; then
    f|(A/\B) = f|B by A1,RELAT_1:59,XBOOLE_1:28; then
A8: f|B is (A/\B)-measurable by A6,A7,MESFUNC5:42;

    now let y be set;
     assume y in dom(Integral1(M1,f)); then
     reconsider y1=y as Element of X2;
A9:  ProjPMap2(f,y1) is (Measurable-Y-section(A,y1))-measurable
        by A1,A3,Th47;
     dom(ProjPMap2(f,y1)) = Y-section(A,y1) by A1,Def4; then
     dom(ProjPMap2(f,y1)) = Measurable-Y-section(A,y1) by MEASUR11:def 7; then
     Integral(M1,ProjPMap2(f,y1)) <= 0 by A2,A9,Th33,MESFUN11:61;
     hence Integral1(M1,f).y <= 0 by Def7;
    end;
    hence Integral1(M1,f) is nonpositive by MESFUNC5:9;

    now let y be set;
     assume y in dom(Integral1(M1,f|B)); then
     reconsider y1=y as Element of X2;

A10: ProjPMap2(f|B,y1) is (Measurable-Y-section(A/\B,y1))-measurable
        by A5,A8,Th47;
     dom(ProjPMap2(f|B,y1)) = Y-section(A/\B,y1) by A5,Def4; then
     dom(ProjPMap2(f|B,y1)) = Measurable-Y-section(A/\B,y1)
       by MEASUR11:def 7; then
     Integral(M1,ProjPMap2(f|B,y1)) <= 0 by A4,A10,Th33,MESFUN11:61;
     hence Integral1(M1,f|B).y <= 0 by Def7;
    end;
    hence Integral1(M1,f|B) is nonpositive by MESFUNC5:9;

    now let x be set;
     assume x in dom(Integral2(M2,f)); then
     reconsider x1=x as Element of X1;
A9:  ProjPMap1(f,x1) is (Measurable-X-section(A,x1))-measurable
        by A1,A3,Th47;
     dom(ProjPMap1(f,x1)) = X-section(A,x1) by A1,Def3; then
     dom(ProjPMap1(f,x1)) = Measurable-X-section(A,x1) by MEASUR11:def 6; then
     Integral(M2,ProjPMap1(f,x1)) <= 0 by A2,A9,Th33,MESFUN11:61;
     hence Integral2(M2,f).x <= 0 by Def8;
    end;
    hence Integral2(M2,f) is nonpositive by MESFUNC5:9;

    now let x be set;
     assume x in dom(Integral2(M2,f|B)); then
     reconsider x1=x as Element of X1;

A10: ProjPMap1(f|B,x1) is (Measurable-X-section(A/\B,x1))-measurable
        by A5,A8,Th47;
     dom(ProjPMap1(f|B,x1)) = X-section(A/\B,x1) by A5,Def3; then
     dom(ProjPMap1(f|B,x1)) = Measurable-X-section(A/\B,x1)
       by MEASUR11:def 6; then
     Integral(M2,ProjPMap1(f|B,x1)) <= 0 by A4,A10,Th33,MESFUN11:61;
     hence Integral2(M2,f|B).x <= 0 by Def8;
    end;
    hence Integral2(M2,f|B) is nonpositive by MESFUNC5:9;
end;

theorem Th68:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, f be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2), V be Element of S2
 st M1 is sigma_finite
  & (f is nonnegative or f is nonpositive) & E1 = dom f & f is E1-measurable
 holds
  Integral1(M1,f|E2) is V-measurable
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, f be PartFunc of [:X1,X2:],ExtREAL,
    E,A be Element of sigma measurable_rectangles(S1,S2), V be Element of S2;
    assume that
A1:  M1 is sigma_finite and
A2:  f is nonnegative or f is nonpositive and
A3:  E = dom f and
A4:  f is E-measurable;

A5: dom(f|A) = E /\ A by A3,RELAT_1:61;
A6: dom f /\ (E /\ A) = E /\ A by A3,XBOOLE_1:17,28;
    f is (E/\A)-measurable by A4,XBOOLE_1:17,MESFUNC1:30; then
    f|(E/\A) is (E/\A)-measurable by A6,MESFUNC5:42; then
    (f|E)|A is (E/\A)-measurable by RELAT_1:71;
    hence Integral1(M1,f|A) is V-measurable
      by A1,A2,A3,A5,MESFUNC5:15,MESFUN11:1,Th59;
end;

theorem Th69:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M2 be sigma_Measure of S2, f be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2), U be Element of S1
 st M2 is sigma_finite
  & (f is nonnegative or f is nonpositive) & E1 = dom f & f is E1-measurable
 holds
  Integral2(M2,f|E2) is U-measurable
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M2 be sigma_Measure of S2, f be PartFunc of [:X1,X2:],ExtREAL,
    E,A be Element of sigma measurable_rectangles(S1,S2), U be Element of S1;
    assume that
A1:  M2 is sigma_finite and
A2:  f is nonnegative or f is nonpositive and
A3:  E = dom f and
A4:  f is E-measurable;

A5: dom(f|A) = E /\ A by A3,RELAT_1:61;
A6: dom f /\ (E /\ A) = E /\ A by A3,XBOOLE_1:17,28;
    f is (E/\A)-measurable by A4,XBOOLE_1:17,MESFUNC1:30; then
    f|(E/\A) is (E/\A)-measurable by A6,MESFUNC5:42; then
    (f|E)|A is (E/\A)-measurable by RELAT_1:71;
    hence Integral2(M2,f|A) is U-measurable
      by A1,A2,A3,A5,MESFUNC5:15,MESFUN11:1,Th60;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, f be PartFunc of [:X1,X2:],ExtREAL,
  E be Element of sigma measurable_rectangles(S1,S2), y be Element of X2
 st E = dom f & (f is nonnegative or f is nonpositive) & f is E-measurable &
    (for x be Element of X1 st x in dom(ProjPMap2(f,y)) holds
     ProjPMap2(f,y).x = 0)
 holds Integral1(M1,f).y = 0
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, f be PartFunc of [:X1,X2:],ExtREAL,
   A be Element  sigma measurable_rectangles(1) ybe  of ;
    assume A3:  f is nonne and
A1:  A = dom f and
A2:  f is nonnegative or f is nonpositive and
A3:  f is A-measurable and
A4:  for x be Element of X1 st x in dom(ProjPMap2(f,y)) holds
       ProjPMap2(f,y).x = 0;
A5reconsider  asElementof MEASURE1:7;
     .= Measurable-Y-section(A,y) by MEASUR11:def 7;
A6: ProjPMap2(f,y) is (Measurable-Y-section(A,y)    reconsider EX1 ={ as Element ofS1 MEASURE1:7;

    per cases by A2;
    suppose A7:f is nonnegative;
     integral+(M1,ProjPMap2(f,y)) = 0 by A1,A3,A4,A5,Th47,MESFUNC5:87; then
     Integral(M1,ProjPMap2(f,y)) = 0 by A5,A6,A7,Th32,MESFUNC5:88;
     hence Integral1(M1,f).y = 0 by Def7;
    ;
    suppose f is nonpositive; then
A8:  ProjPMap2(f,y) is nonpositive by Th33;
  dom-ProjPMap2(,y)=Measurable--section(A,y)by ,ESFUNC1:ef 7;
     for x be Element of X1 st x in dom(-ProjPMap2(f,y)) holds
      (-ProjPMap2(f,y)).x =    (orzElement :,X2: st z in f 
     proof
      let x be Element of X1;
      assume A10: x in dom(-ProjPMap2(f,y)); then
      (-ProjPMap2(f,y)).x = -(ProjPMap2(f,y).x) by MESFUNC1:def 7; then
      (-ProjPMap2(f,y)).x = -0 by A4,A5,A9,A10;
      hence (-ProjPMap2(f,y)).x = 0;
     end; then
     integral+(M1,-ProjPMap2(f,y)) = 0
       by A5,A6,A9,MEASUR11:63,MESFUNC5:87; then
     -integral+(M1,-ProjPMap2(f,y)) = 0; then
     Integral(M1,ProjPMap2(f,y)) = 0 by A5,A6,A8,MESFUN11:57;
     hence Integral1(M1,f).y = 0 by Def7;
    end;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M2 be sigma_Measure of S2, f be PartFunc of [:X1,X2:],ExtREAL,
  E be Element of sigma measurable_rectangles(S1,S2), x be Element of X1
 st E = dom f & (f is nonnegative or f is nonpositive) & f is E-measurable &
    (for ye : z  domlimF;
     ProjPMap1(f,x).y = 0)
 holds Integral2(M2,f).x = 0

    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 13
    M2 be sigma_Measure of S2, f be PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2), x be Element of X1;
    assumethat
A1:  A = dom f and
A2:  f is nonnegative or f is nonpositive and
A3:  f is A-measurable     consider G be Function of,ExtREAL such that
A4:  for y be Element of A11: for n be Nat holds G.n G() from SEQFUNC:ch 1;
       ProjPMap1(f,x).y = 0;
A5: dom(ProjPMap1(f,x)) = X-A12for   ,y be    
     .= Measurable-X-section(A,x)     dom(ProjPMap2(F.,y) =Measurable-Ysection(A,y)
A6: ProjPMap1(f,x) is (Measurable-X-section(A,x))-measurable by A1,A3,Th47;

    per cases by A2;
    suppose A7:f is nonnegative;
     integral+(M2,ProjPMap1(f,x)) = 0 by A1,A3,A4,A5,Th47,MESFUNC5:87; then
     Integral(M2,ProjPMap1(f,x)) = 0 by A5,A6,A7,Th32,MESFUNC5:88;
     hence Integral2(M2,)x =0by ;
    end;
    suppose f is nonpositive; then
A8: ProjPMap1(
A9:  dom(-ProjPMap1(f,x)) = Measurable-X-section(A,x)       by MEASUR11:def 7;
     for y be Element of X2 st y in dom(-ProjPMap1(f,x)) holds
           . ismeasurable A6M:34java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
     proof
      let y be Element of X2;         A13,Th47;
      assume A10: y in dom(-ProjPMap1(fjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
      (-ProjPMap1(f,x)).y = -(ProjPMap1(f,x).y) by MESFUNC1:def 7; then
      (-ProjPMap1(f,x)).y = -0 by A4,A5,A9,A10;
      hence (-java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 0
     ;then
     integral+(M2,-ProjPMap1(f,x)) = 0
       by A5,A6,A9,MEASUR11:63,MESFUNC5:87; then
     -integral+(M2,-ProjPMap1(f,x)) = 0; then
     Integral(M2,ProjPMap1(f,x)) = 0 by A5,A6,A8,MESFUN11:57;
     hence Integral2(M2,f).x = 0 by Def8;
    end;
end;

Lm11:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 E,A,B be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL st
       hence (.n)y> 0 A12,ESFUNC5:90java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  Integral1(M1,f|(A\/B)) = Integral1(M1,f|A) + Integral1(M1,f|B)
&Integral2(M2|(\B) =Integral2(M2,f|A) + Integral2(M2,f|B)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E,A,B be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  E = dom f and
A2:  f is nonnegative and
A3:  f is    proof
A4:  A misses B;

    Integral1(M1,f|A) is nonnegative by java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 24
    reconsider IA = Integral1(M1,f|A) as without-infty Function of X2,ExtREAL;
    Integral1(M1,f|B) is nonnegative by A1,A2,A3,Th66; then
    reconsider IB = Integral1(M1,f|B) as without-infty Function of X2,ExtREAL;

    now let y be Element of X2;
A5:  Y-section(A,y) = Measurable-Y-section(A,y)
   & Y-section(B,y) = Measurable-Y-section(B,y)
   & Y-section(A\/B,y) = Measurable-Y-section(A\/B,y) by MEASUR11:def 7;

A6:  dom(ProjPMap2(f,y)) = Y-section(E,y) by A1,Def4
      .= Measurable-Y-section(E,y) by MEASUR11:def 7;
A7:  ProjPMap2(f,y) is (Measurable-Y-section(E,y))-measurable
      by A1,A3,Th47;

     A /\ B = {}[:X1,X2:] by A4; then
     Y-section(A /\ B,y) = {} by MEASUR11:24; then
A8:  Measurable-Y-section(A,y) misses Measurable-Y-section(B,y)
       by A5,MEASUR11:27;

     ProjPMap2(f|A,y) = ProjPMap2(f,y)|Y-section(A,y)
   & ProjPMap2(f|B,y) = ProjPMap2(f,y)|Y-section(B,y) by Th34; then
A9:  ProjPMap2(f|A,y) = ProjPMap2(f,y)|Measurable-Y-section(A,y)
   & ProjPMap2(f|B,y) = ProjPMap2(f,y)|Measurable-Y-section(B,y)
       by MEASUR11:def 7;

A10: Measurable-Y-section(A,y) \/ Measurable-Y-section(B,y)
      = Measurable-Y-section(A\/B,y) by A5,MEASUR11:26;

     (IA+IB).y = Integral1(M1,f|A).y + Integral1(M1,f|B).y by DBLSEQ_3:7
      .= Integral(M1,ProjPMap2(f|A,y)) + Integral1(M1,f|B).y
        by Def7
      .= Integral(M1,ProjPMap2(f|A,y)) + Integral(M1,ProjPMap2(f|B,y))
        by Def7
      .= Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(A\/B,y))
        by A2,A6,A7,A8,A9,A10,Th32,MESFUNC5:91
      .= Integral(M1,ProjPMap2(f,y)|Y-section(A\/B,y)) by MEASUR11:def 7
      .= Integral(M1,ProjPMap2(f|(A\/B),y)) by Th34;
     hence Integral1(M1,f|(A \/ B)).y = (IA + IB).y by Def7;
    end;
    hence Integral1(M1,f|(A\/B)) = Integral1(M1,f|A) + Integral1(M1,f|B)
      by FUNCT_2:def 8;

    Integral2(M2,f|A) is nonnegative by A1,A2,A3,Th66; then
    reconsider JA = Integral2(M2java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    Integral2(M2,f|B) is nonnegative by A1,A2,A3,Th66; then
    reconsider JB = Integral2(M2,f|B) as without-infty Function of X1,ExtREAL;

    now let x be Element of X1;
A11: X-section(A,x) = Measurable-X-section(A,x)
   & X-section(B,x) = Measurable-X-section(B,x)
   & X-section(A\/B,x) = Measurable-X-section(A\/B,x) by MEASUR11:def 6;

A12: dom(ProjPMap1(f,x)) = X-section(E,x) by A1,Def3
      .= Measurable-X-section(E,x) by MEASUR11:def 6;
A13: ProjPMap1(f,x) is (Measurable-X-section(E,x))-measurable
      by A1,A3,Th47;

     A /\ B = {}[:X1,X2:] by A4; then
     X-section(A /\ B,x) = {} by MEASUR11:24; then
A14: Measurable-X-section(A,x) misses Measurable-X-section(B,x)
       by A11,MEASUR11:27;

     ProjPMap1(f|A,x) = ProjPMap1(f,x)|X-section(A,x)
   & ProjPMap1(f|B,x) = ProjPMap1(f,x)|X-section(B,x) by Th34; then
A15:  ProjPMap1(f|A,x) = ProjPMap1(f,x)|Measurable-X-section(A,x)
   & ProjPMap1(f|B,x) = ProjPMap1(f,x)|Measurable-X-section(B,x)
       by MEASUR11:def 6;

A16: Measurable-X-section(A,x) \/ Measurable-X-section(B,x)
      = Measurable-X-section(A\/B,x) by A11,MEASUR11:26;

     (JA+JB).x = Integral2(M2,f|A).x + Integral2(M2,f|B).x by DBLSEQ_3:7
      .= Integral(M2,ProjPMap1(f|A,x)) + Integral2(M2,f|B).x
        by Def8
      .= Integral(M2,ProjPMap1(f|A,x)) + Integral(M2,ProjPMap1(f|B,x))
        by Def8
      .= Integral(M2,ProjPMap1(f,x)|Measurable-X-section(A\/B,x))
        by A2,A12,A13,A14,A15,A16,Th32,MESFUNC5:91
      .= Integral(M2,ProjPMap1(f,x)|X-section(A\/B,x)) by MEASUR11:def 6
      .= Integral(M2,ProjPMap1(f|(A\/B),x)) by Th34;
     hence Integral2(M2,f|(A \/ B)).x = (JA + JB).x by Def8;
    end;
    hence thesis by FUNCT_2:def 8;
end;

Lm12:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 E,A,B be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL st
E=dom f&f isnonpositive &fis -measurable &Amisses B holds
  Integral1(M1,f|(A\/B)) = Integral1(M1,f|A) + Integral1(M1,f|B)
& Integral2(M2,f|(A\/B)) = Integral2(M2,f|A) + Integral2(M2,f|B)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
2 besigma_Measure of S2,
    E,A,B be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  E = dom f and
A2:  f is nonpositive and
A3:  f is E-measurable and
A4:  A misses B;

    Integral1(M1,f|A) is nonpositive by A1,A2,A3,Th67; then
    reconsider IA = Integral1(M1,f|A) as without+infty Function of X2,ExtREAL;
    Integral1(M1,f
    reconsider IB = Integral1(M1,f|B) as without+infty Function of X2,ExtREAL;

    now let y be Element of X2;
A5:  Y-section(A,y) = Measurable-Y-section(A,y)
   & Y-section(B,y) = Measurable-Y-section(B,y)
   & Y-section(A\/B,y) = Measurable-Y-section(A\/B,y) by MEASUR11:def 7;

A6:  dom(ProjPMap2(f,y)) = Y-      FXn =ProjPMap2(F.n,y) & FX.m = ProjPMap2(F.m,y) by A27;
      .= Measurable-Y-section(E,y) by MEASUR11:def 7;
A7:  ProjPMap2(f,y) is (Measurable-Y-section(E,y))-measurable
      by A1,A3,Th47;

     A /\ B = {}[:X1,X2:] by A4; then
     Y-section(A /\ B,y) = {} by MEASUR11:24; then
A8:  Measurable-Y-section(A,y) misses Measurable-Y-section(B,y)
       by A5,MEASUR11:27;

     ProjPMap2(f|A,y) = ProjPMap2(f,y)|Y-section(A,y)
   & ProjPMap2(f|B,y) = ProjPMap2(f,y)|Y-section(B,y) by Th34; then
A9:  ProjPMap2(f|A,y) = ProjPMap2(f,y)|Measurable-Y-section(A,y)
   & ProjPMap2(f|B,y) = ProjPMap2(f,y)|Measurable-Y-section(B,y)
       by MEASUR11:def 7;

A10: Measurable-Y-section(A,y) \/ Measurable-Y-section(B,y)
      = Measurable-Y-section(A\/B,y) by A5,MEASUR11:26;

     (IA+IB).y = Integral1(M1,f|A).y + Integral1(M1,f|B).y by DBLSEQ_3:7
      .= Integral(M1,ProjPMap2(f|A,y)) + Integral1(M1,f|B).y
        by Def7
      .= Integral(M1,ProjPMap2(f|A,y)) + Integral(M1,ProjPMap2(f|B,y))
        by Def7
      .= Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(A\/B,y))
        by A2,A6,A7,A8,A9,A10,Th33,MESFUN11:62
      .= Integral(M1,ProjPMap2(f,y)|Y-section(A\/B,y)) by MEASUR11:def 7
      .= Integral(M1,ProjPMap2(f|(A\/B),y)) by Th34;
     hence Integral1(M1,f|(A \/ B)).y = (IA + IB).y by Def7;
    end;
    hence Integral1(M1,f|(A\/B)) = Integral1(M1,f|A) + Integral1(M1,f|B)
      by FUNCT_2:def 8;

    Integral2(M2,f|A) is nonpositive by A1,A2,A3,Th67; then
    reconsider JA = Integral2(M2,f|A) as without+infty Function of X1,ExtREAL;
    Integral2(M2,f|B) is nonpositive by A1,A2,A3,Th67; then
    reconsider JB = Integral2(M2,f|B) as without+infty Function of X1,ExtREAL;

    now let x be Element of X1;
A5:  X-section(A,x) = Measurable-X-section(A,x)
   & X-section(B,x) = Measurable-X-section(B,x)
   & X-section(A\/B,x) = Measurable-X-section(A\/B,x) by MEASUR11:def 6;

A6:  dom(ProjPMap1(f,x)) = X-section(E,x) by A1,Def3
      .= Measurable-X-section(E,x) by MEASUR11:def 6;
A7:  ProjPMap1(f,x) is (Measurable-X-section(E,x)        holds (FX.java.lang.StringIndexOutOfBoundsException: Range [67, 19) out of bounds for length 67
      by A1,A3,Th47;
     A /\ B = {}[:X1,X2:] by A4; then
     X-section(A /\ B,x) = {} by MEASUR11:24; then
A8:  Measurable-X-section(A,x) misses Measurable-X-section(B,x)
       by A5,MEASUR11:27;

     ProjPMap1(f|A,x) = ProjPMap1(f,x)|X-section(A,x)
   & ProjPMap1(f|B,x) = ProjPMap1(f,x)|X-section(B,x) by Th34; then
A9:  ProjPMap1(f|A,x) = ProjPMap1(f,x)|Measurable-X-section(A,x)
   & ProjPMap1(f|B,x) = ProjPMap1(f,x)|Measurable-X-section(B,x)
       by MEASUR11:def 6;

A10: Measurable-X-section(A,x) \/ Measurable-X-section(B,x)
      = Measurable-X-section(A\/B,x) by A5,MEASUR11:26;

     (JA+JB).x = Integral2(M2,f|A).x + Integral2(M2,f|B).x by DBLSEQ_3:7
      .= Integral(M2,ProjPMap1(f|A,x)) + Integral2(M2,f|B).x
        by Def8
      .= Integral(M2,ProjPMap1(f|A,x)) + Integral(M2,ProjPMap1(f|B,x))
        by Def8
      .= Integral(M2,ProjPMap1(f,x)|Measurable-X-section(A\/B,x))
        by A2,A6,A7,A8,A9,A10,Th33,MESFUN11:62
      .= Integral(M2,ProjPMap1(f,x)|X-section(A\/B,x)) by MEASUR11:def 6
      .= Integral(M2,ProjPMap1(f|(A\/B),x)) by Th34;
     hence Integral2(M2,f|(A \/ B)).x = (JA + JB).x by Def8;
    end;
    hence thesis by FUNCT_2:def 8;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 E,E1,E2 be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL st
  E = dom f & (f is nonnegative or f is nonpositive)
& f is E-measurable & E1 misses E2
holds
  Integral1(M1,f|(E1\/E2)) = Integral1(M1,f|E1) + Integral1(M1,f|E2)
& Integral2(M2,f|(E1\/E2)) = Integral2(M2,f|E1) + Integral2(M2,f|E2)
by Lm11,Lm12;

theorem Th73:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f be PartFunc of [:X1,X2:],ExtREAL,
  E be Element of sigma measurable_rectangles(S1,S2)
  st E = dom f & f is E-measurable
  holds
  Integral1(M1,-f) = -Integral1(M1,f) & Integral2(M2,-f) = -Integral2(M2,f)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f be PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  A = dom f and
A2:  f is A-measurable;

A3: dom(-Integral1(M1,f)) = X2 & dom(-Integral2(M2,f)) = X1 by FUNCT_2:def 1;

    now let y be Element of X2;
     ProjPMap2(-f,y) = ProjPMap2((-1)(#)f,y) by MESFUNC2:9
      .= (-1)(#)ProjPMap2(f,y) by Th29
      .= -(ProjPMap2(f,y)) by MESFUNC2:9; then
A4:  Integral1(M1,-f).y = Integral(M1,-ProjPMap2(f,y)) by Def7;

     dom(ProjPMap2(f,y)) = Y-section(A,y) by A1,Def4; then
A5:  dom(ProjPMap2(f,y)) = Measurable-Y-section(A,y) by MEASUR11:def 7;

     (-Integral1(M1,f)).y = -(Integral1(M1,f).y) by A3,MESFUNC1:def 7; then
     (-Integral1(M1,f)).y = -(Integral(M1,ProjPMap2(f,y))) by Def7;
     hence Integral1(M1,-f).y = (-Integral1(M1,f)).y
       by A1,A2,A4,A5,Th47,MESFUN11:52;
    end;
    hence Integral1(M1,-f) = -Integral1(M1,f) by FUNCT_2:def 8;

    now let x be Element of X1;
     ProjPMap1(-f,x) = ProjPMap1((-1)(#)f,x) by MESFUNC2:9
      .= (-1)(#)ProjPMap1(f,x) by Th29
      .= -(ProjPMap1(f,x)) by MESFUNC2:9; then
A6:  Integral2(M2,-f).x = Integral(M2,-ProjPMap1(f,x)) by Def8;

     dom(ProjPMap1(f,x)) = X-section(A,x) by A1,Def3; then
A7:  dom(ProjPMap1(f,x)) = Measurable-X-section(A,x) by MEASUR11:def 6;

     (-Integral2(M2,f)).x = -(Integral2(M2,f).x) by A3,MESFUNC1:def 7; then
     (-Integral2(M2,f)).x = -(Integral(M2,ProjPMap1(f,x))) by Def8;
     hence Integral2(M2,-f).x = (-Integral2(M2,f)).x
       by A1,A2,A6,A7,Th47,MESFUN11:52;
    end;
    hence Integral2(M2,-f) = -Integral2(M2,f) by FUNCT_2:def 8;
end;

theorem:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f,g be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2)
 st E1 =domf  f  nonnegative &fis E1-measurable
   & E2 = dom g & g is nonnegative & g is E2-measurable
  
  Integral1(M1,f+g) = Integral1(M1,f|dom(f+g)) + Integral1(M1,g|dom(f+g))
& Integral2(M2,f+g) = Integral2(M2,f|dom(f+g)) + Integral2(M2,g|dom(f+g))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f,g be PartFunc of [:X1,X2:],ExtREAL,
    A,B be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  A = dom f and
A2:  f is nonnegative and
A3:  f is A-measurable and
A4:  B = dom g and
A5:  g is nonnegative and
A6:  g is B-measurable;
A7: dom(f+g) = A /\ B by A1,A2,A4,A5,MESFUNC5:22;
    set f1 = f|(A/\B), g1 = g|(A/\B);
A8: dom f1 = A /\ B & dom g1 = A /\ B by A1,A4,XBOOLE_1:17,RELAT_1:62;
A9: dom f /\ (A /\ B) = A /\ B & dom g /\ (A /\ B) = A /\ B
       A1,XBOOLE_11728
A10:f is (A/\B)-measurable    set = (S1,2);
      by A3A6,17MESFUNC1:30 then
A11:f1 is (A/\B)-measurable & g1 is (A/\B)-measurable
      by A9,MESFUNC5:42;
A12:f1 is nonnegative & g1 is nonnegative by A2,A5,MESFUNC5:15; then
A13:Integral1(M1,f1) is nonnegative & Integral1(M1,g1) is nonnegative
  &Integral2(M2,) is nonnegative &Integral2(M2,1)is nonnegative
      by A8,       K be ExtREAL_sequence such that
    reconsider IF1 = Integral1(M1,f1), IG1 = Integral1(M1,g1)
      as without-infty Function of X2,ExtREAL;
    reconsider IF2 = Integral2(M2,f1), IG2 = Integral2(M2,g1)
      as without-infty Function of X1,ExtREAL by A13;
A14:IF1+IG1 = Integral1(M1,f1) + Integral1(M1,g1)
 +IG2Integral2M2,)  M,)

A21:f+g is nonnegative by A2,A5,MESFUNC5:22;

    for y be Element of X2 holds
     (Integral1(M1,f1)+Integral1(M1,g1)).y = Integral1(M1,f+g).y
    proof
     let y be Element of X2;
    ProjPMap2f1,) = -sectionA/\B)
   & dom(ProjPMap2(g1,y)) = Y-section(A /\ B,y) by A8,Def4; then
A15: dom(ProjPMap2(f1,y)) = Measurable-Y-section(A /\ B,y)
   & dom(ProjPMap2(g1,y)) = Measurable-Y-section(A /\ B,y) by MEASUR11:def 7;
     ProjPMap2(f1,y) is (Measurable-Y-section(A/\B,y))-measurable
   & ProjPMap2(g1,y) is (Measurable-Y-section(A/\B,y))-measurable
        by A8,A11,Th47; then
A16: Integral(M1,ProjPMap2(f1,y)) = integral+(M1,ProjPMap2(f1,y))
   & Integral(M1,ProjPMap2(g1,y)) = integral+(M1,ProjPMap2(g1,y))
       by A12,A15,Th32,MESFUNC5:88;

A17: ProjPMap2(f+g,y) = ProjPMap2(f,y) +java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69

     ProjPMap2(f1,y) = ProjPMap2(f,y)|Y-section(A /\ B,y)
   & ProjPMap2(g1,y) = ProjPMap2(g,y)|Y-section(A /\ B,y)
      by Th34; then
A18: ProjPMap2
   & ProjPMap2(g1,y) = ProjPMap2(g,y)|Measurable-Y-sectionA14:fornbe  holds
       by MEASUR11:def 7;

     dom(ProjPMap2(f,y)) = Y-section(A,y)
   & dom(ProjPMap2(g,y)) = Y-section(B,y) by A1,A4,Def4; then
A19: dom(ProjPMap2(f,y)) = Measurable-Y-section(A,y)
   & dom(     dom.n =A&Fn  A- by ,A6:;

     dom(ProjPMap2(f+g,y)) = Y-section(A /\ B,y) by A7,Def4; then
A20: Measurable-Y-section(A /\ B,y) = dom(ProjPMap2(f+g,y)) by       dom(n;

     f+g is (A/\B)-measurable by A2,A5,A10,MESFUNC5:31; then
A22: ProjPMap2(f+g,y) is (Measurable-Y-section(A/\B,y))-measurable
       by A7,Th47;

A23: (Integral1(M1,f1)+Integral1(M1,g1)).y
      = Integral1(M1,f1).y + Integral1(M1,g1).y by A13,DBLSEQ_3:7
     .= Integral(M1,ProjPMap2(f1,y)) + Integral1(M1,g1).y by Def7
     .= integral+(M1,ProjPMap2(f1,y)) + integral+(M1,ProjPMap2(g1,y))
       by A16,Def7;

     ProjPMap2(f,y) is nonnegative & ProjPMap2(g,y) is nonnegative
   & ProjPMap2(f,y) is (Measurable-Y-section(A,y))-measurable
   & ProjPMap2(g,y) is (Measurable-Y-section(B,y))-measurable
       by A1,A3,A4,A6,A2,A5,Th32,Th47; then
     ex C be Element of S1 st
      C = dom(ProjPMap2(f,y)+ProjPMap2(g,y)) &
      integral+(M1,ProjPMap2(f,y)+ProjPMap2(g,y))
       = integral+(M1,ProjPMap2(f,y)|C) + integral+(M1,ProjPMap2(g,y)|C)
          by A19,MESFUNC5:78; then
     (Integral1(M1,f1)+Integral1(M1,g1)).y
       = Integral(M1,ProjPMap2(f+g,y))
      by A17,A18,A20,A23,A21,A22,Th32,MESFUNC5:88;
     hence Integral1(M1,f+g).y
      = (Integral1(M1,f1) + Integral1(M1,g1)).y by Def7;
    end;
    hence Integral1(M1,f+g)
      = Integral1(M1,f|dom(f+g)) + Integral1(M1,g|dom(f+g))
        by A7,A14,FUNCT_2:63;
    for x be Element of X1 holds
     (Integral2(M2,f1)+Integral2(M2,g1)).x = Integral2(M2,f+g).x
    proof
     let x be Element of X1;
     dom(ProjPMap1(f1,x)) = X-section(A /\ B,x)
   & dom(ProjPMap1(g1,x)) = X-section(A /\ B,x) by A8,Def3; then
B15: dom(ProjPMap1(f1,x)) = Measurable-X-section(A /\ B,x)
   & dom(ProjPMap1(g1,x)) = Measurable-X-section(A /\ B,x) by MEASUR11:def 6;
     ProjPMap1(f1,x) is (Measurable-X-section(A/\B,x))-measurable
   & ProjPMap1(g1,x) is (Measurable-X-section(A/\B,x))-measurable
        by A8,A11,Th47; then
B16: Integral(M2,ProjPMap1(f1,x)) = integral+(M2,ProjPMap1(f1,x))
   & Integral(M2,ProjPMap1(g1,x)) = integral+(M2,ProjPMap1(g1,x))
       by A12,B15,Th32,MESFUNC5:88;

B17: ProjPMap1(f+g,x) = ProjPMap1(f,x) + ProjPMap1(g,x) by Th44;

     ProjPMap1(f1,x) = ProjPMap1(f,x)|X-section(A /\ B,x)
   & ProjPMap1(g1,x) = ProjPMap1(g,x)|X-section(A /\ B,x)
      by Th34; then
B18: ProjPMap1(f1,x) = ProjPMap1(f,x)|Measurable-X-section(A /\ B,x)
   & ProjPMap1(g1,x) = ProjPMap1(g,x)|Measurable-X-section(A /\ B,x)
       by MEASUR11:def 6;
     dom(ProjPMap1(f,x)) = X-section(A,x)
   & dom(ProjPMap1(g,x)) = X-section(B,x) by A1,A4,Def3; then
B19: dom(ProjPMap1(f,x)) = Measurable-X-section(A,x)
   & dom(ProjPMap1(g,x)) = Measurable-X-section(B,x) by MEASUR11:def 6;
     dom(ProjPMap1(f+g,x)) = X-section(A /\ B,x) by A7,Def3; then
B20: Measurable-X-section(A /\ B,x) = dom(ProjPMap1(f+g,x)) by MEASUR11:def 6;
     f+g is (A/\B)-measurable by A2,A5,A10,MESFUNC5:31; then
B22: ProjPMap1(f+g,x) is (Measurable-X-section(A/\B,x))-measurable
       by A7,Th47;
B23: (Integral2(M2,f1)+Integral2(M2,g1)).x
      = Integral2(M2,f1).x java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     .= Integral(M2,ProjPMap1(f1,x)) + Integral2(M2,g1).x by Def8
     .= integral+(M2,ProjPMap1(f1,x)) + integral+(M2,ProjPMap1A28:for    (X)=-X-sectionAx)
       by B16,Def8;
     ProjPMap1(f,x) is       n  Nat;
   &ProjPMap1f,  --(,x))-measurable
   & ProjPMap1(g,x) is (Measurable-X      FX. =ProjPMap1(nx) by A27;then
       by A1,A3,A4,A6,A2,A5,Th32,Th47; then
     ex be  S2 st
      C = dom(ProjPMap1(f,x)+ProjPMap1(g,x)) &
      integral+(M2,ProjPMap1(f,x)+ProjPMap1(g,x))
       = integral+(M2,ProjPMap1(f,x)|C) + integral+(M2,ProjPMap1(g,x)|C)
          by B19,MESFUNC5:78; then
     (Integral2(M2,f1)+Integral2(M2,g1)).x
       = Integral(M2,ProjPMap1(f+g,x))
      by B17,B18,B20,B23,A21,B22,Th32,MESFUNC5:88;
     hence Integral2(M2,f+g).x
      = (Integral2(M2,f1) + Integral2(M2,g1)).x by Def8;
    end;
    hence Integral2(M2,f+g)
      = Integral2(M2,f|dom(f+g)) + Integral2(M2,g|dom(f+g))
        by A7,A14,FUNCT_2:63;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f,g be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2)
  st E1 = dom f & f is nonpositive & f is E1-measurable &
       dom g  g is nonpositive & g is E2-measurable holds
  Integral1(M1,f+g) = Integral1(M1,f|dom(f+g)) + Integral1(M1,g|dom(f+g))
& Integral2(M2,f+g)= Integral2(M2,f|dom(f+g)) + Integral2(M2,g|dom(f+g))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f,g be PartFunc of [:X1,X2:],ExtREAL,
    A,B be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  A = dom f and
: f is nonpositive and
A3:  f is A-measurable and
A4:  B = dom g and
A5:  g is nonpositive and
A6: g is B-;

    reconsider f1 = -f as nonnegative PartFunc of [:X1,X2:],ExtREAL by A2;
    reconsider g1 = -g as nonnegative PartFunc of [:X1,X2:],ExtREAL by A5;

A7: f1+g1 = -(f+g) by MEASUR11:64;

    g1=B A1A4,: 7 
A9: dom(f1+g1) = A /\ B by MESFUNC5:22;      K.n = Integral(Prod_Measure(M1,M2),F.n A53,ESFUNC5:89; then
A10:dom(f+g) = A /\ B by A7,MESFUNC1:def 7; then
A11:dom(f|dom(f+g)) = A /\ B & dom(g|dom(f+g)) = A /\ B
      by A1,A4,XBOOLE_1:17,RELAT_1:62;

A12:dom  f bePartFunc of[X1,X2:,ExtREAL
      by A1,A4st M1 sigma_finite  &M2 is sigma_finite

A13:f1|dom(f1+g1) = -(f|dom(f+g)) & g1|dom(f1+g1) = -(g|dom(f+g))
      by A9,A10,MESFUN11:3;

A14:f is (A/\B)-measurable & g is (A/\B)-measurable
      by A3,A6,XBOOLE_1:17,MESFUNC1:30; then
    f|dom(f+g) is (A/\B)-measurable
  & g|dom(f+g) is (A/\B)-measurable by A10,A12,MESFUNC5:42; then
A15:Integral1(M1,f1|dom(f1+g1)) = -Integral1(M1,f|dom(f+g))
  & Integral1(M1,g1|dom(f1+g1)) = -Integral1(M1,g|dom(f+g))
  & Integral2(M2,f1|dom(f1+g1)) = -Integral2(M2,f|dom(f+g))
  & Integral2(M2,g1|dom(f1+g1)) = -Integral2(M2,g|dom(f+g))
      by A11,A13,Th73;

    f+g is (A/\B)-measurable by A2,A5,A10,A14,MEASUR11:65; then
A16:Integral1(M1,f1+g1) = -Integral1(M1,f+g)
  & Integral2(M2,f1+g1) = -Integral2(M2,f+g) by A7,A10,Th73;

A17:f1 is A-measurable & g1 is B-measurable
      by A1,A3,A4,A6,MEASUR11:63; then
    Integral1(M1,f1+g1)
     = Integral1(M1,f1|dom(f1+g1)) + Integral1(M1,g1|dom(f1+g1))
       by A8,Th74; then
    -Integral1(M1,f+g)
     = -(Integral1(M1,f|dom(f+g)) + Integral1(M1,g|dom(f+g)))
       by A15,A16,MEASUR11:64; then
    Integral1(M1,f+g)
      = -(-(Integral1(M1,f|dom(f+g)) + Integral1(M1,g|dom(f+g))))
       by DBLSEQ_3:2;
    hence
    Integral1(M1,f+g) = Integral1(M1,f|dom(f+g)) + Integral1(M1,g|dom(f+g))
       by DBLSEQ_3:2;
    Integral2(M2,f1+g1)
     = Integral2(M2,f1|dom(f1+g1)) + java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
       by A8,A17,Th74; then
    -Integral2(M2,f+g)
     = -(Integral2(M2,f|dom(f+g)) + Integral2(M2,g|dom(f+g)))
       by A15,A16,MEASUR11:64; then
    Integral2(M2,f+g)
      = -(-(Integral2(M2,f|dom(f+g)) + Integral2(M2,g|dom(f+g))))
       by DBLSEQ_3:2;
    hence
    Integral2(M2,f+g) = Integral2(M2,f|dom(f+g)) + Integral2(M2,g|dom(f+g))
       by DBLSEQ_3:2;
end;

theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f,g be PartFunc of [:X1,X2:],ExtREAL,
  E1,E2 be Element of sigma measurable_rectangles(S1,S2)
  st E1 = dom f & f is nonnegative & f is E1-measurable &
     E2 = dom g & g is nonpositive & g is E2-measurable holds
  Integral1(M1,f-g) = Integral1(M1,f|dom(f-g)) - Integral1(M1,g|dom(f-g))
& Integral1(M1,g-f) = Integral1(M1,g|dom(g-f)) - Integral1(M1,f|dom(g-f))
& Integral2(M2,f-g) = Integral2(M2,f|dom(f-g)) - Integral2(M2,g|dom(f-g))
& Integral2(M2,g-f) = Integral2(M2,g|dom(g-f)) - Integral2(M2,f|dom(g-f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f,g be PartFunc of [:X1,X2:],ExtREAL,
    A,B be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  A = dom f and
A2:  f is nonnegative and
A3:  f is A-measurable and
A4:  B = dom g and
A5:  g is nonpositive and
A6:  g is B-measurable;
    reconsider g1 = -g as nonnegative PartFunc of [:X1,X2:],ExtREAL by A5;
A7: B = dom g1 by A4,MESFUNC1:def 7;
A8: g1 is B-measurable by A4,A6,MEASUR11:63;
A9: f is (A/\B)-measurable & g is (A/\B)-measurable
      by A3,A6,XBOOLE_1:17,MESFUNC1:30;
A10:dom(f-g) = A/\B by A1,A2,A4,A5,MESFUNC5:17; then
A11:A/\B = dom(g|dom(f-g)) by A4,XBOOLE_1:17,RELAT_1:62; then
    A/\B = dom g /\ dom(f-g) by RELAT_1:61; then
A12:g|dom(f-g) is (A/\B)-measurable by A9,A10,MESFUNC5:42;
A13: f+g1 = f-g by MESFUNC2:8; then
A14:Integral1(M1,f-g)
      = Integral1(M1,f|dom(f-g)) + Integral1(M1,g1|dom(f-g))
        by A1,A2,A3,A7,A8,Th74
     .= Integral1(M1,f|dom(f-g)) + Integral1(M1,-(g|dom(f-g)))
        by MESFUN11:3
     .= Integral1(M1,f|dom(f-g)) + -Integral1(M1,g|dom(f-g))
        by A11,A12,Th73;
    hence Integral1(M1,f-g)
      = Integral1(M1,f|dom(f-g)) - Integral1(M1,g|dom(f-g)) by MESFUNC2:8;
A15:f-g is (A/\B)-measurable by A2,A5,A9,A10,MEASUR11:67;
A16:g-f = -(f-g) by MEASUR11:64; then
A17:dom(g-f) = A/\B by A10,MESFUNC1:def 7;

    Integral1(M1,g-f) = -Integral1(M1,f-g) by A10,A16,A15,Th73;
    hence
     Integral1(M1,g-f) = Integral1(M1,g|dom(g-f)) - Integral1(M1,f|dom(g-f))
      by A10,A14,A17,MEASUR11:64;

A18:Integral2(M2,f-g)
      = Integral2(M2,f|dom(f-g)) + Integral2(M2,g1|dom(f-g))
        by A1,A2,A3,A7,A8,A13,Th74
     .= Integral2(M2,f|dom(f-g)) + Integral2(M2,-(g|dom(f-g)))
        by MESFUN11:3
     .= Integral2(M2,f|dom(f-g)) + -Integral2(M2,g|dom(f-g))
        by A11,A12,Th73;
    hence Integral2(M2,f-g)
      = Integral2(M2,f|dom(f-g)) - Integral2(M2,g|dom(f-g)) by MESFUNC2:8;
    Integral2(M2,g-f) = -Integral2(M2,f-g) by A10,A16,A15,Th73;
    hence
     Integral2(M2,g-f) = Integral2(M2,g|dom(g-f)) - Integral2(M2,f|dom(g-f))
      by A10,A18,A17,MEASUR11:64;
end;

theorem Th77:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  E be Element of sigma measurable_rectangles(S1,S2)
st M1 is sigma_finite & M2 is sigma_finite
holds Integral(M1,(Y-vol(E,M2)))
        = Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:]))
    & Integral(M2,(X-vol(E,M1)))
        = Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:]))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite;
    Integral(M2,(X-vol(E,M1))) = (product_sigma_Measure(M1,M2)).E
  & Integral(M1,(Y-vol(E,M2))) = (product_sigma_Measure(M1,M2)).E
      by A1,A2,MEASUR11:118,117;
    hence thesis by MESFUNC9:14;
end;

theorem Th78:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 E be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL, r be Real st
 E = dom f & (f is nonnegative or f is nonpositive) & f is E-measurable
 holds
  Integral1(M1,r(#)f) = r(#)Integral1(M1,f)
& Integral2(M2,r(#)f) = r(#)Integral2(M2,f)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL, r be Real;
    assume that
A1:  E = dom f and
A2:  (f is nonnegative or f is nonpositive) and
A3:  f is E-measurable;

A4: dom(r(#)Integral1(M1,f)) = X2 & dom(r(#)Integral2(M2,f)) = X1
     by FUNCT_2:def 1;

    now let y be Element of X2;
     dom(ProjPMap2(f,y)) = Y-section(E,y) by A1,Def4; then
A5:  dom(ProjPMap2(f,y)) = Measurable-Y-section(E,y) by MEASUR11:def 7;
A6:  ProjPMap2(f,y) is nonnegative or ProjPMap2(f,y) is nonpositive
       by A2,Th32,Th33;

     Integral1(M1,r(#)f).y
      = Integral(M1,ProjPMap2(r(#)f,y)) by Def7
     .= Integral(M1,r(#)ProjPMap2(f,y)) by Th29
     .= r * Integral(M1,ProjPMap2(f,y)) by A5,A6,A1,A3,Th47,Lm1,Lm2
     .= r * Integral1(M1,f).y by Def7;
     hence Integral1(M1,r(#)f).y = (r(#)Integral1(M1,f)).y
       by A4,MESFUNC1:def 6;
    end;
    hence Integral1(M1,r(#)f) = r(#)Integral1(M1,f) by FUNCT_2:def 8;

    now let x be Element of X1;
     dom(ProjPMap1(f,x)) = X-section(E,x) by A1,Def3; then
B5:  dom(ProjPMap1(f,x)) = Measurable-X-section(E,x) by MEASUR11:def 6;
B6:  ProjPMap1(f,x) is nonnegative or ProjPMap1(f,x) is nonpositive
       by A2,Th32,Th33;

     Integral2(M2,r(#)f).x
      = Integral(M2,ProjPMap1(r(#)f,x)) by Def8
     .= Integral(M2,r(#)ProjPMap1(f,x)) by Th29
     .= r * Integral(M2,ProjPMap1(f,x)) by B6,B5,A1,A3,Th47,Lm1,Lm2
     .= r * Integral2(M2,f).x by Def8;
     hence Integral2(M2,r(#)f).x = (r(#)Integral2(M2,f)).x
       by A4,MESFUNC1:def 6;
    end;
    hence Integral2(M2,r(#)f) = r(#)Integral2(M2,f) by FUNCT_2:def 8;
end;

theorem Th79:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  E be Element of sigma measurable_rectangles(S1,S2) holds
  Integral1(M1,chi(E,[:X1,X2:])|E) = Integral1(M1,chi(E,[:X1,X2:]))
& Integral2(M2,chi(E,[:X1,X2:])|E) = Integral2(M2,chi(E,[:X1,X2:]))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2);

    now let y be Element of X2;
A1:  ProjPMap2(chi(E,[:X1,X2:])|E,y)
      = ProjPMap2(chi(E,[:X1,X2:]),y) | Y-section(E,y) by Th34
     .= chi(Y-section(E,y),X1) | Y-section(E,y) by Th48
     .= chi(Measurable-Y-section(E,y),X1) | Y-section(E,y) by MEASUR11:def 7
     .= chi(Measurable-Y-section(E,y),X1) | Measurable-Y-section(E,y)
       by MEASUR11:def 7;

     Integral1(M1,chi(E,[:X1,X2:])|E).y
      = Integral(M1,ProjPMap2(chi(E,[:X1,X2:])|E,y)) by Def7
     .= M1.Measurable-Y-section(E,y) by A1,MESFUNC9:14
     .= Integral( M1,chi(Measurable-Y-section(E,y),X1) )
          by MESFUNC9:14
     .= Integral( M1,chi(Y-section(E,y),X1) ) by MEASUR11:def 7
     .= Integral(M1,ProjPMap2(chi(E,[:X1,X2:]),y) ) by Th48;
     hence Integral1(M1,chi(E,[:X1,X2:])|E).y
      = Integral1(M1,chi(E,[:X1,X2:])).y by Def7;
    end;
    hence Integral1(M1,chi(E,[:X1,X2:])|E) = Integral1(M1,chi(E,[:X1,X2:]))
      by FUNCT_2:def 8;

    now let x be Element of X1;
A2:  ProjPMap1(chi(E,[:X1,X2:])|E,x)
      = ProjPMap1(chi(E,[:X1,X2:]),x) | X-section(E,x) by Th34
     .= chi(X-section(E,x),X2) | X-section(E,x) by Th48
     .= chi(Measurable-X-section(E,x),X2) | X-section(E,x) by MEASUR11:def 6
     .= chi(Measurable-X-section(E,x),X2) | Measurable-X-section(E,x)
       by MEASUR11:def 6;

     Integral2(M2,chi(E,[:X1,X2:])|E).x
      = Integral(M2,ProjPMap1(chi(E,[:X1,X2:])|E,x)) by Def8
     .= M2.Measurable-X-section(E,x) by A2,MESFUNC9:14
     .= Integral( M2,chi(Measurable-X-section(E,x),X2) )
          by MESFUNC9:14
     .= Integral( M2,chi(X-section(E,x),X2) ) by MEASUR11:def 6
     .= Integral(M2,ProjPMap1(chi(E,[:X1,X2:]),x) ) by Th48;
     hence Integral2(M2,chi(E,[:X1,X2:])|E).x
      = Integral2(M2,chi(E,[:X1,X2:])).x by Def8;
    end;
    hence Integral2(M2,chi(E,[:X1,X2:])|E) = Integral2(M2,chi(E,[:X1,X2:]))
      by FUNCT_2:def 8;
end;

theorem Th80:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  E be Element of sigma measurable_rectangles(S1,S2) holds
  Integral1(M1,Xchi(E,[:X1,X2:])|E) = Integral1(M1,Xchi(E,[:X1,X2:]))
& Integral2(M2,Xchi(E,[:X1,X2:])|E) = Integral2(M2,Xchi(E,[:X1,X2:]))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2);

    now let y be Element of X2;
     set XC1 = Xchi(Measurable-Y-section(E,y),X1);
A1:  ProjPMap2(Xchi(E,[:X1,X2:])|E,y)
      = ProjPMap2(Xchi(E,[:X1,X2:]),y) | Y-section(E,y) by Th34
     .= Xchi(Y-section(E,y),X1) | Y-section(E,y) by Th35
     .= Xchi(Measurable-Y-section(E,y),X1) | Y-section(E,y) by MEASUR11:def 7
     .= XC1 | Measurable-Y-section(E,y) by MEASUR11:def 7
     .= chi(+infty,Measurable-Y-section(E,y),X1)|Measurable-Y-section(E,y)
         by Th2;

     Integral1(M1,Xchi(E,[:X1,X2:])|E).y
      = Integral(M1,ProjPMap2(Xchi(E,[:X1,X2:])|E,y)) by Def7
     .= +infty * M1.Measurable-Y-section(E,y) by A1,Th50
     .= Integral(M1,chi(+infty,Measurable-Y-section(E,y),X1)) by Th49
     .= Integral( M1,Xchi(Measurable-Y-section(E,y),X1) ) by Th2
     .= Integral( M1,Xchi(Y-section(E,y),X1) ) by MEASUR11:def 7
     .= Integral(M1,ProjPMap2(Xchi(E,[:X1,X2:]),y) ) by Th35;
     hence Integral1(M1,Xchi(E,[:X1,X2:])|E).y
      = Integral1(M1,Xchi(E,[:X1,X2:])).y by Def7;
    end;
    hence Integral1(M1,Xchi(E,[:X1,X2:])|E)
     = Integral1(M1,Xchi(E,[:X1,X2:])) by FUNCT_2:def 8;

    now let x be Element of X1;
     set XC2 = Xchi(Measurable-X-section(E,x),X2);
A1:  ProjPMap1(Xchi(E,[:X1,X2:])|E,x)
      = ProjPMap1(Xchi(E,[:X1,X2:]),x) | X-section(E,x) by Th34
     .= Xchi(X-section(E,x),X2) | X-section(E,x) by Th35
     .= Xchi(Measurable-X-section(E,x),X2) | X-section(E,x) by MEASUR11:def 6
     .= XC2 | Measurable-X-section(E,x) by MEASUR11:def 6
     .= chi(+infty,Measurable-X-section(E,x),X2)|Measurable-X-section(E,x)
         by Th2;

     Integral2(M2,Xchi(E,[:X1,X2:])|E).x
      = Integral(M2,ProjPMap1(Xchi(E,[:X1,X2:])|E,x)) by Def8
     .= +infty * M2.Measurable-X-section(E,x) by A1,Th50
     .= Integral(M2,chi(+infty,Measurable-X-section(E,x),X2)) by Th49
     .= Integral( M2,Xchi(Measurable-X-section(E,x),X2) ) by Th2
     .= Integral( M2,Xchi(X-section(E,x),X2) ) by MEASUR11:def 6
     .= Integral(M2,ProjPMap1(Xchi(E,[:X1,X2:]),x) ) by Th35;
     hence Integral2(M2,Xchi(E,[:X1,X2:])|E).x
      = Integral2(M2,Xchi(E,[:X1,X2:])).x by Def8;
    end;
    hence Integral2(M2,Xchi(E,[:X1,X2:])|E)
     = Integral2(M2,Xchi(E,[:X1,X2:])) by FUNCT_2:def 8;
end;

theorem Th81:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  E be Element of sigma measurable_rectangles(S1,S2), er be ExtReal holds
  Integral1(M1,chi(er,E,[:X1,X2:])|E) = Integral1(M1,chi(er,E,[:X1,X2:]))
& Integral2(M2,chi(er,E,[:X1,X2:])|E) = Integral2(M2,chi(er,E,[:X1,X2:]))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2), er be ExtReal;
    reconsider XX12 = [:X1,X2:] as Element of
      sigma measurable_rectangles(S1,S2) by MEASURE1:7;
    reconsider C = chi(E,[:X1,X2:])|E as PartFunc of [:X1,X2:],ExtREAL;
    per cases by XXREAL_0:14;
    suppose er in REAL; then
     reconsider r = er as Real;
A1: chi(r,E,[:X1,X2:]) = r(#)chi(E,[:X1,X2:]) by Th1;
A2: chi(E,[:X1,X2:]) is XX12-measurable by MESFUNC2:29;
A3: dom(chi(E,[:X1,X2:])) = XX12 by FUNCT_2:def 1;

A4: dom( chi(E,[:X1,X2:])|E ) = dom(chi(E,[:X1,X2:])) /\ E by RELAT_1:61
     .= [:X1,X2:] /\ E by FUNCT_2:def 1
     .= E by XBOOLE_1:28;
A5: chi(E,[:X1,X2:])|E is nonnegative by MESFUNC5:15;
    E = dom(chi(E,[:X1,X2:])) /\ E by A3,XBOOLE_1:28; then
A6: chi(E,[:X1,X2:])|E is E-measurable by MESFUNC2:29,MESFUNC5:42;

    Integral1(M1,chi(r,E,[:X1,X2:])|E)
     = Integral1(M1,r(#)C) by A1,MESFUN11:2
    .= r(#)Integral1(M1,C) by A4,A5,A6,Th78
    .= r(#)Integral1(M1,chi(E,[:X1,X2:])) by Th79
    .= Integral1(M1,r(#)chi(E,[:X1,X2:])) by A2,A3,Th78;
    hence
     Integral1(M1,chi(er,E,[:X1,X2:])|E) = Integral1(M1,chi(er,E,[:X1,X2:]))
      by Th1;

    Integral2(M2,chi(r,E,[:X1,X2:])|E)
     = Integral2(M2,r(#)C) by A1,MESFUN11:2
    .= r(#)Integral2(M2,C) by A4,A5,A6,Th78
    .= r(#)Integral2(M2,chi(E,[:X1,X2:])) by Th79
    .= Integral2(M2,r(#)chi(E,[:X1,X2:])) by A2,A3,Th78;
    hence
     Integral2(M2,chi(er,E,[:X1,X2:])|E) = Integral2(M2,chi(er,E,[:X1,X2:]))
      by Th1;
    end;
    suppose er = +infty; then
     chi(er,E,[:X1,X2:]) = Xchi(E,[:X1,X2:]) by Th2;
     hence
      Integral1(M1,chi(er,E,[:X1,X2:])|E) = Integral1(M1,chi(er,E,[:X1,X2:]))
    & Integral2(M2,chi(er,E,[:X1,X2:])|E) = Integral2(M2,chi(er,E,[:X1,X2:]))
     by Th80;
    end;
    suppose d0: er = -infty;
     reconsider XX12 = [:X1,X2:]
      as Element of sigma measurable_rectangles(S1,S2) by MEASURE1:7;
     reconsider XE = Xchi(E,[:X1,X2:])|E as PartFunc of [:X1,X2:],ExtREAL;
d3:  Xchi(E,[:X1,X2:]) is XX12-measurable by MEASUR10:32;
e2:  XE is nonnegative by MESFUNC5:15;
d4:  dom Xchi(E,[:X1,X2:]) = XX12 by FUNCT_2:def 1; then
e1:  dom XE = E by RELAT_1:62; then
     E = dom Xchi(E,[:X1,X2:]) /\ E by RELAT_1:61; then
e3:  XE is E-measurable by MESFUNC5:42;
d1:  chi(er,E,[:X1,X2:]) = -Xchi(E,[:X1,X2:]) by d0,Th2
      .= (-1)(#)Xchi(E,[:X1,X2:]) by MESFUNC2:9;
     Integral1(M1,chi(er,E,[:X1,X2:]))
      = (-1) (#) Integral1(M1,Xchi(E,[:X1,X2:])) by d1,d3,d4,Th78
     .= (-1) (#) Integral1(M1,Xchi(E,[:X1,X2:])|E) by Th80
     .= Integral1(M1,(-1)(#)XE) by e1,e2,e3,Th78
     .= Integral1(M1,chi(er,E,[:X1,X2:])|E) by d1,MESFUN11:2;
     hence
  Integral1(M1,chi(er,E,[:X1,X2:])|E) = Integral1(M1,chi(er,E,[:X1,X2:]));
     Integral2(M2,chi(er,E,[:X1,X2:]))
      = (-1) (#) Integral2(M2,Xchi(E,[:X1,X2:])) by d1,d3,d4,Th78
     .= (-1) (#) Integral2(M2,Xchi(E,[:X1,X2:])|E) by Th80
     .= Integral2(M2,(-1)(#)XE) by e1,e2,e3,Th78
     .= Integral2(M2,chi(er,E,[:X1,X2:])|E) by d1,MESFUN11:2;

     hence
  Integral2(M2,chi(er,E,[:X1,X2:])|E) = Integral2(M2,chi(er,E,[:X1,X2:]));
    end;
end;

theorem Th82:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  E be Element of sigma measurable_rectangles(S1,S2)
st M1 is sigma_finite & M2 is sigma_finite
holds
  Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:]))
   = Integral(M2,Integral1(M1,chi(E,[:X1,X2:])))
& Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:])|E)
   = Integral(M2,Integral1(M1,chi(E,[:X1,X2:])|E))
& Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:]))
   = Integral(M1,Integral2(M2,chi(E,[:X1,X2:])))
& Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:])|E)
   = Integral(M1,Integral2(M2,chi(E,[:X1,X2:])|E))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite;

    X-vol(E,M1) = Integral1(M1,chi(E,[:X1,X2:])) by A1,Th64;
    hence
A4:  Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:]))
     = Integral(M2,Integral1(M1,chi(E,[:X1,X2:]))) by A1,A2,Th77;

A5: Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:])|E)
     = Prod_Measure(M1,M2).E by MESFUNC9:14
    .= Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:])) by MESFUNC9:14;
    hence
     Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:])|E)
      = Integral(M2,Integral1(M1,chi(E,[:X1,X2:])|E)) by A4,Th79;

    Y-vol(E,M2) = Integral2(M2,chi(E,[:X1,X2:])) by A2,Th65;
    hence
     Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:]))
     = Integral(M1,Integral2(M2,chi(E,[:X1,X2:]))) by A1,A2,Th77;
    hence
     Integral(Prod_Measure(M1,M2),chi(E,[:X1,X2:])|E)
      = Integral(M1,Integral2(M2,chi(E,[:X1,X2:])|E)) by A5,Th79;
end;

theorem Th83:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  E be Element of sigma measurable_rectangles(S1,S2), r be Real
st M1 is sigma_finite & M2 is sigma_finite
holds
  Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
   = Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])))
& Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:])|E)
   = Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])|E))
& Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
   = Integral(M1,Integral2(M2,chi(r,E,[:X1,X2:])))
& Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:])|E)
   = Integral(M1,Integral2(M2,chi(r,E,[:X1,X2:])|E))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2), r be Real;
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite;

    set S = sigma measurable_rectangles(S1,S2);
    set M = Prod_Measure(M1,M2);
    reconsider XX12 = [:X1,X2:] as Element of S by MEASURE1:7;
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;

A3: chi(r,E,[:X1,X2:]) = r(#)chi(E,[:X1,X2:]) by Th1;
A4: chi(E,[:X1,X2:]) is_simple_func_in S by Th12;
A5:;

A6: dom(chi(E,[:X1,X2:])) = XX12 by FUNCT_2:def 1;

A7: Integral1(M1,chi(E,[:X1,X2:])) = X-vol(E,M1) by A1,Th64;
A8: X-vol(E,M1) is XX2-measurable by A1,MEASUR11:def 14;
A9: dom(Integral1(M1,chi(E,[:X1,X2:]))) = XX2 by FUNCT_2:def 1;

A10:Integral(M,chi(r,E,[:X1,X2:]))
      = Integral(M,r(#)chi(E,[:X1,X2:])) by Th1
     .= r * integral'(M,chi(E,[:X1,X2:])) by Th12,MESFUN11:59
     .= r * Integral(M,chi(E,[:X1,X2:])) by A4,MESFUNC5:89; then
A14:Integral(M,chi(r,E,[:X1,X2:]))
      = r * Integral(M2,Integral1(M1,chi(E,[:X1,X2:]))) by A1,A2,Th82
     .= Integral(M2,r(#)X-vol(E,M1)) by A7,A8,A9,Lm1;
    hence Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
      = Integral(M2,Integral1(M1,chi(r, &fis   dom f&f Ameasurable
        by A3,A5,A6,A7,Th78;

    reconsider C = chi(E,[:X1,X2:])|E as PartFunc of [:X1,X2:],ExtREAL;
A11:dom C = E by A6,RELAT_1:62;
A12:chi(r,E,[:X1,X2:])|E = (r(#)chi(E,[:X1,X2:]))|E by Th1
     .= r(#)C benonemptyset SigmaField X1 S2SigmaFieldofX2java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79

A13:Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])|E))
     = Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:]))) by Th81
    .= Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
       by A3,A5,A6,A7,A14,Th78;

    C is E-measurable by A4,MESFUNC2:34,MESFUNC5:34; then
A15:Integral(M,chi(r,E,[:X1,X2:])|E)
     = r * Integral(M,C) by A11,A12,Lm1,MESFUNC5:15
    .= r * Prod_Measure(M1,M2).E by MESFUNC9:14
    .= r * Integral(M,chi(E,[:X1,X2:])) by MESFUNC9:14
    .= Integral(M,r(#)chi(E,[:X1,X2:])) by A4,A6,Lm1,MESFUNC2:34;
    hence Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:])|E)
     = Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])|E)) by A13,Th1;

B7: Integral2(M2,chi(E,[:X1,X2:])) = Y-vol(E,M2) by A2,Th65;
B8: Y-vol(E,M2) is XX1-measurable by A2,MEASUR11:def 13;
B9: dom(Integral2(M2,chi(E,[:X1,X2:]))) = XX1 by FUNCT_2:def 1;

B14:Integral(M,chi(r,E,[:X1,X2:]))
      = r * Integral(M1,Integral2(M2,chi(E,[:X1,X2:]))) by A1,A2,A10,Th82
     .= Integral(M1,r(#)Y-vol(E,M2)) by B7,B8,B9,Lm1;
    hence Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
      =IntegralM1,M2chiE[X1X2:))
        by A3,A5,A6,B7,Th78;

    Integral(M1,Integral2(M2,chi(r,E,[:X1,X2:])|E))
     = Integral(M1,Integral2(M2,chi(r,E,[:X1,X2:]))) by Th81
    .= Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
       by A3,A5,A6,B7,B14,Th78;
    hence Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:])|E)
     = Integral(M1,Integral2(M2,chi(r,E,[:X1,X2:])|E)) by A15,Th1;
end;

Lm13:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f be non empty PartFunc of [:X1,X2:],ExtREAL,
  A be Element of sigma measurable_rectangles(S1,S2)
  st M1 is sigma_finite & M2 is sigma_finite
   & f is_simple_func_in sigma measurable_rectangles(S1,S2)
   & (f is nonnegative or f is nonpositive)
   & A = dom f
  holds
    Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
  & Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f be non empty PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite and
A3:  f is_simple_func_in sigma measurable_rectangles(S1,S2) and
A4:  (f is nonnegative or f is nonpositive) and
A5:  A = dom f;

A6: f is A-measurable by A3,MESFUNC2:34;

    set S = sigma measurable_rectangles(S1,S2);
    set M = Prod_Measure(M1,M2);
    reconsider XX12 = [:X1,X2:] as Element of S by MEASURE1:7;
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;

    consider E be non empty Finite_Sep_Sequence of S,
       a be FinSequence of ExtREAL, r be FinSequence of REAL such that
A7:  E,a are_Re-presentation_of f &
     for n be Nat holds
      a.n = r.n & f|(E.n) = (chi(r.n,E.n,[:X1,X2:]))|(E.n) &
      (E.n = {} implies r.n = 0) by A3,Th5;

    defpred P[Nat] means
     Integral(Prod_Measure(M1,M2),f|(union rng(E|$1)))
       = Integral(M2,Integral1(M1,f|(union rng(E|$1))));

A8: P[0]
    proof
     reconsider E0 = {} as Element of S by MEASURE1:7;
     reconsider E01 = {} as Element of S1 by MEASURE1:7;

     M.E0 = 0 by VALUED_0:def 19; then
A9:  Integral(M,f|(union rng(E|0))) = 0
       by A3,A5,MESFUNC2:34,ZFMISC_1:2,MESFUNC5:94;

A10: for y be Element of X2 st y in dom(Integral1(M1,f|(union rng(E|0))))
      holds (Integral1(M1,f|(union rng(E|0)))).y = 0
     proof
      let y be Element of X2;
      assume y in dom(Integral1(M1,f|(union rng(E|0))));
      Integral1(M1,f|(union rng(E|0))).y
       = Integral(M1,ProjPMap2(f|(union rng(E|0)),y)) by Def7; then
A11:  Integral1(M1,f|(union rng(E|0))).y
       = Integral(M1,ProjPMap2(f,y)|Y-section(E0,y)) by Th34,ZFMISC_1:2;

A12:  M1.E01 = 0 by VALUED_0:def 19;
      dom(ProjPMap2(f,y)) = Y-section(dom f,y) by Def4; then
A13:  dom(ProjPMap2(f,y)) = Measurable-Y-section(A,y) by A5,MEASUR11:def 7;

      E0 = {}[:X1,X2:]; then
      Integral1(M1,f|(union rng(E|0))).y = Integral(M1,ProjPMap2(f,y)|E01)
        by A11,MEASUR11:24;
      hence Integral1(M1,f|(union rng(E|0))).y = 0
        by A5,A6,A12,A13,Th47,MESFUNC5:94;
     end;
     dom(Integral1(M1,f|(union rng(E|0)))) = XX2 by FUNCT_2:def 1;
     hence thesis by A9,A10,Th57;
    end;

A14:for n be Nat st P[n] holds P[n+1]
    proof
     let n be Nat;
     assume A15: P[n];
     per cases;
     suppose n >= len E; then
      E|n = E & E|(n+1) = E by FINSEQ_1:58,NAT_1:12;
      hence Integral(Prod_Measure(M1,M2),f|(union rng(E|(n+1))))
       = Integral(M2,Integral1(M1,f|(union rng(E|(n+1))))) by A15;
     end;
     suppose n < len E;
      Union (E|n) is Element of S; then
      reconsider En = union rng(E|n) as Element of S by CARD_3:def 4;
      reconsider En1 = E.(n+1) as Element of S;
A16:  En misses En1 & union rng(E|(n+1)) = En \/ En1 by NAT_1:16,MEASUR11:1,3;

      set CH = chi(r.(n+1),E.(n+1),[:X1,X2:]);
A17:  Integral(M,CH|(E.(n+1))) = Integral(M2,Integral1(M1,CH|(E.(n+1))))
        by A1,A2,Th83;

A18:  dom(Integral1(M1,f|En)) = XX2 & dom(Integral1(M1,f|En1)) = XX2
        by FUNCT_2:def 1;
A19:  Integral1(M1,f|En) is XX2-measurable
    & Integral1(M1,f|En1) is XX2-measurable by A1,A4,A5,A6,Th68;
A20:  Integral1(M1,f|En)|XX2 = Integral1(M1,f|En)
    & Integral1(M1,f|En1)|XX2 = Integral1(M1,f|En1);
      Integral(M,f|En1)
       = Integral(M,(chi(r.(n+1),E.(n+1),[:X1,X2:]))|(E.(n+1))) by A7; then
A21:  Integral(M,f|En1) = Integral(M2,Integral1(M1,f|En1)) by A7,A17;

      per cases by A4;
      suppose A22: f is nonnegative; then
A23:   Integral1(M1,f|En) is nonnegative & Integral1(M1,f|En1) is nonnegative
        by A5,A6,Th66; then
       reconsider I1 = Integral1(M1,f|En), I2 = Integral1(M1,f|En1)
         as without-infty Function of X2,ExtREAL;
       I1 + I2 = Integral1(M1,f|En) + Integral1(M1,f|En1); then
A24:   dom(Integral1(M1,f|En) + Integral1(M1,f|En1)) = XX2 by FUNCT_2:def 1;

       Integral(M,f|(union rng(E|(n+1))))
        = Integral(M,f|En) + Integral(M,f|En1)
         by A3,A5,A22,A16,MESFUNC2:34,MESFUNC5:91; then
       Integral(M,f|(union rng(E|(n+1))))
        = Integral(M2,Integral1(M1,f|En) + Integral1(M1,f|En1))
         by A15,A18,A19,A20,A21,A23,A24,Th21;
       hence Integral(Prod_Measure(M1,M2),f|(union rng(E|(n+1))))
        = Integral(M2,Integral1(M1,f|(union rng(E|(n+1)))))
          by A5,A6,A16,A22,Lm11;
      end;

      suppose A25: f is nonpositive; then
A26:   Integral1(M1,f|En) is nonpositive & Integral1(M1,f|En1) is nonpositive
         by A5,A6,Th67; then
       reconsider I1 = Integral1(M1,f|En), I2 = Integral1(M1,f|En1)
         as without+infty Function of X2,ExtREAL;
       I1 + I2 = Integral1(M1,f|En) + Integral1(M1,f|En1); then
A27:   dom(Integral1(M1,f|En) + Integral1(M1,f|En1)) = XX2 by FUNCT_2:def 1;

       Integral(M,f|(union rng(E|(n+1))))
         = Integral(M,f|En) + Integral(M,f|En1)
           by A3,A5,A16,A25,MESFUNC2:34,MESFUN11:62; then
       Integral(M,f|(union rng(E|(n+1))))
         = Integral(M2,Integral1(M1,f|En) + Integral1(M1,f|En1))
           by A15,A18,A19,A20,A21,A26,A27,Th22;
       hence Integral(Prod_Measure(M1,M2),f|(union rng(E|(n+1))))
         = Integral(M2,Integral1(M1,f|(union rng(E|(n+1)))))
           by A5,A6,A16,A25,Lm12;
      end;
     end;
    end;

A28:union rng E = dom f by A7,MESFUNC3:def 1;

    for n be Nat holds P[n] from NAT_1:sch 2(A8,A14); then
    Integral(Prod_Measure(M1,M2),f|(union rng(E|(len E))))
       = Integral(M2,Integral1(M1,f|(union rng(E|(len E))))); then
    Integral(Prod_Measure(M1,M2),f|(union rng E))
       = Integral(M2,Integral1(M1,f|(union rng(E|(len E))))) by FINSEQ_1:58;
    hence Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
      by A28,FINSEQ_1:58;

    defpred P[Nat] means
     Integral(Prod_Measure(M1,M2),f|(union rng(E|$1)))
       = Integral(M1,Integral2(M2,f|(union rng(E|$1))));

A8: P[0]
    proof
     reconsider E0 = {} as Element of S by MEASURE1:7;
     reconsider E01 = {} as Element of S2 by MEASURE1:7;
     M.E0 = 0 by VALUED_0:def 19; then
A9:  Integral(M,f|(union rng(E|0))) = 0
       by A3,A5,MESFUNC2:34,ZFMISC_1:2,MESFUNC5:94;
A10: for x be Element of X1 st x in dom(Integral2(M2,f|(union rng(E|0))))
      holds (Integral2(M2,f|(union rng(E|0)))).x = 0
     proof
      let x be Element of X1;
      assume x in dom(Integral2(M2,f|(union rng(E|0))));
      Integral2(M2,f|(union rng(E|0))).x
       = Integral(M2,ProjPMap1(f|(union rng(E|0)),x)) by Def8; then
A11:  Integral2(M2,f|(union rng(E|0))).x
       = Integral(M2,ProjPMap1(f,x)|X-section(E0,x)) by Th34,ZFMISC_1:2;

A12:  M2.E01 = 0 by VALUED_0:def 19;
      dom(ProjPMap1(f,x)) = X-section(dom f,x) by Def3; then
A13:  dom(ProjPMap1(f,x)) = Measurable-X-section(A,x) by A5,MEASUR11:def 6;

      E0 = {}[:X1,X2:]; then
      Integral2(M2,f|(union rng(E|0))).x = Integral(M2,ProjPMap1(f,x)|E01)
        by A11,MEASUR11:24;
      hence Integral2(M2,f|(union rng(E|0))).x = 0
        by A5,A6,A12,A13,Th47,MESFUNC5:94;
     end;
     dom(Integral2(M2,f|(union rng(E|0)))) = XX1 by FUNCT_2:def 1;
     hence thesis by A9,A10,Th57;
    end;

A14:for n be Nat st P[n] holds P[n+1]
    proof
     let n be Nat;
     assume A15: P[n];
     per cases;
     suppose n >= len E; then
      E|n = E & E|(n+1) = E by FINSEQ_1:58,NAT_1:12;
      hence Integral(Prod_Measure(M1,M2),f|(union rng(E|(n+1))))
       = Integral(M1,Integral2(M2,f|(union rng(E|(n+1))))) by A15;
     end;
     suppose n < len E;
      Union (E|n) is Element of S; then
      reconsider En = union rng(E|n) as Element of S by CARD_3:def 4;
      reconsider En1 = E.(n+1) as Element of S;
A16:  En misses En1 & union rng(E|(n+1)) = En \/ En1 by NAT_1:16,MEASUR11:1,3;

      set CH = chi(r.(n+1),E.(n+1),[:X1,X2:]);
A17:  Integral(M,CH|(E.(n+1))) = Integral(M1,Integral2(M2,CH|(E.(n+1))))
        by A1,A2,Th83;

A18:  dom(Integral2(M2,f|En)) = XX1 & dom(Integral2(M2,f|En1)) = XX1
        by FUNCT_2:def 1;
A19:  Integral2(M2,f|En) is XX1-measurable
    & Integral2(M2,f|En1) is XX1-measurable by A2,A4,A5,A6,Th69;

A20:  Integral2(M2,f|En)|XX1 = Integral2(M2,f|En)
    & Integral2(M2,f|En1)|XX1 = Integral2(M2,f|En1);

      Integral(M,f|En1)
       = Integral(M,(chi(r.(n+1),E.(n+1),[:X1,X2:]))|(E.(n+1))) by A7; then
A21:  Integral(M,f|En1) = Integral(M1,Integral2(M2,f|En1)) by A7,A17;

      per cases by A4;
      suppose A22: f is nonnegative; then
A23:   Integral2(M2,f|En) is nonnegative & Integral2(M2,f|En1) is nonnegative
        by A5,A6,Th66; then
       reconsider I1 = Integral2(M2,f|En), I2 = Integral2(M2,f|En1)
         as without-infty Function of X1,ExtREAL;
       I1 + I2 = Integral2(M2,f|En) + Integral2(M2,f|En1); then
A24:   dom(Integral2(M2,f|En) + Integral2(M2,f|En1)) = XX1 by FUNCT_2:def 1;

       Integral(M,f|(union rng(E|(n+1))))
        = Integral(M,f|En) + Integral(M,f|En1)
         by A3,A5,A22,A16,MESFUNC2:34,MESFUNC5:91; then
       Integral(M,f|(union rng(E|(n+1))))
        = Integral(M1,Integral2(M2,f|En) + Integral2(M2,f|En1))
         by A15,A18,A19,A20,A21,A23,A24,Th21;
       hence Integral(Prod_Measure(M1,M2),f|(union rng(E|(n+1))))
        = Integral(M1,Integral2(M2,f|(union rng(E|(n+1)))))
          by A5,A6,A16,A22,Lm11;
      end;

      suppose A25: f is nonpositive; then
A26:   Integral2(M2,f|En) is nonpositive & Integral2(M2,f|En1) is nonpositive
         by A5,A6,Th67; then
       reconsider I1 = Integral2(M2,f|En), I2 = Integral2(M2,f|En1)
         as without+infty Function of X1,ExtREAL;
       I1 + I2 = Integral2(M2,f|En) + Integral2(M2,f|En1); then
A27:   dom(Integral2(M2,f|En) + Integral2(M2,f|En1)) = XX1 by FUNCT_2:def 1;

       Integral(M,f|(union rng(E|(n+1))))
         = Integral(M,f|En) + Integral(M,f|En1)
           by A3,A5,A16,A25,MESFUNC2:34,MESFUN11:62; then
       Integral(M,f|(union rng(E|(n+1))))
         = Integral(M1,Integral2(M2,f|En) + Integral2(M2,f|En1))
           by A15,A18,A19,A20,A21,A26,A27,Th22;
       hence Integral(Prod_Measure(M1,M2),f|(union rng(E|(n+1))))
         = Integral(M1,Integral2(M2,f|(union rng(E|(n+1)))))
           by A5,A6,A16,A25,Lm12;
      end;
     end;
    end;

A28:union rng E = dom f by A7,MESFUNC3:def 1;

    for n be Nat holds P[n] from NAT_1:sch 2(A8,A14); then
    Integral(Prod_Measure(M1,M2),f|(union rng(E|(len E))))
       = Integral(M1,Integral2(M2,f|(union rng(E|(len E))))); then
    Integral(Prod_Measure(M1,M2),f|(union rng E))
       = Integral(M1,Integral2(M2,f|(union rng(E|(len E))))) by FINSEQ_1:58;
    hence Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
      by A28,FINSEQ_1:58;
end;

Lm14:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f be empty PartFunc of [:X1,X2:],ExtREAL,
  A be Element of sigma measurable_rectangles(S1,S2) holds
  ( M1 is sigma_finite implies
    Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f)) )
& ( M2 is sigma_finite implies
    Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f)) )
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f be empty PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2);
    reconsider EMP = {} as Element of sigma measurable_rectangles(S1,S2)
      by MEASURE1:7;
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
A2: f is_simple_func_in sigma measurable_rectangles(S1,S2) by Th19;
A3: f is EMP-measurable by Th19,MESFUNC2:34;
A5: for x be object st x in dom f holds 0 <= f.x; then
A6: f is nonnegative by SUPINF_2:52;
A4: dom f = EMP; then
    integral'(Prod_Measure(M1,M2),f) = 0 by MESFUNC5:def 14; then
A7: Integral(Prod_Measure(M1,M2),f) = 0 by A2,A6,MESFUNC5:89;
A8: dom(Integral1(M1,f)) = XX2
  & dom(Integral2(M2,f)) = XX1 by FUNCT_2:def 1;
A10:Integral1(M1,f) is nonnegative
  & Integral2(M2,f) is nonnegative by A3,A4,A6,Th66;
    hereby assume M1 is sigma_finite; then
A9:  Integral1(M1,f) is XX2-measurable by A3,A5,Th59,SUPINF_2:52;
     for y be Element of X2 st y in dom(Integral1(M1,f))
      holds Integral1(M1,f).y = 0
     proof
      let y be Element of X2;
      assume y in dom(Integral1(M1,f));
A11:  ProjPMap2(f,y) is_simple_func_in S1
    & ProjPMap2(f,y) is nonnegative by A6,A2,Th31,Th32;

      dom f = {}[:X1,X2:]; then
      dom(ProjPMap2(f,y))
       = Y-section({}[:X1,X2:],y) by Def4
      .= {} by MEASUR11:24; then
      integral'(M1,ProjPMap2(f,y)) = 0 by MESFUNC5:def 14; then
      Integral(M1,ProjPMap2(f,y)) = 0 by A11,MESFUNC5:89;
      hence Integral1(M1,f).y = 0 by Def7;
     end; then
     integral+(M2,Integral1(M1,f)) = 0 by A8,A9,MESFUNC5:87;
     hence Integral(Prod_Measure(M1,M2),f)
      = Integral(M2,Integral1(M1,f)) by A7,A8,A9,A10,MESFUNC5:88;
    end;
    assume M2 is sigma_finite; then
B9: Integral2(M2,f) is XX1-measurable by A3,A5,Th60,SUPINF_2:52;

    for x be Element of X1 st x in dom(Integral2(M2,f))
     holds Integral2(M2,f).x = 0
    proof
     let x be Element of X1;
     assume x in dom(Integral2(M2,f));
B11: ProjPMap1(f,x) is_simple_func_in S2
   & ProjPMap1(f,x) is nonnegative by A6,A2,Th31,Th32;
     dom f = {}[:X1,X2:]; then
     dom(ProjPMap1(f,x))
      = X-section({}[:X1,X2:],x) by Def3
     .= {} by MEASUR11:24; then
     integral'(M2,ProjPMap1(f,x)) = 0 by MESFUNC5:def 14; then
     Integral(M2,ProjPMap1(f,x)) = 0 by B11,MESFUNC5:89;
     hence Integral2(M2,f).x = 0 by Def8;
    end; then
    integral+(M1,Integral2(M2,f)) = 0 by A8,B9,MESFUNC5:87;
    hence Integral(Prod_Measure(M1,M2),f)
     = Integral(M1,Integral2(M2,f)) by A7,A8,B9,A10,MESFUNC5:88;
end;

Lm15:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
  f be PartFunc of [:X1,X2:],ExtREAL,
  A be Element of sigma measurable_rectangles(S1,S2)
  st M1 is sigma_finite & M2 is sigma_finite
   & f is_simple_func_in sigma measurable_rectangles(S1,S2)
   & (f is nonnegative or f is nonpositive)
   & A = dom f
  holds
    Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
  & Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    f be PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume a1: M1 is sigma_finite & M2 is sigma_finite
     & f is_simple_func_in sigma measurable_rectangles(S1,S2)
     & (f is nonnegative or f is nonpositive) & A = dom f;
    per cases;
    suppose f is non empty;
     hence thesis by a1,Lm13;
    end;
    suppose f is empty;
     hence thesis by a1,Lm14;
    end;
end;

Lm16:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 A be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL
st M1 is sigma_finite & M2 is sigma_finite
 & f is nonnegative & A = dom f & f is A-measurable
 holds Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite and
A3:  f is nonnegative and
A4:  A = dom f and
A5:  f is A-measurable;
    set S = sigma measurable_rectangles(S1,S2);
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
    reconsider EX1 = {} as Element of S1 by MEASURE1:7;
    Integral(Prod_Measure(M1,M2),f)
     = integral+(Prod_Measure(M1,M2),f) by A3,A4,A5,MESFUNC5:88; then
    consider F be Functional_Sequence of [:X1,X2:],ExtREAL,
       K be ExtREAL_sequence such that
A6:  (for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f)
   & (for n be Nat holds F.n is nonnegative)
   & (for n,m be Nat st n <= m holds
       for z be Element of [:X1,X2:] st z in dom f holds (F.n).z <= (F.m).z)
   & (for z be Element of [:X1,X2:] st z in dom f holds
       F#z is convergent & lim(F#z) = f.z)
   & for n be Nat holds K.n = integral'(Prod_Measure(M1,M2),F.n) and
     K is convergent and
A7:  Integral(Prod_Measure(M1,M2),f) = lim K by A3,A4,A5,MESFUNC5:def 15;

    dom(F.0) = dom f by A6; then
A8: dom (lim F) = dom f by MESFUNC8:def 9;
    for z be Element of [:X1,X2:] st z in dom(lim F) holds
     (lim F).z = f.z
    proof
     let z be Element of [:X1,X2:];
     assume A9: z in dom(lim F);
     hence (lim F).z = lim(F#z) by MESFUNC8:def 9
      .= f.z by A9,A8,A6;
    end; then
A10:lim F = f by A8,PARTFUN1:5;

    deffunc G(Nat) = Integral1(M1,F.$1);

    consider G be Functional_Sequence of X2,ExtREAL such that
A11: for n be Nat holds G.n = G(n) from SEQFUNC:sch 1;

A12:for n be Nat, y be Element of X2 holds
     dom(ProjPMap2(F.n,y)) = Measurable-Y-section(A,y)
   & ProjPMap2(F.n,y) is (Measurable-Y-section(A,y))-measurable
   & ProjPMap2(F.n,y) is nonnegative
    proof
     let n be Nat, y be Element of X2;
A13: dom(F.n) = A by A4,A6; then
     dom(ProjPMap2(F.n,y)) = Y-section(A,y) by Def4;
     hence dom(ProjPMap2(F.n,y)) = Measurable-Y-section(A,y)
       by MEASUR11:def 7;
     F.n is A-measurable by A6,MESFUNC2:34;
     hence ProjPMap2(F.n,y) is (Measurable-Y-section(A,y))-measurable
        by A13,Th47;
     F.n is nonnegative by A6;
     hence ProjPMap2(F.n,y) is nonnegative by Th32;
    end;

A14:for n be Nat holds
      dom(G.n) = XX2 & G.n is XX2-measurable & G.n is nonnegative
    proof
     let n be Nat;
A15: G.n = Integral1(M1,F.n) by A11;
     hence dom(G.n) = XX2 by FUNCT_2:def 1;

     dom(F.n) = A & F.n is A-measurable by A4,A6,MESFUNC2:34;
     hence G.n is XX2-measurable by A1,A15,A6,Th59;

     now let y be object;
      assume y in dom(G.n); then
      reconsider y1=y as Element of X2;
      (G.n).y = Integral(M1,ProjPMap2(F.n,y1))
    & ProjPMap2(F.n,y1) is (Measurable-Y-section(A,y1))-measurable
    & dom(ProjPMap2(F.n,y1)) = Measurable-Y-section(A,y1) by A12,A15,Def7;
      hence (G.n).y >= 0 by A12,MESFUNC5:90;
     end;
     hence G.n is nonnegative by SUPINF_2:52;
    end;

A16:for y be Element of X2, n,m be Nat st n <= m holds
     for x be Element of X1 st x in Measurable-Y-section(A,y) holds
        ProjPMap2(F.n,y).x <= ProjPMap2(F.m,y).x
    proof
     let y be Element of X2, n,m be Nat;
     assume A17: n <= m;
     hereby let x be Element of X1;
       assume x in Measurable-Y-section(A,y); then
       x in Y-section(A,y) by MEASUR11:def 7; then
       x in Y-section(dom(F.n),y) by A4,A6; then
       x in {x where x is Element of X1: [x,y] in dom(F.n)}
         by MEASUR11:def 5; then
A18:   ex x1 be Element of X1 st x1=x & [x1,y] in dom(F.n); then
A19:   [x,y] in dom f by A6; then
       [x,y] in dom(F.m) by A6; then
       ProjPMap2(F.n,y).x = (F.n).(x,y) & ProjPMap2(F.m,y).x = (F.m).(x,y)
         by A18,Def4;
       hence ProjPMap2(F.n,y).x <= ProjPMap2(F.m,y).x by A6,A17,A19;
     end;
    end;

A20:for n,m be Nat st n <= m holds for y be Element of X2 st y in XX2 holds
     (G.n).y <= (G.m).y
    proof
     let n,m be Nat;
     assume A21: n <= m;
     hereby let y be Element of X2;
      assume y in XX2;

A22:  dom(ProjPMap2(F.n,y)) = Measurable-Y-section(A,y)
    & dom(ProjPMap2(F.m,y)) = Measurable-Y-section(A,y)
    & ProjPMap2(F.n,y) is (Measurable-Y-section(A,y))-measurable
    & ProjPMap2(F.m,y) is (Measurable-Y-section(A,y))-measurable
    & ProjPMap2(F.n,y) is nonnegative
    & ProjPMap2(F.m,y) is nonnegative by A12;
      for x be Element of X1 st x in dom(ProjPMap2(F.n,y))
       holds ProjPMap2(F.n,y).x <= ProjPMap2(F.m,y).x by A16,A21,A22; then
      integral+(M1,ProjPMap2(F.n,y)) <= integral+(M1,ProjPMap2(F.m,y))
        by A22,MESFUNC5:85; then
      Integral(M1,ProjPMap2(F.n,y)) <= integral+(M1,ProjPMap2(F.m,y))
        by A22,MESFUNC5:88; then
A23:  Integral(M1,ProjPMap2(F.n,y)) <= Integral(M1,ProjPMap2(F.m,y))
        by A22,MESFUNC5:88;
      (G.n).y = Integral1(M1,F.n).y by A11; then
A24:  (G.n).y = Integral(M1,ProjPMap2(F.n,y)) by Def7;
      (G.m).y = Integral1(M1,F.m).y by A11;
      hence (G.n).y <= (G.m).y by A23,A24,Def7;
     end;
    end;

A25:for y be Element of X2 st y in XX2 holds
      G#y is convergent & lim(G#y) = Integral(M1,ProjPMap2(f,y))
    proof
     let y be Element of X2;
     assume y in XX2;

     defpred P2[Element of NAT,object] means $2 = ProjPMap2(F.$1,y);
A26: for n be Element of NAT ex f be Element of PFuncs(X1,ExtREAL) st P2[n,f]
     proof
      let n be Element of NAT;
      reconsider f = ProjPMap2(F.n,y) as Element of PFuncs(X1,ExtREAL)
        by PARTFUN1:45;
      take f;
      thus thesis;
     end;

     consider FX be sequence of PFuncs(X1,ExtREAL) such that
A27:  for n be Element of NAT holds P2[n,FX.n] from FUNCT_2:sch 3(A26);

A28: for n be Nat holds dom(FX.n) = Measurable-Y-section(A,y)
     proof
      let n be Nat;
      n is Element of NAT by ORDINAL1:def 12; then
      FX.n = ProjPMap2(F.n,y) by A27; then
      dom(FX.n) = Y-section(dom(F.n),y) by Def4; then
      dom(FX.n) = Y-section(A,y) by A4,A6;
      hence dom(FX.n) = Measurable-Y-section(A,y) by MEASUR11:def 7;
     end;

     for m,n be Nat holds dom(FX.m) = dom(FX.n)
     proof
      let m,n be Nat;
      dom(FX.m) = Measurable-Y-section(A,y) by A28;
      hence dom(FX.m) = dom(FX.n) by A28;
     end; then
     reconsider FX as with_the_same_dom Functional_Sequence of X1,ExtREAL
       by MESFUNC8:def 2;

A29: dom(FX.0) = Measurable-Y-section(A,y) by A28;
A30: for n be Nat holds FX.n is (Measurable-Y-section(A,y))-measurable
     proof
      let n be Nat;
      n is Element of NAT by ORDINAL1:def 12; then
A31:  FX.n = ProjPMap2(F.n,y) by A27;
      F.n is_simple_func_in S by A6;
      hence FX.n is (Measurable-Y-section(A,y))-measurable
      by A31,Th31,MESFUNC2:34;
     end;

     ProjPMap2(F.0,y) is nonnegative by A12; then
A32: FX.0 is nonnegative by A27;
A33: for n,m be Nat st n <= m holds
      for x be Element of X1 st x in Measurable-Y-section(A,y) holds
        (FX.n).x <= (FX.m).x
     proof
      let n,m be Nat;
      assume A34: n <= m;
      n is Element of NAT & m is Element of NAT by ORDINAL1:def 12; then
      FX.n = ProjPMap2(F.n,y) & FX.m = ProjPMap2(F.m,y) by A27;
      hence for x be Element of X1 st x in Measurable-Y-section(A,y)
        holds (FX.n).x <= (FX.m).x by A16,A34;
     end;

A36: dom(ProjPMap2(f,y)) = Y-section(A,y) by A4,Def4;

A37: for x be Element of X1 st x in Measurable-Y-section(A,y) holds
       FX#x is convergent & (ProjPMap2(f,y)).x = lim(FX#x)
     proof
      let x be Element of X1;
      reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
      assume x in Measurable-Y-section(A,y); then
      x in Y-section(A,y) by MEASUR11:def 7; then
A38:  [x,y] in dom f by A4,Th25; then
A39:  F#z is convergent & lim(F#z) = f.z by A6;
A40:  for n be Element of NAT holds (FX#x).n = (F#z).n
      proof
       let n be Element of NAT;
A41:   [x,y] in dom(F.n) by A38,A6;
       (FX#x).n = (FX.n).x by MESFUNC5:def 13; then
       (FX#x).n = ProjPMap2(F.n,y).x by A27; then
       (FX#x).n = (F.n).(x,y) by A41,Def4;
       hence (FX#x).n = (F#z).n by MESFUNC5:def 13;
      end;
      hence FX#x is convergent by A39,FUNCT_2:63;
      (ProjPMap2(f,y)).x = f.(x,y) by A38,Def4;
      hence (ProjPMap2(f,y)).x = lim(FX#x) by A39,A40,FUNCT_2:63;
     end; then
     for x be Element of X1 st x in Measurable-Y-section(A,y) holds
       FX#x is convergent; then
     consider I be ExtREAL_sequence such that
A42:  (for n be Nat holds I.n = Integral(M1,FX.n))
    & I is convergent
    & Integral(M1,lim FX) = lim I by A29,A30,A32,A33,MESFUNC9:52;

A43: for n be Element of NAT holds (G#y).n = I.n
     proof
      let n be Element of NAT;
      (G#y).n = (G.n).y by MESFUNC5:def 13; then
      (G#y).n = Integral1(M1,F.n).y by A11; then
      (G#y).n = Integral(M1,ProjPMap2(F.n,y)) by Def7; then
      (G#y).n = Integral(M1,FX.n) by A27;
      hence (G#y).n = I.n by A42;
     end;
     hence G#y is convergent by A42,FUNCT_2:def 8;

A44: G#y = I by A43,FUNCT_2:def 8;
A45: dom(lim FX) = Measurable-Y-section(A,y) by A29,MESFUNC8:def 9;
     for x be Element of X1 st x in dom(lim FX) holds
      (lim FX).x = (ProjPMap2(f,y)).x
     proof
      let x be Element of X1;
      assume A46: x in dom(lim FX); then
      (lim FX).x = lim(FX#x) by MESFUNC8:def 9;
      hence (lim FX).x = (ProjPMap2(f,y)).x by A37,A45,A46;
     end;
     hence lim(G#y) = Integral(M1,ProjPMap2(f,y))
       by A44,A45,A36,A42,PARTFUN1:5,MEASUR11:def 7;
    end; then
A47:for y be Element of X2 st y in XX2 holds G#y is convergent;

    now let n,m be Nat;
     dom(G.n) = XX2 & dom(G.m) = XX2 by A14;
     hence dom(G.n) = dom(G.m);
    end; then
A48:G is with_the_same_dom by MESFUNC8:def 2;
    G.0 = Integral1(M1,F.0) by A11; then
    XX2 = dom(G.0) by FUNCT_2:def 1; then
    consider J be ExtREAL_sequence such that
A49: (for n be Nat holds J.n = Integral(M2,G.n))
   & J is convergent
   & Integral(M2,lim G) = lim J by A14,A20,A47,A48,MESFUNC9:52;
    dom(lim G) = dom(G.0) by MESFUNC8:def 9; then
    dom(lim G) = dom(Integral1(M1,F.0)) by A11; then
    dom(lim G) = XX2 by FUNCT_2:def 1; then
A50:dom(lim G) = dom(Integral1(M1,lim F)) by FUNCT_2:def 1;
    for y be Element of X2 st y in dom(lim G)
     holds (lim G).y = (Integral1(M1,lim F)).y
    proof
     let y be Element of X2;
     assume y in dom(lim G); then
     (lim G).y = lim(G#y) by MESFUNC8:def 9; then
     (lim G).y = Integral(M1,ProjPMap2(f,y)) by A25;
     hence (lim G).y = (Integral1(M1,lim F)).y by A10,Def7;
    end; then
A51:lim G = Integral1(M1,lim F) by A50,PARTFUN1:5;
    for n be Element of NAT holds K.n = J.n
    proof
     let n be Element of NAT;
A52: A = dom(F.n) by A4,A6;
A53: F.n is nonnegative & F.n is_simple_func_in S by A6;
     K.n = integral'(Prod_Measure(M1,M2),F.n) by A6; then
     K.n = Integral(Prod_Measure(M1,M2),F.n) by A53,MESFUNC5:89; then
     K.n = Integral(M2,Integral1(M1,F.n)) by A1,A2,A52,A53,Lm15; then
     K.n = Integral(M2,G.n) by A11;
     hence K.n = J.n by A49;
    end;
    hence Integral(Prod_Measure(M1,M2),f)
      = Integral(M2,Integral1(M1,f)) by A7,A10,A49,A51,FUNCT_2:def 8;
end;

Lm17:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 A be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL
st M1 is sigma_finite & M2 is sigma_finite
 & f is nonnegative & A = dom f & f is A-measurable
 holds Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite and
A3:  f is nonnegative and
A4:  A = dom f and
A5:  f is A-measurable;
    set S = sigma measurable_rectangles(S1,S2);
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider EX1 = {} as Element of S1 by MEASURE1:7;
    Integral(Prod_Measure(M1,M2),f)
     = integral+(Prod_Measure(M1,M2),f) by A3,A4,A5,MESFUNC5:88; then
    consider F be Functional_Sequence of [:X1,X2:],ExtREAL,
       K be ExtREAL_sequence such that
A6:  (for n be Nat holds F.n is_simple_func_in S & dom(F.n) = dom f)
   & (for n be Nat holds F.n is nonnegative)
   & (for n,m be Nat st n <= m holds
       for z be Element of [:X1,X2:] st z in dom f holds (F.n).z <= (F.m).z)
   & (for z be Element of [:X1,X2:] st z in dom f holds
       F#z is convergent & lim(F#z) = f.z)
   & for n be Nat holds K.n = integral'(Prod_Measure(M1,M2),F.n) and
     K is convergent and
A7:  Integral(Prod_Measure(M1,M2),f) = lim K by A3,A4,A5,MESFUNC5:def 15;

    dom(F.0) = dom f by A6; then
A8: dom (lim F) = dom f by MESFUNC8:def 9;
    for z be Element of [:X1,X2:] st z in dom(lim F) holds
     (lim F).z = f.z
    proof
     let z be Element of [:X1,X2:];
     assume A9: z in dom(lim F);
     hence (lim F).z = lim(F#z) by MESFUNC8:def 9
      .= f.z by A9,A8,A6;
    end; then
A10:lim F = f by A8,PARTFUN1:5;

    deffunc G(Nat) = Integral2(M2,F.$1);

    consider G be Functional_Sequence of X1,ExtREAL such that
A11: for n be Nat holds G.n = G(n) from SEQFUNC:sch 1;

A12:for n be Nat, x be Element of X1 holds
     dom(ProjPMap1(F.n,x)) = Measurable-X-section(A,x)
   & ProjPMap1(F.n,x) is (Measurable-X-section(A,x))-measurable
   & ProjPMap1(F.n,x) is nonnegative
    proof
     let n be Nat, x be Element of X1;
A13: dom(F.n) = A by A4,A6; then
     dom(ProjPMap1(F.n,x)) = X-section(A,x) by Def3;
     hence dom(ProjPMap1(F.n,x)) = Measurable-X-section(A,x)
       by MEASUR11:def 6;
     F.n is A-measurable by A6,MESFUNC2:34;
     hence ProjPMap1(F.n,x) is (Measurable-X-section(A,x))-measurable
        by A13,Th47;
     F.n is nonnegative by A6;
     hence ProjPMap1(F.n,x) is nonnegative by Th32;
    end;

A14:for n be Nat holds
      dom(G.n) = XX1 & G.n is XX1-measurable & G.n is nonnegative
    proof
     let n be Nat;
A15: G.n = Integral2(M2,F.n) by A11;
     hence dom(G.n) = XX1 by FUNCT_2:def 1;
     dom(F.n) = A & F.n is A-measurable by A4,A6,MESFUNC2:34;
     hence G.n is XX1-measurable by A2,A15,A6,Th60;
     now let x be object;
      assume x in dom(G.n); then
      reconsider x1=x as Element of X1;
      (G.n).x = Integral(M2,ProjPMap1(F.n,x1))
    & ProjPMap1(F.n,x1) is (Measurable-X-section(A,x1))-measurable
    & dom(ProjPMap1(F.n,x1)) = Measurable-X-section(A,x1) by A12,A15,Def8;
      hence (G.n).x >= 0 by A12,MESFUNC5:90;
     end;
     hence G.n is nonnegative by SUPINF_2:52;
    end;

A16:for x be Element of X1, n,m be Nat st n <= m holds
     for y be Element of X2 st y in Measurable-X-section(A,x) holds
        ProjPMap1(F.n,x).y <= ProjPMap1(F.m,x).y
    proof
     let x be Element of X1, n,m be Nat;
     assume A17: n <= m;
     hereby let y be Element of X2;
       assume y in Measurable-X-section(A,x); then
       y in X-section(A,x) by MEASUR11:def 6; then
       y in X-section(dom(F.n),x) by A4,A6; then
       y in {y where y is Element of X2: [x,y] in dom(F.n)}
         by MEASUR11:def 4; then
A18:   ex y1 be Element of X2 st y1=y & [x,y1] in dom(F.n); then
A19:   [x,y] in dom f by A6; then
       [x,y] in dom(F.m) by A6; then
       ProjPMap1(F.n,x).y = (F.n).(x,y) & ProjPMap1(F.m,x).y = (F.m).(x,y)
         by A18,Def3;
       hence ProjPMap1(F.n,x).y <= ProjPMap1(F.m,x).y by A6,A17,A19;
     end;
    end;

A20:for n,m be Nat st n <= m holds for x be Element of X1 st x in XX1 holds
     (G.n).x <= (G.m).x
    proof
     let n,m be Nat;
     assume A21: n <= m;
     hereby let x be Element of X1;
      assume x in XX1;

A22:  dom(ProjPMap1(F.n,x)) = Measurable-X-section(A,x)
    & dom(ProjPMap1(F.m,x)) = Measurable-X-section(A,x)
    & ProjPMap1(F.n,x) is (Measurable-X-section(A,x))-measurable
    & ProjPMap1(F.m,x) is (Measurable-X-section(A,x))-measurable
    & ProjPMap1(F.n,x) is nonnegative
    & ProjPMap1(F.m,x) is nonnegative by A12;
      for y be Element of X2 st y in dom(ProjPMap1(F.n,x))
       holds ProjPMap1(F.n,x).y <= ProjPMap1(F.m,x).y by A16,A21,A22; then
      integral+(M2,ProjPMap1(F.n,x)) <= integral+(M2,ProjPMap1(F.m,x))
        by A22,MESFUNC5:85; then
      Integral(M2,ProjPMap1(F.n,x)) <= integral+(M2,ProjPMap1(F.m,x))
        by A22,MESFUNC5:88; then
A23:  Integral(M2,ProjPMap1(F.n,x)) <= Integral(M2,ProjPMap1(F.m,x))
        by A22,MESFUNC5:88;
      (G.n).x = Integral2(M2,F.n).x by A11; then
A24:  (G.n).x = Integral(M2,ProjPMap1(F.n,x)) by Def8;
      (G.m).x = Integral2(M2,F.m).x by A11;
      hence (G.n).x <= (G.m).x by A23,A24,Def8;
     end;
    end;

A25:for x be Element of X1 st x in XX1 holds
      G#x is convergent & lim(G#x) = Integral(M2,ProjPMap1(f,x))
    proof
     let x be Element of X1;
     assume x in XX1;

     defpred P2[Element of NAT,object] means $2 = ProjPMap1(F.$1,x);
A26: for n be Element of NAT ex f be Element of PFuncs(X2,ExtREAL) st P2[n,f]
     proof
      let n be Element of NAT;
      reconsider f = ProjPMap1(F.n,x) as Element of PFuncs(X2,ExtREAL)
        by PARTFUN1:45;
      take f;
      thus thesis;
     end;

     consider FX be sequence of PFuncs(X2,ExtREAL) such that
A27:  for n be Element of NAT holds P2[n,FX.n] from FUNCT_2:sch 3(A26);

A28: for n be Nat holds dom(FX.n) = Measurable-X-section(A,x)
     proof
      let n be Nat;
      n is Element of NAT by ORDINAL1:def 12; then
      FX.n = ProjPMap1(F.n,x) by A27; then
      dom(FX.n) = X-section(dom(F.n),x) by Def3; then
      dom(FX.n) = X-section(A,x) by A4,A6;
      hence dom(FX.n) = Measurable-X-section(A,x) by MEASUR11:def 6;
     end;

     for m,n be Nat holds dom(FX.m) = dom(FX.n)
     proof
      let m,n be Nat;
      dom(FX.m) = Measurable-X-section(A,x) by A28;
      hence dom(FX.m) = dom(FX.n) by A28;
     end; then
     reconsider FX as with_the_same_dom Functional_Sequence of X2,ExtREAL
       by MESFUNC8:def 2;

A29: dom(FX.0) = Measurable-X-section(A,x) by A28;
A30: for n be Nat holds FX.n is (Measurable-X-section(A,x))-measurable
     proof
      let n be Nat;
      n is Element of NAT by ORDINAL1:def 12; then
A31:  FX.n = ProjPMap1(F.n,x) by A27;
      F.n is_simple_func_in S by A6;
      hence FX.n is (Measurable-X-section(A,x))-measurable
      by A31,Th31,MESFUNC2:34;
     end;

     ProjPMap1(F.0,x) is nonnegative by A12; then
A32: FX.0 is nonnegative by A27;
A33: for n,m be Nat st n <= m holds
      for y be Element of X2 st y in Measurable-X-section(A,x) holds
        (FX.n).y <= (FX.m).y
     proof
      let n,m be Nat;
      assume A34: n <= m;
      n is Element of NAT & m is Element of NAT by ORDINAL1:def 12; then
      FX.n = ProjPMap1(F.n,x) & FX.m = ProjPMap1(F.m,x) by A27;
      hence for y be Element of X2 st y in Measurable-X-section(A,x)
       holds (FX.n).y <= (FX.m).y by A16,A34;
     end;

A36: dom(ProjPMap1(f,x)) = X-section(A,x) by A4,Def3;

A37: for y be Element of X2 st y in Measurable-X-section(A,x) holds
       FX#y is convergent & (ProjPMap1(f,x)).y = lim(FX#y)
     proof
      let y be Element of X2;
      reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
      assume y in Measurable-X-section(A,x); then
      y in X-section(A,x) by MEASUR11:def 6; then
A38:  [x,y] in dom f by A4,Th25; then
A39:  F#z is convergent & lim(F#z) = f.z by A6;
A40:  for n be Element of NAT holds (FX#y).n = (F#z).n
      proof
       let n be Element of NAT;
A41:   [x,y] in dom(F.n) by A38,A6;
       (FX#y).n = (FX.n).y by MESFUNC5:def 13; then
       (FX#y).n = ProjPMap1(F.n,x).y by A27; then
       (FX#y).n = (F.n).(x,y) by A41,Def3;
       hence (FX#y).n = (F#z).n by MESFUNC5:def 13;
      end;
      hence FX#y is convergent by A39,FUNCT_2:63;
      (ProjPMap1(f,x)).y = f.(x,y) by A38,Def3;
      hence (ProjPMap1(f,x)).y = lim(FX#y) by A39,A40,FUNCT_2:63;
     end; then
     for y be Element of X2 st y in Measurable-X-section(A,x) holds
       FX#y is convergent; then
     consider I be ExtREAL_sequence such that
A42:  (for n be Nat holds I.n = Integral(M2,FX.n))
    & I is convergent
    & Integral(M2,lim FX) = lim I by A29,A30,A32,A33,MESFUNC9:52;

A43: for n be Element of NAT holds (G#x).n = I.n
     proof
      let n be Element of NAT;
      (G#x).n = (G.n).x by MESFUNC5:def 13; then
      (G#x).n = Integral2(M2,F.n).x by A11; then
      (G#x).n = Integral(M2,ProjPMap1(F.n,x)) by Def8; then
      (G#x).n = Integral(M2,FX.n) by A27;
      hence (G#x).n = I.n by A42;
     end;
     hence G#x is convergent by A42,FUNCT_2:def 8;

A44: G#x = I by A43,FUNCT_2:def 8;
A45: dom(lim FX) = Measurable-X-section(A,x) by A29,MESFUNC8:def 9;
     for y be Element of X2 st y in dom(lim FX) holds
      (lim FX).y = (ProjPMap1(f,x)).y
     proof
      let y be Element of X2;
      assume A46: y in dom(lim FX); then
      (lim FX).y = lim(FX#y) by MESFUNC8:def 9;
      hence (lim FX).y = (ProjPMap1(f,x)).y by A37,A45,A46;
     end;
     hence lim(G#x) = Integral(M2,ProjPMap1(f,x))
       by A44,A45,A36,A42,PARTFUN1:5,MEASUR11:def 6;
    end; then
A47:for x be Element of X1 st x in XX1 holds G#x is convergent;

    now let n,m be Nat;
     dom(G.n) = XX1 & dom(G.m) = XX1 by A14;
     hence dom(G.n) = dom(G.m);
    end; then
A48:G is with_the_same_dom by MESFUNC8:def 2;

    G.0 = Integral2(M2,F.0) by A11; then
    XX1 = dom(G.0) by FUNCT_2:def 1; then
    consider J be ExtREAL_sequence such that
A49: (for n be Nat holds J.n = Integral(M1,G.n))
   & J is convergent
   & Integral(M1,lim G) = lim J by A14,A20,A47,A48,MESFUNC9:52;
    dom(lim G) = dom(G.0) by MESFUNC8:def 9; then
    dom(lim G) = dom(Integral2(M2,F.0)) by A11; then
    dom(lim G) = XX1 by FUNCT_2:def 1; then
A50:dom(lim G) = dom(Integral2(M2,lim F)) by FUNCT_2:def 1;
    for x be Element of X1 st x in dom(lim G)
     holds (lim G).x = (Integral2(M2,lim F)).x
    proof
     let x be Element of X1;
     assume x in dom(lim G); then
     (lim G).x = lim(G#x) by MESFUNC8:def 9; then
     (lim G).x = Integral(M2,ProjPMap1(f,x)) by A25;
     hence (lim G).x = (Integral2(M2,lim F)).x by A10,Def8;
    end; then
A51:lim G = Integral2(M2,lim F) by A50,PARTFUN1:5;
    for n be Element of NAT holds K.n = J.n
    proof
     let n be Element of NAT;
A52: A = dom(F.n) by A4,A6;
A53: F.n is nonnegative & F.n is_simple_func_in S by A6;
     K.n = integral'(Prod_Measure(M1,M2),F.n) by A6; then
     K.n = Integral(Prod_Measure(M1,M2),F.n) by A53,MESFUNC5:89; then
     K.n = Integral(M1,Integral2(M2,F.n)) by A1,A2,A52,A53,Lm15; then
     K.n = Integral(M1,G.n) by A11;
     hence K.n = J.n by A49;
    end;
    hence Integral(Prod_Measure(M1,M2),f)
      = Integral(M1,Integral2(M2,f)) by A7,A10,A49,A51,FUNCT_2:def 8;
end;

Lm18:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 A be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL
st M1 is sigma_finite & M2 is sigma_finite
 & f is nonpositive & A = dom f & f is A-measurable
 holds Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite and
A3:  f is nonpositive and
A4:  A = dom f and
A5:  f is A-measurable;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
    reconsider g = -f as nonnegative PartFunc of [:X1,X2:],ExtREAL by A3;
A6: g = (-1)(#)f by MESFUNC2:9;
    -Integral1(M1,f) = (-1)(#)Integral1(M1,f) & dom(Integral1(M1,f)) = XX2
  & Integral1(M1,f) is nonpositive & Integral1(M1,f) is XX2-measurable
      by A1,A3,A4,A5,Th67,Th59,MESFUNC2:9,FUNCT_2:def 1; then
A7: Integral(M2,-Integral1(M1,f)) = (-1)*Integral(M2,Integral1(M1,f))
      by Lm2;
    A = dom g & g is A-measurable by A4,A5,MESFUNC1:def 7,MEASUR11:63; then
    Integral(Prod_Measure(M1,M2),g) = Integral(M2,Integral1(M1,g))
      by A1,A2,Lm16; then
    (-1) * Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,g))
      by A3,A4,A5,A6,Lm2; then
    (-1) * Integral(Prod_Measure(M1,M2),f) = Integral(M2,-Integral1(M1,f))
      by A4,A5,Th73;
    hence Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
      by A7,XXREAL_3:68;
end;

Lm19:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 A be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL
st M1 is sigma_finite & M2 is sigma_finite
 & f is nonpositive & A = dom f & f is A-measurable
 holds Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M1 is sigma_finite and
A2:  M2 is sigma_finite and
A3:  f is nonpositive and
A4:  A = dom f and
A5:  f is A-measurable;
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider g = -f as nonnegative PartFunc of [:X1,X2:],ExtREAL by A3;
A6: g = (-1)(#)f by MESFUNC2:9;
    -Integral2(M2,f) = (-1)(#)Integral2(M2,f) & dom(Integral2(M2,f)) = XX1
  & Integral2(M2,f) is nonpositive & Integral2(M2,f) is XX1-measurable
      by A2,A3,A4,A5,Th67,Th60,MESFUNC2:9,FUNCT_2:def 1; then
A7: Integral(M1,-Integral2(M2,f)) = (-1)*Integral(M1,Integral2(M2,f))
      by Lm2;
    A = dom g & g is A-measurable by A4,A5,MESFUNC1:def 7,MEASUR11:63; then
    Integral(Prod_Measure(M1,M2),g) = Integral(M1,Integral2(M2,g))
      by A1,A2,Lm17; then
    (-1) * Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,g))
      by A3,A4,A5,A6,Lm2; then
    (-1) * Integral(Prod_Measure(M1,M2),f) = Integral(M1,-Integral2(M2,f))
      by A4,A5,Th73;
    hence Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
      by A7,XXREAL_3:68;
end;

theorem :: Fubini's theorem
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 A be Element of sigma measurable_rectangles(S1,S2),
 f be PartFunc of [:X1,X2:],ExtREAL
st M1 is sigma_finite & M2 is sigma_finite
 & (f is nonnegative or f is nonpositive) & A = dom f & f is A-measurable
 holds Integral(Prod_Measure(M1,M2),f) = Integral(M2,Integral1(M1,f))
     & Integral(Prod_Measure(M1,M2),f) = Integral(M1,Integral2(M2,f))
by Lm16,Lm18,Lm17,Lm19;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 2.160 Sekunden  ¤

*Bot Zugriff