theorem Th6:
for
m,
n being
Nat holds
n = (m -' (m -' n)) + (n -' m)
theorem Th5:
for
m,
n,
x,
y being
Nat st
n = (m -' x) + y holds
(
m -' n <= x &
n -' m <= y )
theorem Th14:
for
k,
x1,
x2,
y1,
y2 being
Nat st
x2 <= k &
x1 <= (k -' x2) + y2 holds
(
x2 + (x1 -' y2) <= k &
(((k -' x2) + y2) -' x1) + y1 = (k -' (x2 + (x1 -' y2))) + ((y2 -' x1) + y1) )
theorem Th7:
for
I being
set for
m,
n being
bag of
I holds
n = (m -' (m -' n)) + (n -' m)
definition
let I be
set ;
let m be
bag of
I;
let J be
set ;
func m | J -> bag of
I means :
BAR:
for
i being
object st
i in I holds
( (
i in J implies
it . i = m . i ) & ( not
i in J implies
it . i = 0 ) );
existence
ex b1 being bag of I st
for i being object st i in I holds
( ( i in J implies b1 . i = m . i ) & ( not i in J implies b1 . i = 0 ) )
uniqueness
for b1, b2 being bag of I st ( for i being object st i in I holds
( ( i in J implies b1 . i = m . i ) & ( not i in J implies b1 . i = 0 ) ) ) & ( for i being object st i in I holds
( ( i in J implies b2 . i = m . i ) & ( not i in J implies b2 . i = 0 ) ) ) holds
b1 = b2
end;
::
deftheorem BAR defines
| BAGORD_2:def 11 :
for I being set
for m being bag of I
for J being set
for b4 being bag of I holds
( b4 = m | J iff for i being object st i in I holds
( ( i in J implies b4 . i = m . i ) & ( not i in J implies b4 . i = 0 ) ) );
theorem
for
I,
J being
set for
m being
bag of
I holds
(m | J) + (m | (I \ J)) = m
definition
let I be
set ;
let R be
Relation of
I,
I;
existence
ex b1 being Relation of (I *) st
for p, q being I -valued FinSequence holds
( [p,q] in b1 iff ( p c< q or ex k being Nat st
( k in dom p & k in dom q & [(p . k),(q . k)] in R & ( for n being Nat st 1 <= n & n < k holds
p . n = q . n ) ) ) )
uniqueness
for b1, b2 being Relation of (I *) st ( for p, q being I -valued FinSequence holds
( [p,q] in b1 iff ( p c< q or ex k being Nat st
( k in dom p & k in dom q & [(p . k),(q . k)] in R & ( for n being Nat st 1 <= n & n < k holds
p . n = q . n ) ) ) ) ) & ( for p, q being I -valued FinSequence holds
( [p,q] in b2 iff ( p c< q or ex k being Nat st
( k in dom p & k in dom q & [(p . k),(q . k)] in R & ( for n being Nat st 1 <= n & n < k holds
p . n = q . n ) ) ) ) ) holds
b1 = b2
end;
definition
let R be non
empty transitive asymmetric RelStr ;
existence
ex b1 being strict RelExtension of finite-MultiSet_over the carrier of R st
for m, n being Element of b1 holds
( m <= n iff [(OrderedPartition m),(OrderedPartition n)] in LexOrder ( the carrier of (PrecM R), the InternalRel of (PrecM R)) )
uniqueness
for b1, b2 being strict RelExtension of finite-MultiSet_over the carrier of R st ( for m, n being Element of b1 holds
( m <= n iff [(OrderedPartition m),(OrderedPartition n)] in LexOrder ( the carrier of (PrecM R), the InternalRel of (PrecM R)) ) ) & ( for m, n being Element of b2 holds
( m <= n iff [(OrderedPartition m),(OrderedPartition n)] in LexOrder ( the carrier of (PrecM R), the InternalRel of (PrecM R)) ) ) holds
b1 = b2
end;