let X, Y be set ; for f, g being PartFunc of X,Y st ( Y = {} implies X = {} ) & f tolerates g holds
ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )
let f, g be PartFunc of X,Y; ( ( Y = {} implies X = {} ) & f tolerates g implies ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h ) )
assume that
A1:
( Y = {} implies X = {} )
and
A2:
f tolerates g
; ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )
now per cases
( Y = {} or Y <> {} )
;
suppose A4:
Y <> {}
;
ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )consider y being
Element of
Y;
defpred S1[
set ,
set ]
means ( ( $1
in dom f implies $2
= f . $1 ) & ( $1
in dom g implies $2
= g . $1 ) & ( not $1
in dom f & not $1
in dom g implies $2
= y ) );
A5:
for
x being
set st
x in X holds
ex
y9 being
set st
S1[
x,
y9]
proof
let x be
set ;
( x in X implies ex y9 being set st S1[x,y9] )
assume
x in X
;
ex y9 being set st S1[x,y9]
hence
ex
y9 being
set st
S1[
x,
y9]
;
verum
end; A9:
for
x,
y1,
y2 being
set st
x in X &
S1[
x,
y1] &
S1[
x,
y2] holds
y1 = y2
;
consider h being
Function such that A10:
dom h = X
and A11:
for
x being
set st
x in X holds
S1[
x,
h . x]
from FUNCT_1:sch 2(A9, A5);
rng h c= Y
then reconsider h9 =
h as
PartFunc of
X,
Y by A10, RELSET_1:11;
A17:
f tolerates h
A18:
g tolerates h
h9 is
total
by A10, Def4;
hence
ex
h being
PartFunc of
X,
Y st
(
h is
total &
f tolerates h &
g tolerates h )
by A17, A18;
verum end; end; end;
hence
ex h being PartFunc of X,Y st
( h is total & f tolerates h & g tolerates h )
; verum