let R be Ring; for A being Matrix of R
for r being Element of R holds (- r) * A = - (r * A)
let A be Matrix of R; for r being Element of R holds (- r) * A = - (r * A)
let r be Element of R; (- r) * A = - (r * A)
A1:
( len ((- r) * A) = len A & len (- (r * A)) = len A & len (r * A) = len A )
A2:
( width ((- r) * A) = width A & width (- (r * A)) = width A & width (r * A) = width A )
for i, j being Nat st [i,j] in Indices ((- r) * A) holds
((- r) * A) * (i,j) = (- (r * A)) * (i,j)
proof
let i,
j be
Nat;
( [i,j] in Indices ((- r) * A) implies ((- r) * A) * (i,j) = (- (r * A)) * (i,j) )
assume A3:
[i,j] in Indices ((- r) * A)
;
((- r) * A) * (i,j) = (- (r * A)) * (i,j)
A4:
Indices ((- r) * A) =
[:(dom ((- r) * A)),(Seg (width ((- r) * A))):]
by MATRIX_0:def 4
.=
[:(Seg (len ((- r) * A))),(Seg (width ((- r) * A))):]
by FINSEQ_1:def 3
.=
[:(dom A),(Seg (width A)):]
by A1, A2, FINSEQ_1:def 3
.=
Indices A
by MATRIX_0:def 4
;
A5:
Indices A =
[:(dom A),(Seg (width A)):]
by MATRIX_0:def 4
.=
[:(Seg (len A)),(Seg (width A)):]
by FINSEQ_1:def 3
.=
[:(dom (r * A)),(Seg (width (r * A))):]
by A1, A2, FINSEQ_1:def 3
.=
Indices (r * A)
by MATRIX_0:def 4
;
thus ((- r) * A) * (
i,
j) =
(- r) * (A * (i,j))
by A3, A4, MATRIX_3:def 5
.=
- (r * (A * (i,j)))
by VECTSP_1:9
.=
- ((r * A) * (i,j))
by A3, A4, MATRIX_3:def 5
.=
(- (r * A)) * (
i,
j)
by A3, A4, A5, MATRIX_1:def 4
;
verum
end;
hence
(- r) * A = - (r * A)
by A1, A2, MATRIX_0:21; verum