let M be non empty-yielding Matrix of REAL ; :: thesis: ( M is non empty-yielding Conditional_Probability Matrix of REAL iff for i being Element of NAT st i in dom M holds
Line M,i is non empty ProbFinS FinSequence of REAL )
hereby :: thesis: ( ( for i being Element of NAT st i in dom M holds
Line M,i is non empty ProbFinS FinSequence of REAL ) implies M is non empty-yielding Conditional_Probability Matrix of REAL )
assume A1:
M is non
empty-yielding Conditional_Probability Matrix of
REAL
;
:: thesis: for i being Element of NAT st i in dom M holds
Line M,i is non empty ProbFinS FinSequence of REAL hereby :: thesis: verum
let i be
Element of
NAT ;
:: thesis: ( i in dom M implies Line M,i is non empty ProbFinS FinSequence of REAL )assume A2:
i in dom M
;
:: thesis: Line M,i is non empty ProbFinS FinSequence of REAL set n =
len M;
set m =
width M;
A3:
(
len M > 0 &
width M > 0 )
by Th54;
A4:
len (Line M,i) = width M
by MATRIX_1:def 8;
A5:
Sum (Line M,i) =
Sum (M . i)
by A2, MATRIX_2:18
.=
1
by A1, A2, Def9
;
( ( for
i,
j being
Element of
NAT st
[i,j] in Indices M holds
M * i,
j >= 0 ) & ( for
k being
Element of
NAT st
k in dom M holds
Sum (M . k) = 1 ) )
by A1, Def6, Def9;
then
for
j being
Element of
NAT st
j in dom (Line M,i) holds
(Line M,i) . j >= 0
by A2, Lm2;
hence
Line M,
i is non
empty ProbFinS FinSequence of
REAL
by A3, A4, A5, Def5;
:: thesis: verum
end;
end;
assume A6:
for i being Element of NAT st i in dom M holds
Line M,i is non empty ProbFinS FinSequence of REAL
; :: thesis: M is non empty-yielding Conditional_Probability Matrix of REAL
for i, j being Element of NAT st i in dom M & j in dom (Line M,i) holds
(Line M,i) . j >= 0
then
for i, j being Element of NAT st [i,j] in Indices M holds
M * i,j >= 0
by Lm2;
then A8:
M is m-nonnegative
by Def6;
then
M is with_line_sum=1
by Def9;
hence
M is non empty-yielding Conditional_Probability Matrix of REAL
by A8; :: thesis: verum