:: MATRIX_3 semantic presentation
Lemma1:
for b1, b2 being Nat st b1 = b1 + b2 holds
b2 = 0
by XCMPLX_1:3;
:: deftheorem Def1 defines 0. MATRIX_3:def 1 :
definition
let c1 be
Field;
let c2 be
Matrix of
c1;
func - c2 -> Matrix of
a1 means :
Def2:
:: MATRIX_3:def 2
(
len a3 = len a2 &
width a3 = width a2 & ( for
b1,
b2 being
Nat st
[b1,b2] in Indices a2 holds
a3 * b1,
b2 = - (a2 * b1,b2) ) );
existence
ex b1 being Matrix of c1 st
( len b1 = len c2 & width b1 = width c2 & ( for b2, b3 being Nat st [b2,b3] in Indices c2 holds
b1 * b2,b3 = - (c2 * b2,b3) ) )
uniqueness
for b1, b2 being Matrix of c1 st len b1 = len c2 & width b1 = width c2 & ( for b3, b4 being Nat st [b3,b4] in Indices c2 holds
b1 * b3,b4 = - (c2 * b3,b4) ) & len b2 = len c2 & width b2 = width c2 & ( for b3, b4 being Nat st [b3,b4] in Indices c2 holds
b2 * b3,b4 = - (c2 * b3,b4) ) holds
b1 = b2
end;
:: deftheorem Def2 defines - MATRIX_3:def 2 :
definition
let c1 be
Field;
let c2,
c3 be
Matrix of
c1;
func c2 + c3 -> Matrix of
a1 means :
Def3:
:: MATRIX_3:def 3
(
len a4 = len a2 &
width a4 = width a2 & ( for
b1,
b2 being
Nat st
[b1,b2] in Indices a2 holds
a4 * b1,
b2 = (a2 * b1,b2) + (a3 * b1,b2) ) );
existence
ex b1 being Matrix of c1 st
( len b1 = len c2 & width b1 = width c2 & ( for b2, b3 being Nat st [b2,b3] in Indices c2 holds
b1 * b2,b3 = (c2 * b2,b3) + (c3 * b2,b3) ) )
uniqueness
for b1, b2 being Matrix of c1 st len b1 = len c2 & width b1 = width c2 & ( for b3, b4 being Nat st [b3,b4] in Indices c2 holds
b1 * b3,b4 = (c2 * b3,b4) + (c3 * b3,b4) ) & len b2 = len c2 & width b2 = width c2 & ( for b3, b4 being Nat st [b3,b4] in Indices c2 holds
b2 * b3,b4 = (c2 * b3,b4) + (c3 * b3,b4) ) holds
b1 = b2
end;
:: deftheorem Def3 defines + MATRIX_3:def 3 :
theorem Th1: :: MATRIX_3:1
canceled;
theorem Th2: :: MATRIX_3:2
canceled;
theorem Th3: :: MATRIX_3:3
theorem Th4: :: MATRIX_3:4
theorem Th5: :: MATRIX_3:5
theorem Th6: :: MATRIX_3:6
for
b1,
b2 being
Nat for
b3 being
Field for
b4 being
Matrix of
b1,
b2,
b3 holds
b4 + (0. b3,b1,b2) = b4
theorem Th7: :: MATRIX_3:7
for
b1,
b2 being
Nat for
b3 being
Field for
b4 being
Matrix of
b1,
b2,
b3 holds
b4 + (- b4) = 0. b3,
b1,
b2
definition
let c1 be
Field;
let c2,
c3 be
Matrix of
c1;
assume E5:
width c2 = len c3
;
func c2 * c3 -> Matrix of
a1 means :
Def4:
:: MATRIX_3:def 4
(
len a4 = len a2 &
width a4 = width a3 & ( for
b1,
b2 being
Nat st
[b1,b2] in Indices a4 holds
a4 * b1,
b2 = (Line a2,b1) "*" (Col a3,b2) ) );
existence
ex b1 being Matrix of c1 st
( len b1 = len c2 & width b1 = width c3 & ( for b2, b3 being Nat st [b2,b3] in Indices b1 holds
b1 * b2,b3 = (Line c2,b2) "*" (Col c3,b3) ) )
uniqueness
for b1, b2 being Matrix of c1 st len b1 = len c2 & width b1 = width c3 & ( for b3, b4 being Nat st [b3,b4] in Indices b1 holds
b1 * b3,b4 = (Line c2,b3) "*" (Col c3,b4) ) & len b2 = len c2 & width b2 = width c3 & ( for b3, b4 being Nat st [b3,b4] in Indices b2 holds
b2 * b3,b4 = (Line c2,b3) "*" (Col c3,b4) ) holds
b1 = b2
end;
:: deftheorem Def4 defines * MATRIX_3:def 4 :
definition
let c1,
c2,
c3 be
Nat;
let c4 be
Field;
let c5 be
Matrix of
c1,
c2,
c4;
let c6 be
Matrix of
width c5,
c3,
c4;
redefine func * as
c5 * c6 -> Matrix of
len a5,
width a6,
a4;
coherence
c5 * c6 is Matrix of len c5, width c6,c4
end;
definition
let c1 be
Field;
let c2 be
Matrix of
c1;
let c3 be
Element of
c1;
func c3 * c2 -> Matrix of
a1 means :: MATRIX_3:def 5
(
len a4 = len a2 &
width a4 = width a2 & ( for
b1,
b2 being
Nat st
[b1,b2] in Indices a2 holds
a4 * b1,
b2 = a3 * (a2 * b1,b2) ) );
existence
ex b1 being Matrix of c1 st
( len b1 = len c2 & width b1 = width c2 & ( for b2, b3 being Nat st [b2,b3] in Indices c2 holds
b1 * b2,b3 = c3 * (c2 * b2,b3) ) )
uniqueness
for b1, b2 being Matrix of c1 st len b1 = len c2 & width b1 = width c2 & ( for b3, b4 being Nat st [b3,b4] in Indices c2 holds
b1 * b3,b4 = c3 * (c2 * b3,b4) ) & len b2 = len c2 & width b2 = width c2 & ( for b3, b4 being Nat st [b3,b4] in Indices c2 holds
b2 * b3,b4 = c3 * (c2 * b3,b4) ) holds
b1 = b2
end;
:: deftheorem Def5 defines * MATRIX_3:def 5 :
:: deftheorem Def6 defines * MATRIX_3:def 6 :
theorem Th8: :: MATRIX_3:8
theorem Th9: :: MATRIX_3:9
theorem Th10: :: MATRIX_3:10
theorem Th11: :: MATRIX_3:11
theorem Th12: :: MATRIX_3:12
Lemma6:
for b1 being non empty add-associative right_zeroed right_complementable LoopStr
for b2 being FinSequence of b1 st ( for b3 being Nat st b3 in dom b2 holds
b2 . b3 = 0. b1 ) holds
Sum b2 = 0. b1
theorem Th13: :: MATRIX_3:13
theorem Th14: :: MATRIX_3:14
theorem Th15: :: MATRIX_3:15
theorem Th16: :: MATRIX_3:16
theorem Th17: :: MATRIX_3:17
theorem Th18: :: MATRIX_3:18
theorem Th19: :: MATRIX_3:19
theorem Th20: :: MATRIX_3:20
for
b1 being
Nat for
b2 being
Field for
b3 being
Matrix of
b1,
b2 holds
(1. b2,b1) * b3 = b3
theorem Th21: :: MATRIX_3:21
for
b1 being
Nat for
b2 being
Field for
b3 being
Matrix of
b1,
b2 holds
b3 * (1. b2,b1) = b3
theorem Th22: :: MATRIX_3:22
theorem Th23: :: MATRIX_3:23
for
b1 being
Field for
b2,
b3,
b4,
b5,
b6,
b7,
b8,
b9 being
Element of
b1 holds
(b2,b4 ][ b6,b8) * (b3,b5 ][ b7,b9) = ((b2 * b3) + (b4 * b7)),
((b2 * b5) + (b4 * b9)) ][ ((b6 * b3) + (b8 * b7)),
((b6 * b5) + (b8 * b9))
theorem Th24: :: MATRIX_3:24
definition
let c1,
c2,
c3 be non
empty set ;
let c4 be
BinOp of
c3;
let c5 be
Function of
c1,
c3;
let c6 be
Function of
c2,
c3;
redefine func * as
c4 * c5,
c6 -> Function of
[:a1,a2:],
a3;
coherence
c4 * c5,c6 is Function of [:c1,c2:],c3
by FINSEQOP:84;
end;
theorem Th25: :: MATRIX_3:25
for
b1,
b2,
b3 being non
empty set for
b4,
b5 being
BinOp of
b3 for
b6 being
Function of
b1,
b3 for
b7 being
Function of
b2,
b3 for
b8 being
Element of
Fin b1 for
b9 being
Element of
Fin b2 st
b4 is
commutative &
b4 is
associative & (
[:b9,b8:] <> {} or
b4 has_a_unity ) &
b5 is
commutative holds
b4 $$ [:b8,b9:],
(b5 * b6,b7) = b4 $$ [:b9,b8:],
(b5 * b7,b6)
theorem Th26: :: MATRIX_3:26
for
b1,
b2,
b3 being non
empty set for
b4,
b5 being
BinOp of
b1 for
b6 being
Function of
b2,
b1 for
b7 being
Function of
b3,
b1 st
b4 is
commutative &
b4 is
associative &
b4 has_a_unity holds
for
b8 being
Element of
b2 for
b9 being
Element of
b3 holds
b4 $$ [:{b8},{b9}:],
(b5 * b6,b7) = b4 $$ {b8},
(b5 [:] b6,(b4 $$ {b9},b7))
theorem Th27: :: MATRIX_3:27
for
b1,
b2,
b3 being non
empty set for
b4,
b5 being
BinOp of
b1 for
b6 being
Function of
b2,
b1 for
b7 being
Function of
b3,
b1 for
b8 being
Element of
Fin b2 for
b9 being
Element of
Fin b3 st
b4 is
commutative &
b4 is
associative &
b4 has_a_unity &
b4 has_an_inverseOp &
b5 is_distributive_wrt b4 holds
for
b10 being
Element of
b2 holds
b4 $$ [:{b10},b9:],
(b5 * b6,b7) = b4 $$ {b10},
(b5 [:] b6,(b4 $$ b9,b7))
theorem Th28: :: MATRIX_3:28
for
b1,
b2,
b3 being non
empty set for
b4,
b5 being
BinOp of
b1 for
b6 being
Function of
b2,
b1 for
b7 being
Function of
b3,
b1 for
b8 being
Element of
Fin b2 for
b9 being
Element of
Fin b3 st
b4 has_a_unity &
b4 is
commutative &
b4 is
associative &
b4 has_an_inverseOp &
b5 is_distributive_wrt b4 holds
b4 $$ [:b8,b9:],
(b5 * b6,b7) = b4 $$ b8,
(b5 [:] b6,(b4 $$ b9,b7))
theorem Th29: :: MATRIX_3:29
for
b1,
b2,
b3 being non
empty set for
b4,
b5 being
BinOp of
b1 for
b6 being
Function of
b2,
b1 for
b7 being
Function of
b3,
b1 st
b4 is
commutative &
b4 is
associative &
b4 has_a_unity &
b5 is
commutative holds
for
b8 being
Element of
b2 for
b9 being
Element of
b3 holds
b4 $$ [:{b8},{b9}:],
(b5 * b6,b7) = b4 $$ {b9},
(b5 [;] (b4 $$ {b8},b6),b7)
theorem Th30: :: MATRIX_3:30
for
b1,
b2,
b3 being non
empty set for
b4,
b5 being
BinOp of
b1 for
b6 being
Function of
b2,
b1 for
b7 being
Function of
b3,
b1 for
b8 being
Element of
Fin b2 for
b9 being
Element of
Fin b3 st
b4 has_a_unity &
b4 is
commutative &
b4 is
associative &
b4 has_an_inverseOp &
b5 is_distributive_wrt b4 &
b5 is
commutative holds
b4 $$ [:b8,b9:],
(b5 * b6,b7) = b4 $$ b9,
(b5 [;] (b4 $$ b8,b6),b7)
theorem Th31: :: MATRIX_3:31
theorem Th32: :: MATRIX_3:32
theorem Th33: :: MATRIX_3:33
theorem Th34: :: MATRIX_3:34
theorem Th35: :: MATRIX_3:35
definition
let c1 be
Nat;
let c2 be
Field;
let c3 be
Matrix of
c1,
c2;
let c4 be
Element of
Permutations c1;
func Path_matrix c4,
c3 -> FinSequence of
a2 means :
Def7:
:: MATRIX_3:def 7
(
len a5 = a1 & ( for
b1,
b2 being
Nat st
b1 in dom a5 &
b2 = a4 . b1 holds
a5 . b1 = a3 * b1,
b2 ) );
existence
ex b1 being FinSequence of c2 st
( len b1 = c1 & ( for b2, b3 being Nat st b2 in dom b1 & b3 = c4 . b2 holds
b1 . b2 = c3 * b2,b3 ) )
uniqueness
for b1, b2 being FinSequence of c2 st len b1 = c1 & ( for b3, b4 being Nat st b3 in dom b1 & b4 = c4 . b3 holds
b1 . b3 = c3 * b3,b4 ) & len b2 = c1 & ( for b3, b4 being Nat st b3 in dom b2 & b4 = c4 . b3 holds
b2 . b3 = c3 * b3,b4 ) holds
b1 = b2
end;
:: deftheorem Def7 defines Path_matrix MATRIX_3:def 7 :
definition
let c1 be
Nat;
let c2 be
Field;
let c3 be
Matrix of
c1,
c2;
func Path_product c3 -> Function of
Permutations a1,the
carrier of
a2 means :
Def8:
:: MATRIX_3:def 8
for
b1 being
Element of
Permutations a1 holds
a4 . b1 = - (the mult of a2 $$ (Path_matrix b1,a3)),
b1;
existence
ex b1 being Function of Permutations c1,the carrier of c2 st
for b2 being Element of Permutations c1 holds b1 . b2 = - (the mult of c2 $$ (Path_matrix b2,c3)),b2
uniqueness
for b1, b2 being Function of Permutations c1,the carrier of c2 st ( for b3 being Element of Permutations c1 holds b1 . b3 = - (the mult of c2 $$ (Path_matrix b3,c3)),b3 ) & ( for b3 being Element of Permutations c1 holds b2 . b3 = - (the mult of c2 $$ (Path_matrix b3,c3)),b3 ) holds
b1 = b2
end;
:: deftheorem Def8 defines Path_product MATRIX_3:def 8 :
:: deftheorem Def9 defines Det MATRIX_3:def 9 :
theorem Th36: :: MATRIX_3:36
:: deftheorem Def10 defines diagonal_of_Matrix MATRIX_3:def 10 :