let p, q be ProbFinS FinSequence of REAL ; :: thesis: (ColVec2Mx p) * (LineVec2Mx q) is Joint_Probability
set M = (ColVec2Mx p) * (LineVec2Mx q);
A1:
( len ((ColVec2Mx p) * (LineVec2Mx q)) = len p & width ((ColVec2Mx p) * (LineVec2Mx q)) = len q & ( for i being Element of NAT st i in dom ((ColVec2Mx p) * (LineVec2Mx q)) holds
Line ((ColVec2Mx p) * (LineVec2Mx q)),i = (p . i) * q ) )
by Th22;
A2:
(ColVec2Mx p) * (LineVec2Mx q) is m-nonnegative
proof
now let i,
j be
Element of
NAT ;
:: thesis: ( [i,j] in Indices ((ColVec2Mx p) * (LineVec2Mx q)) implies ((ColVec2Mx p) * (LineVec2Mx q)) * i,j >= 0 )assume A3:
[i,j] in Indices ((ColVec2Mx p) * (LineVec2Mx q))
;
:: thesis: ((ColVec2Mx p) * (LineVec2Mx q)) * i,j >= 0
(
i in Seg (len p) &
j in Seg (len q) )
by A1, A3, MATRPROB:12;
then
(
i in dom p &
j in dom q )
by FINSEQ_1:def 3;
then A4:
(
p . i >= 0 &
q . j >= 0 )
by MATRPROB:def 5;
((ColVec2Mx p) * (LineVec2Mx q)) * i,
j = (p . i) * (q . j)
by A3, Th21;
hence
((ColVec2Mx p) * (LineVec2Mx q)) * i,
j >= 0
by A4;
:: thesis: verum end;
hence
(ColVec2Mx p) * (LineVec2Mx q) is
m-nonnegative
by MATRPROB:def 6;
:: thesis: verum
end;
(ColVec2Mx p) * (LineVec2Mx q) is with_sum=1
hence
(ColVec2Mx p) * (LineVec2Mx q) is Joint_Probability
by A2; :: thesis: verum