begin
theorem Th1:
theorem Th2:
Lm1:
for K being Field
for A being Matrix of K holds Indices A = Indices (- A)
Lm2:
for n being Nat
for K being Field
for a being Element of K st a <> 0. K holds
(power K) . (a,n) <> 0. K
theorem Th3:
theorem Th4:
theorem Th5:
theorem Th6:
theorem Th7:
theorem Th8:
theorem Th9:
for
D being non
empty set for
A being
Matrix of
D for
Bx,
By,
Cx,
Cy being
finite without_zero Subset of
NAT st
[:Bx,By:] c= Indices A &
[:Cx,Cy:] c= Indices A holds
for
B being
Matrix of
card Bx,
card By,
D for
C being
Matrix of
card Cx,
card Cy,
D st ( for
i,
j,
bi,
bj,
ci,
cj being
Nat st
[i,j] in [:Bx,By:] /\ [:Cx,Cy:] &
bi = ((Sgm Bx) ") . i &
bj = ((Sgm By) ") . j &
ci = ((Sgm Cx) ") . i &
cj = ((Sgm Cy) ") . j holds
B * (
bi,
bj)
= C * (
ci,
cj) ) holds
ex
M being
Matrix of
len A,
width A,
D st
(
Segm (
M,
Bx,
By)
= B &
Segm (
M,
Cx,
Cy)
= C & ( for
i,
j being
Nat st
[i,j] in (Indices M) \ ([:Bx,By:] \/ [:Cx,Cy:]) holds
M * (
i,
j)
= A * (
i,
j) ) )
theorem Th10:
theorem Th11:
theorem Th12:
theorem Th13:
theorem Th14:
begin
definition
let D be non
empty set ;
let n,
m,
k be
Nat;
let A be
Matrix of
n,
m,
D;
let B be
Matrix of
n,
k,
D;
^^redefine func A ^^ B -> Matrix of
n,
(width A) + (width B),
D;
coherence
A ^^ B is Matrix of n,(width A) + (width B),D
end;
theorem Th15:
theorem Th16:
theorem Th17:
theorem Th18:
for
n,
m,
k,
i being
Nat for
D being non
empty set for
A being
Matrix of
n,
m,
D for
B being
Matrix of
n,
k,
D for
pA,
pB being
FinSequence of
D st
len pA = width A &
len pB = width B holds
ReplaceLine (
(A ^^ B),
i,
(pA ^ pB))
= (ReplaceLine (A,i,pA)) ^^ (ReplaceLine (B,i,pB))
theorem Th19:
for
n,
m,
k being
Nat for
D being non
empty set for
A being
Matrix of
n,
m,
D for
B being
Matrix of
n,
k,
D holds
(
Segm (
(A ^^ B),
(Seg n),
(Seg (width A)))
= A &
Segm (
(A ^^ B),
(Seg n),
((Seg ((width A) + (width B))) \ (Seg (width A))))
= B )
theorem Th20:
theorem
theorem Th22:
theorem Th23:
theorem Th24:
begin
:: deftheorem defines LineVec2Mx MATRIX15:def 1 :
for D being non empty set
for b being FinSequence of D holds LineVec2Mx b = <*b*>;
:: deftheorem defines ColVec2Mx MATRIX15:def 2 :
for D being non empty set
for b being FinSequence of D holds ColVec2Mx b = <*b*> @ ;
theorem Th25:
theorem Th26:
theorem
theorem Th28:
theorem
theorem Th30:
theorem
theorem Th32:
begin
:: deftheorem defines Solutions_of MATRIX15:def 3 :
for K being Field
for A, B being Matrix of K holds Solutions_of (A,B) = { X where X is Matrix of K : ( len X = width A & width X = width B & A * X = B ) } ;
theorem Th33:
theorem
theorem Th35:
theorem
Lm3:
for D being non empty set
for A, B being Matrix of D st len A = len B & width A = 0 & width B = 0 holds
A = B
theorem Th37:
theorem Th38:
for
n,
m,
k,
i being
Nat for
K being
Field for
a being
Element of
K for
X being
Matrix of
K for
A9 being
Matrix of
m,
n,
K for
B9 being
Matrix of
m,
k,
K st
X in Solutions_of (
A9,
B9) holds
X in Solutions_of (
(RLine (A9,i,(a * (Line (A9,i))))),
(RLine (B9,i,(a * (Line (B9,i))))))
Lm4:
for n, m, k, i being Nat
for K being Field
for a being Element of K
for A9 being Matrix of m,n,K
for B9 being Matrix of m,k,K st a <> 0. K holds
Solutions_of (A9,B9) = Solutions_of ((RLine (A9,i,(a * (Line (A9,i))))),(RLine (B9,i,(a * (Line (B9,i))))))
theorem Th39:
for
n,
k,
j,
m,
i being
Nat for
K being
Field for
a being
Element of
K for
X being
Matrix of
K for
A9 being
Matrix of
m,
n,
K for
B9 being
Matrix of
m,
k,
K st
X in Solutions_of (
A9,
B9) &
j in Seg m holds
X in Solutions_of (
(RLine (A9,i,((Line (A9,i)) + (a * (Line (A9,j)))))),
(RLine (B9,i,((Line (B9,i)) + (a * (Line (B9,j)))))))
Lm5:
for n, k, j, m, i being Nat
for K being Field
for a being Element of K
for A9 being Matrix of m,n,K
for B9 being Matrix of m,k,K st j in Seg m & i <> j holds
Solutions_of (A9,B9) = Solutions_of ((RLine (A9,i,((Line (A9,i)) + (a * (Line (A9,j)))))),(RLine (B9,i,((Line (B9,i)) + (a * (Line (B9,j)))))))
theorem Th40:
for
n,
k,
j,
m,
i being
Nat for
K being
Field for
a being
Element of
K for
A9 being
Matrix of
m,
n,
K for
B9 being
Matrix of
m,
k,
K st
j in Seg m & (
i = j implies
a <> - (1_ K) ) holds
Solutions_of (
A9,
B9)
= Solutions_of (
(RLine (A9,i,((Line (A9,i)) + (a * (Line (A9,j)))))),
(RLine (B9,i,((Line (B9,i)) + (a * (Line (B9,j)))))))
theorem Th41:
Lm6:
for n, i being Nat
for K being Field
for A being Matrix of K
for nt being Element of n -tuples_on NAT st i in Seg n holds
Line ((Segm (A,nt,(Sgm (Seg (width A))))),i) = Line (A,(nt . i))
theorem Th42:
theorem Th43:
theorem Th44:
theorem Th45:
theorem Th46:
theorem
theorem
for
n,
m,
k being
Nat for
K being
Field for
A being
Matrix of
n,
m,
K for
B being
Matrix of
n,
k,
K for
P being
Function of
(Seg n),
(Seg n) holds
(
Solutions_of (
A,
B)
c= Solutions_of (
(A * P),
(B * P)) & (
P is
one-to-one implies
Solutions_of (
A,
B)
= Solutions_of (
(A * P),
(B * P)) ) )
theorem Th49:
for
n,
m being
Nat for
K being
Field for
A being
Matrix of
n,
m,
K for
N being
finite without_zero Subset of
NAT st
card N = n &
N c= Seg m &
Segm (
A,
(Seg n),
N)
= 1. (
K,
n) &
n > 0 holds
ex
MVectors being
Matrix of
m -' n,
m,
K st
(
Segm (
MVectors,
(Seg (m -' n)),
((Seg m) \ N))
= 1. (
K,
(m -' n)) &
Segm (
MVectors,
(Seg (m -' n)),
N)
= - ((Segm (A,(Seg n),((Seg m) \ N))) @) & ( for
l being
Nat for
M being
Matrix of
m,
l,
K st ( for
i being
Nat holds
( not
i in Seg l or ex
j being
Nat st
(
j in Seg (m -' n) &
Col (
M,
i)
= Line (
MVectors,
j) ) or
Col (
M,
i)
= m |-> (0. K) ) ) holds
M in Solutions_of (
A,
(0. (K,n,l))) ) )
theorem Th50:
for
n,
m,
l being
Nat for
K being
Field for
A being
Matrix of
n,
m,
K for
B being
Matrix of
n,
l,
K for
N being
finite without_zero Subset of
NAT st
card N = n &
N c= Seg m &
n > 0 &
Segm (
A,
(Seg n),
N)
= 1. (
K,
n) holds
ex
X being
Matrix of
m,
l,
K st
(
Segm (
X,
((Seg m) \ N),
(Seg l))
= 0. (
K,
(m -' n),
l) &
Segm (
X,
N,
(Seg l))
= B &
X in Solutions_of (
A,
B) )
theorem Th51:
theorem Th52:
theorem Th53:
theorem Th54:
theorem
theorem Th56:
begin
scheme
GAUSS1{
F1()
-> Field,
F2()
-> Nat,
F3()
-> Nat,
F4()
-> Nat,
F5()
-> Matrix of
F2(),
F3(),
F1(),
F6()
-> Matrix of
F2(),
F4(),
F1(),
F7(
Matrix of
F2(),
F4(),
F1(),
Nat,
Nat,
Element of
F1())
-> Matrix of
F2(),
F4(),
F1(),
P1[
set ,
set ] } :
ex
A9 being
Matrix of
F2(),
F3(),
F1() ex
B9 being
Matrix of
F2(),
F4(),
F1() ex
N being
finite without_zero Subset of
NAT st
(
N c= Seg F3() &
the_rank_of F5()
= the_rank_of A9 &
the_rank_of F5()
= card N &
P1[
A9,
B9] &
Segm (
A9,
(Seg (card N)),
N) is
diagonal & ( for
i being
Nat st
i in Seg (card N) holds
A9 * (
i,
((Sgm N) /. i))
<> 0. F1() ) & ( for
i being
Nat st
i in dom A9 &
i > card N holds
Line (
A9,
i)
= F3()
|-> (0. F1()) ) & ( for
i,
j being
Nat st
i in Seg (card N) &
j in Seg (width A9) &
j < (Sgm N) . i holds
A9 * (
i,
j)
= 0. F1() ) )
provided
A1:
P1[
F5(),
F6()]
and A2:
for
A9 being
Matrix of
F2(),
F3(),
F1()
for
B9 being
Matrix of
F2(),
F4(),
F1() st
P1[
A9,
B9] holds
for
i,
j being
Nat st
i <> j &
j in dom A9 holds
for
a being
Element of
F1() holds
P1[
RLine (
A9,
i,
((Line (A9,i)) + (a * (Line (A9,j))))),
F7(
B9,
i,
j,
a)]
scheme
GAUSS2{
F1()
-> Field,
F2()
-> Nat,
F3()
-> Nat,
F4()
-> Nat,
F5()
-> Matrix of
F2(),
F3(),
F1(),
F6()
-> Matrix of
F2(),
F4(),
F1(),
F7(
Matrix of
F2(),
F4(),
F1(),
Nat,
Nat,
Element of
F1())
-> Matrix of
F2(),
F4(),
F1(),
P1[
set ,
set ] } :
ex
A9 being
Matrix of
F2(),
F3(),
F1() ex
B9 being
Matrix of
F2(),
F4(),
F1() ex
N being
finite without_zero Subset of
NAT st
(
N c= Seg F3() &
the_rank_of F5()
= the_rank_of A9 &
the_rank_of F5()
= card N &
P1[
A9,
B9] &
Segm (
A9,
(Seg (card N)),
N)
= 1. (
F1(),
(card N)) & ( for
i being
Nat st
i in dom A9 &
i > card N holds
Line (
A9,
i)
= F3()
|-> (0. F1()) ) & ( for
i,
j being
Nat st
i in Seg (card N) &
j in Seg (width A9) &
j < (Sgm N) . i holds
A9 * (
i,
j)
= 0. F1() ) )
provided
A1:
P1[
F5(),
F6()]
and A2:
for
A9 being
Matrix of
F2(),
F3(),
F1()
for
B9 being
Matrix of
F2(),
F4(),
F1() st
P1[
A9,
B9] holds
for
a being
Element of
F1()
for
i,
j being
Nat st
j in dom A9 & (
i = j implies
a <> - (1_ F1()) ) holds
P1[
RLine (
A9,
i,
((Line (A9,i)) + (a * (Line (A9,j))))),
F7(
B9,
i,
j,
a)]
begin
theorem Th57:
begin
:: deftheorem defines Solutions_of MATRIX15:def 4 :
for K being Field
for A being Matrix of K
for b being FinSequence of K holds Solutions_of (A,b) = { f where f is FinSequence of K : ColVec2Mx f in Solutions_of (A,(ColVec2Mx b)) } ;
theorem Th58:
theorem Th59:
theorem Th60:
theorem Th61:
:: deftheorem Def5 defines Space_of_Solutions_of MATRIX15:def 5 :
for K being Field
for A being Matrix of K st ( width A = 0 implies len A = 0 ) holds
for b3 being strict Subspace of (width A) -VectSp_over K holds
( b3 = Space_of_Solutions_of A iff the carrier of b3 = Solutions_of (A,((len A) |-> (0. K))) );
theorem
theorem Th63:
theorem
theorem Th65:
theorem Th66:
Lm7:
for K being Field
for g being FinSequence of K
for A being set st A c= dom g holds
ex ga, gb being FinSequence of K st
( ga = g * (Sgm A) & gb = g * (Sgm ((dom g) \ A)) & Sum g = (Sum ga) + (Sum gb) )
theorem Th67:
for
n,
m being
Nat for
K being
Field for
A being
Matrix of
n,
m,
K for
N being
finite without_zero Subset of
NAT st
card N = n &
N c= Seg m &
Segm (
A,
(Seg n),
N)
= 1. (
K,
n) &
n > 0 &
m -' n > 0 holds
ex
MVectors being
Matrix of
m -' n,
m,
K st
(
Segm (
MVectors,
(Seg (m -' n)),
((Seg m) \ N))
= 1. (
K,
(m -' n)) &
Segm (
MVectors,
(Seg (m -' n)),
N)
= - ((Segm (A,(Seg n),((Seg m) \ N))) @) &
Lin (lines MVectors) = Space_of_Solutions_of A )
Lm8:
for n being Nat
for K being Field holds dim (Space_of_Solutions_of (1. (K,n))) = 0
theorem Th68:
theorem Th69:
theorem Th70:
theorem
theorem Th72:
theorem
theorem Th74:
theorem Th75:
theorem