Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 45 kB image not shown  

Quelle  extreal1.miz   Sprache: Mizar

 

:: Basic Properties of Extended Real Numbers
::  by Noboru Endou , Katsumi Wasaki and Yasunari Shidama
::
:: Received September 7, 2000
:: Copyright (c) 2000-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, SUPINF_1, REAL_1, RELAT_1, XXREAL_0, ARYTM_3, COMPLEX1,
      CARD_1, ARYTM_1, FINSEQ_1, CARD_3, FUNCT_1, SUBSET_1, SUPINF_2, NAT_1,
      FUNCT_2, FUNCOP_1, XBOOLE_0, TARSKI, ORDINAL4, PARTFUN1, RFINSEQ,
      XCMPLX_0, MESFUNC1;
 notations TARSKI, XBOOLE_0, SUBSET_1, CARD_1, ORDINAL1, NUMBERS, XXREAL_0,
      XXREAL_3, XCMPLX_0, XREAL_0, COMPLEX1, REAL_1, RELAT_1, FUNCT_1,
      RELSET_1, PARTFUN1, BINOP_1, FUNCT_2, DOMAIN_1, RFINSEQ, RFUNCT_3,
      RVSUM_1, FUNCOP_1, FINSEQ_1, FINSEQ_4, NAT_1, NAT_D, SUPINF_1, SUPINF_2,
      MEASURE6;
 constructors BINOP_1, DOMAIN_1, REAL_1, NAT_1, FINSEQ_4, FINSOP_1, RVSUM_1,
      SUPINF_2, RFINSEQ, RFUNCT_3, MEASURE6, BINARITH, BINOP_2, SUPINF_1,
      CLASSES1, NAT_D, RELSET_1, XXREAL_3, FINSEQ_1, FUNCT_1, FUNCT_2, INT_1,
      FUNCOP_1, COMPLEX1, ARYTM_2;
 registrations XBOOLE_0, FUNCT_1, ORDINAL1, RELSET_1, FUNCT_2, NUMBERS,
      XXREAL_0, XREAL_0, NAT_1, INT_1, FINSEQ_1, VALUED_0, CARD_1, XXREAL_3;
 requirements NUMERALS, REAL, SUBSET, BOOLE, ARITHM;
 equalities SUPINF_2, XXREAL_3, XCMPLX_0;
 theorems FUNCT_2, FINSEQ_1, FINSEQ_2, FINSEQ_3, FINSEQ_5, NAT_1, TARSKI,
      FUNCT_1, INT_1, XCMPLX_1, XBOOLE_0, RFINSEQ, RELAT_1, FUNCOP_1, XREAL_1,
      XXREAL_0, XREAL_0, PARTFUN1, ORDINAL1, XXREAL_3, SUPINF_2, ABSVALUE,
      COMPLEX1;
 schemes FUNCT_2, FINSEQ_2, NAT_1, RECDEF_1;

begin  :: Operations "x * y","x / y", "|.x.|" in R_eal numbers

theorem
  for x,y being ExtReal, a,b being Real holds x = a & y = b
  implies x * y = a * b by XXREAL_3:def 5;

theorem Th2:
  for x,y being ExtReal, a,b being Real st x = a & y = b
  holds x / y = a / b
  proof
    let x,y be ExtReal, a,b be Real such that
A1: x = a;
    assume y = b;
    then y" = b" by XXREAL_3:def 6;
    hence thesis by A1,XXREAL_3:def 5;
  end;

definition
  let x be ExtReal;
  func |. x .| -> R_eal equals
  :Def1:
  x if 0 <= x otherwise -x;
  coherence by XXREAL_0:def 1;
  consistency;
  projectivity;
end;

registration
  let x be Real, a be Complex;
  identify |.x.| with |.a.| when x = a;
  compatibility
   proof assume
A1:  x = a;
    per cases;
    suppose
A2:    0 <= x;
    hence |.x.| = a by A1,Def1 .= |.a.| by A2,A1,ABSVALUE:def 1;
    end;
    suppose
A3:   0 > x;
    hence |.x.| = -(x qua ExtReal) by Def1
     .= |.a.| by A3,A1,ABSVALUE:def 1;
    end;
   end;
end;

theorem
  for x being R_eal st 0 <= x holds |. x .| = x by Def1;

theorem
  for x being R_eal st x < 0 holds |. x .| = -x by Def1;

registration let x be R_eal;
 cluster |.x.| -> non negative;
 coherence
  proof per cases;
   suppose
A1:   0 <= x;
     then |. x .| = x by Def1;
    hence thesis by A1;
   end;
   suppose
A2:   x < 0;
     then |. x .| = -x by Def1;
    hence thesis by A2;
   end;
  end;
end;

::$CT 2

begin :: Sum of Finite Sequence of Extended Real Numbers
  :: from CONVFUN1, 2010.02.13, A.T.

definition
  let F be FinSequence of ExtREAL;
  func Sum(F) -> R_eal means
  :Def2:
  ex f being sequence of ExtREAL st it = f.(len F) & f.0 = 0. &
  for i being Nat st i < len F holds f.(i+1)= f.i+F.(i+1);
  existence
  proof
    defpred P[FinSequence of ExtREAL] means ex f being sequence of
ExtREAL st f.0 = 0. & for i being Element of NAT st i < len $1 holds f.(i+1) =
    f.i+$1.(i+1);
A1: for F being FinSequence of ExtREAL for x being Element of ExtREAL st P
    [F] holds P[F^<*x*>]
    proof
      let F be FinSequence of ExtREAL;
      let x be Element of ExtREAL;
      assume P[F];
      then consider f being sequence of  ExtREAL such that
A2:   f.0 = 0. and
A3:   for i being Element of NAT st i < len F holds f.(i+1) = f.i+F.(i +1);
      defpred R[Element of NAT,set] means ($1 <= len F implies $2 = f.$1) & (
      $1 = (len F)+1 implies $2 = f.(len F) + x);
A4:   for i being Element of NAT ex g being Element of ExtREAL st R[i,g]
      proof
        let i be Element of NAT;
        per cases;
        suppose
A5:       i <> (len F)+1;
          take f.i;
          thus thesis by A5;
        end;
        suppose
A6:       i = (len F)+1;
          take f.(len F) + x;
          thus thesis by A6,NAT_1:13;
        end;
      end;
      consider f9 being sequence of  ExtREAL such that
A7:   for i being Element of NAT holds R[i,f9.i] from FUNCT_2:sch 3(A4
      );
      thus P[F^<*x*>]
      proof
        take f9;
        thus f9.0 = 0. by A2,A7;
        thus for i being Element of NAT st i < len(F^<*x*>) holds f9.(i+1)=f9.
        i+(F^<*x*>).(i+1)
        proof
          let i be Element of NAT;
          assume i < len(F^<*x*>);
          then i < (len F)+(len <*x*>) by FINSEQ_1:22;
          then i < (len F)+1 by FINSEQ_1:39;
          then
A8:       i <= len F by NAT_1:13;
          then
A9:       f9.i = f.i by A7;
          per cases by A8,XXREAL_0:1;
          suppose
A10:        i < len F;
            then
A11:        i+1 <= len F by INT_1:7;
            1<=i+1 by NAT_1:12;
            then i+1 in Seg len F by A11,FINSEQ_1:1;
            then
A12:        i+1 in dom F by FINSEQ_1:def 3;
            f9.(i+1) = f.(i+1) by A7,A11;
            then f9.(i+1)=f9.i+F.(i+1) by A3,A9,A10;
            hence thesis by A12,FINSEQ_1:def 7;
          end;
          suppose
A13:        i = len F;
            then f9.(i+1) = f9.i + x by A7,A9;
            hence thesis by A13,FINSEQ_1:42;
          end;
        end;
      end;
    end;
