defpred S1[ Matrix of I,K,R] means for i2, k2 being Nat st [i2,k2] in Indices $1 holds
( ( [i,k] = [i2,k2] implies $1 * (i2,k2) = 1. R ) & ( [i,k] <> [i2,k2] implies $1 * (i2,k2) = 0. R ) );
for M1, M2 being Matrix of I,K,R st S1[M1] & S1[M2] holds
M1 = M2
proof
let M1, M2 be Matrix of I,K,R; :: thesis: ( S1[M1] & S1[M2] implies M1 = M2 )
assume A5: S1[M1] ; :: thesis: ( not S1[M2] or M1 = M2 )
assume A6: S1[M2] ; :: thesis: M1 = M2
for i2, k2 being Nat st [i2,k2] in Indices M1 holds
M1 * (i2,k2) = M2 * (i2,k2)
proof
let i2, k2 be Nat; :: thesis: ( [i2,k2] in Indices M1 implies M1 * (i2,k2) = M2 * (i2,k2) )
assume A7: [i2,k2] in Indices M1 ; :: thesis: M1 * (i2,k2) = M2 * (i2,k2)
A8: [i2,k2] in Indices M2
proof
per cases ( I = 0 or I > 0 ) ;
suppose A9: I > 0 ; :: thesis: [i2,k2] in Indices M2
then Indices M1 = [:(Seg I),(Seg K):] by MATRIX_0:23
.= Indices M2 by A9, MATRIX_0:23 ;
hence [i2,k2] in Indices M2 by A7; :: thesis: verum
end;
end;
end;
per cases ( [i,k] = [i2,k2] or [i,k] <> [i2,k2] ) ;
suppose A10: [i,k] = [i2,k2] ; :: thesis: M1 * (i2,k2) = M2 * (i2,k2)
hence M1 * (i2,k2) = 1. R by A5, A7
.= M2 * (i2,k2) by A10, A6, A8 ;
:: thesis: verum
end;
suppose A11: [i,k] <> [i2,k2] ; :: thesis: M1 * (i2,k2) = M2 * (i2,k2)
hence M1 * (i2,k2) = 0. R by A5, A7
.= M2 * (i2,k2) by A11, A6, A8 ;
:: thesis: verum
end;
end;
end;
hence M1 = M2 by MATRIX_0:27; :: thesis: verum
end;
hence for b1, b2 being Matrix of I,K,R st ( for i2, k2 being Nat st [i2,k2] in Indices b1 holds
( ( [i,k] = [i2,k2] implies b1 * (i2,k2) = 1. R ) & ( [i,k] <> [i2,k2] implies b1 * (i2,k2) = 0. R ) ) ) & ( for i2, k2 being Nat st [i2,k2] in Indices b2 holds
( ( [i,k] = [i2,k2] implies b2 * (i2,k2) = 1. R ) & ( [i,k] <> [i2,k2] implies b2 * (i2,k2) = 0. R ) ) ) holds
b1 = b2 ; :: thesis: verum