LM010:
for x being REAL -valued FinSequence ex Q being Function of [:(Seg (len x)),REAL:],BOOLEAN st
for i being Nat
for s being Real st 1 <= i & i <= len x holds
( ( x | i exist_subset_sum_eq s implies Q . (i,s) = TRUE ) & ( not x | i exist_subset_sum_eq s implies Q . (i,s) = FALSE ) )
LM020:
for x being REAL -valued FinSequence
for Q1, Q2 being Function of [:(Seg (len x)),REAL:],BOOLEAN st ( for i being Nat
for s being Real st 1 <= i & i <= len x holds
( ( x | i exist_subset_sum_eq s implies Q1 . (i,s) = TRUE ) & ( not x | i exist_subset_sum_eq s implies Q1 . (i,s) = FALSE ) ) ) & ( for i being Nat
for s being Real st 1 <= i & i <= len x holds
( ( x | i exist_subset_sum_eq s implies Q2 . (i,s) = TRUE ) & ( not x | i exist_subset_sum_eq s implies Q2 . (i,s) = FALSE ) ) ) holds
Q1 = Q2
definition
let x be
REAL -valued FinSequence;
existence
ex b1 being Function of [:(Seg (len x)),REAL:],BOOLEAN st
for i being Nat
for s being Real st 1 <= i & i <= len x holds
( ( x | i exist_subset_sum_eq s implies b1 . (i,s) = TRUE ) & ( not x | i exist_subset_sum_eq s implies b1 . (i,s) = FALSE ) )
by LM010;
uniqueness
for b1, b2 being Function of [:(Seg (len x)),REAL:],BOOLEAN st ( for i being Nat
for s being Real st 1 <= i & i <= len x holds
( ( x | i exist_subset_sum_eq s implies b1 . (i,s) = TRUE ) & ( not x | i exist_subset_sum_eq s implies b1 . (i,s) = FALSE ) ) ) & ( for i being Nat
for s being Real st 1 <= i & i <= len x holds
( ( x | i exist_subset_sum_eq s implies b2 . (i,s) = TRUE ) & ( not x | i exist_subset_sum_eq s implies b2 . (i,s) = FALSE ) ) ) holds
b1 = b2
by LM020;
end;
Lemacik1:
for x being REAL -valued FinSequence st 1 <= len x holds
dom (x | 1) = {1}
LM040:
for i, k, x being Nat
for I being set st I c= Seg k & k < x & x in Seg i holds
Sgm (I \/ {x}) = (Sgm I) ^ <*x*>