A14: P[<*> ExtREAL]
    proof
      reconsider f = NAT --> 0. as sequence of  ExtREAL;
      take f;
      thus f.0 = 0. by FUNCOP_1:7;
      thus thesis;
    end;
    for F being FinSequence of ExtREAL holds P[F] from FINSEQ_2:sch 2( A14
    ,A1);
    then consider f being sequence of  ExtREAL such that
A15: f.0 = 0. and
 Element  NAT  lenFholdsfi+1  f.+.(i 1;
A17: for i being Nat st i < len F holds f.(i+1) = f.i+F.(i+ 1)
    proof let i be Nat;
      i in NAT by ORDINAL1:def 12;
     hence thesis by A16;
    end;
    take f.(len F);
    thus thesis by A15,A17;
  end;
  uniquenessset =L(-1)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  proof
    let g1, g2 be Element of ExtREAL;
    given f1 being sequence of  ExtREAL such = as Matrix of len Fi,widthFi, by 
A18: g1 = f1.(len F) set B=block_diagonal(F,d);
A19: f1.0 = 0. and
A20: for i being Nat st i < len F holds f1.(i+1) = f1.i+F.( i+1);
  setW= F;
A21: g2 = f2.(len F) and
A22: f2.0 = 0. and
:for Nat sti len  holds (+1=f2iF(i);
    defpred P[Nat] means $1 <= len F implies f1.$1 = f2.$1;
A24:   set SWSumWi);
    proof
      let i be Nat;
      assume
A25:  P[i];
      thus P[i+A5: dom=dom W by ;
      proof
        assume i+1 <= len F;
        then
A26  then
        then f1.(i+1) = f1.i+F.(i+1) by A20;
        hence thesis by A23A6:+.iSWby A1L;
      end;
    end;
A27: P[0] by A19   < SL by NAT_D:35,OLYNOM3:18;
    for i being Nat holds P[i] from NAT_1:sch 2(A27,A24);
    hence thesis by A18,A21;
  end;
end;

theorem Th5:
  Sum(<*> ExtREAL) = 0.
proof
  reconsider F = <*> ExtREAL as FinSequence of ExtREAL;
  ex f being sequence of  ExtREAL st Sum F = f.(A7: card (Seg SL\Seg SL1) = card Seg SL-card Seg SL1
  for  -   by :java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
hence;
end;

theorem Th6:
  for  =lenFi  ,2,;
proof
  let a be R_eal;
  set F = <*a*>  SW1 <SWby :35,OLYNOM3:18;
  consider f being sequence of  ExtREAL such that
A1: Sum F = f.(len F) and
A2: f.0 = 0. and
A3 for i being Nat st <lenF holds f.i1)=fiF(i+1
  by Def2;
A4: f.(0+1) = f.0+F.(0+then
  Sum F = f.1 by A1,FINSEQ_1:39;
 then Sum  = .1byA2A4XXREAL_3:4
    .= a;
  hence thesis;
end;

Lm1: for F being FinSequence of ExtREAL, x being Element of ExtREAL holds Sum(
F^<*x*>) = Sum F + x
proof
  let F be FinSequence of ExtREAL, x be Element of ExtREAL;
  consider f being sequence of  ExtREAL such that
A1: Sum(F^<*x*>) = f.(len(F^<*x*>)) and
A2: f.0 = 0. and
A3: for A9 width Fi=W. by A1,5,ef4;
  ^<*x*>).(i+1) by Def2;
A4: len(F^<*x*>) = (len F)+(len <*x*>)   now
    .= (len F)+1 by FINSEQ_1:39;
  for i being Nat st i < lenA10:Indices FI= Indices Segm(,Seg SL\egSL1, \Seg  ,,
  proof
    let i be Nat;
A5: 1 <= i+1 by NAT_1:11;
    assume
A6: i < len F: =eg(.i  Fjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
ni= java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 33
    i+ inSeglen  byA5,INSEQ_11
    then
A7: i+1 in dom F by FINSEQ_1:def 3;
) byA4,6N:;
    then f.(i+1)=f.i+(F^<*x*>).(i+1) by A3;
    hence thesis by A7,FINSEQ_1:def 7;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  then
A8: Sum F = f.    j  dom FI by ,:7java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  len F < len(F^<*x*>) by A4,NAT_1:13;
  then f.((len F)+1)=f.(len F)+(F^<*x*>).((len F)+1) by A3;
  hence thesis by A1,A4,A8,FINSEQ_1:42;
end;

theorem
  for a,b being R_eal holds Sum<*a,b*> = a+b
proof
  let a,b be R_eal;
thus <a* = <a><b> FINSEQ_1d 9
    .= Sum<*a*> + b by Lm1
 bby Th6;
end;

Lm2: for F being FinSequence of ExtREAL st not -infty in rng F holds Sum F <>
-infty
proof
  defpred P[FinSequence of ExtREAL] means not -infty in rng $1 implies Sum $1
  <>
A1: for F being FinSequence of ;
  ] holds P[A6: len *idth *>=1b 39java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  proof
    let  beFinSequence ofExtREAL
    let x be Element of ExtREAL;
    assume
 P[F];
A3: Sum(F^<*x*>) = Sum F + x by Lm1;
    assume not -infty in rng(F^<*x*>);
    then
A4 inftyin   /rng <x>byFINSEQ_1:31;
    then not -infty in rng <*x*> by XBOOLE_0:def 3;
    then not -infty in {     dom <M>c dom MF by FINSEQ_1:;
    then x <> -infty by TARSKI:def 1;
    hence thesis by A2,A4,A3,XBOOLE_0:def 3,XXREAL_3:17;
  end;
A5: P[<*> ExtREAL] by Th5;
  thus for F being FinSequence of ExtREAL holds P[F] from   W=Width<M>^Width F by Th18java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  A1);
end;

theorem Th8:
  A11 W|=*width M* by A7,,FINSEQ_523;
  -infty in rng G holds Sum(F^G) = Sum(F)+Sum(G)
proof
  let F,G be FinSequence of ExtREAL;
    1-'1=0 232;
  $1) = Sum(F)+Sum($1);
  assume
   block_diagonalMF,S (|){,(egSum (W|)\}java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
A2: for H being FinSequenceby ,2A9A10,A8,h31
  ] holds P[H^<*x*>]
  proof
    let H be FinSequence of  .=Segm(( len M,eg width M)byA11,RVSUM_1:73;
    let x be Element of ExtREAL;
    assume
A3: P[H];
    thus P[H^<*x*>]
    proof
      assume not -infty in rng(H^<*x*>);
      then
A4:   not -infty in rng H \/ rng <*x*> by FINSEQ_1:31;
      then not -infty in rng H by XBOOLE_0:def 3;
      then
A5:SumH<>-infty by Lm2;
      not -infty in rng <*x*> by A4,XBOOLE_0:def 3;
      then not -infty in {x} by FINSEQ_1:38;
      then
  <> -nfty by TARSKI:def 1;
A7:   Sum F <> -infty by A1,Lm2;
      F^(H^<*x*>) = F^H^<*x*> by FINSEQ_1:32;
      hence java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
        .= Sum F + (Sum H + x) set FM=F^<M*;
        .= Sum F + Sum(H^<*x*>) by Lm1;
    end;
  end;
  assume
A8: not -infty in rng G;
9 P[*>ExtREAL]
  proof
    set H = <*> ExtREAL;
    assume not -infty in rng H;
    thus Sum(F^H) = Sum F by FINSEQ_1:34
      .= Sum F + Sum H by Th5,XXREAL_3:4;
  end;
  for   set 1F+len F
  A2);
  hence thesis by A8;
end;

Lm3: for n,q being Nat st q in Seg(n+1) ex p being Permutation of Seg(n+1) st
for i being Element of NAT st i in Seg(n+1) holds (i<q implies p.i=iA1:len FM= byFINSEQ_216java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
implies p.i=n+1) & (i>q implies p.i=i-1)
proof
  let n,q be Nat;
defpredRNat,et means (1qimplies $=1)&(1=implies 2java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
  n+1) & ($1>q implies $2=$1-1);
  assume
A1: q in Seg(n+1);
A2: for i being Natthen
  R[i,p]
  proof
    let i be Nat;
       assume i in Seg(n+);
    per cases by XXREAL_0:1;
    suppose
A3:   i<q;
      take i;
       i in NAT by ORDINAL1:def 12;
  1F in Seg (len F+1)by FINSEQ_1:4;
    end;
    suppose
A4:   i=q;
      take n+1;
      thus then
    end;
    suppose
A5:   i>q;
      1 <= q byA4:1 in dom FM by A1,FINSEQ_1:def 3;
      then reconsider p=i-1 as Element of NAT by A5,INT_1:A5:W= F^Width<M>byTh18;
      take p;
      thus thesis by A5;
    end;
  end;
consider p being FinSequence of NAT such that
A6: dom p = Seg(n+1) and
A7: for i being Nat st i in Seg(nthen
  RECDEF_1:sch 17(A2);
A8: for i being Element of NAT st i in Seg(n+1) holds i=q A6 W (enF)Width F by A5,INSEQ_5:23;
  proof
    let i be Element of NAT;
    assume
A9: i in Seg(n+1);
    hence i=q implies p/.i=n+1 by A7;
    thus p/.i=n+1 implies i=q
    proof
      assume
A10:  p/.i=n+1;
      per cases by XXREAL_0:1;
      suppose
        i=q;
        hence thesis;
      end;
      suppose
        i<q;
        then n+1<q by A7,A9,A10;
        hence thesis by A1,FINSEQ_1:1;
      nd
      suppose
        i>q;
        then i-1 = n+1 by A7,A9,A10;
        heni > n+1+1;
        then i > n+1 by NAT_1:13;
        hence thesis by A9,FINSEQ_1:1;
      end;
    end;
  end;
A11: for i being Element of NAT st i in Seg(n+1) holds (i<q implies p.i=i) &
  (i=  Len <>=<len M*>byTh15;
  proof
    let i be Element of NAT;
    assume
A12: i in Seg(n+1);
then p/i =i A6,:ef6
    hence thesis by A7,A12;
  end;
  for iA11:1=Mby FINSEQ_142
  proof
    let i being object;
    thus1F-'=F-1byNAT_D;
    proof
      assume i in rng p;
      then consider j being object such that
A13:  j in Seg(n+1) and
A14:  p.j = i by A6,java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 4
      reconsider j as Element of NAT by A13;
      per cases by XXREAL_0:1;
         
        j<q;
        hence thesis by A11,A13,A14;
      end;
      suppose
        j=q;
theni =n by ,A14
        hence thesis by FINSEQ_1:4;
      end set=**Ejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
suppose
A15:    j>q;
        then
A16:     =j by A11,13A14;
A17:    1 <= q by A1,FINSEQ_1:1;
        then reconsider i as Element of NAT by A15,A16,INT_1:    .= len M by Lm4;
        j <= n+1 by A13A2: width= Width**  Def5
        then i <= n by A16,XREAL_1:20;
            .= width by Lm5;
A18:    i <= n+1 by NAT_1:12;
        1 <   =<M*> byFINSEQ_134;
        then 1 <= i by NAT_1:13;
        hence thesis by A18,  hence M = Segm(B,Seg len M,Seg width 
      end;
    end;
thus in(n1  i inrngp
    proof
      assume
A19:  i in Seg(n+1);
      then reconsider i as Element of NAT;
      i <= n+1 by A19,FINSEQ_1:1;
      then
A20:  i = n+1 or i < n+1 by XXREAL_0:1;
       block_diagonal(F1^F2,d) = block_diagonal(<*block_diagonal(F1,d) *>^F2,d)
      suppose
        i < q;
        then p.i 
        hence thesis by A6,A19,FUNCT_1:3;
      end;
      suppose
A21:    q <= i & i <= n;
A22:    1 <  set D1block_diagonal(F1,d)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
        i+1 <=n+ by A21XREAL_1:6;
        then
A23:    i+1 in Seg(n+1) by A22,FINSEQ_1:1;
        q<i+ by A21,NAT_1:13;
        then p.(i+1) = i+1-1 by A11,A23
          .= i;
         by A6,A23,FUNCT_1:3;
      end;
      suppose
        i=n+1;
        thenpq =i  A1,;
        hence thesis by A1,A6,FUNCT_1:3;
      end;
    end;
  end;
  then
A24: rng p = Seg(n+1) by TARSKI:2;
  then
A25: p is Function of Seg(n+1),
A26: for i being Element of NAT st i in Seg(n+1) & p/.i<>n+1 holds i<q iff  set LF=enF12;
  .java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
  proof
    let i be Element of NAT;
    assume that
A27:iin (n+1) and
A28: p/.i<>n+1;
    thus   then
    thus p/.i<q implies i<q
    proof
      assume
A29:  p/.i<q;
      per cases by XXREAL_0:1;
      suppose
        i<q;
        hence thesis;
      end;
      suppose
        i=q;
        hence thesis by A7,A27,A28;
      end;
      suppose
A30:    i>q;
        then:Len<*1>lenD1by:
        then i-1+1 < q+1 by A29,XREAL_1:8;
hencethesis by
      end;
    end;

  for i1,i2 being    =Indices DF2  A2,A17A13,A9,18,INSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  holds i1 = i2
  A20:dom D12=eglen D12 by FINSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
let,i2 be object;
    assume that
A31: i1 in Seg(n+1) and
A32: i2 in Seg(n+1) and
A33:pi1= p.i2
    reconsider i1 as Element of NAT by A31;
A34: p/.i1 = p.i1 by A6,A31,PARTFUN1:def 6;
    reconsider  j in Seg  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 39
A35: p/.i2 = p.i2 by A6,A32,PARTFUN1:def 6;
    per cases;A23 <jby :;
    suppose
A36:  p/.i1 = n+1;
      then i1 = q by A8,java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 7
      hence thesis by A8,A32,A33,A34,A35,A36;
    endA24:i< Sum LF1  j<Sum ;
    tjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
:. <>+&p/.
      then i1<q by A26,A31;
      java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A38:  p/.i1=i1 by A7        then
      i2<q by A26,A32,A33,A34,A35,A37;
      hence A26:    [i,j] in Indicesby A25,ZFMISC_1:;
    end;
    suppose
A39:  p/.hence*,)=D1(i,)by 
      then
A40:  i1 <> q by A8,A31;
      i1 >         . DF2*i,)by A5,Th26;
      then i1 > q by A40,XXREAL_0:1;
      then
A41:  p/.i1=i1-1 by A7,A31;
A42:  i2 <> q by A8,A32,A33,A34,A35,A39;
      i2 >= q by A26,A32 
      then i2 > q by A42,XXREAL_0:1;
      then p/.i2=i2-1 by A7,A32;
      hence thesis by A6,A32,A33,A34,A41,PARTFUN1:def 6,XCMPLX_1:19;
    end;
 end;
  then p is one-to-one by A6,FUNCT_1:def 4;
  then reconsider p as Permutation of Seg(n+1) by A24,A25,FUNCT_2:57;
  take p;
  thus thesis by A11;
end;

: for n, being Nat,spbeing Permutation of Seg(n+1), s9 being
FinSequence of Seg(n+1) st s9=s & q=s.(n+1) & for i being          java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 79
in Seg(n+1) holds (i<q implies p.i=i) & (i=q java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 21
i=i- iii;
proof
   n, be Nat,spbePermutation of Seg(n+1), s9 be FinSequence of Seg(n+1
  );
  assume that
A1:s9s and
A2: q=s.(n+1) and
A3: for i being Element of NAT st i in Seg(n+1) holds (i<q        then
  ) & (i=q A32:    [ii,jjin IndicesD2by ,A,Th27java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A4:dom p = Seg(+1)byFUNCT_2:def 1;
  reconsider r=p*s9|n as FinSequence of Seg(n+1) by FINSEQ_2:32;
A5: 0+n <= 1+n by XREAL_1:6;
  then
A6: Seg n c= Seg(n+1) by FINSEQ_1:5java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 8
  s9|n = s9 | Seg 
  then
A7: s9|n is one-to-one by A1,FUNCT_1 hencethesis ,,A,A9,;
A8: rng p = Seg(n+1) by FUNCT_2end;
A9: dom s = Seg(n+tjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
   len =n1by ,FINSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  then len(s9|n   F12F1^F2;
  then len r = n by FINSEQ_2:33;
  then
A10: dom r = Seg n by FINSEQ_1:def 3;
A11: rng s = Seg(n+ java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 37
  then q in Segjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then
A12: q <= n+1 by FINSEQ_1:1;
 ng c=Seg(+) RELAT_1def 19;
  for i being object holds i in rng r iff i in Seg n
  proof
    let i being object;
    thus i in rng r implies i in Seg n
    proof
      assume
bbb:  i in rng r;
       then
A13:  j in Seg n and
A14:  r.j = i by A13:width D12=Sum WF1+Sum WF2 by A7,75java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
reconsider j as Element of NAT by A13;
A15:  j <= n by A13,FINSEQ_1:1;
      then
A16:: block_diagonal(<D2>d=D2 by Th34;
      then
A17:  i = p.(s.j) by A10,A13,A14,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 30
      s.j in dom p by A9,A11,A4,A6,A13,FUNCT_1:3;
      then p.(s.j) in rng p by FUNCT_1:3;
      then     .= Indices FD2A13A16,,A14,A3,FINSEQ_1:def 3;
A19:  n+1 in dom s  now
A20:  A18:dom =Seg len D12 by FINSEQ_1:def 3;
      then reconsider q1 = s.j as Element of NAT;
      j < n+1 by A15,NAT_1:13A19 i]java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      then
A21:  q1 <> q by A2,A9,A6,A13,A19,FUNCT_1:def 4;
      per cases by    then
      suppose
        q1 < q;
        then i < q by A3,A17,A20;
        then i < n+1 by A12,XXREAL_0:2;
        then
A22:    i <= n by NAT_1:13;
        1 <= i by bbb,aaa,FINSEQ_1:1;
        hence thesis by A22,FINSEQ_1:1;
      ;
      suppose
A23:    q1 > q;
A24:    q1java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        i = q1-1 by A3,A17,A20,
        then
,XREAL_120;
        1 <= i by bbb,aaa,FINSEQ_1:1;
        hence thesis by A25,FINSEQ_1:1;
      end;
    end
    assume
A26: i in Seg n;
    then reconsider java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    per cases;
    suppose
A27:  i < q;
      then
A28:  p.i = i by A3,A6,A26;
ing such
A29:  j in dom s and
A30:  i = s.j by A11,A6,A26,      
 n  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      then         hence D12*(i)   ,
      j <= n+1 by           .= FD2*(i,j) by A17,A19,A25,Th29;
      then j < n+1 by A2,A27,A30,
      then
         java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 79
      1
      then
A32:  j in dom r by A10,A31,A27:jj>0byA26java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  ,,FINSEQ_3112java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      then r.j = i         ii<>0 by A26;
      hence thesis by A32,FUNCT_1:3;
    end;
    suppose
:i>=q;
      i <= n by A26,FINSEQ_1:1;
      hence(,  D2(i,  A28AT
:  +1 :;
      1 <= i+1 by NAT_1:12;
      then
A35:  i+1 in Seg(n+1) by A34,FINSEQ_1:1;
        java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 44
A36:  j in dom s and
37  i+ = s. by ,UNCT_1def 
      j in Seg(n+1) byend;
      then reconsider j as Element of NAT;
A38:  j <= n+1
      j <> n+1inSeg Len &m=min(Len ,i  Lineb,java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
;
      then
A39:  j <= n ((Sum Width F- |)|djava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
      1 <= j by A36,FINSEQ_1:1;
      then
A40:  A1:iin Seg SumLen  andjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
      i+1 > q by A33,NAT_1:13;
           then
A41:  p.(i+1) = i+1-1 by A3,A35
        . i;
      (s9|n).j = s.j by A1,A39,FINSEQ_3:112;
      then r.j = p.(s.j) by A10,A40,FUNCT_1:12;
        by,,A40F3
    end;
  end;
  
A42: rng r = Seg n by TARSKI:2;
 then *s9n is    , Seg  by A10,UNCT_2:;
  hence thesis by A42,A7,FUNCT_2:57;
end;

Lm5:fornq  java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 66
  F=F^/m :;
rng H & for i being Element of NAT st i in Seg
= implies.in1)&(qimpliespii1  Sum F=H
proof
  let n,q be Nat, p be Permutation of Seg . block_diagonal(*BFm,F9m*>d by Th35java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
assume
A1: F=H*p and
A2: q in. Width<BFmBF9m> 
A3: len H = n+1 and
A4: not -    .= width B BF9m 
A5: for i being     =Sum(Width|)width  by Def5;
  ) & (i=q implies p.i=n+1) & (i>q implies p.i=i-1);
A6: 1 <= q by A2,java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 6
  then qA6:SumF'  |  W F|)+idth BF9m)Sum(Width
  then
A7: q-'1 = q-1 by XREAL_0:def 2;
  set H1 = H|n;
A8. BF9m
  reconsider p9 = p as FinSequence of  |m')iAT;
  dom p = Seg(n+1  then
  then
A9: len p9 = n+1 by FINSEQ_1:def A7: i-Sum(L| (m-'1))=i-'Sum(L| (m-'1)) by XREAL_1:;
A10: q <= n+1 by A2,FINSEQ_1:1;
  then
A11: q-'1 <= n+1-1 by A7,XREAL_1:9;
A12: dom H = Seg(n+1) by A3,FINSEQ_1  then m-1=java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 31
  then H is Function of Seg(n+1), ExtREAL by FINSEQ_2:26;
  
A13: len F = n+1 by A1,A9,FINSEQ_2:33;
  then
A14: len(F/^q) = n+1-q by A10A10:Seg(m')java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 39
A15: n <= n+1 by NAT_1:F)m)|-  java.lang.StringIndexOutOfBoundsException: Range [43, 40) out of bounds for length 44
  then
A16: len(F|(q-'1)) = q-'1 byA16: len(F|(q-'1)) = q-'1 by 
A17: dom F = Seg(n+1) by A13,FINSEQ_1:def 3;
A18: for i being Nat st 1 <= i & i <= q-A12L= m)*Lmm>A955java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  proof
    let i be Nat (|)=Sum(|(m-')+. byA12,A3,VSUM_1java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    assume that
A19:1<= i and
A20: i <= q-'1;
A21 then (.)+Sum(|(m-'))=i-Sum|(-') m-))  A1,java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
A22: H1.i = H.then
A23: (H1|(q-'1)).i = H1.i by A20,FINSEQ_3:112;
A24: i < q-'1+|m')<> by A1,A2,Th7java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
     < n by A11,A20,XREAL_0:2;
    then i <= n+1 by A15,XXREAL_0java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 6
    then
egn+) by ,1java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
     .  .(p.)byA1,17FUNCT_1:12;
    hence thesis by A5,A7,A21,A23,A22,A25,A24;
  end;
  0+n <= 1+n by XREAL_1:6;
  then
A26: len H1 = n by A3,FINSEQ_1:59 . um(WidthF  m-1)byTh21
  then
A27: len(H1|(q-'1)) = q-'1 by A11,FINSEQ_1: i<LmbyAjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
 len(/^q') = n-(-1)byA7,A11A26,:def 1java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  for i being Nat st 1 <= i & i <= n+1-q holds (F/^q).i=(H1/^(q-'1)).i
  proof
    reconsider n1 = n+1-q as Element of NAT by A10,INT_1:5;
    let i be Nat;
    assume that
A29: 1 <= i and
A30: i <= n+1-q;
A31: i+q <= n+1 by A30,XREAL_1:19;
A32: i in Seg n1 by A29,A30,FINSEQ_1:1;
    then i in dom(H1/^(q-'1)) by A28,FINSEQ_1:def 3;
    then
A33: (H1/^(q-'1)).i = H1.(i+(q-'1)) by A11,A26,RFINSEQ:def 1;
    i+(q-'1) = i+q-1 by A7;
    then i+(q-'1) <= n by A31,XREAL_1:20;
    then
A34: (H1/^(q-'1)).i = H.(i+q-1) by A7,A33,FINSEQ_3:112;
A35: 1 <= i+q by A29,NAT_1:12;
    then i+q in dom F by A17,A31,FINSEQ_1:1;
    then
A36: F.(i+q) = H.(p.(i+q)) by A1,FUNCT_1:12;
    dom(F/^q) = Seg n1 by A14,FINSEQ_1:def 3;
    then
A37: (F/^q).i = F.(i+q) by A10,A13,A32,RFINSEQ:def 1;
    i+q >= 1+q by A29,XREAL_1:6;
    then
A38: i+q>q by NAT_1:13;
    i+q in Seg(n+1) by A31,A35,FINSEQ_1:1;
    hence thesis by A5,A37,A34,A36,A38;
  end;
  then
A39: F/^q = H1/^(q-'1) by A14,A28,FINSEQ_1:14;
A40: F = (F|(q-'1))^<*F.q*>^(F/^q) by A6,A10,A13,FINSEQ_5:84;
  then
A41: rng F = rng((F|(q-'1))^<*F.q*>) \/ rng(F/^q) by FINSEQ_1:31;
  p.q = n+1 by A2,A5;
  then
A42: F.q = H.(n+1) by A1,A2,A17,FUNCT_1:12;
A43: H1 = H | Seg n by FINSEQ_1:def 16;
  then rng H1 c= rng H by RELAT_1:70;
  then not -infty in rng H1 by A4;
  then
A44: not -infty in rng(H1|(q-'1)) \/ rng(H1/^(q-'1)) by A8,FINSEQ_1:31;
  then
A45: not -infty in rng(H1|(q-'1)) by XBOOLE_0:def 3;
A46: not -infty in rng F by A1,A4,FUNCT_1:14;
  then
A47: not -infty in rng((F|(q-'1))^<*F.q*>) by A41,XBOOLE_0:def 3;
  then
A48: not -infty in rng(F|(q-'1)) \/ rng<*F.q*> by FINSEQ_1:31;
  then not -infty in rng(F|(q-'1)) by XBOOLE_0:def 3;
  then
A49: Sum(F|(q-'1)) <> -infty by Lm2;
  not -infty in rng<*F.q*> by A48,XBOOLE_0:def 3;
  then not -infty in {F.q} by FINSEQ_1:39;
  then
A50: -infty <> F.q by java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 6
A51: not -infty in rng(F/^q  A41,java.lang.StringIndexOutOfBoundsException: Range [52, 48) out of bounds for length 55
  then
A52: Sum(F/^q) <> -infty by Lm2;
A53:   then m <= len Fby A8,FINSEQ_3:25;
  H|(n+1) = H by A3,FINSEQ_1:58;
  then
A54: H = H1^<*H.(n+1)*> by A12,A43,A53,FINSEQ_1:4,FINSEQ_5:10;
A55:    Fm)mby:59;
  thus Sum F = Sum((F|(q-'1))^<*F.q*>) + Sum(F/^q) by A40,A47,A51,Th8
    .= Sum(F|(q-'1)) + F.q + Sum(F/^q) by Lm1
    .= Sum(F|(q-'1)) + Sum(F/^q) +  then
    .= Sum(H1|(q-'1)) + Sum(H1/^(q-'1)) + H.(n+1) by A16,A27,A18,A42,A39,
FINSEQ_1:14
    .= Sum H1 + H.(n+1) by A8,A45,A55,Th8
    .=Sum Hby Ljava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4

theorem
  for F,G being FinSequence of ExtREAL, s being Permutation of dom F  (L|(-'1)+(-(| (m-'1)))by A14,A16,A19,Th23
  st G = F*s & not -infty in rng F    =Line(BFm,i)by A7
proof
  let F,G be FinSequence of ExtREAL, s be Permutation of dom   Line(BFm,)=(Sum( F(-'1) |>)^ (.m,i'um ( m'))
  defpred P[Nat] means
   ;
    st len F = $1 & G = F*s & not  byA6A,h17java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    holds Sum F = Sum G;
A1: P[0]
  proof
    let F,G java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    assume that
 lenF 0 and
A3: G = F*s;
    F = <*> ExtREAL by A2;
hence by java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  end;
A4: (Sum Len -S Len |m) |>)
  proof
    let n be java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
    assume
A5: P[n];
    thus P[A1: i in Seg Width F and
    proof
      let F,G be FinSequence of ExtREAL, s be Permutation of Seg(n+1);
      assume that
A6:   len F = n+1 and
A7:   G = F*s and
A8:not-infty  rng F;
      reconsider s9=s as FinSequence of Seg(n+1) by FINSEQ_2:25;
A9:   rng s = Seg(n+1) by FUNCT_2:def 3;
Seg(n+1) byFUNCT_2:1
      then n+1 in dom s by FINSEQ_1:4;
      
A11:  s.(n+1) in Seg(n+1) by A9,FUNCT_1:def 3;
      then  set BFm=block_diagonal(|m,);
      consider p being Permutation of Seg(n+1) such that
A12:  for i being Element of NAT st i in Seg(n+1) holds (i<  = Sum (|)by 
      p.i=i) & (i=q implies p.i=n+1) & (i>q     .=Sum (W|m)by Th21;
      reconsider p2 = p" as FinSequence of Seg(n+1) by FINSEQ_2:25;
A13:  dom p = Seg(n+1) by FUNCT_2:def 1;
      p.q = n+1 by A11,A12;
      then
  .(.(n+)  (.n1) byA11FUNCT_1:;
A15:  0+n <= 1+n by XREAL_1:6;
      then
A16:  Seg n c= Seg(n+1) by FINSEQ_1:5;
A17:  dom F =  then Sum L =lenblock_diagonal(*BF9m*,d) by  Def5
      then
A18  F   Seg(+1) by 26
      then reconsider H = F*p2 as FinSequence of ExtREAL by FINSEQ_2:32;
A19 .  |)lenBF9m by ;
        .= F*(id Seg(n+1)) by A13,FUNCT_1:39
        .= F by A17,RELAT_1:52;
      len s9 = n+1 by A10,FINSEQ_1:def 3;
      then
A20:  len G = n+1 by A7,A18,FINSEQ_2:33;
      then
A21:  dom G = Seg(n+1) by FINSEQ_1:def 3;
      then
A22:  G.(n+1) = F.(s.(n+1)) by java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 20
      reconsider p1 = p*s9|n Sum(W| (m-'1))<i by A1,A2,Th7
A23:  dom p1 = Seg n by FUNCT_2:def 1;
      reconsider p19 = p1 as FinSequence of Seg n by FINSEQ_2:25;
A24:  not -infty in rng H by A8,FUNCT_1:14;
bbb:  dom p2 = rng p by FUNCT_1:33;
      then dom p2 = Seg(n+1) by FUNCT_2:def 3;
      then len p2 = n+1 by FINSEQ_1:def 3;  
      then
: n+1 y,:
      then
A26:  dom H = Seg(n+1) by FINSEQ_1:def 3;
A27:  len(H|n) = n by A25,A15,FINSEQ_1:59;
A28:  G|n = (H|n)*p1
      proof
        dom(H|n) = Seg n by A27,FINSEQ_1:def 3;
        then
A29:    H|n is Function of  then  =m by :;
        then reconsider H1 = (H|n)*p19 as FinSequence of ExtREAL
        by FINSEQ_2:32;
        n in NAT by ORDINAL1:def 12;
        then len p19 = n bym-1m  :233;
        then
A30:    len H1 = n by A29,FINSEQ_2:33;
A31:    for i being Nat st 1 <= i & i <= n holds (G|A9 mm-11
        
          let i be Nat;
          assume that
A32:      < i java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A33:      i <= n:Fm  m'1)F m')byRELAT_1:74
A34:      i in Seg n by A32,A33,FINSEQ_1:1;
          then
A35:      s.i in rng s by A10,A16,FUNCT_1:3;
          i in dom H1 by A30,A34,FINSEQ_1:def 3;

A36:      ((H|n)*p1).i = (H|n).(p1.i)   ) java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 45
          p1=Seg n FUNCT_2:def ;
          then
A37:      p1.i     (|(-'1)+(.) Def4
          then reconsider a = p1.i as Element of NAT;
          a <= n by A37,FINSEQ_1:1;
          hen
A38:      ((H|n)*p1).i = H.(p1.i) by A36,FINSEQ_3:112;
          (s9|n).i = s.i by A33,FINSEQ_3:112;
          
A39:      p1.i = pi-(W| m')<0byA1,h7;
A40:      (G|n).i = G.i by A33,FINSEQ_3:112;
 iSum( m-'1)>1 ,NAT_114;
          s.i = (p").(p.(s.i)) by A9  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
          then F.(s.i) = (F*p2).(p   BFm1F|m')d)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
          hence thesis by A7,A21,A16,A38,A39,A40,A34,FUNCT_1:12;
        end;
        len(G|n) = n by A20,A15,FINSEQ_1:59;
        hence  by A30,FINSEQ_1:14;
      end;
      G|n = G | Seg n by FINSEQ_1:def 16;
      then G = (G|n)^<*G.(n+1)*> by A20,FINSEQ_3:55;
      then
A41:  Sum G = Sum(G|n)+G.(n+1) by Lm1  i< Sum(|  A1A2Def1;
A42:  H|n = H | Seg n by FINSEQ_1:def 16;
      then H = (H|n)^<*H.(n+1)* then  inSeg  BFm by ,A4
      then
A43:  Sum HA18 (java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 71
      rng(H|n) c= rng H by A42,java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 22
      then not -infty in rng (H  then  <= len  byA8,:25;
      then
A44:  Sum(G|n) = Sum(H|n) by A5,A27,A28;
      .(1  F((+1)by ,:,:;
      hence thesis by A11,A12,A25,A44,A14,A22,A41,A43,A24,A19,Lm5;
    nd
  end;
A45  
  proof
    let ,   ExtREAL  be   ;
    assume that
A46: len F = 1 and
A47: G = F*s;
    reconsider s1 = s as FinSequence of Seg 1 by FINSEQ_2:25;
    dom s = Seg 1 by FUNCT_2:def 1;
    then
A48: len s1 = 1 by FINSEQ_1:def 3;
    dom F = Seg 1 by A46,FINSEQ_1:def 3;
    then F is Function of Seg 1, ExtREAL by FINSEQ_2:26;
    then len G = 1 by A47,A48,FINSEQ_2:33;
    then
A49: G = <*G.len BFm1 = Sum Len F|(-1)by 
then   Gjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    then G.1 in rng G by TARSKI:def 1;
    then
hencebyA6,A18,java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
A51: F = <*F.1*> by A46,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
    then rng F = {F.1} by FINSEQ_1:39;
    hencethesisbyA51A49,A50,ARSKI:ef 1;
  end;
A52: for n being non zero Nat holds P[n] from NAT_1:sch 10(A45,A4);
A53: len F = 0 or len F <> 0;
  dom FlenM2N2  M2= N2&block_diagonal(*1M2,)=
  hence thesis by A1,A52,A53;
end;

reserve x,y,w,z for ExtReal,
  a for Real;

begin :: Basic properties of absolute value for extended real numbers

theorem Th1:
  x aimplies|x|= . qua|
proof
  assume
A1: x = a;
  reconsiderlenM2 java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  per cases;
  suppose
 0 <= x;
    then |.x.| = a by A1,Def1;
    hence by : 1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  setF1<M1*>;
  suppose
A2: not 0 <= x;
    then |x.|  x by 
      .= -a by A1,SUPINF_2:2;
    hence thesis   F1  *> 
  end;
end;

theorem
  |   <N2*>;

theorem
  0 <= |.x.|
 proof  block_diagonal,)SeglenM1  java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
  reconsider x as R_eal by XXREAL_0:def 1;
  0 <= |.x.|;
 = 
 end;

theorem Th4:
  x <> 0 implies 0 < |.x.|
proof
  assume
  0
  per cases;
 
    0 <= x;
    hence byDef1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  
  java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
A2: not 0 <= x;
    then 0 < -x;
    hence thesis by A2,Def1 java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 29
    =java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 34
end;

theorem
  x = =block_diagonalMM,d)

theorem
  |.x.| = -x & x <> 0   set BMF=block_diagonal(MM^Fd);
 proof
  reconsider x as R_eal by XXREAL_0:def 1;
  0 <= |.x.|;
 hence thesis;
 end;

theorem Th7:
  x <= 0 implies |.x.| = -x
proof
  assume
A1: x <= 0;
  per cases by A1;
  suppose
    x < 0;
hencethesis by Def1;
  end;
  suppose
A2: xA6:SumLen 0byLm4
    then -0 = -x;
    hencethesis by Def1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  end;
end;

theorem
  |.x * y.| = |.x.| * |.y.|
proof
  reconsider x,y as R_eal by XXREAL_0:def 1;
  per cases;
  suppose
    x = 0;
    then |.x.| = 0 & |.x * y.| = 0 by Def1;
    hence thesis;
  end;
  suppose
A1: 0 < x;
      per cases;
      suppose
        y = 0;
        then |.y.| = 0 & |.x * y.| = 0 by Def1;
        hence thesis;
      end;
      suppose
     0<y;
        then
:|y|= java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 26
        |.x.| = x by A1,Def1:len bf +len MA9A3,7;
        hence thesis by A2,Def1;
      nd
      suppose
A3:     y < 0;
        then
A4:     |.y.| = -y by Def1;
        A13:len bMFlen +  A12,9,A3
        then |.x.| * |.y.| = -(x * y) by A4,XXREAL_3:92;
        hence thesis by A1,A3,Def1;
      end;
  end;
  suppose
A5: x < 0;
      per cases;
      suppose
        y = 0;
        then |.y.| = 0 & |.x * y.| = 0 by Def1;
        hence thesis;
      end;
      suppose
A6:     0 < y;
        then |.y.| = y by Def1;
        then
A7:     |.x.| * |.y.| = (-x) * y by A5,Def1;
        |.x * y.| = -(x * y) by A5,A6,Def1;
        hence thesis by A7,XXREAL_3:92;
      end;
      suppose
     y < 0;
        then |.y.| = -y by Def1;
        then |.x.| * |.y.| = (-x) * (-y) by A5,Def1;
        then |.x.| * |.y.| = -(x * (-y)) by XXREAL_3:92
          .= -(-(x byA1FINSEQ_1: 3
        hence thesis by Def1;
      end;
  end;
endconsider  such 

theorem Th9:
  -|.x.| <= x & x <= |.x.|
proof
  reconsider x as R_eal by XXREAL_0:def 1;
  per cases;
A5:len =m by A11FINSEQ_3:104;
A1: 0 <= x;
    thus thesis by A1,Def1;
  end;
suppose
 not 0 <= x;
    then |.x.|=-x by Def1;
    hence thesis;
  ;
end;

theorem Th10:
  |.x.| < y implies -y < x & x < y
proof
  assume
A1: |.x.| < y;
  reconsider x,y as R_eal by XXREAL_0:def 1;
A2: |.x.| < y by A1;
  per cases;
  suppose 0 <= x;
    hence thesis by A2,Def1;
  end;
  suppose
A3: not 0 <= x;
    then |.x.|=-x by Def1;
    hence thesis by A1,A3,XXREAL_3:60;
  end;
end;

theorem Th11:
  -y A15:Seg(m+ bGc= Seglen 5
proof
   that
A1: -y < x and
A2: x < yreconsider A9A  oflen, AKby 51;
  per cases;
  suppose
    0 <= x;
    hence thesis by A2,Def1;
  end;
  suppose
A3: not 0 <= x;
    -x < y by A1,XXREAL_3:60;
    hence thesis by A3,Def1;
  end;
end;

theorem Th12:
  -y <= x & x <= y iff |.x.| <= y
proof
A1: -y <= x & x <= y implies |.x.| <= y
  proof
    assume that
A2: -y <= x and
A3: x <= y;
    per cases;
    suppose     jin Seg (+bG A;
      0 <= x;
      hence thesis by A3,Def1;
    end;
    suppose
A4:   not 0 <= x;
      -    +<len bAG byA12A17,REAL_1:7;
      hence thesis by A4,Def1;
    end;
  A20: j in ;
  |.x.| <= y implies -y <= x & x <= y
  proof
    assume
A5: |.x.|      
    per <;
    suppose
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 16
      hence thesis by Th9;
    A27:   (A9j  :
    suppose
      |.x.| < y;
      hence thesis by Th10;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  hence thesis by A1;
end;

Th13java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
  |.x + y.|          =bdAGj java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
proof
A1: -|.x.| <= x & -|.y.| <= y by Th9;
A2: x <= |.x.| & y <= |.y.| java.lang.StringIndexOutOfBoundsException: Range [28, 30) out of bounds for length 20
A3:     -|.x.|-|.y.| = -(|.x.|+|.y.|) by XXREAL_3:25;
  x + y <= |.x.| + |.y.|A30:<len A;
  hence thesis by A3,Th12;
end;

theorem Th14:
  -infty < x & x < +infty & x <> 0 implies |.x.|*|. 1. / x .| = 1.
proof
  assume that
A1: -infty < x & x < +infty andA32        j<mby ,A30,XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A2: x <> 0;
  reconsider a = x as Element of REAL by A1,XXREAL_0:14;
A3: 1./x = 1/a by Th2;
  per cases;
    = ;
    then |.x.| = a             j1 in  len A ,
    then|x|*|. 1/x | = *()by XXREAL_3:def5
    hence thesis by A2,XCMPLX_1:106;
  end;
  suppose
A4: not              =Lineda) byA5,MATRIX_0:52;
    then
A5: |.x.| = -x by Def1
      .= -a by SUPINF_2:2;
    1./x < 0 by A3,A4;
    then |. 1./x .| = -(1./x) by Def1
    .= -(1/a) by A3,SUPINF_2:2;
    then |.x.|*|. 1./x .| = (-a) * (-(1/a)) by A5,XXREAL_3:def 5
      .= a * (1/a);
    hence thesis by A4,XCMPLX_1:106;
  end;
end;

theorem
  x = +infty or x = -infty implies |.x.|*|. 1./x .| = 0
proof
  assume x = +infty or x = -infty;
  then |. 1./x .| = 0 by Def1;
  hence thesis;
end;

theorem
  x <> 0 implies |. 1./x .| = 1./|.x.|
proof
  assume
A1: x <> 0;
  per cases;
  suppose
A2: x = +infty;
    then |. 1./x .| = 0 by Def1;
    hence thesis by A2,Def1;
  end;
  suppose
    x = -infty;
    then |. 1./x .| = 0 & |.x.| = +infty by Def1,XXREAL_3:5;
    hence thesis;
  end;
  suppose
A3: x <> +infty & x <> -infty;
A4: 0 < |.x.| by A1,Th4;
A5: x < +infty by A3,XXREAL_0:4;

    then
A6: -infty < x by A3,XXREAL_0:1;
    then -(+infty) < x by XXREAL_3:def 3;
    then
A7: |end
    |. 1./x .|*|.x.| = 1. by A1,A6,A5,Th14;
    hence byA4,A7XXREAL_3:;
  end;
end;

theorem
  not((x=-infty or x=+infty) & (y=-infty or java.lang.StringIndexOutOfBoundsException: Range [44, 30) out of bounds for length 30
  x/y.| = |.x.|/|.y.|
proof
  assume that
A1 not(x=-infty or x=+infty) & y=-nfty or =infty) 
A2: y<>0;
  reconsider y R_eal by XXREAL_0:def 1;
  per cases;
  suppose
A3: x = +infty;
A4: -infty < y by A1,A3,XXREAL_0:12,14;
      per cases by A2;
      suppose
A5:     0 < y;
        then x / y = +infty by A3,A1,XXREAL_3:83;
        then
A6:     |.x/y.| = +infty by Def1;
        |.y.| = y by A5,Def1;
        hence thesis by A3,A1,A5,A6,XXREAL_3:83;
      end;
      suppose
A7:     y < 0;
        then |.y.| = -java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 13
        
A8:    |.y.| < +infty by A4,XXREAL_3:5,38;
        x / y = -infty by A3,A1,A7,XXREAL_3:85;
        then |.x/y.| = +infty by Def1,XXREAL_3:5;
        hence thesis by A8,A2,A3,Th4,XXREAL_3:83;
      end;
  end;
  suppose
A9: x = -infty;
A10:
      per cases by A2;
      suppose
A11:    0 < y;
        then
   A9A1X86
A13:    |.x.| =setBG=<bG>java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
        |.y.| = y A6: Seg len bGA=dom:def3;
        hence thesis by A9,A1,A11,A12,A7  bGdASum Len BG^A by java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
      end;
      suppose
      ;
        then |.y.| = -y by Def1;
        then
A15:    |.y.| < +infty by A10,A10 lenb=SumLen (BGAA by ;
A16:    x / y = +infty by A9,A1,A14,XXREAL_3:84;
        0 < |.y.| & |.x.| = +infty by
        hence thesis by A15,A16,XXREAL_3:83;
      ;
  end;
  suppose
    x <> +infty & x <> -infty;
    then reconsider a  x Elementof XXREAL_014;
      per cases;
      suppose
        y = +infty;
        then |.xy| = 0&..|=+by;
        ;
      end;
      suppose
        y = -infty;
         |./.  0  .|=+ Def15
        hence thesis;
      end;
      suppose
        y <> +infty & y <> -infty;
        then reconsider b = y as Element of REAL by XXREAL_0:14;
A1  mbGA17
        then
17    |x.y.  .qua Complex||b qua.|by ;
        x/y = a/b by Th2;
        then |.x/y.| = |.a/b qua Complex.| by Th1;
        hence thesis by A17,COMPLEX1:67;
      end;
  end;
end;

theorem Th18:
  |.x.| = |.-x.|
proof
  reconsider x as R_eal by XXREAL_0:def 1;
java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
  suppose 0 < x;
    then |.-x.|=-- Def1
      .= x;
    hence thesis;
  end;
  suppose x < . Line(GdA,j)by Th23
    then |.x.|           =bGdA.by ,,,,java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 49
    hence thesis;
  end;
  suppose x = 0;
    hence thesis;
  end;
end;

theorem Th19:
  |.+inftythen
proof
  thus |.+infty.| = +infty by Def1;
  --infty = +infty by XXREAL_3:23;
  hence thesis by Def1;
end;

theorem Th20:
    Realoryis Real..|-|.y|< java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
proof
  assume
 isReal;
  reconsider x,y as R_eal by XXREAL_0:def 1;
  per cases by A1;
  suppose y is Real;
    then (x - y) + y = x by XXREAL_3:22;
    then |.x.| <= |.x-y.| + |.y.| by Th13;
   hence thesis by XXREAL_3:42;
  end;
  suppose
    x is Real;
    then reconsider a = x as Real;
A2:|x.  ..;
      per cases;
      
A3:      y = +infty or y = -infty;
         |.y.| = +infty by Th19,A3;
         then |.x.| - |.y.| = -infty by A2,XXREAL_3:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 51
         then |.x.|-|.y.| <= |.x-y.|;
        hence thesis;
      end;
      suppose
        y <> +infty & y <> -infty;
        then reconsider b = y as Element of REAL by XXREAL_0:14;
        x - y = a - b by SUPINF_2:3;
        then
A4:     |.x-y.| = |.a-b qua Complex.| by Th1;
        |.y.| = |.b qua Complex.| by Th1;
        then |.x.|-|.y.| = |.a qua Complex.|-|.b qua Complex.|
           by A2,SUPINF_2:3;
        hence thesis by A4,COMPLEX1:59;
      end;
    end;
end;

theorem
   |.x-y.| <= |.x.| + |.y.|
proof
  reconsider x,y as R_eal by XXREAL_0:def 1;
  per cases;
  suppose x = +infty or x = -infty;
    then |.x.| + |.y.| = +infty by Th19,XXREAL_3:def 2;
   hence thesis by XXREAL_0:3;
  end;
  suppose
A1: x <> +infty & x <> -infty;
    then reconsider a = x as Element of REAL by XXREAL_0:14;
      per cases;
      suppose
A2:     y = +infty;
        x - y = -infty by A1,A2,XXREAL_3:13;
        hence thesis by A2,Th19,XXREAL_3:def 2;
      end;
      suppose
A3:    y = -infty;
        x - y = +infty by A1,A3,XXREAL_3:14;
        hence thesis by A3,Th19,XXREAL_3:def 2;
      end;
      suppose
        y <> +infty & y <> -infty;
        then reconsider b = y as Element of REAL by XXREAL_0:        >iby:8;
        |.x.|=|.a qua Complex.| & |.y.|=|.b qua Complex.| by Th1;
        then
    ..||y||a | |S:1
        x - y = a - b by SUPINF_2:3;
        then |.x-y.| = |.a-b qua Complex.| by Th1;
        hence thesis by A4,COMPLEX1:57;
      end;
    end;
end;

::$CT

theorem
  |.x.| <= z & |.y.| <= w implies |.x+y.| <. (widthbG|>a^(da  A40Th23
java.lang.StringIndexOutOfBoundsException: Range [14, 3) out of bounds for length 50
  assume
A1: |.x.| <= z & |.y.| <= w;
   <=y  ;
  then
-w<   XXREAL_3:36;
  x <= z & y <= w by A1,Th12;
  then
A3endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  -z -w = -(z + w) by XXREAL_3:java.lang.StringIndexOutOfBoundsException: Range [31, 6) out of bounds for length 6
  hence thesis A42: block_diagonGAA,a= by Th35;
end;len DelbGA,i=mlen   A9A11,A12,A3,,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 72

theorem;
  x is Real or y
proof
A1: |.y.|-|.x.| = -(|.x.|-|.y.|) by XXREAL_3:26;
  assume
A2:
  then
A3: |.x.|-|.y.| <= |.x-y.| by Th20;
  y - x = -(x - y) by XXREAL_3:26;
  then
:|.  |xy.|by java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 36
  then -|.x-y.| <= -(-(|.x.|-|.y.|)) by A4,A1,XXREAL_3:38;
  hence thesis by A3s block_diagonal<bG*>,a;
end;

theorem
  .x.|y
proof
  assume
A1: 0 <= x * y;
  cases
  suppose (0 <= x or 0 < x) & (
    :lenBDG=Dalen bG Th16;
    hence thesis by Def1 java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  end;
  suppose
: x<=0 orx< )  y<=0or  )
    then
A3: |.x+y.| = -(x + y) by Th7
      .= -x -y by XXREAL_3:25;
    |.x.| = -x by A2,Th7;
    hence thesis by A2,A3,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 8
  end;
end;

begin

theorem
  x <> +infty & y <> +infty & not ( x = +infty & y = +infty or x =
  -infty & y = -infty ) implies min(x,y) = (x + y - |.x - y.|) / 2
proof
  assume that
A1: x <> +infty and
A2: y <> +infty and
:(x=+java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 63
  per cases;
  suppose
A4: x = -infty;
       =-infty  x   -by A2A3
then
A5: x + y - |.x - y.| = -infty by XXREAL_3:
A6: min(x,y) = -.= (width Da^(,L  A1,A20,h4
    thus thesis by A6,A5,XXREAL_3:86;
  end;
  suppose
    x <> -infty;
    then reconsider a = x as Element of REAL by A1,XXREAL_0:14;
       ;
      suppose
A7:     y = -infty;
        then x + y = -infty & x - y = +infty by A1,A3,XXREAL_3:14 hence (BAGi.=. by,def13java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
        then
A8      y  .-y|=- ;
A9:    min(x,y) = -infty by A7AAGa=  
          hence thes   A,A,A6,Th16,14
      end;
      suppose
        y <> -infty;
        then reconsider b = y as Element of REAL by A2,XXREAL_0:14;
        x - y = a - b by SUPINF_2:3;
        then x + y = a + b & |.x - y.| = |.a-b.| by SUPINF_2:1;
        then
A10:    x + y - |.x - y.A:  Seg Ajava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        (x + y - |.x - y.|) / 2 = (a+b-|.a-b qua  set DelCol(A,)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        hence thesis by COMPLEX1:73;
      end;
  end;
end;


  x <> -infty & y <> -infty A2: len Da=len A java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 36
  -infty & y = -infty ) implies max(x,y) = (x + y + |.x - y.|) / 2
proof
  assume that
A1: x <> -infty and
A2: y <> -infty and
A3: not ( x = +infty & y = java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 suppose
A4: x = +infty;
    then x + y = +infty & x - y = +infty by A2,A3,XXREAL_3:13,def 2;
    then
A5: x + y + |.x - y.| = +infty by XXREAL_3:def 2;
A6: max(x,y) = +infty by A4,XXREAL_0:41;
    thus thesis by A6,A5,XXREAL_3:83;
  end;
  suppose
        letj
    then reconsider aA11: 1= 
      per cases;
      suppose
A7:     y = +infty;
        then x + y = +infty & x - y = -infty by A1,A3,XXREAL_3:13,def 2;
        then
A8:     x + y + |.x - y.| = +infty by XXREAL_3:def 2;
A9:    max(x,y) = +infty by A7,XXREAL_0:41;
        thus thesis by A9,A8,XXREAL_3:83;
      end;
      suppose
        y <> +  (jjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 47
        then reconsider b = y as Element of REAL by A2,XXREAL_0DelLine(GA,),)= LinebG,)Del A->i byA1,9A14,java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
   =   by
        then x + y = a + b & |.x - y.| java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 21
        then
A10:    x + y +java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        (x + y +thus
        hence thesis  ;
      end;
  end;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

definition
  let x,y be R_eal;
  redefine func max(x,y) -> R_eal;
  coherence by XXREAL_0:def 1;
  redefine func min(x,y) -> R_eal;
  coherence by XXREAL_0:def 1;
end;

theorem
  min(x,y) + max(x,y)= x + y
proof
  per cases;
  suppose
A1: x <= y;
    then min(x,y) = x by XXREAL_0:def 9;
    hence thesis by A1,XXREAL_0:def 10;
  end;
  suppose
A2: not x <= y;
    then min(x,y) = y by XXREAL_0:def 9;
    hence thesis by A2,XXREAL_0:def 10;
  end;
end;

begin ::Addenda
:: missing, 2007.07.20, A.T.

theorem A1: F is Squa is SquareMatrix-yielding;
  |.x.| = +java.lang.StringIndexOutOfBoundsException: Range [10, 16) out of bounds for length 10
proof
A1: |.x.| = x or -|.x.| = --x by Def1;
  assume |.x.| = +infty;
  hence thesis by A1,XXREAL_3:5;
end;

theorem
  |.x.| < +infty iff x in REAL by Th19,Th28,XXREAL_0:4,14;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland