let X, x be set ; :: thesis: for b1, b2 being Rbag of
for y being real number st b2 = b1 +* (x .--> y) holds
Sum b2 = ((Sum b1) + y) - (b1 . x)
let b1, b2 be Rbag of ; :: thesis: for y being real number st b2 = b1 +* (x .--> y) holds
Sum b2 = ((Sum b1) + y) - (b1 . x)
let y be real number ; :: thesis: ( b2 = b1 +* (x .--> y) implies Sum b2 = ((Sum b1) + y) - (b1 . x) )
assume A1:
b2 = b1 +* (x .--> y)
; :: thesis: Sum b2 = ((Sum b1) + y) - (b1 . x)
A2:
dom (x .--> y) = {x}
by FUNCOP_1:19;
dom b2 = (dom b1) \/ (dom (x .--> y))
by A1, FUNCT_4:def 1;
then
{x} c= dom b2
by A2, XBOOLE_1:7;
then
{x} c= X
by PARTFUN1:def 4;
then A3:
x in X
by ZFMISC_1:37;
set a = b1 +* (x .--> 0 );
A4a:
support (b1 +* (x .--> 0 )) c= (support b1) \/ {x}
by Th2;
dom (b1 +* (x .--> 0 )) =
(dom b1) \/ (dom (x .--> 0 ))
by FUNCT_4:def 1
.=
X \/ (dom (x .--> 0 ))
by PARTFUN1:def 4
.=
X \/ {x}
by FUNCOP_1:19
.=
X
by A3, ZFMISC_1:46
;
then reconsider a = b1 +* (x .--> 0 ) as Rbag of by A4a, PARTFUN1:def 4, POLYNOM1:def 8, RELAT_1:def 18;
set b = (EmptyBag X) +* (x .--> (b1 . x));
A5a:
support ((EmptyBag X) +* (x .--> (b1 . x))) c= (support (EmptyBag X)) \/ {x}
by Th2;
dom ((EmptyBag X) +* (x .--> (b1 . x))) =
(dom (EmptyBag X)) \/ (dom (x .--> (b1 . x)))
by FUNCT_4:def 1
.=
X \/ (dom (x .--> (b1 . x)))
by PARTFUN1:def 4
.=
X \/ {x}
by FUNCOP_1:19
.=
X
by A3, ZFMISC_1:46
;
then reconsider b = (EmptyBag X) +* (x .--> (b1 . x)) as Rbag of by A5a, PARTFUN1:def 4, POLYNOM1:def 8, RELAT_1:def 18;
set c = (EmptyBag X) +* (x .--> y);
A6a:
support ((EmptyBag X) +* (x .--> y)) c= (support (EmptyBag X)) \/ {x}
by Th2;
dom ((EmptyBag X) +* (x .--> y)) =
(dom (EmptyBag X)) \/ (dom (x .--> y))
by FUNCT_4:def 1
.=
X \/ (dom (x .--> y))
by PARTFUN1:def 4
.=
X \/ {x}
by FUNCOP_1:19
.=
X
by A3, ZFMISC_1:46
;
then reconsider c = (EmptyBag X) +* (x .--> y) as Rbag of by A6a, PARTFUN1:def 4, POLYNOM1:def 8, RELAT_1:def 18;
then A10:
(Sum b1) - (Sum b) = ((Sum a) + (Sum b)) - (Sum b)
by PBOOLE:3, UPROOTS:17;
A11:
Sum c = y
by Th8;
A12:
Sum b = b1 . x
by Th8;
hence Sum b2 =
((Sum b1) - (Sum b)) + (Sum c)
by A10, PBOOLE:3, UPROOTS:17
.=
((Sum b1) + y) - (b1 . x)
by A11, A12
;
:: thesis: verum