Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 317 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/.

environ

 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, VALUED_0, FUNCT_2, PARTFUN1,
      MEASURE1, ORDINAL2, SERIES_1, MESFUNC5, SEQ_2, SEQFUNC, PBOOLE, MESFUNC9,
      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, FINSEQ_1, FINSEQ_4,
      SUPINF_2, PROB_2, SEQFUNC, MEASURE1, MESFUNC1, MESFUNC2, MESFUNC3,
      MESFUNC5, MESFUNC8, MESFUNC9, EXTREAL1, MEASUR10, MCART_1, MEASUR11,
      MESFUN11, DBLSEQ_3;
 constructors SEQFUNC, PROB_3, MESFUNC8, MESFUNC9, EXTREAL1, SUPINF_1,
      MESFUNC2, DBLSEQ_3, MEASUR11, MESFUNC3, FINSEQ_4, MESFUN11;
 registrations ORDINAL1, XBOOLE_0, RELAT_1, SUBSET_1, ROUGHS_1, XXREAL_0,
      XREAL_0, NAT_1, INT_1, MEMBERED, FUNCT_1, FINSEQ_1, FUNCT_2, NUMBERS,
      VALUED_0, MESFUNC9, RELSET_1, MEASURE1, PARTFUN1, XXREAL_3, CARD_1,
      DBLSEQ_3, MEASURE9, MEASUR10, MEASUR11, MESFUNC5, MESFUN11;
 requirements BOOLE, SUBSET, NUMERALS, ARITHM, REAL;
 equalities XCMPLX_0, FINSEQ_1, BINOP_1;
 expansions TARSKI, XBOOLE_0, MEASUR11;
 theorems TARSKI, XBOOLE_0, XREAL_0, FINSEQ_1, NAT_1, FUNCT_1, CARD_3,
      XXREAL_0, ZFMISC_1, FINSEQ_3, XBOOLE_1, PROB_2, PROB_1, XXREAL_3,
      MEASURE1, VALUED_0, FUNCT_2, RELAT_1, MESFUNC5, EXTREAL1, MESFUNC9,
      FINSEQ_2, PARTFUN1, ORDINAL1, MESFUNC1, SUPINF_2, MESFUNC8, FUNCT_3,
      MESFUNC2, MEASUR10, SUBSET_1, DBLSEQ_3, FINSEQ_5, MEASUR11, MESFUNC3,
      ENUMSET1, MESFUN11;
 schemes FINSEQ_1, NAT_1, FUNCT_2, FINSEQ_2, PARTFUN1, FUNCT_1, SEQFUNC;

begin :: Extended real valued characteristic function

definition
  let A,X be set, er be ExtReal;
  func chi(er,A,X) -> Function of X,ExtREAL means :Def1:
  for x be object st x in X holds
    (x in A implies it.x = er) & (not x in A implies it.x = 0);
existence
proof
    defpred P[object,object] means ($1 in A implies $2 = er) &
      (not $1 in A implies $2 = 0);
A1: for x being object st x in X ex y being object st P[x,y]
    proof
      let x be object;
      assume x in X;
      not x in A implies ex y be object st y = {} & (x in A implies y = er)
      & (not x
      in A implies y = {});
      hence thesis;
    end;
A2: for x,y1,y2 being object st x in X & P[x,y1] & P[x,y2] holds y1 = y2;
    consider f being Function such that
A3:  dom f = X &
     for x being object st x in X holds P[x,f.x] from FUNCT_1:sch 2(A2,A1);
    for x being object st x in X holds f.x in ExtREAL
    proof
     let x be object;
     assume A4: x in X;
     per cases;
     suppose x in A; then
      f.x = er by A3,A4;
      hence f.x in ExtREAL by XXREAL_0:def 1;
     end;
     suppose not x in A; then
      f.x = 0. by A3,A4;
      hence f.x in ExtREAL;
     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 X,ExtREAL such that
A4: for x being object st x in X holds (x in A implies f1.x = er) &
   (not x in 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);
    for x being object st x in X holds f1.x=f2.x
    proof
      let x be object;
      assume
A7:   x in X;
      then
A8:   not x in A implies f1.x = 0 & f2.x = 0 by A4,A6;
      x in A implies f1.x = er & f2.x = er by A4,A6,A7;
      hence thesis by A8;
    end;
    hence thesis by FUNCT_2:12;
  end;
end;

