let n be set ; :: thesis: for b1, b2 being bag of holds
( b1 divides b2 iff ex b being bag of st b2 = b1 + b )
let b1, b2 be bag of ; :: thesis: ( b1 divides b2 iff ex b being bag of st b2 = b1 + b )
now assume A1:
b1 divides b2
;
:: thesis: ex b being bag of st b2 = b1 + bnow per cases
( n = {} or n <> {} )
;
case
n <> {}
;
:: thesis: ex b, b being bag of st b2 = b1 + bthen reconsider n' =
n as non
empty set ;
set b =
{ [k,((b2 . k) -' (b1 . k))] where k is Element of n' : verum } ;
now let x,
y1,
y2 be
set ;
:: thesis: ( [x,y1] in { [k,((b2 . k) -' (b1 . k))] where k is Element of n' : verum } & [x,y2] in { [k,((b2 . k) -' (b1 . k))] where k is Element of n' : verum } implies y1 = y2 )assume A6:
(
[x,y1] in { [k,((b2 . k) -' (b1 . k))] where k is Element of n' : verum } &
[x,y2] in { [k,((b2 . k) -' (b1 . k))] where k is Element of n' : verum } )
;
:: thesis: y1 = y2then consider k being
Element of
n' such that A7:
[x,y1] = [k,((b2 . k) -' (b1 . k))]
;
consider k' being
Element of
n' such that A8:
[x,y2] = [k',((b2 . k') -' (b1 . k'))]
by A6;
k =
[x,y1] `1
by A7, MCART_1:def 1
.=
x
by MCART_1:def 1
.=
[x,y2] `1
by MCART_1:def 1
.=
k'
by A8, MCART_1:def 1
;
hence y1 =
[x,y2] `2
by A7, A8, MCART_1:def 2
.=
y2
by MCART_1:def 2
;
:: thesis: verum end; then reconsider b =
{ [k,((b2 . k) -' (b1 . k))] where k is Element of n' : verum } as
Function by A4, FUNCT_1:def 1, RELAT_1:def 1;
then A12:
dom b = n'
by A9, TARSKI:2;
then reconsider b =
b as
ManySortedSet of
by PARTFUN1:def 4, RELAT_1:def 18;
then A15:
rng b c= NAT
by TARSKI:def 3;
A16:
now let k be
set ;
:: thesis: ( k in n implies b . k = (b2 . k) -' (b1 . k) )assume
k in n
;
:: thesis: b . k = (b2 . k) -' (b1 . k)then consider u being
set such that A17:
[k,u] in b
by A12, RELAT_1:def 4;
consider k' being
Element of
n' such that A18:
[k,u] = [k',((b2 . k') -' (b1 . k'))]
by A17;
A19:
k =
[k',((b2 . k') -' (b1 . k'))] `1
by A18, MCART_1:def 1
.=
k'
by MCART_1:def 1
;
u =
[k',((b2 . k') -' (b1 . k'))] `2
by A18, MCART_1:def 2
.=
(b2 . k') -' (b1 . k')
by MCART_1:def 2
;
hence
b . k = (b2 . k) -' (b1 . k)
by A17, A19, FUNCT_1:8;
:: thesis: verum end; then
support b c= support b2
by TARSKI:def 3;
then
support b is
finite
;
then reconsider b =
b as
bag of
by A15, POLYNOM1:def 8, VALUED_0:def 6;
take b =
b;
:: thesis: ex b being bag of st b2 = b1 + bthen
b2 = b1 + b
by POLYNOM1:37;
hence
ex
b being
bag of st
b2 = b1 + b
;
:: thesis: verum end; end; end; hence
ex
b being
bag of st
b2 = b1 + b
;
:: thesis: verum end;
hence
( b1 divides b2 iff ex b being bag of st b2 = b1 + b )
by POLYNOM1:54; :: thesis: verum