defpred S1[ object , object ] means $2 = max ((b1 . $1),(b2 . $1));
A1:
for x being object st x in X holds
ex y being object st S1[x,y]
;
consider b being Function such that
A2:
( dom b = X & ( for x being object st x in X holds
S1[x,b . x] ) )
from CLASSES1:sch 1(A1);
reconsider b = b as ManySortedSet of X by A2, PARTFUN1:def 2, RELAT_1:def 18;
then A4:
rng b c= NAT
by TARSKI:def 3;
then
support b c= (support b1) \/ (support b2)
by TARSKI:def 3;
then reconsider b = b as bag of X by A4, PRE_POLY:def 8, VALUED_0:def 6;
A10: dom b =
X
by PARTFUN1:def 2
.=
dom b2
by PARTFUN1:def 2
;
take
b
; for k being object holds b . k = max ((b1 . k),(b2 . k))
A11: dom b =
X
by PARTFUN1:def 2
.=
dom b1
by PARTFUN1:def 2
;
hence
for k being object holds b . k = max ((b1 . k),(b2 . k))
; verum