theorem Th1:
for X be non empty set, A be set, r be Real holds r(#)chi(A,X) = chi(r,A,X)
proof
   let X be non empty set, A be set, r be Real;
   for x be Element of X holds (r(#)chi(A,X)).x = chi(r,A,X).x
   proof
    let x be Element of X;
    x in X; then
    x in dom(r(#)chi(A,X)) by FUNCT_2:def 1; then
A2: (r(#)chi(A,X)).x = r * chi(A,X).x by MESFUNC1:def 6;
    per cases;
    suppose x in A; then
     chi(A,X).x = 1 & chi(r,A,X).x = r by Def1,FUNCT_3:def 3;
     hence (r(#)chi(A,X)).x = chi(r,A,X).x by A2,XXREAL_3:81;
    end;
    suppose not x in A; then
     chi(A,Xjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
     hence (r(#)chi(A,X)).x = chi(r,A,X).x by A2;
    end;
   end;
   hence thesis by FUNCT_2:def 8;
end;

theorem Th2:
for X be non empty set, A be set holds
  chi(+infty,A,X) = Xchi(A,X) & chi(-infty,A,X) = -Xchi(A,X)
proof
   let X be non empty set, A be set;
   for x be Element of X holds chi(+infty,A,X).x = Xchi(A,X).x
   proof
    let x be Element of X;
    per cases;
    suppose x in A; then
     chi(+infty,A,X).x = +infty & Xchi(A,X).x = +infty
       by Def1,MEASUR10:def 7;
     hence chi(+infty,A,X).x = Xchi(A,X).x;
    end;
    suppose not x in A; then
     chi(+infty,A,X).x = 0 & Xchi(A,X).x = 0 by Def1,MEASUR10:def 7;
     hence chi(+infty,A,X).x = Xchi(A,X).x;
    end;
   end;
   hence chi(+infty,A,X) = Xchi(A,X) by FUNCT_2:def 8;
   for x be Element of X holds chi(-infty,A,X).x = (-Xchi(A,X)).x
   proof
    let x be Element of X;
    x in X; then
A1: x in dom (-Xchi(A,X)) by FUNCT_2:def 1; then
A2: (-Xchi(A,X)).x = - (Xchi(A,X).x) by MESFUNC1:def 7;
    per cases;
    suppose x in A; then
     chi(-infty,A,X).x = -infty & Xchi(A,X).x = +infty
       by Def1,MEASUR10:def 7;
     hence chi(-infty,A,X).x = (-Xchi(A,X)).x by A1,XXREAL_3:6,MESFUNC1:def 7;
    end;
    suppose not x in A; then
     chi(-infty,A,X).x = 0 & Xchi(A,X).x = 0 by Def1,MEASUR10:def 7;
     hence chi(-infty,A,X).x = (-Xchi(A,X)).x by A2;
    end;
   end;
   hence chi(-infty,A,X) = -Xchi(A,X) by FUNCT_2:def 8;
end;

theorem Th3:
for X,A be set holds chi(A,X) is without+infty without-infty
proof
   let X,A be set;
   rng chi(A,X) c= {0,1} by FUNCT_3:39; then
   not +infty in rng chi(A,X) & not -infty in rng chi(A,X);
   hence chi(A,X) is without+infty without-infty by MESFUNC5:def 3,def 4;
end;

theorem Th4:
for X be non empty set, A be set, r be Real holds
  rng chi(r,A,X) c= {0,r} & chi(r,A,X) is without+infty without-infty
proof
   let X be non empty set, A be set, r be Real;
   now let y be object;
    assume y in rng chi(r,A,X); then
    consider x be object such that
A1:  x in dom chi(r,A,X) & y = chi(r,A,X).x by FUNCT_1:def 3;
    per cases;
    suppose x in A; then
     chi(r,A,X).x = r by A1,Def1;
     hence y in {0,r} by A1,TARSKI:def 2;
    end;
    suppose not x in A; then
     chi(r,A,X).x = 0 by A1,Def1;
     hence y in {0,r} by A1,TARSKI:def 2;
    end;
   end;
   hence rng chi(r,A,X) c= {0,r};
   chi(A,X) is without+infty without-infty by Th3; then
   r(#)chi(A,X) is without+infty without-infty;
   hence chi(r,A,X) is without+infty without-infty by Th1;
end;

theorem Th5:
for X be non empty set, S be SigmaField of X,
 f be non empty PartFunc of X,ExtREAL, M be sigma_Measure of S
  st f is_simple_func_in S
 ex E be non empty Finite_Sep_Sequence of S, a be FinSequence of ExtREAL,
  r be FinSequence of REAL st
  E,a are_Re-presentation_of f &
  for n be Nat holds
    a.n = r.n & f|(E.n) = (chi(r.n,E.n,X))|(E.n) & (E.n = {} implies r.n = 0)
proof
    let X be non empty set, S be SigmaField of X,
    f be non empty PartFunc of X,ExtREAL,
    M be sigma_Measure of S;
    assume A1: f is_simple_func_in S; then
    consider E be Finite_Sep_Sequence of S,
      b be FinSequence of ExtREAL such that
A2:  E,b are_Re-presentation_of f by MESFUNC3:12;
A3: dom f = union rng E & dom E = dom b
  & for n be Nat st n in dom E for x be object st x in E.n holds f.x = b.n
      by A2,MESFUNC3:def 1;
    reconsider E as non empty Finite_Sep_Sequence of S by A3,ZFMISC_1:2;
A4: for n be Nat st E.n <> {} holds b.n in REAL
    proof
     let n be Nat;
     assume A5: E.n <> {}; then
     consider x be object such that
A6:   x in E.n by XBOOLE_0:def 1;
A7:  n in dom E by A5,FUNCT_1:def 2; then
     E.n in rng E by FUNCT_1:3; then
     x in dom f by A3,A6,TARSKI:def 4; then
A8:  f.x in rng f by FUNCT_1:3;
     rng f is Subset of REAL by A1,MESFUNC2:def 4,32; then
     f.x in REAL by A8;
     hence b.n in REAL by A2,A6,A7,MESFUNC3:def 1;
    end;
    defpred P1[Nat,object] means
     (E.$1 <> {} implies $2 = b.$1) & (E.$1 = {} implies $2 = 0);
A9: for n be Nat st n in Seg len E ex a be Element of ExtREAL st P1[n,a]
    proof
     let n be Nat;
     assume n in Seg len E;
     per cases;
     suppose A10: E.n <> {};
      take a = b.n;
      thus P1[n,a] by A10;
     end;
     suppose A11: E.n = {};
      take a = 0.;
      thus P1[n,a] by A11;
     end;
    end;

    consider a be FinSequence of ExtREAL such that
A12: dom a = Seg len E & for n be Nat st n in Seg len E holds P1[n,a.n]
      from FINSEQ_1:sch 5(A9);

    defpred P2[Nat,object] means $2 = a.$1;

A13:for n be Nat st n in Seg len E ex r be Element of REAL st P2[n,r]
    proof
     let n be Nat;
     assume A14: n in Seg len E;
     per cases;
     suppose A15: E.n <> {}; then
      a.n = b.n by A12,A14; then
      reconsider r = a.n as Element of REAL by A4,A15;
      take r;
      thus P2[n,r];
     end;
     suppose E.n = {}; then
      a.n = 0 by A12,A14; then
      reconsider r = a.n as Element of REAL by XREAL_0:def 1;
      take r;
      thus P2[n,r];
     end;
    end;

    consider r be FinSequence of REAL such that
A16: dom r = Seg len E & for n be Nat st n in Seg len E holds P2[n,r.n]
      from FINSEQ_1:sch 5(A13);

    take E,a,r;

A17:dom a = dom E by A12,FINSEQ_1:def 3;

A18:for n be Nat st n in dom E for x be object st x in E.n holds f.x = a.n
    proof
     let n be Nat;
     assume A19: n in dom E; then
A20: n in Seg len E by FINSEQ_1:def 3;
     let x be object;
     assume A21: x in E.n; then
     f.x = b.n by A2,A19,MESFUNC3:def 1;
     hence f.x = a.n by A12,A20,A21;
    end;
    hence E,a are_Re-presentation_of f by A3,A17,MESFUNC3:def 1;

    thus for n be Nat holds a.n = r.n & f|(E.n) = (chi(r.n,E.n,X))|(E.n) &
     (E.n = {} implies r.n = 0)
    proof
     let n be Nat;
     per cases;
     suppose A22: E.n <> {}; then
A23:  n in dom E by FUNCT_1:def 2; then
      n in Seg len E by FINSEQ_1:def 3;
      hence A24:  a.n = r.n by A16;

      E.n c= dom f by A3,A23,FUNCT_1:3,ZFMISC_1:74; then
A27:  dom (f|(E.n)) = E.n by RELAT_1:62;

      dom(chi(r.n,E.n,X)) = X by FUNCT_2:def 1; then
A28:  dom((chi(r.n,E.n,X))|(E.n)) = dom(f|(E.n)) by A27,RELAT_1:62;

      for x be Element of X st x in dom (f|(E.n)) holds
       (f|(E.n)).x = ( (chi(r.n,E.n,X))|(E.n) ).x
      proof
       let x be Element of X;
       assume A29: x in dom(f|(E.n)); then
       ( (chi(r.n,E.n,X))|(E.n) ).x = chi(r.n,E.n,X).x by A27,FUNCT_1:49
        .= a.n by A24,A27,A29,Def1
        .= f.x by A18,A23,A27,A29;
       hence (f|(E.n)).x = ( (chi(r.n,E.n,X))|(E.n) ).x by A29,FUNCT_1:47;
      end;
      hence thesis by A22,A28,PARTFUN1:5;
     end;
     suppose z1: E.n = {};
      now per cases;
       suppose n in dom E; then
A30:    n in Seg len E by FINSEQ_1:def 3;
        hence a.n = 0 by A12,z1;
        hence r.n = 0 by A30,A16;
       end;
       suppose A31: not n in dom E;
        hence a.n = 0 by A17,FUNCT_1:def 2;
        not n in Seg len E by A31,FINSEQ_1:def 3;
        hence r.n = 0 by A16,FUNCT_1:def 2;
       end;
      end;
      hence thesis by z1;
     end;
    end;
end;

definition
 let F be FinSequence-like Function;
 redefine attr F is disjoint_valued means :Def2:
  for m,n be Nat st m in dom F & n in dom F & m <> n holds F.m misses F.n;
 compatibility
 proof
  thus F is disjoint_valued implies
   (for m,n be Nat st m in dom F & n in dom F & m <> n holds F.m misses F.n)
     by PROB_2:def 2;
  assume A1: for m,n be Nat st m in dom F & n in dom F & m <> n holds
    F.m misses F.n;
  now let m,n be object;
   assume A2: m <> n;
   per cases;
   suppose not m in dom F or not n in dom F; then
    F.m = {} or F.n = {} by FUNCT_1:def 2;
    hence F.m misses F.n;
   end;
   suppose m in dom F & n in dom F;
    hence F.m misses F.n by A1,A2;
   end;
  end;
  hence F is disjoint_valued by PROB_2:def 2;
 end;
end;

theorem Th6:
for X be non empty set, S be SigmaField of X, E1,E2 be Element of S
 st E1 misses E2 holds <* E1, E2 *> is Finite_Sep_Sequence of S
proof
   let X be non empty set, S be SigmaField of X, E1,E2 be Element of S;
   assume A0: E1 misses E2;
A2:dom <*E1,E2*> = {1,2} by FINSEQ_1:92;
   now let m,n be object;
    assume A3: m <> n;
    per cases;
    suppose m in dom <*E1,E2*> & n in dom <*E1,E2*>; then
     (m = 1 or m = 2) & (n = 1 or n = 2) by A2,TARSKI:def 2; then
     (<*E1,E2*>.m = E1 & <*E1,E2*>.n = E2)
       or (<*E1,E2*>.m = E2 & <*E1,E2*>.n = E1) by A3;
     hence <*E1,E2*>.m misses <*E1,E2*>.n by A0;
    end;
    suppose not m in dom <*E1,E2*> or not n in dom <*E1,E2*>; then
     <*E1,E2*>.m = {} or <*E1,E2*>.n = {} by FUNCT_1:def 2;
     hence <*E1,E2*>.m misses <*E1,E2*>.n;
    end;
   end; then
   <*E1,E2 *> is disjoint_valued;
   hence <*E1,E2*> is Finite_Sep_Sequence of S;
end;

theorem Th7:
for X be non empty set, A1,A2 be Subset of X, r1,r2 be Real holds
 <*chi(r1,A1,X),chi(r2,A2,X)*> is summable FinSequence of Funcs(X,ExtREAL)
proof
   let X be non empty set, A1,A2 be Subset of X, r1,r2 be Real;
   reconsider f1=chi(r1,A1,X), f2=chi(r2,A2,X) as Element of Funcs(X,ExtREAL)
     by FUNCT_2:8;
   reconsider F = <*f1,f2*> as FinSequence of Funcs(X,ExtREAL);
A1:f1 is without+infty without-infty & f2 is without+infty without-infty
     by Th4;
A2:dom F = {1,2} by FINSEQ_1:92;
   now let n be Nat;
    assume n in dom F; then
    n = 1 or n = 2 by A2,TARSKI:def 2;
    hence F.n is without-infty by A1;
   end; then
   F is without_-infty-valued;
   hence <*chi(r1,A1,X),chi(r2,A2,X)*> is
     summable FinSequence of Funcs(X,ExtREAL);
end;

theorem Th8:
for X be non empty set, F be summable FinSequence of Funcs(X,ExtREAL)
 st len F >= 2 holds (Partial_Sums F)/.2 = F/.1 + F/.2
proof
   let X be non empty set, F be summable FinSequence of Funcs(X,ExtREAL);
   assume A1: len F >= 2; then
   1+1 <= len F; then
A3:1 < len F by NAT_1:13; then
A6:1 in dom F & 2 in dom F by A1,FINSEQ_3:25;
   len F = len (Partial_Sums F) by MEASUR11:def 11; then
A5:1 in dom (Partial_Sums F) & 2 in dom(Partial_Sums F)
     by A1,A3,FINSEQ_3:25; then
A4:(Partial_Sums F)/.1 = (Partial_Sums F).1 by PARTFUN1:def 6
     .= F.1 by MEASUR11:def 11 .= F/.1 by A6,PARTFUN1:def 6;
   (Partial_Sums F).(1+1) = (Partial_Sums F)/.1 + F/.(1+1)
     by A1,NAT_1:13,MEASUR11:def 11;
   hence (Partial_Sums F)/.2 = F/.1 + F/.2 by A4,A5,PARTFUN1:def 6;
end;

theorem Th9:
for X be non empty set, f be Function of X,ExtREAL
 holds f + (X --> 0.) = f
proof
   let X be non empty set, f be Function of X,ExtREAL;
   dom f = X by FUNCT_2:def 1;
   hence thesis by MESFUN11:27;
end;

theorem Th10:
for X be non empty set, F be summable FinSequence of Funcs(X,ExtREAL) holds
   dom F = dom (Partial_Sums F)
 & (for n be Nat st n in dom F holds (Partial_Sums F)/.n = (Partial_Sums F).n)
 & (for n be Nat, x be Element of X st 1 <= n < len F holds
     ((Partial_Sums F)/.(n+1)).x = ((Partial_Sums F)/.n).x + (F/.(n+1)).x)
proof
   let X be non empty set, F be summable FinSequence of Funcs(X,ExtREAL);
   len F = len (Partial_Sums F) by MEASUR11:def 11;
   hence A1: dom F = dom(Partial_Sums F) by FINSEQ_3:29;
   hence for n be Nat st n in dom F holds
     (Partial_Sums F)/.n = (Partial_Sums F).n by PARTFUN1:def 6;
   thus for n be Nat, x be Element of X st 1 <= n < len F holds
     ((Partial_Sums F)/.(n+1)).x = ((Partial_Sums F)/.n).x + (F/.(n+1)).x
   proof
    let n be Nat, x be Element of X;
    assume A3: 1 <= n < len F; then
    1 <= n+1 <= len F by NAT_1:13; then
A4: (Partial_Sums F)/.(n+1) = (Partial_Sums F).(n+1)
      by A1,PARTFUN1:def 6,FINSEQ_3:25
     .= ((Partial_Sums F)/.n) + F/.(n+1) by A3,MEASUR11:def 11;
    dom ((Partial_Sums F)/.(n+1)) = X by FUNCT_2:def 1;
    hence ((Partial_Sums F)/.(n+1)).x = ((Partial_Sums F)/.n).x + (F/.(n+1)).x
      by A4,MESFUNC1:def 3;
   end;
end;

theorem Th11:
for X be non empty set, S be SigmaField of X, f be Function of X,java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
 E be Finite_Sep_Sequence of S, F be summable FinSequence of Funcs(X,ExtREAL)
 st dom E = dom F & dom f = union rng E
  & (for n be Nat st n in dom F ex r be Real st F/.n = r(#)chi(E.n,X))
  & f = (Partial_Sums F)/.(len F) holds
  (for x be Element of X, m,n be Nat st
     m in dom F & n in dom F & x in E.m & m <> n holds (F/.n).x = 0) &
  (for x be Element of X, m,n be Nat st
     m in dom F & n in dom F & x in E.m & n < m holds
       ((Partial_Sums F)/.n).x = 0) &
  (for x be Element of X, m,n be Nat st
     m in dom F & n in dom F & x in E.m & n >= m holds
       ((Partial_Sums F)/.n).x = f.x) &
  (for x be Element of X, m be Nat st
     m in dom F & x in E.m holds (F/.m).x = f.x) &
  f is_simple_func_in S
proof
    let X be non empty set, S be SigmaField of X, f be Function of X,ExtREAL,
    E be Finite_Sep_Sequence of S,
    F be summable FinSequence of Funcs(X,ExtREAL);
    assume that
A1:  dom E = dom F and
A2:  dom f = union rng E and
A3:  for n be Nat st n in dom F ex r be Real st F/.n = r(#)chi(E.n,X) and
A4:  f = (Partial_Sums F)/.(len F);

    E <> {} by A2,ZFMISC_1:2; then
    1 <= len E by FINSEQ_1:20; then
    1 <= len F by 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
      m in dom F & n in dom F & x in E.m & m <> n holds (F/.n).x = 0
    proof
     let x be Element of X, m,n be Nat;
     assume A7: m in dom F & n in dom F & x in E.m; then
     consider rn be Real such that
A8:   F/.n = rn(#)chi(E.n,X) by A3;

     dom(F/.n) = X by FUNCT_2:def 1; then
A9:  (F/.n).x = rn * chi(E.n,X).x by A8,MESFUNC1:def 6;
     thus m <> n implies (F/.n).x = 0
     proof
      assume m <> n; then
      not x in E.n by A7,XBOOLE_0:3,PROB_2:def 2; then
      chi(E.n,X).x = 0 by FUNCT_3:def 3;
      hence (F/.n).x = 0 by A9;
     end;
    end;

    thus
A10:for x be Element of X, m,n be Nat st
     m in dom F & n in dom F & x in E.m & n < m holds
       ((Partial_Sums F)/.n).x = 0
    proof
     let x be Element of X, m,n be Nat;
     assume A11: m in dom F & n in dom F & x in E.m & n < m;
     defpred P[Nat] means
      $1 in dom F & $1 < m implies ((Partial_Sums F)/.$1).x = 0;

A12: P[0] by FINSEQ_3:25;

A13: for k be Nat st P[k] holds P[k+1]
     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;
      per cases;
      suppose A17: k+1 = 1;
       ((Partial_Sums F)/.(k+1)) = (Partial_Sums F).(k+1) by A15,Th10
       .= F.(k+1) by A17,MEASUR11:def 11
       .= F/.(k+1) by A15,PARTFUN1:def 6;
       hence ((Partial_Sums F)/.(k+1)).x = 0 by A6,A11,A15;
      end;
      suppose A18: k+1 <> 1;
       1 <= k+1 <= len F by A15,FINSEQ_3:25; then
       1 < k+1 <= len F by A18,XXREAL_0:1; then
       1 <= k < len F by NAT_1:13; then
       ((Partial_Sums F)/.(k+1)).x = 0 + (F/.(k+1)).x
          by A14,A15,NAT_1:13,FINSEQ_3:25,Th10;
       hence ((Partial_Sums F)/.(k+1)).x = 0 by A16;
      end;
     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 dom F & x in E.m & n >= m holds
       ((Partial_Sums F)/.n).x = f.x
    proof
     let x be Element of X, m,n be Nat;
     assume A18: m in dom F & n in dom F & x in E.m & n >= m; then
A24: 1 <= m by FINSEQ_3:25;
     defpred P[Nat] means
      $1 in dom F & $1 >= m implies ((Partial_Sums F)/.$1).x = (F/.m).x;

A19: P[0] by FINSEQ_3:25;
A20: for k be Nat st P[k] holds P[k+1]
     proof
      let k be Nat;
      assume A21: P[k];
      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.(k+1) by A23,MEASUR11:def 11
       .= F/.(k+1) by A22,PARTFUN1:def 6;
       hence ((Partial_Sums F)/.(k+1)).x = (F/.m).x by A22,A23,A24,XXREAL_0:1;
      end;
      suppose A25: k+1 <> 1;
       1 <= k+1 <= len F by A22,FINSEQ_3:25; then
       1 < k+1 <= len F by A25,XXREAL_0:1; then
A26:   1 <= k < len F by NAT_1:13; then
A27:   k in dom F by FINSEQ_3:25;
       per cases;
       suppose A28: k+1 = m; then
         k < m by NAT_1:13; then
         ((Partial_Sums F)/.k).x = 0 by A10,A18,A27; then
         ((Partial_Sums F)/.(k+1)).x = 0 + (F/.(k+1)).x by A26,Th10;
         hence ((Partial_Sums F)/.(k+1)).x = (F/.m).x by A28,XXREAL_3:4;
       end;
       suppose A29: k+1 <> m; then
        m < k+1 by A22,XXREAL_0:1; then
        ((Partial_Sums F)/.(k+1)).x
         = (F/.m).x + (F/.(k+1)).x by A21,A26,FINSEQ_3:25,NAT_1:13,Th10
        .= (F/.m).x + 0 by A6,A18,A22,A29;
        hence ((Partial_Sums F)/.(k+1)).x = (F/.m).x by XXREAL_3:4;
       end;
      end;
     end;

A30: for k be Nat holds P[k] from NAT_1:sch 2(A19,A20); then
     ((Partial_Sums F)/.n).x = (F/.m).x by A18;
     hence ((Partial_Sums F)/.n).x = f.x by A4,A5,A18,A30,FINSEQ_3:25;
    end;

f=*chiE.,).byMdef6java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
A31:forn     inn   inEnholds x = .y
minF&xin .holds F.).x =f.x
    proof
     ,mbe Nat;
     assume A32: m in dom F & x in E.m; then
A33: 1 <= m <= lenA45:  F/n =r#En) A;
A34: ((Partial_Sums F)/.m).x = f.x by A17,A32;

     per cases;
     suppose m = 1; then
      (Partial_Sums F).m = F.m by MEASUR11:def 11; then
      (Partial_Sums F)/.m = F.m by A32,Th10;
      hence     domchiE.n,) =XbyFUNCT_2:def 1; then
     end;
     suppose m <> 1; then
A35:  m > 1 by A33,XXREAL_0:1;

      reconsider m1 = m-1 as Nat by A33;
: m = m1  1 then
A37:  1 <= m1 < len F A47: chi(E.n,X).x = 1 & chi.,).y = 1 by A44,:def ;
      m1 in dom F & m1 < m by A36,NAT_1:19,FINSEQ_3:25; then
     (Partial_Sums F)/.m1).x = 0 by A10,A32; then
      f.x = 0 + (F/.(m1+1)).x by A34,A37,Th10;
      hence (F/.m).x = f.x by XXREAL_3:4;
     end;
    end;

A38:for  hence thesis;
    proof
     let x be Element of X;
     assume x in dom f; then
     consider A be set such java.lang.StringIndexOutOfBoundsException: Range [28, 13) out of bounds for length 13
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:   E2= X \Easby MEASURE1:6;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

     consider r be Real such that
A41  /k=r()hi(.,)by A1,A3,
     dom chi(E.k,X) = X by FUNCT_2:def 1; then
     x in dom chidom ={2&domF 12by92;
A42: x in dom (     = rng <** /<E2* FINSEQ_131; then
A43: chi(E.k,X).x = 1 by A39,A40,FUNCT_3:def 3;

     f.x = (r(#)chi(E.k,X)).x by A31,A39,A1,A40,A41; then
     f.x = r * chi(E.k,X).x by A42,MESFUNC1:def 6;
     hence |. f.x .| < +infty by A43,EXTREAL1:41,XREAL_0:def 1;
    end;

    for n be Nat, x,y be Element of X st
     n in dom E & x in E.n & y in E.n holds f.x = f.y
    proof
     let n be Nat, x,y be Element of X;
     assume A44: n in dom E & x in E.n & y in E.n; then
     consider r be Real such that
A45:  F/.n = r(#)chi(E.n,X) by A3,A1;
     dom chi(E.n,X) = X by FUNCT_2:def 1; then
     x in dom chi(E.n,X) & y in dom chi(E.n,X); then
A46: x in dom(r(#)chi(E.n,X)) & y in A46: x in dom(r(#)chi(E.n,X)) & y in dom then

A47: chi(E.n,X).x = 1 & chi(E.n,X).y = 1 by  rng ={}\ E2}by :38;then
     (F   rng={E,E2} by ENUMSET1:1; then
       by A45,A46,MESFUNC1:def 6; then
     (F/.n).x = r & (F/.n).y = r by A47,XXREAL_3:81   rng  /75 java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
     f.x = be  /n  #X
     hence thesis;
    end;
    hence f is_simple_func_in S by A2,A38,MESFUNC2:def 1,java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 36
end;

theorem Th12:
for X be non empty set, S be SigmaField     F. = 0(#)chi(E2,)& .  ;
  be Element ofSholds chi(E,X is_simple_func_inS
proof
   let X be non empty set, S be SigmaField of X,
   E be Element of S;
   X in S by MEASURE1:7; then
   reconsider E2 end;
   E misses E2    in  F &2 in dom F byA1,TARSKI:ef 2 then
   reconsider EE = <E,E2*> asFinite_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
   A4:F/.1 =(,)&F=X-   java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 62
     summable FinSequence of Funcs((Partial_Sums F)/.(len F) = chi(E;
: EE= {,2}& dom F = {,2}byFINSEQ_1:;

   rng EE = rng <*E*> \
   rng EE = {E} \/ rng <*E2*> by FINSEQ_1X    bejava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 45
   rng EE = {E} \/ {E2} by FINSEQ_1:38; then
   rng EE = {E,E2} by ENUMSET1:1; then
   union rng EE = Esupposeer >infty&er < -;then
   union rng  =E\ X by XBOOLE_1:39 then
   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 Nat st n in dom F ex r be Real st F/.n = r(#)chi(EE.n,X)
   proof
    let n be Nat;
    assume A4: n in dom F;
per casesbyA1,A4,ARSKI2;
    suppose n = 1; then
     F.n = 1(#)chi(E,X) & EE.n =    chi(,Xis -a3,37MESFUNC2:;
     hence ex r be Real st F/.n = r(#)chi(EE.n,X) by A4   ;
    end;
    suppose n = 2; then
     F.n = 0(#)chi(E2,X) & EE.n end;
       r Real F.n=r#chi(.nX) by ,ARTFUN1:def 6;
    end;
   end;

   1 in dom F & 2 in dom F by A1,TARSKI:def 2; then
      letXbe ,A2   ofX, erbe ExtReal;
   F/.1 = 1(#)chi(E,X) & F/.2 = 0(#)chi(a1:dom(chi(er,A1,X)|A2) = dom chi(er,A1,X)RELAT_1
A4/. = chi(E,X)&F.2  X--> 0 by MESFUNC2:1MESFUN11:22;
   F  2 FINSEQ_1;then
   (Partial_Sums F)/.(len F) = F/.1 + F/.2 by Th8; then
   (F).(lenF)=chi(E,)by A4,Th9;
   hence chi(E,X) is_simple_func_in 
end;

theorem Th13:
for X     assu :x domchi(rX|) then
AB be S,erbe  holds
   chi(er,A,X) is B-measurable
proof
   let X be non empty set, S be SigmaField  X,
   , be Element of S, er be ExtReal;
a1:Xchi(A,X) is B-measurable by MEASUR10:32;
a2:dom Xchi(A,X) = X by FUNCT_2:def 1;
   per cases;
   java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 23
    hence chi(er,A,X) is B-measurable by a1,Th2;
   end;
   supposeer =-infty; then
W:  chi(er,A,X) = -Xchi(A,X) by Th2;
    Xchi(A,X) is B-measurable by MEASUR10:32; then
    -Xchi(A,X) is B-measurable by a2,MEASUR11:63;
     er,X B-easurable by W;
   end;
   suppose er <> +infty & er <> -infty;    suppose a7 not x in A1; then
    er in REALby XXREAL_0:14; 
    reconsider r = er as Real;
a3:chi(,,)=r#chi(A,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
     (A) by def3;
    hence chi(er,A,X) is B-measurable       by b1,a4,a8,Def1;
   nd;
end;

theorem Th14:
forX  set, A1,A2 be Subset  X, er be ExtReal holds
 chi(er,A1,X)|A2 = chi(er,A1/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
   let X be set, A1,A2 be Subset of X, er be ExtReal;
a1:dom(chi(er,A1,X)|A2 = dom chier,,X) / A2  RELAT_1:61
    .= X /\ A2 by FUNCT_2chi(,X| Cmeasurable
a2:dom(chi(er,A1/\A2,X)|A2)    Xbenon  set,S be of X,
    .=   B beElementof ,er be ExtReal;
   now let x be Element of X;
    assume b1: x in dom(chi(er,A1,X)|A2); then
a3: x    assum a1:C c=B
a4: (chi(er,A1,X)|   dom chi(er,A,X) =X byFUNCT_2:def 1; then
  & (chi(er,A1/\A2,X)|A2).x = chi(er,A1/\A2,X).x by B:B = dom chi(er,A,X) /\ B by XBOOLE_1:28;
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 14
    suppose a5: x in A1; then
a6:  (chi(er,A1,X)|A2).x = er by a4,Def1;
     x in A1 /\ A2 by a3,a5,XBOOLE_0:def 4;
     hence (chi(er,A1/\A2,X)|A2).x = (chi(er,A1,X)|A2).x by a4,a6,Def1;
    end;
    suppose a7: not x in A1; then
a8:  (chi(er,A1,X)|A2).x = 0 by a4,Def1,b1;
     not x in A1 /\ A2 by a7,XBOOLE_0:def 4;
     hence (chi(er,A1/\A2,X)end
       by set, ,2 be Subset of X, er be ExtReal, x be bject A1 misses A2
    end;
   end;
   hence chi(er,A1,X)|A2 = chi(er,A1/\A2,X)|A2 by a2,PARTFUN1:5;
end;

theorem Th15:
for X be non empty set, S be SigmaField  isses 2
AB,  Element of, er beExtReal  C c=  holds
  (erAX)|BisC-
proof
   let X be non empty java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 4
   A,B,C be Element of S, er be ExtReal;
   assume a1: C c= B  (er =  chier,X is )
 by x ;
B: B = dom      assume a2 x in(er,,);
   chi(erjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
chierAX)BisBmeasurable byMESFUNC5:,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
   hence thesistheorem Th18:
end;

theorem Th16:
for X be set, A1,A2 be Subset of X, er be ExtReal, x befor A, beset,  be Subset of X holds dom(chi(A:: Some properties of integration
 holds (chi(er,A1,X)|A2).x = 0
proof
   let X be set, A1,A2 be Subset 
   assume a1: A1 misseslet be , S  SigmaField X  be PartFunc ofof X,xtREAL;
   
   suppose a2: x in dom(chi(er,A1,java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 50
    x in dom chi(er,A1,X) /\ A2 by RELAT_1:61; then
    in X &   A2 by XBOOLE_0:def 4; then
    not x in A1 by a1,XBOOLE_0:3; then
    chi(er,A1,X).x =A3java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    hence (chi(er,A1,X)|A2).x = 0end
   end;
   suppose not x in dom(chi(r,A1,X)|2;
    E2 be Element ofSholds Integral(M,(chi(E1,X))|E2) = M.(E1/\ E2)
   end;
end;

theorem Th17:
forXbe set,A beX,ExtRealholds
( > 0 implies chierA,)is)
& (er <= 0 implies chi(er,A,X) is nonpositive)
proof
   let X be set, A be Subset of X, er be ExtReal;
   hereby assume a1: er >= 0;
    now let x be object;
     assume a2: x in dom chi(er,A,X);
     x in A implies chi(er,A,X).x >= 0 by a1,Def1;
     hence chi(er,A,X).x >= 0 by a2,Def1;
    end;
    hence chi(er,X)is nonnegative by SUPINF_2:52;
   end;
   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;
    then Integral(M,(chi(E1,X))|E2) = Integral(M,(chi(E1,X))|(E1/\E2)) +
   end;
   hence chi(er,A,X) is nonpositive by MESFUNC5:9;
end;

theorem Th18:
for A,X be set, B be Subset of X holds dom(chi(A,X)|B) = B
proof
   let A,X be set, B be Subset of X;
   dom(chi(A,X)|Bjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 4
    .= X /\ B by FUNCT_2:def 1;
   hence thesis by XBOOLE_1:28;
end;

begin :: Some properties of integration

theorem Th19:
for X be non empty set, S be SigmaField of X, f be PartFunc of X,ExtREAL
 st f is empty holds f is_simple_func_in S
proof
   let X be non empty gBjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
   reconsider EMP = {} as Element of S by MEASURE1:7;
   reconsider F = <*EMP       ,java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
   assume A1: f is empty; then
   dom f = {} & rng F = {EMP} by FINSEQ_1:38; then
A2:dom f = union rng F by A10:f+g is nonnegative by A2,A5,MESFUNC5:22;
   for n be Nat, x,y be Element of X st n in dom F & x in F.n & y in F.n holds
    f.x = f.y
   proof
    let n be Nat, x,y be Element of X;
    assume A3: n in dom F & x in F.n & y in F.n; then
     {1 2,;then
    n = 1 by TARSKI:def 1;
    hence f.x = f.y by A3;
   ;
   hence f is_simple_func_in S by A1,A2,MESFUNC2:def 4;
end;

theorem Th20:
for X be non empty set, S be SigmaField of X
 E1,E2 be Element of S holds for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
proof
   let X be non empty set, S be SigmaField of X, M    let X be non empty set, S be SigmaField of X, M be
   E1,E2 be Element of S;
   reconsider XXIntegralM+)Mfdomg)) + Integral(M,g|dom(f+g))
A1:E2 = (E1 /\ E2) \/ (E2 \ E1) by  X be non empty set, S be SigmaField X, Mbe   S,
   set F = E2\E1;
A2:dom((chi(E1,X))|
    =X/\ (E1\E2) by FUNCT_3:ef 3java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
A3 g is nonpositive and
    =X/\ E/E) by def3
   now
    let x be Element of X;
    assume
A4 f1  -   PartFunc of X,ExtREAL by A2;
A5: (chi(E1/\E2,X)|(E1/\E2)).x = (chi(E1/\E2,X)).x by A2,A3,FUNCT_1:47;
A6: x in E1 /\ E2 by A2
A7: x in E1 by XBOOLE_0:def 4;
    ((chi(E1,X))|(E1/\E2)).x = (chi(E1,X)).x by A4,FUNCT_1:47
       A7,UNCT_3:def 3;
    hence ((chi(E1,X))|(E1/\E2)).x = (chi(E1/A8: dom java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 57
      by A6,A5,FUNCT_3:def 3;
   end; then
   (chi(E1,X))|(E1/\E2) = chi(E1/\E2,X)|(E1/\E2) by A2,A3,PARTFUN1:5; then
A9:IntegralA10:om+)   \BA7,MESFUNC1:def 7; then
A10:XX = dom chi(E1,X) by FUNCT_3:def 3; then
A11:F =dom((chi(E1,))|(2\E1))by RELAT_1:then
   F = dom(chi(E1,X)) /\ F by RELAT_1:61; then
A12: (chi(E1,X))|(E2\E1) is F-measurable by MESFUNC2:29,MESFUNC5:42;

   now
    java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 26
    assume
A15:  in dom (X)(2E));
    E2 \ E1 c= X \ E1 by     f1|dom(f1+g1) = -(f|dom(f+g)  (domg)
     cE1).java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 49
    hence 0= ((chi(E1,X))|(E2\E1))A:Mfd(fg)  -Integralf|om+
   end;
   then integral+(M,(chi(E1,X))|(E2\E1)) = 0 by A11,A12,MESFUNC5:87;
   then
java.lang.StringIndexOutOfBoundsException: Range [48, 3) out of bounds for length 68
   chiE1)is java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 45
   then Integral(M,(chi(E1,X))|E2) = Integral(M,(chi(E1,X))|(Integral(M,f-g) = Integral(M,f|dom(f-g)) - Integral(M,g|dom(f-g))
   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 
 E1,E2 be Element of S, f,g be PartFuncB  dom gand
 E1 = dom f & f is  
 E2 = g is nonnegative &g is -
 holds
  Integral(M,f+g) = Integral(M,f|dom(f+g)) + Integral(M      by A1,,A7A,;
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 is nonnegative and
A3:  f is A-measurable and
A4:  B = dom g and
A5:  g is nonnegative and
A6:g  B-easurable;

    set f1 = f|(A/\B), g1 = g|(A/\B);

A7: dom A14,XXREAL_3:def 4;

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

A9: f is (A/\B)-measurable & g is (A/\B)-measurable
      by A3,A6,XBOOLE_1:17,MESFUNC1:30f-  \-java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 62

A10:f+g is nonnegative by A2,A5,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 33

    f1 is nonnegative & g1 is nonnegative by A2,A5,MESFUNC5:15; then
A11:Integral(:
  & Integral(M,g1) f benon  ,beSigmaFieldof X  besigma_Measure of S,
    ex C be Element of S st C = dom(f+g)
   & integral+(M,f+g) = integral+(M,f|C) + integral+(M,g|C)
      by A1,A2,A3,A4,A5,A6,MESFUNC5:78 E java.lang.StringIndexOutOfBoundsException: Range [22, 5) out of bounds for length 60
    hence thesis by A2,A5,A7,A9,A10,A11,MESFUNC5:31,88;
end

java.lang.StringIndexOutOfBoundsException: Range [12, 7) out of bounds for length 13
be SigmaField of , java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 70
 E1,E2 be ElementE be Element  S, be PartFunc  ,ExtREAL,rbe Real;
 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,fA E java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 18
proof
    let X be non empty set, dom(r(#)f) = E by A1,MESFUNC1:def 6;
    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  fas nonnegativePartFunc  XExtREAL java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
    reconsider java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 50

A7: f1+g1 = -(f+g) by MEASUR11:64; then     set =-;
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:(|domg)  /\B  java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 55
      by A1,A4,Integral(M,r#fjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22

A12:dom f /\ (A /\ B) = A /\ B & dom g /\ (A /\ B) = A /\ B
      by A1,A4,XBOOLE_1:17,28;

A14:f is (A/\B)-measurable & g is (A/\B)-measurable
      by          byby A1,,A3A10,2,MESFUNC5:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
15:dom(f+g) is (/\B)measurable
  & g|dom(f+g) is (A/\B)-measurable by A10,A12,MESFUNC5:42;
A16:f|dom(f+g) is nonpositive & g|dom(f+g) is nonpositive by A2,A5,MESFUN11:1;
    f1|dom(f1+g1) = -(f|dom(f+g)) & g1|dom(f1+g1) = -(g|dom(f+g))
     by A9java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A17:Integral(,f|om(f+) = - Integral(,|om(f1g1)
  & Integral(M,g|dom(f+g)) = - E = dom f & f is nonpositive & f is      java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 55
       by A11,A15,A16,MESFUN11    non empty    java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 74
    f+g = (-1)(#)(f1+g1) & f1+g1 A1:  =domf and
      byjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [34, 3) out of bounds for length 38
      f2:;
19I(Mg -M,+ A10A18MESFUN1157;
    1 is A-measurable & g1 is B-measurable
      by A1,A3,A4,A6,MEASUR11:63; then
    Integral(M,f1+g1) = Integral(M,f1|dom(f1+g1)) + Integral(M,g1|dom(f1+g1))
      by A8,Th21;
    hence thesis by A17,A19,XXREAL_3:9;
d;

theorem
for X be non empty set, S be SigmaField of X, M Integral(M,r(#)f)
 E1,E2 be Element of S, f,g be PartFunc of X,ExtREAL st
 =dom fis  f is E1-measurable &
 E2 = dom g & g is nonpositive & g is E2-measurable
 holds
  ntegral(Mg  java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 67
& Integral(M,g-f) = Integral(M,g|dom(g-f)) - Integral(M,f|dom(g-f))
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
    BbeElementof ,f,gbe java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 54
    assume that
d
java.lang.StringIndexOutOfBoundsException: Range [15, 2) out of bounds for length 25
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 PartFunctheorem

A7: B = dom g1 by A4,MESFUNC1:def 7;
A8: g1 is B-measurable by A4,A6,MEASUR11:63;
(AB-
      by A3,E = dom f & ( java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 71
then
A11:A/\B = dom(g|dom(f-g)) by A4,XBOOLE_1:17,
    (f-g)by 6;then
A12:g|dom(java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
    f+g1 = f-g by MESFUNC2:8; then
A14:Integral(M,g) = Integral(M,fdom(-g) +M,domf-g)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
      by A1,A2,A3,A7,A8,Th21;
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))
      by A12,A11,A15,MESFUN11:57; then
    -Integral(M,g|dom(f-g)) = Integral(M,g1|dom(f-g));
    hence
A20: Integral(M,f-g) = Integral(M,f|java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 30
      by A14,XREAL_3:def 4;
A16:g-f = -(f-g) by MEASUR11:64; then
A17:dom(g-f) = A/\B by A10,MESFUNC1:def ,y1] in E;
    f is (/B-measurableby A2,A9,10,MEASUR11:67; then
    Integral(M,g-f) A:assume x, E; then
    hence Integral(M,g-f) = Integral(M,g|dom(g-f)) - Integral(M,f|dom(g-f))
      by A20,A17, end;
end;

Lm1:
for X bexinxx of[y   java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 72
 E be Element of S, f be PartFunc of X,ExtREAL, r be Real st
  = dom fisE-measurableholds
  ntegral(,())= 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 e;
     y java.lang.StringIndexOutOfBoundsException: Range [41, 22) out of bounds for length 77
A1:  E = dom f and
A2:  f is
A3:fis E-java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

A7: dom(r(#)f) = E by A1,MESFUNC1:def 6;
java.lang.StringIndexOutOfBoundsException: Range [34, 2) out of bounds for length 47
    per cases;
    suppose A9: r >= 0;
     Integral(M,r(#)f)
       = integral+(M,r(#)f) by java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 10
      .= r * integral+(M,f) by A1,A3,A9,A2,MESFUNC5:86
      .= r * Integral(M,f) by A1,A3,A2,MESFUNC5:88;
      java.lang.StringIndexOutOfBoundsException: Range [30, 11) out of bounds for length 50
    end;
    suppose A10: r < 0;
     set r2 = -java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 0

     r = (-1)*r2; then
     r(#)f = (-1)(#)(   ofX2java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
) by MESFUNC2:9;

A12:  r(#)f is nonpositive by A2,A10,MESFUNC5:20;

     Integral(M,r(#)f)
       =-(r(#))) by A12,A7,A8,MESFUN11:57
      .= -integral+(M,r2(#)f) by A11,MESFUN11:36
       .  (d) by java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
         by A1,A3,A10,A2,MESFUNC5:86
      .= (-r2) * integral+(M,f) by XXREAL_3:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
        (Mf  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 51
     hence Integral(M,r(#)f) = r * Integral(M,f);
    end;
end;

Lm2:
beSigmaField of X, M java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 70
bePartFunc of X,xtREAL, r  Real st
 E  dom &is java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 55
  (r#f =r  Integral(M,)
proof
    let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
     beElement S,f be PartFunc X,ExtREAL,r beReal;
    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 A1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A5  func ProjPMap2(f,y) -> PartFunc of X1,Y means :Def4:
A6: f2 is E-measurable by A1,A3,MEASUR11:63;

    f = -f2 by MESFUN11:36; then
    f =java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    r(#)f = (r*(-1))(#)f2 by MESFUN11
    r(#)f = (-1)(#a   sdomy); hen
    r(#)f = -(r(#)f2) ex    X1java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 55
    Integral(M,r(A3forc be object st P]holds c by A1PARTFUN1:4;
      = -Integral(M,r(#)f2) by A5,A6,A4,MESFUNC1:37,MESFUN11:52
      -1)* java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 48
     = -1) * (r * Integral(M,f2)) by A2,A4,Lm1,A1,A3,MEASUR11:63
     .=xElement of X1: [x,y] in dom f}; then
     .= (-r) * (-Integral(M,f)) by A1,A3,MESFUN11:52
     .= (-r) * ((-1) * Integral(M,f)) by XXREAL_3:91
     .= ((-r) * (-1)) * Integral(M,f) by java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
    enceIntegral(M,r(#)f) = r * Integral(M,f);
end;

theorem
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E e Element of S, f be PartFunc of X,ExtREAL, r be Real st
 E = dom f & (f is nonpositive or f is nonnegative) & f is E-measurable
  holds Integral(M,r(#)f) = r * Integral(M,f) by Lm1,Lm2;

begin :: Sections of partial function

theorem Th25:
for X,Y be non java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
 sthassume indom (,d) 
  ([x,y] in A iff x in Y-section(Afc); then
proof
    ElementofX1  beElement  ;
   assume A1: x in X & y in Y;
A2:now  #[X2java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 47
    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;
    hence [x,y] in E;
   end;
A3:now assume [x,y] in E; then
    y in {y where y is Element of Y: [    ProjPMap1(f,)y  ProjMap1(f,x.y
    hence y in X-section(E,x) by MEASUR11:def 4;
   end;
A4:now assume x in Y-section(E,y); then
    x in {x where x is Element of X: (f,.  f)bMESFUNC96java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    ex x1 be java.lang.StringIndexOutOfBoundsException: Range [24, 16) out of bounds for length 24
    hence [x,y] in E;
   end;
   now assume [x,y] in E; then
    x in {x where x is Element of X: [x,y] in E} by A1;
    hence x in Y-section(E,y) by MEASUR11:def 5;
   end;
   A4;
end;

ion
  let X1,X2 be non      y in {y where y is Element of Y:[,] n dom }by A1; then
  let Y be set;
  let f be PartFunc of [:X1,X2:],Y;
  let x be Element java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 54
  dom it = X- y in ProjPMap1," by A1,,Fdef ;
  for y be Element of X2 st [x,y] in dom f holds it.y = f.(x,y);
existence
proof
   deffunc F(object) = f.(x,$1);
   defpred P[object] means $1 in X-section(dom f,x);
A1:now let d be object;
     d in X-ection( f,x)then
    d in {y where y is Element of X2: [x,y] in dom f} by FUNCT_1:def 7; then
    ex d1 be Element of X2 st d = d1 & [x,d1] in java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 42
    hence  in X2 & [x,d] in dom f;
   end;

A3:for d be object st P[d] holds F(d) in Y by A1,PARTFUN1:4;

   consider P be PartFunc of X2,Y such that
A4: for beobject holds x in dom P iff x in X2 & P[x])
  & for x be object st x in dom P holds P.x = F(x) from PARTFUN1:sch 3(A3);

   take P;

A5:dom P c= X-section(dom f,x) by A4;
   X-section(dom f,x) c= dom P by A4;
   hence dom P = X-section(dom f,x) by A5;

   thus for d be Element of X2 st [x,d] in dom f holds P.d = f.(x,d)
   proof
    let d be Element of X2;
    assume [x,d] in dom f; then
     X2: [x,]  f} 
    d     hence X-ection(",x)=java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 52
    hence P.d = f.(x,d) by java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 73
 
end;
uniqueness
proof
   let P1,P2 be PartFunc x in Y-section(dom f,y ;
   assume that
A1: dom P1 = X-section(dom f,x) and
A2: for java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 59
A3: dom P2 = X-section(dom f,x) and
A4: for dbeElement of X2  [,]idom f holds P2. = f.(x,d)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66

A5:now let java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    assume d in X-section(dom r  Real fbe PartFunc of [:X1,X2:],ExtREAL holds
    d in {y where y is Element of X2: [x,y] in dom f} by MEASUR11:def 4; then
    ex d1 be Element ofjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 43
    hence d in X2 & [x,d] in java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 5
   end;

   now let d be Element of X2;
    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
  let X1,X2 be non empty set;
  let Y be set;
  let f be PartFunc of [:X1,X2:],Y;
  let y be Element of X2;
  func ProjPMap2(f,y) -> PartFunc of X1,Y means :Def4:
 dom it = Y-section(dom f,y) &
 for x be Element of X1 st [x,y] in dom f holds it.x = f.(x,y);
existence
proof
   deffunc F(object) = f.($1,y);
   defpred P[object] means $1 in Y-section(dom f,y);

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

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

   consider P be PartFunc of X1,Y such that
A4: (or xbe object holds x indomPiff  inX1 & P[])
  & for x be object st x in dom P holds P.x = F(x) from PARTFUN1:sch 3(A3);

   take P& dom(rojPMap2(r#)f,y)) = Y-section(dom(r(#)f),y)

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

 java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 68
   proof
    let  bebe Element of X1;
    assume [c,y] in dom f; then
     in  isElement java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 59
    c in Y-section(dom f,y) by MEASUR11:def 5;
    hence P. = f.,y by A4;
   end;
end;
uniqueness
proof
   let P1,P2 be PartFunc of X1,Y;
   assume that
A1: dom P1 = Y-section(dom f,y) and
A2:forc be Element of X1 st [c,y] in dom f holds P1.c = f.(c,y) and
A3: dom P2 = Y-section(dom f,y) and
A4: for cbe  of X1 st c,] java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 23

A5:now let c be object;
    assume c in Y-section(dom f,y); then
    c in {x where
    ex c1 be Element now letxbeElementof X1;
    hence c in X1 & [c,y] in dom f;
   end;

   let c be Element  X1;
    assume c in x in {x wherexis Elementof X1 xy] in}
    P1.c=f.(y)  P2java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    hence P1.c = P2.c;
   end;
   hence P1 = P2 by A1,A3,PARTFUN1:5;
end;
end;

theorem Th26:
java.lang.StringIndexOutOfBoundsException: Range [32, 3) out of bounds for length 67
 x be Element of X1, y be Element of X2 holds
   x dom rojPMap2(,  (,)x = f(,))
& ( y in dom ProjPMap1(f,x) implies ProjPMap1(f,x).y = f.(x,y) )
proof
   let X1,X2 be non empty set, Y be set, f be PartFunc of [:X1;
   c be Element of X1, d be Element of X2;
   java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
    c in Y-section(dom f,d) by Def4; then
    c Element of X1:[,]in dom f by MEASUR11:def 5; then
    ex x be Element of X1 st c = x & [x,d] in dom f;
     x bexbe Element of X1, y be Element of X2
   end;
   assume d in dom ProjPMap1(f,c); then
   d in -section(dom f,c) by Def3; then
   d in {y where y is Element of X2: [c,y] in dom f} by MEASUR11:def 4; then
   ex y be Element of X2 st d=y & [c,y] in dom f;
   java.lang.StringIndexOutOfBoundsException: Range [44, 8) out of bounds for length 44
end;

theorem Th27:
for
  x be Element of X1, y be Element of X2
  holds ProjPMap1(f:=   y java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 30
proof
   let X1,X2,Y be non empty set, f be Functionend;
   x be Element of X1, y be Element of X2;

   dom f = [:X1,X2:] by FUNCT_2:def 1; then
A1:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
   X-section(dom f,x) = X2 by MEASUR11:24; then
   dom ProjPMap1(f,x) =X2  Def3; then
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 77

for ybe  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
    rojPMap1(fx. = f.(x,y) by Th26java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    hence ProjPMap1(f,x).y = ProjMap1(f,x).y by MESFUNC9:def 6;
   end;
   hence ProjPMap1(f,x) = ProjMap1(f,x) by A2,PARTFUN1:5;

   Y-section(dom f,y) = X1 by A1,MEASUR11:24; then
   dom ProjPMap2(f,y) = X1 by Def4; then
A3:dom ProjPMap2(f,y) = dom ProjMap2(f,y) by FUNCT_2:def 1;

   for x be Element of X1 st x in dom ProjPMap2(f,y) holds
    ProjPMap2(f,y).x = ProjMap2(f,y).x
   proof
    letx be Elementof 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:5;
end;

theorem
java.lang.StringIndexOutOfBoundsException: Range [41, 3) out of bounds for length 55
 x be xbe of , beElement of X2, f be PartFunc of [:X1,X2:],ExtREAL;
  X-section(f"A,x) = ProjPMap1(f,x)"A & Y-section(f"A,y) = ProjPMap2(f,y)"A :java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 74
proof
    let X,Y,Z dom f = unionF&    java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 71
    x be Element of X, y be Element of Y, A be set;
    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,n in dom F & z1 in F.n & z2 in F.n holds=f.
     y in { 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:defnowleta object
    end;then
A4: X-section(f"A,x) c= ProjPMap1consider y1 be Element   

    now let y be object;
     assume y in ProjPMap1(f,x)"A;A6  = f.(,)A5T;
A5:  y in dom(ProjPMap1(f,x)) & ProjPMap1(f,x).y in A by FUNCT_1y1 in A5,Def3; then
     insection x Def3 then
     y in {y where y is Element of Y: [x,y] in dom f} by MEASUR11:java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 53
     consider y1 be rng ProjPMap1(f,x) c= REAL; then
A6:   y1 = y & [x,y1] in dom f;

java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
     [x,y1] in f"A by A6,FUNCT_1:def
     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)"A c= X-section(f"A,x);
    hence X-section(f"A,x) = ProjPMap1(f,x)"A by A4;

   now x object
     assume x in Y-section(f"A,y); 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
 E;

A8:  [x,y] in dom f & f.[x,y] in A by A7,FUNCT_1:def 7; then
     x in {x where x is Element of X: [x,y] in dom f} by A7; then
     x in Y-section(dom f,y) by F1 isdisjoint_valuedthen
A9,y)) byDef4;

     ProjPMap2(f,y).x1 = f.(x1,y) java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 0
     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
A1111 xin dom(rojPMap2(,)  ProjPMap2fy)xin  by FUNCT_1: 7then
     x in Y-section(java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 29
     x in x where x is Element of X: [x,y] in dom f} by MEASUR11:def 5; then
     consider x1 be Element of X such that
A12   x1=   [x1y]indom ;

     f.(x1,y) in A by java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 12

     [x1,y] in f"A by A12,FUNCT_1:def 7; then
     x in {x where x is Element of X: java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
     hence x in Y-section(f"A,y)&in java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 60
    end; then
    ProjPMap2(f,let n be Nat, java.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 41
    hence Y-section(f"A,y) = ProjPMap2(f,y)"A by A10
end;

theorem Th29:
for X1,X2 be non empty set, x be Element of X1, y be Element of X2,
 rbe Real, f PartFunc of[X1X2:],ExtREALholds
  = r(#)ProjPMap1(f,x) &
  ProjPMap2(r(#)f,y) = r(#)ProjPMap2(f,y)
proof
    let X1,X2 be java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 0
fbejava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 50
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 53
  & dom(ProjPMap2(r(#)f,yA20:  in dom F & A = F.m by A19,FUNCT_1:def 3;
      by Def3,Def4; then
A1: dom(ProjPMap1(r(#)f,x)) = X-by A19,A20,XBOOLE_0:3,PROB_2:def 2; then
   (r#f,)  -java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 67
    dom(r(#)ProjPMap1(f,x)) = dom(ProjPMap1(f,java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  & dom(r(#)ProjPMap2(  :xy]in   F
A2: dom(r(#)ProjPMap1(f,x)) = X-section(dom f,x)
  (f,y) Y-section(dom f,y)  Def3,Def4;

    now let y be Element of X2;
     assume A3: y in dom(ProjPMap1(     not y1 in {y where y is Element of X2: [x,y] in F.n}; then
     y in {y where y is Element of X2: [x,y] in dom f}
       by A1,MEASUR11:def 4; then
A4:  ex y1 be Element of X2 st y1     hence contradiction by A14,A12;
A5:  [x,y] in dom(r(#)f) by MESFUNC1:def 6;

A6:  f.(x,y) = f.[x,y];
     (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,y) by A5,MESFUNC1:def 6;
     hence ProjPMap1(r(#)f,x).y = (r(#)ProjPMap1(f,x)).y by A5,Def3;
    end;
    hence ProjPMap1(r(#)f,x) = r(#)ProjPMap1(f,x) by A1,A2,PARTFUN1:5;

    now let x be Element of X1;
     assume A7: x in dom(ProjPMap2(r(#)f,y)); then
     x in {x where x is Element of X1: [x,y] in dom f}
       by A1,MEASUR11:def 5; then
A8:  ex x1 be Element of X1 st x1 = x & [x1,y] in dom f; then
A9:  [x,y] in dom(r(#)f) by MESFUNC1:def 6;

A10: f.(x,y) = f.[x,y];
     (r(#)ProjPMap2(f,y)).x = r * ProjPMap2(f,y).x by A1,A2,A7,MESFUNC1:def 6
      .= r * (f.[x,y]) by A8,A10,Def4
      .= (r(#)f).(x,y) by A9,MESFUNC1:def 6;
     hence ProjPMap2(r(#)f,y).x = (r(#)ProjPMap2(f,y)).x by A9,Def4;
    end;
    hence ProjPMap2(r(#)f,y) = r(#)ProjPMap2(f,y) by A1,A2,PARTFUN1:5;
end;

theorem
for X1,X2 be non empty set, f be PartFunc of [:X1,X2:],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(f,y).x = 0 & ProjPMap1(f,x).y = 0
proof
   let X1,X2 be non empty set, f be PartFunc of [:X1,X2:],ExtREAL,
   x be Element of X1, y be Element of X2;
   assume
A1: for z be Element of [:X1,X2:] st z in dom f holds f.z = 0;

   now assume x in dom(ProjPMap2(f,y)); then
    x in Y-section(dom f,y) by Def4; then
    x in {x where x is Element of X1: [x,y] in dom f} by MEASUR11:def 5; then
    consider x1 be Element of X1 such that
A2: x1= x & [x1,y] in dom f;
    f.(x1,y) = 0 by A1,A2;
    hence ProjPMap2(f,y).x = 0 by A2,Def4;
   end;
   hence ProjPMap2(fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

   now assume y in dom(ProjPMap1(f,x)); then
    y noty2 in X-ection(.,)by java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 50
    y in {y where y is Element of X2: [x,y] in dom f} java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 7
    consider y1 be Element of X2 such that
A3:  y1 = y &   java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 40
    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 X1,X2 be non java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 76
 st f is_simple_func_in sigma measurable_rectangles(S1,S2) holds
  ProjPMap1(f,x) is_simple_func_in S2 & ProjPMap2(f,y) is_simple_func_in S1
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
   x be Element of X1, y be Element of X2, f be PartFunc:(java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
   assume AS: f is_simple_func_in sigma measurable_rectangles(S1,S2); then
A1:f is real-valued &
   ex F be Finite_Sep_Sequence of sigma measurable_rectangles(S1,S2) st
    x, be Element of [:X1,X2:] st
       n in dom F & x in F.n & y in F.n holds f.x = f.y)
     by MESFUNC2:def 4;
   onsider F   ofsigma measurable_rectangles(S1,S2)
    such that
A2: dom f = union rng F and
A3: for n be Nat, z1,z2 be Element of [:X1,X2:] st
       n in dom F & z1 in F.n & z2 in F.n holds f.z1 = f.z2
         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 dom ProjPMap1(f,x) & a = ProjPMap1(f,x).y1 by PARTFUN1:3;
A6: a = f.(x,y1) by A5,Th26;
    y1 in X-section(dom f,x) by A5,Def3; then
    y1 in {y where y is Element of X2: [x,y] in dom f} by MEASUR11:def 4; then
      be Element of X2 st y1 = y & [x,y] in dom f;
    hence a in REAL by A4,A6,FUNCT_1:3;
   end 
   rng ProjPMap1(f,x) c= A31G. =Y-ection(F.m,y) & G1.n = Y-section(F.n,y) by A30,A28;
A7:(f,)is vby def ;

   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 F1.n = F1(n)
      from FINSEQ_2:sch 1;
A9:dom F1 = dom F by A8,FINSEQ_3:29;

   reconsider FF = F as java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 17

   now let m,n be Nat;
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    Measurable-X-section(F.m,x) = X-section(F.m,x)
  & Measurable-X-section(F.n,x) Adomjava.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 49
A11:F1.m = X-section(F.m,x) & F1.n = X-section   for n be Nat, x1,x2 be Element of X1 st n in dom G1 & x1 in G1.n
    F.m misses F.n by A9,A10,    & x2in G1.n holds ProjPMap2(f,y).x1 = ProjPMap2(f,y).x2
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
   end; then
   F1 is disjoint_valued; then
   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.n = X-section(FF.n,x)
   proof
    let n be Nat;
    assume n in dom FF1; then
    FF1.n = Measurable-X-sectionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    hence FF1.n = X-section(FF.n,x) by MEASUR11:def 6;
   nd;
   Xc  setsuchthat
A13:dom ProjPMap1(f,x) = union rng F1 by A2,A39:  [x1,y] in A & A in rng F by TARSKI:def 4;

   for n be Nat, y1,y2 be Element of X2 st n in dom F1 &  consider m be object such that
      in . holds ProjPMap1(f,x.y1 =ProjPMap1(f,x).y2
   proof
    let n be Nat, y1,y2 be Element of X2;
    assume A14: n in dom F1 & y1 in F1.n & y2 in F1.n; then
A15:F1.n java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
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
    in Xsection(dom f, by A14;then
    y1 in dom ProjPMap1(f,x) & y2 in dom ProjPMap1
A16:ProjPMap1(f,x).y1 = f.(x,y1) & ProjPMap1(f,x).y2 = f.(x,y2) by Th26;

A18:[x,y1] in union rng F implies [x,y1] innot inYs(.n,y java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 50
    proof
     assume [x,y1] in unionnow not [x2,y] in F n 
     consider A be set such that
java.lang.StringIndexOutOfBoundsException: Range [5, 3) out of bounds for length 63
     consider java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 50
A20:  m in dom F & A = F.m by A19,FUNCT_1:def 3;
     reconsider m as Nat by A20;
     now assume m <> n; then
      for y be Element of X2 st y1=y holds not [x,y] in F.n
        by ,,BOOLE_0:3P:def 2; then
      not y1 in {y where y  hence fy) java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 71
      not y1 in X-section(F.n,x) by MEASUR11java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      hence contradictionby A14,A12;
     end;
     hence [x,y1] in F.n by A19,A20;
    nd;

A21:[x,y1] in union rng F
    roof
     assume not [x,y1] in union rng F; then
     for y be Element of X2 stlet X1,X2 be non empty set, x be Element of X1, y be Element of X2,
       by A17,assume A1: f is;
     not y1 in {y q  dom(rojPMap1java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
     not y1 in X-section(F.n,x) by MEASUR11:def 4;
     hence contradiction by A14,A12;
    end;

    now assume not [x,y2] in F.n;     hence 0 <= (ProjPMap1(f,x)).q by A:;
     for y be Element of X2 st y2=y holds java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 7
     ot y2 in {whereof  [x,]in F. then
     not y2 in X-section(F.n,x) by MEASUR11:def 4;
     hence contradiction by A14,A12;
    end;
    enceProjPMap1(f,x).y1 = ProjPMap1(f,x).y2 by A3,A14,A9,A16,A18,A21;
   end;
(fx)java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 70

   now let a be object;
    ;
    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-sectionf X be non  x  java.lang.StringIndexOutOfBoundsException: Range [43, 40) out of bounds for length 67
    x1 in {x where x is Element of X1: [x,y] in dom f} by MEASUR11:def 5; then   java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 26
    ex x be Element of X1 st x1 = x & [x,y] in dom f;
    hence a in REAL by A4,A26,proof
   end; then
   rng ProjPMap2(f,y) c= REAL; then
A27:ProjPMap2(f,y) is real-valued by VALUED_0:def 3;

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

   consider G1 be FinSequence of S1 such that
A28:assume A1: f is nonpositive;
      from FINSEQ_2:sch 1;
A29:dom G1 = dom F by A28,FINSEQ_3:29;

   now let m,n be Nat;for  set qin(fx))holds > ProjPMap1f,).java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
    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 Map1(f,)q = f.(x,y1 by ,h26;
   reconsider G1 as Finite_Sep_Sequence of S1;

   reconsider GG1 = G1    end;

A32:for n be Nat st n in dom GG1 holds GG1.n = Y-section(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
   proof
    let n be Nat;
    assume n in dom GG1; then
    GG1.n = Measurable-Y-section(F.n,y) by A28;
    java.lang.StringIndexOutOfBoundsException: Range [13, 9) out of bounds for length 54
   end; then
   Y-section(union rng FF,y) = union rng GG1 by A29,MEASUR11:29; then
A33:dom ProjPMap2(    hence 0 >= (Pro(,)).p yA1,8;

   for n be Nate;
    & x2 in G1.n holds ProjPMap2(f,y).x1 = ProjPMap2(f,y).x2
   proof
    let n be Nat;
    assume A34: n in dom G1 & x1 in G1.
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
     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:rojPMap2(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;
     m  object suchthat
A40:  m in dom F & A = F.m by A39,FUNCT_1:def = (ProjPMap1f,x)) / X-ection(A,x) by RELAT_1:61
     reconsider m as Nat by A40;
      assume m <> n; then
      for x be Element    .= X-section(dom f /\ A= X-ection(dom f /\ A,x) by MEASUR11:27
        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
     not x2 in Y-section(F.n,y) by MEASUR11:def 5;
     hence contradiction by A34,A32;
    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:
for X1,X2 be non empty set, x be Element of X1, y be Element of X2,
  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 set, x be Element of X1, y be Element of X2,
   f be PartFunc of [:X1,X2:],ExtREAL;
   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(ProjPMap1(f,x)); then
    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(f,x) is nonnegative by SUPINF_2:52;

   for p be object st p in dom(ProjPMap2(f,y)) holds 0 <= (ProjPMap2(f,y)).p
   proof
    let p be object;
    assume A3: p in dom(ProjPMap2(f,y)); then
    
    ProjPMap2(f,y).p = f.(x1,y) by A3,Th26;
    hence 0 <= (ProjPMap2(f,y)).p by A1,SUPINF_2:51;
   end;
   hence ProjPMap2(f,y) is nonnegative by SUPINF_2:52;
end;

theorem Th33:
for X1,X2 be non empty ProjPMap1(f1,x).y = f1 by A4, then
  f be PartFunc of [:X1,X2:],ExtREAL
 st f is nonpositive holds
  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,X2:],b3:  ProjPMap1(f,x).y = f.(x,y) by A2A9,
   assume A1: f is nonpositive;

   for q be set st q in dom (ProjPMap1(f,x)) holds 0 >= (ProjPMap1(f,x)).q
   proof
    let     y in X-section(A,x) by XBOOLE_0:def 4;
    assume A2: q in dom(ProjPMap1(f,x)ProjPMap1fx))|(-ection(,).java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
    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,MESFUNC5:8;
   java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
   hence ProjPMap1(f,x) is nonpositive by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 44

   for p be set st p in dom(ProjPMap2(fnowlet x Elementof ;

    let pA14 x in -sectiondom  \ A,y)by , then
    assume A3: p in domA15: [,dom  \A byTh25;then
    reconsider x1 = p as Element of X1;
    ProjPMap2(f,y).p = f.(x1,y) by A3,Th26;
    hence 0 >= (ProjPMap2(f,y)).p by A1,A16ProjPMap2(f1y.  f(x,y) ,y) byA15,FUNCT_148
   ndjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
   hence ProjPMap2(f,y) is nonpositive by MESFUNC5:9;
end;

theorem Th34:
for X1,X2hencey).x  Pjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 68
 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) = ProjPMap2f,y)Ysection(,yjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
proof
    let X1,X2 be non empty set, x be Element of X1, y be Element of X2,
    A be y be Element of X2 holds
    set f1 = f|A;

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

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

7:dom(ProjPMap1(f,x)|X-section(A,x))
    = dom(ProjPMap1(f,x)) /\ X  (,:,java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 74
   .= X-section(dom :java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 63
   .= Xlet yy be 
   . dom(ProjPMap1(f1x) by A4,Def3;

    now let y be Element of X2;
     assume y in dom(a4: ProjMap1(Xchi(A,[:X1,X2:]),x).y = Xchi(A,[:X1,X2:]).(x,y)
java.lang.StringIndexOutOfBoundsException: Range [21, 2) out of bounds for length 50
A9:  [x,y] in dom f /\ A by Th25; then
     ProjPMap1(f1,x).y = f1.(x,y) by A4,y  XsectionA,)by  then
A10: ProjPMap1(f1,x).y = f.(x,y) by A9,FUNCT_1:48;
y A9Def3
     in-java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 70
     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))
      

java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 40
    = dom(ProjPMap2(f,y))& Xchi(-ection(A,x),X2).y = 0 by a5,a4,b2,MEASUR10:def 7;
   .= 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
          beElementof ;
     hence (ProjPMap2(f1,y)).x = (ProjPMap2(f,y))|(Y-section(A,y)).x
      by A16,b4,FUNCT_1:49;
    end;
    hence ProjPMap2(f1a4 ProjMap2(chi(,:X2)y)x= XchiA[X1X2]).(xy
      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(chi(:X1,X2:],],)  XsectionA,)X2)
 & ProjPMap2(Xchi(A,[:X1,X2:]),y&Xchi(Y-section(A,y),X1).x = +infty by a4,b1,MEASUR10:def 7;
proofb2:not xy]in  then
   let X1,X2  not in Y-section(A,y) by Th25; then
   x be Element of X1, y be Element of X2;

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

   fory be Elementof holds
    ProjMap1(Xchi(A,[;
   java.lang.StringIndexOutOfBoundsException: Range [65, 8) out of bounds for length 65
    let y be Element of X2;
a5: [x,y] for be non empty set, S be SigmaField of X, M be sigma_Measure of S,
a4: ProjMap1(Xchi(A,[:X1,X2:]),x).y = Xchi(A,[:X1,X2:]).(x,y)
       :def 6
    er ;
    suppose b1: [x,y] in A; then
     y in X-section(A,x) by Th25; then
     ProjMap1(chi(A,[X1,X2]),)y =+nfty
   & Xchi(X-section(A,x),X2).y = +infty by a4,b1,MEASUR10:def 7;
     hence thesis;
    end;
    suppose b2: not [x,y] in A; then
     not y in X-section(A,x) by Th25; then
     Xchi(A,:1,:),x.=0
   & Xchi(X-section(A,x),X2).y = 0 by a5,a4,b2,MEASUR10:def 7;
     hence thesis;
     fis A;
   end;
   hence ProjPMap1(Xchi(A,[:X1,X2:]),x) = Xchi(X-section(A,xnow let r be Real;
     by A3,FUNCT_2:def 8;

   for x be Element of X1 holds
    X(A[X1,2:)y).x =Xchi(Ysection(Ay)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)A6:  x indom   f.< by MESFUNC1:ef11;
       MESFUNC9:def 7java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    per cases;
    suppose b1: [x,y] in A; then
     x in Y-section(A,y) by Th25; then
     ProjMap2(Xchi(A,[:X1,e; then
   & Xchi(Y-section(A,y),X1).x = +infty by a4,b1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 46
     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,X2A8:   x in A &xin less_dom(,r)by XBOOLE_0:def 4; then
   & Xchi(-sectionA,),X1).x  0by a5,4b,EASUR10:def7;
     hence thesis;
    end;
   end
   hence ProjPMap2(Xchi(A,[:X1,X2:]x inless_dom(,)by A2,A8A9,MESFUNC1def 11;
     by A3,FUNCT_2:def 8;
end;

theorem Th36:
for X be non empty set, S be SigmaField A / less_domgr)c=A/ less_dom(,) hen
 f,g bePartFunc of ExtREAL,E  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 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 36
     f,g be PartFunc of X,ExtREAL, A be Element of S;
    assume that
A1:  ffbe  of [X,2:,ExtREAL,x Element of X1 y  Elementof java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
A2:  A c=F be  of :X1X:,ExtREAL
A3:  A c= dom g and
is A-measurable;

      be Real;
     now let x be object;
      assume x in A /\ java.lang.StringIndexOutOfBoundsException: Range [62, 42) out of bounds for length 62
A5:   x in& (or  be Element
A6:   x in dom f & f.x < r by MESFUNC1:def 11;
      f.x = (f|A).x by A5,FUNCT_1:49; then
NCT_1:49 then
      x in less_dom(g,r) by A3,A5,A6,MESFUNC1:def 11;
      henceletn  Element of NAT;
     end; then
A7:  A /\ less_dom(f,r) c= A /\ less_dom(g,r);

     now let x  object;
      assume x in A /\ less_dom(g,r); then
A8:x in A&x inless_dom(gr)XBOOLE_0:4;then
A9:   x in dom g & g.x < r by MESFUNC1:def 11;
      g.take ;
      g
      x in less_dom(f,r) by A2,A8,A9, ex FX be with_the_same_dom Functional_Sequen,ExtREAL
java.lang.StringIndexOutOfBoundsException: Range [9, 6) out of bounds for length 57
      then
     A /\ less_dom(g,r) c= A /\ less_dom(f,r); then
           FX#x  isconvergent & (ProjPMap2(f,y)).x = lim(FX#x))
     hence A /\ less_dom(g,r) in S by A4,MESFUNC1:def 16;
    end;
    hence thesis by MESFUNC1:def 16;
endconsider FX be sequence of PFuncs(X1,ExtREAL) such that

theorem  Th37:
for X1,X2 be non empty set, A be Subset of [:X1,X2:],
  f be java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  F be Functional_Sequence [X1,X2],ExtREAL
 st A c= dom f &
   (F.  A)
 & (for z be Element of [:X1,X2:] st z in A holds
      (F#z) is convergent & lim(F#z) = f.z)
holds
(1,ExtREAL
  st (for n be Nat holds FX.n = ProjPMap2(F.n,y))
   & (for x be Element of X1 st x in Y-section(A,y) holds
       FX#xfor ,n be Nat holds dom(X.m)=dom(FX.n)
( 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 FX as with_the_same_dom   X1ExtREAL
       FY#y is convergent & (ProjPMap1(f,x)).y = lim(FY#y)) )
proof
    let X1,X2 be non empty set, A be Subset of [:X1,X2:],
    f be PartFunc of [:X1,X2proof
    F be Functional_Sequence of java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
A1:  Ac  
A2:  for n be Nat holds dom(F.n) =      hence #
java.lang.StringIndexOutOfBoundsException: Range [44, 2) out of bounds for length 44
       holds (F#x) is convergent & lim(F#x) = f.x;

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

    defpred P2[Element of NAT,object] means $2 = ProjPMap2(F.$1,y);

A5: 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     let n be Element of NAT;
     take f;
     thus thesis;
    end;

    thus ex FXbewith_the_same_dom Functional_Sequence of X1,ExtREAL
      st (for n be Nat holds FX.n = ProjPMap2(F.n,y))
       & (for x be Element of X1 st x in Y-section(A,y) holds
            FX#x is convergent & (ProjPMap2(f,y)).x = lim(
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 9
     consider FX be sequence of PFuncs(X1,ExtREAL) such that
A11:for n  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 49

java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 50
     proof
       n be Nat;
A8:   dom(F.n) = dom(f|A) by A2,A4;
      n is Element of NAT by ORDINAL1:def 12; then
      FX.n = ProjPMap2(F.n,y) by A6;
FX.n =YsectionAy ,A8,Def4;
     end;

      mmnbeNat java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 47
     proof
      let m,n be Nat;
      dom(FX.m) = Y-section(A,
      hence dom(FX.m) = dom(FX.n) by A7;
     
     reconsider FX as with_the_same_dom Functional_Sequence of X1,ExtREAL
       by MESFUNC8:defAT ORDINAL1def 12;
     take FX;

     .java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 52
     proof
      let n be Nat;
      n is Element of NAT by ORDINAL1:def 12;
      hence FX.n = ProjPMap2(F.n,y) by java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 28
     end;

     thus 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)
     proof
      let x be Element of X1;
      reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
      assume x in Y-section(A,y); then
A13:   [x,]in A by Th25; then
A14:  F#z is convergent & lim(F#z) = f.z by A3;

A15:  for n be Element of NAT holds (FX#x).n = (F#z).n
      proof
       let n be Element of NAT;
A16:   [x,y] in dom(F.n) by A2,A13;
       (FX#x.n = (X.)x by MESFUNC5:def 13; then
       (FX#x).n = ProjPMap2(F.n,y).x by A6; then
       (Y#.n = (F.)x,) by A20,Def3;
java.lang.StringIndexOutOfBoundsException: Range [17, 7) out of bounds for length 51
      end;
      ence FX#x is convergent by A14,FUNCT_2:63;
      (
      hence(f,y)).x= lim(X#)by A14,A15,FUNCT_2:63;
     end;
    end;

    defpred P1[Element of NAT,object] means $2 = ProjPMap1(F.$1,x);

be Element  f  Element of PFuncs(,java.lang.StringIndexOutOfBoundsException: Range [66, 64) out of bounds for length 76
    proof
     let n be Element of NAT;
     reconsider f = ProjPMap1(F.n,x)
       st( is or f  )&A c=  f&f is A-measurable
     take f;
     thus thesis;
    end;

    consider FY be sequence of PFuncs(X2,ExtREAL) such that
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 69

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;
     hence dom(FY.n) = X-section(A,x) by A4,A12,Def3;
    end;

    forA3:  f is A-measurable;
    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;
    
    proof
     let n be Nat;
     n is Element of NAT by ORDINAL1:def 12;
     hence  f1 isA-measurableby A3,ESFUNC542java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    end;

    thus 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)
    proof
     let y & dom(ProjPMap1f1,)) = X-section(A,x) by A4,Def3;
     reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     ction(,; then
A17:  [x,y] in A by Th25; then
A18: F#z is convergent & lim(F#z) = f.z by A3;

A19: for n be Element of NAT holds (FY#y).n = (F#z).nt
     proof
      let n be Element of NAT;
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
      (#
      hence (FY#y).n = (F#z).n by MESFUNC5     (F#x)is convergent & lim(F#x) = f1.x)
     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:
X2 non empty set, S1 beSigmaField 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 (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:],ExtREALfor x  of [:X1,2:] tx dom holds (F.n).x <= (F.m).x )
    A be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  (f is nonnegative java.lang.StringIndexOutOfBoundsException: Range [70, 25) out of bounds for length 70
A2:  A c= dom f and
A3:  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

reconsider X12 = [:X1,X2:] as Element of sigma measurable_rectangles(S1,S2)
      by MEASURE1:7;
    reconsider S = sigma measurable_rectangles(  be Nat holdsjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
      as SigmaField of [:X1,X2:];

    set f1 = f|A;
A4: dom f1 = A by A2,RELAT_1:62;
     =dom f/\  byA2,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   onsider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
A7: dom(ProjPMap1(f,x)) = X-section(dom f,x)
  ;
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 A10:for z be Element of [:X1,X2:] st z in A holds
    (for x be Element of [:X1,X2:] st x in dom f1 holds
     (F#x is convergent & lim(F#x)=f1.x)
   proof
     java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 20
    suppose f isassume    java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
     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      thus lim(F#z) = f1.zA4A9,11. f.z byA11,UNCT_1:49;
    & (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
        (F#x) is    consider FY be with_the_same_dom Functional_Sequence of X2,ExtREAL
     hence thesis;
    end;
    suppose f is nonpositive; then
        of[X1X2:]ExtREAL st
      (for n for be Element of X2 st y in X-section(A,x) holds
    & (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#proof
     hence thesis;
    end;
   end;

   consider F be Functional_Sequence of [:X1,X2:],ExtREAL such that
A8 fn beNat 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:or z  Elementof [: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 = reconsider z = [x,y] as Element of: bydef2
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)fx)  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 66
         by A2,A4,A8,A10,Th37;

    for nbeNat 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 ybeElement of ;
     reconsider z = [x,y] as Element of [:X1,X2:convergent & (ProjPMap2(f,y)).x = lim(FX#x))
     assume A18: y in Measurable-X-section(A,x);
     by A2,4,8,A10Th37
     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,) (easurable--Ax)-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
 beNatholds .n = ProjPMap2(Fn,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;

A22for  be Natholds FX.  (easurable--ection(y)measurable
    proof
     let n be Nat;
     .=ProjPMap2(.,y  Fnis_simple_func_in Sby A8Ajava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
     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;

 X1  MeasurableY-Ay)
      FX#x is convergent & (ProjPMap2(f1,y)x = lim(FX#x)
    proof
     let x be Element of X1;
     reconsider z = [x,y] as Element of [:by A6,7A21,A23,Th36,26;
     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 beElement of sigma (S1),
     (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; l X1,be non empty set,S1be SigmaField ofX2,
    ProjPMap2(f1,y)|Measurable-Y-section(A,y)
     = ProjPMap2(f,y)|Measurable-A be Element of S1, B be Element of S2, x be Element of X1;
    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 setby then
  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
  
    = Integral(java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 70
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),
   percases;
   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
    jPMap1x.y =(hi(,)Measurable-Y-section(E,y)).x * chi(B,X2).y
   proof
    let y be Element of ] in E; then
    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;

      Y(,)byA3 
     x in Measurable-Y-section(E,y) by MEASUR11:def hence ProjPMap1(CAB,x).y
     (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;
    
     not y in X-section(E,x) by Th25; then
A6  ProjPMap1(CAB,x)y =0by 

     : chiA,)x  1by FUNCT_3: ;then
     ot Measurable--sectionE,)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;

   per cases;
   suppose x in A; then
A7: chi(A,X1).x = 1 by FUNCT_3:def 3; then
A8:-X-java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 53
     java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 58

    A15:isElementS2 PROB_1:4;
     = Measurable-X-section(E,x) by Th18; then
A9: dom (ProjPMap1(CAB,x)) = dom (chi(B,X2)|Measurable-X-section(E,x))
      by A1,MEASUR11:def 6;

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

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)) ProjPMap1(CAB,x) = chi({},X2)|Measurable-X-section(E,x)
)y=(chi(}X2)Measurable-s(,).y
    proof
     let y be Element     hence M2.(B /\ Measu-Ex)* .java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
     assume A17: ytheorem
     y in for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
A18: (chi({},X2)|Measurable-X-section(E,x)).y = chi({},X2).y by FUNCT_1:49;
     [x,y] in M1  sigma_Measureof S1
     x in Y-section(E,y) by Th25; then
     in java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 59
A19: (chi(M1 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
     ProjPMap1(CAB,x).y
      = (chi(A,X1)|Measurable-Y-section(E,y)).x * chi(B,X2).y by A2; then
     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
    rojPMap1(AB,)=chi(}X2)Measurable-XsectionExjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
      by A16,PARTFUN1:5; then
    Integral(M2,ProjPMap1(CAB,x)) = M2.({} /\ Measurable-X-section(E,x))
      yA15,h20;
    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 java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
   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(B,X2)|Measurable-X-section(E,x). * chiA,X1)x
     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 Th34; then
   dom(ProjPMap2(CAB,y)) = X1 /end;
A1:dom(ProjPMap2(CAB,y)) = Y-section(E,y) by XBOOLE_1:28;

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

     y in X-section(E,x) by A3,Th25; then
     y in hence ProjPMap2CAB,y)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
     (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)|Measurable-X-section(E,x)).y * chi(A,X1).x
         by A4,MEASUR10:2;
    end;
    suppose A5: not [x,y] in E; then
     not x in Y-section(E,y) by Th25; then
A6: CAB,. =0 A1,FUNCT_1:ef2java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48

     not y in X-section(E,x) by A5,Th25; then
     not y in Measurable-X-section(E,x) by MEASUR11:def 6; then
     not y in dom(chi(B,X2)|Measurable-X-section(E,x)) by Th18; then
     (chi(B,X2)|Measurable-X-section(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))
     = 
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  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).java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 38
     java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 60
     hence ProjPMap2(CAB,y).x = (chi(A,X1)|Measurable-Y-sectionProjPMap2(CAB,y).
      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
      = (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;
     assume A17: x in dom(ProjPMap2(CAB,y)); then
     x in Measurable-Y-section(E,y) by A1,MEASUR11:def 7; then
A18: (chi({},X1)|Measurable-Y-section(E,y)).x = chi({},X1).x by FUNCT_1:49;
     [x,y] in E by A1,A17,Th25; 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
      = (chiB,X2)Measurable-X-section(Ex).y * chi(A,X1). byA2 then
     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,y) = chi({},X1)|Measurable-Y-section(E,y)
      by A16,PARTFUN1:5; then
    Integral(M1,ProjPMap2(CAB,y)) = M1.({} /\ Measurable-Y-section(E,y))
      by A15,h20;
    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 java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 54
 f be PartFunc offor x be Element of X1  x  C,y)) 
   x,y domf&f(,y= java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
       iff y in dom( x be Element of X1
  ([,]in dom f& f
       ff xin P(,)  (java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 63
proof
   [x,]in EbyA1,17,;then
   f be y in X-sectionx) byTh25then
   hereby in MeasurableXs(Ex)by def ;then
A2: [x,y] in dom f and
A3: f.(x,y) = a;
    y in X-section(dom f,x) by A2,Th25;
    hence y in dom(ProjPMap1(f,x)) by Def3;
    hence ProjPMap1(f,x).y = a by A3,Th26;
   end;

   hereby assume that
A4: y in dom(ProjPMap1(f,x)) and
A5: ProjPMap1(f,x).y = a;
   y in X-section(dom f,x) by A4,Def3;
   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;
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 42
   end;

   assume that
A8: x in dom(ProjPMap2(f,y  [x,]in  .x,)=er
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 MEASUR11hence yin domProjPMap1(,)  Def3;
     consider y1 be Element of Y such that
A1:   y1 = y & [x,y1] in E;
A2:  [x,y] in dom f & f.[x,y] inhereby assume that
     y in {A4: y in dom(ProjPMap1(f,x)) and
     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 ProjPMap1in section(dom f,y) by A6,Th25;
    end; then
A4: X-section(f"A,x) c= ProjPMap1(f,x)"A;

    now let y be object;
     java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A5:  y in dom(ProjPMap1(f,x)) & java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 25
     y in -ectiondom ,) by Def3;then
     y in {y where y is Element of Y: [x,y] in dom f} by MEASUR11:def 4; then
     consider y1 be Element of Y such that
]in f

     f.(x,y1) in A by A5,A6,Def3; then
     [x,y1] in f"A by A6,FUNCT_1:def 7; then
     y in {y where y is Element of Y: [x,y] in f"A} by A6;
     hencefor X1,2be  empty set,A,Zbe set,f  java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 69
    end; then
    ProjPMap1(f,x)"A c= X-section(f"A,x);
    hence X-section(f"A,x) = ProjPMap1(f,x)"A by A4;
end;

theorem Th42:
for X1,X2 be non empty set, A,Z be set, f be PartFunc of [:X1,X2:],Z,
 y be Element of X2 holds Y-section(f"A,y) = ProjPMap2(f,y)"A
proof
    let X,Y be non empty set, A,Z be set, f be PartFunc of [:X,     consider be of  that
    y beElement of Y;
    reconsider E = f"A as Subset of [:X,Y:];
    now let x be object;
     assume xinY-section("A,y) then
     x in {x where yin ywhere y is ElementofY:[,]in  }byA1; 
     consider x1 be Element of X such that
A1:   x1 = x & [x1,y] in E;
A2:  [x,y] in dom f & f.[x,y] in A by A1,FUNCT_1:def 7; then
     x in  ence y in ProjPMap1(f,x)"A by A1,A2,A3,FUNCT_1:def 7;
     x in Y-end;then
A3:  x in dom(ProjPMap2(f,y)) by Def4;

     (,)x1=f(,y by A2Def4;
     hence x in ProjPMap2(f,y)"A by A1,A2,A3,:  y in dom(ProjPMap1(f,x)) & ProjPMap1(f,x).y in7 then
    end; then
A4: Y-section(f"A,y) c= ProjPMap2(f,y)"A;

    now let x be object;
     assume x in ProjPMap2(f,y)"A; then
A5:  x in dom(ProjPMap2(f,y)) & ProjPMap2(f,y).x in A by FUNCT_1:def 7     .(x,y1) in A by A5,A6,Def3; then
     x in Y-section(dom f,y) by Def4; then
     x  {x where x is Element of X:[x,y]in  f}byMEASUR11:def 5; then
     consider x1 be Element of X such that
A6:   x1 = x & [x1,y] in dom f;

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

     [x1,y] XsfA,)=ProjPMap1x)"
     x in {x where x is Element of X: [x,y] in f"A} by A6;
     ence  inY-sectionfAy M:def5;
    end; then
    ProjPMap2fy)" =Y-section(f"A,y);
    hence Y-section(f"A,y) = ProjPMap2(f,y)"A by A4;
end;

theorem Th43:
for X1,X2 be non empty set, A,B be Subset of [:X1,X2:], p be set holds
  X-section(A \ B,p) = X-section(A,p) \ X-section(B,p)
& Y-section(A \ B,p) = Y-section(A,p) \ Y-section(B,p)
proof
   let X1,  non empty set,E1,E2 beSubset of [:X1,X2:], p be set;
   now let q be set;
    assume qin X-section( \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
    q in {y where y is Element of X2: [p,y] in x in {x where x is Element of X: [x,y] in domby A1; then
A3) by MEASUR11:def4;
    now assume q in X-section(E2,p); then
     q in {y where y is Element of X2: [p,y] in E2} by MEASUR11:def 4; then
     ex y be Element of X2 st q = y & [p,y] in E2;
     hence contradiction by A1,XBOOLE_0:def 5;
    end;
    hence q in X-section(E1,p) \ X-section(E2,p) by A3,XBOOLE_0:def 5;
   nd;then
A4:Y-ection(",)c ProjPMap2(fy";

   now let q be set;
    assume q in X-section(E1,p) \ X-section(E2,p); then
    q inassume x in ProjPMap2(f,";
 in{where is java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 52
    not q in {y where consider 1beElement of X such that
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 \x {where  isis Element X [xy] in f"A} by A6;
   hence X-section(E1 \ E2,p) = X-section(E1,p) \ X-section(E2,p) by A4;

   now let q be set;
    ssumeqin 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
theorem Th43:
    now for X1,X2 be non empty set, A,B be Subset of [:X1,X2:], p be set holds
     q in {x where x is Element   X-section( \B,p =X-java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 54
     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(q in ywhere is java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 79
   end; java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
B4YE  p)c=Y-ection(1p  section(2,p);

   now let q be set;
    assume q in Y-section(E1,p) \ Y-section(E2,p); then
     inY-(,)¬  Y-section(E2)by java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 75
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      q  {y where y isElement of X2: [p,y] in E2} by MEASUR11:def 4; 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]     hence contradiction by A1,XBOOLE_0:def 5;
    q e
    hence q in Y-section(E1 \    hence iXsection(E1,p) \ XsectionE2,)by ,XBOOLE_0:def 5;
   end; then
   Y-section(E1,p) \ Y-section(E2,p) c= Y-section(E1 \ E2,p);
   java.lang.StringIndexOutOfBoundsException: Range [46, 8) out of bounds for length 72
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,2be emptyset,xbeElement ofX1,y be Element of X2,
   f1,f2 be PartFunc of [:X1,X2:],ExtREAL;
A1:dom(f1+f2) = (dom f1 /\ dom f2)
    \fty} /\f2"-infty}))
      by MESFUNC1:def 3;
B1:dom(f1-f2) = (dom f1 /\ dom f2)
    \ ((f1"{+infty} /\ f2"{+infty}) \/ (f1"{-infty} /\ f2"{-infty}))
        java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24

A2:dom (ProjPMap1(f1,x)) = X-section(dom f1,x) &
   dom (ProjPMap1(f2,x)) = X-section(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:-ection(1"-infty}x)=Pf1x"{ijava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
   X-section(f1"{+infty},x) = ProjPMap1(f1,x)"{+infty} &
   Xsection(f2"{-infty},x) = ProjPMap1(f2,x)"{-infty} &
   X-section(f2"{+infty},x)q inxwhere xis of : [,]  E1}by ;then
   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} &
   section(2"{infty},y)=ProjPMap2(f2,y)"{+infty} by Th42,Th41;

A4:om(ProjPMap1(f1+f2,x))
    = X-section(dom(f1+f2),hence contradiction by B1,XBOOLE_0:def 5;
   .= X-section(dom f1 /\ dom f2,x)
     \ X-section( (f1"{-infty} /\ f2"{+infty})
           \/ (f1"{+infty} /\ f2"{-infty}),x ) by A1,Th43
   .= (X-section(dom f1,x) /\ X-section(dom f2,x))
     \ X-section( (f1"{-infty} /\ f2"{+infty})
           \/ (f1"{+infty} /\ f2"{-infty}),x ) by MEASUR11:27
   .= ( dom (ProjPMap1now letq set;
      (Xs{ \f2"+},x)
           \/ X-section(f1"{+infty} /\ f2"{-infty},x) ) by A2,MEASUR11:26; q Y-ection(E1,)¬ q nY-ection(p byXBOOLE_0:ef 5; 
A5:dom(ProjPMap1(f1f2x)
    = ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( (X-section(f1"{-infty},x) /\ X-section(f2"{+infty},x))
           \/ X-section(f1"{+infty} /\ f2"{-infty},x) ) by MEASUR11:27
   .= ( B6: ex x be: ex xbeElement of X1 st q = x & [x,p] in E1; then
     \ ( (ProjPMap1(f1,x)"{-infty} /\ ProjPMap1(f2,x)"{+infty})
           \/ ( X-section(f1"{+infty},x) /\ X-section(f2"{-infty},x) ) )
             by A3,MEASUR11:27
   .= dom(ProjPMap1q in {where xisElement of X1: [x,p] in E1 \ E2} by B6;

    ybe lement X2st   ProjPMap1(+,) 
    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);
       xy E of[X1,2: ZFMISC_1:ef2;
= (+f2)x,)by ,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,A6proof
    y in dom (ProjPMap1(f1,x)) & y in dom (ProjPMap1be Element of X2,
      by XBOOLE_0:def 4; then
    ProjPMap1(f1,x).y = f1.(x,y) & ProjPMap1(f2,x).y = f2.(x,y)
      byTh26;
    hence ProjPMap1(f1+f2,x).y = (ProjPMap1(f1,x) + ProjPMap1(f2,x)).y
      by A8A,,:def 3;
   end;
   hence ProjPMap1(f1+f2,x) = ProjPMap1(f1,x) + ProjPMap1(f2,x)
     by A5,PARTFUN1:5;

B4: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 B1,Th43
   .= (X-section(dom f1,x) /\ X-section(dom f2,x))
     \ 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))
           \/ X-section(f1"{-infty} /\ f2"{-infty},x) ) by MEASUR11:27
   .= ( dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x)) )
     \ ( (ProjPMap1(f1,x)"{+infty} /\ ProjPMap1(f2,x)"{+infty})
           \/ ( 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 4;

   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 4;
    y in dom (ProjPMap1(f1,x)) /\ dom (ProjPMap1(f2,x))
      by B4,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,B5,A6,MESFUNC1:def 4;
   end;
   hence f1f2,)=ProjPMap1(f1x  f2,)
     by B5,PARTFUN1:5;

C4:dom(ProjPMap2(f1+f2,y))
    = Y-section(dom(f1+f2),y) by Def4
   .= Y-section(dom f1 /\ dom f2,y)
     \ Y-section( (f1"{-infty} /\ f2"{+infty})
           \ f2"{-infty}y)by T
   .= (Y-section(dom f1,y) /\ Y-section(dom f2,y))
     \ Y-section( (f1"{-infty} /\ f2"{+infty})
           11:
   .=Ysf"+,)=ProjPMap2(f1,y)"{+infty} &
     \ ( Y-section(f1"{-infty} /\ f2"{+infty},y)
           \/ Y-section(f1"{+infty} /\ f2"{-infty},y) Y-section(f2{infty,) = ProjPMap2(f2,y)"{-infty} &
C5:dom(ProjPMap2(f1+f2,y))
    = ( dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(f2,y)) )
     \ ( (Y-section(f1"{-infty},y) /\ java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 0
           \/ Y-section(f1"{+infty} /\ f2"{-infty},y) ) java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 35
   .= ( dom (ProjPMap2\X-section((f1{-infty} \ f2{+infty)
     \ ( (ProjPMap2(f1,y)"{-infty} /\ ProjPMap2(f2,y)"{+infty})
             section()/\ Y-section(f2"{-infty},y) ) )
             by A3,MEASUR11:27
java.lang.StringIndexOutOfBoundsException: Range [16, 3) out of bounds for length 66

   for x be Element of X1 st x in dom(ProjPMap2(f1+f2,y)) holds
    ProjPMap2(f1+f2,y).x = (ProjPMap2(f1,y) + ProjPMap2(f2,y)).x
   proof
     be  of ;
    assume C6: x in dom ProjPMap2(f1+f2,y);
     x,] as of[X1,:] by ZFMISC_1: 2;
C7: ProjPMap2(f1+f2,y).x = (f1+f2).(x,y) by C6,Th26; then
    [x,y] in dom(f1+f2) by C6,Th40; then
C8: ProjPMap2(f1+f2,y).x = f1.z + f2.z by C7,MESFUNC1:def 3;
    x in dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2(f2,y))
      by C4,C6,XBOOLE_0:def 5; then
    x in dom (ProjPMap2(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)
       Th26
    A8 (+2x.  f1z + f2.z by A7,d 3java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
      by C8,C5,C6,MESFUNC1:def 3;
   end;
   hence      by XBOOLE_0:def 4; then
     by C5,PARTFUN1:5;

D4:dom(ProjPMap2(f1-f2,y))
     sectiondom(f1f2,)by Def4
   .=section(om f1 /\dom ,y
\section( f1"{infty}/ {infty})
           \/ (f1"{-infty} /\ f2"{-infty}),y ) by B1,Th43
   . (-section(f1y /\ Ysection(dom f2,y)
     \ Y-section( (f1"{+infty} /\ f2"{+infty})
           \/ (f1"{-infty} /\ f2"{-infty}),y ) by MEASUR11:27
   .= ( dom (ProjPMap2(f1=X-dom(f2, by 
     \ ( Y-section(f1"{+infty} /\ f2"{   .= Xsection(om  / f2,)
           \/ Y-section(f1"{-infty} /\ f2"{-infty},y) ) by A2,MEASUR11:26;  -sectionsection f1"+ /\ f2"+})
D5:((f1-f2,))
    = ( dom (ProjPMap2(f1,y)) /\ dom (ProjPMap2.= (X-section(domf1,x)/ X-section(domf2x))
     \ ( (Y-\ X-section( (f1{+infty} / f2"+)
           \/ Y-section(f1"{-infty} /\ f2"{\ f"-}/ "-)   MEASUR1127
   .= ( dom (ProjPMap2(. ( Pf1,x) \dom ProjPMap1(f2x))
     \ ( (ProjPMap2     \(X-f1{+ \f2"+infty},x)
           \/ ( Y-section(f1           \/ X-section(f1"{infty} /\ f2"{-infty},x) ) by A2,MEASUR11
             :(f1-2,x)
   .= dom(ProjPMap2(f1,y) - ProjPMap2(f2,y)) by A3,MESFUNC1:def 4;

forx beElement ofX st x in ProjPMap2(f1f2y) holds
    ProjPMap2(-f2y).x = (ProjPMap2(f1y) - ProjPMap2(f2,)).x
   proof
    let x be Element of X1;
    assume D6 x in domProjPMap2(f1-f2,y);
    reconsider z = [x,y] as Element of [:X1,X2:] by ZFMISC_1:def 2;
D7: ProjPMap2(f1-f2,y).x = (f1-f2).(x,y) by D6,Th26; then
    [x, by A3,:27
D8: ProjPMap2(f1-f2,y).x = f1.z - f2.z by D7,MESFUNC1:def 4;
xinPjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 55
      by D4,D6,XBOOLE_0:def 5; then
    x in dom (    ProjPMap1(1-,)y  Pf1x -Pf2,).java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
      by XBOOLE_0:    letbejava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
    ProjPMap2(f1,y).x = f1.(x,y) & ProjPMap2(f2,y).x = f2.(x,y)
      by Th26;
    Pf1-,)x=((,y)-ProjPMap2(f2y))x
      by D8    x, in dom(1f2) A6, 
   endjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
   hence ProjPMap2(f1-f2,y) = ProjPMap2(f1,y) - ProjPMap2(f2,y)
     by D5,PARTFUN1:5;
end;

Lm4:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
  f be PartFunc by XBOOLE_0:def 4;then
  E be Element of     ProjPMap1(f1,x).y =(,y) &ProjPMap1(f2,x).y = f2(x,y)
 st E c= dom f & f is E-measurable
 holds
  ProjPMap1(max+f,x) is (Measurable-X-section    hence (f1-f2,x)y = ProjPMap1(f1,x) - ProjPMap1(f2,x)).y
& ProjPMap2(      by A8,B5A6, ;
& ProjPMap1(   end
&ProjPMap2(f,y)  (-Y-(Ey)measurable
proof
   let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    be PartFunc of[X1X2]ExtREAL, xbe  of   Element 
 Elementsigmameasurable_rectangles(1,2;
   assume that
A1: A c= dom f and
A2: f is A-measurable;

A3:max+f is nonnegative & max-f is nonnegative by MESFUN11:5;
A4:max+f is A-measurable by A2,MESFUNC2:25;
A5:max-f is A-measurable by A1,A2,MESFUNC2:26;

   dom(max+f) = dom f by MESFUNC2:def 2;
   hence ProjPMap1(max+fx)is(Measurable-XsectionAx)-easurable
        ProjPMap2(+,y is (-Y-ectionA,)-measurable
     by A1,A3,A4,Lm3;

f  def 3;
   hence ProjPMap1(max-f, =(dom ProjPMap2(1y)/ om((2y)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
       & ProjPMap2(max-f,y) is (Measurable-Y-section(A,y))-measurable     in dom(ProjPMap2(f1,y))   in (ProjPMap2(2y)
     by A1,A3,A5,Lm3;
end;

theorem Th45:
for X1,X2 be non empty set, f be PartFunc of [:X1,X2:]by ,C5,def;
 x be Element of X1 holds
  ProjPMap1(max+endjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
& ProjPMap1(max-f,x) = max-(ProjPMap1(f,x))
proof
  X1     PartFunc[:X2]
   x be Element of X1;
   dom(ProjPMap1(max+f,x)) = X-section(dom(max+f),x)
& (f,)  -dom(ax-)x by  then
:(maxfx)=X-domf,)
 & dom(ProjPMap1(max-f,x)) = X-section(dom f,x) by MESFUNC2:def 2,def 3;
   dom(max+(ProjPMap1(f,x)))\( Y-section(1"+infty / "+infty}y)
&domm(f,))=dom(rojPMap1(,x)
 2def; then
:(+ProjPMap1(,x)  section ,xx
 & dom(max-(     \ Ysection(1"{infty}, /\ Y-ection(f2"+nfty,y))
     of    maxf,)
       .= ( d ProjPMap2f1,y) \dom ProjPMap2(y) )
   proof
    let y be Element of X2;
    assumeA3   ProjPMap1(+x);then
    y in {y where y is Element of X2: [x,y]             :27
       by A1,MEASUR11:def 4; then
A4: ex y1 be Element of X2 st y1 = y & [x,y1] in dom f;

    z= xy;
A5: [x,y] in dom(max+f) by A4,MESFUNC2:def 2; then
A6: (ProjPMap1(max+f   
       let x be Element ofX1

    ProjPMap1(f,x).y = f.(x,y) by A4,Def3;
    hence  by  A6,A1,A3,A2,MESFUNC2:def 2;
   end;
   hence ProjPMap1(max+f,x) = max+(ProjPMap1(f,x)) by A1,A2,PARTFUN1:5;

   for y be Element of X2 st y in dom(ProjPMap1(max-f,x))
    holds (ProjPMap1(max-      by D4,D6,XBOOLE_0:ef5; then
   
    letb java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 29
    assume A8: y in dom(ProjPMap1(max-f,x)); then
    y in {y where y is Element ofendjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      by A1,MEASUR11:def 4; then
A9: ex y1 be Element of X2 st y1 = y &end;

    set z = [x,y];
[y]in(f  ,def  
A11:(ProjPMap1(max-f,x)).y = (max-  fbePartFunc of [X,] beElementofX1  Element  ,
      . ((.)0 A10,def 3

    ProjPMap1(f,x).y = f.(x,y) by A9,Def3;
    hence thesis by A11,A1,A2,A8,MESFUNC2:def)is(Measurable-(Ey)measurable
   end;
   hence java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 71
end;

theorem Th46:
for X1,X2 be non empty set, f be PartFunc of [:X1,X2:],ExtREAL,
 y be Element of X2 holds
  ProjPMap2(max+f,y) = max+(ProjPMap2(f,y))
& ProjPMap2(max-f,y) = max-(ProjPMap2(f,y))
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:dom(ProjPMap2(max+java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 0
 & 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 be Element of st x ((,)
    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}
       by A1,MEASUR11:def 5; java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 25
A4:exx1 be Element of X1 stx1 =x&[y  fjava.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
    set z = [x,y];
A5: [x,y] in dom(max+f) by A4,MESFUNC2:def 2; f [:,:,java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 66
A6: (ProjPMap2(max+   (ProjPMap1(+fx) =X-dom(axf,)
      =max(.z, A5,: 2;
    ProjPMap2(f,A1:domPmax+,x)=X-ection( ,xjava.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [46, 4) out of bounds for length 47
   end;
java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71

for be Element  stx dom(rojPMap2max-fy)
    holds (ProjPMap2(max-f,y)).x = (max-(ProjPMap2(f,y))).x
   proof
    let x be Element of X1;
    assume A8: x in dom(ProjPMap2(max-f,y)); then
    x in{xwhere x is Element of X1: [x,y] in dom f}
      by A1,MEASUR11:def 5; then
A9: ex x1 be Element of X1 st x1 = x & [x1,y] in dom f;
    set z = [x,y];
A10:[ proof
A11:(ProjPMap2(max-f,y)).x = (max-f).(x,y) by Def4
      .= max(-(f.z),0) by A10,MESFUNC2:def 3;
    ProjPMap2(,.(,y by A9,ef4;
    hence thesis by A11,A1,A8,A2,MESFUNC2:def 3;
   end;
   max-,)=max-ProjPMap2(f,y)) by A1A2PARTFUN1:5java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
end

theorem Th47set z =x,];
for, non 
  f be PartFunc of [:X1,X2 A1,EASUR11:def 4; 
  E (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, S2 be SigmaField of X2,
   f be PartFunc of [:X1,X2:],ExtREAL, x be Element of X1, y be Element of X2,
   AbeElementofsigmameasurable_rectangles(S1,2)
   assume that
A1: A c= dom f and
A2: f is A-measurable;
   X-section(A,x) c= X-section(dom f,x)
  -(,)c=Y-( fy by M:,21;then
   Measurable-X-section(A,x) c= X-section(dom f,x)
 & Measurable-Y-section(A,y) c= Y-section(dom f,y)
      end;
A3:Measurable-X-section(A,x) c= dom(ProjPMap1(f,x))
 & --section(A,) c=dom((,y)) by Def3,Def4;
   ProjPMap1(max+f,x) java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
 ) is(easurable--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))-java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 49
 &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 h45Th46;
   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  beElement of
    reconsider f = ProjPMap1(F.n,A6:(ProjPMap2(+f,)x=(maxf.x) by Def4
      by PARTFUN1:45;
    take f;
    thus thesis;
   end;

   ITbe of that
A2: for n be Element of NAT holds Pend;

   take IT;
   hereby let n be Nat;
    is Elementof NAT by ORDINAL1:ef 12;
    hence IT.n = ProjPMap1(F.n,x) by     holds (ProjPMap2(max-f,y)).x = (max ((ax,y))x=(ax-ProjPMap2(,y))).x
   end;
end;
uniqueness
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 = ProjPMap1(F.n,x);
    n be Element of NAT;
    F1.n = ProjPMap1(F.n,x) by A1;
    hence F1.n = F2.n by A2;
   end;
   thesis ;
end;
end;

definition
let X1X2,  set
  let F be Functional_Sequence of [:X1,X2:],Y;
  let y be Element of -,y) (rojPMap2(f,y)byA1,,PARTFUN1:5;
  func ProjPMap2(F,y) -> Functional_Sequence of X1,Y means :Def6:
 for n be Nat holds it.n = ProjPMap2(F.n,
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;
 of X1,
      by  f  PartFunc  [X1java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 78
    take f;
    thus thesisXsection(x c= X-ectiondom f,x)
   end;

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

   ake;
   hereby let  be Nat;
    n is Element of NAT by ORDINAL1:def 12;
    hence IT.n = ProjPMap2(F.n,y) by A2;
  end;
end;
uniqueness
roof
   let F1,F2 be  & ProjPMap1(max-f,x) is Measurable-Xsection(A,x)measurable
   ssume that
A1: for n be Nat holds F1.n = ProjPMap2(F.n,y) and
A2    by,,; hen
   now let n be Element of NAT;
    F1.n = ProjPMap2(F.n,y) by A1;
    hence F1.n = F2.n by A2;
   end;
thesisbydef;
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:]),xjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
   ProjPMap2(chi(E,[:X1,X2:]),y) = chi(Y-section(E,y),X1)
proof
   let   let x be Element ofX1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
   x be Element of X1, y be Element of X2;

   stence
     ProjMap1(chi(E,[:X1,X2proof

    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A1:chiE[:X1,],). =(,
     by MESFUNC9:def 6; then
A2:[x,y] in E implies ProjMap1(chi(E,[:    let n be Element of NAT;

   [xy isElement of :X1,X2:] by ZFMISC_1: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;
     henceProjMap1chi(,[X1X2],x).y =chiXsection(E,x),X2).y
      by A2,A4,FUNCT_3:def 3;
    end;
    :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
]),x)chi(-E,)X2)by FUNCT_2def ;
   hence ProjPMap1(chi(E,[: end;

   for x be Element of X1 holds
     ProjMap2(chi(E,[:X1,X2:]),y).x = chi(Y-section(   let F1,F2 beFunctional_Sequence  X2,;
   proof
    let xbe Element of X1;
A1:A2 nbeholdsF2n=ProjPMap1(.n,)
     by MESFUNC9:def 7; then
A2:[x,y] in E implies ProjMap2(chi(E,[:X1,X2:]),y).x = 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 ProjMap2(chi(E,[:X1,X2:]),y).x = 0
      by A1,FUNCT_3:def 3;
    per cases;
    suppose A4: [x,y] in E; then
     x in Y-section(E,y) by Th25;
     hence ProjMap2(chi(E,[:X1,X2:]),y).x = chi(Y-section(E,y),X1).x
       by A2,A4,FUNCT_3:def 3;
    end;
     [x,y]inE then
     not x in Y-section(E,y) by   y Element ;
     2((,[X1X2:],y)x  chi(Y-section(E,y),X1).x
       by A3,A5,FUNCT_3:def 3;
    end;
   end; then
   ProjMap2(chi(E,[:X1,proof
   hence ProjPMap2(   defpred PNatobject]means$ = ProjPMap2($,)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
end;

theorem :
for X be non     f=P(.,)as Element  PFuncs(1Yjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
 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
   E be Element of S, er be ExtReal;
   reconsider XX = Xas  of S by MEASURE1:7
   per hereby letn be Natjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
   suppose a1: er = +infty; then
a2: chi(er,E,X) = Xchi(E,X) by Th2;
    per cases;
    suppose a3: M.java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
a4:  M.E > 0 by MEASURE1:def 2;
     thus Integral(M,chi(er,E,X)) = +infty by a2,a3,MEASUR10:33
      .= er * M.E by a1,a4,XXREAL_3:A1: for n be Nat holds F1.n = ProjPMap2nbe Nat holdsF1  ProjPMap2(F.,y and
    end;
    suppose a5: M.E = 0; then
     Integral(M,chi(er,E,X)) = 0 by a2,MEASUR10:33;
     hence Integral(M,chi(er,E,X)) = er * M.E by a5;
    end;
   end;
   suppose a6: er= -infty; then
    hence  F1.n = F2.n by A2;
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; thentheoremTh48java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
a9:  M.E > 0 by MEASURE1:def 2;
     thus Integral(M,chi(er,E,X))
      = -MXchi(X)by a7,:W
     .= -(+infty) by a8,MEASUR10:33
     . *M.Eby a6,a9,XXREAL_3:def 5,6;
    end;
    suppose a12: M.E = 0;
      Integral(M,chi(er,E,X)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
      = - Integral   x beElement of X1, y be Element of X2;
     .= - 0 by a12,MEASUR10:33
     .= er * M.E by a12;
    end;
   end;
   suppose er <> +infty & er <> -infty then
    er in REAL by XXREAL_0:14; then
    reconsider r = er as Real;
a14:hi(,) S by ;
    chi(er,E,X) = r(#)chi(E,X) by Th1;
    hence Integral(M,chi(er,E,X))
     = r * integral'(M,chi(E,X)) by Th12,MESFUN11:59
    .= r * Integral(M,chi(E,X)) by a14,MESFUNC5:89
    .= er * M.E by MESFUNC9:14;
   end;
end;

theorem Th50:
for X be non empty java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
 E be Element of S, er be ExtReal holds
  Integral(M,chi(er,E,X)|E) = er * M.E

    let X be non empty set, S be SigmaField java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 26
    E be Element of S, er be ExtReal;
    reconsider XX = X as Element of S by MEASURE1:7;
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 \ Ehencechi(,:X2],)y= chi(-Ex,.java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
A6:Integral(,chi(er,E,X)) = Integral(,(er,E,X)|X;
    per cases;
    suppose er = +infty; then
A7:  chi(er,E,X) = Xchi(E,X) by Th2; then
:chi(erE,)(  E isnonnegative MESFUNC5:;
     chi(er,E,X) is XX-measurable by Th13; henceProjPMap1(chi(E,[X1:],)=chi(-sectionE)X2)by ;
V:   ex 
     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,    let  beElementof java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A9:  Integral(M,chi(er,E,X)|E) + Integral(M,chi(er,E,X)|(XX     by def 7; 
      =A2[,   java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 74
     for x be Element of X st x in dom(chi(er,E,X)|(XX \ E))
       (hi(,,)(XX  ).   A5,Th16; then
     integralA3: [,]in impliesProjMap2(E[X1,X2:)y)x
     IntegralMc(r,,X|(X\E) = 0 byA2,,,MESFUNC5:88;
     hence Integral(M,chi(er,E,X)|E) = er * M.E by A9,XXREAL_3:4;

    suppose er = -infty; then
A10: chi(er,E,X) = -Xchihence (hiE,:X:)y.=chi(-E)X1)x
:er,X)XX ) java.lang.StringIndexOutOfBoundsException: Range [43, 40) out of bounds for length 55
     chi(er,E,X) is XX-measurable by Th13; then
     ex W being Element of S st W = dom chi(er,E,X) & 
       chi(er,E,X) is W-measurable by A1; then
     ntegral(M,chi(er,E,X))
      = Integral(M,chi(er,E,X)|E) + Integral(M,chi(er,E,X)|(XX \ E))
         by A4,A5,A6,A10,MESFUN11:62; then
A12: Integral(M,chi(er,E,X)|E) + Integral(M,chi(er,E,X)|(XX \ E))
       er *ME  Th49;
A13: dom((-chi(er,E,X))|(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 8
      = dom(-(chi(er,E,X)|(XX \ E))) by MESFUN11:3
     .= XX \ E by A2,MESFUNC1(chi(,[:X2:],y)=chi(-section(E,y),) by :ef8;
     -(chi(er,EX|(XX \ E) is (XX\E)measurable
       by A2,Th15,MEASUR11:63; then
A14: (-chi(erjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     now let x be Element of X;
      A15:x dom(chi(E,)|XX  E));then
      x in dom(-chi(er,E,X)) /\ (XX \ E) by java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 39
A16:  x in dom(-chi(er,E,X)) & x in XX \ E by XBOOLE_0:def 4; then
      x in X & not x in E by XBOOLE_0:def 5; then
      chi(er,E,X).x = 0 by Def1; then
      (-chi(er,E,X   let X benon empty set,SbeSigmaField of X, M be sigma_Measure of S,
      hence (-chi(er,E,X))|(XX \ E).x = 0 by A15,FUNCT_1:47;
     end; then
     integral+(M(-chi(er,E,))(XX\E)  0 byA13,,87 
     integral+(M,-(chi(er,E,X)per cases;
     Integral(M,chi(er,E,X)|(XX \ E)) = - 0 by A2,A3,A11,MESFUN11:57;
     hence Integral(Mper cases;
    end;
    suppose er <> +infty & er <> -infty; then
     er in REAL by XXREAL_0:14; then
     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 nonnegativeend;
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 a9  ME>0by MEASURE1def ;
  Integral(M,chi(er,E1,X)|E2) = er * M.(E1/\E2)
proof
 benon set,S SigmaField X M  sigma_Measure of ,
   E1,E2 be Element of S, er be ExtReal;
   reconsider XX = X as Element of S by MEASURE1:7;
   set f = chi(er,E1/\E2,X);
A1:chi(    end;
A2:dom    suppose a12: M.E =0;
3:1/  E2\E1byXBOOLE_1:89;
A4:(E1 /\ E2) \/ (E2 \ E1) = E2 by XBOOLE_1:51;
   f is XX- byTh13;then
X: ex W being Element of S st W = dom f & 
   f is W-measurable by A2;
   er >=0or er < 0;then
   f is nonnegative or f is nonpositive by Th17; then.=*M. by a12;
ral(M,f|E2) = Integral(M,f|(E1/\E2)) + Integral(M,f|(E2\E1))
    by X,A3,A4,MESFUNC5:91,MESFUN11:62;
   dom(f|(E2\E1)) = dom f /\ (E2\E1) by RELAT_1:61; then
   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  indom(|(2E)
(f|(\))x >  Th16X89 
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|end;
   Integral(M,f|E2) = er * M.(E1/\E2) + 0 by A5,Th50;
hence(,erE,)E2)=er  .E1/E2)byA1,:;
end;

theorem  Th52:
for X1,X2 be nonempty ,S1 be SigmaField of X1,S2 SigmaField ofX2,
  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,  be nonempty , S beSigmaFieldX,M   ofS,
   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))
proof
   let,X2beempty set  beSigmaField X1,S2   ofX2java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
   M2 be sigma_Measure of S2, x be Element of X1,
   E be Element of sigma measurable_rectangles(S1,S2);
   assume A1: M2 is sigma_finite;
A2:ProjPMap1(chi(E,[:X1,X2:]),x) = chi(X-section(E,x),X2) by Th48; then
   ProjPMap1(chi(E,[:X1,X2:]),x) = chi(Measurable-X-sectionA:Mchier
     by MEASUR11:def java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 56
A4:ProjPMap1(chi(E,[:X1,X2:]),x) V:   ex W being Element of S st W=dom chi(erX) &java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
   Y-vol(E,M2).x = M2.(Measurable-X-section(E,x)) by A1,MEASUR11:def 13; then
   Y-vol(E,M2).x = Integral(M2,ProjMap1(chi(E,[:X1,X2:]),x))
     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-.  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 62
     by A2,A4,MESFUNC5:89;


theorem  Th53:
for X1,X2 be non empty      Mchi(r,X)|XX \E))  by ,,Th15Th15MESFUNC5:88java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  M1 be sigma_Measure of S1, y be Element of X2,
  E  Element ofsigma S1)
 t  sigma_finite
     chier,E) isXXmeasurableby Th13; 
   -(,)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          A4,5A6,10,ESFUN11:2 
   M1 be sigma_Measure of S1, y be Element of X2,
   E be Element of sigma measurable_rectangles(S1,S2);
        =er * MEby Th49;

A2:ProjPMap2(chi(E,[:X1,X2:]),y) = chi(Y-section(E,y),X1) by Th48; then
   ProjPMap2chiE[X1X2])y  chiMeasurable-Y-section(E),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-Y-section(E,y)) by A1,MEASUR11:def 14; then
   X-vol(E,M1).y = Integral(M1,A14: (-chi(er,E,X))|(XX \ E) is (XX\Emeasurablejava.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 64
     by MEASUR11:72;
   hence X-vol(E,M1).y = Integral(M1,ProjPMap2(chi(E,[:X1,X2:]),y))
     by Th27;
   hence X-ol(E,). = integral+(M1,ProjPMap2(chi(E,[:X1,X2:]),y)) &
   X-vol(E,M1).y = integral'(M1,ProjPMap2(chi(E,[:X1,X2:]),y))
     by A2,A4,MESFUNC5:89;
end;

theorem
for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
 E be Element      hence -er,E,)|XX \ )   A15,FUNCT_1:;
  Integral(M,r(#)chi(E,X)) = r * Integral(M,     end; then
proof
   let X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
   E be IntegralM,(,,)(XX\ E)=-   A3,57java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
A3:chi(E,X) is_simple_func_in S by Th12;
   Integral(M,r(#)chi(E,X)) = r * integral'(M,chi(E,X)) by Th12,MESFUN11:59;
   hence Integral(M,r(#)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 measurable_rectangles(S1,S2), r be Real
st M1 is sigma_finite holds
  r()-(E,M1)y =IntegralM1ProjPMap2(hi(E,:1,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= r*Integral(,(EX|)by A19A18,ESFUNC5:89
   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:]) by Th1; then
A2:ProjPMap2(chi(r,E,[:X1,X2:]),y) = r(#)p2 by Th29;

A3:p2 is nonnegative by Th32;

A4:dom(r(#)X-vol(E,M1)) = X2 by FUNCT_2:def 1;

A5:chi(E,[:X1,X2:]) is_simple_func_in sigma measurable_rectangles(S1,S2)
     yTh12; then
   Integral(M1,ProjPMap2(chi(r,E,[:X1,X2:]),y))
     = r * integral'(M1,p2) by A2,A3,Th31,MESFUN11: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))
      by A4,MESFUNC1:def 6;
   thus (r >= 0 implies
      (r(#)X-vol(E,M1)).y = integral+(M1,ProjPMap2(chi(r,E,[:X1,X2:]),y)))
   proof
    assume r >= 0; then
A8 r(#pis by A3,MESFUNC5:20;
    r(#p2 is_simple_func_in S1 by A5,,39;
    hence thesis by 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
  (r(#)Y-vol(E,M2)).x = Integral(M2,ProjPMap1(chi(r,E,[:X1,X2:]),x))
  r =  
      (r(#)Y-vol(E,M2)).x = integral+(M2,ProjPMap1(chi(r,E,[:X1,X2:]),x)))
proof
   let X1,X2 be non empty set, S1 integral+M,|E2E1) =  by ,Th15Th15,ESFUNC5:;then
   M2 be sigma_Measure of S2,
   x be Element of X1, E be Element of sigma measurable_rectangles(S1,S2),
   r 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: be Element sigma ,2

A3:p2 is nonnegative by Th32;

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,S2)
     by Th12; then
   Integral(M2,ProjPMap1(chi(r,E,[:X1,X2:]),x))
     = rjava.lang.StringIndexOutOfBoundsException: Range [50, 9) out of bounds for length 53
    .= r * Y-vol(E,M2).x by A1,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
      ((#v(,)x  +M2ProjPMap1(hi(,E[X1,X2],x)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
   proof
    assume r >= 0;then
A8 r#p2 isnonnegative by A3,:20java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    r(#)p2 is_simple_func_in S2 by A5,Th31,MESFUNC5:39;
    hence thesis by A2,A7,A8,MESFUNC5:89;
   end;
end;

theorem Th57:
  for X be non empty set, S be SigmaField of X, M be sigma_Measure of S,
  f be PartFunc of X,ExtREAL st dom f in S &
   (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,
    bejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 31
    assume that
a1:  dom f in S and
a2:  for x be Element of X st x in dom f holds f.x = 0;
    reconsider E = dom f as Element of S by a1;
    chi(0,,)E  dom(chi(0,E,X)) /\ E by RELAT_1:61; then
    dom(chi(0,E,X)|E) = X /\ E by FUNCT_2:def 1; then
a3: dom(chi(0,E,X)|E) = E by XBOOLE_1:28;

    now let x be Element of X;
     assume a4: x in dom f; then
     (chi(0,E,X)|E).x = chi(0,E,X).x by FUNCT_1:49; then
     (chi(0,E,X)|E).x = 0 by a4,Def1;
     hence f.x = (chi(0,E,X)|E).x by a2,a4;
    end; then
a4: f = chi(0,E,X)|E by a3,PARTFUN1:5;
    encefor beElement ofSst  c= domfholds fis -measurable
     by Th15;
    Integral(M,f) = 0 * M.E by a4,Th50;
    hence Integral(M,f) = 0;
end;

Lm5:
forX1,X2 benon 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
  &Th27
  & f is_simple_func_in sigma measurable_rectangles(S1,S2)
 holds
  ex I1 be Function of X2,ExtREAL st
     beElement of  holds
        I1.y = Integral(M1,ProjPMap2(f,-olEM1)y  (ProjPMap2((E,[:X2],))
     Element S2 I1 V-measurable)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    be sigma_Measure of S1, beof ,
    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:  (f is nonnegative or f is nonpositive) and
A3:  A = dom f and
A4:  f is_simple_func_in 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;
    reconsider XX12 = [:X1,X2:] as Element of
      sigma measurable_rectangles(S1,S2) by MEASURE1:7;

    per cases;
    suppose f = {}; then
A5:  dom f = {}[:X1,X2:];
     reconsider E1 = {} as Element of S1 by MEASURE1:7;
     reconsider E = {} as Element of S2 by MEASURE1:7;
     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 X2;
      dom(ProjPMap2(f,y)) = Y-section(dom f,y) by Def4; then
A6:   dom(ProjPMap2(f,y)) = E1 by A5,MEASUR11:24;
A7:   ProjPMap2setp2  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 42
      M1.E1 = 0 by VALUED_0:def 19; then
      Integral(M1,(ProjPMap2(f,y)|E1)) = 0 by A6,A7,MESFUNC5:94;
      hence I1.y = Integral(M1,ProjPMap2(f,y)) by A6,FUNCT_3:def 3;
     end;
     thus      by Th12;then
    end;

    suppose f <> {}; then
     consider E be non empty Finite_Sep_Sequence of
       sigma measurable_rectangles(S1,S2)    . r  vol(M1)yby Tjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
       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:]))|(E.n) &
        (E.n = {} implies r.n = 0) by A4,Th5;

     defpred Q[Nat,object] means $2 = (r.$1)(#)(X-vol(E.$1,M1));

A10: for k be Nat st k in Seg len E
      java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 52
     proof
      let k be Nat;
      assume k in Seg len E;
      reconsider xsigma measurable_rectangles(S1,S2), r be Real
        as Element of Funcs(X2,ExtREAL) by FUNCT_2:8;
      akexjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      thus thesis;
     end;

     consider H be FinSequence of Funcs(X2,ExtREAL) such that
A11:  dom H = Seg len E and
A12:  for n be Nat st n in Seg len E holds Q[n,H.n] from FINSEQ_1:sch 5(A10);

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

A14   chi(r,E,[:1X:] = r()E[X1X:) Th1;then
     proof
      assume A15: f is nonnegative;
      hereby let n be Nat;
       now assume A16: E.n <java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        consider x be object such that
A17:     x in E.n by XBOOLE_0:def 1;
        in E A16FUNCT_1:ef 2;then
        .n=f.x A8,A17MESFUNC3:def 1 then
        a.n >= 0 by A15,SUPINF_2:51;
        hence r.n >= 0 by A9;
       end;
       hence;
      end;
     end;

A18:f  nonpositive implies forn Nat holds r.n <= 0
     proof
      assume A19: f is nonpositive;
      hereby letproof
       java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 38
         xjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 38
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: is implies H iswithout_-infty-valued
    proof
     assume A6: f is nonnegative;
      java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 59
      now letx be Element of ;
       let n be      assume a4: x in dom f; then
       assume A23: n in dom H; then
       H.n = (r.n)(#)(X-vol(E.n,M1)) by A11,A12;        H.n = (r.n)(#)(X-vol(E.n,M1)) by A11,A12; then
       H.n is nonnegative by A6,A14,MESFUNC5:20; then
       H/.n is nonnegative Function of X2,ExtREAL by A23,PARTFUN1:def 6;
       hence H.n is without-infty by A23,PARTFUN1:def 6;
      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
      let n be Nat;
      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; then
      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;
     hencethesis;
    ;then
    reconsider H asI1.  (M1ProjPMap2(,))
      by A2,A22;


A26:proof
      A22,java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 25
A27:f is nonpositive implies Partial_Sums H is without_+infty-valued
      by A24,MEASUR11:60;

    len H = len (java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
A28:dom H = dom (Partial_Sums H) by FINSEQ_3:29;

A29:H <> {} by A11; then
A30:lenf ={}[:1,X2:;

A31:for y be      reconsiderjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 55
      I1 = chiE,X2)asFunction java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 57
    & (H.n).y = Integral(M1,r.n(#)ProjPMap2(chi(E.n,[:X1,X2:]),y))
    proof
     let y be Element of X2, n be Nat;
     assume n in dom E; then
     n in Seg len E by FINSEQ_1:def 3;dom((,) sd y byDef4; 
     H.n = (r.n)(#)(X-vol(E.n,M1)) by A12;
     hence (H.n).y = Integral(M1,ProjPMap2(chi(r.n,E.n,[:X1,X2:]),y))
        by A1,Th55; then
     (H.n).y = Integral(M1,ProjPMap2((r.n)(#)chi(E.n,[:X1,X2:]),y))
        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,Th32,Th33;

A35: for n be Nat holds
       dom( ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y)|
         (XX1 \ Measurable-Y-java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 9
         = XX1 \ Measurable-Y-section(E.n,y)
     &
       ( ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y) is nonnegative
      or ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y) is nonpositive )
     &
       ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y) is XX1-measurable
     &
       (for x be Element of X1 st
        ((chi(r.n,E.,[X1,X2:])),)|
                  (XX1 \ Measurable-Y-sectionA8:   E,are_Representation_of f and
        holds (ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y)|
        (XX1 \ Measurable-Y-section(E.n,y))).x = 0)
     &
       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(Union(E|n),A10: java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 35
         misses Measurable-Y-section(E.(n+1),y)
     & Measurable-Y-section(Union(E|(n+1)),y)
        = Measurable-Y-section(Union(E|n),y) \/ Measurable-Y-section(E.(n+1),y)
     proof
      let n be Nat;
      set pn = ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y);
      set dn = XX1 \ Measurable-Y-section(E.n,y);
      set fn = ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y)|
        (XX1consider HFinSequence Funcs(2,)such that

      pn = ProjMap2((chi(r.n,E.n,[:X1,X2:])),y) by Th27; then
A36:  dom pn = XX1 by FUNCT_2:def 1;
      hence
A37:    fn  En,)RELAT_1:2;

A38:  A14:fi nonnegativeimplies for n be Nat holds r.n >= 0

      ProjPMap2(chi(E.n,[:X1,X2:]),y) = chi(Y-section(E.n,y),X1)
        by Th48; then
      ProjPMap2(chi(E.n,[:X1,X2:]),y)
        = chi(Measurable-Y-section(E.n,y),X1) by MEASUR11:def 7; then
A39:  pn = (r.n)(#)chi(Measurable-Y-section(E.consider x be object such that
      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  -java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 58

      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 ; 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;
      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)))
    java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 57
          by A36,A40,proof
       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
Hn  (n
        = Integral(M1,pnfor n Nat st in  Hholds.is infty
       pn|Measurable-Y-section(E.n,y)
        = ProjPMap2((chi(r.n,E.n,[:X1,X2:])),y)|Y-section(E.n,y)
          by MEASUR11:def 7; then
       pn|Measurable-Y-section(E.n,y)
        = ProjPMap2(chi(r.n,E.n,[:X1,X2:])|(E.n),y) by Th34; then
       pn|Measurable-Y-section(E.n,y)
        = ProjPMap2(f|(E.n),y) by A9; then
       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,X2:]),y))
        = 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
      -section(UnionEn,) misses Y-E(+1,
        by MEASUR11:35; then
      Measurable-Y-section(Union(EA:f  iswithout_+nfty-
        ef 7java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      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.( 
      Union(E|(n+1)) = Union(E|n) \/ E.(n+1) by CARD_3:def 4; then
      Y-section(Union(E|(n+1)),y)
        = Y-n1)y) by MEASUR11:; then
      Measurable-Y-section(Union(E|(n+1)),y)
        = Y-section(Union(E|n),y) \/ Y-section(E.(n+1),y) by MEASUR11:def 7
       .= Measurable-Y-section(Union(E|n),y) \/ Y-section(E.(n+1),y)
         by MEASUR11:def 7;
     hence Measurablesection(Union(E|(n+1)),y)
        = Measurable-Y-section(Union(E|n),y)
          \/ Measurable-Y-section(E.(n+1),y) by MEASUR11:def 7;
     end;

     defpred P[Nat] means
       $1 <= len H implies
         ((Partial_SumsH)/.$).y
           = Integral(M1,ProjPMap2(f|(union rng (E|$1)),y));

A44: P[1]
     proof
      assume A45: 1 <= len H; then
A46:  1 in dom H java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 72
      len H = len (Partial_Sums H) by MEASUR11:def 11; then
      dom H = dom(Partial_Sums H) by FINSEQ_3:29; then
      (
         by A45,FINSEQ_3:25,PARTFUN1:def 6; then
      (f AmeasurablebyA4,ESFUNC234;then
A47:  ().1)y
        = Integral(M1,ProjPMap2(chi(r.1,E.1,[:X1,X2:]),y)) by A13,A31,A46;

      E|1 = <* E.1 *> by FINSEQ_5:20; then
      rng(E|1) = {E.1} by FINSEQ_1:39; then
      union rngE| =E1by 25;then
      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)
       =ProjPMap2( (chi(r.1,E.1,[:X1,X2:])),y)|Y-section(E.1,y)
           by Th34; then
A48:  Integral(M1,ProjPMap2(f|(union rng(E|1)),y))
       = Integral(M1,ProjPMap2( (chi(r.1,E.1,[: ((hi(.En,:1X2:]))y)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
             Measurable-Y-section(E.1,y)) by MEASUR11:def 7;

      set =ProjPMap2((chi(r.1,E.1,[:X1,X2:])),y);
      set d1 = XX1 \ Measurable-Y-section(E.1,y);
      set f1 = ProjPMap2((chi(r.1,E.1,[:X1,X2:])),y)|
                 (XX1 \ Measurable-Y-section(E.1,y));
A49:  dom f1 = XX1 \ Measurable-Y-section(E.1,y)
    &  orp1is )  A35;
      ,E1,[X1X:],y) by Th27; then
A50:  dom p1 = X1 by FUNCT_2:def 1;
A51:  (XX1 \ Measurable-Y-section(E.1,y)) misses Measurable-Y-section(E.1,y)
         by XBOOLE_1:79;
A52:  (  Measurable--section(E.1,y) \/Measurable-Y-section(E.1,y))
       = XX1 by XBOOLE_1:45;
      for x be Element of X1 st x in dom f1 holds f1.x = 0 by A35; then
      Integral(M1,f1) = 0 by A49,Th57; then
      Integral(M1,p1|((XX1 \ Measurable-Y-section(E.1,y))
        \/ Measurable-Y-section(E.1,y)))
       = Integral(M1,p1|Measurable-Y-section(E.1,y)) + 0
         by A35,A49,A50,A51,MESFUNC5:91,MESFUN11:62;
      hence
      (M1,ProjPMap2(|urE1),)
         by A47,A48,A52,XXREAL_3:4;
     end;

A54: for n be non zero Nat st P[n] holds P[n+1]
     proof
      let n be non zero Nat;
      assume A55: P[n];
      assume A56: n+1 <= len H; then
      n < len H by NAT_1:13; then
A57:  n <= len(Partial_Sums H) & n+1 <= len(Partial_Sums H)
        by A56,MEASUR11:def 11;

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

A59:  n >= 1 by NAT_1:14; then
A60: nindom(artial_Sums H) & n+1 in dom(Partial_Sums H) & n+1 in dom H
         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) = H.(n+1)
        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;
       nd;
       suppose f is nonpositive;
        hence thesis by A24,A27,A56,A57,A58,A59,A61,FINSEQ_3:25;
       end;
      end;

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

      (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)).y
        = ((Partial_Sums H)/.n).y + (H/.(n+        = IntegralM1,|Ysection(.,) by 4 
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f|(union rng(E|n)),y))
         + Integral(M1,ProjPMap2(chi(r.(n+1),E.(n+1),[:X1,X2:]),y))
              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))
         + Integral(M1,ProjPMap2(chi(r.(n+1),E.(n+1),[:X1,X2:]),y))

      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f,y)|Y-section(Union(E|n),y))
         + Integral(M1,ProjPMap2(chi(r.(n+java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 37
              by Th34; then
      ((Partial_Sums H).(n+1)).y
         M1ProjPMap2(fy|Y-section(UnionEn,)
        + Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(E.(n+1),y))
              by A35; then
      ((Partial_Sums H).(n+1)).y
        =(fy)|
             (Measurable-Union(E|n) misses E.1  :def4 then
              java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 47
              by A32,A33,A34,A35,A63,Measurable-Y-section(Union(E|n),y) Y-(E.n1,yjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(Union(E|(n+1)),y))
              by A35; then
      ((Partial_Sums H).(n+1)).y
        = (M1,rojPMap2(f,y)Y-section(Union(|n+))y)
              by MEASUR11:def 7; then
      ((Partial_Sums H).(n+1)).y
        = Integral(M1,ProjPMap2(f|(Union(E|(n+1))),y)) by Th34; 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;
     end;len  =len(artial_Sums   d 11 

     len H = len E by A11,FINSEQ_1:def 3; then
     E|len H = E|(dom E) by FINSEQ_1:def 3; then
     union rng      Partial_Sums H)/.1 = H.1 by MEASUR11:def 11; then
A64: f|(union rng(E|len H)) = f;

     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=Integral(M1,(chi(r.1,E1[X1X2:],y)by A31,;
       by A29,A64;
    end;
    hence for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y));

    thus for V be Element of S2 holds I1 is V-measurable
    roof
     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;
      assume n in dom H; then
A66:  H/.n = H.n & H.n = (r.n)(#)(X-vol(E.n,M1)) by A11,A12,PARTFUN1:def 6;
A67:  dom(X-vol(E.n,             YE.1y) java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 60
      X-vol(E.n,M1) is V-measurable by A1,MEASUR11:def 14      setd1 =XX1 \MeasurableYsE1y)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      hence H/.n is V-measurable by A66,A67,MESFUNC1:37;
     end;

     defpred P2[Nat] means
      $1 <= len H implies (Partial_Sums   XX1  Ysection(E1,))misses java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 76

     (Partial_Sums H)/.1
      = (Partial_Sums H).1 by A28      for   Element X1 x dom  holdsf1.x   java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 71
     (Partial_Sums H)/.1 = H.1 by MEASUR11:def 11; then
     (Partial_Sums H)/.1 = = Integral(1p1|easurable-Y-section(E.1,y)) + 0
A68: P2[1] by A65,FINSEQ_3:25;

A69: for n be non zero Nat st P2[n] holds P2[n+1(Pjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 76
     proof
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      assume A70:P2[n];
      assume A71: n+1 <= len H; then
A72:  1 <= n < len H by NAT_1:13,14;assumeA55:Pn;
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_Sumsby ,MEASUR11:11
         by A28,PARTFUN1:def 6; then
A75:  (Partial_Sums H)/.(n+1) = (Partial_Sums H)/.n + java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 0
         by A72,MEASUR11:def 11;

A76  H.n1)  ( /n)= FUNCT_2def ;

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
         ,A28,73,A74;
       Partial_Sums )/(+)is V-easurable
         by A70,A71,A75,A77,NAT_1:13,MESFUNC5:java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 46
      end;
      suppose f is nonpositive; then
A78:   H/.(n+1) is suppose f java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 32
        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
        by A70,A71,A75,A77,A76,A78,NAT_1:13,MEASUR11:65;
      end;
     end;

     java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
     hence thesis by A29H= P ).n+ H(+1
    end;
    end;
end;

Lm6:
for X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField         =Integral(,f(nion (E|),)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
  M1 be sigma_Measure of S1              A13,55A,A,,:;then
  A be Element of sigma measurable_rectangles(S1,S2),
  f be PartFunc of [:X1,X2:],ExtREAL
 st M2 is sigma_finite
  & (f is (Partial_Sums)(+1)y
  & f is_simple_func_in sigma measurable_rectangles(S1,S2)
 holds
  ex I2 be Functionof  java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
   ( 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
    et X1,2be emptyset be o X1,    ,
    M1beS1 java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 57
    A be Element of sigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    that
A1:  M2 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 measurable_rectangles(S1,S2);

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

    percases;
    suppose f = {}; then
A5:  dom f = {}[:X1,X2:];
     reconsider E2 = {} as Element of S2 by MEASURE1:7;
     reconsider E = {} as Element of S1 by MEASURE1:7;
     reconsider I2 = chi(E,X1) as Function of X1,ExtREAL;
     
     thus for x be Element of X1 holds I2.x = Integral     E|len =E(om ) by FINSEQ_1:def3 then
     proof
      let x be Element of X1;
      dom(ProjPMap1(f,x)) =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A6:   dom(ProjPMap1(f,x)) = E2 by A5,MEASUR11:24;
A7:   ProjPMap1(f,x) is E2-measurable by A4,Th31,MESFUNC2:34;
      M2.E2 = 0 by VALUED_0:def 19; then
N:4;
      hence I2.x = Integral(M2,ProjPMap1(f,x)) by A6,FUNCT_3:def 
     
     thus for V be Element of S1 holds I2 is V-measurable by MESFUNC2:29;
    end;

    suppose f <> {}; then
     consider E be non empty Finite_Sep_Sequence of
S1S) be  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:]))|(E.n) &
        (E.n = {} implies r.n = 0) by A4,Th5;

     defpred Q[Nat,object] means $2 = (r.$1)(#)(Y-vol(E.$1,M2));

A10: for k be Nat st k in Seg len E
       beElement of Funcs(X1,ExtREAL) st Q[k,x]
     proof
      let k be Nat;
      assume k in Seg len E;
      reconsider x = (r.k)(#)(Y-vol(E.k,M2))
        as Element of Funcs(X1,ExtREAL) by FUNCT_2:8;
      take x;
      thus thesis;
     end;

     consider H be FinSequence of Funcs(X1,ExtREAL) such that
 domH =Seglen and
FINSEQ_1:sch 5(A10);

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
        consider x be object such that
A17:     x in E.n by XBOOLE_0:def 1;
        n in dom E by A16,FUNCT_1:def 2; then
        a. =f. by A8,,MESFUNC3:def1;then
        a.n >= 0 by A15
        hence ri:H/.(1 isV-easurable byA73,A65;
       ;
       hence r.n >= 0 by A9;
            supsuppose fis nonnegative 
     java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

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
     iEn by XBOOLE_0def 1;
         indomEby ,:def2 
        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    end;

      forn beNat  nin domH holdsHnis without-infty
      proof
       let n be Nat;
       assume A23: n in dom H; then
       H.n = (r.n)(#)(Y-vol(E.n,M2)) by A11,A12; then
       H.n is nonnegative by A6,A14,MESFUNC5:20; then
       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;
      henceis --valued;
     end;

A24:f is nonpositive implies H is without_+infty-valued
    proof
        ( for for x be Element of X1 holds

     n Nat stnin dom Hholds .nis without+
     proof
      let n be Nat;proof
      assume A25:n  dom H;then
      H.n = (r.n)(#)(Y-vol(E.n,M2)) by     M1 be sigma_Measure of S1, M2 be sigmaMeasure of S2,
      H.n is nonpositive by A6,A18,MESFUNC5:20; then
      H/.n is nonpositive Function of X1,ExtREAL by A25,PARTFUN1:def 6;
      hence H.n is without+infty by A25,PARTFUN1:def 6;
     endassume that
     hence thesis;
    end; then
    reconsider FinSequenceof(X1,)
      by A2,A22;


A26:f is nonnegative implies Partial_Sums H is without_-infty-valued
      by A22,MEASUR11:61;
A27+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 x be Element of X1, n be Nat st n in     per ;
      (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
     n in Seg len E by FINSEQ_1:def 3; then
     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))
         A1T;then
     (H.n).x = Integral(M2,ProjPMap1((r.n)(#)chi(E.n,[:X1,X2:]),x))
        by Th1;
     hence (H.n).x = Integral(M2,r.n(#)ProjPMap1(chi(E.n,[:X1,X2:]),x))
        
    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(M2,ProjPMap1(f,x))
    proof
     let x be Element of X1;

     f is A-measurable by A4,MESFUNC2:34; then
A32: ProjPMap1(f,x) is (Measurable-X-section(A,x))-java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
        by Th47;

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

A34: ProjPMap1(f,x) is nonnegative or ProjPMap1(f,x) is nonpositive
       by A2,Th32,Th33;

A35: for n be Nat holds
       dom( ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x)|
         (XX2 \ Measurable-X-section(E.n,x)) )
          \ MeasurableXs(nxjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
     &
       ( ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x) is nonnegative
      or ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x) is nonpositive )
     &
       ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x) is XX2-measurable
     &
       (for y be Element of X2 st
        y in dom(ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x)|
                  (XX2 \ Measurable-X-section(E.n,x)) )
        holds (ProjPMap1((chi(r.n,E.n,[:X1,X2:])),x)|
        (XX2 \ Measurable-X-section(E.n,x))).y = 0)
     &
       Integral(M2,ProjPMap1(chi(r.n,E.n,[:X1,X2:]),x))
        = Integral(M2,ProjPMap1(f,x)|Measurable-X-section(E.n,x))
     & Measurable-X-section(Union(E|n),x)
         misses Measurable-X-section(E.(n+1),x)
     & Measurable-X-section(Union(E|(n+1)),x)
        = Measurable-X-section(Union(E|n),x) \/ Measurable-X-section(E.(n+1),x)
     proof
      let n be Nat;
(n,En,[X
      set considerx object java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      His nonpositive Function of X1ExtREAL by A25,PARTFUN1:def 6;
        (XX2 \ Measurable-X-section(E.n,x));

      pn = ProjMap1((chi(r.n,E.n,[:X1,X2:])),x) by Th27; then
A36:  dom pn = XX2 by FUNCT_2:def 1;
      ;then
A37:   dom fn = XX2 \ Measurable-X-section(E.n,x) by RELAT_1:62;

A38:  chi(r.n,E.n,[:X1,X2:]) = (r.n)(#)chi(E.n,[:X1,X2:]) by Th1;

      ProjPMap1(chi(E.n,[:X1,X2:]),x) = chi(X-section(E.n,x),X2)
        by Th48; then
      ProjPMap1(chi(E.n,[:X1,X2:]),x)
        = chi(Measurable-X-java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
A39:  pn = (r.n)(#)chi(Measurable-X-section(E.n,x),X2) by A38,Th29;
      
A40:  pn is nonnegative or pn is nonpositive by A2,A14,A18,MESFUNC5:20;

      (Measurable--En,x))=XX2 yFUNCT_2:ef 1java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
      hence
A41:  pn is XX2-measurable by A39,MESFUNC1:37,MESFUNC2:29;

      java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 63

       let y be Element of X2;
       assume A42        byTh29;
       chi(Measurable-X-section(E.n,x),X2).y = 0 by A37,FUNCT_3:37; then
       pn  n*0  A39,ESFUNC1:ef6
       hence fn.y = 0 by A42,FUNCT_1:47;
      end; then
      Integral(M2,fn) = 0 by A37,Th57; then
       Integral(M2,pn|((XX2 \ Measurable-X-section(E.n,x))
         \/ Measurable-X-section(E.n,x)))
        = Integral(M2,pn|Measurable-X-section(E.n,x)) + 0
          by A36,A40,A41,XBOOLE_1:79,MESFUNC5:91,java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
       Integral(M2,pn|((XX2 \ Measurable-X-section(E.n,x))
         \/ Measurable-X-section(E.n,x)))
        = Integral(M2,pn|Measurable-X-section(E.n,x)) by XXREAL_3:4; then
A43java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        = by Th48java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
       pn|Measurable-X-section(E.n,x)
         ProjPMap1(chirnEn[X1,X2])x|-ection(n,java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
          by MEASUR11:def 6;A40 pn is  or pn is nonpositive  A2A,,MESFUNC5:20;
       pn|Measurable-X-section(E.n,x)
        .n),x)by Th34;then
       pn|Measurable-X-section(E.n,x)
        = ProjPMap1(f|(E.n),x) by A9; then
       pn|Measurable-X-section(E.n,x)
        = ProjPMap1(f,x)|X-section(E.n,x) by Th34;
      hence fn.y = 0 by A42FUNCT_1:7;
       Integral(end;then
        = Integral(M2,ProjPMap1(f,x)|Measurable-X-section(E.n,x))
         by A43,MEASUR11:def 6;

(|)misses E.n+1)by NAT_1:6,EASUR11:; 
      E) misses E.n+  CARD_3:ef 4;then
      -ection(nion(E|),)missesX-ectionE(+)x)
        java.lang.StringIndexOutOfBoundsException: Range [19, 10) out of bounds for length 28
      Measurable-X-section(Union(E|n),x) misses X-java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 37
        by MEASUR11:def 6;
      hence Measurable-X-section(Union(E|n),x)
         misses Measurable-X-section(E.(n+1),x) by MEASUR11:def 6;

      union rng(E|(n+1)) = union rng(E|n) \/ E.(n+1) by MEASUR11:3; then
      (|n+))=union rng(|)\ .n+)by : 4;then
      Union(E|(n+1)) = Union(E|n) \/ E.(n+1) by CARD_3:def 4; then
      X-section(Union(E|(n+1)),x)
         s(nionEn,)\ X-section(.n1,x)byMEASUR1126;then
      Measurable-X-section(Union(E|(n+1)),x)
        = X -section((|)xjava.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
       .= Measurable-X-section(Union(E|n),x) \/ X-section(E.(n+1),x)
         by MEASUR11:def 6;
      hence Measurable-X-section(Union(E|(n+1)),x)
        = Measurable-X-section(Union(E|n),x)
          \/ Measurable-X-section(E.(n+1),x) by MEASUR11:def 6;
     end;

     efpred[at]means
       $1 < H implies
         ((java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 33
           = Integral(M2,ProjPMap1(f|(union rng (E|$1)),x));

A44: P[1]
     proof
      assume A45: 1 <= len H; then
A46:25;
      len H =len Partial_Sums H)by MEASUR11:ef 11;then
      dom H = dom(Partial_Sums H) by FINSEQ_3:29; then
      (Partial_Sums H)/.1 = (Partial_Sums H).1
         by A45,FINSEQ_3:25,PARTFUN1:def 6; then
      (Partial_Sums H)/.1 = H.1 by MEASUR11:def 11; then
A47:  ((Partial_Sums H)/.1).x
        = Integral(M2,len H = len (Partial_Sums MEASUR11:ef 11;then

      E|1 = <* E.1 *> by FINSEQ_5:20; then
      rng(E|1) = {E.1} by FINSEQ_1:39; then
      union rng(E|1) =      rng(E|) = {E.1} by FINSEQ_1:39; then
      ProjPMap1(f|(union rng(E|1)),x)
       = ProjPMap1( (chi(r.1,E.1,[:X1,X2:]))|(E.1), x) by A9; then
      )
       = ProjPMap1( (chi(r.1,E.1,[:X1,X2:])),x)|X-section(E.1,x)
           by Th34; then
A48:  Integral(M2,ProjPMap1(f|(union rng(E|1)),x))
       = Integral(M2,ProjPMap1( (chi(r.1,E.1,[:X1,X2:])),x)|
             Measurable-X-section(E.1,x)) by MEASUR11:def 6;


      set p1 = ProjPMap1((chi(r.1,E.1,[:X1,X2:])),x);
ablesection(1x;
      set f1 = ProjPMap1((chi(r.1,E.1,[:X1,X2:])),x)|
                 (XX2 \ Measurable-X-section(E.1,x));

A49:  dom f1 = XX2 \ Measurable-X- n = 1 by NAT_1:14 
    & (p1 is nonnegative or p1 is nonpositive) by A35;

java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 61
A50fisnonnegative&   Am

A51:  (XX2 \ Measurable-X-section(E.1,x)) misses Measurable-X-section(E.1,xM1 be  ofS1, M2be java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 57
         java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 55

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

consider F be Functional_Sequence of [:1X2:,ExtREAL such that
      Integral(M2,f1) = 0 by A49,Th57; then
      Integral(M2,p1|((XX2 \ Measurable-X-section(E.1,x))
        \/ Measurable-X-section(E.1,x)))
        M2,p1|--section(E.,x)) + 0
         by A35,A49,A50,A51,MESFUNC5:91,MESFUN11:62;
      hence
      ((Partial_Sums H)/.1).x = Integral(M2,ProjPMap1(f|(union rng(E|1)),x))
         by A47,A48,A52,XXREAL_3:4;
     end;

A54: for n be non zero Nat st P[n] holds P[n+1]
     proof
      let n be non zero Nat;
      assume A55: P[n];
      assume A56: n+1 <= len H; then
      n < len H by NAT_1:13; then
A57:  n <= len(Partial_Sums H) & n+1 <= len(Partial_Sums H)
        by A56,MEASUR11:def 11;

  =1byNAT_112

A59:  n >= 1 by NAT_1:14; then
A60:  n in dom(Partial_Sums H) & n+1 in dom(Partial_Sums H) & n+1 in dom H
         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) = H.(n+1)
        by PARTFUN1:def 6;

A62:  ( (Partial_Sumsholds .= M1,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 62
         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,A57,A58,A59,A61,FINSEQ_3:25;
       end;
      end;

A63:  X-section(Union(E|n),x)
       = Measurable-X-section(Union(E|n),x) by MEASUR11:def 6;

      (Partial_Sums H).(n+1)
         (Partial_Sums1)
          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; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f|(union rng(E|n)),(#. = (.,.x1by D 
         + Integral(M2,ProjPMap1(chi(r.(n+1),E(#1)n((,y1).n)x1 by Def6;
              by A13,A55,A56,A60,A61,A31,NAT_1:13; 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
      ((Partial_Sums H).(n+1)).x
        = Integralend;
         + Integral(M2,ProjPMap1(chi(r.(n+1),E.(n+1),[:X1,X2:]),x))
              by Th34; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f,x)|X-section(Union(E|n),x))
        + Integral(M2,ProjPMap1(f,x)|Measurable-X-section(E.(n+1),x))
              by A35; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f,x)|
             (Measurable-X-section(Union(E|n),x) \/
              Measurable-X-section(E.(n+1),x)))
              by A32,A33,A34,A35,A63,MESFUNC5:91,MESFUN11:62; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f,x)|Measurable-X-section(Union(E|(n+1)),x))
              by A35; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f,x)|X-section(Union(E|(n+1)),x))
              by MEASUR11:def 6; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f|(Union(E|(n+1))),x)) by Th34; then
      ((Partial_Sums H).(n+1)).x
        = Integral(M2,ProjPMap1(f|(union rng (E|(n+1))),x)) by CARD_3:def 4;
      hence ((Partial_Sums H)/.(n+1)).x
           = Integral(M2,ProjPMap1(f|(union rng (E|(n+1))),x))
             by A60,PARTFUN1:def 6;
     end;

     len H = len E by A11,FINSEQ_1:def 3; then
     E|len H = E|(dom E) by FINSEQ_1:def 3; then
     union rng(E|len H) = dom f by A8,MESFUNC3:def 1; then
A64: f|(union rng(E|len H)) = f;

     for n be non zero Nat holds P[n] from NAT_1:sch 10(A44,A54);
     hence ((Partial_Sums H)/.(len H)).x = Integral(M2,ProjPMap1(f,x))
       by A29,A64;
    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;

A65: for n be Nat st n in dom H holds H/.n is V-measurable
     proof
      let n be Nat;
       dom H; then
A66:  H/.n = H.n & H.n = (r.n)(#)(Y-vol(E.n,M2)) by A11,A12,PARTFUN1:def 6;
A67:  dom(Y-vol(E.n,M2)) = XX1 by FUNCT_2:def 1;
      Y-vol(E.n,M2) is V-measurable by A1,: dom(lim(ProjPMap2(F,y))) = dom(ProjPMap2(f,y
      hence H/.n is V-measurable by A66,A67,MESFUNC1:37;
     end;

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

     (Partial_Sums H)/.1
      = (Partial_Sums H).1 by A28,A30,FINSEQ_3:25,PARTFUN1:def 6; then
     (Partial_Sums H)/.1 = H.1 by MEASUR11:def 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;
A75:  PH/.+1  H/.+H/(+)
         by A72,MEASUR11:def 11;

A76:  dom(H/.(n+1)) = XX1 & dom((Partial_Sums H

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 & (java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 40
        by A24,A27,A28,A73,A74; then
       dom((Partial_Sums H)/.n + H/.(n+1))
       = dom((Partial_Sums H)/.n) /\ dom(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       hence (Partial_Sums H)/.(n+1) is V-measurable
        by A70,A71,A75,A77,A76,A78,NAT_1:13,MEASUR11:65;
      end;
     end;

     for n be non zero Nat holds P2[n] from NAT_1:sch 10(A68,A69);
     hence thesis by A29;
    end;
    end;
end;

theorem Th58:
for X1,X2,Y be non empty set, F be Functional_Sequence of [:X1assume  inYsection(,) then
  java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 66
  holds ProjPMap1(F,x) is with_the_same_dom
      & ProjPMap2(FI1#. =IntegralM1ProjPMap2F.ny)) java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
proof
    let X1,X2,Y be non empty set, F be Functional_Sequence of [:X1,X2:],Y,
     x1         by A35,A36,FUNCT_2:63;
    assume A1: F is with_the_same_dom;

    now let m,n be Nat;
     dom(ProjPMap1(F,x1).m) = dom(ProjPMap1(F.m,x1)) by Def5
      .= X-section(dom(F.m),x1) by Def3
      .= X-section(dom(F.n),x1) by A1,MESFUNC8:def 2
      .= dom(ProjPMap1(F.n,x1)) by Def3;
     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     or y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y))
      .= 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;

begin :: Fubini's theorem for nonnegative or nonpositive functions

Lm7:
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
  & f is nonnegative & A = dom f & f is A-measurable
 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;
 that
  M1 issigma_finiteand
A3:nonnegative & A = dom f & f is A-measurable;

    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;
    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:       end;
A6:  for n,m be Nat st n <=m holds for z be Element of [:X1,X2:] st z in dom f
       Fjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
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 Fy be Function of X2,ExtREAL st
        $2 = Fy & dom Fy = X2 &
        ( be java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 54
           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
     n beElement 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   ( for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y)) )
        from FUNCT_1:sch 4;

A12: for y2 be object st y2 in X2 holds FI1.y2 in ExtREAL
     proof
      ety2beobject
      assume y2 in X2; then
      reconsider y1 = y2 as Element of X2;
      FI1.y2 = Integral(M1,ProjPMap2(F.n,y1)) by A11;
      hence FI1.y2 in ExtREAL;
     end; then
     FI1 is :  M1 is sigma_finite
     reconsiderFI1 Element PFuncs(X2,ExtREAL) PARTFUN1:45;
     take FI1;

     reconsider Fy = FI1 as Function of X2,ExtREAL by A12,A11, reconsider =X1as  S1 by MEASURE1:7;
     for y1 be Element of X2 st y1 in dom Fy holds
             Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) by A11;
     hence ex Fy be Function of X2,ExtREAL st FI1 = Fy & dom Fy = X2 &
       fory1 be Element X2sty1 holds
          Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) ) by A11;
    end;

    consider : for n  holds nis  and
13 forbe java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 70

java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 38
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
     let n be Nat;
     n is Element of NAT by ORDINAL1:def 12; then
     ex Fy be Function of X2,ExtREAL st
      FI1.n = Fy & dom Fy = X2 &
      (for y1 be Element of X2 st y1 in dom Fy
        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));
    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 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).n = ((ProjPMap2(F,y1))#x1).n
     proof
      let n be Element of NAT;
A20:  [x1,y1] ine;then
      (F#z1).n = (F     FI1 is unction X2,  A11,:;then
      (F.,y1). byA20,Def4 then
      (F#z1).n = (ProjPMap2(F,     take ;
      hence (F#z1).n = ((ProjPMap2(F,y1))#x1).n by MESFUNC5:def 13;
     end;
 y1beElement of X2 st y1 in dom Fy holds
     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,))  ProjPMap2(f,yjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
   & FI1#y is convergent
   
    proof
     let y be Element of X2;FI1. = & Fy=X2&

     dom(lim(ProjPMap2(F,y))) = dom((ProjPMap2(F,)).)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(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
     end;
     hence lim(ProjPMap2(F,y)) = ProjPMap2(f,y) by A22,PARTFUN1:5;

A24holds (rojPMap2(,)#x1   
     dom(ProjPMap2(F,y).0) = Y lim((y1)#) ProjPMap2f,y1)x1
     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
     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,y))-measurable
        by A28,Th47;
      hence ProjPMap2(F,y).n is (Measurable-Y-section(A,y))-measurable
        by Def6;
     end;

A29: for 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,y).n).x <= (ProjPMap2(F,y).m).x
     proof
      let n,m be Nat;
      assume A30: n<=m;
      let x be Element of X1;

:x inMeasurable-Y-section(A,y); then
      x in dom(ProjPMap2(F.0,y)) by A25,Def6; then
        Y-ection(domF0))by Def4ef4;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)
        y A8,Th58,MESFUNC8:def2java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      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)
    rojPMap2(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;

      x in Y-section(dom f,y) by A3,MEASUR11:def 7; then
      x in dom(ProjPMap2(f,y)for x java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 60

      hence (ProjPMap2(F,y))#x is convergent by A16;
     end; then
     consider J be ExtREAL_sequence such that
  f n   holdsJ.n =Integral(M1PFy)n) 
A35:  J is convergent and
A36:  Integral(M1,lim( lim(ProjPMap2(F,yjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 66
         by A8,A25,A26,A27,A29,Th58,MESFUNC9:52;

     for n be Element of NAT holds J.n = (FI1#y).n
     roof
      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
      hence J.n = (FI1#y).n by A34;
     end;
     
         & 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));

    thus husforV be Element of S2 holdsI1 is -easurable
    proofx  Y-dom(F0,)byDef4; then
     let V be Element of S2;
     now
      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      hence (ProjPMap2(F,y).n).x >= (ProjPMap2(F,y).m).x
      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 Wbe 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
xjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 39
       (FI1.n).y = Integral(M1,ProjPMap2(F.n,y)) by A15,A43;
       hence (FI1.n).y = L.y by A42;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 66
      FI1.n = L by A44,FUNCT_2:63;
      FI1nXX2mjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 43
     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;

Lm8:
for X1,X2 be non empty set
  M1 be sigma_Measure of , M2 be sigma_Measure of S2,
  A be Element of sigma     proof
  f be PartFunc of [:X1,X2:],ExtREAL
 st M1 is sigma_finite
  & f is nonpositive & A = dom f & f is A-measurable
 
  ex I1 be Function of X2,ExtREAL st
   ( for y be Element of X2 holds I1.y = Integral(#.  ;
 & ( 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,
    Abe  ofsigma measurable_rectangles(S1,S2),
    f be PartFunc of [:X1,X2:],ExtREAL;
    assume that
A1:  M1 is sigma_finite and
A3:  f is nonpositive & A = dom f & f is A-measurable;

    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;
    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 nonpositive 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,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[Nat:FI1 is  java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 48
      ex Fy be Function of X2,ExtREAL st
        $2 = Fy & dom Fy = X2 &
        (or y1be Element  y1 in dom Fy holds
           Fy.y1 = Integralend;

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

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

beFunction java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 39
A11:  dom FI1 = X2 & for y1 be Element of X2 holds FI1.y1 = F(y1)
        from FUNCT_1:sch 4;

A12: for y2 be object st y2 in X2 holds FI1.y2 in ExtREAL
     proof
      let y2 be object;
      assume 
      java.lang.StringIndexOutOfBoundsException: Range [21, 12) out of bounds for length 63
      FI1.y2 = Integral(M1,ProjPMap2(F.n,y1)) by A11;
      hence FI1.y2 in ExtREAL;
     end; then
     java.lang.StringIndexOutOfBoundsException: Range [43, 8) out of bounds for length 57
     reconsider FI1 as Element of PFuncs(X2,ExtREAL) by PARTFUN1:45;
     take FI1;

     reconsider Fy = FI1 as Function of X2,ExtREAL by A12java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     for y1 be Element of X2 st y1 in dom Fy holds
             Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) by A11;
     hence ex Fy be Function of X2,ExtREAL st FI1 = Fy & dom Fy = X2 &
        domFyholds
          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(A10);

A14:for n be Nat holds dom(FI1.n) = X2
    proof
     let n be Nat;
     n is Element of NAT by ORDINAL1:def 12; then
     ex Fy be Function of X2,ExtREAL st
      FI1.      (F#z1F#n=(rojPMap1Fx1..y1by Def5;
      (for y1 be Element of X2 st y1 in dom Fy
        holds Fy.y1 = Integral(M1,ProjPMap2(F.n,y1)) ) by A13;
     hence dom(FI1.n) = X2;
    end;

java.lang.StringIndexOutOfBoundsException: Range [53, 3) out of bounds for length 63
     (FI1.n).y1 = Integral(M1,ProjPMap2(F.n,y1))
    proof
     let n be Nat, y1 be A21:for x be Element of X1 holds
     assume  y1 in dom(FI1.n);
     n is Element of NAT by ORDINAL1:def 12; then
     P & 
     hence (FI1.n).y1 = Integral(M1,ProjPMap2(F.n,y1));
    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 &
            (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 A23: y in doml(ProjPMap1(,))java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
A18: F#z1 is convergent by A7;

A19: for n be Element of NAT holds (F#z1).n = ((ProjPMap2(FFUN1:5;
     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
      Fz1).n= (Fny1. byA20, 
      F#1.n=(F,)n. by Def6;
      hence (F#z1).n = ((ProjPMap2(F,y1))#x1).n by MESFUNC5:def 13;
     end;
     1)#x1isconvergentby A18FUNCT_2:def ;
     F#z1 = (ProjPMap2(F,y1))#x1 by A19,FUNCT_2:def 8; then
     lim((ProjPMap2(F,y1))#x1java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 0
      (java.lang.StringIndexOutOfBoundsException: Range [70, 25) out of bounds for length 70
    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(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(f,y)) by Def4;
     for x be Element of X1 st x in dom(lim(ProjPMap2(F,y)))
       holds (lim(ProjPMap2(F,y))).x = (java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 29
     proof
       xbe 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 nonpositive by A5; then
A26: ProjPMap2(F,y).0 is nonpositive by A24,Th33;

A27: for n be Nat holds
       (ProjPMap2(F,y).n) java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 29
     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,y))-measurable
        by A28,Th47;
      hence ProjPMap2(F,y).n is (Measurable-Y-section(A,y))-measurable
        by Def6;
     end;

A29: for n,m be Nat st n<=m holds for x be Element java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
       st x in Measurable-Y-section(A,y) holds
         (ProjPMap2(F,y).n).x >= (ProjPMap2(F,y).m).x
     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
      x in dom(ProjPMap2(F.0,y)) by A25,Def6; then      
x-section(omF0)y Def4 
      x in Y-section(dom f,y) by A4; java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 10
A32:A32:  dom(I2n  X1 by A14;

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:  (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,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;
      (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,ProjPMap2(f,y)) by A21;
    end;
    hence for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y));

    thus for V be Element of S2 holds I1 is V-measurable
    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: omFI1.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
      
A42:   ((I2.0)=XX1 by A14;
     & (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;

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 I2be  ofX1,xtREAL 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 t of X1;

    set S = sigma measurable_rectangles(S1,S2);
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
          henceFI2.is ;
    reconsider M = product_sigma_Measure(M1,M2) as java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 0
      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;

        I2be of ,ExtREAL st
      ex Fx be Function of X1,ExtREAL st
        $2 = Fx & dom Fx = X1 &
        (for x1 be    ( for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x)) )
           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(FbeElementof sigmameasurable_rectangles(1S2,

     consider FI2 be Function such that
A11:  dom FI2 = X1 & for x1 be Element of X1 holdsA3: f is &A    f is measurable;
        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
java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
     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,FI2.n] from FUNCT_2:sch 3(A10);

A14:for n be Nat holds dom(FI2.n) = X1
    proof
     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       reconsider x1 = x2 as Element of 
        holds Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) ) by A13;
     hence dom(FI2.n) = X1;
    end;

A15:reconsider FI2as  ofPFuncs(1E by 45;
     (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 Fxx1  ProjPMap1(.x1) byA11;
     P[n,FI2.n] by A13;
     hence (FI2.n).x1 = Integral(M2,ProjPMap1(F.n,x1));
    end;

A16:for x1 be ElementFx.  Integral(2,rojPMap1(n,) )by java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
     holds (ProjPMap1(F,x1))#y1 is convergent &
           ((,x1))#y1) ProjPMap1f,).
    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 Xproof
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
      java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A20:  [x1,y1] in let n be Element of NAT;
      (F#z1).n = (F.n).(x1,y1) by MESFUNC5:def 13; then
      (F#.n = ProjPMap1Fnx1)y1 by A20,Def3; then
      (F#z1).      Fz)n=(.)(1,)by def 13 
      hence (F#z1).n = ((ProjPMap1(F,x1))#y1)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
     
(F,x1)y1 is convergentby A18,: ;
     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;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

A21:for x be Element of X1 holds
     lim(ProjPMap1(     let x be Elemenof 
   & 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
          pro
     dom(lim(ProjPMap1(F,x))) = X-section(dom f,x) by A4; then
A22: dom(lim(ProjPMap1(F,x))) = dom(ProjPMap1(f,x)assume  in dom(im(
     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,A22dom(rojPMap1(,)0)=X-section(dom(F.0),x) by Def3; then
     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-sectionjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 35
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
       ,).)i(easurable-sectionAx)m
     proof
      let n be Nat;
A28:  dom(F.n) = A by A3,A4;
      F.n is A-measurable by A4,A29: for n,m be Nat st n<=m holds for y be Element of X2
      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)
    (,xx).  ProjPMap1Fm,) byDef5;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 be Elementof X2 st in Measurable--ectionAx
       by A6,A30,A32;
     end;

      yy Elementof
       holds (ProjPMap1(F,x))#y is convergent
     proof#). =(I2.n). by MESFUNC5:def 13; then
      let y be Element of X2;
      assume y in Measurable-X-section(A(FI2x)n=IntegralM2,rojPMap1(,)) byDef5;
      y in X-section(dom f,x) by A3,MEASUR11:def 6; then
      y in dom(ProjPMap1(f,x)) by Def3;

      (Fx)y convergent by java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
     end; then
     consider J be ExtREAL_sequence such that
A34:  (for n be Nat holds J.n = Integral(M2,ProjPMap1(F,x).n))dom(im FI2)=dom(I2.) MESFUNC8:ef9;then
 J convergent
IntegralM,imProjPMap1Fx))=lim J
         by A8,A25,A26,A27,A29,Th58,MESFUNC9:52;

     for n be Element of NAT holds I2.x F#)by MESFUNC8:ef9 
     proof
      let n be Element of NAT;
A37:  dom(FI2.n) = X1 by A14;
      (FI2#x).n = (FI2.n).x by MESFUNC5:java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 8
      (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;

    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;
    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;
    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 A42:   (for x be Element( Element  X1holds Lx=Integral(2,rojPMap1(F.x)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
     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
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 50
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;
       n).x = Integral(M2,ProjPMap1(F.nx) by A15
       hence (FI2.n).x = L.x by A42;
      end; then
      FI2a hat
      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;


X1,X2 be empty , beSigmaField X1,S2be SigmaFieldof X2,
  M1 be sigma_Measure of S1, java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 40
  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)) )
 & ( forend;
proof
    let X1,
    M1 be sigma_Measure of S1,theorem Th59:
    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 nonpositive & A = dom f & f is A-measurable;

    set S = sigma measurable_rectangles(S1,S2);
     XX1=X1 asElement S1 byMEASURE17
    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;
nsider   :X1X2: as Element of
a 

    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 [ onsider  be ofjava.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 51
       holds (F.n).z >= (F.m).z and
A7:  for z be Element java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 4
       (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[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
           .1 = IntegralM2,rojPMap1(.1x1));

A10:for n be Element of NAT ex FI2 be Element of PFuncs(X1,ExtREALM2 be  S2,f PartFunc of [X1,X2:],xtREAL,
    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
     A1:  M2 is sigma_finite and
      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,java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      indom
             Fx.x1 = Integral(M2,ProjPMap1(F.n,x1)) by A11    hence Integral2(f U-measurableby A7;
     hence ex Fx be Function of X1,ExtREAL st FI2 = Fx & dom Fx = X1 &
        nd;
          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,FI2.n] from FUNCT_2:sch 3(A10);

A14:for n be Nat holds dom(FI2.n) = X1
    proof
       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 &
      1 in java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46
        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
    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 java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 23
     reconsider z1 = [x1,y1] as Element of [:X1,X2:] by ZFMISC_1:def 2;
     assume y1 in  X1,X2 be non empty be  X1  bebe SigmaField  
     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 proof
     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#.=(ProjPMap1(F,)#y1.by :def13
     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;
     lim(ProjPMap1(F,1)#1  ;
    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
     x beElement 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
x)) P(fx)by java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
     for y be Element of X2 st y in dom(lim(ProjPMap1(F,x)))
       holds (lim(ProjPMap1(F,x))).y = (ProjPMap1(f,x)).y
     end; then
      let y be Element of X2;
      ssume A23: in ((ProjPMap1Fx)) 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
      et n 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(xnis (Measurable--ection(x)-easurable
        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).
     proof
      let n,m be Nat;
      assume A30: n<=m;
      let y         =chi(Measurable-Ysection(Ay,.by 

      assume A31: y in Measurable-X-section(A,x); then
      y in dom(hence  by P5
      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(ProjPMap1c(,:X2])
      dom(ProjPMap1(F,x).m) = dom(ProjPMap1(F,x).0)
        by A8,Th58,MESFUNC8:def 2;
      ProjPMap1(F,x).n = java.lang.StringIndexOutOfBoundsException: Range [55, 41) out of bounds for length 55
x. = F.x)by  
      (ProjPMap1(F,x).n).y = (F.n).(x,y)
     Fx..  F..xy) by A31,A33,java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
      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))) = java.lang.StringIndexOutOfBoundsException: Range [4, 44) out of bounds for length 31
         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) = X1 by A14;
     (FI2#)n  Fn).by d13;
      (FI2#x).n = Integral(M2,M2);
      (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;

    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;
    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;
    end;
    hence for x be Element of X1 holds I2.x =     let X1,X2be nonempty  S1be of  be  X2,

    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 A1: =dom f and
      hence dom(FI2.m) = dom(FI2.n);
     ;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 A7: dom f /\ (A/\B) = A/\B by A1,XBOOLE_1:17,28;
      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:25end;
    end;
end;

definition
   let X1,X2 be non empty set, S1 be SigmaField of X1,
   M1 be sigma_Measure of S1,
   f be PartFunc of [:X1,X2:],ExtREAL;
   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 IT be Function of X2,ExtREAL st
     for y be Element of X2 holds IT.y = F(y) from FUNCT_2:sch 4;
    hence thesis;
end;
uniqueness
proof
    let I1,I2 be Function of X2,ExtREAL;
    assume that
A1:  for y be Element of X2 holds I1.y = Integral(M1,ProjPMap2(f,y)) and
A2:  for y be Element of X2 holds I2.y = Integral(M1,ProjPMap2(f,y));
    now let y java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 58
     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:],ExtREAL;
   func Integral2(M2,f) -> Function of X1,ExtREAL means :Def8:
   for x be Element of X1 holds it.x = Integral(M2,ProjPMap1(f,x));
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 = F(x) from FUNCT_2:sch 4;
    hence thesis;
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
A2:  for x be Element of X1 holds I2.x = Integral(M2,ProjPMap1(f,x));
    now let x be Element of X1;
     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 M1 be sigma_Measure of S1, M2 be sigma_Measure
  M1 be sigma_Measure of S1, f be PartFunc of[XX2:,xtREAL,
  E be Element of sigma measurable_rectangles(S1,S2), V be Element of S2
 st   st E  dom f&f  nonpositive&f E1-easurable holds
  & E = dom f & f is E-measurable
 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 of S2;
    assume that
A1:  M1 is sigma_finite and
A3:f nonnegative fis nonpositive 
A4:  A = dom f and
A5:  f is A-measurable;
    consider I1 be Function of X2,ExtREAL such that
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 W-measurable
       by A1,A3,A4,A5,Lm7,Lm8;
    I1 = Integral1(M1,f) by A6,Def7;
    hence Integral1(M1,f) is V-measurable A7:dom  /\ (/B) = \byA1,BOOLE_1:1728
end;

theorem Th60:
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), 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
  (2f  U-
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,
    A be Element of sigma measurable_rectangles(S1,S2), U be Element of S1;
    assume that
A1:  M2 is sigma_finite and
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-section(E,y),X1))
proof
    let     hence Integral1(M1,fB nonpositiveby MESFUNC5:9;
    M1 be sigma_Measure of S1, y be Element of X2,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume M1 is sigma_finite; then
    X-vol(A,M1).y = M1.(Measurable-Y-section(A,y)) by MEASUR11:def 14;
    hence X-vol(A,M1).y
     =rx1= as  ofX1;
end;

theoremTh62:
for X1,X2 ,3,;
  java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 48
  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 of sigma measurable_rectanglesnow x beset;
    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(A,x),X2)) by MESFUNC9:14;
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),
  be Elementof  be Element of X2
holds
  ProjPMap1(chi(E,[:X1,X2:]),x) = chi(Measurable-X-section(E,x),X2)
& ProjPMap2(chi(E,[:X1,X2:]),y) = chi(Measurable-Y-section(E,y),X1)
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
    A be Element of sigma measurable_rectangles(S1,S2),
    be Element X1,ybe  of X2;
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;
    reconsider XX12 = [:X1,X2:]
      as Element of sigma measurable_rectangles(S1,S2) by MEASURE1:7;
A1: x in XX1 implies X-section([:XX1,XX2:],x) = XX2 by MEASUR11:22;
    dom st M1is sigma_finite
     = X-section(dom(chi(A,[:X1,X2:])),x) by Def3
    .= X-section(XX12,x) by FUNCT_3:def 3; then
A2: dom(ProjPMap1(chi(A,[:X1,X2:]) ntegral1(M1,fE2)is V-easurable
     = 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,X2:]),x));
A3:  [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
A4:  ProjPMap1(chi(A,[:X1,X2:]),x).y = chi(A,[:X1,X2:]).(x,y) by Def3;

A5:  Measurable-X-section(A,x) = X-section(A,x) by MEASUR11:def 6
      .= {y where y is Element of X2: [x,y] in A} by MEASUR11:def 4;

     per cases;
     java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 33
      y in Measurable-X-section(A,x) by A5; then
      chi(Measurable-X-section(A,x),X2).y = 1 by FUNCT_3:def 3
      hence ProjPMap1(chi(A,[:X1,X2:]),x).y
         = chi(Measurable-X-section(A,x),X2).y by A4,A6,FUNCT_3:def 3;
     end;
     suppose A7: not [x,y] in A;
      now assume y in Measurable-X-section(A,x); then
       ex y1 be Element of X2 st y1= y & [x,y1] in A by A5;
       hence contradiction by A7;
      end; then
      X-A,x,X2)y = 0 by FUNCT_3:def 3;
      hencec(,:1,:)x.java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
         = chi(Measurable-X-section(A,x),X2).y by A3,A4,A7,FUNCT_3:def 3;
     end;
    ;
    hence ProjPMap1(chi(A,[:X1,X2:]),x) =     M2 be sigma_Measure of S2, f be PartFunc of [:X1,X2:],ExtREAL,
      by A2,PARTFUN1:5;

A8: y in XX2 implies Y-section([:XX1,XX2:],y) = s(S1,S2), U be Element of S1;

    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:]),y))
     = 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:]),y).x = chi(A,[:X1,X2:]).(x,y) by Def4;

A12: Measurable-Y-section(A,y) = Y-section(A,y) by MEASUR11:def 7
      .= {x where x is Element of X1: [x,y] in A} by MEASUR11:def 5;

     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
         = chi(Measurable-Y-section(A,y),X1).x by A11,A13,FUNCT_3:def 3;
     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
      java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 63
      hence ProjPMap2(chi(A,[:ProjPMap2(fy.x = 0
         = chi(Measurable-Y-section(A,y),X1).x by A10,A11,A14,FUNCT_3:def 3;
     end;
    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)
st M1 is sigma_finite holds X-vol(E,M1) = Integral1(M1,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,
    java.lang.StringIndexOutOfBoundsException: Range [16, 5) out of bounds for length 55
    assume
A1:  M1 is sigma_finite;
    now let y be Element of X2;
A2:  X-vol(A,M1).y = Integral(M1,chi(Measurable-Y-section(A,y),X1))
       by A1,Th61;
     ProjPMap2(chi(A,[:X1,X2:]),y) = chi(Measurable-Y-section(A,y),X1)
       by Th63;
     hence X-vol(A,M1).y = Integral1(M1,chi(A,[:X1,X2:])).y by A2,Def7;
    end;
    hence thesis by FUNCT_2:def 8;
end;

theorem Th65:
forX1,2 non  , S1be SigmaField of X1, S2 be SigmaField of X2,
  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:  M2 is sigma_finite;
    now let x be Element of X1;
A1:  Y-vol(A,M2).x = Integral(M2,chi(Measurable-X-section(A,x),X2))
       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 A1,Def8;
    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, M2 be sigma_Measure of S2;
 func Prod_Measure(M1,M2) ->
   sigma_Measure of sigma measurable_rectangles(S1,S2) equals
     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 (for y be Element of X2 st y in dom(,))holds
  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,M2 besigma_Measure of  be PartFunc of[X1,2]ExtREAL
    M1 be sigma_Measure of S1, M2 be sigma_Measure of A beElement of measurable_rectanglesS1,2) xbe Elementof java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    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) = 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 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) by A1,Def4; then
A10: dom(ProjPMap2(f,y1)) = Measurable-Y-section(A,y1) by MEASUR11:def 7; then
     integral+(M1,ProjPMap2(f,y1)) >= 0 by A2,A9,Th32,MESFUNC5:79; then
     Integral(M1,ProjPMap2(f,y1))> 0by ,A10,Th32MESFUNC5:88;
     hence Integral1(M1,f).y >= 0 by Def7;
    end;
    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 Element of X2;

:java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 68
        by A5,A8,Th47;
     dom(ProjPMap2(f|B,y1)) = Y-section(A/\B,y1) by A5integral(M2,-rojPMap1(,x) =0
A12:dom(rojPMap2(fB,1)=MeasurableY-section(/\,1)
       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 Element of X1;
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 java.lang.StringIndexOutOfBoundsException: Range [0, 72) out of bounds for length 68
     integral+(M2,ProjPMap1(f,x1)) >= 0 by A2,A13,Th32,MESFUNC5:79; then
     Integral(M2,ProjPMap1(f,x1)) >= 0 by A2,A13,A14,Th32,MESFUNC5:88;
     hence Integral2(M2,f).x >= 0 by Def8;
    end;
    hence&M,(\B)  MfA  M2,|

    now let x be object;
     assume x in dom(Integral2(M2,f|B)); then
    M sigma_Measure of ,M2 besigma_Measure of S2java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

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(    Integral1(fA nby A,Th66;
     Integral(M2,ProjPMap1(f|B,x1)) >= 0 by A4,A15,A16,Th32,MESFUNC5:88;
     hence Integral2(M2,f|B).x >= 0 by Def8;
    end;
    (fB)is nonnegativebySUPINF_2:2java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
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(f nonpositive  M1,|E2 nonpositive
& Integral2(M2,f) is nonpositive & Integral2(M2,f|E2) is nonpositive
proof
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 79
    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);
   java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
A1:  A =bDef7
A2:      .=Integral(M1,ProjPMap2(f,y)|Measurable-Y-section(A\/B,y))
A3:  f is A-measurable;

A4: f|B is nonpositive by A2,MESFUN11:1;
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) = 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    Integral2(2
        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
    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))  = MeasurableA\/, byA11M26;
     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  A misses B;
      by A1,A2,A3,A5,MESFUNC5:15,MESFUN11:1,Th59;
java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 4

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 of sigma measurable_rectangles(S1,S2), y be Element of X2;
    assume that
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;
A5: dom(ProjPMap2(f,y)) = Y-section(A,y) by A1,Def4
     .= Measurable-Y-section(A,y) by MEASUR11:def 7;
A6: ProjPMap2(f,y) is (Measurable-Y-section(A,y))-measurable by A1,A3,Th47;

    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;
    end;
    suppose f is nonpositive; then
A8:  ProjPMap2(f,y) is nonpositive by Th33;
A9:  dom(-ProjPMap2(f,y)) = Measurable-Y-section(A,y) by A5,MESFUNC1:def 7;
     for x be Element of X1 st x in dom(-ProjPMap2(f,y)) holds
      (-ProjPMap2(f,y)).x = 0
     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 y be Element of X2 st y in dom(ProjPMap1(f,x)) holds
     ProjPMap1(f,x).y = 0)
 holds Integral2(M2,f).x = 0
proof
    let X1,X2 be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
     sigma_MeasureS2  be of [X1X:,java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    A be Element of sigma measurable_rectangles(S1,S2), x be Element of X1;
    assume A6:  Integral2(,f. =(,(x)  Def8
A1:  A = dom f and
:fnonnegativeorf isand
A3:  f is A-measurable and
A4:  for y be Element of X2 st y in dom(ProjPMap1(f,x)) holds
       ProjPMap1(f,x).y = 0;
A5: dom(ProjPMap1(f,x)) = X-section(A,x) by A1,Def3
     .= Measurable-X-section(A,x) by MEASUR11:def 6;
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,f).x = 0 by Def8;
    end;
    suppose f is nonpositive; then
A8:  ProjPMap1(f,x) is nonpositive by Th33;
A9:  dom(-ProjPMap1(f,x)) = Measurable-X-section(A,x) by A5,MESFUNC1:def 7;
     for y be Element of X2 st y in dom(-ProjPMap1(f,x)) holds
      (-ProjPMap1(f,x)).y = 0
     proof
      let y be Element of X2;
      assume A10: y in dom(-ProjPMap1(f,x)); then
      (-ProjPMap1(f,x)).y = -(ProjPMap1(f,x).y) by MESFUNC1:def 7; then
      (-ProjPMap1(f,x)).y = -0 by A4,A5,A9,A10;
      hence (-ProjPMap1(f,x)).y = 0;
     end; 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
 E = dom f & f is nonnegative & f is E-measurable & A misses 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,
    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 E-measurable and
A4:  A misses B;

    Integral1(M1,f|A) is nonnegative by A1,A2,A3,Th66; then
    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,MESFUNC5theorem Th74:
      . Pfy|-sectionA/,) by 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
rJA =Integral2(2,|)as -infty Function X1,xtREAL;
    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;
 section(,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)
    for y beElementof X2 holds

     (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;

Lm12java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
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 is nonpositive & f is E-measurable & A misses 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,
    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 nonpositive and
A3:  f is E-measurable and
   misses ;

Integral1M1,|)is nonpositive by A1,A2,3,Th67;then
reconsiderIA  Integral1(M1f|)as without+infty Function of X2,xtREAL;
    Integral1(M1,f|B) is nonpositive by A1,A2,A3,Th67; 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

     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;

     ProjPMap2java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
&ProjPMap2(|,y) fy)|-section(,)by Th34; then
A9:  ProjPMap2(f|A,y) = ProjPMap2(f,y)|Measurable-Y-section(A,y)
&ProjPMap2(|,y  ProjPMap2(,)Measurable--(,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;

     (: (Integral2(M2,f1)Integral2(,g1).
      . Integral(M1,ProjPMap2(f|A,y) + Integral1(M1,f|)y
by
      .= Integral(M1,ProjPMap2(        B16,;
        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      C = (ProjPMap1(,)ProjPMap1(,) &

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))-measurable
      by A1,A3,Th47;
     A /\ B = {}[:X1,X2:] by A4; then
     X-section(A /\ BB18,B20,23,21,B22,Th32,MESFUNC5:8;
A8:        Integral2(M2,+)x
             = Integral2(2,1)+Integral2(M2,). byDef8;

     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
      .   E1 =dom f & f is nonpositive &f is E1-measurable &
        by Def8
      . Integral(M2,ProjPMap1(|,))+ Integral(M2,rojPMap1(f|,x)
        by
      &Integral2(2,f+) =Integral2M2,|dom(g)+Integral2(2g|om(g)
        by A2,A6,7,8,9,,ESFUN11:62
      .= Integral     X1,2 benon empty set,S1 be SigmaField of X1,S2 be SigmaField of X2,
. Integral(M2,ProjPMap1(f|A\/)x))by Th34;
     hencef, be PartFunc of [:1,X2:,xtREALjava.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
    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,  Integral1(M1,f|(E1\/E2)) = Integral1(M1,f|E1) + Integral1(M1,f
& Integral2(M2,f|(E1\/E2)) = Integral2(M2,f|E1) + Integral2(M2,f|E2)
by Lm11,Lm12;

theorem Th73:A4:  B =dom and
X1,X2 be nonemptyset   SigmaField of X1, S2 be SigmaField of X2,
  M1 be :  g is B-measurable
  f be PartFunc of [:X1,X2:],ExtREAL,
 E be Element of sigma measurable_rectangles(1,2)
  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,-java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

     dom(ProjPMap2(f,y)) = Y-section(A,y) by A1,Def4; then
A5: dom(ProjPMap2(,y) =Measurable--ection(,)by :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
      .= (-1)(#)ProjPMap1(f,x) by Th29
      .= -(ProjPMap1(f,x)) by      ,,ESFUN11:;
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 Th74:
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 nonnegative & 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
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
      by A1,A4,XBOOLE_1:17,28;
A10:f is (A/\B)-measurable & g is (A/\B)-measurable
      by A3,A6,XBOOLE_1:17,MESFUNC1: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,f1) is nonnegative & Integral2(M2,g1) is nonnegative
      by A8,A11,Th66; then
    reconsider IF1 = Integral1(M1,f1), IG1 = Integral1,1+g1) -ntegral1(M1,+)
      s  withoutinfty 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)
  & IF2+IG2 = Integral2(M2,f1) + Integral2(M2,g1);

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;
     dom(ProjPMap2(f1,y)) = Y-section(A /\ B,y)
   & 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) + ProjPMap2(g,y) by Th44;

     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(f1,y) = ProjPMap2(f,y)|Measurable-Y-section(A /\ B,y)
   & ProjPMap2(g1,y) = ProjPMap2(g,y)|Measurable-Y-section(A /\ B,y)
       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(ProjPMap2domfg)+Integral2,|omfg)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
   & dom(ProjPMap2(g,y)) = Measurable-Y-section(B,y) by MEASUR11:def 7;

     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 MEASUR11:def 7;

     f+java.lang.StringIndexOutOfBoundsException: Range [7, 1) out of bounds for length 21
A22: ProjPMap2(f+g,y) is (Measurable-Y-section(A/\B,y))-measurable
       A7,Th47;

A23: (Integral1(M1,f1)+Integral1(M1,g1)).y
      = Integral1(M1,f1).y + Integral1(M1,g1).y by A13,DBLSEQ_3:7
Map2(y)+Integral1(M1g1)y by Def7
     .= integral+(M1,,E2 be Element of sigmaS,java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
       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
          MESFUNC578;
     (Integral1(M1,f1)+    M1 be sigma_Measure of S1sigma_Measure of  M2sigma_Measure of S2,
       =     f, be PartFunc of[X1,2:]ExtREAL,
      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;
     domjava.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
   & dom(ProjPMap1(g1,x)) = X-section(A /\ B,x) by A8,Def3; then
B15: dom(ProjPMap1(f1,x)) = Measurable-X-section(A /A4
   & 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 and
   & A6:  g is B-measurable;
      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:f is (/\)  A\)measurable
      by A3,6,BOOLE_11,ESFUNC13;
     dom(ProjPMap1(f+g,x)) = X-section(A /\ A10:dom(f-g) = A/\B by A1,A2,A4,A5,MESFUNC5:17; 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 + Integral2(M2,g1).x by A13,DBLSEQ_3:7
     .= Integral(M2,ProjPMap1(f1,x)) + Integral2(M2,g1).x by Def8
     .= integral+(M2,ProjPMap1(f1,x)) + integral+(M2,ProjPMap1(g1,x))
       by B16,Def8;
     ProjPMap1(f,x) is nonnegative & ProjPMap1(g,x) is nonnegative
   & ProjPMap1(f,x) is (Measurable-X-section(A,x))-measurable
   & ProjPMap1(g,x) is (Measurable-X-section(B,x))-measurable
       by A1,A3,A4,A6,A2,A5,Th32,Th47; then
     ex C be Element of 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 &
     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))
& 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 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 [: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;

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 /\ (A /\ B) = A /\ B
      by A1,A4,XBOOLE_1:17,28;

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)) + Integral2(M2,g1|dom(f1+g1))
       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;


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: A13: f+g1 = f-g  MESFUNC2:8; then
A14:Integral1(M1, = Integral1(,|dom(f-)  Integral1(M1,g1|om(-)
      = Integral1(M1,f|dom(f-g)) + Integral1(M1,g1|dom(f-g        by A1,2A3,7A8
       A1A2,,7,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,|dom(f-) - Integral1(1,g|om(-g) by MESFUNC28
       ,dom(-) -Integral1(,g|om(fg)) by MESFUNC2:8;
A15:f-g is (A/\B)-A17:(-f) =A/B byA10M:ef 7;
A16:g-f = -(f-g) by MEASUR11:64; then
A17:dom(g-f) = A/\B by A10,MESFUNC1:def 7;

    Integral1(M1,g-f
    hence
     Integral1(M1,g-f) = Integral1(M1,g|dom(g-f)) - Integral1(M1,f|dom(g-f))
      by A10,A18:Integral2(M2,f-g)

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;
    henceIntegral2(M2,-)
       Integral2(f|om(f-)  M2,g|dom(f-)) MESFUNC2:
    Integral2M,f  -ntegral2(,-)  A10,A16,A15,h73;
    hence
     Integral2(M2,gf)  Integral2(2,|dom(-) - Integral2M2,|om(-)
,,EASUR1164java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
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-volst M1 is sigma_finite & M2 is sigma_finite
        = 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))    assume that
      by A1,A2,MEASUR11:118,117;
    hence thesis by MESFUNC9:14;
end;

theorem Th78:
X1X non empty set,S1 be SigmaField of X1, S2 be SigmaFieldof X2,
 M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
 be Element sigmameasurable_rectangles(S)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
 f be PartFunc of [:X1,X2:],ExtREAL, r be Real st
 E = dom
 holds
  Integral1(M1r(#)f)=r()Integral1M1f)
& Integral2( M1 be sigma_M besigma_Measureof S1,M2 be igma_Measureof S2,
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  = dom f & (f is nonnegative or f is nonpositiveis E-measurable
    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(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A5 dom(ProjPMap2fy)=Measurable-Y-sectionEy) :7java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23
       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 hence Integral1(M1,r(#)f).y = (r(#)Integral1(M1,f)).y
     .= 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 B5:  dom(Prf,)=Measurable-section(,x)by MEASUR11:def 6;
    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
B6:  ProjPMap1(f,x) is nonnegative or ProjPMap1(f,x) is nonpositive
       by A2,Th32,Th33;

     Integral2(M2,r(#)f).x
gralM2,r#f,) 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 ,:ef 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.= chi(Y-sectionE,),1|Y-section(,y)by Th48
  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;
ojPMap2(chi(E,:X1,2]|E,)
      = 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) | 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((c(
      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,
  E be Element of sigma measurable_rectangles(S1,S2) holds
  Integral1(M1,Xchi(E,[:X1,X2:])|E) = fX1,2be empty et S1 be SigmaFieldX1,S2 be SigmaField of X2,
 Integral2M2,(,:X1,X2:)E  Integral2MX(,:,2])
proof
     X2benonempty  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     let X1,X2let X1,2be non empty set, S1 be SigmaField of X1, S2 be SigmaField of X2,
     set XC1 = Xchi(Measurable-Y-section(E,y),X1);
A1:  ProjPMap2(Xchi(E,[:X1,X2:])|E,y)
     ([X:]),) | Y-ection(E,y)by 
     .= 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,
      = 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      .= Integral(M1,ProjPMap2(Xchi(E,[:X1,X2:]),y) ) by Th35(E,)
     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;

     xElementX1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
     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
      |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,XchiE,:1,2:)E).x
      = Integral2(M2,Xchi(E,[:X1,java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 16
    end;
    hence Integral2(M2,Xchi(E= Integral(2ProjPMap1(chi(E,:X2]|,)  Def8
 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 56
end;

theorem      .= Integ Integral(Xchi(X-sectionEx)X2))by MEASUR11def java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
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 java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 8
  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:2MESFUNC2:29;
    .= 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
    ,A3Th78;
    hence
     Integral2(M2,chi(er,E,[:X1,X2:])|E) = Integral2(M2,chi(er,E,[:X1,X2:]))
      by Th1;
    end;
     i;then
     chi(er,E,[:X1,X2:]) = Xchi(E,[:X1,X2:]) by 
     hence
      Integral1. Integral1(1,#cE,[,X2:])by ,A3,;
    
java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    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
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,Th78endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
     .= Integral1(M1,chi(er,E,[:X1,X2:])|E) by d1,MESFUN11:2;
     hence
,chi(er,[XX:))java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
     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
Integral2M2,,,:X1,X2:)|E)  Integral2M2chie,E[X1X:);
    end;
end;

theorem Th82:
X1X2 be non emptyset,beSigmaField  X1,S2 SigmaField java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 75
 sigma_Measure ,M2be  of S2java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
  E be Element of sigma measurable_rectangles(S1,S2)
st M1 is sigma_finite & M2 is sigma_finite
holds
 (M)chiE[X,:])
   = 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
& 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,
     sigma_Measure of S1, M2 be sigma_Measureof 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(M1  sigma_Measure of   besigma_Measure
    
A4:  Integral(Prod_Measure(M1,M2),java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 15
     =     X-volE, =(1,hi(E,:X:)  ,;

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:])|java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 13
proof
let ,2be non emptyset,S1be SigmaField X1  of,
    M1 be sigma_Measure of S1, M2 be sigma_Measure of S2,
    E be Element of sigma measurable_rectangles(S1,S2), r be Real;
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
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 java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 24
    reconsider XX1 = X1 as Element of S1 by MEASURE1:7;
    reconsider XX2 = X2 as Element of S2 by MEASURE1:7;

A3: chijava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A4: chi(E,[:X1,X2:]) is_simple_func_in S by Th12;
A5: chi(E,[:X1,X2:]) is XX12-measurable by Th12,MESFUNC2:34;

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,[:1X2:]))) =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
     9,Lm1;
    hence Integral(Prod_Measure(M1,M2),chi(r,E,[:X1,X2:]))
      = Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])))
        by A3,A5,A6,A7,Th78;

    reconsider C = chi(E,[:X1,X2:])|E as PartFunc of [:X1,X2:],ExtREAL;
        M(1cE[X,]))  ,2,h82
A12:chi(r,E,[:X1,M2,r(#)-vol(E,M1) by A7,A8,9,Lm1;
     .= r(#)C by MESFUN11:2;

A13:Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])|      = Integral(M2,Integral1(M1,chi(r,E,[:X1,X2:])))
     = 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(,chir,E,:X1,X2:)|)
     = 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:]   .=Integral((1M)crE[X,:]java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55

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:]))
     IntegralM,Integral2M2,hi(E,[X1,X2:))
        by

    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:
forX1,X2 be e empty set,S1be 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)
    or isnonpositive)
   & 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 non empty PartFunc of [:X1,X2:],ExtREAL,
    A be Element of sigma measurable_rectangles(S1,S2);
    assume that
A1:  M1 is sigma_finite and
 M2 issigma_finite and
A3:  f is_simple_func_in sigma A be Element of sigma measurable_rectangles(S1
assume 
A5:  A = dom f;

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

    set S = sigma measurable_rectangles(S1,S2);
    set M = java.lang.StringIndexOutOfBoundsException: Range [36, 21) out of bounds for length 40
    reconsider XX12 = [:X1,X2:] as Element of S by MEASURE1:7;
    reconsiderXX1 =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))));

java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    proof
     reconsider E0 = {} as Element of S by MEASURE1:7;
      E01={ as Element  S1 by MEASURE1:;

     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 
      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 bejava.lang.StringIndexOutOfBoundsException: Range [65, 14) out of bounds for length 65
     assume A15by A5,Th67; hen
     per cases;
     suppose n >= len E; then
      E|n = E & E|(n+1) = E by FINSEQ_1:58,NAT_1:12;
      (Prod_Measure(1,2)f|( (+))java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
       = Integral(M2,Integral1(M1,f|(union rng(E|(n+1))))) by A15;
     end;
     suppose n < len E;
      Union (E|ejava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
      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;

java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 46
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(|java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 49
    & 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 = Integral(M2,ProjPMap1(f,x-sectionE, Th34,2
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
domIntegral1M1,f|  Integral1(1fEn1) =XX2 y : java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76

       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))
         ,A20A21,A24,h21;
       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:   java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23


         = 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,A26java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       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(M2,Integral1(M1,f|(union rng(E|(len E))))) by FINSEQ_1:58;
    per  cases ;
      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
       java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 51
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)))).endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
     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,java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [38, 6) out of bounds for length 50
        by A5,A6,A12,A13,Th47,MESFUNC5:94;
     end;
     dom(Integral2(M2,f|(union rng(E|0)))) = XX1 by FUNCT_2:def 1;
     java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 49
    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  sigma_finite implies
       = Integral(M1,Integral2(M2,f|(union rng(E|(n+1))))) by A15;
     end;
     suppose n < len E;
      Unionlet X2 benon empty set  be SigmaFieldof  S2be SigmaField ofX2,
      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     beElement of sigma measurable_rectangles(1S2)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55

      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
3 M2,f|En is nonnegative&Integral2(M2fE nonnegative
java.lang.StringIndexOutOfBoundsException: Range [26, 8) out of bounds for length 27
       reconsider I1 = Integral2(M2,f|En), I2 = Integral2(M2,f:M1,)is nonnegative
         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
       java.lang.StringIndexOutOfBoundsException: Range [42, 21) out of bounds for length 42
M2)M2,|)
         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 & ProjPMap1(f,x) is nonnegative,Th31
         M2,En 
2(,|)=XX1 by def 1java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76

    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 41
         = 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))
           M1issigma_finite &M2 sigma_finite
       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,   & (f is nonnegative or f is no)
      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(suppose f is empty
        Integral(1Integral2(,f((|lenE))) 
    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,
  beempty PartFuncof :X2:]ExtREAL,
  A be Element of sigma measurable_rectangles(S1,S2) holds
  (java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 30
    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:Integral(((,M2)f)
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
 Prod_MeasureM)f)  0 by A2,6MESFUNC5: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 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
      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,ntegral1(1,f)) = by A8,A9,MESFUNC587;
          dom(P(F.,yy)  Measurable-Y-(,y
      = 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
     java.lang.StringIndexOutOfBoundsException: Range [21, 8) out of bounds for length 28
     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&ProjPMap2(F.y1  M-YsA,1))measurable

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,
   bebe Element of)
  st M1 is &M2is
   & f is_simple_func_in sigma measurable_rectangles(java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 48
   & (f is nonnegative or f is nonpositive)
   & A = dom f
  holds
    Integral(x in Y-section,)by : 7 
  & 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       x in {x where x is Element of X1: [x,y] in d(.}
    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;
    henceProjPMap2(.y. = (.my. by A17,
    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 bebyA22,85 
    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);
    XX2 =X2  ofS2 by EASURE17java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    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
    Fof [X1,X2:ExtREAL,
       K be ExtREAL_sequence such that
A6:  lety be Elementof 
    njava.lang.StringIndexOutOfBoundsException: Range [44, 18) out of bounds for length 44
   & (A26:for beof  fbeElementof (,xtREAL n,java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
       for z be Element of [:X1,X2:] st z in dom f holds (F.n).z <= (F.m).z)
   & (for z be Element of [:X1tf
       F#z is convergent & lim(F#z) = f.z)
   & for n be Nat holds K
     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
      .for m, be Natholdsdom(Xm)  om(n)
    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
G.= n)from SEQFUNCsch 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;
     java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 10
        by A13,Th47;
     F.n is nonnegative by A6;
     hence ProjPMap2(F.n,y) is nonnegative by Th32;hence forx be  X1st  Measurable-Y-section(yjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    end;


      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
      reconsiderof java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
      (G.n).y = Integral(M1,ProjPMap2(F.n,y1))
    (A,y1))measurable
    & dom(ProjPMap2(F.n,y1)) = Measurable-(#)n =(F.)(x,)byA41,Def4;
      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
java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
     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 A4A43: for be of    G#y) =In
       x in {x where x is Element of X1: [x,y] in dom(F.n)}
         en
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
       (.,)x  F.n.x,)  (m,)x  F.)xy)
         by A18,Def4;
       hence ProjPMap2(F.n,y).x <= ProjPMap2(F.m,y).x by A6,A17,A19;
     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(java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 41
    & dom(ProjPMap2A49: for  Nat J.  M2,G.n))
    & 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))
       ProjPMap2(ny).x <=ProjPMap2(F.m,. byA16, 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
        by A22,MESFUNC5:88; then
  Integral(M1,rojPMap2(.n,y) < Integral(ProjPMap2(.m,)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
        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.). < (.m).y byA23,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
     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 econsider XX1=X1 as Elementof by :7java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
      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
      
      dom(FX.m) =&beNatholdsn = java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 68
      hence dom(FX.m) = dom(FX.n) by A28;
     F) java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 32
     reconsider FX as with_the_same_domF holds
       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;

 ProjPMap2(,y)=Ysection(,)byA4,ef4;

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;
      assumeA14:or  be 
      x in Y-section(A,y) by MEASUR11:def 7; then
A38:  [x,y] in dom f by A4,Th25; then
A39:  F# is Fz)  zby java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
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).  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 46
x.=Fny.  ;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
     java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 45
A42:  (for n be Nat holds I.n = Integral(M1,FX.n))
    & I is convergent
 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 65

A43: for n be Element of NAT holds (G#y).n = I.n
     proof
      let n be Element of NAT;
      (java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 48
      (G#y).n = Integral1(M1,F.n).y by java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 21
      (G#y).n = Integral(M1,ProjPMap2(F.n,y)) by Def7;ence Fnx.y= Fm,). A6,A17,java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      (G endjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
      hence (G#y).n = I.n by A42;
     end;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 50

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  limF#x)byMESFUNC8def 9;
      java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 59
     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;
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    end; then
A48:G is with_the_same_dom by MESFUNC8:def 2;
    G.0 = Integral1(M1,F.0) by A11(Gm.x  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 43
    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 GG#x is convergent & lim(# =(,(x)
    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(M1t] $2  (.1x);
    proof
     ety be X2;
     assume y in dom(lim G); then
     (lim G).y = lim(G#y)       let n be Element of NATnbe of java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
     (lim G).y = Integral(M1,ProjPMap2(f,y)) by A25;
     hence (lim G).y = (Integral1(M1,lim F)).y 
    end; then
A51:lim G = Integral1(M1,lim F) by A50,PARTFUN1:5;
    for n be Element of NAT holds K.n = Jrable-X-section(,)
    proof
     let n be Element of NAT;
A52: A = dom(F.n) by A4,A6;
A53: FX.  section(dom(n,x D;then
     K.n = integral'(Prod_Measure(M1,M2),F.n) by A6hence dom(x byMEASUR11:;
     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 =      for m,n be Natdom(X.)=dom(FX.
     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 java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 10
 & 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),
     PartFunc of[: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 java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 25
    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 assume y in Measurable-X-section;then
    f beNat Fnis 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 <= (   be Element ofNAT java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 54
   & (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) java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 14
     (lim F).z = f.z
    proof
     let z be Element of [:X1,X2:];
     assume A9: z     & Integral(M2,lim M2limFX)  Iby AAA33,MESFUNC952;
     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
   Pjava.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 63
   & end 
    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.nhence (n = dom(m)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
       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;

forn beNat holds
      dom(G.n) = XX1 & G.n is XX1-measurable & G.n is nonnegative
    proof
     let n be     holds l )x= Ijava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 46
A15:assume x  
     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,     im = Integral2(2,lim  A50Pjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 50
     nowlet  bebe ;
      assume x in dom(G.n); then
      reconsider x1=x as Element of X1;
      (G.n).x = Integral(M2,ProjPMap1(F.njava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    & ProjPMap1    & ProjPMap1(F.n,x1,Integral2(,n) byA1,2A52,A53,Lm15;then
    & 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
         M1 be sigma_Measurebe    java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    proof
     let xnpositive  =  java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 51
     assume A17: n <= m;
     hereby      beS1,bejava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 57
       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

     let n,m be Nat;
     assume A21: n <= m;
     hereby let x be Element of X1;
      assume x in XX1;

A22
    & dom(ProjPMap1(F.m,x)) = Measurable-X-for , benon,S1beofX1, be SigmaField java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 75
    & ProjPMap1(F.n,x) is (Measurable-X-section(A,x))-measurable
    & ProjPMap1(F.m,x) is (Measurable-X-section(A,x))-measurable
 java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 37
    & 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
8610010095

¤ Dauer der Verarbeitung: 0.970 Sekunden  ¤

*Bot Zugriff