deffunc H1() -> set = the carrier of R;
defpred S1[ object , object , object ] means ( ( [i,k] = [$1,$2] implies $3 = 1. R ) & ( [i,k] <> [$1,$2] implies $3 = 0. R ) );
A1: for i2, k2 being Nat st [i2,k2] in [:(Seg I),(Seg K):] holds
ex x being Element of H1() st S1[i2,k2,x]
proof
let i2, k2 be Nat; :: thesis: ( [i2,k2] in [:(Seg I),(Seg K):] implies ex x being Element of H1() st S1[i2,k2,x] )
assume [i2,k2] in [:(Seg I),(Seg K):] ; :: thesis: ex x being Element of H1() st S1[i2,k2,x]
per cases ( [i,k] = [i2,k2] or [i,k] <> [i2,k2] ) ;
suppose A2: [i,k] = [i2,k2] ; :: thesis: ex x being Element of H1() st S1[i2,k2,x]
take 1. R ; :: thesis: S1[i2,k2, 1. R]
thus S1[i2,k2, 1. R] by A2; :: thesis: verum
end;
suppose A3: [i,k] <> [i2,k2] ; :: thesis: ex x being Element of H1() st S1[i2,k2,x]
take 0. R ; :: thesis: S1[i2,k2, 0. R]
thus S1[i2,k2, 0. R] by A3; :: thesis: verum
end;
end;
end;
consider M being Matrix of I,K,H1() such that
A4: for i2, k2 being Nat st [i2,k2] in Indices M holds
S1[i2,k2,M * (i2,k2)] from MATRIX_0:sch 2(A1);
take M ; :: thesis: for i2, k2 being Nat st [i2,k2] in Indices M holds
( ( [i,k] = [i2,k2] implies M * (i2,k2) = 1. R ) & ( [i,k] <> [i2,k2] implies M * (i2,k2) = 0. R ) )

thus for i2, k2 being Nat st [i2,k2] in Indices M holds
( ( [i,k] = [i2,k2] implies M * (i2,k2) = 1. R ) & ( [i,k] <> [i2,k2] implies M * (i2,k2) = 0. R ) ) by A4; :: thesis: verum