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 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) ) )
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 Th18:
for
i,
k,
m,
n 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
k,
m,
n 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 )
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 Th38:
for
i,
k,
m,
n 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 i, k, m, n 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
i,
j,
k,
m,
n 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 i, j, k, m, n 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
i,
j,
k,
m,
n 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)))))))
Lm6:
for i, n 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
for
k,
m,
n 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
m,
n 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
l,
m,
n 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) )
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)]
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
m,
n 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