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
vocabularies NUMBERS, SUBSET_1, NAT_1, MATRIX_1, RELAT_1, XXREAL_0, CARD_1,
ARYTM_3, LATTICE3, FUNCT_4, FINSEQ_1, TREES_1, COMPLEX1, ARYTM_1,
FUNCOP_1, QC_LANG1, VECTSP_1, REAL_1, MATRIXR1, ZFMISC_1, MATRIX10,
FUNCT_7;
notations COMPLEX1, TARSKI, ZFMISC_1, SUBSET_1, FINSEQ_1, MATRIX_0, ORDINAL1,
FUNCT_7, NUMBERS, XXREAL_0, XCMPLX_0, XREAL_0, REAL_1, MATRIXR1,
RLVECT_1, VECTSP_1, STRUCT_0, MATRIX_3, GROUP_1, MATRIX_1;
constructors XXREAL_0, REAL_1, BINOP_2, MEMBERED, COMPLEX1, MATRIX_3,
MATRIXR1, RELSET_1, FUNCT_7, NUMBERS;
registrations RELSET_1, NUMBERS, XREAL_0, NAT_1, MEMBERED, VECTSP_1, ORDINAL1;
requirements NUMERALS, SUBSET, ARITHM, REAL;
equalities MATRIX_0, MATRIXR1;
theorems MATRIX_0, MATRIX_3, MATRIXR1, XREAL_1, ABSVALUE, VECTSP_1, MATRIX_4,
FINSEQ_1, FINSEQ_3, COMPLEX1, MATRIXC1, XXREAL_0, XREAL_0, MATRIX_1;
schemes MATRIX_0;
begin
reserve a,b for Real,
i,j,n for Nat,
M,M1,M2,M3,M4 for Matrix of n, REAL;
definition
let M be Matrix of REAL;
attr M is Positive means
:Def1:
for i,j st [i,j] in Indices M holds M*(i,j) > 0;
attr M is Negative means
:Def2:
for i,j st [i,j] in Indices M holds M*(i,j) < 0;
attr M is Nonpositive means
:Def3:
for i,j st [i,j] in Indices M holds M*(i, j) <= 0;
attr M is Nonnegative means
:Def4:
for i,j st [i,j] in Indices M holds M*(i, j) >= 0;
end;
definition
let M1,M2 be Matrix of REAL;
pred M1 is_less_than M2 means
for i,j st [i,j] in Indices M1 holds M1 *(i,j) < M2*(i,j);
pred M1 is_less_or_equal_with M2 means
for i,j st [i,j] in Indices M1 holds M1*(i,j) <= M2*(i,j);
end;
definition
let M be Matrix of REAL;
func |:M:| -> Matrix of REAL means
:Def7:
len it = len M & width it = width
M & for i,j holds [i,j] in Indices M implies it*(i,j) = |.M*(i,j).|;
existence
proof
deffunc F(Nat,Nat) = In(|.M*($ 1,$ 2).|,REAL);
consider M1 being Matrix of len M,width M,REAL such that
A1: for i,j st [i,j] in Indices M1 holds M1*(i,j) = F(i,j) from
MATRIX_0:sch 1;
take M1;
A2: len M1=len M by MATRIX_0:def 2;
A3: now
per cases;
case
A4: len M= 0;
then width M1= 0 by A2,MATRIX_0:def 3;
hence width M1=width M by A4,MATRIX_0:def 3;
end;
case
len M> 0;
hence width M1=width M by MATRIX_0: 23;
end;
end;
thus len M1 = len M & width M1 = width M by A3,A2;
let i,j;
assume
A5: [i,j] in Indices M;
dom M = dom M1 by A2,FINSEQ_3: 29;
hence M1*(i,j) = In(|.M*(i,j).|,REAL) by A1,A3,A5
.= |.M*(i,j).|;
end;
uniqueness
proof
let M1,M2 be Matrix of REAL;
assume that
A6: len M1=len M and
A7: width M1 =width M and
A8: for i,j st [i,j] in Indices M holds M1*(i,j)=|.M*(i,j).| and
A9: len M2=len M & width M2 =width M and
A10: for i,j st [i,j] in Indices M holds M2*(i,j)=|.M*(i,j).|;
now
let i,j;
assume
A11: [i,j] in Indices M1;
A12: dom M1 = dom M by A6,FINSEQ_3: 29;
hence M1*(i,j)=|.M*(i,j).| by A7,A8,A11
.=M2*(i,j) by A7,A10,A11,A12;
end;
hence thesis by A6,A7,A9,MATRIX_0: 21;
end;
end;
definition
let n;
let M;
redefine func -M -> Matrix of n,REAL;
coherence
proof
len M=n by MATRIX_0: 24;
then
A1: len (-M)=n by MATRIX_1:def 4;
width M=n by MATRIX_0: 24;
then width (-M)=n by MATRIX_1:def 4;
hence thesis by A1,MATRIX_0: 51;
end;
end;
definition
let n;
let M;
redefine func |:M:| -> Matrix of n,REAL;
coherence
proof
len M=n by MATRIX_0: 24;
then
A1: len |:M:|=n by Def7;
width M=n by MATRIX_0: 24;
then width |:M:|=n by Def7;
hence thesis by A1,MATRIX_0: 51;
end;
end;
definition
let n;
let M1,M2;
redefine func M1+M2 -> Matrix of n,REAL;
coherence
proof
A1: width M2=n by MATRIX_0: 24;
width M1=n by MATRIX_0: 24;
then len (M1+M2)=len M1 & width (M1+M2)=width M2 by A1,MATRIX_1:def 6;
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) -> Negative for Matrix of n,REAL;
coherence
proof let M be Matrix of n,REAL such that
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 for Matrix of n,REAL;
coherence
by Lm1,MATRIX_0: 46;
end;
registration
let n;
cluster Positive Nonnegative for Matrix of n,REAL;
existence
proof
take (n,n) --> In( 1,REAL);
thus thesis;
end;
cluster Negative Nonpositive for Matrix of n,REAL;
existence
proof
take (n,n) --> - In( 1,REAL);
thus thesis;
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;
assume that
A1: len M1=len M2 and
A2: width M1=width M2 and
A3: [i,j] in Indices M1;
A4: 1<=j & j<=width M2 by A2,A3,MATRIXC1: 1;
1<= i & i<=len M2 by A1,A3,MATRIXC1: 1;
then
A5: [i,j] in Indices MXR2MXF M2 by A4,MATRIXC1: 1;
(M1-M2)*(i,j) = ((MXR2MXF M1)+(-(MXR2MXF M2)))*(i,j) by MATRIX_1:def 7
,VECTSP_1:def 5
.= (MXR2MXF M1)*(i,j)+(-MXR2MXF M2)*(i,j) by A3,MATRIX_1:def 6
.= (MXR2MXF M1)*(i,j)+-((MXR2MXF M2)*(i,j)) by A5,MATRIX_1:def 4;
hence thesis by VECTSP_1:def 5;
end;
theorem Th4:
for M being Matrix of REAL st [i,j] in Indices M holds (a*M)*(i,j
)=a*(M*(i,j))
proof
let M be Matrix of REAL;
a in REAL by XREAL_0:def 1;
then reconsider aa=a as Element of F_Real by VECTSP_1:def 5;
A1: MXR2MXF(a*M) = MXR2MXF MXF2MXR (aa*(MXR2MXF M)) by MATRIXR1:def 7
.= aa*(MXR2MXF M);
assume [i,j] in Indices M;
then (a*M)*(i,j) = aa*((MXR2MXF M)*(i,j)) by A1,MATRIX_3:def 5,VECTSP_1:def 5
;
hence thesis by VECTSP_1:def 5;
end;
theorem Th5:
Indices M = Indices |:M:|
proof
A1: Seg len M = dom M by FINSEQ_1:def 3;
len |:M:|= len M & width |:M:| =width M by Def7;
hence thesis by A1,FINSEQ_1:def 3;
end;
theorem
|:a*M:|=|.a.|*|:M:|
proof
A1: len (a*M)=len M & width (a*M) =width M by MATRIXR1: 27;
len (|.a.|*|:M:|)=len |:M:| by MATRIXR1: 27;
then
A2: len (|.a.|*|:M:|)=len M by Def7;
A3: for i,j st [i,j] in Indices |:a*M:| holds |:a*M:|*(i,j) = (|.a.|*|:M:|)
*(i,j)
proof
A4: Indices (a*M) = Indices M by MATRIXR1: 28;
A5: Indices (a*M) = Indices M by MATRIXR1: 28;
let i,j;
assume
A6: [i,j] in Indices |:a*M:|;
A7: Indices |:M:| = Indices M by Th5;
A8: Indices |:a*M:| = Indices (a*M) by Th5;
then
A9: |:a*M:|*(i,j)=|.(a*M)*(i,j).| by A6,Def7
.=|.a*(M*(i,j)).| by A6,A8,A4,Th4
.=|.a.|*|.M*(i,j).| by COMPLEX1: 65;
(|.a.|*|:M:|)*(i,j)=|.a.|*(|:M:|*(i,j)) by A6,A8,A5,Th4,A7
.=|:a*M:|*(i,j) by A6,A8,A9,A5,Def7;
hence thesis;
end;
width (|.a.|*|:M:|) =width |:M:| by MATRIXR1: 27;
then
A10: width (|.a.|*|:M:|) =width M by Def7;
len |:a*M:|=len (a*M) & width |:a*M:|=width (a*M) by Def7;
hence thesis by A1,A2,A10,A3,MATRIX_0: 21;
end;
theorem
M is Negative implies -M is Positive
proof
A1: Indices M=[:Seg n, Seg n:] & Indices (-M)=[:Seg n, Seg n:] by MATRIX_0: 24;
assume
A2: M is Negative;
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 by XREAL_1: 58;
hence thesis by A1,A3,Th2;
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Positive implies M1+M2 is Positive
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 Positive & M2 is Positive;
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
-M2 is_less_than M1 implies M1+M2 is Positive
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+M2)=[:Seg n, Seg n:] by MATRIX_0: 24;
assume
A5: -M2 is_less_than M1;
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 (-M2)*(i,j)<M1*(i,j) by A5,A3,A4;
then -M2*(i,j)<M1*(i,j) by A2,A4,A6,Th2;
then M1*(i,j)+M2*(i,j)> 0 by XREAL_1: 62;
hence thesis by A1,A4,A6,MATRIXR1: 25;
end;
hence thesis;
end;
theorem
M1 is Nonnegative & M2 is Positive implies M1+M2 is Positive
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 Positive;
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 Positive & M2 is Negative & |:M2:| is_less_than |:M1:| implies
M1+M2 is Positive
proof
assume that
A1: M1 is Positive and
A2: M2 is Negative and
A3: |:M2:| is_less_than |:M1:|;
A4: Indices M2 = [:Seg n, Seg n:] by MATRIX_0: 24;
A5: Indices (M1+M2) = [:Seg n, Seg n:] by MATRIX_0: 24;
A6: Indices M1 = [: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 |:M2:| by A4,A5,Th5;
then |:M2:|*(i,j)<|:M1:|*(i,j) by A3;
then |.M2*(i,j).|<|:M1:|*(i,j) by A4,A5,A7,Def7;
then |.M2*(i,j).|<|.M1*(i,j).| by A6,A5,A7,Def7;
then
A8: |.M1*(i,j).|-|.M2*(i,j).|> 0 by XREAL_1: 50;
M2*(i,j)< 0 by A2,A4,A5,A7;
then
A9: -(M2*(i,j))=|.M2*(i,j).| by ABSVALUE:def 1;
M1*(i,j)> 0 by A1,A6,A5,A7;
then M1*(i,j)=|.M1*(i,j).| by ABSVALUE:def 1;
then M1*(i,j)+M2*(i,j)> 0 by A9,A8;
hence thesis by A6,A5,A7,MATRIXR1: 25;
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Negative implies M1-M2 is Positive
proof
assume
A1: M1 is Positive & M2 is Negative;
A2: Indices M2 = [:Seg n, Seg n:] by MATRIX_0: 24;
A3: Indices M1 = [:Seg n, Seg n:] & Indices (M1-M2) = [: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 (M1-M2) holds (M1-M2)*(i,j)> 0
proof
let i,j;
assume
A5: [i,j] in Indices (M1-M2);
then M1*(i,j)> 0 & M2*(i,j)< 0 by A1,A2,A3;
then M1*(i,j)-M2*(i,j)> 0- 0;
hence thesis by A3,A4,A5,Th3;
end;
hence thesis;
end;
theorem
M2 is_less_than M1 implies M1-M2 is Positive
proof
assume
A1: M2 is_less_than 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: 50;
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 (M1+M2);
then M1*(i,j) < 0 by A1,A3,A4;
then M1*(i,j)+M2*(i,j)<M2*(i,j) by XREAL_1: 30;
then M1*(i,j)+M2*(i,j)< 0 by A2,A5,A4,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;
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_than -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: 61;
hence thesis by A1,A3,A5,MATRIXR1: 25;
end;
hence thesis;
end;
theorem
M1 is Positive & M2 is Negative & |:M1:| is_less_than |:M2:| implies
M1+M2 is Negative
proof
assume that
A1: M1 is Positive and
A2: M2 is Negative and
A3: |:M1:| is_less_than |:M2:|;
A4: Indices M1 = [:Seg n, Seg n:] by MATRIX_0: 24;
A5: Indices (M1+M2) = [:Seg n, Seg n:] by MATRIX_0: 24;
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 (M1-M2);
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 detailed in file :: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
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
leti,;
assume
A4: [,j] in Indices (*)java.lang.StringIndexOutOfBoundsException: Index 27 out of bo unds for length 27
)0byA2,3java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
then a*(M*(i,j))<0 by A1,XREAL_1:132;
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
end;
hence thesis;
end;
theorem
M is Nonnegative -isNonpositive
proof
A1: Indices M = [:Seg ,M1M2,M3,4forMatrix ,;
;
assume
: isNonnegative
for i,j st[,]inIndicesMholdsM(,)>0;
let i,j;
assume
3 i]inIndices -;
for ,st ij Indices M *(,j)> 0;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
thesis by A1,3,;
end;
hence thesispred M2
end;
theorem
M Negativeimplies M is ;
theorem
M1 is &M2 Nonpositive +2 Nonpositive
proof
assumeexistence
A1:M1 Nonpositiveand
A2A consider M1 being Matrix oflen M,idthM,EALsuch that
: IndicesM1 [:eg ,Seg n:] by MATRIX_0:24;
:Indices (1M2 = : n,Seg n: by :24;
A5: Indices = : n,Seg:]by :24;
for i,j st [i,j] in Indices (M1+A3:now
proof
let i,j;
assume
M1M2)
lenM>;
then
A7endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
(,) < 0 A2,5,A4,6;
hencethesisby A3,4,
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
hence ;
end;
heorem
_or_equal_with -2 implies M1M2 Nonpositive
proof
A1: Indices en M and
A2: Indices M2A8 ij [i,] Indices holdsM1(,)|M(j)|and
g n MATRIX_0:4java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A4:now
for i, [j inIndices M+M2) M1+)(,)<0
proof
let i,j;
assume
A5:[,]in Indices(1+)
j)=-M2)(,j ,1,3;
hencethesisby ,,9,ATRIX_021;
then M1* M;
hence thesis A1,A5,:;
end;
hencecoherence
end;
rem
M1 is_less_or_equal_withthenwidth(M)n MATRIX_1def4;
proof
assume
:M1 ;
: Indices M1 =[Seg n, Segn]&Indices M1M2 =[:egn Seg : by
IX_0:4
: len M1=en M2 & M1=widthM2 Lm3java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
for i,j hence thesisby A1,:51
n;
let i,;
assume
A4 [,]in (1-M2)
) by A1,2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
then M1*i)-2*i)<0by XREAL_1:47;
hence thesis by A2,A3,A4,java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 6
(->1 >Negative of,;
hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
end;
theorem
a<=0 & M is Positive implies a*M is Nonpositive
proofPositiveNonnegative Matrixof ,REAL;
:<0
: is ;
A3:Indices(*)=IndicesM byMATRIXR128java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
[i,] Indices aM holds (*)(j<0
proof
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 4
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;
then 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 |:M:|*(i,j)>=0
proof
let i,j;
assume
A1: [i,j] in Indices |:M:|;
Indices |:M:| = Indices M by Th5;
then |:M:|*(i,j)=|.M*(i,j).| by A1,Def7;
hence thesis by COMPLEX1:46;
end;
hence thesis;
end;
theorem
M1 is Positive implies M1 is Nonnegative;
theorem
M is Nonpositive implies ( then
proof
A1: (M1-M2*ij =(MXR2MXFM1)(- M2)*ij) MATRIX_1:ef7
MATRIX_0:24;
: ;
for i,j st by: 5java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
proof
let i,j;
assume)a*M(,j)
A3: [,j]in Indices (M;
n*(i,j)=0 by A2,1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
then -M*(i,j)>0;
hence thesis by A1,A3,Th2;
end;
thesis;
end;
theorem Th36:
M1 is Nonnegative & M2 is Nonnegative implies M1+M2 is Nonnegative
proof
: n,
:Indices M1 =[Seg n,Seg :]&Indices (M1+2 :eg , :
MATRIX_0:24;
assume
A3: M1 is Nonnegative;
for i,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
let i,j;
assume
:ij]inIndices(1+;
then M1*,>0 &M2*(,)= A3,A1A;
then (M1*(i,j))+(M2*(i,j))> *(,)
thesisbyA2,,:25;
;
hence thesisjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 10
end;
theorem
-M1 A9: |:a*M*i,).a)(,)|by ,Def7
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices (-M1)=[:Seg n, Seg n:] by MATRIX_0:24;
java.lang.StringIndexOutOfBoundsException: Range [34, 2) out of bounds for length 52
ss_or_equal_withM2java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
for i, |a||:| w |:: by MATRIXR1:27;
:len(*M |aM:|width (*)by Def7;
,j
assumeend;
A5: [i,j] in Indices (M1+M2);
then -M1)(,)by A4,A2,3
M2*ij A1,3,5,Th2;
thenA2: isNegative
thesis by A1,3A5,ATRIXR125java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
hencethesis;
end;
theoremhence thesis by A1,A3,Th2;
M2 is_less_or_equal_with ;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
assume
A1: M2 is_less_or_equal_with M1;
A2: Indices A1: Indices M2 :n : MATRIX_024
y ;
A4: Indices (M1-M2)MATRIX_0:;
A5:A3:M1 is Positive&M2 is Positive;
for i,j st[i,j] inIndices(M1M2)holds(1-M2)(,j>0
let i,assume
assume
6 i, M-M2;
then M1*(i,j)>=M2*(i,j) by A1,A2,A4;
M1*,j)M2*(,)=0 :48;
thesis by ,MATRIXR1:25;
end;hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
hence thesis;
end;
>0 & M Positive impliesaMis
assume that
ijst[,]in Indices(+) M1)*(,)0
A2:M isPositive;
A6:ij] (1+M2);
let i,j;
assume [i,j] in Indices (a*M);
A3: [, in M MATRIXR1:8;
then *ij> java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
then M1 is No &M2is implies +M2 is Positive
A3,;
end;
hence thesis;
end;
a<0&M is Negative implies a* is
l i;
assumethat
<0 and
A2: M is Negative;
A3: Indices (a*M by A2A,MATRIXR1:25java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
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*(,)M2(, (,j<*ij)by ,;
hence thesis by XXREAL_0:2;
end;
hence thesis;
end;
theorem
M1 is_less_than M2 &A2 and
proof
: :egn : :24;
A2 M3=[ , Segn] by MATRIX_024java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
(M1+M3 :Seg ,Seg n:
MATRIX_0:24;
A4: M1 A7: [i,j] in (+2;
st [i,] M1+)(j<M2+4)(,)
proof
let i,j;
assume
: [,]in Indices (1M3)
then
A6: (A8: |.M1i,j).|-|.M2*(i,j).|> XREAL_150;
:;
M1*(i,j)<M2*(i,j) & M3*(i,j)<java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 8
byA6,REAL_18;
end
hence ;
end;
hence;
M1
A1java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
S n ]byMATRIX_024;
: (+) =: n n]by 24java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
assume
is_less_thanM2;
, st[,] inIndices (M1+)holds M+*ij<+M3*,j
proof
ij
assume
A5: [i,j] in Indices (M1+M3);
then M1*(i java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
(,)+M3*(,)M2*i)+3*ij XREAL_18java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
(+)(,j<2(,j+(,)byA1A3A,:5;
byA3A,ATRIXR125java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
rem
-M2 M3-java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
proof
assume
A1A6[j inM+;
A2: Indices M1 j+*i,)<0byA2,A4,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
A2 M2[Segn,Segn: byMATRIX_024java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
A4:A4 is_less_than M2;
A5: Indices M3 = [:Seg n, Seg n:] & len M2=i,j] M1M2)holds(+M2)*i,)0
A6: proof
A7: forassume
proof
let i,j;
assume
M1(,)<M2*(,) A2,A5,;
then M1*(i,j)<M2*(i,j then M1*i,)+2(,j)0by XREAL_1:61;
then M3*(i, java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then M3M2*ij<3*i)M1*i)by A3,5,4A8,h3;
hencethesis ,6,5A4,A8,Th3java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
end: M1 is Positiveand
Indices (3-)=[Seg n,Segn]byMATRIX_0:4;
byA3,7
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;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
hence thesis;
end;
theorem
M1-M2 is_less_or_equal_with M3 implies M1-M3 is_less_or_equal_with
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: thenjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
:M-)=[Segn, Seg n:] by MATRIX_024;
A7 len len M4 = by;
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;
M1-M4)*(i,j)<M2*(i,A1:[,j] in Indices |::;
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;
then |M:*i,)|.*i,. by D;
A4: Indices M3 = [:Seg n, Seg n:] by MATRIX_0:24;
A5: width M2=width M3 by Lm3endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A6: Indices (M1-M4) java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
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;
java.lang.StringIndexOutOfBoundsException: Range [30, 2) out of bounds for length 45
A7: lenA2:M is Nonpositive;
A8:len M3=en M4&width =widthM4 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, Seg n:] by MATRIX_0:24;
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-M2 is_less_or_equal_with M3-
for i,j st [i,j] in Indices (M4-M2) holds (M4-M2)*(i,3:[,j ()java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
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 hence thesisby A6,XREAL_1:8;
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;
A6: Indices M3=[:Seg n, Seg n:] by MATRIX_0:24;
A7: len M3=len M4 & width M3=width M4 by Lm3;
for i,j st [i,j] in Indices (M1+M4) holds (M1+M4)*(i,j)<=(M3-M2)*(i,j)
proof
let i,j;
assume
A8: [i,j] in Indices (M1+M4);
then (M1+M2)*(i,j)<=(M3-M4)*(i,j) by A1,A3,A4;
then M1*(i,j)+M2*(i,j)<=(M3-M4)*(i,j) by A2,A4,A8,MATRIXR1:25;
then M1*(i,j)+M2*(i,j)<=M3*(i,j)-M4*(i,j) by A6,A4,A7,A8,Th3java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
then M1*(i,j)+M4*(i,j)<=M3*(i,j)-M2*(i,j) by XREAL_1:22;
then (M1+M4)*(i,j)<=M3*(i,j)-M2*(i,j) by A2,A4,A8,MATRIXR1:25;
hence thesis by A6,A4,A5,A8,Th3;
end : Indices M3[: , : MATRIX_0:;
hence ;
end; for , [i,] (1+4)holds M1M4)(j)<=(3M2)ijjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
theorem
M1-M2 A8: [i,j] in Indices (M1);
proof
assume
A1: M1-M2 is_less_or_equal_with M3+M4;
A2:Indices M1=:Seg n Seg n:]byMATRIX_0:4;
A3: Indices (M1-M2 thenM1*i)+2(,j=M-*ij A2,4,,ATRIXR125;
A4: Indices (M1-M4)=[:Seg n,Seg n:] by MATRIX_0:24;
5 len M1 M2&width M1width M2 Lm3;
A6: Indices M3=[:Seg n, Seg n:] by M1(,j)M4(i,)=M3*i,)-2(i,)by :22;
A7: len M1=len M4 & width M1=width M4 by Lm3;
for ,jst[, inIndices(1-)holds(1M4)*(i,j<(3+)(,j)
proof
let i,j;
assume
A8: [i,j] in Indices (M1-M4);
then (M1-M2)*(i,j)<=(M3 hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
then M1*(i,j)-M2*(i,j)<=(M3theorem
then M1* -M2 is_less_or_equal_with M3 implies M1-M4 is_less_or_equal_with M3+M2
then M1*(i,j)-M4*(i,j)<=M3*(i,j)+M2*(i,j) by XREAL_1:23;
then ( assume
hence M1-M2 is_less_or_equal_with M3+M4;
end;
hence thesis;
end;
heorem
M1:len =en M2 & widthM1=width M2 by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
proof
A1: Indices M1=[:Seg n, Seg n:] by MATRIX_0:24;
A2: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
:Indices (M2=[:Seg n Seg n:] by MATRIX_0:24;
assume
is_less_or_equal_with M2;
for i,j st [i,j let i,j;
proof
let i,j;
assume
A5: [i,j] then (M1M2)*(i,)<(M3+)(,)by ,A3,;
then M1*(i,j)<=M2*(i,j) by then M1*ij)M2*ij<(+)(i,)by ,,,A8,h3;
then -M2*(i,j) then M1*(i)M2(,)=(,)+*(,)by ,A4A8M:25java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
i,j)=M1*(j ,3A,;
hence thesis by A1,A3,A5,Th2;
end;
hence thesis;
endhenceM25java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
theorem
M1 is_less_or_equal_with -M2 implies M2 is_less_or_equal_with -M1
theor
A1: Indices M1= M1 is_less_or_equal_with M2 implies -M2 is_less_or_equal_with -M1
assume
A2: M1 is_less_or_equal_with -M2;
fori, [i,]Indices *i,)<()ijjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
proof
let i, (M2):n,Segn]by :;
assume
3:[i,]in Indices M2;
then M1*(i,j)<=(-M2)*(i,j) by A2,A1;
then M1*i,)=-( A3java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then M2*(i,j)< let i,;
hence thesis by A1,A3,Th2;
then*ij<(,)by ,,3
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 java.lang.StringIndexOutOfBoundsException: Range [66, 40) out of bounds for length 67
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 fori,j st [i,] in Indices (2-M1) holds M2-M1)(,)<M2(i,)
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
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A2: M1 is Nonnegative & M2 is_less_or_equal_with M3;
j i] M2 *ij<(+3)*i,)
proof
let i,j;
assume
A3: [i,j] in Indices M2;
then M1*(i,j)>=0 & M2*(i,j)<=M3*(iend;
then M2*(i,j)<=M1*(i,j)+M3*(i,j) by java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
hence thesis by ,A3,ATRIXR1;
end;
hence thesis;
end;
theorem
M1 is Positive &A3:width =idth M2 Lm3;
proof
A1:Indices M1=[:Seg n, Seg n:] & Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
: PositiveM2M3
for i, proof
proof
let i assume
A6 [j IndicesM2-)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A3: [i,j] in Indices M2;
M1(,)> &M2(i,j)=M3*i,)by A2,1
then M2*(i,j) hence thesis ,,A3,A6,Th3;
hence thesis end;
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:24;
for i,j st [i,j] in Indices (M2-M1) holds (M2-M1)*(i,j)<=M2*(i,j)
proof
let i,j;
assume
A6: [i,j] in Indices (M2-M1);
then M1*(i,j)>=0 by A1,A2,A4;
then M2*(i,j)-M1*(i,j)<=M2*(i,j) by XREAL_1:43;
hence thesis by A4,A5,A3,A6,Th3;
end;
hence thesis;
end;
theorem
M1 is Positive implies M2-M1 is_less_than M2
proof
assume
A1: M1 is Positive;
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)<M2*(i,j)
proof
let i,j;
assume
A6: [i,j] in Indices (M2-M1);
then M1*(i,j)>0 by A1,A2,A4;
then M2*(i,j)-M1*(i,j)<M2*(i,j) by XREAL_1:44;
hence thesis by A4,A5,A3,A6,Th3;
end;
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;
;
end;
theorem
M1 is Nonpositive & M2 is_less_or_equal_with M3 implies M2
is_less_or_equal_with M3A6,h4java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
assume
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A2: is_less_than &<=0implies *M2is_less_or_equal_witha
A3: M2widthM3 Lm3java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A4: width M1=width M2 & len M2=len A1:M1is_less_than
A5: Indices M2=[:Seg n, Seg n:] by MATRIX_0:24;
A6: Indices M3=[:Seg n, Seg n:] & lenA3:Indices (*)=Indices :28java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
for i,j st [i,j] in Indices M2 holds M2*(i,j)<=( for i,j st [i,j] in Indices (a*M2) holds (a*M2)*(i=(a*M1)(,)
proof
,;
assume
A7: [i,j] in Indices M2 assume
A5 [,]in Indices (*)
then then
hence thesis by A5,,,3A7,Th3;
end;
hence *(2*(i,)<a(*(j) by A2,REAL_1:5
end;
theorem
M1 is Nonpositive & M2 is_less_than M3 implies M2 is_less_than M3-M1
roof
assume
A1
A2 [Segn :]byMATRIX_0:4;
A3: width M2=width M3 by Lm3;
A4:width M1=idth M2 &len M2=len by ;
A5A3: (aM1)=IndicesM1 by MATRIXR1:;
A6: Indices A4:Indices =:n n:]by MATRIX_0:24;
i, i,j]in (*)holds(**
proof
let i,j;
assume
A7: [i,j] in Indices M2;
then M1*(i,j)<=0 & then *ij<M2*i) by ,3
M2*i,)<3(,j)-1*ij XREAL_153java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
hencethesisbyA5,,,3A7T;
end;
hence thesis;
end;
theorem
M1 is Negative & M2 is_less_or_equal_with M3 implies M2 is_less_than M3-M1
assume
A1: M1 is Negative & M1 is_less_or_equal_w M2 a<0 *2is_less_or_equal_with*java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
assumethat
A3:A1:M1 is_less_or_equal_with M2java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A4: width M1=width M2 & len M2=len MATRIXR1:28java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
IndicesM2=:eg n]by MATRIX_0:24;
A6: Indices M3=[:Seg n, Seg fori,j [,]in Indices (a*2)holds a*M2)*i,<(*M1*jjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
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,j)) by A3,A5,;
hence thesis by A6,Th4;
end;
hence thesis;
end;
theorem
M1 is_less_than then (*M1)*ij<=*(2*i,) by A3,A5,h4
proof
assume that
A1: A1: M1
A2: a<= hence ;
A3: Indices (a*M2) = Indices M2 by MATRIXR1:28;
A4: Indices M1 = [:Seg n, Seg a<0 &b= &M1Nonpositive & M2 is_less_or_equal_with M1 implies
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:65;
then (a*M2)*(i,j)<=a*(M1*(i,j)) by A3,A5,Th4;
hence thesis by A6,Th4;
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 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_or_equal_with M2 & a<=0 implies a*M2 is_less_or_equal_with a*M1
proof
assume that
A1: M1 is_less_or_equal_with 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: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 & M1*(i,j)<=M2*(i,j) by A2,A3;
then a*(M1*(i,j))<=b*(M2*(i,j)) by A1,XREAL_1:66;
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 Nonpositive & M2 is_less_or_equal_with M1 implies
a*M1 is_less_or_equal_with b*M2
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.378 Sekunden
¤
*Bot Zugriff
|
|
2026-11-23
|