let M be Matrix of m,n,K; :: thesis: ( M = A - B iff for i, j being Nat st [i,j] in Indices A holds
M * (i,j) = (A * (i,j)) - (B * (i,j)) )

thus ( M = A - B implies for i, j being Nat st [i,j] in Indices A holds
M * (i,j) = (A * (i,j)) - (B * (i,j)) ) :: thesis: ( ( for i, j being Nat st [i,j] in Indices A holds
M * (i,j) = (A * (i,j)) - (B * (i,j)) ) implies M = A - B )
proof
assume A1: M = A - B ; :: thesis: for i, j being Nat st [i,j] in Indices A holds
M * (i,j) = (A * (i,j)) - (B * (i,j))

let i, j be Nat; :: thesis: ( [i,j] in Indices A implies M * (i,j) = (A * (i,j)) - (B * (i,j)) )
assume A2: [i,j] in Indices A ; :: thesis: M * (i,j) = (A * (i,j)) - (B * (i,j))
A3: Indices A = Indices B by MATRIX_0:26;
thus M * (i,j) = (A * (i,j)) + ((- B) * (i,j)) by A1, A2, Def3a
.= (A * (i,j)) - (B * (i,j)) by A2, A3, Def4 ; :: thesis: verum
end;
assume A4: for i, j being Nat st [i,j] in Indices A holds
M * (i,j) = (A * (i,j)) - (B * (i,j)) ; :: thesis: M = A - B
now :: thesis: for i, j being Nat st [i,j] in Indices M holds
M * (i,j) = (A - B) * (i,j)
let i, j be Nat; :: thesis: ( [i,j] in Indices M implies M * (i,j) = (A - B) * (i,j) )
assume A5: [i,j] in Indices M ; :: thesis: M * (i,j) = (A - B) * (i,j)
A7: Indices M = Indices B by MATRIX_0:26;
A6: Indices M = Indices A by MATRIX_0:26;
hence M * (i,j) = (A * (i,j)) - (B * (i,j)) by A4, A5
.= (A * (i,j)) + ((- B) * (i,j)) by A5, A7, Def4
.= (A - B) * (i,j) by A5, A6, Def3a ;
:: thesis: verum
end;
hence M = A - B by MATRIX_0:27; :: thesis: verum