SSL matrix10.miz
Sprache: Mizar
|
|
:: Some Special Matrices of Real Elements and Their Properties
:: by Xiquan Liang , Fuguo Ge and Xiaopeng Yue
::
:: Received October 19, 2006
:: Copyright (c) 2006-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
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
ARYTM_3
FUNCOP_1, ij
FUNCT_7;
notations
FUNCT_7, NUMBERS, A4 ij Indices(*;
RLVECT_1, VECTSP_1, STRUCT_0, MATRIX_3, GROUP_1, MATRIX_1;
constructors XXREAL_0, REAL_1, BINOP_2, MEMBERED, COMPLEX1, MATRIX_3,
then M*(i,j< ,;
registrations RELSET_1, NUMBERS, XREAL_0, NAT_1, MEMBERED, VECTSP_1, ORDINAL1
requirements NUMERALS, hence thesis by A3,A4,Th4;
equalities MATRIX_0, MATRIXR1;
theorems java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for le ngth 6
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
schemes MATRIX_0
begin
reserve a,b M isNonnegativeimplies - is Nonpositive
i,j,n java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 5
M,,M3, ofn REALjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
definition
let M be Matrix of REAL;
attr M is PositiveA2: M is ;
:Def1:
i, ij M *i,)>0
attr M is Negative means
proof
for i,j st [i,j] in Indices let i,j;
attr assume
:Def3:
for iA:[,j (M)
attr M is Nonnegative means
:Def4:
i, [,]in MholdsM( )=0;
end;
definition
let M1,M2 be Matrix of REAL;
pred M1 is_less_than M2 means
for hencethesis by A1,3Th2java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
M1 is_less_or_equal_with means
for i,j st [i,j] in Indices java.lang.StringIndexOutOfBoundsException: Range [30, 32) out of bounds for length 4
end;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
let M Mis isNonpositive
func |:M:|java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:Def7:
isNonpositive&M2is impliesM1+2is
M & forjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
proof
deffunc F(Nat,Nat: is and
consider being Matrixof , , such that
A1: for i,j st [i,j]A3 =[:n
MATRIX_0:sch 1;
A4 (1+)=[Seg,n]byMATRIX_024;
A2: len M1=len M A5: Indices M2 = [:SegM2=[Segn n MATRIX_024java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
:
per cases;
case
A4: len M= 0;
then width M1=0 java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 12
hence width M1M1+;
end;
case
M0;
hence width M1=java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 8
end;
end;
thus len M1 = len M & width M1 = width M by A3,A2;
let i,j M2*ij < 0by ,5,A4,6;
assume
A5: A3,4,6,A7,MATRIXR1:25;
dom M = dom M1 by end;
hence M1*(i,j) = In(|.M*(i,j).|,REAL) by A1, hencethesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
.= |.M*(i,j)
end;
M1 is_less -2implies + is
proof
let M1,M2 be
assume that
en and
A7: width M1 =width M and
:for, st [,]in IndicesM M1*ij).*i,)|and
A9: len M2=len M & A3: Indices (M1+M2)=[:Se, Seg n:]by MATRIX_0:4;
A10: for i,j st [i,j] in Indices M holds M2*(i,j) assume
let i,j;
,st i,] Indices(1M2)holds(+M2*ij<0
A11: [i,j] in
A12: dom java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
hence M1*(A5 i, (1+M2)
.=M2*( then M1*(i,<(M2*i)by A4,1,3;
end;
hence A6,A7,9,:21;
end;
end;
definition
let n;
let M;
redefine func -M -> Matrix of thesisby ,A3,ATRIXR125java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
proof
len M=n by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
then
A1:
width M=n by MATRIX_0:24;
(M) by : 4;
hence thesis by A1,MATRIX_0:51;
end;
a
definition
let A1 is_less_or_equal_withM2;
let M;
A2 =[Seg , : (1-)=[S , n: by
coherence
proof
IX_0:;
then
A1: len |:M:|=A3 len = &widthM1= by ;
width M=n by MATRIX_0:24;
then width |:M:|=n by Def7;
thesis A1MATRIX_0;
end;
end;
definition
let n;
let M1,M2;
redefinelet ijjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
coherence
proof:[j Indices(1-M2;
A1: width M2=n by then M1*(i,j)<=M2*(i,j ,;
width M1=n by MATRIX_0:24;
then len (M1+ M1*(,j-2(,j<= XREAL_1:47;
hence thesis by A1,MATRIX_0:24,51;
end;
end;
definition
let n;
let M1,M2;
redefine func M1-M2 -> Matrix of n,REAL;
coherence
proof
len (M1+ -M2)=len M1 by MATRIX_1:def 6;
hence thesis by MATRIX_1:def 7;
end;
end;
definition
let n;
let a be Real;
let M;
redefine func a*M -> Matrix of n,REAL;
coherence
proof
A1: width (a*M)=width M by MATRIXR1:27;
width M=n & len (a*M)=len M by MATRIXR1:27,MATRIX_0:24;
hence thesis by A1,MATRIX_0:24,51;
end;
end;
Lm1: 1 in REAL by XREAL_0:def 1;
Lm2: -1 in REAL by XREAL_0:def 1;
registration
let n;
cluster (n,n) --> 1 -> Positive for Matrix of n,REAL;
coherence
by Lm1,MATRIX_0:46;
cluster ((n,n) ->-1)- forMatrix nREAL;
coherence
proof hence ;
A1: M = (n,n) --> -1;
let i,j;
assume [i,j] in Indices M;
then M*(i,j) = -1 by A1,Lm2,MATRIX_0:46;
hence thesis;
end;
cluster ((n,n) --> -1) -> Nonpositive for Matrix of n,REAL;
coherence
by Lm2,MATRIX_0:46;
cluster ((n,n) --> 1) -> Nonnegative
coherence
by Lm1,MATRIX_0java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end;
registration
let n;
cluster Nonnegative forMatrix of n,;
existence
proof
take (n,n) --> InA1:a=0and
thus A2:M Positive
end;
clusterA3:Indices a*)=Indices by :;
existence
proof
take (n,n) --> -In(1,REAL);
thus for i,j st,]in Indices(*) (*)(,)=java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
end;
end;
registration
cluster Positive Nonnegative for Matrix of REAL;
existence
proof
take (1,1) --> In(1,REAL);
thus thesis;
end;
cluster Negative Nonpositive for Matrix of REAL;
existence
proof
take (1,1) --> -In(1,REAL);
thus thesis;
end;
end;
registration
let M be Positive Matrix of REAL;
cluster M@ -> Positive;
coherence
proof
for i,j st [i,j] in Indices (M@) holds (M@)*(i,j) > 0
proof
let i,j;
assume [i,j] in Indices (M@);
then
A1: [j,i] in Indices M by MATRIX_0:def 6;
then (M@)*(i,j) = M*(j,i) by MATRIX_0:def 6;
hence thesis by A1,Def1;
end;
hence thesis;
end;
end;
registration
let M be Negative Matrix of REAL;
cluster M@ -> Negative;
coherence
proof
for i,j st [i,j] in Indices (M@) holds (M@)*(i,j) < 0
proof
let i,j;
assume [i,j] in Indices (M@);
then
A1: [j,i] in Indices M by MATRIX_0:def 6;
then (M@)*(i,j) = M*(j,i) by MATRIX_0:def 6;
hence thesis by A1,Def2;
end;
hence thesis;
end;
end;
registration
let M be Nonpositive Matrix of REAL;
cluster M@ -> Nonpositive;
coherence
proof
for i,j st [i,j] in Indices (M@) holds (M@)*(i,j) <= 0
proof
let i,j;
assume [i,j] in Indices (M@);
then
A1: [j,i] in Indices M by MATRIX_0:def 6;
then (M@)*(i,j) = M*(j,i) by MATRIX_0:def 6;
hence thesis by A1,Def3;
end;
hence thesis;
end;
end;
registration
let M be Nonnegative Matrix of REAL;
cluster M@ -> Nonnegative;
coherence
proof
for i,j st [i,j] in Indices (M@) holds (M@)*(i,j) >= 0
proof
let i,j;
assume [i,j] in Indices (M@);
then
A1: [j,i] in Indices M by MATRIX_0:def 6;
then (M@)*(i,j) = M*(j,i) by MATRIX_0:def 6;
hence thesis by A1,Def4;
end;
hence thesis;
end;
end;
Lm3: len M1=len M2 & width M1=width M2
proof
width M1=n & len M1=n by MATRIX_0:24;
hence thesis by MATRIX_0:24;
end;
theorem
for x1 be Element of F_Real for x2 be Real st x1 = x2 holds -x1=-x2;
theorem Th2:
for M being Matrix of REAL st [i,j] in Indices M holds (-M)*(i,j) =-(M*(i,j))
proof
let M be Matrix of REAL;
assume [i,j] in Indices M;
then (-M)*(i,j)= -((MXR2MXF M)*(i,j)) by MATRIX_1:def 4,VECTSP_1:def 5;
hence thesis by VECTSP_1:def 5;
end;
theorem Th3:
for M1,M2 be Matrix of REAL st len M1=len M2 & width M1=width M2
& [i,j] in Indices M1 holds (M1-M2)*(i,j)=(M1*(i,j)) - (M2*(i,j))
proof
let M1,M2 be Matrix of REAL;
java.lang.StringIndexOutOfBoundsException: Range [30, 11) out of bounds for length 37
A1
A2: width M1
A3: [i,j] in java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 7
A4: 1<=j
1<= i &java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A5: [i,j] in Indices MXR2MXF M2java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
)(,) =(MXR2MXF )(-MXR2MXF M2))(,)byMATRIX_1: 7
,VECTSP_1:def 5
.= (MXR2MXF M1)*(i,j assume
.=2:Mis Nonpositivejava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
hence thesis VECTSP_1:ef 5;
end;
theorem Th4:
for M being Matrix of REAL st [i,j] in Indices M holds (a*M)*
)**ij)
proof
let M be Matrix of REAL;
a in REALA3: ij] ()
then Mi,<0 ,;
A1: MXR2MXF(a*M) = MXR2MXF MXF2MXR (aa *>java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
.= aa*(MXR2MXF M);
assume [i, end;
then (a*hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
theorem Th5:
Indices M = Indices |:M:|
proof
A1: Seg A1: IndicesM2= [Seg, Seg n:] by MATRIX_0:24;
A2 : ,n]&Indices (+)=[:eg n,Segn] by
hence thesis by A1,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 12
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem
|:a*M:|=|.a.|*|:M:|
proof
A1: len (a*M)=len M proof
len i,j;
then
A2: len (|.a.|*|:M:|)=len MA4:[,] in M1M2)
A3: for*i,)=0 &*ij>0by A3,A1,2java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
(,)
proof
A4: Indices (a hence by ,4MATRIXR1:25;
A5end;
let i,j;
assume
A6: [i,j] in Indices |:a*M:|;
A7: Indices |:M:| = Indices M by Th5;
A8: Indices |:a*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then
:|(,j)|(*M*ij. A6,Def7
.=|.a*(java.lang.StringIndexOutOfBoundsException: Range [47, 14) out of bounds for length 47
.=|.a.|*|.M*(i,j).| by A3: Indices (M1+M2)=[:Seg n, Seg n:] by MATRIX_0:24;
(|.a.|*|:M:|)*(i,j)=|.a.|*(|:M:|*(i, assume
.=|:a* .=|:a*M ;
hence thesis;
end;
width(..*::)=idth|M|byMATRIXR127;
then
A10: width (|.a proof
len |:a*M|= (*M)&width :*M:= (*) ;
hence thesis by A1,A2,A10,A3,MATRIX_0leti;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem
(*ij<=M2*(i,j) byA4,A;
proof
A1: Indices M=[:Seg (,)byA1,3A,;
assume
:M ;
for i, hence A1,,,:;
proof
let i,j;
assume
A3: [i,j] in
then M*(i,j)
then -M*(i,java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 4
thesisjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Positive implies M1+M2 is java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 8
proof
=[Seg ,Segn]by :;
A2: Indices M1 = [:Seg yLm3java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
MATRIX_024
assume
is ;
for i,j st [i,j] j (-) M1-M2*(,)=0
proof
let i,j;
A4: [i,j] in Indices assume
then A:[i,]in Indices (1M2)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
then M1*(i,j)+M2*( then M1*i,j)*ij>0 by XREAL_148;
hence thesis by A2A4,25;
end;
;
end;
theorem
-M2 is_less_than M1 implies M1+M2 is Positive
proof
A1: Indices M1=[:Seg n, Seg
A2: Indices M2=[:Seg
A3: Indices (-M2)=[ a>0 & Mis * isNonnegative
A4: Indicesproof
assume
A5: -M2 is_less_than M1;
for, ij M1M2)holds(+M2*(j>
proof
: is ;
assume
:[,] in Indices M1+);
then ( proof
then - let ,jjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then M1then
hence A3: [i,j] in Indicesij]in IndicesMby :8;
endthen M(,)0byA2;
hence thesis;
end;
theorem
nnegative M2 Positive impliesM1
proof
A1: Indices M2=[: hence thesis by Th4java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A2: Indices M1=[:Seg n, Seg end;
MATRIX_0:24;
assume
A3:theorem
for i,j st [i =0 implies a* isNonnegative
proof
et,j
assume
A4: [i,j] in Indices (M1 assume
A1:a=0 and
then M1*(i,j)+java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 18
,4MATRIXR125;
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Negative M1*(j<*i,)&M2*i)M3(, byA2,A1java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
M1+M2 is Positive
proof
assume that
A1: M1 is Positive and
A2:M2 is Negative
A3: |:M2:| is_less_than |:M1:|;
A4: Indices M2 = [:SegA1 IndicesM2 =[S ,Segn]byMATRIX_0:24;
A5: : Indices =[Segn, : :;
A6: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (M1+M2) A3: Indices M1 = [:Seg n, Seg n:] & Indices)=[Seg n, ]by
proof
let i,j;assume
assume
IndicesM1+)
then [st [ij in Indices (M1+M3)holds(1M3)(,)(M2+4*ijjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
then |:M2:|*(i,
then |.M2*A5: [j (+)
then |.M2*(i,j)
then
*(,j.|0by :50;
M2*(i,j)<0 by MATRIXR125java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then
A9: -(M2*(i,j))=|.M2*(i,j).| by ABSVALUE:def 1;
M1*(i,j)>0 hence thesis X:8;
then M1*(i,j)=|.M1*(i,j) ;
then thesis;
hence thesis by A6,endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Negative implies M1-M2 proof
oof
assume
A1: M1 is Positive & M2 is Negative;
A2: Indices M2 A2: Indices M2 =[:egn, Seg n: by :24;
A3: Indices M1 = [:Seg A3 Indices(M1+M3) =[Seg n,Seg : MATRIX_0:;
MATRIX_0:24;
A4: len M1=len M2 & width M1=width M2 by Lm3 assume
for i,j st [i,j] in Indices (M1-M2A4:M1 ;
proof
let for i, st ij] in Indices M3 (1M3)(,)<M2)*i)
assume
proof
then M1*(i,j)>0 & M2*(i,j)<0 by A1,let i,;
then M1*(i,j)-java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 10
hence thesis by A3,A4,A5,Th3;
end;
hence thesis;
end;
theorem
M2 thenM1*ij+M3*(j)*,j+3*i,)by :8;
proof
assume
A1: M2 is_less_than then (M1+3*i)M2*i)M3*i,) A1,,5MATRIXR1:5;
A2: Indices hence thesis A2,,5MATRIXR1:;
A3: width M1=width M2 by Lm3;
A4: Indices (M1-M2)
A5: Indices M1 = [:Seg n, Seg n:] & len hence thesis;
for i,j st [i,jend;
proof
let i,j;
assume
A6: [i,j] in Indices (M1-M2);
then M1 rem
then M1*(i,j)-M2*(i,j)>0 M1 is_less_than M2 implies M3 is_less_than -1
hence thesis by A4,A5,A3,A6,Th3;
end;
hence thesis;
end;
theorem
a>0 & M is Positive implies a*M is Positive
proof
assume that
A1: a>0 and
A2: M is Positive;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)>0
proof
let i,j;
assume [i,j] in Indices (a*M);
then
A3: [i,j] in Indices M by MATRIXR1:28;
then M*(i,j)>0 by A2;
then a*(M*(i,j))>0 by A1,XREAL_1:129;
hence thesis by A3,Th4;
end;
hence thesis;
end;
theorem
a<0 & M is Negative implies a*M is Positive
proof
assume that
A1: a<0 and
A2: M is Negative;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)>0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)<0 by A2,A3;
then a*(M*(i,j))>0 by A1,XREAL_1:130;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
M is Positive implies (-M) is Negative
proof
A1: Indices M = [:Seg n, Seg n:] & Indices -M = [:Seg n, Seg n:] by MATRIX_0:24
;
assume
A2: M is Positive;
for i,j st [i,j] in Indices (-M) holds (-M)*(i,j)<0
proof
let i,j;
assume
A3: [i,j] in Indices (-M);
then M*(i,j)>0 by A2,A1;
then (-1)*(M*(i,j))<0*(-1) by XREAL_1:69;
then -(M*(i,j))<0;
hence thesis by A1,A3,Th2;
end;
hence thesis;
end;
theorem
M1 is Negative & M2 is Negative implies M1+M2 is Negative
proof
assume that
A1: M1 is Negative and
A2: M2 is Negative;
A3: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A4: Indices (M1+M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)<0
proof
let i,j;
assume
A6: i,j] in Indices (1M2)
then M1*(i,j) < 0 by A1,A3,A4;
then M1*(i,j)+M2*(i,j)<M2*(i,j) by XREAL_1:30;
)M2*j<0 A2,A5,,A6;
hence thesis by A3,A4,A6,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is_less_than -M2 implies M1+M2 is Negative
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
:IndicesM2=:Seg ,Seg : :24;
A3: Indices (M1+M2)=[:Seg n, Seg n:] by MATRIX_0:24;
assume
:M1is_less_than -java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
for i,j st [i,]inIndices(1+ M1+)(,)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
proof
let i,j;
A5: [i,j] in java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 7
then M1*(i,j)<(-M2)*(i,j
then M1*ij)-*(,)by ,A3Th2java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
M1*i,)+2*ij)0 XREAL_1:61;
hence thesis by A1,A3,A5,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Positive (-)(,)<3(,j-(,j A3,5A,Tjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
M1+M2 byA3,6A,,,;
proof
assume that
A1: M1 isPositive and
A2: M2 (3M2) [Seg n, : by :
A3: |:M1:| hence thesis A;
A4: Indices M1 = [:Seg n,end;
A5: Indices (M1+M2java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
A6: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)<0
proof
let i,j;
assume
A7: [i,j] in Indices (M1+M2);
then [i,j] in Indices |:M1:| by A4,A5,Th5;
then |:M1:|*(i,j)<|:M2:|*(i,j) by A3;
then |.M1*(i,j).|<|:M2:|*(i,j) by A4,A5,A7,Def7;
then |.M1*(i,j).|<|.M2*(i,j).| by A6,A5,A7,Def7;
then
A8: |.M1*(i,j).|-|.M2*(i,j).|<|.M2*(i,j).|-|.M2*(i,j).| by XREAL_1:9;
M2*(i,j)<0 by A2,A6,A5,A7;
then
A9: -(M2*(i,j))=|.M2*(i,j).| by ABSVALUE:def 1;
M1*(i,j)>0 by A1,A4,A5,A7;
then |.M1*(i,j).|=M1*(i,j) by ABSVALUE:def 1;
then M1*(i,j)+M2*(i,j)=|.M1*(i,j).|-|.M2*(i,j).| by A9;
hence thesis by A4,A5,A7,A8,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 implies M1-M2 is Negative
proof
assume
A1: M1 is_less_than M2;
A2: Indices M1 = [:Seg n, Seg n:] & Indices (M1-M2) = [:Seg n, Seg n:] by
MATRIX_0:24;
A3: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices (M1-M2) holds (M1-M2)*(i,j)<0
proof
let i,j;
assume
A4: [i,j] in Indices end;
then M1*(i,j)<M2*(i,j) by A1,A2;
then M1*(i,j)-M2*(i,j)<0 by XREAL_1:49;
hence thesis by A2,A3,A4,Th3;
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Negative implies M2-M1 is Negative
proof
assume
A1: M1 is Positive & M2 is Negative;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M2 = [:Seg n, Seg n:] & Indices (M2-M1) = [:Seg n, Seg n:] by
MATRIX_0:24;
A4: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices (M2-M1) holds (M2-M1)*(i,j)<0
proof
let i,j;
assume
A5: [i,j] in Indices (M2-M1);
then M1*(i,j)>0 & M2*(i,j)<0 by A1,A2,A3;
then M2*(i,j)-M1*(i,j)<0;
hence thesis by A3,A4,A5,Th3;
end;
hence thesis;
end;
theorem
a<0 & M is Positive implies a*M is Negative
proof
assume that
A1: a<0 and
A2: M is Positive;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)<0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)>0 by A2,A3;
then a*(M*(i,j))<0 by A1,XREAL_1:132;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
a>0 & M is Negative implies a*M is Negative
proof
assume that
A1: a>0 and
A2: M is Negative;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)<0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)<0 by A2,A3;
then a*(M*(i,j))<0 by A1,XREAL_1:132;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
M is Nonnegative implies -M is Nonpositive
proof
A1: Indices M = [:Seg n, Seg n:] & Indices -M = [:Seg n, Seg n:] by MATRIX_0:24
;
assume
A2: M is Nonnegative;
for i,j st [i,j] in Indices (-M) holds (-M)*(i,j)<=0
proof
let i,j;
assume
A3: [i,j] in Indices (-M);
then M*(i,j)>=0 by A2,A1;
then -(M*(i,j))<=0;
hence thesis by A1,A3,Th2;
end;
hence thesis;
end;
theorem
M is Negative implies M is Nonpositive;
theorem
M1 is Nonpositive & M2 is Nonpositive implies M1+M2 is Nonpositive
proof
assume that
A1: M1 is Nonpositive and
A2: M2 is Nonpositive;
A3: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A4: Indices (M1+M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)<=0
proof
let i,j;
assume
A6: [i,j] in Indices (M1+M2);
then M1*(i,j) <= 0 by A1,A3,A4;
then
A7: (M1*(i,j))+(M2*(i,j))<=(M2*(i,j)) by XREAL_1:32;
M2*(i,j) <= 0 by A2,A5,A4,A6;
hence thesis by A3,A4,A6,A7,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M1+M2)=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A4: M1 is_less_or_equal_with (-M2);
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)<=0
proof
let i,j;
assume
A5: [i,j] in Indices (M1+M2);
then M1*(i,j)<=(-M2)*(i,j) by A4,A1,A3;
then M1*(i,j)<=-M2*(i,j) by A2,A3,A5,Th2;
then M1*(i,j)+M2*(i,j)<=0 by XREAL_1:59;
hence thesis by A1,A3,A5,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2 implies M1-M2 is Nonpositive
proof
assume
A1: M1 is_less_or_equal_with M2;
A2: Indices M1 = [:Seg n, Seg n:] & Indices (M1-M2) = [:Seg n, Seg n:] by
MATRIX_0:24;
A3: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices (M1-M2) holds (M1-M2)*(i,j)<=0
proof
let i,j;
assume
A4: [i,j] in Indices (M1-M2);
then M1*(i,j)<=M2*(i,j) by A1,A2;
then M1*(i,j)-M2*(i,j)<=0 by XREAL_1:47;
hence thesis by A2,A3,A4,Th3;
end;
hence thesis;
end;
theorem
a<=0 & M is Positive implies a*M is Nonpositive
proof
assume that
A1: a<=0 and
A2: M is Positive;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)<=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)>0 by A2,A3;
then a*(M*(i,j))<=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
a>=0 & M is Negative implies a*M is Nonpositive
proof
assume that
A1: a>=0 and
A2: M is Negative;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)<=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)<0 by A2,A3;
then a*(M*(i,j))<=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
a>=0 & M is Nonpositive implies a*M is Nonpositive
proof
assume that
A1: a>=0 and
A2: M is Nonpositive;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)<=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)<=0 by A2,A3;
then a*(M*(i,j))<=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
a<=0 & M is Nonnegative implies a*M is Nonpositive
proof
assume that
A1: a<=0 and
A2: M is Nonnegative;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)<=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)>=0 by A2,A3;
a*(M*(i,j))<=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
|:M:| is Nonnegative
proof
for i,j st [i,j] in Indices |:M:| holds |:A6:Indices (1M4 : n, :24;
proof:len M1= &widthM1=idth M4 Lm3
let i,j;
assume
ij] |M|java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
Indices |:M:| = Indices M by Th5;
then|M|(j=|M*i,j)|byA1,ef7
hence thesis by COMPLEX1:46;
end;
hence thesis;
end;
theorem
M1 is Positive implies M1 is Nonnegative;
theorem
M is Nonpositive implies (-M) is Nonnegative
proof
A1: Indices M = [:Seg n, Seg A6: len M1=len M2 & width M1=width M2 by Lm3;
MATRIX_0:24;
assume
is ;
for i,j st [i l M3 M4 by ;
: M1 -M4
assume
3 ij] in Indices (M;
then M*(i,j)<=0 by A2,A1;
then -M*(i,j)>=0;
hence thesis by A1,A3,Th2;
end;
hence thesis;
end;
theorem Th36:
M1 is Nonnegative & M2 is Nonnegative implies M1+M2 is Nonnegative
proof
A1: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M1 = [:Seg n, Seg n:] & Indices (M1+M2) = [:Seg n, Seg n:] by
MATRIX_0:24;
assume
A3: M1 is Nonnegative & M2 is Nonnegative;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)>=0
proof
let i,j;
assume
A4: [i,j] in Indices (M1+M2);
then M1*(i,j)>=0 & M2*(i,j)>=0 by A3,A1,A2;
then (M1*(i,j))+(M2*(i,j))>=0;
hence thesis by A2,A4,MATRIXR1:25;
end;
hence thesis;
end;
theorem
-M1 is_less_or_equal_with M2 implies M1+M2 is Nonnegative
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices (-M1)=[:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M1+M2)=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A4: -M1 is_less_or_equal_with M2;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)>=0
proof
let i,j;
assume
A5: [i,j] in Indices (M1+M2);
then (-M1)*(i,j)<=M2*(i,j) by A4,A2,A3;
then -M1*(i,j)<=M2*(i,j) by A1,A3,A5,Th2;
then M1*(i,j)+M2*(i,j)>=0 by XREAL_1:60;
hence thesis by A1,A3,A5,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M2 is_less_or_equal_with M1 implies M1-M2 is Nonnegative
proof
assume
A1: M2 is_less_or_equal_with M1;
A2: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: width M1=width M2 by Lm3;
A4: Indices (M1-M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M1 = [:Seg n, Seg n:] & len M1=len M2 by Lm3,MATRIX_0:24;
for i,j st [i,j] in Indices (M1-M2) holds (M1-M2)*(i,j)>=0
proof
let i,j;
assume
A6: [i,j] in Indices (M1-M2);
then M1*(i,j)>=M2*(i,j) by A1,A2,A4;
then M1*(i,j)-M2*(i,j)>=0 by XREAL_1:48;
hence thesis by A4,A5,A3,A6,Th3;
end;
hence thesis;
end;
theorem
a>=0 & M is Positive implies a*M is Nonnegative
proof
assume that
A1: a>=0 and
A2: M is Positive;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)>=0
proof
let i,j;
assume [i,j] in Indices (a*M);
then
A3: [i,j] in Indices M by MATRIXR1:28;
then M*(i,j)>0 by A2;
then a*(M*(i,j))>=0 by A1;
hence thesis by A3,Th4;
end;
hence thesis;
end;
theorem
a<=0 & M is Negative implies a*M is Nonnegative
proof
assume that
A1: a<=0 and
A2: M is Negative;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)>=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)<0 by A2,A3;
then a*(M*(i,j))>=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
a<=0 & M is Nonpositive implies a*M is Nonnegative
proof
assume that
A1: a<=0 and
A2: M is Nonpositive;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)>=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)<=0 by A2,A3;
then a*(M*(i,j))>=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem Th42:
a>=0 & M is Nonnegative implies a*M is Nonnegative
proof
assume that
A1: a>=0 and
A2: M is Nonnegative;
A3: Indices (a*M) = Indices M by MATRIXR1:28;
for i,j st [i,j] in Indices (a*M) holds (a*M)*(i,j)>=0
proof
let i,j;
assume
A4: [i,j] in Indices (a*M);
then M*(i,j)>=0 by A2,A3;
then a*(M*(i,j))>=0 by A1;
hence thesis by A3,A4,Th4;
end;
hence thesis;
end;
theorem
a>=0 & b>=0 & M1 is Nonnegative & M2 is Nonnegative implies a*M1+b*M2
is Nonnegative
proof
assume a>=0 & b>=0 & M1 is Nonnegative & M2 is Nonnegative;
then a*M1 is Nonnegative & b*M2 is Nonnegative by Th42;
hence thesis by Th36;
end;
begin
theorem
M1 is_less_than M2 implies M1 is_less_or_equal_with M2;
theorem
M1 is_less_than M2 & M2 is_less_than M3 implies M1 is_less_than M3
proof
A1: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
assume
A2: M1 is_less_than M2 & M2 is_less_than M3;
for i,j st [i,j] in Indices M1 holds M1*(i,j)<M3*(i,j)
proof
let i,j;
assume [i,j] in Indices M1;
then M1*(i,j)<M2*(i,j) & M2*(i,j)<M3*(i,j) by A2,A1;
hence thesis by XXREAL_0:2;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 & M3 is_less_than M4 implies (M1+M3) is_less_than ( M2+M4)
proof
A1: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M1 = [:Seg n, Seg n:] & Indices (M1+M3) = [:Seg n, Seg n:] by
MATRIX_0:24;
assume
A4: M1 is_less_than M2 & M3 is_less_than M4;
for i,j st [i,j] in Indices (M1+M3) holds (M1+M3)*(i,j)<(M2+M4)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (M1+M3);
then
A6: (M1+M3)*(i,j)=M1*(i,j)+M3*(i,j) & M2*(i,j)+M4*(i,j)=(M2+M4)*(i,j) by A1,A3,
MATRIXR1:25;
M1*(i,j)<M2*(i,j) & M3*(i,j)<M4*(i,j) by A4,A2,A3,A5;
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
end;
hence thesis;
end;
theorem
M1 is_less_than M2 implies M1+M3 is_less_than M2+M3
proof
A1: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M1+M3) = [:Seg n, Seg n:] by MATRIX_0:24;
assume
A4: M1 is_less_than M2;
for i,j st [i,j] in Indices (M1+M3) holds (M1+M3)*(i,j)<(M2+M3)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (M1+M3);
then M1*(i,j)<M2*(i,j) by A4,A1,A3;
then M1*(i,j)+M3*(i,j)<M2*(i,j)+M3*(i,j) by XREAL_1:8;
then (M1+M3)*(i,j)<M2*(i,j)+M3*(i,j) by A1,A3,A5,MATRIXR1:25;
hence thesis by A2,A3,A5,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 implies M3-M2 is_less_than M3-M1
proof
assume
A1: M1 is_less_than M2;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M3-M1) = [:Seg n, Seg n:] by MATRIX_0:24;
A4: width M2=width M3 by Lm3;
A5: Indices M3 = [:Seg n, Seg n:] & len M2=len M3 by Lm3,MATRIX_0:24;
A6: len M1=len M2 & width M1=width M2 by Lm3;
A7: for i,j st [i,j] in Indices (M3-M1) holds (M3-M2)*(i,j)<(M3-M1)*(i,j)
proof
let i,j;
assume
A8: [i,j] in Indices (M3-M1);
then M1*(i,j)<M2*(i,j) by A1,A2,A3;
then M3*(i,j)-M2*(i,j)<M3*(i,j)-M1*(i,j) by XREAL_1:15;
then (M3-M2)*(i,j)<M3*(i,j)-M1*(i,j) by A3,A5,A4,A8,Th3;
hence thesis by A3,A6,A5,A4,A8,Th3;
end;
Indices (M3-M2) = [:Seg n, Seg n:] by MATRIX_0:24;
hence thesis by A3,A7;
end;
theorem
|:M1+M2:| is_less_or_equal_with |:M1:|+|:M2:|
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices (M1+M2)=[:Seg n,Seg n:] by MATRIX_0:24;
A3: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices |:M1+M2:| holds |:M1+M2:|*(i,j)<=(|:M1:|+|:
M2:|)*(i,j)
proof
let i,j;
assume [i,j] in Indices |:M1+M2:|;
then
A4: [i,j] in Indices (M1+M2) by Th5;
then [i,j] in Indices |:M1:| by A1,A2,Th5;
then
A5: (|:M1:|+|:M2:|)*(i,j)=|:M1:|*(i,j)+|:M2:|*(i,j) by MATRIXR1:25
.=|.M1*(i,j).|+|:M2:|*(i,j) by A1,A2,A4,Def7
.=|.M1*(i,j).|+|.M2*(i,j).| by A3,A2,A4,Def7;
|:M1+M2:|*(i,j) =|.(M1+M2)*(i,j).| by A4,Def7
.=|.M1*(i,j)+M2*(i,j).| by A1,A2,A4,MATRIXR1:25;
hence thesis by A5,COMPLEX1:56;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2 implies (M1-M3) is_less_or_equal_with (M2- M3)
proof
assume
A1: M1 is_less_or_equal_with M2;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M3 by Lm3;
A4: Indices M2 = [:Seg n, Seg n:] & len M2=len M3 by Lm3,MATRIX_0:24;
A5: Indices (M1-M3) = [:Seg n, Seg n:] by MATRIX_0:24;
A6: len M1=len M3 & width M1=width M3 by Lm3;
for i,j st [i,j] in Indices (M1-M3) holds (M1-M3)*(i,j)<=(M2-M3)*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices (M1-M3);
then M1*(i,j)<=M2*(i,j) by A1,A2,A5;
then M1*(i,j)-M3*(i,j)<=M2*(i,j)-M3*(i,j) by XREAL_1:9;
then (M1-M3)*(i,j)<=M2*(i,j)-M3*(i,j) by A2,A5,A6,A7,Th3;
hence thesis by A5,A4,A3,A7,Th3;
end;
hence thesis;
end;
theorem
(M1-M3) is_less_or_equal_with (M2-M3) implies M1 is_less_or_equal_with M2
proof
assume
A1: (M1-M3) is_less_or_equal_with (M2-M3);
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M3 by Lm3;
A4: Indices M2 = [:Seg n, Seg n:] & len M2=len M3 by Lm3,MATRIX_0:24;
A5: Indices (M1-M3) = [:Seg n, Seg n:] by MATRIX_0:24;
A6: len M1=len M3 & width M1=width M3 by Lm3;
for i,j st [i,j] in Indices M1 holds M1*(i,j)<=M2*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices M1;
then (M1-M3)*(i,j)<=(M2-M3)*(i,j) by A1,A2,A5;
then M1*(i,j)-M3*(i,j)<=(M2-M3)*(i,j) by A6,A7,Th3;
then M1*(i,j)-M3*(i,j)<=M2*(i,j)-M3*(i,j) by A2,A4,A3,A7,Th3;
then (M1*(i,j)-M3*(i,j))+M3*(i,j)<=(M2*(i,j)-M3*(i,j))+M3*(i,j) by
XREAL_1:6;
hence thesis;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2-M3 implies M3 is_less_or_equal_with M2-M1
proof
assume
A1: M1 is_less_or_equal_with M2-M3;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A4: len M2=len M3 & width M2=width M3 by Lm3;
A5: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A6: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices M3 holds M3*(i,j)<=(M2-M1)*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices M3;
then M1*(i,j)<=(M2-M3)*(i,j) by A1,A2,A3;
then M1*(i,j)<=M2*(i,j)-M3*(i,j) by A5,A3,A4,A7,Th3;
then M3*(i,j)<=M2*(i,j)-M1*(i,j) by XREAL_1:11;
hence thesis by A5,A3,A6,A7,Th3;
end;
hence thesis;
end;
theorem
M1-M2 is_less_or_equal_with M3 implies M1-M3 is_less_or_equal_with M2
proof
assume
A1: M1-M2 is_less_or_equal_with M3;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: len M1=len M3 & width M1=width M3 by Lm3;
A4: Indices (M1-M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices (M1-M3) = [:Seg n, Seg n:] by MATRIX_0:24;
A6: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices (M1-M3) holds (M1-M3)*(i,j)<=M2*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices (M1-M3);
then (M1-M2)*(i,j)<=M3*(i,j) by A1,A4,A5;
then M1*(i,j)-M2*(i,j)<=M3*(i,j) by A2,A5,A6,A7,Th3;
then M1*(i,j)-M3*(i,j)<=M2*(i,j) by XREAL_1:12;
hence thesis by A2,A5,A3,A7,Th3;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 & M3 is_less_or_equal_with M4 implies M1-M4
is_less_than M2-M3
proof
assume
A1: M1 is_less_than M2 & M3 is_less_or_equal_with M4;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M2 = [:Seg n, Seg n:] & len M2=len M3 by Lm3,MATRIX_0:24;
A4: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A5: width M2=width M3 by Lm3;
A6: Indices (M1-M4) = [:Seg n, Seg n:] by MATRIX_0:24;
A7: len M1=len M4 & width M1=width M4 by Lm3;
for i,j st [i,j] in Indices (M1-M4) holds (M1-M4)*(i,j)<(M2-M3)*(i,j)
proof
let i,j;
assume
A8: [i,j] in Indices (M1-M4);
then M1*(i,j)<M2*(i,j) & M3*(i,j)<=M4*(i,j) by A1,A2,A4,A6;
then M1*(i,j)-M4*(i,j)<M2*(i,j)-M3*(i,j) by XREAL_1:14;
then (M1-M4)*(i,j)<M2*(i,j)-M3*(i,j) by A2,A6,A7,A8,Th3;
hence thesis by A6,A3,A5,A8,Th3;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2 & M3 is_less_than M4 implies M1-M4
is_less_than M2-M3
proof
assume
A1: M1 is_less_or_equal_with M2 & M3 is_less_than M4;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M2 = [:Seg n, Seg n:] & len M2=len M3 by Lm3,MATRIX_0:24;
A4: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A5: width M2=width M3 by Lm3;
A6: Indices (M1-M4) = [:Seg n, Seg n:] by MATRIX_0:24;
A7: len M1=len M4 & width M1=width M4 by Lm3;
for i,j st [i,j] in Indices (M1-M4) holds (M1-M4)*(i,j)<(M2-M3)*(i,j)
proof
let i,j;
assume
A8: [i,j] in Indices (M1-M4);
then M1*(i,j)<=M2*(i,j) & M3*(i,j)<M4*(i,j) by A1,A2,A4,A6;
then M1*(i,j)-M4*(i,j)<M2*(i,j)-M3*(i,j) by XREAL_1:15;
then (M1-M4)*(i,j)<M2*(i,j)-M3*(i,j) by A2,A6,A7,A8,Th3;
hence thesis by A6,A3,A5,A8,Th3;
end;
hence thesis;
end;
theorem
M1-M2 is_less_or_equal_with M3-M4 implies M1-M3 is_less_or_equal_with M2-M4
proof
A1: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices (M1-M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M1-M3) = [:Seg n, Seg n:] by MATRIX_0:24;
A4: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A6: len M1=len M2 & width M1=width M2 by Lm3;
A7: len M1=len M3 & width M1=width M3 by Lm3;
A8: len M3=len M4 & width M3=width M4 by Lm3;
assume
A9: M1-M2 is_less_or_equal_with M3-M4;
for i,j st [i,j] in Indices (M1-M3) holds (M1-M3)*(i,j)<=(M2-M4)*(i,j)
proof
let i,j;
assume
A10: [i,j] in Indices (M1-M3);
then (M1-M2)*(i,j)<=(M3-M4)*(i,j) by A9,A2,A3;
then M1*(i,j)-M2*(i,j)<=(M3-M4)*(i,j) by A1,A3,A6,A10,Th3;
then M1*(i,j)-M2*(i,j)<=M3*(i,j)-M4*(i,j) by A4,A3,A8,A10,Th3;
then M1*(i,j)-M3*(i,j)<=M2*(i,j)-M4*(i,j) by XREAL_1:16;
then (M1-M3)*(i,j)<=M2*(i,j)-M4*(i,j) by A1,A3,A7,A10,Th3;
hence thesis by A5,A3,A6,A8,A7,A10,Th3;
end;
hence thesis;
end;
theorem
M1-M2 is_less_or_equal_with M3-M4 implies M4-M2 is_less_or_equal_with M3-M1
proof
A1: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M1-M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A4: Indices M4 = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices (M4-M2) = [:Seg n;
A6: len M1=len M3 & width M1=width M3 by Lm3;
A7: len M3=len M4 & width M3=width M4 by Lm3;
A8: len M1=len M2 & width M1=width M2 by Lm3;
assume
A9: M1-M2 is_less_or_equal_with M3-M4;
for i,j st [i,j] in Indices (M4-M2) holds (M4-M2)*(i,j)<=(M3-M1)*(i,j)
proof
let i,j;
assume
A10: [i,j] in Indices (M4-M2);
then (M1-M2)*(i,j)<=(M3-M4)*(i,j) by A9,A3,A5;
then M1*(i,j)-M2*(i,j)<=(M3-M4)*(i,j) by A1,A5,A8,A10,Th3;
then M1*(i,j)-M2*(i,j)<=M3*(i,j)-M4*(i,j) by A2,A5,A7,A10,Th3;
then M4*(i,j)-M2*(i,j)<=M3*(i,j)-M1*(i,j) by XREAL_1:17;
then (M4-M2)*(i,j)<=M3*(i,j)-M1*(i,j) by A4,A5,A8,A7,A6,A10,Th3;
hence thesis by A2,A5,A6,A10,Th3;
end;
hence thesis;
end;
theorem
M1-M2 is_less_or_equal_with M3-M4 implies M4-M3 is_less_or_equal_with M2-M1
proof
A1: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M4 = [:Seg n, Seg n:] by MATRIX_0:24;
A4: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices (M1-M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A6: Indices (M4-M3) = [:Seg n, Seg n:] by MATRIX_0:24;
A7: len M3=len M4 & width M3=width M4 by Lm3;
A8: len M1=len M2 & width M1=width M2 by Lm3;
assume
A9: M1-M2 is_less_or_equal_with M3-M4;
for i,j st [i,j] in Indices (M4-M3) holds (M4-M3)*(i,j)<=(M2-M1)*(i,j)
proof
let i,j;
assume
A10: [i,j] in Indices (M4-M3);
then (M1-M2)*(i,j)<=(M3-M4)*(i,j) by A9,A5,A6;
then M1*(i,j)-M2*(i,j)<=(M3-M4)*(i,j) by A1,A6,A8,A10,Th3;
then M1*(i,j)-M2*(i,j)<=M3*(i,j)-M4*(i,j) by A4,A6,A7,A10,Th3;
then M4*(i,j)-M3*(i,j)<=M2*(i,j)-M1*(i,j) by XREAL_1:18;
then (M4-M3)*(i,j)<=M2*(i,j)-M1*(i,j) by A3,A6,A7,A10,Th3;
hence thesis by A2,A6,A8,A10,Th3;
end;
hence thesis;
end;
theorem
M1+M2 is_less_or_equal_with M3 implies M1 is_less_or_equal_with M3-M2
proof
assume
A1: M1+M2 is_less_or_equal_with M3;
A2: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M3 by Lm3;
A4: Indices (M1+M2) = [:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M3 = [:Seg n, Seg n:] & len M2=len M3 by Lm3,MATRIX_0:24;
for i,j st [i,j] in Indices M1 holds M1*(i,j)<=(M3-M2)*(i,j)
proof
let i,j;
assume
A6: [i,j] in Indices M1;
then (M1+M2)*(i,j)<=M3*(i,j) by A1,A2,A4;
then M1*(i,j)+M2*(i,j)<=M3*(i,j) by A6,MATRIXR1:25;
then M1*(i,j)<=M3*(i,j)-M2*(i,j) by XREAL_1:19;
hence thesis by A2,A5,A3,A6,Th3;
end;
hence thesis;
end;
theorem
M1+M2 is_less_or_equal_with M3+M4 implies M1-M3 is_less_or_equal_with M4-M2
proof
assume
A1: M1+M2 is_less_or_equal_with M3+M4;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M4 by Lm3;
A4: Indices (M1+M2)=[:Seg n,Seg n:] by MATRIX_0:24;
A5: Indices M4=[:Seg n, Seg n:] & len M2=len M4 by Lm3,MATRIX_0:24;
A6: Indices M3=[:Seg n, Seg n:] by MATRIX_0:24;
A7: Indices (M1-M3)=[:Seg n,Seg n:] by MATRIX_0:24;
A8: len M1=len M3 & width M1=width M3 by Lm3;
for i,j st [i,j] in Indices (M1-M3) holds (M1-M3)*(i,j)<=(M4-M2)*(i,j)
proof
let i,j;
assume
A9: [i,j] in Indices (M1-M3);
then (M1+M2)*(i,j)<=(M3+M4)*(i,j) by A1,A4,A7;
then M1*(i,j)+M2*(i,j)<=(M3+M4)*(i,j) by A2,A7,A9,MATRIXR1:25;
then M1*(i,j)+M2*(i,j)<=M3*(i,j)+M4*(i,j) by A6,A7,A9,MATRIXR1:25;
then M1*(i,j)-M3*(i,j)<=M4*(i,j)-M2*(i,j) by XREAL_1:21;
then (M1-M3)*(i,j)<=M4*(i,j)-M2*(i,j) by A2,A7,A8,A9,Th3;
hence thesis by A7,A5,A3,A9,Th3;
end;
hence thesis;
end;
theorem
M1+M2 is_less_or_equal_with M3-M4 implies M1+M4 is_less_or_equal_with M3-M2
proof
assume
A1: M1+M2 is_less_or_equal_with M3-M4;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (M1+M2)=[:Seg n,Seg n:] by MATRIX_0:24;
A4: Indices (M1+M4)=[:Seg n,Seg n:] by MATRIX_0:24;
A5: len M2=len M3 & width M2=width M3 by Lm3;
=Segn Segn]byMATRIX_0:4
A7: len M3=len thesis
forijst [i,]inIndices (1+4)holds(+)(,)<=(-)(,)
proof
let i,j
assume
+M4)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
then (M1+M2)* [ ,n] :4
*,j)+2*i)<(3M4)(,)by A2,4,A8M:25java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
then M1*(i,j)+M2*(i,j)<A: =len =by;
then*(,+*ij<(j-*ij XREAL_122java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
then (M1+M4)*(i,j)<=M3*(i,j i [j] in M1M4 holds M-M4)=M3+M2)(,j)
hence thesis by A6,A4,A5,A8,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 12
end;
;
end;
M1+M4M4java.lang.StringIndexOutOfBoundsException: Range [74, 71) out of bounds for length 77
proof
M2java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 15
A3
A4:heorem
A5 M1=en & =width byLm3;
A6: Indices M3=[:Seg n, Seg n:] by java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A7: len M1=len M4 & width M1=width M4 by Lm3;
for A3 ()[,: java.lang.StringIndexOutOfBoundsException: Range [49, 46) out of bounds for length 50
A4: M1
,jjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
assume
A8: [i,j]
-M2*ij<M3M4*ij A1A4java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
(,)(,)=M3M4*ij A2A4A5A8Tjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
M1(,j-*ij<M3*ij)+4(,)byA6,,ATRIXR1:25;
then M1*(i, then (-M2)*(,)=M1*,)by A2,3,5Th2java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
then (M1-M4) java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
thesis by A6,A4,A8,ATRIXR1:25;
end;
hence thesis;
end;
em
M1 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 67
proof
A1: Indices M1=[:Seg n, Seg jst[j in M2holds M2*(,)<(M1)(,)
A2: Indices M2=[:Seg n, Seg n:] by proof
s (M2)[Seg n, Seg n: MATRIX_024
assume
A4:3 ij java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
for i,j st [i,j] in Indices (-M2thenM1(j<-2*(,j)by ,Th2;
proof
i,java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
assume
end;
M1(,)<M2*ij by A4,A1,3;
then -M2*(i,j)<=-M1*(i,j) by XREAL_1:24;
then (-M2)*(i,j)<=-M1*(i,j) by A2,A3,A5,Th2;
hence thesis by A1,A3,A5,Th2;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with -M2 implies M2 is_less_or_equal_with -M1
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A2: M1 is_less_or_equal_with -M2;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<=(-M1)*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)<=(-M2)*(i,j) by A2,A1;
then M1*(i,j)<=-M2*(i,j) by A3,Th2;
then M2*(i,j)<=-M1*(i,j) by XREAL_1:25;
hence thesis by A1,A3,Th2;
end;
hence thesis;
end;
theorem
-M2 is_less_or_equal_with M1 implies -M1 is_less_or_equal_with M2
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices (-M2)=[:Seg n, Seg n:] by MATRIX_0:24;
A4: Indices (-M1)=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A5: -M2 is_less_or_equal_with M1;
for i,j st [i,j] in Indices (-M1) holds (-M1)*(i,j)<=M2*(i,j)
proof
let i,j;
assume
A6: [i,j] in Indices (-M1);
then (-M2)*(i,j)<=M1*(i,j) by A5,A4,A3;
then -M2*(i,j)<=M1*(i,j) by A2,A4,A6,Th2;
then -M1*(i,j)<=M2*(i,j) by XREAL_1:26;
hence thesis by A1,A4,A6,Th2;
end;
hence thesis;
end;
theorem
M1 is Positive implies M2 is_less_than M2+M1
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A2: M1 is Positive;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<(M2+M1)*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)>0 by A2,A1;
then M2*(i,j)<M2*(i,j)+M1*(i,j) by XREAL_1:29;
hence thesis by A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Negative implies M1+M2 is_less_than M2
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices (M1+M2)=[:Seg n, Seg n:] by
MATRIX_0:24;
assume
A2: M1 is Negative;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)<M2*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices (M1+M2);
then M1*(i,j)<0 by A2,A1;
then M1*(i,j)+M2*(i,j)<M2*(i,j) by XREAL_1:30;
hence thesis by A1,A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonnegative implies M2 is_less_or_equal_with M1+M2
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A2: M1 is Nonnegative;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<=(M1+M2)*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)>=0 by A2,A1;
then M2*(i,j)<=M1*(i,j)+M2*(i,j) by XREAL_1:31;
hence thesis by A1,A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonpositive implies M1+M2 is_less_or_equal_with M2
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices (M1+M2)=[:Seg n, Seg n:] by
MATRIX_0:24;
assume
A2: M1 is Nonpositive;
for i,j st [i,j] in Indices (M1+M2) holds (M1+M2)*(i,j)<=M2*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices (M1+M2);
then M1*(i,j)<=0 by A2,A1;
then M1*(i,j)+M2*(i,j)<=M2*(i,j) by XREAL_1:32;
hence thesis by A1,A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonpositive & M3 is_less_or_equal_with M2 implies M3+M1
is_less_or_equal_with M2
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M3=[:Seg n, Seg n:] & Indices (M3+M1)=[:Seg n, Seg n:] by
MATRIX_0:24;
assume
A3: M1 is Nonpositive & M3 is_less_or_equal_with M2;
for i,j st [i,j] in Indices (M3+M1) holds (M3+M1)*(i,j)<=M2*(i,j)
proof
let i,j;
assume
A4: [i,j] in Indices (M3+M1);
then M1*(i,j)<=0 & M3*(i,j)<=M2*(i,j) by A3,A1,A2;
then M3*(i,j)+M1*(i,j)<=M2*(i,j) by XREAL_1:35;
hence thesis by A2,A4,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonpositive & M3 is_less_than M2 implies M3+M1 is_less_than M2
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M3=[:Seg n, Seg n:] & Indices (M3+M1)=[:Seg n, Seg n:] by
MATRIX_0:24;
assume
A3: M1 is Nonpositive & M3 is_less_than M2;
for i,j st [i,j] in Indices (M3+M1) holds (M3+M1)*(i,j)<M2*(i,j)
proof
let i,j;
assume
A4: [i,j] in Indices (M3+M1);
then M1*(i,j)<=0 & M3*(i,j)<M2*(i,j) by A3,A1,A2;
then M3*(i,j)+M1*(i,j)<M2*(i,j) by XREAL_1:36;
hence thesis by A2,A4,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Negative & M3 is_less_or_equal_with M2 implies M3+M1 is_less_than M2
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M3=[:Seg n, Seg n:] & Indices (M3+M1)=[:Seg n, Seg n:] by
MATRIX_0:24;
assume
A3: M1 is Negative & M3 is_less_or_equal_with M2;
for i,j st [i,j] in Indices (M3+M1) holds (M3+M1)*(i,j)<M2*(i,j)
proof
let i,j;
assume
A4: [i,j] in Indices (M3+M1);
then M1*(i,j)<0 & M3*(i,j)<=M2*(i,j) by A3,A1,A2;
then M3*(i,j)+M1*(i,j)<M2*(i,j) by XREAL_1:37;
hence thesis by A2,A4,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonnegative & M2 is_less_or_equal_with M3 implies M2
is_less_or_equal_with M1+M3
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A2: M1 is Nonnegative & M2 is_less_or_equal_with M3;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<=(M1+M3)*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)>=0 & M2*(i,j)<=M3*(i,j) by A2,A1;
then M2*(i,j)<=M1*(i,j)+M3*(i,j) by XREAL_1:38;
hence thesis by A1,A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is_less_or_equal_with M3 implies M2 is_less_than M1+M3
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A2: M1 is Positive & M2 is_less_or_equal_with M3;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<(M1+M3)*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)>0 & M2*(i,j)<=M3*(i,j) by A2,A1;
then M2*(i,j)<M1*(i,j)+M3*(i,j) by XREAL_1:39;
hence thesis by A1,A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonnegative & M2 is_less_than M3 implies M2 is_less_than M1+M3
proof
A1: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
assume
A2: M1 is Nonnegative & M2 is_less_than M3;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<(M1+M3)*(i,j)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)>=0 & M2*(i,j)<M3*(i,j) by A2,A1;
then M2*(i,j)<M1*(i,j)+M3*(i,j) by XREAL_1:40;
hence thesis by A1,A3,MATRIXR1:25;
end;
hence thesis;
end;
theorem
M1 is Nonnegative implies M2-M1 is_less_or_equal_with M2
proof
assume
A1: M1 is Nonnegative;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: width M1=width M2 by Lm3;
A4: Indices (M2-M1)=[:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M2=[:Seg n, Seg n:] & len M1=len M2 by Lm3,MATRIX_0:24java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 50
,jMM1(2M1*ij=*,java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
proof
let i,j;
A6: [i, assume
then M1*(i,j)>=0 by A1,A2,A4;
then M2*(i,j)-M1*(i,j)< for i, st[,j]inIndices M2 holdsM2(,)=M1+3)(j)
hence thesis by letj
end;
hence thesis;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem
M1 is Positivehence A1M:25
proof
assume
A1: M1 is Positive;
A2: Indices M1=[:Seg
M1wM2byjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A4 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 77
A5: Indices M2=[:Seg nassume
for i,j st [i,j] in Indices (M2-M1) holds (M2-M1)*(i,j)<M2*A2: M1is Positive & is_less_or_equal_with M3;
proof
let i,j;
A6:[,]in (M2-1;
then M1*(i,j)>0 by A1,A2,A4;
then M2*(i,j)-M1* then *ij> *ij<(j ,;
hencethesisbyA4A5A3,;
hence thesis
end;
theorem
M1 is Nonpositive implies M2 is_less_or_equal_with M2-M1
proof
assume
A1: M1 is Nonpositive;
A2: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A3: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<=(M2-M1)*(i,j)
proof
let i,j;
assume
A4: [i,j] in Indices M2;
then M1*(i,j)<=0 by A1,A2;
then M2*(i,j)<=M2*(i,j)-M1*(i,j) by XREAL_1:45;
hence thesis by A3,A4,Th3;
end;
hence thesis;
end;
theorem
M1 is Negative implies M2 is_less_than M2-M1
proof
assume
A1: M1 is Negative;
A2: Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A3: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<(M2-M1)*(i,j)
proof
let i,j;
assume
A4: [i,j] in Indices M2;
then M1*(i,j)<0 by A1,A2;
then M2*(i,j)<M2*(i,j)-M1*(i,j) by XREAL_1:46;
hence thesis by A3,A4,Th3;
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2 implies M2-M1 is Nonnegative
proof
assume
A1: M1 is_less_or_equal_with M2;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: width M1=width M2 by Lm3;
A4: Indices (M2-M1)=[:Seg n, Seg n:] by MATRIX_0:24;
A5: Indices M2=[:Seg n, Seg n:] & len M1=len M2 by Lm3,MATRIX_0:24;
for i,j st [i,j] in Indices (M2-M1) holds (M2-M1)*(i,j)>=0
proof
let i,j;
assume
A6: [i,j] in Indices (M2-M1);
then M1*(i,j)<=M2*(i,j) by A1,A2,A4;
then M2*(i,j)-M1*(i,j)>=0 by XREAL_1:48;
hence thesis by A4,A5,A3,A6,Th3;
end;
hence thesis;
end;
theorem
M1 is Nonnegative & M2 is_less_than M3 implies M2-M1 is_less_than M3
proof
assume
A1: M1 is Nonnegative & M2 is_less_than M3;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: Indices M2=[:Seg n, Seg n:] & Indices (M2-M1)=[:Seg n, Seg n:] by
MATRIX_0:24;
A4: len M1=len M2 & width M1=width M2 by Lm3;
for i,j st [i,j] in Indices (M2-M1) holds (M2-M1)*(i,j)<M3*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (M2-M1);
then M1*(i,j)>=0 & M2*(i,j)<M3*(i,j) by A1,A2,A3;
then M2*(i,j)-M1*(i,j)<M3*(i,j) by XREAL_1:51;
hence thesis by A3,A4,A5,Th3;
end;
hence thesis;
end;
theorem
M1 is Nonpositive & M2 is_less_or_equal_with M3 implies M2
is_less_or_equal_with M3-M1
proof
assume
A1: M1 is Nonpositive & M2 is_less_or_equal_with M3;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M3 by Lm3;
A4: width M1=width M2 & len M2=len M3 by Lm3;
A5: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A6: Indices M3=[:Seg n, Seg n:] & len M1=len M2 by Lm3,MATRIX_0:24;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<=(M3-M1)*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices M2;
then M1*(i,j)<=0 & M2*(i,j)<=M3*(i,j) by A1,A2,A5;
then M2*(i,j)<=M3*(i,j)-M1*(i,j) by XREAL_1:52;
hence thesis by A5,A6,A4,A3,A7,Th3;
end;
hence thesis;
end;
theorem
M1 is Nonpositive & M2 is_less_than M3 implies M2 is_less_than M3-M1
proof
assume
A1: M1 is Nonpositive & M2 is_less_than M3;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M3 by Lm3;
A4: width M1=width M2 & len M2=len M3 by Lm3;
A5: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A6: Indices M3=[:Seg n, Seg n:] & len M1=len M2 by Lm3,MATRIX_0:24;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<(M3-M1)*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices M2;
then M1*(i,j)<=0 & M2*(i,j)<M3*(i,j) by A1,A2,A5;
then M2*(i,j)<M3*(i,j)-M1*(i,j) by XREAL_1:53;
hence thesis by A5,A6,A4,A3,A7,Th3;
end;
hence thesis;
end;
theorem
M1 is Negative & M2 is_less_or_equal_with M3 implies M2 is_less_than M3-M1
proof
assume
A1: M1 is Negative & M2 is_less_or_equal_with M3;
A2: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A3: width M2=width M3 by Lm3;
A4: width M1=width M2 & len M2=len M3 by Lm3;
A5: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A6: Indices M3=[:Seg n, Seg n:] & len M1=len M2 by Lm3,MATRIX_0:24;
for i,j st [i,j] in Indices M2 holds M2*(i,j)<(M3-M1)*(i,j)
proof
let i,j;
assume
A7: [i,j] in Indices M2;
then M1*(i,j)<0 & M2*(i,j)<=M3*(i,j) by A1,A2,A5;
then M2*(i,j)<M3*(i,j)-M1*(i,j) by XREAL_1:54;
hence thesis by A5,A6,A4,A3,A7,Th3;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 & a>0 implies a*M1 is_less_than a*M2
proof
assume that
A1: M1 is_less_than M2 and
A2: a>0;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<(a*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)<M2*(i,j) by A1,A3;
then a*(M1*(i,j))<a*(M2*(i,j)) by A2,XREAL_1:68;
then
A6: (a*M1)*(i,j)<a*(M2*(i,j)) by A3,A5,Th4;
[i,j] in Indices M2 by A4,A5,MATRIX_0:24;
hence thesis by A6,Th4;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 & a>=0 implies a*M1 is_less_or_equal_with a*M2
proof
assume that
A1: M1 is_less_than M2 and
A2: a>=0;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M2 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<=(a*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)<M2*(i,j) by A1,A3;
then a*(M1*(i,j))<=a*(M2*(i,j)) by A2,XREAL_1:64;
then
A6: (a*M1)*(i,j)<=a*(M2*(i,j)) by A3,A5,Th4;
[i,j] in Indices M2 by A4,A5,MATRIX_0:24;
hence thesis by A6,Th4;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 & a<0 implies a*M2 is_less_than a*M1
proof
assume that
A1: M1 is_less_than M2 and
A2: a<0;
A3: Indices (a*M2) = Indices M2 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
for i,j st [i,j] in Indices (a*M2) holds (a*M2)*(i,j)<(a*M1)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M2);
then
A6: [i,j] in Indices M1 by A4,MATRIX_0:24;
then M1*(i,j)<M2*(i,j) by A1;
then a*(M2*(i,j))<a*(M1*(i,j)) by A2,XREAL_1:69;
then (a*M2)*(i,j)<a*(M1*(i, ncethesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
hence thesis by T;
end;
hence thesis;
end;
theorem
M2&a<=0 a*M2 *M1
proofA3:width = by ;
assume that
: is_less_thanM2 and
A2: a<=0;
:Indices(M2)=M2 by MATRIXR128;
A4: Indices M1 = [:Seg n, Seg n:] by MATRIX_0:24;
,j)<=(**(,)
proof
letlet ijjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A5:[,] (M2;
A6: A6A4A,,Th3
then end;
thena(2*(ij)=*M1*(,) by ,REAL_1:;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
hence java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 7
end;
hence thesis;
end;
theorem
M1 is_less_or_equal_with M2 & a>=0 implies a*M1 is_less_or_equal_with a*M2
proof
assume that
A1: M1 is_less_or_equal_with:IndicesM1=:Seg ,Seg n: MATRIX_0:4java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
A2: w & =M3 Lm3
A3: Indices (a* by MATRIXR128
:IndicesM2 =[Seg ,Seg :]MATRIX_0:24;
forjst[, Indices aM1 aM1)(i,j)<=(a*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
thenM1(,)=(,j A1,;
then a*(M1*(i then *i,)<*i,)-1(,)byXREAL_1:;
then
A6: (a*M1)*(i,j)<=a* hence ,6A4,,,h3;
[i,j] in Indices M2 by A4,A5,MATRIX_0:24hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
hence thesis by A6,Th4;
end;
hence thesis;
end;proof
theorem
ith M2&a<0 impliesa*2 aM1
proof
assume that
is_less_or_equal_with and
A2: a<=0;
28;
A4: Indices M1 = [:Seg n, Seg n:A5:Indices =S n,Seg :
,jst [j inIndices (a*2 holds(*M2)*(,)=a*)*i,)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M2);
then
A6: [i,j] in Indices M1 by A4,MATRIX_0:24;
then M1*(i,j)<=M2*(i,j) by A1;
then a*(M2*(i,j))<=a*(M1*(i,j)) by A2,XREAL_1:65;
then (a*M2)*(i,j)<=a*(M1*(i,j)) by A3,A5,Th4;
hence thesis by A6,Th4;
end;
hence thesis;
end;
theorem
a>=0 & a<=b & M1 is Nonnegative & M1 is_less_or_equal_with M2 implies
a*M1 is_less_or_equal_with b*M2
proof
assume that
A1: a>=0 & a<=b and
A2: M1 is Nonnegative & M1 is_less_or_equal_with M2;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<=(b*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)>=0 & M1Th4
then a*(M1*(i,j))<=b*(java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 6
(M1(,)=(2(,)A3T;
hence java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
thesis
end;
theorem
= <a& is
a
proof
assume that
A1: a<=0 & b<=a and
A2: M1 is Nonpositive & M2 is_less_or_equal_with M1;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<=(b*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)<=0 & M2*(i,j)<=M1*(i,j) by A2,A4,A3;
then a*(M1*(i,j))<=b*(M2*(i,j)) by A1,XREAL_1:67;
then (a*M1)*(i,j)<=b*(M2*(i,j)) by A3,A5,Th4;
hence thesis by A4,A3,A5,Th4;
end;
hence thesis;
end;
theorem
a<0 & b<=a & M1 is Negative & M2 is_less_than M1 implies a*M1
is_less_than b*M2
proof
assume that
A1: a<0 & b<=a and
A2: M1 is Negative & M2 is_less_than M1;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<(b*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)<0 & M2*(i,j)<M1*(i,j) by A2,A4,A3;
then a*(M1*(i,j))<b*(M2*(i,j)) by A1,XREAL_1:70;
then (a*M1)*(i,j)<b*(M2*(i,j)) by A3,A5,Th4;
hence thesis by A4,A3,A5,Th4;
end;
hence thesis;
end;
theorem
a>=0 & a<b & M1 is Nonnegative & M1 is_less_than M2 implies a*M1
is_less_than b*M2
proof
assume that
A1: a>=0 & a<b and
A2: M1 is Nonnegative & M1 is_less_than M2;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<(b*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)>=0 & M1*(i,j)<M2*(i,j) by A2,A3;
then a*(M1*(i,j))<b*(M2*(i,j)) by A1,XREAL_1:96;
then (a*M1)*(i,j)<b*(M2*(i,j)) by A3,A5,Th4;
hence thesis by A4,A3,A5,Th4;
end;
hence thesis;
end;
theorem
a>=0 & a<b & M1 is Positive & M1 is_less_or_equal_with M2 implies a*M1
is_less_than b*M2
proof
assume that
A1: a>=0 & a<b and
A2: M1 is Positive & M1 is_less_or_equal_with M2;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<(b*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)>0 & M1*(i,j)<=M2*(i,j) by A2,A3;
then a*(M1*(i,j))<b*(M2*(i,j)) by A1,XREAL_1:97;
then (a*M1)*(i,j)<b*(M2*(i,j)) by A3,A5,Th4;
hence thesis by A4,A3,A5,Th4;
end;
hence thesis;
end;
theorem
a>0 & a<=b & M1 is Positive & M1 is_less_than M2 implies a*M1
is_less_than b*M2
proof
assume that
A1: a>0 & a<=b and
A2: M1 is Positive & M1 is_less_than M2;
A3: Indices (a*M1) = Indices M1 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg n:] & Indices M2 = [:Seg n, Seg n:] by
MATRIX_0:24;
for i,j st [i,j] in Indices (a*M1) holds (a*M1)*(i,j)<(b*M2)*(i,j)
proof
let i,j;
assume
A5: [i,j] in Indices (a*M1);
then M1*(i,j)>0 & M1*(i,j)<M2*(i,j) by A2,A3;
then a*(M1*(i,j))<b*(M2*(i,j)) by A1,XREAL_1:98;
then (a*M1)*(i,j)<b*(M2*(i,j)) by A3,A5,Th4;
hence thesis by A4,A3,A5,Th4;
end;
hence thesis;
end;
¤ Dauer der Verarbeitung: 0.279 Sekunden
¤
*Bot Zugriff
|
|
2026-11-23
|